1 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
3 * term/gfxterm.c (clear_char): New function.
4 (grub_virtual_screen_setup): Use clear_char.
6 (grub_virtual_screen_cls): Likewise.
8 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
10 * util/deviceiter.c (get_acceleraid_disk_name): New static
12 (grub_util_iterate_devices): Handle Accelraid devices.
13 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
15 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
17 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
18 separator for the suggested gfxpayload string (';' collides with the
19 parser and needs escaping).
21 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
23 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
24 Clear direction flag before jumping to OS.
25 (grub_multiboot2_real_boot): Likewise.
27 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29 * util/i386/pc/grub-install: Fix parsing of --disk-module
32 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
34 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
37 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
39 * util/grub-mkconfig.in (package_version): New variable.
40 Use it do display the version.
42 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
44 * kern/file.c (grub_file_open): Revert to previous check with
47 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
49 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
50 from help line. It's out of sync with code.
52 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
54 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
55 entries on failed boot.
57 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
59 * kern/file.c (grub_file_open): Fix an error check.
61 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
63 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
64 partition map couldn't be identified.
66 2009-07-23 Pavel Roskin <proski@gnu.org>
68 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
69 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
70 case of little endian words becomes just an optimization.
71 Respect const modifier.
72 (md5_final): Use code that doesn't depend on endianess.
74 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
75 to avoid loss of upper bits if align is unsigned and shorter
78 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
82 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
83 (grub_ufs_uuid): New function.
84 (grub_ufs_fs): add .uuid
86 2009-07-21 Pavel Roskin <proski@gnu.org>
88 * kern/dl.c (grub_dl_check_header): Make static.
90 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
92 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
93 add drivemap for Vista. It breaks Windows 7.
95 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
97 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
100 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
104 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
105 (grub_fstest_SOURCES): Likewise.
106 (pkglib_MODULES): Add befs.mod.
107 (befs_mod_SOURCES): New variable.
108 (befs_mod_CFLAGS): Likewise.
109 (befs_mod_LDFLAGS): Likewise.
110 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
111 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
112 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
113 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
114 (grub_setup_SOURCES): Likewise.
115 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
116 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
117 (grub_setup_SOURCES): Likewise.
118 * fs/befs.c: New file.
119 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
120 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
121 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
122 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
123 (B_KEY_INDEX_ALIGN): New declaration.
124 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
125 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
126 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
127 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
128 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
129 (grub_afs_mount) [MODE_BFS]: Likewise.
130 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
131 (grub_afs_fs): Use GRUB_AFS_FSNAME
132 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
133 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
134 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
135 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
137 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
139 * util/getroot.c (find_root_device): Add support for MacOSX.
140 * util/hostdisk.c: Likewise.
142 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
144 * font/font.c (find_glyph): Check whether a font is present to avoid
147 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
149 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
151 2009-07-20 Pavel Roskin <proski@gnu.org>
153 * configure.ac: Trim excessively wordy excuses.
155 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
157 Add symlink, mtime and label support to AtheFS.
159 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
160 (grub_afs_iterate_dir): Handle symlinks.
161 (grub_afs_open): Use grub_afs_read_symlink.
162 (grub_afs_dir): Likewise.
164 (grub_afs_label): New function.
165 (grub_afs_fs): Add grub_afs_label.
166 (grub_afs_read_symlink): New function.
168 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
172 * fs/afs.c: Fix comments style.
173 (grub_afs_blockrun): Declare as packed.
174 (grub_afs_datastream): Likewise.
175 (grub_afs_bnode): Likewise.
176 (grub_afs_btree): Likewise.
177 (grub_afs_sblock): Likewise.
178 Declare `name' as char.
179 (grub_afs_inode): Declare as packed.
180 Change void *vnode to grub_uint32_t unused.
181 (grub_afs_iterate_dir): Check that key_size is positive.
182 (grub_afs_mount): Don't read superblock twice.
183 (grub_afs_dir): Don't free node in case of error,
184 grub_fshelp_find_file already handles this.
185 (grub_afs_open): Likewise.
187 2009-07-19 Pavel Roskin <proski@gnu.org>
189 * Makefile.in: Remove LIBLZO and enable_lzo.
190 * conf/i386-pc.rmk: Remove lzo support.
191 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
192 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
194 * kern/i386/pc/lzo1x.S: Remove.
195 * kern/i386/pc/startup.S: Remove lzo support.
196 * util/i386/pc/grub-mkimage.c: Likewise.
198 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
200 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
201 * fs/xfs.c (grub_xfs_dir): Likewise.
202 * fs/afs.c (grub_afs_dir): Likewise.
203 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
204 (grub_iso9660_open): Likewise.
205 * fs/jfs.c (grub_jfs_open): Likewise.
206 * fs/ext2.c (grub_ext2_dir): Likewise.
207 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
208 * script/sh/lexer.c (grub_script_yylex): Likewise.
210 2009-07-16 Pavel Roskin <proski@gnu.org>
212 * configure.ac: Never add "-c" to CFLAGS.
214 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
216 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
217 grub_cv_cc_efiemu should be used.
219 * configure.ac: Typo fixes.
221 * kern/mm.c (grub_zalloc): New function.
222 (grub_debug_zalloc): Likewise.
223 * include/grub/mm.h: Declare grub_zalloc() and
225 * util/misc.c (grub_zalloc): New function.
226 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
227 instead of grub_malloc(), remove unneeded initializations.
228 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
229 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
230 * commands/parttool.c (grub_cmd_parttool): Likewise.
231 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
232 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
233 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
234 * disk/usbms.c (grub_usbms_finddevs): Likewise.
235 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
236 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
237 (grub_cmd_efiemu_pnvram): Likewise.
238 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
239 * fs/iso9660.c (grub_iso9660_mount): Likewise.
240 (grub_iso9660_iterate_dir): Likewise.
241 * fs/jfs.c (grub_jfs_opendir): Likewise.
242 * fs/ntfs.c (list_file): Likewise.
243 (grub_ntfs_mount): Likewise.
244 * kern/disk.c (grub_disk_open): Likewise.
245 * kern/dl.c (grub_dl_load_core): Likewise.
246 * kern/elf.c (grub_elf_file): Likewise.
247 * kern/env.c (grub_env_context_open): Likewise.
248 (grub_env_set): Likewise.
249 (grub_env_set_data_slot): Likewise.
250 * kern/file.c (grub_file_open): Likewise.
251 * kern/fs.c (grub_fs_blocklist_open): Likewise.
252 * loader/i386/multiboot.c (grub_module): Likewise.
253 * loader/xnu.c (grub_xnu_create_key): Likewise.
254 (grub_xnu_create_value): Likewise.
255 * normal/main.c (grub_normal_add_menu_entry): Likewise.
256 (read_config_file): Likewise.
257 * normal/menu_entry.c (make_screen): Likewise.
258 * partmap/sun.c (sun_partition_map_iterate): Likewise.
259 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
260 * script/sh/script.c (grub_script_parse): Likewise.
261 * video/bitmap.c (grub_video_bitmap_create): Likewise.
262 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
263 * video/readers/png.c (grub_png_output_byte): Likewise.
264 (grub_video_reader_png): Likewise.
266 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
268 Enable all targets that can be built by default
270 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
271 grub-mkfont and grub-fstest if they can be built
273 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
275 Fix hang and segmentation fault in grub-emu-usb
277 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
278 * util/usb.c (grub_libusb_devices): likewise
279 (grub_libusb_init): rename to ...
280 (GRUB_MOD_INIT (libusb)):...this
281 (grub_libusb_fini): rename to ..
282 (GRUB_MOD_FINI (libusb)):...this
283 * disk/usbms.c (grub_usbms_transfer): fix retry logic
284 * include/grub/disk.h (grub_raid_init): removed, it's useless
285 (grub_raid_fini): likewise
286 (grub_lvm_init): likewise
287 (grub_lvm_fini): likewise
288 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
291 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
295 * Makefile.in (LIBUSB): new macro
296 * genmk.rb (Utility/print_tail): new method
297 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
298 (top level): call util.print_tail at the end.
300 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
302 Make FreeBSD accept zpool.cache
304 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
305 type is /boot/zfs/zpool.cache
307 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
311 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
312 correct wrong typedef
313 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
315 2009-07-15 Pavel Roskin <proski@gnu.org>
317 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
318 * kern/disk.c (struct grub_disk_cache): Likewise.
320 * commands/probe.c (options): Typo fix.
322 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
323 Increase to 0x5a to accommodate FAT32. Adjust other offsets
325 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
327 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
328 the end of "Error" to make the message more readable.
330 * boot/i386/pc/boot.S (kernel_segment): Remove.
331 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
334 * boot/i386/pc/boot.S (boot_version): Remove.
335 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
338 * include/grub/i386/pc/boot.h: Sort all offsets.
339 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
340 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
341 * boot/i386/pc/boot.S: Assert location of every offset listed in
342 include/grub/i386/pc/boot.h.
344 2009-07-13 Pavel Roskin <proski@gnu.org>
346 * include/grub/i386/coreboot/machine.h: Rename
347 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
348 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
349 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
351 * kern/dl.c: Force native word size to suppress warnings when
354 * kern/device.c (grub_device_iterate): Change struct part_ent to
355 hold the name, not a pointer to it. Use one grub_malloc() per
356 partition, not two. Free partition_name if grub_malloc() fails.
357 Set ents to NULL only before grub_partition_iterate() is called.
359 2009-07-11 Bean <bean123ch@gmail.com>
361 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
364 2009-07-10 Bean <bean123ch@gmail.com>
365 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
367 * kern/ieee1275/openfw.c (grub_children_iterate)
368 (grub_devalias_iterate): Fix size evaluation for property or path
369 strings, which was broken since r2132.
371 2009-07-07 Pavel Roskin <proski@gnu.org>
373 * commands/search.c (search_file): Merge into ...
374 (search_fs): ... this. Accept search type as argument.
375 (grub_cmd_search): Pass search type to search_fs().
377 * include/grub/util/console.h: New file.
378 * util/console.c: Use it instead of grub/machine/console.h.
379 * util/grub-emu.c: Likewise.
381 * lib/arg.c (find_long_option): Remove.
382 (find_long): Add `len' argument, make `s' const char *.
383 (grub_arg_parse): Parse long options in place, not in a
386 2009-07-06 Pavel Roskin <proski@gnu.org>
388 * commands/search.c (search_fs): Fix potential NULL pointer
391 * commands/search.c (search_fs): Replace QUID macro with quid_fn
394 2009-07-06 Daniel Mierswa <impulze@impulze.org>
396 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
399 2009-07-05 Pavel Roskin <proski@gnu.org>
401 * include/grub/i386/linux.h (struct linux_kernel_params):
402 Restore padding3, it's still needed.
404 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
406 * util/osdetect.lua: Likewise.
408 2009-07-05 Bean <bean123ch@gmail.com>
410 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
412 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
413 (grub_lua_getenv): Likewise.
414 (grub_lua_setenv): Likewise.
415 (save_errno): New function.
416 (push_result): Likewise.
417 (grub_lua_enum_device): Likewise.
418 (grub_lua_enum_file): Likewise.
419 (grub_lua_file_open): Likewise.
420 (grub_lua_file_close): Likewise.
421 (grub_lua_file_seek): Likewise.
422 (grub_lua_file_read): Likewise.
423 (grub_lua_file_getline): Likewise.
424 (grub_lua_file_getsize): Likewise.
425 (grub_lua_file_getpos): Likewise.
426 (grub_lua_file_eof): Likewise.
427 (grub_lua_file_exist): Likewise.
428 (grub_lua_add_menu): Likewise.
430 * script/lua/grub_lua.h (isupper): New inline function.
433 (isxdigit): Likewise.
434 (strcspn): Change to normal function.
435 (strpbkr): New function declaration.
438 * script/lua/grub_main.c (scan_str): New function.
443 * script/lua/linit.c (lualibs): Enable the string library.
445 * util/osdetect.lua: New file.
447 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
449 * include/grub/i386/linux.h (struct linux_kernel_params): Add
450 `capabilities' member.
452 2009-07-02 Pavel Roskin <proski@gnu.org>
454 * genparttoollist.sh: Add missing newline at the end.
456 2009-07-01 Pavel Roskin <proski@gnu.org>
458 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
460 * util/hostdisk.c (open_device): Remove `const' from
461 `sysctl_size', as sysctlbyname() can change it (in this case it
462 doesn't actually happen).
464 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
465 using signed long int constants.
467 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
468 constant to avoid a warning on FreeBSD.
470 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
473 * Makefile.in: Install include/grub/machine symlink.
475 * Makefile.in: When installing symlinks, use "cp -fR", which
476 works on FreeBSD and MacOSX.
477 From Yves Blusseau <cl7m42e02@sneakemail.com>
479 * kern/dl.c (grub_dl_resolve_symbol): Make static.
480 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
482 * util/misc.c: Move grub_reboot() and grub_halt() ...
483 * util/grub-emu.c: ... here. Make main_env static.
484 * include/grub/util/misc.h: Remove main_env.
486 * kern/mm.c: Use correct format to print size_t.
488 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
489 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
490 * kern/powerpc/dl.c: Likewise.
491 * kern/sparc64/dl.c: Likewise.
492 * kern/x86_64/dl.c: Likewise.
494 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
496 Fix grub-emu build on sparc64-ieee1275.
498 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
499 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
501 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
503 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
504 (grub_reboot, grub_halt): New functions.
506 * util/i386/pc/misc.c: Delete. Update all users.
507 * util/sparc64/ieee1275/misc.c: Likewise.
508 * util/powerpc/ieee1275/misc.c: Likewise.
510 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
512 * conf/i386.rmk (setjmp_mod_SOURCES)
513 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
514 * conf/common.rmk (setjmp_mod_SOURCES)
515 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
516 to use $(target_cpu).
517 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
518 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
519 * conf/powerpc-ieee1275.rmk: Likewise.
520 * conf/sparc64-ieee1275.rmk: Likewise.
522 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
523 $(target_cpu) for kern/$(target_cpu)/dl.c.
524 * conf/i386-efi.rmk: Likewise.
525 * conf/i386-ieee1275.rmk: Likewise.
526 * conf/x86_64-efi.rmk: Likewise.
527 * conf/i386-coreboot.rmk: Likewise.
528 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
529 $(target_cpu) for kern/$(target_cpu)/dl.c and for
530 kern/$(target_cpu)/cache.S.
531 * conf/sparc64-ieee1275.rmk: Likewise.
533 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
535 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
536 type to `grub_uint8_t', and adjust `padding9' accordingly.
538 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
540 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
542 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
543 assembly in final jump, using register constraints.
545 (grub_linux_boot): For text mode, initialize `have_vga' using
546 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
548 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
549 right before the final jump.
551 Set `video_mode' to 0x3.
553 Document initialization of `video_page', `video_mode' and
556 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
558 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
559 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
560 and set GRUB_LINUX_FLAG_QUIET appropriately.
562 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
564 Fix build on Debian / sparc.
566 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
568 2009-06-28 Pavel Roskin <proski@gnu.org>
570 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
573 * util/grub.d/10_linux.in: Match SUSE style initrd names.
575 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
577 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
580 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
584 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
585 file can't be opened. grub_file_open() is already supposed to set
586 grub_errno / grub_errmsg appropriately.
587 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
589 2009-06-27 Pavel Roskin <proski@gnu.org>
590 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
592 * include/grub/dl.h: Include grub/elf.h.
593 (struct grub_dl): Add symtab field.
594 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
595 GRUB_MODULES_MACHINE_READONLY.
596 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
597 of the header for read-only modules.
598 (grub_dl_unload): Free mod->symtab for read-only modules.
599 * kern/i386/dl.c: Use mod->symtab.
600 * kern/powerpc/dl.c: Likewise.
601 * kern/sparc64/dl.c: Likewise.
602 * kern/x86_64/dl.c: Likewise.
604 * conf/i386-qemu.rmk: New file.
605 * kern/i386/qemu/startup.S: Likewise.
606 * kern/i386/qemu/mmap.c: Likewise.
607 * boot/i386/qemu/boot.S: Likewise.
608 * include/grub/i386/qemu/time.h: Likewise.
609 * include/grub/i386/qemu/serial.h: Likewise.
610 * include/grub/i386/qemu/kernel.h: Likewise.
611 * include/grub/i386/qemu/console.h: Likewise.
612 * include/grub/i386/qemu/boot.h: Likewise.
613 * include/grub/i386/qemu/init.h: Likewise.
614 * include/grub/i386/qemu/machine.h: Likewise.
615 * include/grub/i386/qemu/loader.h: Likewise.
616 * include/grub/i386/qemu/memory.h: Likewise.
618 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
619 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
620 [qemu] (pkglib_IMAGES): Add `boot.img'.
621 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
622 [qemu] (boot_img_FORMAT): New variables.
623 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
624 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
625 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
626 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
627 [qemu] (kernel_img_FORMAT): New variables.
629 * configure.ac: Recognise `i386-qemu'.
631 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
632 (for no compression).
633 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
634 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
635 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
636 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
639 2009-06-27 Pavel Roskin <proski@gnu.org>
641 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
643 * efiemu/prepare32.c: Likewise.
644 * efiemu/prepare64.c: Likewise.
646 2009-06-26 Pavel Roskin <proski@gnu.org>
648 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
649 * include/grub/elf.h: Define symbols without "32" or "64" based
650 on GRUB_TARGET_WORDSIZE.
651 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
652 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
654 * efiemu/loadcore64.c: Likewise.
655 * loader/i386/bsd32.c: Likewise.
656 * loader/i386/bsd64.c: Likewise.
657 * kern/dl.c: Remove own ELF definitions.
658 * util/i386/efi/grub-mkimage.c: Likewise.
660 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
662 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
663 segment 0x0 unconditionally, because the reference generated by
664 GAS is an absolute address.
666 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
668 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
669 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
671 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
673 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
674 indexes. Check for -f explicitly.
675 (search_file): Improve error message.
676 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
678 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
680 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
681 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
683 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
685 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
686 * conf/i386-ieee1275.rmk: Likewise.
687 * conf/i386-coreboot.rmk: Likewise.
689 * kern/i386/pc/startup.S (grub_stop): Remove function.
690 * kern/i386/ieee1275/startup.S: Likewise.
691 * kern/i386/coreboot/startup.S: Likewise.
692 * kern/i386/misc.S (grub_stop): New function.
694 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
696 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
697 * kern/i386/realmode.S (real_to_prot): ... to here.
699 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
701 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
703 (kernel_elf_SOURCES): Rename to ...
704 (kernel_img_SOURCES): ... this.
705 (kernel_elf_HEADERS): Rename to ...
706 (kernel_img_HEADERS): ... this. Update all users.
707 (kernel_elf_ASFLAGS): Rename to ...
708 (kernel_img_ASFLAGS): ... this.
709 (kernel_elf_CFLAGS): Rename to ...
710 (kernel_img_CFLAGS): ... this.
711 (kernel_elf_LDFLAGS): Rename to ...
712 (kernel_img_LDFLAGS): ... this.
713 * conf/i386-coreboot.rmk: Likewise.
714 * conf/powerpc-ieee1275.rmk: Likewise.
716 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
719 2009-06-21 Pavel Roskin <proski@gnu.org>
721 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
722 to match nested functions.
723 * loader/sparc64/ieee1275/linux.c: Likewise.
725 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
727 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
729 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
732 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
734 Fix asm file handling on ELF, and remove workarounds.
736 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
737 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
738 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
739 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
741 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
745 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
746 and loader/i386/bsd64.c
747 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
748 (FREEBSD_MODTYPE_ELF_MODULE): New definition
749 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
750 (grub_freebsd_load_elfmodule32): New declaration
751 (grub_freebsd_load_elfmoduleobj64): Likewise
752 (grub_freebsd_load_elf_meta32): Likewise
753 (grub_freebsd_load_elf_meta64): Likewise
754 (grub_freebsd_add_meta): Likewise
755 (grub_freebsd_add_meta_module): Likewise
756 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
757 (grub_freebsd_add_meta_module): Likewise and move module-specific
758 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
759 (grub_cmd_freebsd): Add elf-kernel specific parts
760 based on grub_freebsd_add_meta_module
761 (grub_cmd_freebsd_module): Add type parsing moved from
762 grub_freebsd_add_meta_module
763 (grub_cmd_freebsd_module_elf): New function
764 (cmd_freebsd_module_elf): New variable
765 (GRUB_MOD_INIT): Register freebsd_module_elf
766 * loader/i386/bsd32.c: New file
767 * loader/i386/bsd64.c: Likewise
768 * loader/i386/bsdXX.c: Likewise
769 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
770 (grub_elf64_load): Likewise
771 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
773 (grub_elf64_load_hook_t): Likewise
775 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
777 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
779 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
780 don't write a menu entry for recovery mode.
782 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
784 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
785 after it's no longer needed.
787 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
789 * include/grub/i386/loader.h (grub_linux_prot_size)
790 (grub_linux_tmp_addr, grub_linux_real_addr)
791 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
793 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
794 common grub_util_info() call to ...
795 (generate_image): ... here.
796 Fix use of uninitialized memory, comparison of signed with
797 unsigned integers and memory leak.
798 Remove bogus module address message.
800 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
802 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
804 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
806 2009-06-19 Pavel Roskin <proski@gnu.org>
808 * configure.ac: Remove stray AC_MSG_CHECKING.
810 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
812 * disk/scsi.c (grub_scsi_open): use continue instead of big if
814 2009-06-18 Pavel Roskin <proski@gnu.org>
816 * conf/common.rmk: Add fs_file.mod.
817 * disk/fs_file.c: New file.
818 * include/grub/disk.h (enum grub_disk_dev_id): Add
819 GRUB_DISK_DEVICE_FILE_ID.
821 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
823 Fix build with Apple's toolchain. Part 2
825 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
828 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
830 Fix build with Apple's toolchain. Part 1
832 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
834 * configure.ac: remove a leftover AC_MSG_RESULT
835 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
838 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
842 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
843 (decomp_block): initialize ch
844 use grub_memcpy instead of memcpy
846 2009-06-17 Pavel Roskin <proski@gnu.org>
848 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
849 version, use declarations needed to use vga_text as the startup
852 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
853 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
855 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
856 and grub_at_keyboard_fini(), it's done on module load and
859 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
861 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
863 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
865 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
869 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
870 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
871 (grub_script_yylex): don't segfault on unterminated script
872 newline terminates command and variable
874 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
876 avoid double grub_adjust_range call. Bug reported by David Simner
878 * kern/disk.c (grub_disk_write): change to raw disk access before
881 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
883 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
884 spaces, for the benefit of help2man.
885 * util/i386/efi/grub-mkimage.c (usage): Likewise.
887 2009-06-16 Pavel Roskin <proski@gnu.org>
889 * kern/i386/halt.c: Include grub/machine/init.h.
890 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
892 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
894 * util/grub.d/30_os-prober.in: Use ${root} in the generated
897 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
899 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
902 2009-06-16 Pavel Roskin <proski@gnu.org>
904 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
905 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
906 save %dx, we only need %dl and we never change it.
907 * boot/i386/pc/cdboot.S: Don't set the root drive.
908 * boot/i386/pc/pxeboot.S: Likewise.
909 * include/grub/i386/pc/boot.h: Remove
910 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
911 GRUB_BOOT_MACHINE_DRIVE_CHECK.
912 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
913 * kern/i386/pc/init.c (make_install_device): Remove references
915 * kern/i386/pc/startup.S: Likewise.
916 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
918 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
922 * commands/xnu_uuid.c: new file
923 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
924 (xnu_uuid_mod_SOURCES): new variable
925 (xnu_uuid_mod_CFLAGS): likewise
926 (xnu_uuid_mod_LDFLAGS): likewise
927 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
928 * conf/i386-ieee1275.rmk: likewise
929 * conf/i386-pc.rmk: likewise
930 * conf/powerpc-ieee1275.rmk: likewise
931 * conf/sparc64-ieee1275.rmk: likewise
932 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
934 2009-06-16 Pavel Roskin <proski@gnu.org>
936 * configure.ac: Avoid '==' in test command, it's not portable.
938 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
942 * commands/probe.c: new file
943 * conf/common.rmk (pkglib_MODULES): add probe.mod
944 (probe_mod_SOURCES): new variable
945 (probe_mod_CFLAGS): likewise
946 (probe_mod_LDFLAGS): likewise
947 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
948 * conf/i386-ieee1275.rmk: likewise
949 * conf/i386-pc.rmk: likewise
950 * conf/powerpc-ieee1275.rmk: likewise
951 * conf/sparc64-ieee1275.rmk: likewise
953 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
955 Fix handling of string like \"hello\" and "a
958 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
959 (grub_script_yylex): fix parsing of quoting, escaping and newline
961 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
963 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
966 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
968 * util/grub-mkconfig.in: Fix parsing of --output option.
970 2009-06-12 Pavel Roskin <proski@gnu.org>
972 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
973 genmk.rb don't need to be generated or installed.
975 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
977 * commands/i386/pc/drivemap_int13h.S: add more comments
979 2009-06-11 Pavel Roskin <proski@gnu.org>
981 * Makefile.in (uninstall): Uninstall manuals.
983 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
984 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
985 and update-grub_lib in two places.
986 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
988 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
991 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
992 `entry_lo' to fix variable shadowing.
994 2009-06-11 Christian Franke <franke@computer.org>
996 * kern/misc.c (__enable_execute_stack): Add missing return type
997 to prevent gcc warning.
999 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
1001 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
1003 2009-06-11 Pavel Roskin <proski@gnu.org>
1005 * Makefile.in: Don't rely on any scripts being executable.
1006 Always use $(SHELL) to run shell scripts.
1008 * configure.ac: Always define ___main if using -nostdlib. This
1009 fixes tests on Cygwin.
1011 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
1015 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
1016 is in bytes and not in blocks
1018 2009-06-11 Pavel Roskin <proski@gnu.org>
1020 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
1023 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
1025 * util/grub.d/30_os-prober.in: Fix a comment. Source
1026 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
1027 to set the root device. Place drivemap command in the generated
1030 2009-06-11 Pavel Roskin <proski@gnu.org>
1032 * configure.ac: Remove host_m32. Issues with 64-bit utilities
1033 have long been resolved.
1035 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
1037 * util/grub.d/10_linux.in: Capitalise "Linux".
1039 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
1041 2009-06-11 Pavel Roskin <proski@gnu.org>
1043 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
1044 fix a gcc warning and ensure that the function won't ever exit.
1046 * kern/i386/ieee1275/init.c: Add missing prototype for
1049 * loader/ieee1275/multiboot2.c [__i386__]: Include
1050 grub/cpu/multiboot.h.
1052 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
1053 casts to short - they are not portable and cause warnings. Fix
1054 use of uninitialized values in input_buf. Use ARRAY_SIZE.
1056 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1060 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
1062 (grub_get_root_biosnumber_saved): new variable
1063 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
1064 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
1065 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
1066 %dx after the call if necessary
1067 * conf/common.rmk (pkglib_MODULES): remove boot.mod
1068 (boot_mod_SOURCES): remove
1069 (boot_mod_CFLAGS): remove
1070 (boot_mod_LDFLAGS): remove
1071 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
1072 (boot_mod_SOURCES): new variable
1073 (boot_mod_CFLAGS): likewise
1074 (boot_mod_LDFLAGS): likewise
1075 * conf/i386-efi.rmk: likewise
1076 * conf/i386-ieee1275.rmk: likewise
1077 * conf/i386-pc.rmk: likewise
1078 * conf/powerpc-ieee1275.rmk: likewise
1079 * conf/sparc64-ieee1275.rmk: likewise
1080 * conf/x86_64-efi.rmk: likewise
1081 * include/grub/i386/pc/biosnum.h: new file
1082 * lib/i386/pc/biosnum.c: likewise
1083 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
1084 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
1085 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
1087 2009-06-10 Pavel Roskin <proski@gnu.org>
1089 * io/gzio.c (test_header): Don't reuse one buffer for all data.
1090 Use separate variables. Read only the file size at the end, but
1091 not the checksum that we don't use.
1093 * kern/file.c (grub_file_read): Use void pointer for the buffer.
1096 * kern/ieee1275/openfw.c: Remove libc includes.
1097 * kern/ieee1275/cmain.c: Likewise.
1098 * include/grub/ieee1275/ieee1275.h: Likewise.
1100 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
1103 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
1105 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
1106 `genparttoollist.sh'.
1107 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
1108 Add `*.sh' to the list find searches for and change `mdate.sh'
1111 2009-06-10 Pavel Roskin <proski@gnu.org>
1113 * include/grub/multiboot2.h: Provide compatibility defines for
1115 * include/multiboot2.h: Include stdint.h only if needed, using
1117 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
1119 * loader/ieee1275/multiboot2.c: Likewise.
1120 * loader/multiboot2.c: Likewise.
1121 * loader/multiboot_loader.c: Likewise.
1123 * configure.ac: Use -nostdlib when probing for the target. It
1124 should not be required to have libc for the target.
1126 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
1127 they fail without libc headers for the target.
1128 * include/grub/powerpc/libgcc.h: Use weak attribute for all
1130 * include/grub/sparc64/libgcc.h: Likewise. Don't use
1131 preprocessor conditionals.
1133 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
1134 build system doesn't need to be aware of the tar.c internals.
1136 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
1138 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
1140 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
1142 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
1143 disk limit to 26 for IDE, Virtio, Xen and SCSI.
1145 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
1147 * util/i386/pc/grub-install.in: Change the error message if UUIDs
1148 aren't available if ata.mod gets used.
1150 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
1152 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
1153 initialising controller.
1154 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
1156 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
1158 * util/i386/pc/grub-install.in: Add a parameter --disk-module
1159 to choose between ata and biosdisk module on i386-pc.
1161 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
1163 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
1164 Subclass and Programming Interface fields in terms of the 3 byte
1165 Class Code register.
1166 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
1168 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
1169 interface is OHCI. Add grub_dprintf for symmetry with
1171 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
1172 interface is UHCI. Add interf variable for programming
1173 interface. Print interface with class/subclass.
1175 * bus/usb/ohci.c: Set interf with correct field.
1177 * bus/usb/uhci.c: Remove unneeded doubled lines.
1178 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
1179 Remove whitespace inside comment.
1181 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
1183 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
1184 as fallback an equivalent option without depth.
1186 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1188 Not fail if unable to retrieve C/H/S on LBA disks
1190 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
1191 if unable to retrieve C/H/S on LBA disks
1193 2009-06-08 Pavel Roskin <proski@gnu.org>
1195 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
1198 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
1200 * Makefile.in (uninstall): Remove all $lib_DATA files.
1202 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1204 Bugfix: install on partitionless device
1206 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
1209 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
1211 * Makefile.in (uninstall): Remove all $include_DATA files.
1213 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
1215 * commands/true.c: New file. Implement the true and false commands.
1216 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
1217 (true_mod_SOURCES): New variable.
1218 (true_mod_CFLAGS): Likewise.
1219 (true_mod_LDFLAGS): Likewise.
1221 2009-06-05 Colin D Bennett <colin@gibibit.com>
1223 Optimized font character lookup using binary search instead of linear
1224 search. Fonts now are required to have the character index ordered by
1227 * font/font.c (load_font_index): Verify that fonts have ordered
1229 (find_glyph): Use binary search instead of linear search to find a
1230 character in a font.
1232 2009-06-05 Michael Scherer <misc@mandriva.org>
1234 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
1235 uses case sensitive btree.
1236 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
1237 only for case insensitive filesystems.
1239 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1241 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
1242 * conf/common.rmk (search_mod_CFLAGS): likewise
1244 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1246 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
1247 compensate a compiler bug
1249 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1251 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
1254 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1256 Definitions for creating asm symbols with Apple's CC
1258 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
1259 [APPLE_CC] (VARIABLE): likewise
1261 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1263 Disable lnxboot.img when compiled
1266 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
1267 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
1268 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
1269 [! APPLE_CC] (CODE_LENG): skip
1270 [! APPLE_CC] (setup_sects): likewise
1271 [! APPLE_CC]: skip filling
1273 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1275 Address in trampolines based on 32-bit registers when compiled
1278 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
1280 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
1282 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1284 Avoid aliases when compiling with Apple's CC for PCBIOS machine
1286 * kern/misc.c [APPLE_CC] (memcpy): new function
1287 [APPLE_CC] (memmove): likewise
1288 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
1289 (memcpy): define alias conditionally on !APPLE_CC
1292 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
1293 APPLE_CC are defined
1294 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
1295 (grub_assert_fail): make prototype conditional
1297 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1299 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
1301 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
1303 (CLEANFILES): add grub-macho2img
1304 (grub_macho2img_SOURCES): new variable
1305 * kern/i386/pc/startup.S (bss_start): new variable
1307 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
1308 * util/grub-macho2img.c: new file
1310 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1312 Use objconv when compiling with Apple's CC
1314 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
1315 (efiemu64.o): likewise
1316 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
1317 when compiling with Apple's CC
1318 (efiemu64_s.o): likewise
1319 * configure.ac: check for objconv when compiling with Apple's CC
1320 * genmk.rb: use objconv for modules when compiled with Apple's CC
1322 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1324 Define segment as well as section when compiling with
1327 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
1328 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
1329 (efiemu_convert_pointer): likewise
1330 (efiemu_set_virtual_address_map): likewise
1331 (efiemu_convert_pointer): likewise
1332 (efiemu_getcrc32): likewise
1333 (init_crc32_table): likewise
1335 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
1336 (GRUB_MOD_DEP): likewise
1338 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1340 Allow a compilation without -mcmodel=large
1342 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
1343 when compiled without -mcmodel=large
1344 (filter_memory_map): remove memory post 4 GiB when compiled
1345 without -mcmodel=large
1346 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
1347 TARGET_CFLAGS when -mcmodel=large isn't supported
1349 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1351 Remove nested functions in efiemu core
1353 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
1355 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1357 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
1359 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
1361 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
1363 (grub_cpu_is_tsc_supported): likewise
1364 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
1366 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1368 Absolute addressing through constant with Apple's cc
1370 * kern/i386/pc/startup.S: Define necessary constants
1371 and address through it when using ABS with Apple's CC
1372 * boot/i386/pc/diskboot.S: likewise
1373 * boot/i386/pc/boot.S: likewise
1374 * boot/i386/pc/lnxboot.S: likewise
1375 * boot/i386/pc/cdboot.S: likewise
1376 * mmap/i386/pc/mmap_helper.S: likewise
1377 * commands/i386/pc/drivemap_int13h.S: likewise
1379 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1381 Check if compiler is apple cc
1383 * Makefile.in (ASFLAGS): new variable
1384 (TARGET_ASFLAGS): likewise
1385 (TARGET_MODULE_FORMAT): likewise
1386 (TARGET_APPLE_CC): likewise
1388 (TARGET_IMG_CFLAGS): likewise
1389 (TARGET_CPPFLAGS): add includedir
1390 * configure.ac: call grub_apple_cc and grub_apple_target_cc
1391 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
1392 Check for linker script only if compiler isn't Apple's CC
1393 (TARGET_MODULE_FORMAT): set
1394 (TARGET_APPLE_CC): likewise
1395 (TARGET_ASFLAGS): likewise
1397 Check for objcopy only if compiler isn't Apple's CC
1398 Check for BSS symbol only if compiler isn't Apple's CC
1399 * genmk.rb: adapt nm options if we use Apple's utils
1400 * aclocal.m4 (grub_apple_cc): new test
1401 (grub_apple_target_cc): likewise
1403 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1405 Simplify sed expressions and improve awk
1407 * Makefile.in (install-local): simplify sed expression
1408 * gencmdlist.sh: likewise
1409 * genmoddep.awk: avoid adding module as a dependency of itself
1411 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1413 Add missing start symbols
1415 * boot/i386/pc/boot.S: add start
1416 * boot/i386/pc/pxeboot.S: likewise
1418 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1420 Fix wrong assumptions with grub-mkimage on EFI
1422 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
1423 (relocate_addresses): consider both r_addend and value at offset
1424 (make_mods_section): zerofill modinfo and header
1425 (convert_elf): write prefix here
1427 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1429 Use .asciz instead of .string
1431 * i386/pc/diskboot.S: use .asciz instead of .string
1432 * i386/pc/boot.S: likewise
1433 * include/grub/dl.h (GRUB_MOD_DEP): likewise
1434 (GRUB_MOD_NAME): likewise
1436 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1440 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
1441 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
1442 (grub_video_setup): remove
1443 (grub_video_set_mode): new prototype
1444 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
1446 (linux_vesafb_res): compile only on PCBIOS
1447 (grub_linux_boot): support gfxpayload
1448 * loader/i386/pc/xnu.c (video_hook): new function
1449 (grub_xnu_set_video): support gfxpayload
1450 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
1451 (DEFAULT_VIDEO_HEIGHT): likewise
1452 (DEFAULT_VIDEO_FLAGS): likewise
1453 (DEFAULT_VIDEO_MODE): new definition
1454 (video_hook): new function
1455 (grub_gfxterm_init): use grub_video_set_mode
1456 * util/grub.d/30_os-prober.in: remove explicit modesetting before
1458 * video/video.c (grub_video_setup): removed
1459 (grub_video_set_mode): new function based on grub_gfxterm_init and
1462 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1464 Avoid calling biosdisk in drivemap
1466 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
1467 (revparse_biosdisk): likewise
1468 (list_mappings): derive name from id directly
1469 (grub_cmd_drivemap): use tryparse_diskstring
1471 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1475 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
1476 (grub_lexer_param): add tokenonhold
1477 (grub_script_create_cmdline): remove cmdline. All callers updated
1478 (grub_script_function_create): make functionname
1479 grub_script_arg. All callers updated
1480 (grub_script_execute_argument_to_string): new prototype
1481 * kern/parser.c (state_transitions): reorder
1482 (grub_parser_cmdline_state): fix a bug and make more compact
1483 * script/sh/execute.c (grub_script_execute_argument_to_string):
1485 (grub_script_execute_cmdline): use new format
1486 * script/sh/function.c (grub_script_function_create): make functionname
1487 grub_script_arg. All callers updated
1488 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
1489 (grub_script_yylex): remove
1490 (grub_script_yylex2): renamed to ...
1491 (grub_script_yylex): ...renamed
1492 parse the expressions like a${b}c
1493 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
1494 (GRUB_PARSER_TOKEN_VAR): remove
1495 (GRUB_PARSER_TOKEN_NAME): likewise
1496 ("if"): declare as typeless
1498 ("function"): likewise
1503 (argument): likewise
1504 (script): accept empty scripts and make exit on error
1505 (arguments): use GRUB_PARSER_TOKEN_ARG
1506 (function): likewise
1507 (command): move error handling to script
1508 (menuentry): move grub_script_lexer_ref before
1509 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
1510 argument. All callers updated
1512 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
1514 Prevent GRUB from probing floppies during boot.
1516 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
1517 * commands/search.c (options): Add --no-floppy.
1518 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
1519 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
1520 --no-floppy when searching for UUIDs.
1522 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
1524 Simplify the code duplication in commands/search.c.
1526 * commands/search.c (search_label, search_fs_uuid): Merge into ...
1527 (search_fs): ... this. Update all users.
1529 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
1531 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
1533 2009-05-28 Pavel Roskin <proski@gnu.org>
1535 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
1536 Remove the original symlink explicitly.
1538 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
1539 just one slash. That's how grub_fshelp_find_file() does it.
1541 2009-05-26 Pavel Roskin <proski@gnu.org>
1543 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
1546 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
1549 2009-05-25 Christian Franke <franke@computer.org>
1551 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
1553 (grub_atapi_identify): Add wait after drive select.
1554 (grub_ata_identify): Do more strict status register check before
1555 calling grub_atapi_identify (). Suppress error message if status
1556 register is 0x00 after command failure. Add status register
1557 check after PIO read to avoid bogus identify due to stuck DRQ.
1558 Thanks to Pavel Roskin for testing.
1559 (grub_device_initialize): Remove unsafe status register check.
1560 Thanks to 'phcoder' for problem report and patch.
1561 Prevent sign extension in debug message.
1563 2009-05-23 Colin D Bennett <colin@gibibit.com>
1565 Cleaned up `include/grub/normal.h'. Grouped prototypes by
1566 definition file, and functions defined in `normal/menu.c' have had
1567 their prototypes moved to `include/grub/menu.h' for consistency.
1569 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
1571 (grub_menu_get_entry): Likewise.
1572 (grub_menu_get_timeout): Likewise.
1573 (grub_menu_set_timeout): Likewise.
1574 (grub_menu_execute_entry): Likewise.
1575 (grub_menu_execute_with_fallback): Likewise.
1576 (grub_menu_entry_run): Likewise.
1578 * include/grub/normal.h: Re-ordered and grouped function
1579 prototypes by file that the function is defined in.
1580 (grub_menu_execute_callback): Removed; moved to menu.h.
1581 (grub_menu_get_entry): Likewise.
1582 (grub_menu_get_timeout): Likewise.
1583 (grub_menu_set_timeout): Likewise.
1584 (grub_menu_execute_entry): Likewise.
1585 (grub_menu_execute_with_fallback): Likewise.
1586 (grub_menu_entry_run): Likewise.
1587 (grub_menu_addentry): Renamed from this ...
1588 (grub_normal_add_menu_entry): ... to this.
1590 * normal/main.c (grub_menu_addentry): Renamed from this ...
1591 (grub_normal_add_menu_entry): ... to this.
1593 * script/sh/execute.c (grub_script_execute_menuentry): Update
1594 reference to renamed grub_menu_addentry function.
1596 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
1598 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
1600 2009-05-22 Pavel Roskin <proski@gnu.org>
1602 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
1603 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
1604 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
1605 compiling for the i386 targets, but not for the utilities.
1607 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
1609 (grub_root_drive): Likewise.
1610 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
1612 (grub_root_drive): Change size to byte.
1613 (grub_start_addr): Remove.
1614 (grub_end_addr): Likewise.
1615 (grub_apm_bios_info): Likewise.
1617 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
1619 * normal/i386: Remove.
1620 * normal/powerpc: Likewise.
1621 * normal/sparc64: Likewise.
1622 * normal/x86_64: Likewise.
1624 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
1626 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
1627 * loader/i386/linux_trampoline.S: Fix indentation
1628 * loader/i386/xnu_helper.S: Likewise
1630 2009-05-18 Colin D Bennett <colin@gibibit.com>
1632 Display error messages when parsing a Lua statement fails.
1633 Previously, executing a syntactically invalid statement like
1634 ")foo" or "bar;" would silently fail.
1636 * script/lua/grub_main.c (handle_lua_error): New function.
1637 (grub_lua_parse_line): Improved reporting of Lua parser and
1640 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1642 Remove -Werror which causes build to fail on some systems
1644 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
1645 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
1646 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
1648 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1650 trampoline for linux on 64-bit platform
1652 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
1653 loader/i386/efi/linux_trampoline.S
1654 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
1656 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
1658 * loader/i386/linux_trampoline.S: moved here
1659 * loader/i386/efi/linux.c (allocate_pages): reserve space for
1661 (jumpvector): removed
1662 (grub_linux_trampoline_start): new declaration
1663 (grub_linux_trampoline_end): likewise
1664 (grub_linux_boot): use trampoline when on 64-bit platform
1665 * loader/i386/linux.c: likewise
1667 2009-05-16 Pavel Roskin <proski@gnu.org>
1669 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
1670 const to avoid a warning.
1671 (grub_lua_setenv): Likewise.
1672 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
1673 lmsg to fix a warning.
1675 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
1677 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
1678 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
1679 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
1680 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
1681 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
1682 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
1683 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
1684 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
1686 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
1688 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
1690 2009-05-16 Bean <bean123ch@gmail.com>
1692 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
1693 (lua_mod_SOURCES): New variable.
1694 (lua_mod_CFLAGS): Likewise.
1695 (lua_mod_LDFLAGS): Likewise.
1697 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
1698 (setjmp_mod_SOURCES): New variable.
1699 (setjmp_mod_CFLAGS): Likewise.
1700 (setjmp_LDFLAGS): Likewise.
1702 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
1703 (setjmp_mod_SOURCES): New variable.
1704 (setjmp_mod_CFLAGS): Likewise.
1705 (setjmp_LDFLAGS): Likewise.
1707 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
1708 (setjmp_mod_SOURCES): New variable.
1709 (setjmp_mod_CFLAGS): Likewise.
1710 (setjmp_LDFLAGS): Likewise.
1712 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
1713 (setjmp_mod_SOURCES): New variable.
1714 (setjmp_mod_CFLAGS): Likewise.
1715 (setjmp_LDFLAGS): Likewise.
1717 * normal/i386/setjmp.S: Moved from here ...
1718 * lib/i386/setjmp.S: ... Moved here
1719 * normal/x86_64/setjmp.S: Moved from here ...
1720 * lib/x86_64/setjmp.S: ... Moved here
1721 * normal/powerpc/setjmp.S: Moved from here ...
1722 * lib/powerpc/setjmp.S: ... Moved here
1723 * normal/sparc64/setjmp.S: Moved from here ...
1724 * lib/sparc64/setjmp.S: ... Moved here
1726 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
1727 returns_twice in mingw.
1729 * script/lua/grub_lib.c: New file.
1730 * script/lua/grub_lib.h: Likewise.
1731 * script/lua/grub_lua.h: Likewise.
1732 * script/lua/grub_main.c: Likewise.
1733 * script/lua/lapi.c: Likewise.
1734 * script/lua/lapi.h: Likewise.
1735 * script/lua/lauxlib.c: Likewise.
1736 * script/lua/lauxlib.h: Likewise.
1737 * script/lua/lbaselib.c: Likewise.
1738 * script/lua/lcode.c: Likewise.
1739 * script/lua/lcode.h: Likewise.
1740 * script/lua/ldblib.c: Likewise.
1741 * script/lua/ldebug.c: Likewise.
1742 * script/lua/ldebug.h: Likewise.
1743 * script/lua/ldo.c: Likewise.
1744 * script/lua/ldo.h: Likewise.
1745 * script/lua/ldump.c: Likewise.
1746 * script/lua/lfunc.c: Likewise.
1747 * script/lua/lfunc.h: Likewise.
1748 * script/lua/lgc.c: Likewise.
1749 * script/lua/lgc.h: Likewise.
1750 * script/lua/linit.c: Likewise.
1751 * script/lua/liolib.c: Likewise.
1752 * script/lua/llex.c: Likewise.
1753 * script/lua/llex.h: Likewise.
1754 * script/lua/llimits.h: Likewise.
1755 * script/lua/lmathlib.c: Likewise.
1756 * script/lua/lmem.c: Likewise.
1757 * script/lua/lmem.h: Likewise.
1758 * script/lua/loadlib.c: Likewise.
1759 * script/lua/lobject.c: Likewise.
1760 * script/lua/lobject.h: Likewise.
1761 * script/lua/lopcodes.c: Likewise.
1762 * script/lua/lopcodes.h: Likewise.
1763 * script/lua/loslib.c: Likewise.
1764 * script/lua/lparser.c: Likewise.
1765 * script/lua/lparser.h: Likewise.
1766 * script/lua/lstate.c: Likewise.
1767 * script/lua/lstate.h: Likewise.
1768 * script/lua/lstring.c: Likewise.
1769 * script/lua/lstring.h: Likewise.
1770 * script/lua/lstrlib.c: Likewise.
1771 * script/lua/ltable.c: Likewise.
1772 * script/lua/ltable.h: Likewise.
1773 * script/lua/ltablib.c: Likewise.
1774 * script/lua/ltm.c: Likewise.
1775 * script/lua/ltm.h: Likewise.
1776 * script/lua/lua.h: Likewise.
1777 * script/lua/luaconf.h: Likewise.
1778 * script/lua/lualib.h: Likewise.
1779 * script/lua/lundump.c: Likewise.
1780 * script/lua/lundump.h: Likewise.
1781 * script/lua/lvm.c: Likewise.
1782 * script/lua/lvm.h: Likewise.
1783 * script/lua/lzio.c: Likewise.
1784 * script/lua/lzio.h: Likewise.
1786 2009-05-16 Bean <bean123ch@gmail.com>
1788 * include/grub/kernel.h (grub_module_header_types): Add type
1791 * kern/main.c (grub_load_config): New function.
1792 (grub_main): Call grub_load_config to read boot config.
1794 * grub-mkimage (generate_image): New parameter config_path.
1795 (options): New option --config.
1796 (main): Parse --config option, and pass it to generate_image.
1798 2009-05-14 Christian Franke <franke@computer.org>
1800 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
1801 This fixes build on Cygwin.
1803 2009-05-14 Pavel Roskin <proski@gnu.org>
1805 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
1806 jump. This saves two bytes, so the typical case of 2 swapped
1807 drives would fit 32 bytes.
1809 2009-05-13 Pavel Roskin <proski@gnu.org>
1811 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
1812 grub_uint32_t to avoid a warning.
1814 * loader/i386/linux.c (allocate_pages): When assigning
1815 real_mode_mem, cast through grub_size_t to fix a warning. The
1816 code already makes sure that the value would fit a pointer.
1817 (grub_linux_setup_video): Cast render_target->data to
1818 grub_size_t to fix a warning.
1820 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
1822 * commands/i386/pc/drivemap.c: New file - implement drivemap
1824 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
1825 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
1827 2009-05-13 Pavel Roskin <proski@gnu.org>
1829 * util/i386/pc/grub-setup.c (setup): Remove unused variable
1830 embedding_area_exists.
1832 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
1834 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
1835 it easier to understand / work with.
1836 Improve warning messages for cases where there's no embedding area,
1837 or when it is too small (or core.img too large).
1839 2009-05-13 Pavel Roskin <proski@gnu.org>
1841 * loader/i386/pc/multiboot2.c: Add necessary includes for
1842 grub_multiboot2_real_boot().
1844 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
1845 PX record is always little-endian. We only need the lower 2
1848 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
1849 facilitate code reuse.
1850 (grub_cpio_mount): Use "struct head", not a char buffer. This
1851 fixes a warning reported by gcc 4.4.
1853 * kernel/disk.c (grub_disk_read): Use void pointer for the
1855 (grub_disk_write): Use const void pointer for the buffer.
1856 Adjust all callers. Remove unnecessary casts.
1858 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
1860 * util/i386/pc/grub-install.in: Update copyright year.
1862 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1866 * commands/gptsync.c: new file
1867 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
1868 (gptsync_mod_SOURCES): new variable
1869 (gptsync_mod_CFLAGS): likewise
1870 (gptsync_mod_LDFLAGS): likewise
1871 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
1873 (GRUB_PC_PARTITION_TYPE_HFS): likewise
1874 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
1875 * conf/i386-ieee1275.rmk: likewise
1876 * conf/i386-pc.rmk: likewise
1877 * conf/powerpc-ieee1275.rmk: likewise
1879 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1883 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
1884 (grub_dl_ref): likewise
1886 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
1888 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
1889 split in two functions (one for msdos and one for gpt).
1891 2009-05-08 Pavel Roskin <proski@gnu.org>
1893 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
1896 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
1897 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
1898 Initialize them with -1. Add sanity check for bad1. Eliminate
1901 2009-05-08 David S. Miller <davem@davemloft.net>
1903 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
1905 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
1907 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
1910 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
1912 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1913 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
1915 2009-05-05 David S. Miller <davem@davemloft.net>
1917 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
1919 2009-05-05 Pavel Roskin <proski@gnu.org>
1921 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
1922 of grub_dl_ref() and grub_dl_unref().
1923 * commands/parttool.c: Remove preprocessor conditionals around
1924 grub_dl_ref() and grub_dl_unref().
1925 * fs/affs.c: Likewise.
1926 * fs/afs.c: Likewise.
1927 * fs/cpio.c: Likewise.
1928 * fs/ext2.c: Likewise.
1929 * fs/fat.c: Likewise.
1930 * fs/hfs.c: Likewise.
1931 * fs/hfsplus.c: Likewise.
1932 * fs/iso9660.c: Likewise.
1933 * fs/jfs.c: Likewise.
1934 * fs/minix.c: Likewise.
1935 * fs/ntfs.c: Likewise.
1936 * fs/reiserfs.c: Likewise.
1937 * fs/sfs.c: Likewise.
1938 * fs/udf.c: Likewise.
1939 * fs/ufs.c: Likewise.
1940 * fs/xfs.c: Likewise.
1941 * include/grub/dl.h: Likewise.
1942 * loader/xnu.c: Likewise.
1944 2009-05-04 Pavel Roskin <proski@gnu.org>
1946 * commands/acpi.c: Remove unused variable my_mod.
1947 * partmap/amiga.c: Likewise.
1948 * partmap/apple.c: Likewise.
1949 * partmap/gpt.c: Likewise.
1950 * partmap/pc.c: Likewise.
1951 * partmap/sun.c: Likewise.
1952 * term/gfxterm.c: Likewise.
1953 * term/i386/pc/vesafb.c: Likewise.
1954 * term/i386/pc/vga.c: Likewise.
1956 2009-05-04 David S. Miller <davem@davemloft.net>
1958 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
1959 pointer args to grub_ieee1275_get_property().
1961 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
1963 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
1964 devices, and do not traverse down under controller nodes.
1966 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
1967 (grub_ofdisk_open): Use it to un-escape "," characters.
1968 * kern/disk.c (find_part_sep): New.
1969 (grub_disk_open): Use it to find the first non-escaped ','
1970 character in the disk name.
1971 * util/ieee1275/devicemap.c (escape_of_path): New.
1972 (grub_util_emit_devicemap_entry): Use it.
1973 * util/sparc64/ieee1275/grub-install.in: Update script to
1974 strip partition specifiers properly by not triggering on
1975 '\' escaped ',' characters.
1977 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
1979 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
1981 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
1983 (linux_vesafb_modes): Add a lot of additional modes to the list (based
1984 on documentation from Wikipedia).
1986 2009-05-04 Pavel Roskin <proski@gnu.org>
1988 * disk/ata.c: Spelling fixes.
1989 * disk/raid.c: Likewise.
1990 * disk/usbms.c: Likewise.
1991 * disk/dmraid_nvidia.c: Likewise.
1992 * kern/ieee1275/openfw.c: Likewise.
1993 * kern/ieee1275/init.c: Likewise.
1994 * kern/ieee1275/cmain.c: Likewise.
1995 * boot/i386/pc/cdboot.S: Likewise.
1996 * video/readers/png.c: Likewise.
1997 * video/i386/pc/vbe.c: Likewise.
1998 * fs/udf.c: Likewise.
1999 * fs/hfs.c: Likewise.
2000 * fs/reiserfs.c: Likewise.
2001 * efiemu/runtime/efiemu.c: Likewise.
2002 * efiemu/main.c: Likewise.
2003 * efiemu/mm.c: Likewise.
2004 * include/grub/elf.h: Likewise.
2005 * include/grub/xnu.h: Likewise.
2006 * include/grub/usbdesc.h: Likewise.
2007 * include/grub/usb.h: Likewise.
2008 * include/grub/script_sh.h: Likewise.
2009 * include/grub/lib/LzmaEnc.h: Likewise.
2010 * include/grub/efiemu/efiemu.h: Likewise.
2011 * include/grub/command.h: Likewise.
2012 * normal/menu.c: Likewise.
2013 * normal/main.c: Likewise.
2014 * normal/datetime.c: Likewise.
2015 * bus/usb/uhci.c: Likewise.
2016 * mmap/i386/uppermem.c: Likewise.
2017 * mmap/mmap.c: Likewise.
2018 * commands/acpi.c: Likewise.
2019 * commands/test.c: Likewise.
2020 * partmap/apple.c: Likewise.
2021 * font/font.c: Likewise.
2022 * loader/sparc64/ieee1275/linux.c: Likewise.
2023 * loader/macho.c: Likewise.
2024 * loader/i386/bsd_trampoline.S: Likewise.
2025 * loader/i386/bsd.c: Likewise.
2026 * loader/xnu.c: Likewise.
2027 * term/i386/pc/vesafb.c: Likewise.
2028 * term/usb_keyboard.c: Likewise.
2029 * util/resolve.c: Likewise.
2030 * util/getroot.c: Likewise.
2032 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
2034 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
2036 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
2038 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
2041 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
2043 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
2044 parameter only available on BIOS.
2046 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2048 Removed wrong semicolon in declaration
2050 * grub/misc.h (grub_dprintf): remove semicolon
2052 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
2054 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
2055 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
2056 is done by grub_cmd_linux() now).
2057 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
2058 restore video to text mode.
2059 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
2060 indicates lack of "vga=" parameter. "vga=0" is mapped to
2061 `GRUB_LINUX_VID_MODE_NORMAL'.
2063 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
2065 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
2066 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
2067 and `normal/script.c'. Add `kern/rescue_reader.c',
2068 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
2069 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
2070 `grub_script.tab.c'.
2072 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2073 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
2074 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2075 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
2076 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2078 * Makefile.in: Remove duplicated 2008 in Copyright line.
2080 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
2082 * util/misc.c (grub_util_warn): New function. Emits a warning
2084 * include/grub/util/misc.h (grub_util_warn): New declaration.
2086 * util/i386/pc/grub-install.in: Understand --force and pass it down
2089 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
2091 (setup): Improve error messages and add warnings when requested to
2092 install in odd layouts. Refuse to install using blocklists unless
2095 2009-05-04 martin f. krafft <madduck@madduck.net>
2097 * disk/raid.c (grub_raid_scan_device): Improve debug message.
2099 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2101 Updated copyright year
2103 * fs/hfsplus.c: updated copyright year
2105 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2109 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
2110 in the space previously used by unused3
2111 (grub_hfsplus_uuid): new function
2112 (grub_hfsplus_fs): added uuid field
2114 2009-05-03 Pavel Roskin <proski@gnu.org>
2116 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
2117 suppress warnings. It's no longer needed.
2118 * disk/host.c: Likewise.
2119 * disk/ata_pthru.c: Likewise.
2120 * disk/loopback.c: Likewise.
2121 * hook/datehook.c: Likewise.
2122 * parttool/pcpart.c: Likewise.
2123 * fs/i386/pc/pxe.c: Likewise.
2124 * fs/ntfscomp.c: Likewise.
2125 * efiemu/main.c: Likewise.
2126 * mmap/mmap.c: Likewise.
2127 * commands/crc.c: Likewise.
2128 * commands/hexdump.c: Likewise.
2129 * commands/hdparm.c: Likewise.
2130 * commands/acpi.c: Likewise.
2131 * commands/echo.c: Likewise.
2132 * commands/minicmd.c: Likewise.
2133 * commands/blocklist.c: Likewise.
2134 * commands/memrw.c: Likewise.
2135 * commands/loadenv.c: Likewise.
2136 * commands/usbtest.c: Likewise.
2137 * commands/lsmmap.c: Likewise.
2138 * commands/boot.c: Likewise.
2139 * commands/parttool.c: Likewise.
2140 * commands/configfile.c: Likewise.
2141 * commands/search.c: Likewise.
2142 * commands/ieee1275/suspend.c: Likewise.
2143 * commands/cat.c: Likewise.
2144 * commands/i386/pc/pxecmd.c: Likewise.
2145 * commands/i386/pc/play.c: Likewise.
2146 * commands/i386/pc/halt.c: Likewise.
2147 * commands/i386/pc/vbeinfo.c: Likewise.
2148 * commands/i386/pc/vbetest.c: Likewise.
2149 * commands/lspci.c: Likewise.
2150 * commands/date.c: Likewise.
2151 * commands/handler.c: Likewise.
2152 * commands/ls.c: Likewise.
2153 * commands/test.c: Likewise.
2154 * commands/cmp.c: Likewise.
2155 * commands/efi/loadbios.c: Likewise.
2156 * commands/efi/fixvideo.c: Likewise.
2157 * commands/halt.c: Likewise.
2158 * commands/help.c: Likewise.
2159 * commands/reboot.c: Likewise.
2160 * hello/hello.c: Likewise.
2161 * script/sh/main.c: Likewise.
2162 * loader/xnu.c: Likewise.
2163 * term/terminfo.c: Likewise.
2164 * term/i386/pc/serial.c: Likewise.
2165 * term/usb_keyboard.c: Likewise.
2167 2009-05-03 David S. Miller <davem@davemloft.net>
2169 * normal/menu.c: Include grub/parser.h
2171 2009-05-03 Pavel Roskin <proski@gnu.org>
2173 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
2175 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
2176 Suggested by Javier MartÃn <lordhabbit@gmail.com>
2178 * util/i386/pc/grub-mkrescue.in: Allow for the case when
2179 efiemu??.o doesn't exist.
2180 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
2183 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
2185 FreeBSD 64-bit support
2187 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
2188 and loader/i386/bsd_trampoline.S
2189 (bsd_mod_ASFLAGS): new variable
2190 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
2191 (FREEBSD_MODTYPE_KERNEL64): likewise
2192 (grub_bsd64_trampoline_start): likewise
2193 (grub_bsd64_trampoline_end): likewise
2194 (grub_bsd64_trampoline_selfjump): likewise
2195 (grub_bsd64_trampoline_gdt): likewise
2196 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
2197 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
2198 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
2199 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
2200 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
2202 * loader/i386/bsd_pagetable.c: new file
2203 * loader/i386/bsd_trampoline.S: likewise
2204 * loader/i386/bsd.c (ALIGN_QWORD): new macro
2205 (ALIGN_VAR): likewise
2206 (entry_hi): new variable
2207 (kern_end_mdofs): likewise
2208 (is_64bit): likewise
2209 (grub_freebsd_add_meta): use ALIGN_VAR
2210 (grub_e820_mmap): new declaration
2211 (grub_freebsd_add_mmap): new function
2212 (grub_freebsd_add_meta_module): support 64 bit kernels
2213 (grub_freebsd_list_modules): use ALIGN_VAR
2214 (gdt_descriptor): new declaration
2215 (grub_freebsd_boot): support 64 bit kernels
2216 (grub_bsd_elf64_hook): new function
2217 (grub_bsd_load_elf): support elf64
2219 2009-05-03 Bean <bean123ch@gmail.com>
2221 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
2222 after we get the result of if statement.
2224 2009-05-03 Bean <bean123ch@gmail.com>
2226 * Makefile.in (enable_efiemu): New variable.
2228 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
2230 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
2232 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
2233 path, add -mno-red-zone option.
2234 (efiemu64_s.o): Likewise.
2235 (efiemu64.o): Use macro $^ for source file.
2237 * configure.ac (--enable-efiemu): New option.
2239 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2243 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
2244 (pkglib_MODULES): add xnu.mod
2245 (xnu_mod_SOURCES): new variable
2246 (xnu_mod_CFLAGS): likewise
2247 (xnu_mod_LDFLAGS): likewise
2248 (xnu_mod_ASFLAGS): likewise
2249 * conf/i386-pc.rmk: likewise
2250 * conf/x86_64-efi.rmk: likewise
2251 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
2253 * include/grub/i386/macho.h: new file
2254 * include/grub/i386/xnu.h: likewise
2255 * include/grub/macho.h: likewise
2256 * include/grub/machoload.h: likewise
2257 * include/grub/x86_64/macho.h: likewise
2258 * include/grub/x86_64/xnu.h: likewise
2259 * include/grub/xnu.h: likewise
2260 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
2261 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
2262 * loader/i386/efi/xnu.c: new file
2263 * loader/i386/pc/xnu.c: likewise
2264 * loader/i386/xnu.c: likewise
2265 * loader/i386/xnu_helper.S: likewise
2266 * loader/macho.c: likewise
2267 * loader/xnu.c: likewise
2268 * loader/xnu_resume.c: likewise
2269 * util/grub-dumpdevtree: likewise
2270 * include/grub/i386/pit.h: include grub/err.h
2271 (grub_pit_wait): export
2272 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
2274 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2278 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
2279 _linux_efi, linux_efi.
2280 new files in grub-emu
2281 new targets efiemu32.o and efiemu64.o
2282 * loader/linux_normal_efiemu.c: likewise
2283 * loader/i386/efi/linux.c: added preliminary efiemu support
2284 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
2286 * include/grub/autoefi.h: new file
2287 * include/grub/i386/efiemu.h: likewise
2288 * include/grub/i386/pc/efiemu.h: likewise
2289 * include/grub/efi/api.h: add LL suffix when necessary
2290 new definitions relating to tables
2291 * include/grub/efiemu/efiemu.h: new file
2292 * include/grub/efiemu/runtime.h: likewise
2293 * efiemu/prepare.c: likewise
2294 * efiemu/loadcore_common.c: likewise
2295 * efiemu/loadcore64.c: likewise
2296 * efiemu/runtime/efiemu.sh: likewise
2297 * efiemu/runtime/efiemu.S: likewise
2298 * efiemu/runtime/efiemu.c: likewise
2299 * efiemu/runtime/config.h: likewise
2300 * efiemu/prepare32.c: likewise
2301 * efiemu/main.c: likewise
2302 * efiemu/modules/pnvram.c: likewise
2303 * efiemu/modules/i386: likewise
2304 * efiemu/modules/i386/pc: likewise
2305 * efiemu/modules/acpi.c: likewise
2306 * efiemu/i386/pc/cfgtables.c: likewise
2307 * efiemu/i386/loadcore64.c: likewise
2308 * efiemu/i386/loadcore32.c: likewise
2309 * efiemu/prepare64.c: likewise
2310 * efiemu/loadcore.c: likewise
2311 * efiemu/symbols.c: likewise
2312 * efiemu/mm.c: likewise
2313 * efiemu/loadcore32.c: likewise
2315 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2319 * commands/acpi.c: new file
2320 * commands/i386/pc/acpi.c: likewise
2321 * commands/efi/acpi.c: likewise
2322 * include/grub/acpi.h: likewise
2323 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
2324 (acpi_mod_SOURCES): new variable
2325 (acpi_mod_CFLAGS): likewise
2326 (acpi_mod_LDFLAGS): likewise
2327 * conf/i386-efi.rmk: likewise
2328 * conf/x86_64-efi.rmk: likewise
2330 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2332 Missing part from mmap patch
2334 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
2335 (grub_mmap_unregister)
2336 (grub_mmap_free_and_unregister): use grub_mmap_register
2338 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2342 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
2343 * loader/i386/linux.c (find_mmap_size): likewise
2344 (allocate_pages): likewise
2345 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
2346 (grub_fill_multiboot_mmap): likewise
2347 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
2348 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
2349 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
2350 (OPENBSD_MMAP_RESERVED): likewise
2351 * include/grub/i386/pc/memory.h: include grub/memory.h
2352 (grub_lower_mem): removed
2353 (grub_upper_mem): likewise
2354 (GRUB_MACHINE_MEMORY_ACPI): new definition
2355 (GRUB_MACHINE_MEMORY_NVS): likewise
2356 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
2357 (GRUB_MACHINE_MEMORY_HOLE): likewise
2358 (grub_machine_mmap_register): likewise
2359 (grub_machine_mmap_unregister): likewise
2360 (grub_machine_get_upper): likewise
2361 (grub_machine_get_lower): likewise
2362 (grub_machine_get_post64): likewise
2363 * include/grub/i386/efi/memory.h: new file
2364 * include/grub/x86_64/efi/memory.h: likewise
2365 * include/grub/efi/memory.h: likewise
2366 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
2367 (mmap_mod_SOURCES): new variable
2368 (mmap_mod_LDFLAGS): likewise
2369 (mmap_mod_ASFLAGS): likewise
2370 * conf/i386-coreboot.rmk: likewise
2371 * conf/i386-ieee1275.rmk: likewise
2372 * conf/i386-efi.rmk: likewise
2373 * conf/x86_64-efi.rmk: likewise
2374 * include/grub/types.h (UINT_TO_PTR): new macro
2375 (PTR_TO_UINT32): likewise
2376 (PTR_TO_UINT64): likewise
2377 * include/grub/memory.h: new file
2378 * mmap/i386/pc/mmap.c: likewise
2379 * mmap/i386/pc/mmap_helper.S: likewise
2380 * mmap/i386/uppermem.c: likewise
2381 * mmap/mmap.c: likewise
2382 * mmap/efi/mmap.c: likewise
2383 * kern/i386/coreboot/init.c (grub_machine_init): don't use
2385 * kern/i386/pc/init.c (grub_lower_mem): removed variable
2386 (grub_upper_mem): likewise
2387 (grub_machine_init): don't use grub_upper_mem,
2388 make grub_lower_mem local
2389 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
2390 grub_mmap_iterate and grub_mmap_get_upper
2391 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
2393 2009-05-02 Bean <bean123ch@gmail.com>
2395 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
2397 (pkglib_MODULES): Add normal.mod and sh.mod.
2398 (normal_SOURCES): New variable.
2399 (normal_mod_CFLAGS): Likewise.
2400 (normal_mod_LDFLAGS): Likewise.
2401 (sh_mod_SOURCES): Likewise.
2402 (sh_mod_CFLAGS): Likewise.
2403 (sh_mod_LDFLAGS): Likewise.
2405 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
2406 script/sh/lexer.c_DEPENDENCIES.
2407 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
2408 kern/rescue_reader.c and kern/rescue_parser.c.
2409 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
2410 (grub_emu_SOURCES): Change source files.
2411 (pkglib_MODULES): Remove normal.mod.
2412 (normal_SOURCES): Removed.
2413 (normal_mod_CFLAGS): Likewise.
2414 (normal_mod_LDFLAGS): Likewise.
2415 * conf/i386-coreboot.rmk: Likewise.
2416 * conf/i386-efi.rmk: Likewise.
2417 * conf/i386-ieee1276.rmk: Likewise.
2418 * conf/powerpc-ieee1275.rmk: Likewise.
2419 * conf/sparc64-ieee1275.rmk: Likewise.
2420 * conf/x86_64-efi.rmk: Likewise.
2422 * include/grub/command.h (grub_command_execute): New inline function.
2424 * include/grub/menu.h (grub_menu_entry): Removed commands field.
2426 * include/grub/normal.h: Remove <grub/setjmp.h>.
2427 (grub_fs_module_list): Moved to normal/autofs.c.
2428 (grub_exit_env): Removed.
2429 (grub_command_execute): Likewise.
2430 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
2432 (read_command_list): New function declaration.
2433 (read_fs_list): Likewise.
2435 * include/parser.h: Include <grub/reader.h>.
2436 (grub_parser_split_cmdline): Change type of getline parameter.
2437 (grub_parser): New structure.
2438 (grub_parser_class): New variable.
2439 (grub_parser_execute): New function declaration.
2440 (grub_register_rescue_parser): Likewise.
2441 (grub_parser_register): New inline function.
2442 (grub_parser_unregister): Likewise.
2443 (grub_parser_get_current): Likewise.
2444 (grub_parser_set_current): Likewise.
2446 * include/grub/reader.h: New file.
2447 * kern/reader.c: Likewise.
2448 * kern/rescue_parser.c: Likewise.
2449 * kern/rescue_reader.c: Likewise.
2450 * normal/autofs.c: Likewise.
2451 * normal/dyncmd.c: Likewise.
2453 * include/grub/rescue.h: Removed.
2454 * normal/command.h: Likewise.
2456 * include/grub/script.h: Moved to ...
2457 * include/grub/script_sh.h: ... Moved here.
2458 * normal/execute.c: Moved to ...
2459 * script/sh/execute.c: ... Moved here.
2460 * normal/function.c: Moved to ...
2461 * script/sh/function.c: ... Moved here.
2462 * normal/lexer.c: Moved to ...
2463 * script/sh/lexer.c: ... Moved here.
2464 * normal/parser.y: Moved to ...
2465 * script/sh/parser.y: ... Moved here.
2466 * normal/script.c: Moved to ...
2467 * script/sh/script.c: ... Moved here.
2469 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
2471 (grub_exit_env): Removed.
2472 (fs_module_list): Moved to normal/autofs.c.
2473 (grub_file_getline): Don't handle comment here.
2474 (free_menu): Skip removed field entry->commands.
2475 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
2477 (read_config_file): Removed nested parameter, change getline function.
2478 (grub_enter_normal_mode): Removed.
2479 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
2480 (read_command_list): Likewise.
2481 (autoload_fs_module): Moved to normal/autofs.c.
2482 (read_fs_list): Likewise.
2483 (reader_nested): New variable.
2484 (grub_normal_execute): Run parser.sh to switch to sh parser.
2485 (grub_cmd_rescue): Removed.
2486 (cmd_normal): Removed.
2487 (grub_cmd_normal): Unregister itself at the beginning. Don't register
2489 (grub_cmdline_run): New function.
2490 (grub_normal_reader_init): Likewise.
2491 (grub_normal_read_line): Likewise.
2492 (grub_env_write_pager): Likewise.
2493 (cmdline): New variable.
2494 (grub_normal_reader): Likewise.
2495 (GRUB_MOD_INIT): Register normal reader and set as current, register
2496 pager hook, register normal command with grub_register_command_prio,
2497 so that it won't show up in command.lst.
2498 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
2499 grub_fs_autoload_hook.
2501 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
2502 (grub_menu_execute_entry): Replace grub_script_execute with
2503 grub_parser_execute, change parameter to grub_command_execute.
2505 * normal/menu_text.c: Remove <grub/script.h>.
2507 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
2508 and <grub/parser.h>.
2509 (run): Change editor_getline to use new parser interface. Change
2510 parameter to grub_command_execute.
2512 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
2513 <grub/reader.h> and <grub/parser.h>.
2514 (grub_load_normal_mode): Execute normal command.
2515 (grub_main): Call grub_register_core_commands,
2516 grub_register_rescue_parser and grub_register_rescue_reader, use
2517 grub_reader_loop to enter input loop.
2519 * kern/parser.c (grub_parser_split_cmdline): Change type of
2521 (grub_parser_class): New variable.
2522 (grub_parser_execute): New function.
2524 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
2525 * loader/multiboot2.c: Likewise.
2526 * loader/sparc64/ieee1275/linux.c: Likewise.
2528 * util/grub-emu.c (read_command_list): New dummy function.
2530 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
2532 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
2533 count to 16 for CCISS and IDA.
2535 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
2537 * normal/menu_text.c (grub_wait_after_message): Print a newline
2538 after waiting for user input.
2540 * loader/i386/linux.c: Include `<grub/normal.h>'.
2541 (grub_cmd_linux): Improve the error message about `ask' mode, by
2542 waiting for user input so it's not missed (we can do this, since
2543 user requested interaction).
2545 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2547 Added missing lst to grub-mkrescue
2549 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
2550 and ${input_dir}/parttool.lst
2552 2009-04-30 David S. Miller <davem@davemloft.net>
2554 * util/hostdisk.c (device_is_wholedisk): New function.
2555 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
2556 zero only if device_is_wholedisk() returns true.
2558 * util/hostdisk.c (convert_system_partition_to_system_disk):
2559 Handle virtual disk devices named /dev/vdiskX as found on sparc
2562 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
2563 lettered partition specifier is found, convert to numbered.
2565 2009-04-29 David S. Miller <davem@davemloft.net>
2567 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
2568 * include/grub/sparc64/ieee1275/memory.h: Likewise.
2570 * normal/command.c: Add missing newline at end of file.
2572 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
2574 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
2575 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
2576 grub_ofdisk_read): Likewise, and deal similarly with the fact that
2577 ihandles have a 32-bit type but need to be stored in a "void *".
2579 2009-04-28 Pavel Roskin <proski@gnu.org>
2581 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
2582 not disk. Adjust all dependencies.
2583 (grub_fs_uuid_close): Use grub_device_close(), not
2586 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
2587 parent's partition, don't copy it by reference, as it gets freed
2590 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2592 Preboot hooks support
2594 * commands/boot.c (struct grub_preboot_t): new declaration
2595 (preboots_head): new variable
2596 (preboots_tail): likewise
2597 (grub_loader_register_preboot_hook): new function
2598 (grub_loader_unregister_preboot_hook): likewise
2599 (grub_loader_set): launch preboot hooks
2600 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
2601 (grub_loader_register_preboot_hook): new declaration
2602 (grub_loader_unregister_preboot_hook): likewise
2604 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2608 * disk/scsi.c (grub_scsi_open): added missing cast when
2609 calling grub_dprintf
2611 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2613 Bug and warning fixes
2615 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
2617 * commands/test.c (test_parse): fixed bug with file tests and corrected
2618 declaration of find_file
2620 2009-04-26 Pavel Roskin <proski@gnu.org>
2622 * Makefile.in: Don't install empty manual pages if help2man is
2623 missing. Use help2man option for output, not shell redirection.
2625 2009-04-26 David S. Miller <davem@davemloft.net>
2627 * util/grub-mkdevicemap.c (make_device_map): Add missing
2628 NESTED_FUNC_ATTR to process_device().
2630 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2634 * commands/test.c: rewritten to use bash-like test
2636 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2638 Parttool autoloading and improvements
2640 * Makefile.in (pkglib_DATA): add parttool.lst
2641 (parttool.lst): new target
2642 * genmk.rb: generate parttool-*
2643 (CLEANFILES): add #{parttool}
2644 (PARTTOOLFILES): new variable
2645 * genparttoollist.sh: new file
2646 * parttool/pcpart.c (grub_pcpart_boot): more feedback
2647 (grub_pcpart_type): likewise
2648 * commands/parttool.c (helpmsg): new variable
2649 (grub_cmd_parttool): output help if not enough arguments are supplied
2651 (GRUB_MOD_INIT(parttool)): use helpmsg
2653 2009-04-24 David S. Miller <davem@davemloft.net>
2655 Avoiding opening same device multiple times in device iterator.
2657 * kern/device.c: (grub_device_iterate): Define struct part_ent,
2658 and use it to build a list of partitions in iterate_disk() and
2659 iterate_partition().
2661 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
2664 * disk/ieee1275/nand.c (grub_nand_iterate): Return
2665 grub_devalias_iterate() result instead of unconditional 0.
2666 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
2667 Also, capture hook return value, either directly or via
2668 grub_children_iterate(), and propagate to caller.
2669 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
2670 grub_children_iterate): Return value is now 'int' instead of
2672 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
2673 like a proper iterator, stopping when hooks return non-zero.
2674 (grub_devalias_iterate): Likewise.
2676 2009-04-23 David S. Miller <davem@davemloft.net>
2678 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
2680 2009-04-22 David S. Miller <davem@davemloft.net>
2682 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
2683 is larger than address_cells, use that value for address_cells too.
2685 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
2686 IEEE1275_MAX_PATH_LEN): Define.
2687 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
2688 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
2689 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
2690 'devtype'. Explicitly NULL terminate devalias expansion.
2692 * util/sparc64/ieee1275/misc.c: New file.
2693 * util/sparc64/ieee1275/grub-setup.c: New file.
2694 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
2695 * util/sparc64/ieee1275/grub-mkimage.c: New file.
2696 * util/sparc64/ieee1275/grub-install.in: New file.
2697 * util/ieee1275/ofpath.c: New file.
2698 * util/ieee1275/devicemap.c: New file.
2699 * util/devicemap.c: New file.
2700 * util/deviceiter.c: New file.
2701 * kern/sparc64/ieee1275/init.c: New file.
2702 * include/grub/util/ofpath.h: New file.
2703 * include/grub/util/deviceiter.h: New file.
2704 * util/grub-mkdevicemap.c: Include deviceiter.h.
2705 Implement using grub_util_emit_devicemap_entry and
2706 grub_util_iterate_devices.
2707 * conf/i386-corebook.rmk: Build util/deviceiter.c and
2708 util/devicemap.c into grub-mkdevicemap
2709 * conf/i386-efi.rmk: Likewise.
2710 * conf/i386-ieee1275.rmk: Likewise.
2711 * conf/i386-pc.rmk: Likewise.
2712 * conf/powerpc-ieee1275.rmk: Likewise.
2713 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
2714 images and installation utilities. Build kernel as image
2715 instead of as elf binary. Use common rules as much as possible.
2717 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2719 Correct GPT definition
2721 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
2724 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
2726 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
2728 2009-04-19 David S. Miller <davem@davemloft.net>
2730 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
2731 (grub_rescue_cmd_linux): Rename to...
2732 (grub_cmd_linux): and fix prototype.
2733 (grub_rescue_cmd_initrd): Rename to...
2734 (grub_cmd_initrd): and fix prototype.
2735 (cmd_linux, cmd_initrd): New.
2736 (GRUB_MOD_INIT(linux)): Use grub_register_command().
2737 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
2739 2009-04-17 Pavel Roskin <proski@gnu.org>
2741 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
2743 (grub_ohci_transfer): Likewise.
2745 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
2747 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
2748 return without a value. Fix inconsistent indentation.
2750 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
2751 match struct grub_fs.
2753 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
2754 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
2755 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2756 * commands/lspci.c (grub_lspci_iter): Likewise.
2758 2009-04-16 Bean <bean123ch@gmail.com>
2760 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
2763 2009-04-15 Pavel Roskin <proski@gnu.org>
2765 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
2766 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
2767 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
2770 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
2772 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
2773 that no multiple data or metadata areas are supported and `Unknown
2776 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2778 Move loader out of the kernel
2780 * kern/loader.c: moved to ...
2781 * commands/boot.c: ... moved here
2782 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
2783 * commands/boot.c (grub_cmd_boot): moved here. All users updated
2784 * include/grub/kernel.h (grub_machine_fini): export
2785 * include/grub/loader.h (grub_loader_is_loaded): update declaration
2786 (grub_loader_set): likewise
2787 (grub_loader_unset): likewise
2788 (grub_loader_boot): likewise
2789 * conf/common.rmk: new module boot.mod
2790 (pkglib_MODULES): add boot.mod
2791 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
2792 (grub_emu_SOURCES): likewise
2793 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
2794 (grub_emu_SOURCES): likewise
2795 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
2796 (grub_emu_SOURCES): likewise
2797 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
2798 (grub_emu_SOURCES): likewise
2799 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
2800 (grub_emu_SOURCES): likewise
2801 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
2802 (grub_emu_SOURCES): likewise
2803 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
2804 (grub_emu_SOURCES): likewise
2806 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2808 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
2810 * kern/misc.c (grub_itoa): Removed function
2811 (grub_ltoa): likewise
2812 (grub_vsprintf): use grub_lltoa
2814 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2818 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
2819 * conf/i386-coreboot.rmk: likewise
2820 * conf/i386-ieee1275.rmk: likewise
2821 * conf/powerpc-ieee1275.rmk: likewise
2823 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
2825 * INSTALL: Add that `./autogen.sh' needs to be run before
2828 2009-04-14 Bean <bean123ch@gmail.com>
2830 * Makefile.in (pkglib_DATA): Add handler.lst.
2831 (handler.lst): New rule.
2833 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
2834 * conf/i386-coreboot.rmk: Likewise.
2835 * conf/i386-ieee1275.rmk: Likewise.
2836 * conf/i386-efi.rmk: Likewise.
2837 * conf/x86_64-efi.rmk: Likewise.
2838 * conf/powerpc-ieee1275.rmk: Likewise.
2839 * conf/sparc64-ieee1275.rmk: Likewise.
2841 * genhandlerlist.sh: New file.
2843 * genmk.rb: Add rules to generate handler.lst.
2845 * include/grub/normal.h (grub_file_getline): New function definition.
2846 (read_handler_list): Likewise.
2847 (free_handler_list): Likewise.
2849 * include/grub/term.h (grub_term_register_input): Add name parameter
2850 for auto generation of handler.lst.
2851 (grub_term_register_output): Likewise.
2853 * normal/handler.c: New file.
2855 * normal/main.c (get_line): Renamed to grub_file_getline.
2856 (read_config_file): Use the newly renamed grub_file_getline.
2857 (read_command_list): Likewise.
2858 (read_fs_list): Likewise.
2859 (grub_normal_execute): Call read_handler_list to parse handler.lst.
2860 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
2862 * term/efi/console.c (grub_console_init): Add name parameter for auto
2863 generation of handler.lst.
2864 * term/gfxterm.c: Likewise.
2865 * term/i386/pc/at_keyboard.c: Likewise.
2866 * term/i386/pc/console.c: Likewise.
2867 * term/i386/pc/serial.c: Likewise.
2868 * term/i386/pc/vesafb.c: Likewise.
2869 * term/i386/pc/vga.c: Likewise.
2870 * term/i386/pc/vga_text.c: Likewise.
2871 * term/ieee1275/ofconsole.c: Likewise.
2872 * term/usb_keyboard.c: Likewise.
2874 2009-04-14 Bean <bean123ch@gmail.com>
2876 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
2877 properly with null character.
2879 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
2881 * configure: Remove.
2882 * config.h.in: Likewise.
2883 * stamp-h.in: Likewise.
2884 * DISTLIST: Likewise.
2885 * conf/common.mk: Likewise.
2886 * conf/i386-coreboot.mk: Likewise.
2887 * conf/i386-efi.mk: Likewise.
2888 * conf/i386-ieee1275.mk: Likewise.
2889 * conf/i386.mk: Likewise.
2890 * conf/i386-pc.mk: Likewise.
2891 * conf/powerpc-ieee1275.mk: Likewise.
2892 * conf/sparc64-ieee1275.mk: Likewise.
2893 * conf/x86_64-efi.mk: Likewise.
2895 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
2898 2009-04-14 John Stanley <jpsinthemix@verizon.net>
2899 David S. Miller <davem@davemloft.net>
2901 * util/hostdisk.c (make_device_name): Fix buffer length
2904 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
2906 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
2907 <sys/param.h> and <sys/sysctl.h>.
2908 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
2909 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
2910 opening the device and reset them afterwards.
2912 2009-04-13 Pavel Roskin <proski@gnu.org>
2914 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
2915 Reported by John Stanley <jpsinthemix@verizon.net>
2917 2009-04-13 Robert Millan <rmh@aybabtu.com>
2919 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
2920 that name for menuentries when appropriate.
2922 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
2924 * util/grub.d/10_freebsd.in: Add a missing `fi'.
2926 2009-04-13 Robert Millan <rmh@aybabtu.com>
2928 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
2929 to Linux, simply abort telling the user it's no longer supported.
2931 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
2933 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
2934 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
2935 `freebsd_loadenv' only when devices.hints exist.
2937 2009-04-13 Pavel Roskin <proski@gnu.org>
2939 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
2941 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
2943 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
2945 (grub_drive): Likewise.
2947 2009-04-13 David S. Miller <davem@davemloft.net>
2949 * kern/sparc64/ieee1275/ieee1275.c: New file.
2950 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
2951 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
2952 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
2953 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
2954 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
2955 grub_ieee1275_alloc_physmem): Declare new exported functions.
2957 * include/grub/sparc64/ieee1275/loader.h: New file.
2958 * include/grub/sparc64/ieee1275/memory.h: Likewise.
2959 * include/grub/sparc64/kernel.h: Likewise.
2960 * loader/sparc64/ieee1275/linux.c: Likewise.
2962 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
2963 (grub_fstest_SOURCES): Likewise.
2965 * util/hostdisk.c (make_device_name): Do not make any assumptions
2966 about the length of drive names.
2968 * kern/dl.c (grub_dl_load_file): Close file immediately when
2969 we are done using it.
2971 2009-04-12 David S. Miller <davem@davemloft.net>
2973 * kern/misc.c (grub_ltoa): Fix cast when handling negative
2974 values. Noticed by Pavel Roskin.
2976 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
2979 * genmk.rb: Add more flexible image type specification, also
2980 pass --strip-unneeded to objcopy.
2981 * conf/i386-pc.rmk: Use *_FORMAT.
2982 * conf/i386-pc.mk: Rebuilt.
2984 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
2985 (OFDISK_HASH_SZ): Define.
2986 (ofdisk_hash): New hash table.
2987 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
2988 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
2989 instead of device phandle which is not unique.
2991 * kern/sparc64/ieee1275/init.c: Delete, replace with...
2992 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
2993 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
2994 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
2995 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
2996 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
2997 GRUB_KERNEL_MACHINE_DATA_END): Define.
2998 (grub_kernel_image_size, grub_total_module_size): Declare.
3000 2009-04-12 Pavel Roskin <proski@gnu.org>
3002 * configure.ac: Change the logic when we check for target tools.
3003 Do it when the target is specified and it's different from the
3004 specified value of the host.
3006 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
3008 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
3009 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
3010 GNU/kFreeBSD. Check if a device is a character device. Use
3011 DIOCGMEDIASIZE to get the size.
3012 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
3013 support for GNU/kFreeBSD.
3014 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
3015 is a character device instead of a block device. Add support for
3016 FreeBSD device names.
3018 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
3019 is a character device instead of a block device.
3021 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
3022 is a character device instead of a block device.
3024 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
3026 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
3027 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
3028 FreeBSD. Check if a device is a character device. Use
3029 DIOCGMEDIASIZE to get the size.
3030 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
3031 support for FreeBSD.
3032 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
3033 is a character device instead of a block device. Add support for
3034 FreeBSD device names.
3036 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
3037 a character device instead of a block device.
3038 (grub_util_check_char_device): New function.
3040 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
3041 a character device instead of a block device.
3043 * include/grub/util/getroot.h (grub_util_check_char_device): New
3046 2009-04-11 David S. Miller <davem@davemloft.net>
3048 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
3050 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
3051 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
3052 function, if present.
3053 (__bswapdi2): Likewise.
3055 * include/grub/sparc64/ieee1275/boot.h: New file.
3056 * boot/sparc64/ieee1275/boot.S: Likewise.
3057 * boot/sparc64/ieee1275/diskboot.S: Likewise.
3059 * kern/misc.c (grub_ltoa): New function.
3060 (grub_vsprintf): Use it to format 'long' integers.
3062 2009-04-10 David S. Miller <davem@davemloft.net>
3064 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
3065 slots are of type grub_ieee1275_cell_t.
3066 (grub_nand_read): Likewise.
3067 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
3068 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
3069 macros are used to compare values in arg/ret block of the call.
3070 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
3071 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
3072 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
3073 grub_ieee1275_instance_to_path, grub_ieee1275_write,
3074 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
3075 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
3076 grub_ieee1275_close, grub_ieee1275_set_property,
3077 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
3078 grub_ieee1275_cell_t.
3079 * kern/ieee1275/openfw.c (grub_map): Likewise.
3080 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
3081 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
3083 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
3084 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
3085 (grub_devalias_iterate): Likewise.
3087 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3091 * fs/ufs.c (INODE_NBLOCKS): new definition
3092 (struct grub_ufs_dirent): added fields for non-BSD dirents
3093 (grub_ufs_get_file_block): fixed double indirect handling
3094 (grub_ufs_lookup_symlink): use more robust way to determine whether
3096 (grub_ufs_find_file): support for non-BSD dirents
3097 (grub_ufs_dir): support for non-BSD dirents
3099 2009-04-10 Bean <bean123ch@gnail.com>
3101 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
3102 attribute, otherwise the size would be wrong for i386 platform.
3104 * include/grub/pci.h (grub_pci_read_word): New inline function.
3105 (grub_pci_read_byte): Likewise.
3106 (grub_pci_write): Likewise.
3107 (grub_pci_write_word): Likewise.
3108 (grub_pci_write_byte): Likewise.
3110 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
3112 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
3113 (find_framebuf): Scan pci to locate the frame buffer address.
3115 * commands/efi/fixvideo.c: New file.
3117 * commands/efi/loadbios.c: Likewise.
3119 * commands/memrw.c: Likewise.
3121 * util/grub-dumpbios.in: Likewise.
3123 * conf/common.rmk (grub-dumpbios): New utility.
3124 (pkglib_MODULES): New module memrw.mod.
3125 (memrw_mod_SOURCE): New macro.
3126 (memrw_mod_CFLAGS): Likewise.
3127 (memrw_mod_LDFLAGS): Likewise.
3129 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
3131 (loadbios_mod_SOURCE): New macro.
3132 (loadbios_mod_CFLAGS): Likewise.
3133 (loadbios_mod_LDFLAGS): Likewise.
3134 (fixvideo_mod_SOURCE): Likewise.
3135 (fixvideo_mod_CFLAGS): Likewise.
3136 (fixvideo_mod_LDFLAGS): Likewise.
3138 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
3140 (loadbios_mod_SOURCE): New macro.
3141 (loadbios_mod_CFLAGS): Likewise.
3142 (loadbios_mod_LDFLAGS): Likewise.
3143 (fixvideo_mod_SOURCE): Likewise.
3144 (fixvideo_mod_CFLAGS): Likewise.
3145 (fixvideo_mod_LDFLAGS): Likewise.
3147 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
3149 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
3151 2009-04-07 David S. Miller <davem@davemloft.net>
3153 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
3154 support for R_SPARC_OLO10 relocations. Fix compile warning for
3155 R_SPARC_WDISP30 case.
3156 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
3158 2009-04-06 Pavel Roskin <proski@gnu.org>
3160 * include/grub/misc.h (ARRAY_SIZE): New macro.
3161 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
3163 * loader/i386/linux.c (allocate_pages): Use free_pages().
3164 (grub_linux_unload): Don't use free_pages().
3165 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
3166 wrong index. Treat all other modes as text modes.
3167 (grub_cmd_linux): Initialize vid_mode unconditionally to
3168 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
3170 * commands/help.c (print_command_help): Use cmd->prio, not
3171 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
3173 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3177 * parttool/pcpart.c: new file
3178 * commands/parttool.c: likewise
3179 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
3180 (parttool_mod_SOURCES): new variable
3181 (parttool_mod_CFLAGS): likewise
3182 (parttool_mod_LDFLAGS): likewise
3183 (pcpart_mod_SOURCES): likewise
3184 (pcpart_mod_CFLAGS): likewise
3185 (pcpart_mod_LDFLAGS): likewise
3186 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
3187 and parttool/pcpart.c
3188 * conf/i386-efi.rmk: likewise
3189 * conf/i386-ieee1275.rmk: likewise
3190 * conf/i386-pc.rmk: likewise
3191 * conf/powerpc-ieee1275.rmk: likewise
3192 * conf/sparc64-ieee1275.rmk: likewise
3193 * conf/x86_64-ieee1275.rmk: likewise
3195 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3197 Support for mtime and further expandability of dir command
3199 * include/grub/lib/datetime.h: moved to ...
3200 * include/grub/datetime.h: ... moved here and added
3201 declaration of grub_unixtime2datetime. All users updated
3202 * include/grub/fs.h: new syntax for dir and mtime functions in
3204 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
3205 and GRUB_FSHELP_FLAGS_MASK
3206 * commands/ls.c (grub_ls_list_files): Write mtime in long format
3207 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
3208 (grub_ext2_mtime): new function
3209 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
3210 (grub_hfsplus_mtime): new function
3211 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
3212 (GRUB_UFS_ATTR_FILE): likewise
3213 (GRUB_UFS_ATTR_LNK): likewise
3214 (struct grub_ufs_sblock): new fields mtime
3215 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
3217 (grub_ufs_dir): mtime support
3218 (grub_ufs_mtime): new function
3219 * fs/affs.c (grub_affs_dir): use new dir syntax
3220 * fs/afs.c (grub_afs_dir): likewise
3221 * fs/cpio.c (grub_cpio_dir): likewise
3222 * fs/fat.c (grub_fat_find_dir): likewise
3223 * fs/hfs.c (grub_hfs_dir): likewise
3224 * fs/iso9660.c (grub_iso9660_dir): likewise
3225 * fs/jfs.c (grub_jfs_dir): likewise
3226 * fs/minix.c (grub_minix_dir): likewise
3227 * fs/ntfs.c (grub_ntfs_dir): likewise
3228 * fs/reiserfs.c (grub_reiserfs_dir): likewise
3229 * fs/sfs.c (grub_sfs_dir): likewise
3230 * fs/xfs.c (grub_xfs_dir): likewise
3231 * util/hostfs.c (grub_hostfs_dir): likewise
3232 * lib/datetime.c: moved to ...
3233 * normal/datetime.c: ... moved here
3234 (grub_unixtime2datetime): new function
3235 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
3236 * normal/completion.c (iterate_dir): use new dir syntax
3237 * normal/misc.c (grub_normal_print_device_info): tell the
3238 last modification time of a volume
3239 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
3240 * conf/common.rmk: added lib/datetime.c to ls.mod
3241 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
3242 (normal_mod_SOURCES): likewise
3243 (datetime_mod_SOURCES): Removed lib/datetime.c
3244 * conf/i386-efi.rmk: likewise
3245 * conf/i386-ieee1275.rmk: likewise
3246 * conf/i386-pc.rmk: likewise
3247 * conf/powerpc-ieee1275.rmk: likewise
3248 * conf/sparc64-ieee1275.rmk: likewise
3249 * conf/x86_64-efi.rmk: likewise
3251 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3253 Trim trailing spaces in FAT label and support mtools-like labels
3255 * fs/fat.c (grub_fat_iterate_dir): New function based
3256 on grub_fat_find_dir
3257 (grub_fat_find_dir): use grub_fat_iterate_dir
3258 (grub_fat_label): likewise
3260 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3262 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
3264 remove extraneous kernel_elf_HEADERS
3266 2009-04-04 Bean <bean123ch@gnail.com>
3268 * include/grub/util/misc.h: Add dummy function fsync for mingw.
3270 * util/misc.c: Likewise.
3272 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
3274 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
3275 instead of grub_printf.
3277 2009-04-03 Robert Millan <rmh@aybabtu.com>
3279 * loader/i386/linux.c (grub_linux_setup_video): Fill
3280 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
3281 values from `mode info' structure instead of hardcoded
3284 2009-04-01 Pavel Roskin <proski@gnu.org>
3286 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
3288 * genmk.rb: Likewise.
3289 * configure.ac: Likewise.
3291 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
3293 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
3294 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
3296 2009-04-01 David S. Miller <davem@davemloft.net>
3298 * normal/sparc64/setjmp.S: Fix setjmp implementation.
3299 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
3300 (grub_setjmp): Mark with 'returns_twice' attribute.
3301 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
3302 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
3303 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
3305 2009-04-01 Robert Millan <rmh@aybabtu.com>
3307 Reapply fix from 2008-07-28 which was accidentally reverted; also
3308 perform the same fix to a similar check in same function.
3310 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
3311 with the same number are found, just use issue a warning with
3312 grub_dprintf(), as this error has been reported to be non-fatal.
3314 2009-03-31 Pavel Roskin <proski@gnu.org>
3316 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
3317 for cross-compilation.
3319 2009-03-30 Robert Millan <rmh@aybabtu.com>
3321 Fix i386-ieee1275 build.
3323 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
3326 2009-03-30 Pavel Roskin <proski@gnu.org>
3328 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
3329 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
3330 zero-terminated, rely only on the strlen value. Fix comparison
3331 of strings differing in length.
3333 2009-03-30 Robert Millan <rmh@aybabtu.com>
3335 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
3336 checking for abi version. Improve error messages on BIOS to notify
3337 user about `linux16' command.
3339 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3343 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
3344 in case of collision
3345 * disk/scsi.c (grub_scsi_open): free scsi in case of error
3347 2009-03-29 Robert Millan <rmh@aybabtu.com>
3349 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
3350 set `vid_mode' accordingly.
3351 (grub_linux_boot): Process `vid_mode' and set video mode.
3353 2009-03-29 Robert Millan <rmh@aybabtu.com>
3355 * util/grub.d/10_linux.in (linux_entry): New function.
3356 Factorize generation of Linux boot entries.
3358 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
3360 Make the format of Environment Block plain text. The boot loader
3361 part is not tested well yet.
3363 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
3366 (usage): Remove "info" and "clear". Add "unset". Update the
3367 description of "set", as this does not delete variables any
3369 (create_envblk_file): Complete rewrite.
3370 (open_envblk_file): Likewise.
3371 (cmd_info): Removed.
3372 (cmd_list): Likewise.
3373 (cmd_set): Likewise.
3374 (cmd_clear): Likewise.
3375 (list_variables): New function.
3376 (write_envblk): Likewise.
3377 (set_variables): Likewise.
3378 (unset_variables): Likewise.
3379 (main): Complete rewrite.
3381 * commands/loadenv.c (buffer): Removed.
3383 (open_envblk_file): New function.
3384 (read_envblk_file): Complete rewrite.
3385 (grub_cmd_load_env): Likewise.
3386 (grub_cmd_list_env): Likewise.
3387 (struct blocklist): New struct.
3388 (free_blocklists): New function.
3389 (check_blocklists): Likewise.
3390 (write_blocklists): Likewise.
3391 (grub_cmd_save_env): Complete rewrite.
3393 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
3394 a plain text signature.
3395 (GRUB_ENVBLK_MAXLEN): Removed.
3396 (struct grub_envblk): Complete rewrite.
3397 (grub_envblk_find): Removed.
3398 (grub_envblk_insert): Likewise.
3399 (grub_envblk_open): New prototype.
3400 (grub_envblk_set): Likewise.
3401 (grub_envblk_delete): Put const to VALUE.
3402 (grub_envblk_iterate): Put const to NAME and VALUE.
3403 (grub_envblk_close): New prototype.
3404 (grub_envblk_buffer): New inline function.
3405 (grub_envblk_size): Likewise.
3407 * lib/envblk.c: Include grub/mm.h.
3408 (grub_env_find): Removed.
3409 (grub_envblk_open): New function.
3410 (grub_envblk_close): Likewise.
3411 (escaped_value_len): Likewise.
3412 (find_next_line): Likewise.
3413 (grub_envblk_insert): Removed.
3414 (grub_envblk_set): New function.
3415 (grub_envblk_delete): Complete rewrite.
3416 (grub_envblk_iterate): Likewise.
3418 2009-03-28 Robert Millan <rmh@aybabtu.com>
3420 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
3421 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
3422 variables. Use 16-bit loader.
3423 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
3425 * kern/i386/loader.S (grub_linux_boot): Rename to ...
3426 (grub_linux16_boot): ... this. Update all users.
3427 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
3428 (grub_linux_boot): ... this. Update all users.
3430 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
3431 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
3432 commands to `linux16' and `initrd16'.
3433 (GRUB_MOD_FINI(linux)): Rename to ...
3434 (GRUB_MOD_FINI(linux16)): ... this.
3436 2009-03-24 Pavel Roskin <proski@gnu.org>
3438 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
3439 not just for compilation.
3441 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3443 Move multiboot helper out of kernel
3445 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
3446 `loader/i386/multiboot_helper.S'.
3447 * conf/i386-coreboot.rmk: Likewise
3448 * conf/i386-ieee1275.rmk: Likewise
3450 * kern/i386/loader.S: Move multiboot helpers from here...
3451 * loader/i386/multiboot_helper.S: ...moved here
3452 * include/grub/i386/loader.h: Move declarations of multiboot
3453 helpers from here...
3454 * include/grub/i386/multiboot.h: ...moved here
3455 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
3457 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
3459 * kern/env.c (grub_env_context_open): Added an argument to specify
3460 whether a new context inherits exported variables from current
3461 one. This is useful when making a sandbox to interpret a config
3463 All callers updated.
3465 * include/grub/env.h (grub_env_context_open): Updated the prototype.
3467 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
3469 * kern/env.c (grub_env_context_close): Fix memory leaks.
3471 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
3473 * normal/main.c (grub_normal_execute): Added an argument
3474 BATCH to specify if an interactive interface should be provided
3475 after reading a config file.
3476 All callers updated.
3477 (read_command_list): Prevent being executed twice.
3478 (read_fs_list): Likewise.
3480 * include/grub/normal.h (grub_normal_execute): Updated the
3483 2009-03-22 Pavel Roskin <proski@gno.org>
3485 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
3487 * kern/i386/pc/startup.S: Likewise.
3488 * kern/i386/efi/startup.S: Likewise.
3489 * kern/i386/ieee1275/startup.S: Likewise.
3490 * kern/i386/coreboot/startup.S: Likewise.
3491 * kern/x86_64/efi/startup.S: Likewise.
3493 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
3494 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
3495 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
3497 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
3499 Bugfixes in multiboot for bugs uncovered by solaris kernel.
3501 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
3503 Use vaddr of correct segment for entry_point.
3505 2009-03-21 Bean <bean123ch@gmail.com>
3507 * commands/blocklist.c: Add include file <grub/command.h>, remove
3508 <grub/normal.h> and <grub/arg.h>.
3509 (grub_cmd_blocklist): Use the new command interface.
3510 (GRUB_MOD_INIT): Likewise.
3511 (GRUB_MOD_FINI): Likewise.
3512 * commands/boot.c: Likewise.
3513 * commands/cat.c: Likewise.
3514 * commands/cmp.c: Likewise.
3515 * commands/configfile.c: Likewise.
3516 * commands/crc.c: Likewise.
3517 * commands/echo.c: Likewise.
3518 * commands/halt.c: Likewise.
3519 * commands/handler.c: Likewise.
3520 * commands/hdparm.c: Likewise.
3521 * commands/help.c: Likewise.
3522 * commands/hexdump.c: Likewise.
3523 * commands/loadenv.c: Likewise.
3524 * commands/ls.c: Likewise.
3525 * commands/lsmmap.c: Likewise.
3526 * commands/lspci.c: Likewise.
3527 * commands/loadenv.c: Likewise.
3528 * commands/read.c: Likewise.
3529 * commands/reboot.c: Likewise.
3530 * commands/search.c: Likewise.
3531 * commands/sleep.c: Likewise.
3532 * commands/test.c: Likewise.
3533 * commands/usbtest.c: Likewise.
3534 * commands/videotest.c: Likewise.
3535 * commands/i386/cpuid.c: Likewise.
3536 * commands/i386/pc/halt.c: Likewise.
3537 * commands/i386/pc/play.c: Likewise.
3538 * commands/i386/pc/pxecmd.c: Likewise.
3539 * commands/i386/pc/vbeinfo.c: Likewise.
3540 * commands/i386/pc/vbetest.c: Likewise.
3541 * commands/ieee1275/suspend.c: Likewise.
3542 * disk/loopback.c: Likewise.
3543 * font/font_cmd.c: Likewise.
3544 * hello/hello.c: Likewise.
3545 * loader/efi/appleloader.c: Likewise.
3546 * loader/efi/chainloader.c: Likewise.
3547 * loader/i386/bsd.c: Likewise.
3548 * loader/i386/efi/linux.c: Likewise.
3549 * loader/i386/ieee1275/linux.c: Likewise.
3550 * loader/i386/linux.c: Likewise.
3551 * loader/i386/pc/chainloader.c: Likewise.
3552 * loader/i386/pc/linux.c: Likewise.
3553 * loader/powerpc/ieee1275/linux.c: Likewise.
3554 * loader/multiboot_loader.c: Likewise.
3555 * term/gfxterm.c: Likewise.
3556 * term/i386/pc/serial.c: Likewise.
3557 * term/terminfo.c: Likewise.
3559 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
3560 * term/i386/pc/vga.c: Likewise.
3561 * video/readers/jpeg.c: Likewise.
3562 * video/readers/png.c: Likewise.
3563 * video/readers/tga.c: Likewise.
3565 * util/grub-fstest (cmd_loopback): Removed.
3566 (cmd_blocklist): Likewise.
3568 (grub_register_command): Likewise.
3569 (grub_unregister_command): Likewise.
3570 (execute_command): Use grub_command_find to locate command and execute
3573 * include/grub/efi/chainloader.h: Removed.
3574 * loader/efi/chainloader_normal.c: Likewise.
3575 * loader/i386/bsd_normal.c: Likewise.
3576 * loader/i386/pc/chainloader_normal.c: Likewise.
3577 * loader/i386/pc/multiboot_normal.c: Likewise.
3578 * loader/linux_normal.c: Likewise.
3579 * loader/multiboot_loader_normal.c: Likewise.
3580 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
3582 * gencmdlist.sh: Scan new registration command grub_register_extcmd
3583 and grub_register_command_p1.
3585 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
3586 kern/command.c, lib/arg.c and commands/extcmd.c.
3587 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
3588 (minicmd_mod_SOURCES): New variable.
3589 (minicmd_mod_CFLAGS): Likewise.
3590 (minicmd_mod_LDFLAGS): Likewise.
3591 (extcmd_mod_SOURCES): Likewise.
3592 (extcmd_mod_CFLAGS): Likewise.
3593 (extcmd_mod_LDFLAGS): Likewise.
3594 (boot_mod_SOURCES): Removed.
3595 (boot_mod_CFLAGS): Likewise.
3596 (boot_mod_LDFLAGS): Likewise.
3598 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
3600 (kernel_img_HEADERS): Add command.h.
3601 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
3602 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
3604 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
3605 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
3606 remove the corresponding normal mode command.
3607 (normal_mod_SOURCES): Remove normal/arg.c.
3608 * conf/i386-coreboot.rmk: Likewise.
3609 * conf/i386-efi.rmk: Likewise.
3610 * conf/i386-ieee1275.rmk: Likewise.
3611 * conf/powerpc-ieee1275.rmk: Likewise.
3612 * conf/x86_64-efi.rmk: Likewise.
3614 * include/grub/arg.h: Move from here ...
3615 * include/grub/lib/arg.h: ... to here.
3617 * normal/arg.c: Move from here ...
3618 * lib/arg.c: ... to here.
3620 * commands/extcmd.c: New file.
3621 * commands/minicmd.c: Likewise.
3622 * include/grub/command.h: Likewise.
3623 * include/grub/extcmd.h: Likewise.
3624 * kern/command.c: Likewise.
3625 * kern/corecmd.c: Likewise.
3627 * kern/list.c (grub_list_iterate): Return int instead of void.
3628 (grub_list_insert): New function.
3629 (grub_prio_list_insert): Likewise.
3631 * kern/rescue.c (grub_rescue_command): Removed.
3632 (grub_rescue_command_list): Likewise.
3633 (grub_rescue_register_command): Likewise.
3634 (grub_rescue_unregister_command): Likewise.
3635 (grub_rescue_cmd_boot): Move to minicmd.c
3636 (grub_rescue_cmd_help): Likewise.
3637 (grub_rescue_cmd_info): Likewise.
3638 (grub_rescue_cmd_boot): Likewise.
3639 (grub_rescue_cmd_testload): Likewise.
3640 (grub_rescue_cmd_dump): Likewise.
3641 (grub_rescue_cmd_rmmod): Likewise.
3642 (grub_rescue_cmd_lsmod): Likewise.
3643 (grub_rescue_cmd_exit): Likewise.
3644 (grub_rescue_print_devices): Moved to corecmd.c.
3645 (grub_rescue_print_files): Likewise.
3646 (grub_rescue_cmd_ls): Likewise.
3647 (grub_rescue_cmd_insmod): Likewise.
3648 (grub_rescue_cmd_set): Likewise.
3649 (grub_rescue_cmd_unset): Likewise.
3650 (attempt_normal_mode): Use grub_command_find to get normal module.
3651 (grub_enter_rescue_mode): Use grub_register_core_commands to register
3652 commands, remove grub_rescue_register_command calls.
3654 * normal/command.c (grub_register_command): Removed.
3655 (grub_unregister_command): Likewise.
3656 (grub_command_find): Likewise.
3657 (grub_iterate_commands): Likewise.
3658 (rescue_command): Likewise.
3659 (export_command): Moved to corecmd.c.
3660 (set_command): Removed.
3661 (unset_command): Likewise.
3662 (insmod_command): Likewise.
3663 (rmmod_command): Likewise.
3664 (lsmod_command): Likewise.
3665 (grub_command_init): Likewise.
3667 * normal/completion.c (iterate_command): Use cmd->prio to check for
3669 (complete_arguments): Use grub_extcmd_t structure to find options.
3670 (grub_normal_do_completion): Change function grub_iterate_commands to
3671 grub_command_iterate.
3673 * normal/execute.c (grub_script_execute_cmd): No need to parse
3676 * normal/main.c (grub_dyncmd_dispatcher): New function.
3677 (read_command_list): Register unload commands as dyncmd.
3678 (grub_cmd_normal): Use new command interface, register rescue,
3679 unregister normal at entry, register normal, unregister rescue at exit.
3681 * include/grub/list.h (grub_list_test_t): New type.
3682 (grub_list_iterate): Return int instead of void.
3683 (grub_list_insert): New function.
3684 (GRUB_AS_NAMED_LIST_P): New macro.
3685 (GRUB_AS_PRIO_LIST): Likewise.
3686 (GRUB_AS_PRIO_LIST_P): Likewise.
3687 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
3688 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
3689 (grub_prio_list): New structure.
3690 (grub_prio_list_insert): New function.
3691 (grub_prio_list_remove): New inline function.
3693 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
3694 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
3695 (GRUB_COMMAND_FLAG_MENU): Likewise.
3696 (GRUB_COMMAND_FLAG_BOTH): Likewise.
3697 (GRUB_COMMAND_FLAG_TITLE): Likewise.
3698 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
3699 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
3700 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
3701 (grub_command): Likewise.
3702 (grub_register_command): Likewise.
3703 (grub_command_find): Likewise.
3704 (grub_iterate_commands): Likewise.
3705 (grub_command_init): Likewise.
3706 (grub_arg_parse): Likewise.
3707 (grub_arg_show_help): Likewise.
3709 * include/grub/rescue.h (grub_rescue_register_command): Removed.
3710 (grub_rescue_unregister_command): Likewise.
3712 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
3713 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
3714 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
3716 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
3717 grub_rescue_cmd_initrd.
3718 * include/grub/i386/loader.h: Likewise.
3719 * include/grub/x86_64/loader.h: Likewise.
3721 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
3723 2009-03-21 Bean <bean123ch@gmail.com>
3725 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
3726 instead of stat in mingw environment.
3728 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
3730 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
3732 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
3735 2009-03-21 Bean <bean123ch@gmail.com>
3737 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
3740 2009-03-18 Michel Dänzer <michel@daenzer.net>
3742 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
3743 checking inode flags for EXT4_EXTENTS_FLAG.
3745 2009-03-18 Robert Millan <rmh@aybabtu.com>
3747 * loader/i386/linux.c: Include `<grub/video.h>' and
3748 `<grub/i386/pc/vbe.h>'..
3749 (grub_linux_setup_video): New function. Loosely based on the EFI one.
3750 (grub_linux32_boot): Attempt to configure video settings with
3751 grub_linux_setup_video().
3752 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
3753 to avoid grub_console_fini() which would step out of graphical mode
3756 2009-03-14 Robert Millan <rmh@aybabtu.com>
3758 Fix build on powerpc.
3759 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
3761 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
3763 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
3764 background image command.
3766 2009-03-12 Colin D Bennett <colin@gibibit.com>
3768 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
3769 (grub_gfxterm_putchar): Extract pairs of identical calls to
3770 draw_cursor out of conditional blocks.
3772 2009-03-11 Pavel Roskin <proski@gnu.org>
3774 * fs/hfs.c (grub_hfs_strncasecmp): New function.
3775 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
3777 2009-03-11 Robert Millan <rmh@aybabtu.com>
3779 * loader/i386/multiboot_elfxx.c
3780 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
3782 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
3784 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
3787 2009-03-11 Robert Millan <rmh@aybabtu.com>
3789 * loader/i386/multiboot.c (code_size): New variable.
3790 (grub_multiboot): Define offsets by adding to `code_size' rather
3791 than subtracting from `grub_multiboot_payload_size'. Provide
3792 4-byte alignment to MBI and others by increasing
3793 `boot_loader_name_length' appropriately.
3795 * loader/i386/multiboot_elfxx.c
3796 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
3798 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
3800 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
3803 2009-03-08 Robert Millan <rmh@aybabtu.com>
3805 Make loader/i386/linux.c usable on i386-pc again.
3807 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
3809 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
3812 2009-03-07 Bean <bean123ch@gmail.com>
3814 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
3817 2009-03-06 Robert Millan <rmh@aybabtu.com>
3819 Fix display issue on terminals with screen size other than 80x25
3820 (e.g. gfxterm with resolution higher than 640x480).
3822 * normal/main.c (grub_normal_init_page): Display title text in a
3823 position relative to the center of the terminal instead of relying
3824 on a hardcoded offset.
3826 2009-03-04 Robert Millan <rmh@aybabtu.com>
3828 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
3831 * Makefile.in (host_kernel): New variable.
3832 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
3833 scripts instead of just the windows one.
3834 * configure.ac: Initialize and AC_SUBST `host_kernel'.
3836 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
3838 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
3840 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
3841 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3842 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3843 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3844 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3845 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3847 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
3849 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
3850 or if there's no space for the disk label and print the partition number on a
3853 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
3855 * util/misc.c: Include <time.h>.
3856 (grub_millisleep): New function.
3858 2009-03-04 Bean <bean123ch@gmail.com>
3860 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
3861 another option -mno-red-zone.
3863 * commands/handler.c: Change module description.
3865 * kern/handler.c: Add missing space at the end of description line.
3867 * kern/list.c: Likewise.
3869 2009-03-03 Robert Millan <rmh@aybabtu.com>
3871 Move more components to the relocation area, and fix mbi pointer
3872 handling to use the destination rather than the origin (thanks to
3873 Vladimir Serbinenko for spotting).
3875 * loader/i386/multiboot.c (mbi_dest): New variable.
3876 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
3877 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
3880 2009-03-01 Bean <bean123ch@gmail.com>
3882 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
3883 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
3884 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
3885 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
3887 * loader/i386/efi/linux.c (acpi_guid): New variable.
3888 (acpi_guid): Likewise.
3889 (EBDA_SEG_ADDR): New constant.
3890 (LOW_MEM_ADDR): Likewise.
3891 (FAKE_EBDA_SEG): Likewise.
3892 (fake_bios_data): New function.
3893 (grub_linux_boot): Call fake_bios_data.
3895 2009-03-01 Bean <bean123ch@gmail.com>
3897 * commands/terminal.c: Removed.
3899 * commands/handler.c: New file.
3901 * include/grub/list.h: Likewise.
3903 * include/grub/handler.h: Likewise.
3905 * kern/list.c: Likewise.
3907 * kern/handler.c: Likewise.
3909 * kern/term.h: Include header file <grub/handler.h>.
3910 (grub_term_input): Move next field to the beginning.
3911 (grub_term_output): Likewise.
3912 (grub_term_input_class): New variable.
3913 (grub_term_output_class): Likewise.
3914 (grub_term_register_input): Changed to inline function.
3915 (grub_term_register_output): Likewise.
3916 (grub_term_unregister_input): Likewise.
3917 (grub_term_unregister_output): Likewise.
3918 (grub_term_set_current_input): Likewise.
3919 (grub_term_set_current_output): Likewise.
3920 (grub_term_get_current_input): Likewise.
3921 (grub_term_get_current_output): Likewise.
3922 (grub_term_iterate_input): Removed.
3923 (grub_term_iterate_output): Likewise.
3925 * kern/term.c (grub_term_list_input): Removed.
3926 (grub_term_list_output): Likewise.
3927 (grub_term_input_class): New variable.
3928 (grub_term_output_class): Likewise.
3929 (grub_cur_term_input): Change variable as macro.
3930 (grub_cur_term_output): Likewise.
3931 (grub_term_register_input): Removed.
3932 (grub_term_register_output): Likewise.
3933 (grub_term_unregister_input): Likewise.
3934 (grub_term_unregister_output): Likewise.
3935 (grub_term_set_current_input): Likewise.
3936 (grub_term_set_current_output): Likewise.
3937 (grub_term_iterate_input): Likewise.
3938 (grub_term_iterate_output): Likewise.
3939 (grub_term_get_current_input): Likewise.
3940 (grub_term_get_current_output): Likewise.
3942 * util/grub-editenv.c: Include header file <grub/handler.h>.
3943 (grub_term_get_current_input): Removed.
3944 (grub_term_get_current_output): Likewise.
3945 (grub_term_input_class): New variable.
3946 (grub_term_output_class): Likewise.
3948 * util/grub-fstest.c (grub_term_get_current_input): Removed.
3949 (grub_term_get_current_output): Likewise.
3950 (grub_term_input_class): New variable.
3951 (grub_term_output_class): Likewise.
3953 * util/grub-probe.c (grub_term_get_current_input): Removed.
3954 (grub_term_get_current_output): Likewise.
3955 (grub_term_input_class): New variable.
3956 (grub_term_output_class): Likewise.
3958 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
3959 (grub_term_get_current_output): Likewise.
3960 (grub_term_input_class): New variable.
3961 (grub_term_output_class): Likewise.
3963 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
3964 (terminal_mod_SOURCES): Likewise.
3965 (terminal_mod_CFLAGS): Likewise.
3966 (terminal_mod_LDFLAGS): Likewise.
3968 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
3970 (kernel_img_SOURCES): Add list.c and handler.c.
3971 (kernel_img_HEADERS): Add list.h and handler.h.
3973 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
3975 (kernel_mod_SOURCES): Add list.c and handler.c.
3976 (kernel_mod_HEADERS): Add list.h and handler.h.
3978 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
3980 (kernel_elf_SOURCES): Add list.c and handler.c.
3981 (kernel_elf_HEADERS): Add list.h and handler.h.
3983 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
3985 (kernel_elf_SOURCES): Add list.c and handler.c.
3986 (kernel_elf_HEADERS): Add list.h and handler.h.
3988 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
3990 (kernel_mod_SOURCES): Add list.c and handler.c.
3991 (kernel_mod_HEADERS): Add list.h and handler.h.
3993 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
3995 (kernel_elf_SOURCES): Add list.c and handler.c.
3996 (kernel_elf_HEADERS): Add list.h and handler.h.
3998 2009-02-27 Robert Millan <rmh@aybabtu.com>
4000 Factorize elf32 / elf64 code in Multiboot loader. This will
4001 prevent it from getting out of sync again.
4003 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
4004 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
4005 grub_multiboot_load_elf64): Move from here ...
4006 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
4007 grub_multiboot_load_elf): ... to here (new file).
4009 2009-02-27 Robert Millan <rmh@aybabtu.com>
4011 * util/grub.d/10_linux.in: Rename "single-user mode" to
4014 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4016 Don't leak in SCSI code.
4017 * disk/scsi.c (grub_scsi_close): free `scsi'.
4019 2009-02-27 Robert Millan <rmh@aybabtu.com>
4021 * loader/i386/pc/multiboot.c: Move from here ...
4022 * loader/i386/multiboot.c: ... to here. Update all users.
4024 2009-02-27 Robert Millan <rmh@aybabtu.com>
4026 Patch from Alexandre Bique <bique.alexandre@gmail.com>
4027 * util/i386/pc/grub-setup.c (setup): Fix directory path.
4029 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
4031 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
4034 2009-02-27 Robert Millan <rmh@aybabtu.com>
4036 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
4037 `0x' qualifier as 0 when base is specified as parameter).
4039 2009-02-24 Bean <bean123ch@gmail.com>
4041 * configure.ac: Check for -mcmodel=large in x86_64 target.
4043 * include/grub/efi/api.h (efi_call_10): New macro.
4044 (efi_wrap_10): New function.
4046 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
4047 (GRUB_PE32_REL_BASED_HIGH): Likewise.
4048 (GRUB_PE32_REL_BASED_LOW): Likewise.
4049 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
4050 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
4051 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
4052 (GRUB_PE32_REL_BASED_SECTION): Likewise.
4053 (GRUB_PE32_REL_BASED_REL): Likewise.
4054 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
4055 (GRUB_PE32_REL_BASED_DIR64): Likewise.
4056 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
4058 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
4061 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
4062 (efi_wrap_10): New function.
4064 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
4066 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
4067 MB/MBP model (NV chipset).
4068 (devdata_devs): Add devpath_5 to the list.
4070 * load/i386/efi/linux.c (video_base): Remove variable.
4071 (RGB_MASK): New macro.
4072 (RGB_MAGIC): Likewise.
4073 (LINE_MIN): Likewise.
4074 (LINE_MAX): Likewise.
4075 (FBTEST_STEP): Likewise.
4076 (FBTEST_COUNT): Likewise.
4077 (fb_list): New variable.
4078 (grub_find_video_card): Remove function.
4079 (find_framebuf): New function.
4080 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
4083 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
4086 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
4088 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
4090 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
4093 2009-02-22 Robert Millan <rmh@aybabtu.com>
4095 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
4096 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
4097 in our relocation, instead of using it directly from heap. Also
4098 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
4100 2009-02-21 Robert Millan <rmh@aybabtu.com>
4102 Implement USB keyboard support (based on patch by Marco Gerards)
4104 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
4105 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
4106 (usb_keyboard_mod_LDFLAGS): New variables.
4108 * term/usb_keyboard.c: New file.
4110 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
4112 Corrected wrong declaration
4114 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
4116 2009-02-14 Christian Franke <franke@computer.org>
4118 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
4119 (grub_lspci_iter): Print class code and programming interface byte.
4121 2009-02-14 Christian Franke <franke@computer.org>
4123 * gendistlist.sh: Ignore `.svn' directories.
4125 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
4127 * fs/fat.c: Add 2009 to Copyright line.
4129 2009-02-14 Christian Franke <franke@computer.org>
4131 * commands/hdparm.c: New file. Provides `hdparm' command
4132 which sends ATA commands via grub_disk_ata_pass_through ().
4134 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
4136 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
4137 and <grub/cpu/io.h> to include/grub/ata.h.
4138 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
4139 (GRUB_CDROM_SECTOR_SIZE): Remove.
4140 (GRUB_ATA_*): Move to include/grub/ata.h.
4141 (GRUB_ATAPI_*): Likewise.
4142 (enum grub_ata_commands): Likewise.
4143 (enum grub_ata_timeout_milliseconds): Likewise.
4144 (struct grub_ata_device): Likewise.
4145 (grub_ata_regset): Likewise.
4146 (grub_ata_regget): Likewise.
4147 (grub_ata_regset2): Likewise.
4148 (grub_ata_regget2): Likewise.
4149 (grub_ata_check_ready): Likewise.
4150 (grub_ata_wait_not_busy): Remove static, exported in
4152 (grub_ata_wait_drq): Likewise.
4153 (grub_ata_pio_read): Likewise.
4155 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
4156 function for hdparm.mod.
4158 * include/grub/ata.h: New file, contains declarations from
4160 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
4162 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
4163 (grub_disk_ata_pass_through): New exported variable.
4165 * kern/disk.c (grub_disk_ata_pass_through): New variable.
4167 2009-02-13 Colin D Bennett <colin@gibibit.com>
4169 Support multiple fallback entries, and provide an API to support
4170 executing default+fallback menu entries. Renamed the `terminal' menu
4173 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
4174 variable declaration.
4175 (grub_menu_execute_callback): New structure declaration.
4176 (grub_menu_execute_callback_t): New typedef.
4177 (grub_menu_execute_with_fallback): New function declaration.
4178 (grub_menu_get_entry): Likewise.
4179 (grub_menu_get_timeout): Likewise.
4180 (grub_menu_set_timeout): Likewise.
4182 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
4184 * normal/menu.c (grub_wait_after_message): Moved to
4185 `normal/menu_text.c'.
4186 (draw_border): Likewise.
4187 (print_message): Likewise.
4188 (print_entry): Likewise.
4189 (print_entries): Likewise.
4190 (grub_menu_init_page): Likewise.
4191 (get_entry_number): Likewise.
4192 (print_timeout): Likewise.
4193 (run_menu): Likewise.
4194 (grub_menu_execute_entry): Likewise.
4195 (show_text_menu): Likewise.
4196 (get_and_remove_first_entry_number): New function.
4197 (grub_menu_execute_with_fallback): Likewise.
4198 (get_entry): Renamed to ...
4199 (grub_menu_get_entry): .. this and made it global.
4200 (get_timeout): Renamed to ...
4201 (grub_menu_get_timeout): ... this and made it global.
4202 (set_timeout): Renamed to ...
4203 (grub_menu_set_timeout): ... this and made it global.
4204 (grub_normal_terminal_menu_viewer): Renamed to ...
4205 (grub_normal_text_menu_viewer): ... this.
4207 * normal/menu_text.c: New file. Extracted text-menu-specific code
4210 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
4211 (normal_mod_SOURCES): Likewise.
4213 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
4214 (normal_mod_SOURCES): Likewise.
4216 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4217 (normal_mod_SOURCES): Likewise.
4219 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
4220 (normal_mod_SOURCES): Likewise.
4222 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4223 (normal_mod_SOURCES): Likewise.
4225 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4226 (normal_mod_SOURCES): Likewise.
4228 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4229 (normal_mod_SOURCES): Likewise.
4231 2009-02-11 Robert Millan <rmh@aybabtu.com>
4233 * util/grub.d/00_header.in: Update old reference to `font' command.
4235 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
4237 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
4239 Based on patch from Javier MartÃn.
4241 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
4243 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
4244 to avoid false positives with FAT.
4245 (grub_fstest_SOURCES): Likewise.
4246 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
4247 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4248 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4249 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
4250 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4251 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4253 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
4255 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
4256 bpb.version_specific.fat12_or_fat16.fstype and
4257 bpb.version_specific.fat32.fstype.
4259 2009-02-08 Robert Millan <rmh@aybabtu.com>
4261 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
4263 2009-02-08 Robert Millan <rmh@aybabtu.com>
4265 * Makefile.in (host_os, host_cpu): New variables.
4266 (target_os): Remove. Update all users.
4268 2009-02-08 Marco Gerards <marco@gnu.org>
4270 * Makefile.in (enable_grub_emu_usb): New variable.
4271 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
4272 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
4273 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
4274 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
4275 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
4276 `usbtest.mod' and `usbms.mod'.
4277 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
4278 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
4279 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
4280 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
4281 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
4284 * disk/usbms.c: New file.
4286 * include/grub/usb.h: Likewise.
4288 * include/grub/usbtrans.h: Likewise.
4290 * include/grub/usbdesc.h: Likewise.
4292 * bus/usb/usbtrans.c: Likewise.
4294 * bus/usb/ohci.c: Likewise.
4296 * bus/usb/uhci.c: Likewise.
4298 * bus/usb/usbhub.c: Likewise.
4300 * bus/usb/usb.c: Likewise.
4302 * commands/usbtest.c: Likewise.
4304 * util/usb.c: Likewise.
4306 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
4308 * configure.ac: Test for libusb presence.
4310 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
4312 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
4314 * kern/mm.c: Add more comments.
4316 2009-02-08 Robert Millan <rmh@aybabtu.com>
4318 Patch from Javier MartÃn.
4319 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
4320 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
4322 2009-02-08 Robert Millan <rmh@aybabtu.com>
4324 * fs/cpio.c: Split tar functionality to ...
4325 * fs/tar.c: ... here (new file). Update all users.
4327 2009-02-07 Robert Millan <rmh@aybabtu.com>
4329 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
4330 backward-incompatible features.
4332 Based on patch from Javier MartÃn, with some adjustments.
4334 2009-02-07 Michael Scherer <misc@mandriva.org>
4336 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
4338 2009-02-07 Robert Millan <rmh@aybabtu.com>
4340 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
4341 position of `disk/lvm.c' to ensure grub_init_all() always picks it
4342 after the RAID stuff.
4344 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
4346 Fixes problem when running vbetest command as reported by
4347 Vladimir Serbinenko <phcoder@gmail.com>.
4349 * (grub_vbe_set_video_mode): Fixed problem with text modes.
4351 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
4353 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
4354 /dev/md/NpN style mdraid devices.
4356 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
4358 * util/unifont2pff.rb: Remove.
4360 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
4362 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
4365 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
4367 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
4368 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
4369 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4370 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
4371 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4372 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4373 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4375 2009-02-02 Christian Franke <franke@computer.org>
4377 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
4379 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
4381 * INSTALL: Note that we now require at least autoconf 2.59 and
4382 that LZO is optional.
4384 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
4386 Base on patch on bug #24154 created by Tomas Tintera
4389 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
4391 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
4393 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
4394 <bero@arklinux.org>.
4396 * normal/parser.y (script_init): Add missing semicolon.
4398 2009-01-31 Colin D Bennett <colin@gibibit.com>
4400 * normal/main.c: Add include to grub/menu_viewer.h.
4401 (free_menu_entry_classes): Added.
4402 (grub_normal_menu_addentry): Added class property handling.
4403 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
4404 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
4406 * normal/menu_viewer.c: New file.
4408 * normal/menu.c (run_menu_entry): Renamed to ...
4409 (grub_menu_execute_entry): ... this and made it as global.
4410 (grub_menu_run): Renamed to ...
4411 (show_text_menu): ... this and made it local.
4412 (show_text_menu): Adapt to new function names.
4413 (grub_normal_terminal_menu_viewer): New global variable.
4415 * include/grub/menu.h: New file.
4417 * include/grub/menu_viewer.h: New file.
4419 * include/grub/normal.h: Added include to grub/menu.h.
4420 (grub_menu_entry): Moved to include/grub/menu.h.
4421 (grub_menu_entry_t): Likewise.
4422 (grub_menu): Likewise.
4423 (grub_menu_t): Likewise.
4424 (grub_normal_terminal_menu_viewer): Added.
4425 (grub_menu_execute_entry): Likewise.
4426 (grub_menu_run): Removed.
4428 * DISTLIST: Added include/grub/menu.h.
4429 Added include/grub/menu_viewer.h.
4430 Added normal/menu_viewer.c.
4432 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
4434 * normal/execute.c (grub_script_execute_menuentry): Changed to use
4435 arglist for menutitle arguments.
4437 * normal/main.c (grub_normal_menu_addentry): Likewise.
4439 * normal/parser.y (menuentry): Likewise.
4441 * normal/script.c (grub_script_create_cmdmenu): Likewise.
4443 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
4444 (grub_script_create_cmdmenu): Likewise.
4446 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
4448 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
4451 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
4453 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
4455 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
4457 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
4459 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
4461 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
4463 2009-01-30 Christian Franke <franke@computer.org>
4465 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
4466 in option help text.
4468 2009-01-27 Pavel Roskin <proski@gnu.org>
4470 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
4472 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
4474 * commands/lsmmap.c: Add include to grub/machine/memory.h.
4476 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
4478 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
4479 unregister function.
4481 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
4483 * disk/scsi.c (grub_scsi_read): Fix sign problem.
4485 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
4487 * util/grub-mkfont.c (usage): Fix typo.
4489 * util/elf/grub-mkimage.c (load_modules): Fix warning.
4491 2009-01-26 Daniel Mierswa <impulze@impulze.org>
4493 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
4495 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
4497 * kern/misc.c (grub_strcasecmp): New function.
4498 (grub_strcasecmp): Use grub_size_t instead of int for length.
4500 * include/grub/misc.h: Update function prototypes.
4502 2009-01-26 Robert Millan <rmh@aybabtu.com>
4504 * configure.ac: Fix cross-compilation check.
4506 2009-01-22 Christian Franke <franke@computer.org>
4508 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
4509 (precision) digit string. Allow `.format2' without `format1' (width).
4510 Limit input chars for `%s' output to `format2' if specified. This is
4511 compatible with standard printf ().
4513 2009-01-22 Christian Franke <franke@computer.org>
4515 * disk/ata.c (grub_ata_wait_status): Replace by ...
4516 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
4517 other status bits may be invalid while BSY is asserted.
4518 (grub_ata_check_ready): New function.
4519 (grub_ata_cmd): Removed.
4520 (grub_ata_wait_drq): New function.
4521 (grub_ata_strncpy): Remove inline.
4522 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
4523 and error check now done by grub_ata_wait_drq ().
4524 (grub_ata_pio_write): Likewise.
4525 (grub_atapi_identify): Set DEV before check for !BSY. Use
4526 grub_ata_wait_drq () to wait for data.
4527 (grub_ata_device_initialize): Add status register check to
4528 detect missing SATA slave devices. Add debug messages.
4529 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
4530 (grub_atapi_packet): Set DEV before check for !BSY. Replace
4531 transfer loop by grub_ata_pio_write ().
4532 (grub_ata_identify): Set DEV before check for !BSY. Use
4533 grub_ata_wait_drq () to wait for data.
4534 (grub_ata_setaddress): Set DEV before check for !BSY.
4535 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
4536 read/write in one loop. Fix invalid command on write. Fix incomplete
4537 command on (size % batch) == 0. Add missing error check after write of
4538 last block. Add debug messages.
4539 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
4541 2009-01-19 Christian Franke <franke@computer.org>
4543 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
4544 (GRUB_ATAPI_IREASON_*): Likewise.
4545 (grub_ata_pio_write): Fix timeout error return.
4546 (grub_atapi_identify): Add grub_ata_wait () after cmd.
4547 (grub_atapi_wait_drq): New function.
4548 (grub_atapi_packet): New parameter `size'.
4549 Use grub_atapi_wait_drq () and direct write instead of
4550 grub_ata_pio_write ().
4551 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
4552 reads the number of bytes requested by the device for each DRQ
4554 (grub_atapi_write): Remove old implementation, return not
4555 implemented instead.
4557 2009-01-19 Christian Franke <franke@computer.org>
4559 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
4560 of 512 to calculate data size.
4561 (grub_scsi_read12): Likewise.
4562 (grub_scsi_write10): Likewise.
4563 (grub_scsi_write12): Likewise.
4564 (grub_scsi_read): Adjust size according to blocksize.
4565 Add checks for invalid blocksize and unaligned transfer.
4567 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
4569 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
4571 * term/gfxterm.c (write_char): Fix background rendering for wide
4574 2009-01-19 Robert Millan <rmh@aybabtu.com>
4576 * config.guess: Update to latest version from config git.
4577 * config.sub: Likewise.
4579 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
4581 * Makefile.in: Change font compilation to use new grub-mkfont instead
4584 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
4585 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
4586 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
4587 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
4588 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
4589 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
4590 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
4591 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
4592 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
4594 2009-01-16 Christian Franke <franke@computer.org>
4596 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
4597 (enum grub_ata_timeout_milliseconds): New enum.
4598 (grub_ata_wait_status): Add parameter milliseconds.
4599 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
4600 recovery from timed-out commands.
4601 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
4602 return grub_errno instead of REG_ERROR.
4603 (grub_ata_pio_write): Add parameter milliseconds.
4604 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
4605 Pass milliseconds to grub_ata_wait_status () and
4606 grub_ata_pio_read ().
4607 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
4608 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
4609 grub_ata_wait_status (). Fix IDENTIFY timeout check.
4610 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
4611 It is not suitable for device detection, because DEV bit is ignored,
4612 the command may run too long, and not all devices set the signature
4614 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
4615 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
4616 Fix device selection, DEV bit must be set first to address the registers
4617 of the correct device.
4618 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
4619 grub_ata_pio_read/write ().
4620 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
4621 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
4623 2009-01-13 Carles Pina i Estany <carles@pina.cat>
4625 * util/grub-editenv.c (main): Use fseeko(), not fseek().
4627 2009-01-13 Bean <bean123ch@gmail.com>
4629 * util/grub-mkfont.c (write_font): forget to remove some debug code.
4631 2009-01-13 Bean <bean123ch@gmail.com>
4633 * Makefile.in: (enable_grub_mkfont): New variable.
4634 (freetype_cflags): Likewise.
4635 (freetype_libs): Likewise.
4637 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
4638 (grub_mkfont_SOURCES): New variable.
4639 (grub_mkfont_CFLAGS): Likewise.
4640 (grub_mkfont_LDFLAGS): Likewise.
4642 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
4643 library if `--enable-grub-mkfont' is requested.
4644 (enable_grub_mkfont): New variable.
4645 (freetype_cflags): Likewise.
4646 (freetype_libs): Likewise.
4648 * util/grub-mkfont.c: New file.
4650 2009-01-12 Christian Franke <franke@computer.org>
4652 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
4653 mode check. Fix setting of compat_use[].
4655 2009-01-10 Robert Millan <rmh@aybabtu.com>
4657 Update a few copyright years which we forgot to do in 2008 (only for
4658 files whose changes made in 2008 were copyright-significant)
4660 * Makefile.in: Add 2008 to Copyright line.
4661 * disk/ieee1275/ofdisk.c: Likewise.
4662 * disk/efi/efidisk.c: Likewise.
4663 * kern/dl.c: Likewise.
4664 * kern/sparc64/ieee1275/init.c: Likewise.
4665 * kern/mm.c: Likewise.
4666 * kern/efi/mm.c: Likewise.
4667 * boot/i386/pc/boot.S: Likewise.
4668 * genfslist.sh: Likewise.
4669 * fs/iso9660.c: Likewise.
4670 * fs/hfs.c: Likewise.
4671 * fs/jfs.c: Likewise.
4672 * fs/minix.c: Likewise.
4673 * fs/ufs.c: Likewise.
4674 * gensymlist.sh.in: Likewise.
4675 * genkernsyms.sh.in: Likewise.
4676 * include/grub/misc.h: Likewise.
4677 * include/grub/types.h: Likewise.
4678 * include/grub/symbol.h: Likewise.
4679 * include/grub/elf.h: Likewise.
4680 * include/grub/kernel.h: Likewise.
4681 * include/grub/disk.h: Likewise.
4682 * include/grub/dl.h: Likewise.
4683 * include/grub/i386/linux.h: Likewise.
4684 * include/grub/i386/pc/biosdisk.h: Likewise.
4685 * include/grub/efi/api.h: Likewise.
4686 * include/grub/efi/pe32.h: Likewise.
4687 * include/grub/util/misc.h: Likewise.
4688 * normal/execute.c: Likewise.
4689 * normal/arg.c: Likewise.
4690 * normal/completion.c: Likewise.
4691 * normal/lexer.c: Likewise.
4692 * normal/parser.y: Likewise.
4693 * normal/misc.c: Likewise.
4694 * commands/i386/pc/vbeinfo.c: Likewise.
4695 * commands/hexdump.c: Likewise.
4696 * commands/terminal.c: Likewise.
4697 * commands/ls.c: Likewise.
4698 * commands/help.c: Likewise.
4699 * partmap/pc.c: Likewise.
4700 * loader/efi/chainloader.c: Likewise.
4701 * loader/multiboot_loader.c: Likewise.
4702 * loader/i386/pc/multiboot2.c: Likewise.
4703 * term/efi/console.c: Likewise.
4704 * term/i386/pc/serial.c: Likewise.
4705 * util/lvm.c: Likewise.
4706 * util/console.c: Likewise.
4707 * util/i386/efi/grub-mkimage.c: Likewise.
4708 * util/raid.c: Likewise.
4710 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
4712 * commands/videotest.c: Removed include to grub/machine/memory.h.
4714 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
4715 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
4716 (video_mod_SOURCES): Removed.
4717 (video_mod_CFLAGS): Likewise.
4718 (video_mod_LDFLAGS): Likewise.
4719 (gfxterm_mod_SOURCES): Likewise.
4720 (gfxterm_mod_CFLAGS): Likewise.
4721 (gfxterm_mod_LDFLAGS): Likewise.
4722 (videotest_mod_SOURCES): Likewise.
4723 (videotest_mod_CFLAGS): Likewise.
4724 (videotest_mod_LDFLAGS): Likewise.
4725 (bitmap_mod_SOURCES): Likewise.
4726 (bitmap_mod_CFLAGS): Likewise.
4727 (bitmap_mod_LDFLAGS): Likewise.
4728 (tga_mod_SOURCES): Likewise.
4729 (tga_mod_CFLAGS): Likewise.
4730 (tga_mod_LDFLAGS): Likewise.
4731 (jpeg_mod_SOURCES): Likewise.
4732 (jpeg_mod_CFLAGS): Likewise.
4733 (jpeg_mod_LDFLAGS): Likewise.
4734 (png_mod_SOURCES): Likewise.
4735 (png_mod_CFLAGS): Likewise.
4736 (png_mod_LDFLAGS): Likewise.
4738 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
4739 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
4740 (video_mod_SOURCES): Added.
4741 (video_mod_CFLAGS): Likewise.
4742 (video_mod_LDFLAGS): Likewise.
4743 (videotest_mod_SOURCES): Likewise.
4744 (videotest_mod_CFLAGS): Likewise.
4745 (videotest_mod_LDFLAGS): Likewise.
4746 (bitmap_mod_SOURCES): Likewise.
4747 (bitmap_mod_CFLAGS): Likewise.
4748 (bitmap_mod_LDFLAGS): Likewise.
4749 (tga_mod_SOURCES): Likewise.
4750 (tga_mod_CFLAGS): Likewise.
4751 (tga_mod_LDFLAGS): Likewise.
4752 (jpeg_mod_SOURCES): Likewise.
4753 (jpeg_mod_CFLAGS): Likewise.
4754 (jpeg_mod_LDFLAGS): Likewise.
4755 (png_mod_SOURCES): Likewise.
4756 (png_mod_CFLAGS): Likewise.
4757 (png_mod_LDFLAGS): Likewise.
4758 (gfxterm_mod_SOURCES): Likewise.
4759 (gfxterm_mod_CFLAGS): Likewise.
4760 (gfxterm_mod_LDFLAGS): Likewise.
4762 * term/gfxterm.c: Removed include to grub/machine/memory.h,
4763 grub/machine/console.h.
4765 2009-01-04 Jerone Young <jerone@gmail.com>
4767 Make on screen instructions clearer
4769 Based on patch created by Jidanni <jidanni@jidanni.org>
4771 * normal/menu.c: print clearer instructions on the screen
4773 2009-01-02 Colin D Bennett <colin@gibibit.com>
4777 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
4778 build system and fixed gfxterm.c to work with different sized fonts.
4780 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
4782 * configure: Re-generated.
4784 * DISTLIST: Removed font/manager.c.
4786 Added font/font_cmd.c.
4788 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
4791 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
4793 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
4795 * kern/term.c: Changed users of grub_utf8_to_ucs4.
4797 * normal/menu.c: Likewise.
4799 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
4800 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
4802 * include/grub/font.h: Replaced with new file.
4804 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
4805 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
4806 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
4807 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
4808 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
4809 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
4810 fg_red, fg_green, fg_blue, fg_alpha.
4811 (grub_video_adapter): Removed blit_glyph.
4812 (grub_video_blit_glyph): Removed.
4814 * font/manager.c: Removed file.
4816 * font/font.c: New file.
4818 * font/font_cmd.c: Likewise.
4820 * video/video.c (grub_video_blit_glyph): Removed.
4822 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
4823 (grub_video_vbe_map_rgba): Likewise.
4824 (grub_video_vbe_unmap_color_int): Likewise.
4825 (grub_video_vbe_blit_glyph): Removed.
4826 (grub_video_vbe_adapter): Removed blit_glyph.
4828 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
4829 (get_pixel): Likewise.
4830 (set_pixel): Likewise.
4832 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
4834 * term/gfxterm.c: Adapted to new font engine.
4836 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
4838 * term/i386/pc/vga.c: Likewise.
4840 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
4842 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
4844 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
4846 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
4848 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
4850 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
4852 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
4854 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
4856 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
4858 * util/grub.d/00_header.in: Changed to use new loadfont command.
4860 * util/grub-mkconfig_lib.in: Changed font extension.
4862 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
4864 * util/getroot.c (grub_util_get_grub_dev): Add support for
4865 /dev/md/dNNpNN style partitionable mdraid devices.
4867 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
4869 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
4870 at a time limit of the PXE TFTP API correctly.
4871 (grub_pxefs_close): Likewise.
4873 2008-11-29 Robert Millan <rmh@aybabtu.com>
4875 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
4876 grub_ata_device_initialize() calls.
4878 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
4880 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
4882 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
4884 2008-11-28 Robert Millan <rmh@aybabtu.com>
4886 Fix build on powerpc-ieee1275. Based on patch created by
4887 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
4888 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
4889 `kern/ieee1275/mmap.c'.
4890 * include/grub/powerpc/ieee1275/memory.h: New file.
4892 Provide grub-install on coreboot.
4893 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
4894 (grub_install_SOURCES): New variable.
4895 * util/i386/pc/grub-install.in: Add a few condition checks to make it
4898 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
4900 * util/grub-fstest.c (grub_term_get_current_input): Change return type
4901 to `grub_term_input_t'.
4902 (grub_term_get_current_output): Change return type to
4903 `grub_term_output_t'.
4905 2008-11-22 Robert Millan <rmh@aybabtu.com>
4907 Fix breakage on coreboot due to declaration mismatch.
4908 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
4909 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
4910 grub_vga_text_cls().
4912 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
4913 comments. Avoid copying one more byte than necessary (just in case).
4915 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
4916 to 0x200000 (avoids trouble with some OFW implementations, and matches
4917 with the one in Yaboot).
4918 Reported by Manoel Abranches
4920 2008-11-20 Robert Millan <rmh@aybabtu.com>
4922 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
4923 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
4925 * util/grub-mkconfig_lib.in (grub_warn): New function.
4926 (convert_system_path_to_grub_path): Use grub_warn() when issuing
4927 warnings, to obtain consistent formatting.
4928 * util/grub.d/00_header.in: Likewise.
4929 * util/update-grub_lib.in: Likewise.
4931 * loader/i386/linux.c (allocate_pages): Fix a warning.
4932 Move comment text to `#error' stanza.
4934 Harmonize ieee1275's grub_available_iterate() with the generic
4935 grub_machine_mmap_iterate() interface (fixes a recently-introduced
4936 build problem on i386-ieee1275):
4937 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
4938 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
4939 parameter `type'. Update all users of this function.
4940 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
4941 `kern/ieee1275/mmap.c'.
4942 * kern/ieee1275/init.c
4943 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
4945 (grub_machine_mmap_iterate): ... this.
4946 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
4947 return type to `grub_err_t'. Update all implementations of this
4949 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
4952 Add `lsmmap' command (lists firmware-provided memory map):
4953 * commands/lsmmap.c: New file.
4954 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
4955 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
4957 * conf/powerpc-ieee1275.rmk: Likewise.
4958 * conf/i386-coreboot.rmk: Likewise.
4959 * conf/i386-ieee1275.rmk: Likewise.
4961 2008-11-19 Robert Millan <rmh@aybabtu.com>
4963 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
4964 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
4965 constraints to initrd allocation (based on code from
4966 loader/i386/pc/linux.c). Without them, initrd was allocated too high
4967 for Linux to find it.
4969 2008-11-14 Robert Millan <rmh@aybabtu.com>
4971 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
4972 order to cope with duplicate slashes.
4974 2008-11-14 Robert Millan <rmh@aybabtu.com>
4976 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
4977 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
4978 don't want to mess with lower memory, because it is used in the Linux
4981 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
4982 an appropriate place in lower memory, between 0x10000 and 0x90000,
4983 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
4984 is in our heap (probably as a result of it being corrupted during
4985 decompression). Add #error instance with comment to explain why this
4986 loader isn't currently usable on PC/BIOS.
4988 2008-11-14 Robert Millan <rmh@aybabtu.com>
4990 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
4991 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
4993 2008-11-12 Robert Millan <rmh@aybabtu.com>
4995 Make loader/i386/linux.c buildable on i386-pc (although disabled).
4997 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
4998 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
5000 * include/grub/i386/pc/memory.h: ... to here.
5002 2008-11-12 Robert Millan <rmh@aybabtu.com>
5004 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
5007 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
5008 (grub_console_cur_color, grub_console_real_putchar)
5009 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
5010 (grub_console_setcolorstate, grub_console_setcolor)
5011 (grub_console_getcolor): Move from here ...
5012 * include/grub/i386/vga_common.h: ... to here (new file).
5014 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
5015 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
5017 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
5018 `<grub/i386/vga_common.h>'.
5020 2008-11-12 Robert Millan <rmh@aybabtu.com>
5022 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
5023 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
5024 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
5026 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
5027 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
5029 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
5030 grub_console_init() with call to grub_vga_text_init().
5031 (grub_machine_fini): Replace call to
5032 grub_console_fini() with call to grub_vga_text_fini() and
5033 grub_at_keyboard_fini().
5035 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
5036 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
5037 (grub_console_setcolorstate, grub_console_setcolor)
5038 (grub_console_getcolor): New function prototypes.
5040 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
5041 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
5042 (grub_vga_text_setcursor): Static-ize.
5043 (grub_vga_text_term): New structure.
5044 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
5046 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
5047 (grub_console_cur_color, grub_console_standard_color)
5048 (grub_console_normal_color, grub_console_highlight_color)
5049 (map_char, grub_console_putchar, grub_console_getcharwidth)
5050 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
5051 (grub_console_getcolor): Move from here ...
5052 * term/i386/vga_common.c: ... to here (same function names).
5054 2008-11-12 Robert Millan <rmh@aybabtu.com>
5056 Use newly-added Multiboot support in coreboot.
5058 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
5059 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
5061 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
5062 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
5063 (codestart): Store the MBI in `startup_multiboot_info' when we're
5064 being loaded using Multiboot.
5066 * kern/i386/coreboot/init.c (grub_machine_init): Move
5067 grub_at_keyboard_init() call to beginning of function (useful for
5068 debugging). Call grub_machine_mmap_init() before attempting to use
5069 grub_machine_mmap_iterate().
5070 (grub_lower_mem, grub_upper_mem): Move from here ...
5071 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
5074 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
5077 2008-11-12 Robert Millan <rmh@aybabtu.com>
5079 Fix a regression introduced by the at_keyboard.mod split. Because
5080 some terminals are default on some platforms and non-default on
5081 others, the first terminal being registered determines which is
5082 going to be default.
5084 * kern/term.c (grub_term_register_input): If this is the first
5085 terminal being registered, set it as the current one.
5086 (grub_term_register_output): Likewise.
5088 * term/efi/console.c (grub_console_init): Do not call
5089 grub_term_set_current_output() or grub_term_set_current_input().
5090 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
5091 * term/i386/pc/console.c (grub_console_init): Likewise.
5092 (grub_console_fini): Do not call grub_term_set_current_input()
5093 (but leave grub_term_set_current_output() to restore text mode).
5095 2008-11-10 Robert Millan <rmh@aybabtu.com>
5097 * util/grub.d/00_header.in: Add backward compatibility check for
5098 versions of terminal.mod that don't understand `terminal_input' or
5101 2008-11-09 Robert Millan <rmh@aybabtu.com>
5103 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
5104 `terminal_input' / `terminal_output', not `terminal'.
5106 2008-11-08 Robert Millan <rmh@aybabtu.com>
5108 * Makefile.in (include_DATA): Fix srcdir=. assumption.
5109 (DISTCLEANFILES): Add `build_env.mk'.
5111 2008-11-08 Robert Millan <rmh@aybabtu.com>
5113 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
5114 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
5115 members. Update all users.
5116 * util/console.c (grub_ncurses_term): Split in ...
5117 (grub_ncurses_term_input): ... this, and ...
5118 (grub_ncurses_term_output): ... this. Update all users.
5119 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
5121 2008-11-08 Robert Millan <rmh@aybabtu.com>
5123 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
5124 (PKGDATA): Add $(pkgdata_SRCDIR).
5125 (pkglib_BUILDDIR): New variable.
5126 (pkgdata_SRCDIR): New variable.
5127 (build_env.mk): New target.
5128 (include_DATA): New variable.
5129 (install-local): Install $(include_DATA) files in $(includedir).
5131 2008-11-07 Pavel Roskin <proski@gnu.org>
5133 * gendistlist.sh: Use C locale for sorting to ensure consistent
5134 output on all systems.
5136 * util/grub.d/00_header.in: Remove incorrect space before
5139 2008-11-07 Robert Millan <rmh@aybabtu.com>
5141 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
5143 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
5144 * loader/multiboot_loader.c (find_multi_boot2_header): New function
5145 (based on find_multi_boot1_header).
5146 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
5147 using find_multi_boot2_header(), and abort if neither Multiboot or
5148 Multiboot headers were found.
5150 2008-11-07 Robert Millan <rmh@aybabtu.com>
5152 Modularize at_keyboard.mod:
5154 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
5155 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
5156 (at_keyboard_mod_LDFLAGS): New variables.
5158 Actual terminal split:
5160 * include/grub/term.h (struct grub_term): Split in ...
5161 (struct grub_term_input): ... this, and ...
5162 (struct grub_term_output): ... this. Update all users.
5163 (grub_term_set_current): Split in ...
5164 (grub_term_set_current_input): ... this, and ...
5165 (grub_term_set_current_output): ... this.
5166 (grub_term_get_current): Split in ...
5167 (grub_term_get_current_input): ... this, and ...
5168 (grub_term_get_current_output): ... this.
5169 (grub_term_register): Split in ...
5170 (grub_term_register_input): ... this, and ...
5171 (grub_term_register_output): ... this.
5172 (grub_term_unregister): Split in ...
5173 (grub_term_unregister_input): ... this, and ...
5174 (grub_term_unregister_output): ... this.
5175 (grub_term_iterate): Split in ...
5176 (grub_term_iterate_input): ... this, and ...
5177 (grub_term_iterate_output): ... this.
5179 * kern/term.c (grub_term_list): Split in ...
5180 (grub_term_list_input): ... this, and ...
5181 (grub_term_list_output): ... this. Update all users.
5182 (grub_cur_term): Split in ...
5183 (grub_cur_term_input): ... this, and ...
5184 (grub_cur_term_output): ... this. Update all users.
5185 (grub_term_set_current): Split in ...
5186 (grub_term_set_current_input): ... this, and ...
5187 (grub_term_set_current_output): ... this.
5188 (grub_term_get_current): Split in ...
5189 (grub_term_get_current_input): ... this, and ...
5190 (grub_term_get_current_output): ... this.
5191 (grub_term_register): Split in ...
5192 (grub_term_register_input): ... this, and ...
5193 (grub_term_register_output): ... this.
5194 (grub_term_unregister): Split in ...
5195 (grub_term_unregister_input): ... this, and ...
5196 (grub_term_unregister_output): ... this.
5197 (grub_term_iterate): Split in ...
5198 (grub_term_iterate_input): ... this, and ...
5199 (grub_term_iterate_output): ... this.
5201 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
5202 a check for input and one for output (and only attempt to get keys
5203 from user when input works).
5205 * util/grub-probe.c (grub_term_get_current): Split in ...
5206 (grub_term_get_current_input): ... this, and ...
5207 (grub_term_get_current_output): ... this.
5208 * util/grub-fstest.c: Likewise.
5209 * util/i386/pc/grub-setup.c: Likewise.
5210 * util/grub-editenv.c: Likewise.
5212 Portability adjustments:
5214 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
5215 `term/i386/pc/at_keyboard.c'.
5216 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
5217 grub_keyboard_controller_init() (now handled by terminal .init).
5218 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
5219 grub_at_keyboard_init().
5220 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
5221 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
5222 at_keyboard.mod via input terminal interface).
5223 * include/grub/i386/coreboot/console.h: Convert into a stub for
5224 `<grub/i386/pc/console.h>'.
5226 Migrate full terminals to new API:
5228 * term/efi/console.c (grub_console_term): Split into ...
5229 (grub_console_term_input): ... this, and ...
5230 (grub_console_term_output): ... this. Update all users.
5231 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
5232 (grub_ofconsole_init): Split into ...
5233 (grub_ofconsole_init_input): ... this, and ...
5234 (grub_ofconsole_init_output): ... this.
5235 (grub_ofconsole_term): Split into ...
5236 (grub_ofconsole_term_input): ... this, and ...
5237 (grub_ofconsole_term_output): ... this. Update all users.
5238 * term/i386/pc/serial.c (grub_serial_term): Split into ...
5239 (grub_serial_term_input): ... this, and ...
5240 (grub_serial_term_output): ... this. Update all users.
5241 * term/i386/pc/console.c (grub_console_term): Split into ...
5242 (grub_console_term_input): ... this, and ...
5243 (grub_console_term_output): ... this. Update all users.
5244 (grub_console_term_input): Only enable it on PC/BIOS platform.
5245 (grub_console_init): Remove grub_keyboard_controller_init() call.
5247 Migrate input terminals to new API:
5249 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
5250 `i386' and `i386/pc' to enable build on x86_64 (this driver is
5251 i386-specific anyway).
5252 (grub_console_checkkey): Rename to ...
5253 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
5255 (grub_keyboard_controller_orig): New variable.
5256 (grub_console_getkey): Rename to ...
5257 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
5259 (grub_keyboard_controller_init): Static-ize. Save original
5260 controller value so that it can be restored ...
5261 (grub_keyboard_controller_fini): ... here (new function).
5262 (grub_at_keyboard_term): New structure.
5263 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
5266 Migrate output terminals to new API:
5268 * term/i386/pc/vga.c (grub_vga_term): Change type to
5269 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
5270 members. Update all users.
5271 * term/gfxterm.c (grub_video_term): Change type to
5272 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
5273 members. Update all users.
5274 * include/grub/i386/pc/console.h (grub_console_checkkey)
5275 (grub_console_getkey): Do not export (no longer needed by gfxterm,
5278 Migrate `terminal' command and userland tools to new API:
5280 * commands/terminal.c (grub_cmd_terminal): Split into ...
5281 (grub_cmd_terminal_input): ... this, and ...
5282 (grub_cmd_terminal_output): ... this.
5283 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
5284 `terminal_input' and `terminal_output'.
5285 * util/grub.d/00_header.in: Adjust `terminal' calls to new
5286 `terminal_input' / `terminal_output' API.
5287 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
5288 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
5289 provided ${GRUB_TERMINAL}, convert it).
5291 2008-11-04 Robert Millan <rmh@aybabtu.com>
5293 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
5295 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
5297 2008-11-03 Bean <bean123ch@gmail.com>
5299 * kern/elf.c (grub_elf32_load): Revert to previous code.
5300 (grub_elf64_load): Likewise.
5302 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
5304 2008-11-01 Robert Millan <rmh@aybabtu.com>
5306 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
5307 (TARGET_CPPFLAGS): Likewise.
5308 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
5310 2008-11-01 Carles Pina i Estany <carles@pina.cat>
5312 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
5314 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
5316 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
5317 addition of objects until the code is not going to be able to fail.
5319 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
5321 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
5322 (add a missing NULL check, and correct them by moving the pointer
5323 operations after the actual check).
5325 2008-10-29 Robert Millan <rmh@aybabtu.com>
5327 * util/i386/pc/grub-install.in: Handle empty string as output from
5328 make_system_path_relative_to_its_root().
5330 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
5332 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
5333 circular metadata worst case scenario. If the metadata is circular
5334 then copy the wrap in place.
5335 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
5336 project lib/format_text/layout.h
5337 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
5339 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
5341 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
5343 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
5345 * util/update-grub_lib.in: Mention filename in warning message.
5347 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
5349 * NEWS: Update for rename of update-grub to grub-mkconfig.
5351 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
5353 * util/update-grub_lib.in: Copy to ...
5354 * util/grub-mkconfig_lib.in: ... this. Update all users.
5355 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
5356 * util/update-grub.in: Rename to ...
5357 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
5358 option. Add `--output' option to allow users to specify the generated
5359 configuration file. Default to stdout.
5360 (update_grub_dir): Rename to ...
5361 (grub_mkconfig_dir): ... this.
5362 (grub_cfg): Default to an empty string.
5363 * conf/common.rmk (update-grub): Rename to ...
5364 (grub-mkconfig): ... this.
5365 (update-grub_lib): Copy to ...
5366 (grub-mkconfig_lib): ... this.
5367 (update-grub_SCRIPTS): Copy to ...
5368 (grub-mkconfig_SCRIPTS): ... this. Update all users.
5369 (update-grub_DATA): Rename to ...
5370 (grub-mkconfig_DATA): ... this.
5372 2008-09-28 Robert Millan <rmh@aybabtu.com>
5374 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
5375 to `modified'. Add the real `created' field.
5376 (grub_iso9660_uuid): Use `modified' rather than `created' for
5377 constructing the UUID.
5379 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
5381 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
5382 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
5384 2008-09-28 Bean <bean123ch@gmail.com>
5386 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
5387 Thanks to Christian Franke for finding this bug.
5389 2008-09-25 Robert Millan <rmh@aybabtu.com>
5391 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
5392 instances of grub_util_get_disk_name() (see previous commit).
5394 2008-09-25 Robert Millan <rmh@aybabtu.com>
5396 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
5397 `util/i386/get_disk_name.c'.
5398 * conf/i386-efi.rmk: Likewise.
5399 * conf/x86_64-efi.rmk: Likewise.
5400 * conf/i386-coreboot.rmk: Likewise.
5401 * conf/i386-ieee1275.rmk: Likewise.
5402 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
5403 `util/ieee1275/get_disk_name.c'.
5404 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
5405 * util/ieee1275/get_disk_name.c: Remove file.
5406 * util/i386/get_disk_name.c: Remove file.
5407 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
5408 "hd%d" for device.map entries, rather than using
5409 grub_util_get_disk_name().
5411 2008-09-24 Carles Pina i Estany <carles@pina.cat>
5413 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
5415 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
5417 2008-09-24 Carles Pina i Estany <carles@pina.cat>
5419 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
5421 (GRUB_TERM_PPAGE): Changed to 0x4900.
5423 2008-09-24 Robert Millan <rmh@aybabtu.com>
5425 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
5426 macros (they were i386-pc specific).
5427 * include/grub/sparc64/ieee1275/console.h: Likewise.
5428 * include/grub/efi/console.h: Likewise.
5430 2008-09-22 Bean <bean123ch@gmail.com>
5432 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
5433 resident and in attribute list.
5435 * include/grub/ntfs.h (BMP_LEN): Removed.
5437 2008-09-22 Bean <bean123ch@gmail.com>
5439 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
5440 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
5442 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
5443 error occurs, as grub_disk_open will call grub_disk_close, which will
5444 call p->close (scsi).
5446 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
5448 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
5449 (AC_PREREQ): Bumped to 2.59.
5450 (AC_TRY_COMPILE): Replace obsolete macro with ...
5451 (AC_COMPILE_IFELSE): ... this.
5452 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
5453 (AC_LINK_IFELSE): ... this.
5455 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
5457 * autogen.sh: Add a call to `gendistlist.sh'.
5459 2008-09-19 Christian Franke <franke@computer.org>
5461 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
5462 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
5463 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
5464 Export __enable_execute_stack() to modules.
5465 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
5468 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
5470 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
5473 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
5475 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
5476 #include <grub/util/hostdisk.h>.
5478 2008-09-08 Robert Millan <rmh@aybabtu.com>
5480 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
5481 segments when their filesz is zero (grub_file_read() interprets
5482 zero-size as "read until EOF", which results in memory corruption).
5483 Use `lowest_segment' rather than 0 for calculating the current
5484 segment load address.
5486 2008-09-08 Robert Millan <rmh@aybabtu.com>
5488 * util/hostdisk.c (open_device): Replace a grub_util_info() call
5489 with grub_dprintf("hostdisk", ...), as it was so verbose that it
5490 clobbered useful information.
5492 2008-09-08 Robert Millan <rmh@aybabtu.com>
5494 * include/grub/util/biosdisk.h: Move to ...
5495 * include/grub/util/hostdisk.h: ... here. Update all users.
5496 * util/biosdisk.c: Move to ...
5497 * util/hostdisk.c: ... here. Update all users.
5499 2008-09-07 Robert Millan <rmh@aybabtu.com>
5501 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
5503 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
5504 and length can be stored directly in the `mbi->mmap_addr' and
5505 `mbi->mmap_length' struct fields.
5507 2008-09-07 Robert Millan <rmh@aybabtu.com>
5509 * conf/i386.rmk: New file. Provides declaration for building
5511 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
5512 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
5514 Include `conf/i386.mk'.
5515 * conf/i386-efi.rmk: Likewise.
5516 * conf/x86_64-efi.rmk: Likewise.
5517 * conf/i386-coreboot.rmk: Likewise.
5518 * conf/i386-ieee1275.rmk: Likewise.
5520 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
5522 Based on patch created by Colin D Bennett <colin@gibibit.com>.
5523 Adds optimization support for BGR based modes.
5525 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
5526 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
5527 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
5528 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
5529 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
5530 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
5531 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
5532 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
5533 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
5534 (grub_video_i386_vbeblit_index_index): Likewise.
5535 (grub_video_i386_vbeblit_replace_directN): Added.
5536 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
5537 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
5538 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
5539 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
5540 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
5541 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
5542 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
5543 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
5544 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
5545 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
5546 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
5547 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
5548 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
5550 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
5551 (grub_video_i386_vbefill_R8G8B8): Likewise.
5552 (grub_video_i386_vbefill_index): Likewise.
5553 (grub_video_i386_vbefill_direct32): Added.
5554 (grub_video_i386_vbefill_direct24): Likewise.
5555 (grub_video_i386_vbefill_direct16): Likewise.
5556 (grub_video_i386_vbefill_direct8): Likewise.
5558 * include/grub/video.h (grub_video_blit_format): Removed
5559 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
5560 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
5561 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
5562 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
5563 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
5565 * video/video.c (grub_video_get_blit_format): Updated to use new
5566 blit formats. Added handling for 16 bit color modes.
5568 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
5570 (common_blitter): Updated to use new blitters.
5572 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
5574 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
5575 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
5576 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
5577 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
5578 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
5579 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
5580 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
5581 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
5582 (grub_video_i386_vbeblit_index_index): Likewise.
5583 (grub_video_i386_vbeblit_replace_directN): Added.
5584 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
5585 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
5586 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
5587 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
5588 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
5589 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
5590 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
5591 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
5592 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
5593 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
5594 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
5595 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
5596 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
5598 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
5599 (grub_video_i386_vbefill_R8G8B8): Likewise.
5600 (grub_video_i386_vbefill_index): Likewise.
5601 (grub_video_i386_vbefill_direct32): Added.
5602 (grub_video_i386_vbefill_direct24): Likewise.
5603 (grub_video_i386_vbefill_direct16): Likewise.
5604 (grub_video_i386_vbefill_direct8): Likewise.
5606 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
5609 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
5612 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
5615 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
5618 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
5620 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
5623 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
5625 * fs/iso9660.c (grub_iso9660_date): New structure.
5626 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
5627 (grub_iso9660_uuid): New function.
5629 2008-09-05 Bean <bean123ch@gmail.com>
5631 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
5633 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
5634 insensitive bit for names in Win32 and Win32 & DOS namespace.
5636 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
5638 * include/grub/types.h (LONG_MAX): Likewise.
5640 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
5642 * util/getroot.c: Include <config.h>.
5643 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
5644 add support for /dev/md/N devices and handle LVM double dash escaping.
5646 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
5648 * config.guess: Update to latest version from config git.
5649 * config.sub: Likewise.
5651 2008-09-03 Robert Millan <rmh@aybabtu.com>
5653 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
5654 `disk->total_sectors'.
5656 2008-09-01 Colin D Bennett <colin@gibibit.com>
5658 * include/grub/normal.h: Fixed incorrect comment for
5659 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
5661 2008-09-01 Colin D Bennett <colin@gibibit.com>
5663 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
5664 values with defines.
5666 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
5667 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
5668 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
5669 (GRUB_VBE_MODEATTR_COLOR): Likewise.
5670 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
5671 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
5672 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
5673 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
5674 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
5675 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
5676 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
5677 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
5678 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
5679 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
5680 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
5681 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
5682 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
5683 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
5684 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
5686 2008-08-31 Robert Millan <rmh@aybabtu.com>
5688 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
5690 (grub_multiboot): Fix a few warnings.
5692 2008-08-31 Robert Millan <rmh@aybabtu.com>
5694 * loader/i386/pc/multiboot.c: Update comment not to say that
5695 boot_device support is unimplemented.
5697 2008-08-31 Robert Millan <rmh@aybabtu.com>
5699 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
5700 or memory map support are unimplemented.
5702 2008-08-31 Colin D Bennett <colin@gibibit.com>
5704 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
5706 2008-08-31 Colin D Bennett <colin@gibibit.com>
5708 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
5709 total video memory in 'vbeinfo' output; show color format details for
5712 2008-08-30 Pavel Roskin <proski@gnu.org>
5714 * util/genmoddep.c: Remove for real this time.
5715 * DISTLIST: Remove util/genmoddep.c.
5717 2008-08-30 Robert Millan <rmh@aybabtu.com>
5719 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
5720 as required by Multiboot spec (it was already 4-byte aligned, but
5723 2008-08-29 Pavel Roskin <proski@gnu.org>
5725 * kern/powerpc/ieee1275/crt0.S: Rename to ...
5726 * kern/powerpc/ieee1275/startup.S: ... this.
5727 * conf/powerpc-ieee1275.rmk: Adjust for the above.
5728 * DISTLIST: Likewise.
5730 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
5731 grub/cpu/kernel.h. Add start label for consistency with other
5732 platforms. Add grub_prefix immediately after start. Add jump
5733 to the code after grub_prefix.
5734 * include/grub/powerpc/kernel.h: Provide valid values for
5735 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
5737 2008-08-29 Bean <bean123ch@gmail.com>
5739 * configure.ac: Change host_os to cygwin for mingw.
5740 (asprintf): New check for function.
5742 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
5743 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
5745 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
5746 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
5747 sync, sleep and grub_util_get_disk_size for mingw.
5749 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
5750 to get size in mingw.
5751 (open_device): Use flag O_BINARY if it's defined.
5752 (find_root_device): Add dummy code for mingw.
5754 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
5755 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
5756 (get_scsi_disk_name): Return 0 for mingw.
5758 * util/hostfs.c: #include <grub/util/misc.h>.
5759 (grub_hostfs_open): Use "rb" flag to open file, use
5760 grub_util_get_disk_size to get disk size for mingw.
5762 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
5763 (asprintf): New function if HAVE_ASPRINTF is not set.
5764 (sync): New function for mingw.
5766 (grub_util_get_disk_size): Likewise.
5768 2008-08-28 Pavel Roskin <proski@gnu.org>
5770 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
5773 2008-08-28 Robert Millan <rmh@aybabtu.com>
5775 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
5777 2008-08-28 Robert Millan <rmh@aybabtu.com>
5779 Change find_grub_drive() syntax so it doesn't prevent it from
5780 detecting NULL names as errors.
5782 * util/biosdisk.c (find_grub_drive): Move free slot search code
5784 (find_free_slot): ... to here.
5785 (read_device_map): Use find_free_slot() to search for free slots.
5787 2008-08-27 Marco Gerards <marco@gnu.org>
5789 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
5790 (scsi_mod_SOURCES): New variable.
5791 (scsi_mod_CFLAGS): Likewise
5792 (scsi_mod_LDFLAGS): Likewise.
5794 * disk/scsi.c: New file.
5796 * include/grub/scsi.h: Likewise.
5798 * include/grub/scsicmd.h: Likewise.
5800 * disk/ata.c: Include <grub/scsi.h>.
5801 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
5803 (grub_ata_iterate): Skip ATAPI devices.
5804 (grub_ata_open): Only handle ATAPI devices.
5805 (struct grub_atapi_read): Removed.
5806 (grub_atapi_readsector): Likewise.
5807 (grub_ata_read): No longer handle ATAPI devices.
5808 (grub_ata_write): Likewise.
5809 (grub_atapi_iterate): New function.
5810 (grub_atapi_read): Likewise.
5811 (grub_atapi_write): Likewise.
5812 (grub_atapi_open): Likewise.
5813 (grub_atapi_close): Likewise.
5814 (grub_atapi_dev): New variable.
5815 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
5816 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
5818 * include/grub/disk.h (enum grub_disk_dev_id): Add
5819 `GRUB_DISK_DEVICE_SCSI_ID'.
5821 2008-08-26 Robert Millan <rmh@aybabtu.com>
5823 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
5824 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
5827 2008-08-23 Bean <bean123ch@gmail.com>
5829 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
5830 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
5831 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
5832 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
5834 (raid5rec_mod_SOURCES): New macro.
5835 (raid5rec_mod_CFLAGS): Likewise.
5836 (raid5rec_mod_LDFLAGS): Likewise.
5837 (raid6rec_mod_SOURCES): Likewise.
5838 (raid6rec_mod_CFLAGS): Likewise.
5839 (raid6rec_mod_LDFLAGS): Likewise.
5840 (mdraid_mod_SOURCES): Likewise.
5841 (mdraid_mod_CFLAGS): Likewise.
5842 (mdraid_mod_LDFLAGS): Likewise.
5843 (dm_nv_mod_SOURCES): Likewise.
5844 (dm_nv_mod_CFLAGS): Likewise.
5845 (dm_nv_mod_LDFLAGS): Likewise.
5847 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
5848 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
5849 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
5851 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
5852 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
5854 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5856 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5858 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5860 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5862 * disk/raid5_recover.c: New file.
5864 * disk/raid6_recover.c: Likewise.
5866 * disk/mdraid_linux.c: Likewise.
5868 * disk/dmraid_nvidia.c: Likewise.
5870 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
5873 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
5874 calculate the size of raid device.
5875 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
5876 different layout of raid5.
5877 (grub_raid_scan_device): Remove code specific to mdraid.
5878 (grub_raid_list): New variable.
5879 (free_array): New function.
5880 (grub_raid_register): Likewise.
5881 (grub_raid_unregister): Likewise.
5882 (grub_raid_rescan): Likewise.
5883 (GRUB_MOD_INIT): Don't iterate device here.
5884 (GRUB_MOD_FINI): Use free_array to release resource.
5886 * include/grub/raid.h: Remove macro and structure specific to mdraid.
5887 (grub_raid5_recover_func_t): New function variable type.
5888 (grub_raid6_recover_func_t): Likewise.
5889 (grub_raid5_recover_func): New variable.
5890 (grub_raid6_recover_func): Likewise.
5891 (grub_raid_register): New function.
5892 (grub_raid_unregister): Likewise.
5893 (grub_raid_rescan): Likewise.
5894 (grub_raid_block_xor): Likewise.
5896 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
5897 (CMD_CRC): New macro.
5899 (read_file): Handle device as well as file.
5900 (cmd_crc): New function.
5901 (fstest): Handle multiple disks.
5902 (options): Remove part, raw and long, add root and diskcount.
5903 (usage): Add crc, remove -p, -r, -l, add -r and -c.
5904 (main): Find the first non option entry and ignore subsequent options,
5905 add handling for the new options, support multiple disks.
5907 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
5909 2008-08-23 Bean <bean123ch@gmail.com>
5911 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
5913 * genfslist.sh: Ignore kernel.mod.
5915 * genpartmaplist.sh: Likewise.
5917 2008-08-23 Robert Millan <rmh@aybabtu.com>
5919 * util/getroot.c (find_root_device): Skip anything that starts with
5920 a dot, not just directories. This avoids things like /dev/.tmp.md0.
5922 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
5924 * util/update-grub.in (GRUB_GFXMODE): Export variable.
5925 * util/grub.d/00_header.in: Allow the administrator to change default
5926 gfxmode via ${GRUB_GFXMODE}.
5928 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
5930 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
5932 2008-08-21 Robert Millan <rmh@aybabtu.com>
5934 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
5936 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
5937 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
5939 2008-08-20 Carles Pina i Estany <carles@pina.cat>
5941 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
5942 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
5944 2008-08-19 Robert Millan <rmh@aybabtu.com>
5946 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
5947 (struct grub_virtual_screen): Remove `cursor_color'.
5948 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
5950 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
5952 2008-08-18 Robert Millan <rmh@aybabtu.com>
5954 Unify (identical) linux_normal.c files.
5955 * loader/i386/efi/linux_normal.c: Move from here ...
5956 * loader/linux_normal.c: ... to here. Update all users.
5957 * loader/i386/pc/linux_normal.c: Delete. Update all users.
5958 * loader/i386/ieee1275/linux_normal.c: Likewise.
5960 2008-08-18 Robert Millan <rmh@aybabtu.com>
5962 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
5963 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
5964 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
5965 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
5966 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
5968 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
5969 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
5970 (GRUB_LINUX_CL_END_OFFSET): ... to here.
5971 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
5972 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
5973 (GRUB_EFI_CL_END_OFFSET): Rename to ...
5974 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
5975 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
5976 Initialize `params->video_cursor_x' and `params->video_cursor_y'
5977 portably using grub_getxy().
5978 Replace `-EFI' with `-bzImage' in boot message.
5980 2008-08-17 Robert Millan <rmh@aybabtu.com>
5982 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
5984 2008-08-17 Robert Millan <rmh@aybabtu.com>
5986 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
5988 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
5989 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
5990 (grub_machine_mmap_iterate): New function declaration.
5991 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
5993 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
5996 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
5997 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
5998 Move e820 parsing from here ...
5999 * kern/i386/pc/mmap.c: New file.
6000 (grub_machine_mmap_iterate): ... to here.
6002 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
6003 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
6004 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
6005 (grub_available_iterate): Redeclare to return `void', and redeclare
6006 its hook to use grub_uint64_t as addr and size parameters, and rename
6008 (grub_machine_mmap_iterate): ... this. Update all users.
6010 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
6011 to make it more readable. Rename to ...
6012 (grub_machine_mmap_iterate): ... this.
6014 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
6015 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
6016 (grub_multiboot): Allocate an extra region after the payload, and fill
6017 it with a Multiboot memory map. Adjust a.out loader to calculate size
6018 with the extra space.
6019 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
6020 with the extra space.
6022 2008-08-17 Carles Pina i Estany <carles@pina.cat>
6024 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
6026 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
6028 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
6029 mdate-sh to the list `find' searches for.
6030 * DISTLIST: Regenerated.
6032 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
6034 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
6035 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
6036 genmoddep.awk, gensymlist.sh.in.
6037 (DISTDIRS): Add bus, docs, hook, lib.
6038 * DISTLIST: Regenerated.
6039 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
6041 2008-08-16 Robert Millan <rmh@aybabtu.com>
6043 * disk/raid.c (grub_raid_init): Handle/report errors set by
6044 grub_device_iterate().
6045 * disk/lvm.c (grub_lvm_init): Likewise.
6047 2008-08-15 Bean <bean123ch@gmail.com>
6049 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6051 (datetime_mod_SOURCES): New macro.
6052 (datetime_mod_CFLAGS): Likewise.
6053 (datetime_mod_LDFLAGS): Likewise.
6054 (date_mod_SOURCES): Likewise.
6055 (date_mod_CFLAGS): Likewise.
6056 (date_mod_LDFLAGS): Likewise.
6057 (datehook_mod_SOURCES): Likewise.
6058 (datehook_mod_CFLAGS): Likewise.
6059 (datehook_mod_LDFLAGS): Likewise.
6061 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6063 (datetime_mod_SOURCES): New macro.
6064 (datetime_mod_CFLAGS): Likewise.
6065 (datetime_mod_LDFLAGS): Likewise.
6066 (date_mod_SOURCES): Likewise.
6067 (date_mod_CFLAGS): Likewise.
6068 (date_mod_LDFLAGS): Likewise.
6069 (datehook_mod_SOURCES): Likewise.
6070 (datehook_mod_CFLAGS): Likewise.
6071 (datehook_mod_LDFLAGS): Likewise.
6073 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6075 (datetime_mod_SOURCES): New macro.
6076 (datetime_mod_CFLAGS): Likewise.
6077 (datetime_mod_LDFLAGS): Likewise.
6078 (date_mod_SOURCES): Likewise.
6079 (date_mod_CFLAGS): Likewise.
6080 (date_mod_LDFLAGS): Likewise.
6081 (datehook_mod_SOURCES): Likewise.
6082 (datehook_mod_CFLAGS): Likewise.
6083 (datehook_mod_LDFLAGS): Likewise.
6085 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6087 (datetime_mod_SOURCES): New macro.
6088 (datetime_mod_CFLAGS): Likewise.
6089 (datetime_mod_LDFLAGS): Likewise.
6090 (date_mod_SOURCES): Likewise.
6091 (date_mod_CFLAGS): Likewise.
6092 (date_mod_LDFLAGS): Likewise.
6093 (datehook_mod_SOURCES): Likewise.
6094 (datehook_mod_CFLAGS): Likewise.
6095 (datehook_mod_LDFLAGS): Likewise.
6097 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6099 (datetime_mod_SOURCES): New macro.
6100 (datetime_mod_CFLAGS): Likewise.
6101 (datetime_mod_LDFLAGS): Likewise.
6102 (date_mod_SOURCES): Likewise.
6103 (date_mod_CFLAGS): Likewise.
6104 (date_mod_LDFLAGS): Likewise.
6105 (datehook_mod_SOURCES): Likewise.
6106 (datehook_mod_CFLAGS): Likewise.
6107 (datehook_mod_LDFLAGS): Likewise.
6109 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
6111 * commands/date.c: New file.
6113 * hook/datehook.c: Likewise.
6115 * include/grub/lib/datetime.h: Likewise.
6117 * include/grub/i386/cmos.h: Likewise.
6119 * lib/datetime.c: Likewise.
6121 * lib/i386/datetime.c: Likewise.
6123 * lib/efi/datetime.c: Likewise.
6125 2008-08-14 Robert Millan <rmh@aybabtu.com>
6127 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
6128 (grub_mkelfimage_SOURCES): New variable.
6129 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
6131 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
6132 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
6133 * conf/powerpc-ieee1275.rmk: Likewise.
6134 * conf/i386-ieee1275.rmk: Likewise.
6136 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
6137 * kern/i386/coreboot/init.c: Likewise.
6139 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
6140 with `<grub/cpu/kernel.h>'.
6141 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
6143 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
6144 * kern/i386/coreboot/startup.S: Likewise.
6146 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
6147 (GRUB_MOD_GAP): Remove.
6148 * include/grub/powerpc/kernel.h: New file.
6149 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
6150 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
6151 * include/grub/i386/kernel.h: New file.
6152 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
6153 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
6154 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
6156 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
6158 Use --directory when invoking grub_mkimage.
6160 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
6161 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
6162 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
6163 and GRUB_KERNEL_CPU_PREFIX.
6165 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
6167 * include/grub/err.h (grub_err_printf): New function prototype.
6168 * util/misc.c (grub_err_printf): New function.
6169 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
6171 * kern/err.c (grub_print_error): Use grub_err_printf.
6173 2008-08-13 Robert Millan <rmh@aybabtu.com>
6175 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
6177 2008-08-13 Robert Millan <rmh@aybabtu.com>
6179 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
6182 2008-08-12 Robert Millan <rmh@aybabtu.com>
6184 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
6185 of the relocation code from here ...
6186 (grub_multiboot): ... to here.
6187 (forward_relocator, backward_relocator): Move from here ...
6188 * kern/i386/loader.S (grub_multiboot_forward_relocator)
6189 (grub_multiboot_backward_relocator): ... to here.
6190 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
6191 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
6192 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
6193 (grub_multiboot_forward_relocator_end)
6194 (grub_multiboot_backward_relocator)
6195 (grub_multiboot_backward_relocator_end): New variables.
6197 2008-08-12 Bean <bean123ch@gmail.com>
6199 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
6201 2008-08-11 Robert Millan <rmh@aybabtu.com>
6203 * kern/i386/linuxbios/startup.S: Move from here ...
6204 * kern/i386/coreboot/startup.S: ... to here.
6206 * kern/i386/linuxbios/init.c: Move from here ...
6207 * kern/i386/coreboot/init.c: ... to here.
6209 * kern/i386/linuxbios/table.c: Move from here ...
6210 * kern/i386/coreboot/mmap.c: ... to here.
6212 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
6214 2008-08-11 Robert Millan <rmh@aybabtu.com>
6216 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
6217 errors. Leave it to the upper layer to handle them.
6219 2008-08-09 Christian Franke <franke@computer.org>
6221 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
6222 * conf/common.rmk: Install `grub-pe2elf' only if requested.
6223 Install `grub.d/10_windows' only on Cygwin.
6224 * configure.ac: Add subst of `target_os'.
6225 Check `target_os' also before setting TARGET_OBJ2ELF.
6226 Add `--enable-grub-pe2elf'.
6228 2008-08-08 Robert Millan <rmh@aybabtu.com>
6230 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
6231 (grub_last_time): Change type to grub_uint64_t.
6232 (grub_disk_open): Migrate code from to using grub_get_time_ms().
6233 (grub_disk_close): Likewise.
6235 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
6236 (run_menu): Migrate code from to using grub_get_time_ms().
6238 * util/misc.c (grub_get_time_ms): New function.
6240 2008-08-08 Marco Gerards <marco@gnu.org>
6242 * disk/ata.c (grub_ata_regget): Change return type to
6244 (grub_ata_regget2): Likewise.
6245 (grub_ata_wait_status): New function.
6246 (grub_ata_wait_busy): Removed function, updated all users to use
6247 `grub_ata_wait_status'.
6248 (grub_ata_wait_drq): Likewise.
6249 (grub_ata_cmd): New function.
6250 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
6252 (grub_ata_pio_write): Add error handling.
6253 (grub_atapi_identify): Likewise.
6254 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
6256 (grub_ata_identify): Use `grub_ata_cmd' and improve error
6257 handling. Actually use the detected registers. Reorder the
6258 detection logic such that it is easier to read.
6259 (grub_ata_pciinit): Do not assign the same ID to each controller.
6260 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
6262 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
6264 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
6266 2008-08-08 Marco Gerards <marco@gnu.org>
6270 2008-08-07 Bean <bean123ch@gmail.com>
6272 * include/grub/x86_64/pci.h: New file.
6274 2008-08-07 Christian Franke <franke@computer.org>
6276 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
6277 (TIMER2_GATE): Likewise.
6278 (grub_pit_wait): Add enable/disable of the timer2 gate
6279 bit of port 0x61. This fixes a possible infinite loop.
6281 2008-08-07 Bean <bean123ch@gmail.com>
6283 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
6284 kern/i386/tsc.c and kern/i386/pit.c.
6286 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
6289 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
6292 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
6294 2008-08-07 Bean <bean123ch@gmail.com>
6296 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
6298 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
6300 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
6301 multiple inclusion. Add #include <grub/types.h>.
6303 2008-08-06 Christian Franke <franke@computer.org>
6305 * conf/common.rmk: Build and install `10_windows'.
6306 * util/grub.d/10_windows.in: New script.
6308 2008-08-06 Pavel Roskin <proski@gnu.org>
6310 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
6312 2008-08-06 Robert Millan <rmh@aybabtu.com>
6314 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
6315 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
6317 2008-08-06 Bean <bean123ch@gmail.com>
6319 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
6320 (grub_pxefs_fs_int): Remove dummy definition.
6321 (grub_pxefs_open): Use data->block_size to store the current block
6323 (grub_pxefs_read): Use block size stored in data->block_size. As the
6324 value of grub_pxe_blksize can be changed after the file is opened.
6326 2008-08-06 Bean <bean123ch@gmail.com>
6328 * fs/i386/pc/pxe.c (curr_file): new variable.
6329 (grub_pxefs_open): Simply the handling of pxe file system. Don't
6330 require the dummy internal file system anymore.
6331 (grub_pxefs_read): Removed.
6332 (grub_pxefs_close): Likewise.
6333 (grub_pxefs_fs_int): Likewise.
6334 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
6335 connection when we switch file.
6336 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
6338 2008-08-06 Robert Millan <rmh@aybabtu.com>
6340 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
6342 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
6343 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
6345 * kern/i386/halt.c: New file.
6346 * kern/i386/reboot.c: Likewise.
6347 * include/grub/i386/reboot.h: Likewise.
6348 * include/grub/i386/halt.h: Likewise.
6350 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
6351 Include `<grub/cpu/halt.h>'.
6352 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
6353 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
6355 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
6356 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
6357 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
6358 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
6359 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
6360 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
6362 * include/grub/i386/at_keyboard.h: ... to here.
6364 2008-08-05 Robert Millan <rmh@aybabtu.com>
6366 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
6367 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
6368 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
6369 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
6370 `kern/generic/millisleep.c'.
6372 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
6373 instead of grub_get_rtc().
6374 (grub_tsc_init): Initialize `tsc_boot_time'.
6376 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
6377 (grub_machine_init): Use grub_tsc_init() rather than
6378 installing an RTC-based handler via grub_install_get_time_ms().
6380 * kern/i386/pit.c: New file.
6381 * include/grub/i386/pit.h: Likewise.
6383 2008-08-05 Bean <bean123ch@gmail.com>
6385 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
6387 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
6388 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
6389 (pxe_mod_SOURCES): New macro.
6390 (pxe_mod_CFLAGS): Likewise.
6391 (pxe_mod_LDFLAGS): Likewise.
6392 (pxecmd_mod_SOURCES): Likewise.
6393 (pxecmd_mod_CFLAGS): Likewise.
6394 (pxecmd_mod_LDFLAGS): Likewise.
6396 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
6397 (grub_pxe_call): Likewise.
6399 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
6401 * commands/i386/pc/pxecmd.c: New file.
6403 * fs/i386/pc/pxe.c: Likewise.
6405 * include/grub/i386/pc/pxe.h: Likewise.
6407 2008-08-05 Bean <bean123ch@gmail.com>
6409 * util/console.c (grub_console_cur_color): New variable.
6410 (grub_console_standard_color): Likewise.
6411 (grub_console_normal_color): Likewise.
6412 (grub_console_highlight_color): Likewise.
6413 (color_map): Likewise.
6414 (use_color): Likewise.
6415 (NUM_COLORS): New macro.
6416 (grub_ncurses_setcolorstate): Handle color properly.
6417 (grub_ncurses_setcolor): Don't change color here, just remember the
6418 settings, color will be set in grub_ncurses_setcolorstate.
6419 (grub_ncurses_getcolor): New function.
6420 (grub_ncurses_init): Initialize color pairs.
6421 (grub_ncurses_term): New member grub_ncurses_getcolor.
6423 2008-08-05 Colin D Bennett <colin@gibibit.com>
6425 High resolution timer support. Implemented for x86 CPUs using TSC.
6426 Extracted generic grub_millisleep() so it's linked in only as needed.
6427 This requires a Pentium compatible CPU; if the RDTSC instruction is
6428 not supported, then it falls back on the generic grub_get_time_ms()
6429 implementation that uses the machine's RTC.
6431 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
6432 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
6433 `kern/generic/millisleep.c'.
6435 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
6436 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
6438 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
6439 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
6441 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
6443 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6444 `kern/generic/millisleep.c'.
6446 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
6448 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
6450 * kern/generic/rtc_get_time_ms.c: New file.
6452 * kern/generic/millisleep.c: New file.
6454 * kern/misc.c: Don't include
6455 <kern/time.h> anymore.
6456 (grub_millisleep_generic): Removed.
6458 * commands/sleep.c (grub_interruptible_millisleep): Uses
6459 grub_get_time_ms() instead of grub_get_rtc().
6461 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
6463 (grub_cpu_is_cpuid_supported): New inline function.
6464 (grub_cpu_is_tsc_supported): New inline function.
6465 (grub_tsc_init): New function prototype.
6466 (grub_tsc_get_time_ms): New function prototype.
6468 * kern/i386/tsc.c (grub_get_time_ms): New file.
6470 * include/grub/time.h: Include <grub/types.h.
6471 (grub_millisleep_generic): Removed.
6472 (grub_get_time_ms): New prototype.
6473 (grub_install_get_time_ms): New prototype.
6474 (grub_rtc_get_time_ms): New prototype.
6476 * kern/time.c (grub_get_time_ms): New function.
6477 (grub_install_get_time_ms): New function.
6479 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
6480 <grub/time.h> anymore.
6481 (grub_millisleep): Removed.
6482 (grub_machine_init): Call grub_tsc_init.
6484 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
6485 get_time_ms() implementation.
6487 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
6488 (ieee1275_get_time_ms): New function.
6489 (grub_machine_init): Install get_time_ms() implementation.
6491 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
6492 (grub_machine_init): Call grub_tsc_init().
6493 (grub_millisleep): Removed.
6495 * kern/ieee1275/init.c (grub_millisleep): Removed.
6496 (grub_machine_init): Install ieee1275_get_time_ms()
6498 (ieee1275_get_time_ms): New function.
6499 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
6502 2008-08-05 Marco Gerards <marco@gnu.org>
6504 * disk/ata.c: Include <grub/pci.h>.
6505 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
6506 (grub_ata_initialize): Rewritten.
6507 (grub_ata_device_initialize): New function.
6509 2008-08-04 Pavel Roskin <proski@gnu.org>
6511 * kern/main.c: Include grub/mm.h.
6513 2008-08-04 Robert Millan <rmh@aybabtu.com>
6515 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
6516 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
6517 corruption problem).
6519 2008-08-04 Robert Millan <rmh@aybabtu.com>
6521 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
6522 warnings introduced in my last commit.
6524 2008-08-03 Robert Millan <rmh@aybabtu.com>
6526 Make PCI available on all i386 architectures.
6528 * include/grub/i386/pc/pci.h: Move from here ...
6529 * include/grub/i386/pci.h: ... to here.
6531 * include/grub/i386/pc/pci.h: Remove.
6532 * include/grub/i386/efi/pci.h: Remove.
6533 * include/grub/x86_64/efi/pci.h: Remove.
6535 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
6538 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
6539 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
6540 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
6542 * conf/i386-ieee1275.rmk: Likewise.
6544 2008-08-03 Robert Millan <rmh@aybabtu.com>
6546 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
6547 (grub_console_setcursor): Make it possible to set cursor off.
6549 2008-08-03 Robert Millan <rmh@aybabtu.com>
6551 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
6552 of modules instead of assuming which platform provides what.
6553 * util/update-grub.in: Likewise.
6555 2008-08-03 Robert Millan <rmh@aybabtu.com>
6557 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
6558 instead of `grub_install_dos_part' to determine whether a drive needs
6559 to be prepended to prefix (`grub_install_dos_part' is not reliable,
6560 because it can be overridden when loading GRUB via Multiboot).
6562 2008-08-02 Robert Millan <rmh@aybabtu.com>
6564 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
6566 2008-08-02 Robert Millan <rmh@aybabtu.com>
6568 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
6569 of informational grub_dprintf() calls.
6571 2008-08-02 Robert Millan <rmh@aybabtu.com>
6573 * disk/memdisk.c (memdisk_size): Don't initialize.
6574 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
6576 * include/grub/i386/pc/kernel.h
6577 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
6578 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
6579 (grub_memdisk_image_size, grub_arch_memdisk_addr)
6580 (grub_arch_memdisk_size): Remove.
6582 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
6583 field (was only used to transfer a constant). Add `type' field to
6584 support multiple module types.
6585 (grub_module_iterate): New function.
6587 * kern/device.c (grub_device_open): Do not hide error messages
6588 when grub_disk_open() fails. Use grub_print_error() instead.
6590 * kern/i386/pc/init.c (grub_arch_modules_addr)
6591 (grub_arch_memdisk_size): Remove functions.
6592 (grub_arch_modules_addr): Return the module address in high memory
6593 (now that it isn't copied anymore).
6595 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
6596 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
6597 decompression routine (grub_total_module_size already includes that
6598 now). Don't copy modules back to low memory.
6600 * kern/main.c: Include `<grub/mm.h>'.
6601 (grub_load_modules): Split out (and use) ...
6602 (grub_module_iterate): ... this function, which iterates through
6603 module objects and runs a hook.
6604 Comment out grub_mm_init_region() call, as it would cause non-ELF
6605 modules to be overwritten.
6607 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
6608 the memdisk image in its own region, make it part of the module list.
6609 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
6610 (main): Parse --memdisk|-m option, and pass user-provided path as
6611 parameter to generate_image().
6612 (add_segments): Pass `memdisk_path' down to load_modules().
6613 (load_modules): Embed memdisk image in module section when requested.
6614 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
6615 `header.type' instead of `header.offset'.
6617 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
6618 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
6619 (memdisk_mod_LDFLAGS): New variables.
6620 * conf/i386-coreboot.rmk: Likewise.
6621 * conf/i386-ieee1275.rmk: Likewise.
6623 2008-08-02 Robert Millan <rmh@aybabtu.com>
6625 * loader/i386/pc/multiboot.c (playground, forward_relocator)
6626 (backward_relocator): New variables. Used to allocate and relocate
6627 the payload, respectively.
6628 (grub_multiboot_load_elf32): Load into heap instead of requested
6629 address, install the appropriate relocator code in each bound of
6630 the payload, and set the entry point such that
6631 grub_multiboot_real_boot() will jump to one of them.
6633 * kern/i386/loader.S (grub_multiboot_payload_size)
6634 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
6635 (grub_multiboot_payload_entry_offset): New variables.
6636 (grub_multiboot_real_boot): Set cpu context to what the relocator
6637 expects, and jump to the relocator instead of the payload.
6639 * include/grub/i386/loader.h (grub_multiboot_payload_size)
6640 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
6641 (grub_multiboot_payload_entry_offset): Export.
6643 2008-08-01 Bean <bean123ch@gmail.com>
6645 * normal/menu_entry.c (editor_getline): Don't return the original
6646 string as result, as it will be released by lexer once it has done
6649 2008-08-01 Robert Millan <rmh@aybabtu.com>
6651 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
6652 within menuentries, not before them.
6653 util/grub.d/10_hurd.in: Likewise.
6655 2008-08-01 Bean <bean123ch@gmail.com>
6657 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
6658 (bufio_mod_SOURCES): New macro.
6659 (bufio_mod_CFLAGS): Likewise.
6660 (bufio_mod_LDFLAGS): Likewise.
6662 * include/grub/bufio.h: New file.
6664 * io/bufio.c: Likewise.
6666 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
6667 (grub_video_reader_png): Use grub_buffile_open to open file.
6669 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
6670 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
6672 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
6673 (grub_video_reader_tga): Use grub_buffile_open to open file.
6675 * font/manager.c: Include <grub/bufio.h>.
6676 (add_font): Use grub_buffile_open to open file.
6678 2008-07-31 Robert Millan <rmh@aybabtu.com>
6680 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
6681 ELF segments, use a macro for arbitrarily accessing any of them instead
6682 of preparing a pointer that allows access to one at a time.
6683 (grub_multiboot_load_elf64): Likewise.
6685 2008-07-31 Bean <bean123ch@gmail.com>
6687 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
6688 GRUB_KERNEL_MACHINE_DATA_END.
6690 2008-07-30 Robert Millan <rmh@aybabtu.com>
6692 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
6693 Increase from 0x50 to 0x60.
6694 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
6695 use UUIDs to identify the root drive for them. If that's not
6697 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
6698 check, for cross-disk installs.
6700 2008-07-30 Robert Millan <rmh@aybabtu.com>
6702 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
6703 is non-empty, use it to set the `prefix' environment variable instead
6704 of the usual approach.
6705 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
6706 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
6707 environment variable instead of dummy make_install_device().
6709 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
6710 (start): Insert a data section, with `grub_prefix' variable.
6711 * kern/i386/linuxbios/startup.S: Likewise.
6713 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
6714 New variable reference.
6715 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
6716 New macro. Defines offset of `grub_prefix' within startup.S (relative
6718 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
6719 section within startup.S (relative to `start').
6720 * include/grub/i386/coreboot/kernel.h: Likewise.
6722 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
6723 Overwrite grub_prefix with its contents, at the beginning of the
6725 (main): Understand -p|--prefix.
6727 2008-07-30 Robert Millan <rmh@aybabtu.com>
6729 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
6731 2008-07-30 Robert Millan <rmh@aybabtu.com>
6733 * term/i386/pc/vga_text.c (grub_console_cls): Use
6734 grub_console_gotoxy() to go back to beginning of the screen.
6735 Found by Patrick Georgi <patrick.georgi@coresystems.de>
6737 2008-07-29 Christian Franke <franke@computer.org>
6739 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
6740 Add conversion of emulated mount points on Cygwin.
6742 2008-07-29 Christian Franke <franke@computer.org>
6744 * util/update-grub.in: Add a check for admin
6746 Remove old `grub.cfg.new' before creation.
6747 Add `-f' to `mv' to handle the different filesystem
6748 semantics of Windows.
6750 2008-07-29 Bean <bean123ch@gmail.com>
6752 * normal/main.c (get_line): Fix buffer overflow bug.
6754 2008-07-28 Robert Millan <rmh@aybabtu.com>
6756 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
6757 (struct grub_apple_header): New struct. Describes the layout of
6759 (apple_partition_map_iterate): Check the header magic as well as the
6760 partition magic (which was already being checked).
6762 2008-07-28 Pavel Roskin <proski@gnu.org>
6764 * genmk.rb: Add a warning to the beginning of the output that
6765 it's a generated file and should not be edited.
6767 2008-07-28 Robert Millan <rmh@aybabtu.com>
6769 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
6770 with the same number are found, just use issue a warning with
6771 grub_dprintf(), as this error has been reported to be non-fatal.
6773 2008-07-27 Robert Millan <rmh@aybabtu.com>
6775 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
6778 2008-07-27 Bean <bean123ch@gmail.com>
6780 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
6781 (grub_fat_find_dir): Ignore case when comparing filename.
6783 2008-07-27 Bean <bean123ch@gmail.com>
6785 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
6786 smallino, as it's more descriptive, and i8count can be confused with
6787 the other field count.
6788 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
6791 2008-07-27 Bean <bean123ch@gmail.com>
6793 * commands/crc.c: New file.
6795 * lib/crc.c: Likewise.
6797 * include/grub/lib/crc.h: Likewise.
6799 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
6801 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
6802 (hexdump): Move this function to ...
6804 * lib/hexdump.c: ... here.
6806 * include/grub/hexdump.h: Renamed to ...
6808 * include/grub/lib/hexdump.h: ... this.
6810 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
6812 * util/grub-editenv.c: Likewise.
6814 * include/envblk.h: Renamed to ...
6816 * include/lib/envblk.h: ... this.
6818 * util/envblk.c: Renamed to ...
6820 * lib/envblk.c: ... this.
6822 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
6824 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
6825 (pkglib_MODULES): Add crc.mod.
6826 (hexdump_mod_SOURCES): Add lib/hexdump.c.
6827 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
6828 (crc_mod_SOURCES): New macro.
6829 (crc_mod_CFLAGS): Likewise.
6830 (crc_mod_LDFLAGS): Likewise.
6832 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
6834 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6836 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6838 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6840 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6842 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
6844 * commands/help.c: Include <grub/term.h>.
6845 (TERM_WIDTH): Removed. Updated all users.
6847 2008-07-27 Pavel Roskin <proski@gnu.org>
6849 * util/getroot.c (find_root_device): Rephrase a comment to avoid
6850 spurious warnings about a comment within a comment.
6852 2008-07-25 Robert Millan <rmh@aybabtu.com>
6854 * util/getroot.c (find_root_device): Skip devices that match
6855 /dev/dm-[0-9]. This lets the real device be found for any type of
6856 abstraction (LVM, EVMS, RAID..).
6857 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
6858 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
6859 device is found first, find_root_device() will now skip it.
6861 2008-07-24 Pavel Roskin <proski@gnu.org>
6863 * include/grub/types.h: Use __builtin_bswap32() and
6864 __builtin_bswap64() with gcc 4.3 and newer.
6866 2008-07-24 Christian Franke <franke@computer.org>
6868 * util/i386/pc/grub-install.in: If `--debug' is specified,
6869 pass `--verbose' to grub-setup.
6870 Abort script if make_system_path_relative_to_its_root() fails.
6872 2008-07-24 Bean <bean123ch@gmail.com>
6874 * configure.ac: Fixed a bug caused by the previous cygwin patch,
6875 variable `target_platform' should be `platform'.
6877 2008-07-24 Bean <bean123ch@gmail.com>
6879 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
6880 (grub_png_init_fixed_block): New function.
6881 (grub_png_decode_image_data): Handle fixed huffman code compression.
6883 2008-07-24 Bean <bean123ch@gmail.com>
6885 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
6886 (grub_pe2elf_SOURCES): New macro.
6887 (CLEANFILES): Add grub-pe2elf.
6889 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
6890 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
6891 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
6892 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
6893 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
6894 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
6895 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
6896 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
6897 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
6898 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
6899 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
6900 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
6901 (GRUB_PE32_DT_FUNCTION): Likewise.
6902 (GRUB_PE32_REL_I386_DIR32): Likewise.
6903 (GRUB_PE32_REL_I386_REL32): Likewise.
6904 (grub_pe32_symbol): New structure.
6905 (grub_pe32_reloc): Likewise.
6907 * util/grub-pe2elf.c: New file.
6909 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
6910 start symbol in non pc platform.
6912 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
6914 The following patches are from Christian Franke.
6916 * include/grub/dl.h: Remove .previous, gas supports this only
6919 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
6920 Remove .type, gas supports this only for ELF format.
6922 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
6923 nullbytes in symbol table. This fixes an infinite loop if table is
6926 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
6927 TARGET_IMG_LDFLAGS and EXEEXT.
6929 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
6930 TARGET_IMG_LDFLAGS_AC.
6931 (grub_CHECK_STACK_ARG_PROBE): New function.
6933 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
6935 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
6937 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
6938 to set TARGET_IMG_LD* accordingly.
6939 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
6940 Add call to grub_CHECK_STACK_ARG_PROBE.
6941 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
6943 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
6945 * genmk.rb: Add EXEEXT to CLEANFILES.
6947 2008-07-23 Robert Millan <rmh@aybabtu.com>
6949 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
6950 define the codes for arrows and lines used for the menu).
6951 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
6954 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
6955 fonts, because the latter are too slow.
6957 2008-07-21 Bean <bean123ch@gmail.com>
6959 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
6960 a20. Run keyboard test last, as it will cause macbook to halt.
6962 2008-07-18 Pavel Roskin <proski@gnu.org>
6964 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
6965 load foreign architecture modules correctly anyway. Keep
6966 support for loading host architecture modules, whether we
6967 compile them or not.
6969 2008-07-17 Pavel Roskin <proski@gnu.org>
6971 * configure.ac: Use -m32 or -m64 regardless of whether we had to
6972 change target_cpu. The compiler default can mismatch target_cpu
6975 * disk/efi/efidisk.c: Fix format warnings on x86_64.
6976 * kern/efi/efi.c: Likewise.
6978 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
6979 target compiler is functional.
6980 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
6983 * configure.ac: Default to efi platform for x86_64-apple. Allow
6984 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
6985 adjustments from the rest, only do them if target is not
6986 explicitly given. Merge other adjustments with the final sanity
6987 check. Remove an extraneous check for supported CPU. Be
6988 specific which CPU and which platform is not supported.
6990 * configure.ac: Default to pc platform for x86_64.
6992 2008-07-17 Robert Millan <rmh@aybabtu.com>
6994 Partial LinuxBIOS -> Coreboot rename.
6996 * conf/i386-linuxbios.rmk: Renamed to ...
6997 * conf/i386-coreboot.rmk: ... this.
6998 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
6999 * configure.ac: Accept "coreboot" as input platform (but maintain
7000 compatibility with "linuxbios").
7001 * include/grub/i386/linuxbios: Renamed to ...
7002 * include/grub/i386/coreboot: ... this.
7004 2008-07-17 Bean <bean123ch@gmail.com>
7006 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
7007 (appleldr_mod_SOURCE): New variable.
7008 (appleldr_mod_CFLAGS): Likewise.
7009 (appleldr_mod_LDFLAGS): Likewise.
7010 (pci_mod_SOURCES): Likewise.
7011 (pci_mod_CFLAGS): Likewise.
7012 (pci_mod_LDFLAGS): Likewise.
7013 (lspci_mod_SOURCES): Likewise.
7014 (lspci_mod_CFLAGS): Likewise.
7015 (lspci_mod_LDFLAGS): Likewise.
7017 * conf/x86_64-efi.rmk: New file.
7019 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
7021 (grub_efidisk_write): Likewise.
7023 * include/efi/api.h (efi_call_0): New macro.
7024 (efi_call_1): Likewise.
7025 (efi_call_2): Likewise.
7026 (efi_call_3): Likewise.
7027 (efi_call_4): Likewise.
7028 (efi_call_5): Likewise.
7029 (efi_call_6): Likewise.
7031 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
7032 grub_rescue_cmd_chainloader.
7034 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
7035 (grub_pe32_optional_header): Change some fields based on i386 or
7037 (GRUB_PE32_PE32_MAGIC): Likewise.
7039 * include/grub/efi/uga_draw.h: New file.
7041 * include/grub/elf.h (STN_ABS): New constant.
7042 (R_X86_64_NONE): Relocation constant for x86_64.
7043 (R_X86_64_64): Likewise.
7044 (R_X86_64_PC32): Likewise.
7045 (R_X86_64_GOT32): Likewise.
7046 (R_X86_64_PLT32): Likewise.
7047 (R_X86_64_COPY): Likewise.
7048 (R_X86_64_GLOB_DAT): Likewise.
7049 (R_X86_64_JUMP_SLOT): Likewise.
7050 (R_X86_64_RELATIVE): Likewise.
7051 (R_X86_64_GOTPCREL): Likewise.
7052 (R_X86_64_32): Likewise.
7053 (R_X86_64_32S): Likewise.
7054 (R_X86_64_16): Likewise.
7055 (R_X86_64_PC16): Likewise.
7056 (R_X86_64_8): Likewise.
7057 (R_X86_64_PC8): Likewise.
7059 * include/grub/i386/efi/pci.h: New file.
7061 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
7062 Change it value based on platform.
7063 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
7064 (GRUB_E820_RAM): Likewise.
7065 (GRUB_E820_RESERVED): Likewise.
7066 (GRUB_E820_ACPI): Likewise.
7067 (GRUB_E820_NVS): Likewise.
7068 (GRUB_E820_EXEC_CODE): Likewise.
7069 (GRUB_E820_MAX_ENTRY): Likewise.
7070 (grub_e820_mmap): New structure.
7071 (linux_kernel_header): Change the efi field according to different
7072 kernel version, also field from linux_kernel_header.
7074 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
7076 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
7077 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
7078 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
7079 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
7080 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
7081 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
7082 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
7083 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
7084 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
7085 (GRUB_PCI_ADDR_IO_MASK): Likewise.
7087 * include/grub/x86_64/efi/kernel.h: New file.
7089 * include/grub/x86_64/efi/loader.h: Likewise.
7091 * include/grub/x86_64/efi/machine.h: Likewise.
7093 * include/grub/x86_64/efi/pci.h: Likewise.
7095 * include/grub/x86_64/efi/time.h: Likewise.
7097 * include/grub/x86_64/linux.h: Likewise.
7099 * include/grub/x86_64/setjmp.h: Likewise.
7101 * include/grub/x86_64/time.h: Likewise.
7103 * include/grub/x86_64/types.h: Likewise.
7105 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
7106 GRUB_TARGET_SIZEOF_VOID_P.
7108 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
7109 (grub_efi_locate_handle): Likewise.
7110 (grub_efi_open_protocol): Likewise.
7111 (grub_efi_set_text_mode): Likewise.
7112 (grub_efi_stall): Likewise.
7113 (grub_exit): Likewise.
7114 (grub_reboot): Likewise.
7115 (grub_halt): Likewise.
7116 (grub_efi_exit_boot_services): Likewise.
7117 (grub_get_rtc): Likewise.
7119 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
7120 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
7121 (grub_efi_allocate_pages): Wrap efi calls.
7122 (grub_efi_free_pages): Wrap efi calls.
7123 (grub_efi_get_memory_map): Wrap efi calls.
7125 * kern/x86_64/dl.c: New file.
7127 * kern/x86_64/efi/callwrap.S: Likewise.
7129 * kern/x86_64/efi/startup.S: Likewise.
7131 * loader/efi/appleloader.c: Likewise.
7133 * loader/efi/chainloader.c (cmdline): New variable.
7134 (grub_chainloader_unload): Wrap efi calls.
7135 (grub_chainloader_boot): Likewise.
7136 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
7139 * loader/efi/chainloader_normal.c (chainloader_command):
7140 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
7143 * loader/i386/efi/linux.c (allocate_pages): Change allocation
7145 (grub_e820_add_region): New function.
7146 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
7148 (grub_find_video_card): New function.
7149 (grub_linux_setup_video): New function.
7150 (grub_rescue_cmd_linux): Probe for video information.
7152 * normal/x86_64/setjmp.S: New file.
7154 * term/efi/console.c (map_char): New function.
7155 (grub_console_putchar): Map unicode char.
7156 (grub_console_checkkey): Wrap efi calls.
7157 (grub_console_getkey): Likewise.
7158 (grub_console_getwh): Likewise.
7159 (grub_console_gotoxy): Likewise.
7160 (grub_console_cls): Likewise.
7161 (grub_console_setcolorstate): Likewise.
7162 (grub_console_setcursor): Likewise.
7164 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
7166 2008-07-16 Pavel Roskin <proski@gnu.org>
7168 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
7171 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
7172 pointer, not an integer. This fixes a warning and prevents
7173 precision loss on 64-bit systems.
7174 (relocate_addresses): Remove unneeded cast.
7176 2008-07-15 Pavel Roskin <proski@gnu.org>
7178 * kern/i386/ieee1275/init.c: Include grub/cache.h.
7180 * term/ieee1275/ofconsole.c: Disable code unused on i386.
7182 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
7183 Fix comparison between signed and unsigned.
7185 * include/grub/i386/ieee1275/console.h: Declare
7186 grub_console_init() and grub_console_fini().
7188 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
7189 It's empty and unused.
7191 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
7192 beginning to avoid warnings with some compilers.
7194 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
7195 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
7197 2008-07-14 Pavel Roskin <proski@gnu.org>
7199 * kern/env.c (grub_register_variable_hook): Don't copy empty
7200 string, it leaks memory. Pass "" to grub_env_set(), it should
7201 handle constant strings.
7203 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
7204 * commands/cmp.c (grub_cmd_cmp): Likewise.
7205 * kern/dl.c (grub_dl_flush_cache): Likewise.
7206 (grub_dl_load_core): Likewise.
7207 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
7208 (grub_elf64_load_phdrs): Likewise.
7210 2008-07-13 Pavel Roskin <proski@gnu.org>
7212 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
7213 between signed and unsigned.
7214 (LzmaEnc_Finish): Fix warning about an unused parameter.
7216 2008-07-13 Bean <bean123ch@gmail.com>
7218 * Makefile.in (enable_lzo): New rule.
7220 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
7222 * configure.ac (ENABLE_LZO): New option --enable-lzo.
7224 * boot/i386/pc/lnxboot.S: #include <config.h>.
7226 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
7227 its value according to the compression algorithm used, lzo or lzma.
7229 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
7230 compression algorithm according to configure macro.
7232 * kern/i386/pc/startup.S (codestart): Likewise.
7234 * kern/i386/pc/lzma_decode.S: New file.
7236 * include/grub/lib/LzFind.h: Likewise.
7238 * include/grub/lib/LzHash.h: Likewise.
7240 * include/grub/lib/LzmaDec.h: Likewise.
7242 * include/grub/lib/LzmaEnc.h: Likewise.
7244 * include/grub/lib/LzmaTypes.h: Likewise.
7246 * lib/LzFind.c: Likewise.
7248 * lib/LzmaDec.c: Likewise.
7250 * lib/LzmaEnc.c: Likewise.
7252 2008-07-13 Bean <bean123ch@gmail.com>
7254 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
7255 (grub_ext4_extent_header): New structure.
7256 (grub_ext4_extent): Likewise.
7257 (grub_ext4_extent_idx): Likewise.
7258 (grub_ext4_find_leaf): New function.
7259 (grub_ext2_read_block): Handle extents.
7261 2008-07-12 Robert Millan <rmh@aybabtu.com>
7263 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
7265 2008-07-11 Robert Millan <rmh@aybabtu.com>
7267 * util/grub.d/40_custom.in: New file. Example on how to add custom
7268 entries to /etc/grub.d.
7269 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
7270 40_custom (implicitly, by merging all the grub.d rules).
7272 2008-07-11 Pavel Roskin <proski@gnu.org>
7274 * commands/read.c (grub_getline): Fix invalid memory access.
7275 Don't add newline to the variable value.
7277 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
7278 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
7279 (serial_hw_get_port): Check validity of the port number.
7280 (grub_cmd_serial): Check return value of serial_hw_get_port().
7282 2008-07-07 Pavel Roskin <proski@gnu.org>
7284 * boot/i386/pc/diskboot.S (notification_string): Replace
7285 "Loading kernel" with just "loading". This is shorter, less
7286 confusing and saves a few bytes for possible future changes.
7288 2008-07-05 Pavel Roskin <proski@gnu.org>
7290 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
7291 size for ATAPI devices, they are undefined. Output sector
7292 number in decimal form.
7294 * disk/ata.c: Use named constants for status bits.
7296 2008-07-04 Pavel Roskin <proski@gnu.org>
7298 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
7299 grub_addr_t before casting it to the void pointer to fix a
7300 warning. Non-addressable regions are discarded earlier.
7301 (grub_arch_modules_addr): Cast _end to grub_addr_t.
7302 * kern/i386/linuxbios/table.c: Include grub/misc.h.
7303 (check_signature): Don't shadow table_header.
7304 (grub_linuxbios_table_iterate): Cast numeric constants to
7305 grub_linuxbios_table_header_t.
7306 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
7309 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
7312 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
7313 pointer, which can cause warnings. Support 64-bit addresses.
7315 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
7316 of sizeof(long). This fixes PowerPC image generation on x86_64.
7318 2008-07-04 Robert Millan <rmh@aybabtu.com>
7320 This fixes a performance issue when pc & gpt partmap iterators
7321 didn't abort iteration even after our hook found what it was
7322 looking for (often causing expensive probes of non-existent drives).
7324 Some callers relied on previous buggy behaviour, since they would
7325 raise an error when their own hooks caused early abortion of its
7328 * kern/device.c (grub_device_open): Improve error message.
7329 * disk/lvm.c (grub_lvm_open): Likewise.
7330 * disk/raid.c (grub_raid_open): Likewise.
7332 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
7333 when hook requests it, independently of grub_errno.
7334 (pc_partition_map_probe): Do not fail when find_func() caused
7335 early abortion of pc_partition_map_iterate().
7337 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
7338 when hook requests it, independently of grub_errno.
7339 (gpt_partition_map_probe): Do not fail when find_func() caused
7340 early abortion of gpt_partition_map_iterate().
7342 * kern/partition.c (grub_partition_iterate): Abort parent iteration
7343 when hook requests it, independently of grub_errno. Do not fail when
7344 part_map_iterate_hook() caused early abortion of p->iterate().
7346 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
7347 when grub_partition_iterate() returned with non-zero.
7349 2008-07-03 Pavel Roskin <proski@gnu.org>
7351 * disk/ata.c (grub_ata_pio_write): Check status before writing,
7352 like we do in grub_ata_pio_read().
7353 (grub_ata_readwrite): Always write individual sectors. Fix the
7354 sector count for the remainder.
7355 (grub_ata_write): Enable writing to ATA devices. Correctly
7356 report error for ATAPI devices.
7358 2008-07-02 Pavel Roskin <proski@gnu.org>
7360 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
7363 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
7364 for every read sector, we already increment it for the whole
7365 batch. This fixes reading more than 256 sectors at once.
7367 * util/grub-editenv.c (cmd_info): Cast argument to long
7368 explicitly. ptrdiff_t reduces to int on i386.
7370 * util/grub-editenv.c (main): Be specific which parameter is
7373 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
7374 (memdisk): Make memdisk_orig_addr a pointer.
7376 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
7377 for file offsets, use grub_off_t instead. Fix printf format
7380 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
7381 there. Real unexpected warnings should not drown in the noise
7382 about known problems.
7384 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
7385 grub_disk_addr_t for memory addresses.
7387 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
7388 explicitly to fix a warning.
7390 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
7392 * Makefile.in (MODULE_LDFLAGS): New variable.
7393 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
7394 the linker accepts --build-id=none.
7395 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
7397 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
7399 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
7400 those in Linux XFS code. Provide a way to access 64-bit parent
7402 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
7403 the end of struct grub_xfs_dir_header.
7405 2008-07-02 Bean <bean123ch@gmail.com>
7407 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
7408 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
7409 and GRUB_IEEE1275_FLAG_NO_ANSI.
7411 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
7412 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
7413 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
7415 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
7416 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
7418 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
7419 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
7421 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
7422 esc sequence on non ANSI terminal.
7423 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
7425 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
7428 2008-07-02 Bean <bean123ch@gmail.com>
7430 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
7431 (grub_editenv_SOURCES): New variable.
7432 (pkglib_MODULES): Add loadenv.mod.
7433 (loadenv_mod_SOURCES): New variable.
7434 (loadenv_mod_CFLAGS): Likewise.
7435 (loadenv_mod_LDFLAGS): Likewise.
7437 * include/grub/envblk.h: New file.
7439 * util/envblk.c: New file.
7441 * util/grub-editenv.c: New file.
7443 * commands/loadenv.c: New file.
7445 2008-07-01 Pavel Roskin <proski@gnu.org>
7447 * include/multiboot2.h (struct multiboot_tag_module): Use char,
7448 not unsigned char. This fixes warnings and is consistent with
7451 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
7453 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
7455 * term/tparm.c (analyze): Always set *popcount.
7457 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
7458 cast to fix a warning.
7460 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
7461 cast to suppress a warning.
7463 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
7464 grub_fshelp_read_file() expects.
7466 * fs/fat.c: Fix UUID calculation on big-endian systems. We
7467 write uuid as a 32-bit value in CPU byte order, so declare and
7470 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
7471 long if the format specifier expects it.
7472 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
7473 * partmap/pc.c (pc_partition_map_iterate): Likewise.
7474 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
7475 long to fix a warning.
7476 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
7477 grub_dprintf() arguments to fix warnings.
7479 2008-06-30 Pavel Roskin <proski@gnu.org>
7481 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
7482 install_bsd_part immediately before core.img is embedded or
7483 modified on disk. This fixes core.img verification if core.img
7486 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
7487 core_path to calculate the blocklist.
7488 Patch from Javier MartÃn <lordhabbit@gmail.com>
7490 2008-06-29 Robert Millan <rmh@aybabtu.com>
7492 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
7493 block to disk block.
7494 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
7495 Patch from Niels Böhm <bitbucket@arcor.de>
7497 2008-06-29 Robert Millan <rmh@aybabtu.com>
7499 * util/update-grub_lib.in (font_path): Search for fonts in
7500 /boot/grub first, which is more likely to be readable (we aren't
7501 deciding where fonts live, just looking for them).
7503 2008-06-26 Pavel Roskin <proski@gnu.org>
7505 * util/biosdisk.c (read_device_map): Don't leave dead map
7506 entries for devices failing stat() check.
7508 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
7509 core_path_dev for the core.img path on the target device.
7511 2008-06-26 Robert Millan <rmh@aybabtu.com>
7513 * disk/fs_uuid.c: New file.
7514 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
7515 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
7516 (fs_uuid_mod_LDFLAGS): New variables.
7517 * include/grub/disk.h (grub_disk_dev_id): Add
7518 `GRUB_DISK_DEVICE_UUID_ID'.
7519 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
7520 implement iterate().
7522 2008-06-26 Robert Millan <rmh@aybabtu.com>
7524 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
7525 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
7526 Linux image includes no initrd.
7528 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
7530 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
7531 call to resolve the core image location that effectively appended the
7534 2008-06-21 Robert Millan <rmh@aybabtu.com>
7536 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
7539 * util/grub.d/10_hurd.in: ... to here ...
7540 * util/grub.d/10_linux.in: ... and here.
7542 2008-06-19 Robert Millan <rmh@aybabtu.com>
7544 * kern/main.c (grub_main): Export `prefix' variable immediately
7545 after it has been set by grub_machine_set_prefix().
7547 2008-06-19 Robert Millan <rmh@aybabtu.com>
7549 * commands/search.c (search_label, search_fs_uuid, search_file): Print
7550 search result when not saving to variable, not the other way around.
7551 When saving to variable, abort iteration as soon as a match is found.
7553 2008-06-19 Robert Millan <rmh@aybabtu.com>
7555 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
7556 check for partition that provides /boot/grub. Its logic is flawed,
7557 as it prevents prepare_grub_to_access_device() from being called
7560 2008-06-19 Robert Millan <rmh@aybabtu.com>
7562 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
7563 "insmod" command directly when abstraction modules are needed,
7564 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
7565 since it had already been processed).
7567 2008-06-19 Pavel Roskin <proski@gnu.org>
7569 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
7570 changed. This is needed in case GRUB_LIBDIR changes.
7571 * conf/i386-ieee1275.rmk: Likewise.
7572 * conf/i386-linuxbios.rmk: Likewise.
7573 * conf/i386-pc.rmk: Likewise.
7574 * conf/powerpc-ieee1275.rmk: Likewise.
7576 2008-06-18 Pavel Roskin <proski@gnu.org>
7578 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
7579 kernel_elf_symlist.c to symlist.c for consistency with other
7580 architectures. Update all users.
7581 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
7583 2008-06-18 Robert Millan <rmh@aybabtu.com>
7585 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
7588 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
7589 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
7590 a RAID device, run setup() for all members independently on whether
7591 LVM abstraction is being used.
7592 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
7593 If grub-mkimage has set `*install_dos_part == -2', don't override this
7595 Perform *install_dos_part adjustments independently on whether
7596 we're embedding or not.
7597 Clarify error message when image is too big for embedding.
7598 Remove duplicate *install_dos_part stanza.
7600 2008-06-17 Robert Millan <rmh@aybabtu.com>
7602 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
7603 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
7605 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
7606 values in grub_ofconsole_normal_color and
7607 grub_ofconsole_highlight_color (they're not directly related to
7608 background and foreground).
7609 (grub_ofconsole_setcolorstate): Extract background and foreground
7610 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
7612 2008-06-17 Robert Millan <rmh@aybabtu.com>
7614 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
7615 /boot/grub for the check in last commit, not /boot (they could be
7616 different partitions).
7618 2008-06-16 Robert Millan <rmh@aybabtu.com>
7620 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
7621 asked to setup access for the same partition that provides /boot,
7622 don't bother using UUIDs since our root already has the value we
7625 2008-06-16 Robert Millan <rmh@aybabtu.com>
7627 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
7629 Patch from Sven Mueller <sven@debian.org>.
7631 2008-06-16 Robert Millan <rmh@aybabtu.com>
7633 * util/update-grub.in: Check for $EUID instead of $UID.
7634 Reported by Vincent Zweije.
7636 2008-06-16 Bean <bean123ch@gmail.com>
7638 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
7639 (grub_ext2_read_block): Likewise.
7640 (grub_ext2_read_inode): Likewise.
7641 (grub_ext2_mount): Likewise.
7642 (grub_ext2_close): Likewise.
7643 (grub_ext3_get_journal): Removed.
7645 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
7646 (grub_reiserfs_read_symlink): Likewise.
7647 (grub_reiserfs_mount): Likewise.
7648 (grub_reiserfs_open): Likewise.
7649 (grub_reiserfs_read): Likewise.
7650 (grub_reiserfs_close): Likewise.
7651 (grub_reiserfs_get_journal): Removed.
7653 * fs/fshelp.c (grub_fshelp_read): Removed.
7654 (grub_fshelp_map_block): Likewise.
7656 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
7657 (grub_fshelp_journal): Likewise.
7658 (grub_fshelp_read): Likewise.
7659 (grub_fshelp_map_block): Likewise.
7661 2008-06-16 Pavel Roskin <proski@gnu.org>
7663 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
7664 floating point anymore.
7665 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
7667 2008-06-15 Pavel Roskin <proski@gnu.org>
7669 * commands/ls.c (grub_ls_list_files): Use integer calculations
7670 for human readable format, avoid floating point use.
7671 * kern/misc.c (grub_ftoa): Remove.
7672 (grub_vsprintf): Remove floating point support.
7674 2008-06-15 Robert Millan <rmh@aybabtu.com>
7676 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
7678 Reported by Max Vozeler.
7680 2008-06-15 Robert Millan <rmh@aybabtu.com>
7682 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
7683 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
7685 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
7686 the beginning of the prefix.
7688 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
7689 It is assumed that if we have a memdisk, grub-mkimage has set
7690 grub_prefix to include the "(memdisk)" drive in it.
7692 2008-06-15 Robert Millan <rmh@aybabtu.com>
7694 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
7695 Initialize keyboard controller after registering the terminal, so that
7696 grub_printf() can be called from grub_keyboard_controller_init().
7698 2008-06-15 Robert Millan <rmh@aybabtu.com>
7700 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
7701 extent-btree which is written as big endian on disk.
7702 Reported by Alain Greppin <al@chilibi.org>.
7704 2008-06-14 Robert Millan <rmh@aybabtu.com>
7706 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
7707 * util/i386/pc/grub-install.in (modules): Likewise.
7709 2008-06-13 Pavel Roskin <proski@gnu.org>
7711 * commands/ls.c (grub_ls_list_files): Fix format warnings.
7713 2008-06-13 Bean <bean123ch@gmail.com>
7715 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
7717 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
7719 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
7720 to indicate sparse block.
7722 2008-06-12 Pavel Roskin <proski@gnu.org>
7724 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
7725 number, grub_fshelp_read() does it for us.
7727 * fs/fshelp.c (grub_fshelp_read): New function. Implement
7728 linear disk read with journal translation.
7729 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
7730 * include/grub/fshelp.h: Declare grub_fshelp_read().
7732 2008-06-09 Pavel Roskin <proski@gnu.org>
7734 * fs/minix.c (grub_minix_mount): Handle error reading
7737 2008-06-08 Robert Millan <rmh@aybabtu.com>
7739 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
7740 don't append the RAID prefix afterwards.
7741 Reported by Clint Adams.
7743 2008-06-08 Robert Millan <rmh@aybabtu.com>
7745 Based on description from Pavel:
7746 * kern/disk.c (grub_disk_check_range): Rename to ...
7747 (grub_disk_adjust_range): ... this. Add a comment explaining the
7748 tasks performed by this function.
7750 2008-06-08 Robert Millan <rmh@aybabtu.com>
7752 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
7753 `num_serial' (for consistency with other variables).
7754 (struct grub_ntfs_data): Add `uuid' member.
7755 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
7756 (grub_ntfs_uuid): New function.
7757 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
7759 2008-06-07 Pavel Roskin <proski@gnu.org>
7761 * util/biosdisk.c (open_device): Revert last change to the
7762 function, it broke installation. The sector needs to be
7763 different dependent on which device is opened.
7765 2008-06-06 Robert Millan <rmh@aybabtu.com>
7767 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
7768 rest of GRUB, and breakage doesn't happen if its value were modified.
7770 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
7771 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
7772 a constant (same value).
7773 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
7774 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
7776 2008-06-06 Robert Millan <rmh@aybabtu.com>
7778 * util/biosdisk.c (open_device): Do not modify sector offset when
7779 accessing a partition. kern/disk.c already handles this for us.
7781 2008-06-06 Robert Millan <rmh@aybabtu.com>
7783 * util/grub-emu.c (grub_machine_init): Move code in this function from
7785 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
7786 segfault in case grub_printf() is called).
7788 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
7789 grub_probe. Update all users not to explicitly add it again.
7790 (grub_device): New variable; contains corresponding device for grubdir.
7791 (fs_module, partmap_module, devabstraction_module): Pass
7792 `--device ${grub_device}' to grub_probe to avoid traversing /dev
7795 2008-06-05 Robert Millan <rmh@aybabtu.com>
7797 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
7798 is found, print it (same layout as with labels).
7800 2008-06-04 Robert Millan <rmh@aybabtu.com>
7802 * util/biosdisk.c (get_drive): Rename to ...
7803 (find_grub_drive): ... this. Update all users.
7805 (get_os_disk): Rename to ...
7806 (convert_system_partition_to_system_disk): ... this. Update all users.
7808 (find_drive): Rename to ...
7809 (find_system_device): ... this. Update all users.
7811 2008-06-04 Robert Millan <rmh@aybabtu.com>
7813 * util/biosdisk.c (get_os_disk): Handle IDA devices.
7814 * util/grub-mkdevicemap.c (get_mmc_disk_name)
7815 (make_device_map): Likewise.
7817 2008-06-01 Robert Millan <rmh@aybabtu.com>
7819 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
7820 before dereferencing it.
7822 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
7823 union with fat12/fat16-specific ones. Add some new fields, including
7824 `num_serial' for both versions.
7825 (struct grub_fat_data): Add `uuid' member.
7826 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
7827 names. Initialize `data->uuid' using `num_serial'.
7828 (grub_fat_uuid): New function.
7829 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
7831 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
7832 (grub_reiserfs_uuid): New function.
7833 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
7836 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
7837 (grub_xfs_uuid): New function.
7838 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
7840 2008-06-01 Robert Millan <rmh@aybabtu.com>
7842 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
7843 code that is backward compatible with pre-uuid search command.
7845 2008-05-31 Robert Millan <rmh@aybabtu.com>
7847 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
7848 floppies after everything else, to ensure floppy drive isn't accessed
7849 unnecessarily (patch from Bean).
7851 2008-05-31 Robert Millan <rmh@aybabtu.com>
7853 * commands/search.c (search_label, search_fs_uuid, search_file): Do
7854 not print device names when we were asked to set a variable.
7856 2008-05-31 Robert Millan <rmh@aybabtu.com>
7858 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
7859 using "cursor-on" and "cursor-off" commands (understood at least by
7860 the Open Firmware flavour on OLPC).
7862 2008-05-31 Michael Gorven <michael@gorven.za.net>
7864 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
7865 on and off sequences.
7867 2008-05-31 Robert Millan <rmh@aybabtu.com>
7869 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
7870 * util/update-grub.in: Likewise.
7872 2008-05-30 Pavel Roskin <proski@gnu.org>
7874 * util/biosdisk.c (linux_find_partition): Simplify logic and
7875 make the code more universal. Keep special processing for
7876 devfs, but use a simple rule for all other devices. If the
7877 device ends with a number, append 'p' and the partition number.
7878 Otherwise, append only the partition number.
7880 2008-05-30 Robert Millan <rmh@aybabtu.com>
7882 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
7883 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
7884 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
7885 the `root' parameter to Linux.
7887 2008-05-30 Robert Millan <rmh@aybabtu.com>
7889 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
7890 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
7891 --fs_uuid with --fs-uuid.
7892 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
7893 all filesystems support them).
7895 2008-05-30 Robert Millan <rmh@aybabtu.com>
7897 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
7898 grub_printf() flags, since we're printing in units of 2 bytes.
7900 2008-05-30 Robert Millan <rmh@aybabtu.com>
7902 * util/grub.d/00_header.in: Remove obsolete comment referencing
7903 convert_system_path_to_grub_path().
7904 * util/update-grub.in: Likewise.
7905 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
7906 (convert_system_path_to_grub_path): Add a warning message explaining
7907 that this function is deprecated. Rely on is_path_readable_by_grub()
7908 for the readability checks.
7909 (font_path): Use is_path_readable_by_grub() for the readability
7910 check rather than convert_system_path_to_grub_path().
7912 2008-05-30 Robert Millan <rmh@aybabtu.com>
7914 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
7915 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
7916 converting it first.
7917 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
7918 grub.cfg for access to font file, and afterwards call it again to set
7921 2008-05-30 Robert Millan <rmh@aybabtu.com>
7923 * commands/search.c (options): Add --fs_uuid option.
7924 (search_fs_uuid): New function.
7925 (grub_cmd_search): Fix --set argument passing.
7926 Use search_fs_uuid() when requested via --fs_uuid.
7927 (grub_search_init): Update help message.
7928 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
7929 and redeclare it as an array of 16-bit words.
7930 (grub_ext2_uuid): New function.
7931 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
7932 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
7933 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
7934 (GRUB_DEVICE_BOOT_UUID): New variables.
7935 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
7936 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
7938 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
7939 just assume `root' variable has the right value.
7940 * util/grub.d/10_linux.in: Likewise.
7941 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
7943 (main): Recognise `-t fs_uuid' argument.
7945 2008-05-30 Robert Millan <rmh@aybabtu.com>
7947 * util/biosdisk.c (map): Redefine structure to hold information
7948 about GRUB drive name.
7949 (get_drive): Reimplement without assuming (and verifying) BIOS-like
7951 (call_hook): Remove.
7952 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
7953 member. Assume drive has partitions.
7954 (grub_util_biosdisk_open): Access device names via `.device' struct
7956 (open_device): Likewise.
7957 (find_drive): Likewise.
7958 (read_device_map): Adjust map[] usage to match the new struct
7959 definition. Don't check for duplicates (still possible, but not cheap
7961 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
7962 (make_device_name): Remove assumption of BIOS-like drive names.
7964 2008-05-30 Pavel Roskin <proski@gnu.org>
7966 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
7967 compiling execute.c doesn't need grub_script.tab.h anymore.
7968 (normal/command.c_DEPENDENCIES): Likewise.
7969 (normal/function.c_DEPENDENCIES): Likewise.
7970 * conf/i386-ieee1275.rmk: Likewise.
7971 * conf/i386-linuxbios.rmk: Likewise.
7972 * conf/i386-pc.rmk: Likewise.
7973 * conf/powerpc-ieee1275.rmk: Likewise.
7974 * conf/sparc64-ieee1275.rmk: Likewise.
7976 2008-05-29 Pavel Roskin <proski@gnu.org>
7978 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
7979 when scanning metadata for volume group name.
7981 * include/grub/script.h: Don't include grub_script.tab.h. It's
7982 a generated file, which may only be included from the files with
7983 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
7984 use union YYSTYPE, as the later allows forward declaration.
7985 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
7987 2008-05-29 Robert Millan <rmh@aybabtu.com>
7989 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
7990 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
7991 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
7992 (grub_console_checkkey): Add grub_dprintf() call to report unknown
7995 2008-05-29 Robert Millan <rmh@aybabtu.com>
7997 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
7998 control key combinations.
8000 2008-05-29 Robert Millan <rmh@aybabtu.com>
8002 * util/powerpc/ieee1275/grub-install.in: Move from here ...
8003 * util/ieee1275/grub-install.in: ... to here.
8004 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
8005 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
8006 (grub_install_SOURCES): Likewise.
8008 2008-05-29 Robert Millan <rmh@aybabtu.com>
8010 * fs/affs.c: Update copyright year.
8011 * fs/ext2.c: Likewise.
8012 * fs/fshelp.c: Likewise.
8013 * fs/hfsplus.c: Likewise.
8014 * fs/ntfs.c: Likewise.
8015 * fs/xfs.c: Likewise.
8016 * include/grub/fshelp.h: Likewise.
8017 * util/grub-mkdevicemap.c: Likewise.
8019 2008-05-28 Robert Millan <rmh@aybabtu.com>
8021 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
8022 might need to be fatfs to support some firmware implementations
8025 2008-05-28 Robert Millan <rmh@aybabtu.com>
8027 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
8029 * util/grub-mkdevicemap.c (get_mmc_disk_name)
8030 (make_device_map): Likewise.
8032 2008-05-20 Bean <bean123ch@gmail.com>
8034 * fs/fshelp.c (grub_fshelp_map_block): New function.
8035 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
8036 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
8038 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
8039 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
8040 (grub_fshelp_journal): New structure.
8041 (grub_fshelp_map_block): New function prototype.
8042 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
8043 (grub_fshelp_map_block): Likewise.
8045 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
8046 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
8047 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
8048 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
8049 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
8050 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
8051 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
8052 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
8053 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
8054 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
8055 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
8056 (grub_ext2_sblock): New members for journal support.
8057 (grub_ext3_journal_header): New structure.
8058 (grub_ext3_journal_revoke_header): Likewise.
8059 (grub_ext3_journal_block_tag): Likewise.
8060 (grub_ext3_journal_sblock): Likewise.
8061 (grub_fshelp_node): New members logfile and journal.
8062 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
8063 grub_fshelp_map_block to get real block number.
8064 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
8066 (grub_ext2_read_inode): Likewise.
8067 (grub_ext3_get_journal): New function.
8068 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
8069 (grub_ext2_close): Release memory used by journal.
8071 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
8072 (REISERFS_MAGIC_DESC_BLOCK): New macro.
8073 (grub_reiserfs_transaction_header): Renamed to
8074 grub_reiserfs_description_block, replace field data with real_blocks.
8075 (grub_reiserfs_commit_block): New structure.
8076 (grub_reiserfs_data): New member journal.
8077 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
8079 (grub_reiserfs_read_symlink): Likewise.
8080 (grub_reiserfs_iterate_dir): Likewise.
8081 (grub_reiserfs_open): Likewise.
8082 (grub_reiserfs_read): Likewise.
8083 (grub_reiserfs_get_journal): New function.
8084 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
8085 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
8086 using grub_reiserfs_get_journal.
8087 (grub_reiserfs_close): Release memory used by journal.
8089 * fs/affs.c (grub_affs_read_block): Change block type to
8090 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
8092 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
8094 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
8096 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
8098 * fs/udf.c (grub_udf_read_block): Change block type to
8099 grub_disk_addr_t. Use type cast to avoid warning.
8101 * fs/xfs.c (grub_xfs_read_block): Likewise.
8103 2008-05-16 Christian Franke <franke@computer.org>
8105 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
8106 to ensure that break with ESC will always work.
8107 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
8108 Remove ESC from keyboard queue.
8110 2008-05-16 Christian Franke <franke@computer.org>
8112 * util/biosdisk.c: [__CYGWIN__] Add includes.
8113 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
8114 (get_os_disk): Move variable declarations to OS specific
8115 parts to avoid warning.
8116 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
8117 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
8118 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
8120 * util/getroot.c: [__CYGWIN__] Add includes.
8121 (strip_extra_slashes): Fix "/" case.
8122 [__CYGWIN__] (get_win32_path): New function.
8123 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
8124 [__CYGWIN__] (find_root_device): Disable.
8125 [__CYGWIN__] (get_bootsec_serial): New function.
8126 [__CYGWIN__] (find_cygwin_root_device): Likewise.
8127 [__linux__] (grub_guess_root_device): Add early returns to simplify
8129 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
8130 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
8131 check for Linux only.
8133 2008-05-15 Bean <bean123ch@gmail.com>
8135 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
8136 keyboard hang problem in apple's intel mac.
8138 2008-05-09 Robert Millan <rmh@aybabtu.com>
8140 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
8142 * util/grub-mkdevicemap.c (get_virtio_disk_name)
8143 (make_device_map): Likewise.
8144 Reported by Aurelien Jarno <aurel32@debian.org>
8146 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
8148 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
8149 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
8150 (make_device_map): Output entries for xvd type disks.
8152 2008-05-07 Robert Millan <rmh@aybabtu.com>
8154 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
8156 * util/grub-mkdevicemap.c (get_cciss_disk_name)
8157 (make_device_map): Likewise.
8158 Reported by Roland Dreier <rdreier@cisco.com>
8160 2008-05-07 Robert Millan <rmh@aybabtu.com>
8162 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
8163 grub_strstr() call. Correct a few mistakes in failure path handling.
8165 2008-05-06 Robert Millan <rmh@aybabtu.com>
8167 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
8168 Do not print a trailing slash (therefore, the root directory is an
8170 (convert_system_path_to_grub_path): Do not remove trailing slash
8171 from make_system_path_relative_to_its_root() output.
8173 * util/i386/pc/grub-install.in: Add trailing slash to output from
8174 make_system_path_relative_to_its_root().
8176 2008-05-06 Robert Millan <rmh@aybabtu.com>
8178 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
8179 ensures that output lines aren't intermangled with those sent to
8180 stderr (via grub_util_info()).
8181 * util/grub-probe.c (grub_refresh): Likewise.
8182 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
8184 2008-05-05 Christian Franke <franke@computer.org>
8186 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
8187 Add Cygwin device names.
8188 (get_ide_disk_name) [__CYGWIN__]: Likewise.
8189 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
8190 (check_device): Return error instead of success on empty name.
8191 (make_device_map): Move label inside linux specific code to
8192 prevent compiler warning.
8194 2008-04-30 Robert Millan <rmh@aybabtu.com>
8196 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
8197 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
8199 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
8201 2008-04-29 Robert Millan <rmh@aybabtu.com>
8203 * docs/grub.cfg: New file (example GRUB configuration).
8205 2008-04-26 Robert Millan <rmh@aybabtu.com>
8207 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
8208 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
8209 and `disk/ieee1275/nand.c'.
8211 2008-04-25 Bean <bean123ch@gmail.com>
8213 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
8216 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
8217 change the buffer size to 4096 for cdrom device.
8219 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
8221 (_linux_mod_SOURCES): New variable.
8222 (_linux_mod_CFLAGS): Likewise.
8223 (_linux_mod_LDFLAGS): Likewise.
8224 (linux_mod_SOURCES): Likewise.
8225 (linux_mod_CFLAGS): Likewise.
8226 (linux_mod_LDFLAGS): Likewise.
8227 (nand_mod_SOURCES): Likewise.
8228 (nand_mod_CFLAGS): Likewise.
8229 (nand_mod_LDFLAGS): Likewise.
8231 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
8232 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
8233 type property. (nand device in olpc don't have this property)
8235 * include/grub/disk.h (grub_disk_dev_id): New macro
8236 GRUB_DISK_DEVICE_NAND_ID.
8238 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
8240 (grub_rescue_cmd_initrd): Likewise.
8242 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
8243 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
8244 ofw_cif_handler and ofw_idt, adjust padding number.
8246 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
8247 GRUB_MACHINE_IEEE1275 is defined.
8249 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
8250 Use NESTED_FUNC_ATTR attribute on the hook parameter.
8252 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
8253 on nested function heap_init.
8254 (grub_upper_mem): New variable for i386-ieee1275.
8255 (grub_get_extended_memory): New function for i386-ieee1275.
8256 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
8258 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
8259 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
8262 * loader/i386/ieee1275/linux.c: New file.
8264 * loader/i386/ieee1275/linux_normal.c: New file.
8266 * disk/ieee1275/nand.c: New file.
8268 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
8270 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
8272 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
8274 2008-04-18 Robert Millan <rmh@aybabtu.com>
8276 Restructures early code path on ieee1275 to unify grub_main() as
8277 the first C function that is executed in every platform.
8279 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
8280 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
8282 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
8283 * kern/ieee1275/cmain.c (cmain): Rename to ...
8284 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
8285 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
8288 2008-04-18 Robert Millan <rmh@aybabtu.com>
8290 * util/update-grub.in: Fix syntax error when setting
8291 `GRUB_PRELOAD_MODULES'.
8292 Reported by Stephane Chazelas <stephane@artesyncp.com>
8294 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
8296 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
8297 section into account, newer toolchains generate unique build ids
8298 * configure.ac: remove the test for --build-id=none acceptance,
8299 we want build ids to be preserved
8300 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
8301 far from other sections don't cause the raw binary images grow
8304 2008-04-15 Robert Millan <rmh@aybabtu.com>
8306 * disk/lvm.c: Update copyright year.
8307 * kern/misc.c: Likewise.
8309 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
8311 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
8312 there is no memory left for physical volume name.
8314 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
8316 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
8317 volume name mapping to support bigger than 9 character names properly.
8319 2008-04-13 Robert Millan <rmh@aybabtu.com>
8321 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
8322 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
8324 2008-04-13 Christian Franke <franke@computer.org>
8326 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
8327 to create a floppy emulation boot CD when non emulation mode
8329 Enable Joliet CD filesystem extension.
8331 2008-04-13 Robert Millan <rmh@aybabtu.com>
8333 * kern/misc.c (grub_strncat): Fix off-by-one error.
8334 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
8336 * kern/env.c (grub_env_context_close): Clear current context, not
8338 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
8340 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
8342 2008-04-13 Robert Millan <rmh@aybabtu.com>
8344 Improve robustness when handling LVM.
8346 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
8347 (and leave `*p' unmodified).
8348 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
8350 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
8351 iterating through it.
8352 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
8354 (grub_lvm_scan_device): Check the return value (and fail gracefully
8355 when due) on each grub_lvm_getvalue() or grub_strstr() call.
8356 Don't assume `vg->pvs != NULL' when iterating through it.
8358 2008-04-13 Robert Millan <rmh@aybabtu.com>
8360 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
8361 * genmk.rb (partmap): New variable.
8362 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
8363 (#{partmap}): New target rule.
8364 * genpartmaplist.sh: New file.
8365 * Makefile.in (pkglib_DATA): Add partmap.lst.
8366 (partmap.lst): New target rule.
8367 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
8368 modules (including all partition maps), instead of preloading them.
8370 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
8372 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
8373 `linux-boot-prober' (if installed) to detect other operating
8374 systems which are installed on the computer and add them to
8376 * conf/common.rmk: Build and install 30_os-prober.
8378 2008-04-12 Robert Millan <rmh@aybabtu.com>
8380 * kern/powerpc/ieee1275/init.c: Move from here ...
8381 * kern/ieee1275/init.c: ... to here. Update all users.
8383 * kern/powerpc/ieee1275/cmain.c: Move from here ...
8384 * kern/ieee1275/cmain.c: ... to here. Update all users.
8386 * kern/powerpc/ieee1275/openfw.c: Move from here ...
8387 * kern/ieee1275/openfw.c: ... to here. Update all users.
8389 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
8390 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
8392 2008-04-10 Pavel Roskin <proski@gnu.org>
8394 * configure.ac: Always use "_cv_" in cache variables for
8395 compatibility with Autoconf 2.62.
8397 2008-04-07 Robert Millan <rmh@aybabtu.com>
8399 Revert grub/machine/init.h addition by Pavel (since it breaks on
8400 i386-ieee1275 and others):
8401 * util/i386/pc/misc.c: Remove grub/machine/init.h.
8402 * util/powerpc/ieee1275/misc.c: Likewise.
8404 2008-04-07 Robert Millan <rmh@aybabtu.com>
8406 * util/grub-probe.c (probe): Improve error message.
8408 2008-04-07 Robert Millan <rmh@aybabtu.com>
8410 * util/biosdisk.c (read_device_map): Skip devices that don't exist
8411 (this prevents the presence of a bogus entry from ruining the whole
8414 2008-04-06 Pavel Roskin <proski@gnu.org>
8416 * util/biosdisk.c: Include grub/util/biosdisk.h.
8417 * util/grub-fstest.c (execute_command): Make static.
8418 * util/grub-mkdevicemap.c (check_device): Likewise.
8419 * util/i386/pc/misc.c: Include grub/machine/init.h.
8420 * util/powerpc/ieee1275/misc.c: Likewise.
8421 * util/lvm.c: Include grub/util/lvm.h.
8422 * util/misc.c: Include grub/kernel.h, grub/misc.h and
8424 * util/raid.c: Include grub/util/raid.h.
8425 (grub_util_getdiskname): Make static.
8427 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
8428 grub_hostfs_fini(), as they are called from grub_init_all() and
8429 grub_fini_all() respectively. This fixes an infinite loop in
8430 grub-fstest due to double registration of hostfs.
8431 Reported by Christian Franke <Christian.Franke@t-online.de>
8433 2008-04-05 Pavel Roskin <proski@gnu.org>
8435 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
8436 all 8 functions. Otherwise, probe function 0 only.
8438 2008-04-04 Pavel Roskin <proski@gnu.org>
8440 * commands/lspci.c (grub_lspci_iter): Print the bus number
8443 * commands/lspci.c (grub_pci_classes): Fix typos.
8444 (grub_lspci_iter): Don't print func twice. Print vendor ID
8445 before device ID, as it's normally done.
8447 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
8448 Fix signedness warnings.
8449 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
8451 * util/ieee1275/get_disk_name.c: Include config.h so that
8452 _GNU_SOURCE is defined and getline() is declared. Mark an
8453 unused argument as such. Fix a signedness warning.
8455 2008-04-02 Pavel Roskin <proski@gnu.org>
8457 * genkernsyms.sh.in: Use more robust assignments for CC and
8458 srcdir. Quote srcdir.
8459 * gensymlist.sh.in: Likewise. Assert at the compile time that
8460 the symbol table is not empty.
8462 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
8463 * fs/cpio.c (grub_cpio_read): Likewise.
8465 2008-04-01 Pavel Roskin <proski@gnu.org>
8467 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
8468 * disk/host.c (grub_host_open): Likewise.
8469 * disk/loopback.c (grub_loopback_open): Likewise.
8470 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
8471 disk->id as in disk/host.c, not a multi-character constant.
8473 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
8474 later is obsolete, potentially dangerous and sets a bad example.
8475 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
8476 * util/misc.c (grub_util_get_image_size): Likewise.
8478 * disk/loopback.c (options): Improve help for "--partitions".
8480 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
8481 options to align them with the short options, e.g. "echo -e".
8483 2008-03-31 Bean <bean123ch@gmail.com>
8485 * video/reader/png.c (grub_png_data): New member is_16bit and
8487 (grub_png_decode_image_header): Detect 16 bit png image.
8488 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
8489 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
8490 (grub_video_reader_png): Release memory occupied by image_data.
8492 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
8494 (grub_nfs_mount): Skip the test for sector per cluster.
8496 * include/grub/ntfs.h (MAX_SPC): Removed.
8498 2008-03-31 Bean <bean123ch@gmail.com>
8500 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
8501 (grub_probe_SOURCES): Add fs/afs.c.
8502 (grub_fstest_SOURCES): Likewise.
8503 (afs_mod_SOURCES): New variable.
8504 (afs_mod_CFLAGS): Likewise.
8505 (afs_mod_LDFLAGS): Likewise.
8507 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
8508 (grub_emu_SOURCES): Likewise.
8510 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8512 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8514 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
8516 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8518 * fs/afs.c: New file.
8520 2008-03-30 Pavel Roskin <proski@gnu.org>
8522 * disk/host.c: Include grub/misc.h to fix a warning.
8523 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
8524 warnings about implicit declarations.
8526 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
8528 * include/grub/i386/loader.h: Change declaration of
8529 grub_linux_boot() to match what grub_loader_set() expects.
8530 * util/getroot.c (grub_guess_root_device): Return const char* to
8532 * util/grub-probe.c (probe): Fix a warning about uninitialized
8533 abstraction_name variable.
8534 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
8535 second argument as unused to fix a warning.
8537 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
8538 missing grub_error() call.
8540 * util/update-grub_lib.in: Define datarootdir, since Autoconf
8541 2.60 and newer uses it to define datadir.
8543 * commands/sleep.c: Fix warning about implicit declaration.
8544 * disk/memdisk.c: Likewise.
8545 * loader/aout.c: Likewise.
8546 * loader/i386/bsd_normal.c: Likewise.
8547 * util/grub-probe.c: Likewise.
8549 * commands/i386/cpuid.c (has_longmode): Make static.
8550 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
8551 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
8553 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
8554 GDT. This is more robust, as %ds can change.
8555 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
8556 calling real_to_prot().
8557 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
8559 2008-03-28 Pavel Roskin <proski@gnu.org>
8561 * kern/i386/pc/startup.S: Assert that uncompressed functions
8562 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
8563 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
8564 code, as they push parts of the code (error handlers) beyond
8565 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
8566 code as correctness and size.
8568 2008-03-28 Pavel Roskin <proski@gnu.org>
8570 * kern/i386/pc/startup.S
8571 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
8572 data block address to the real mode, keep offset minimal. This
8573 works around a bug in AWARD BIOS on old Athlon systems, which
8574 makes CD detection hang.
8576 2008-03-26 Pavel Roskin <proski@gnu.org>
8578 * normal/color.c (grub_parse_color_name_pair): Make `name' a
8580 * include/grub/normal.h: Add grub_parse_color_name_pair()
8583 2008-03-24 Bean <bean123ch@gmail.com>
8585 * disk/i386/pc/biosdisk.c (cd_start): Removed.
8586 (cd_count): Removed.
8587 (cd_drive): New variable.
8588 (grub_biosdisk_get_drive): Don't check for (cdN) device.
8589 (grub_biosdisk_call_hook): Likewise.
8590 (grub_biosdisk_iterate): Change cdrom detection method.
8591 (grub_biosdisk_open): Replace cd_start with cd_drive.
8592 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
8593 detect cdrom device.
8595 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
8597 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
8598 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
8599 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
8600 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
8601 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
8602 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
8603 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
8604 (grub_biosdisk_cdrp): New structure.
8605 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
8607 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
8609 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
8612 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
8615 2008-03-20 Robert Millan <rmh@aybabtu.com>
8617 Remove 2 TiB limit in ata.mod.
8618 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
8619 (grub_ata_dumpinfo): Print sector count with 0x%llx.
8620 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
8621 grub_uint64_t instead of grub_uint32_t.
8623 2008-03-05 Bean <bean123ch@gmail.com>
8625 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
8626 (grub_multiboot): Set boot device.
8628 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
8630 2008-03-02 Bean <bean123ch@gmail.com>
8632 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
8635 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
8637 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
8640 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
8643 * docs/fdl.texi: New file.
8645 * docs/mdate-sh: New file. Copied from gnulib.
8646 * docs/texinfo.tex: Likewise.
8648 * config.guess: Updated from gnulib.
8649 * install-sh: Likewise.
8651 2008-02-28 Robert Millan <rmh@aybabtu.com>
8653 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
8654 (aout_mod_SOURCES): New variable.
8655 (aout_mod_CFLAGS): Likewise.
8656 (aout_mod_LDFLAGS): Likewise.
8658 * conf/i386-ieee1275.rmk: Likewise.
8660 2008-02-28 Robert Millan <rmh@aybabtu.com>
8662 * util/update-grub.in: Reorganise terminal validity check. Accept
8663 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
8664 Based on suggestion by Franklin PIAT.
8666 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
8668 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
8670 * util/getroot.c (grub_util_check_block_device): New function that
8671 returns the given argument if it is a block device and returns NULL else.
8672 * util/grub-probe.c (argument_is_device): New variable.
8673 (probe): Promote device_name from a variable to an argument. Receive
8674 device_name from grub_util_check_block_device() if path is NULL and from
8675 grub_guess_root_device() else. Do not free() device_name anymore.
8676 (options): Introduce new parameter '-d, --device'.
8677 (main): Add description of the new parameter to the help screen.
8678 Rename path variable to argument. Set argument_is_device if the '-d'
8679 option is given. Pass argument to probe() depending on
8682 2008-02-24 Bean <bean123ch@gmail.com>
8684 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
8685 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
8686 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
8687 (GRUB_ISO9660_VOLDESC_PART): Likewise.
8688 (GRUB_ISO9660_VOLDESC_END): Likewise.
8689 (grub_iso9660_primary_voldesc): New member escape.
8690 (grub_iso9660_data): New member joliet.
8691 (grub_iso9660_convert_string): New function.
8692 (grub_iso9660_mount): Detect joliet extension.
8693 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
8694 (grub_iso9660_iso9660_label): Likewise.
8696 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
8697 (grub_setup_SOURCES): Add fs/udf.c.
8698 (grub_fstest_SOURCES): Likewise.
8699 (udf_mod_SOURCES): New variable.
8700 (udf_mod_CFLAGS): Likewise.
8701 (udf_mod_LDFLAGS): Likewise.
8703 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
8704 (grub_emu_SOURCES): Likewise.
8706 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8708 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8710 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
8712 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8714 * fs/udf.c: New file.
8716 2008-02-24 Robert Millan <rmh@aybabtu.com>
8718 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
8719 (normal/lexer.c_DEPENDENCIES): New variables.
8720 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
8721 (normal/lexer.c_DEPENDENCIES): Likewise.
8722 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
8723 (normal/lexer.c_DEPENDENCIES): Likewise.
8724 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
8725 (normal/lexer.c_DEPENDENCIES): Likewise.
8726 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
8727 (normal/lexer.c_DEPENDENCIES): Likewise.
8728 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
8729 (normal/lexer.c_DEPENDENCIES): Likewise.
8731 2008-02-23 Robert Millan <rmh@aybabtu.com>
8733 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
8734 since they were intended to be in hex. This didn't break previously
8735 because of a bug in gpt_partition_map_iterate() (see below).
8737 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
8738 when checking the validity of GPT header.
8739 Remove `partno', since it always provides the same information as `i'.
8741 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
8743 * include/grub/efi/time.h: Fix a wrong comment.
8745 2008-02-19 Pavel Roskin <proski@gnu.org>
8747 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
8750 2008-02-19 Bean <bean123ch@gmail.com>
8752 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
8753 (aout_mod_SOURCES): New variable.
8754 (aout_mod_CFLAGS): Likewise.
8755 (aout_mod_LDFLAGS): Likewise.
8756 (_bsd_mod_SOURCES): New variable.
8757 (_bsd_mod_CFLAGS): Likewise.
8758 (_bsd_mod_LDFLAGS): Likewise.
8759 (bsd_mod_SOURCES): New variable.
8760 (bsd_mod_CFLAGS): Likewise.
8761 (bsd_mod_LDFLAGS): Likewise.
8763 * include/grub/aout.h: New file.
8765 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
8767 * include/grub/i386/bsd.h: New file.
8769 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
8772 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
8773 function is called, so that it's possible to change it inside the hook.
8774 (grub_elf64_load): Likewise.
8775 (grub_elf_file): Don't close the file if elf header is not found.
8776 (grub_elf_close): Close the file if grub_elf_file fails (The new
8777 grub_elf_file won't close it).
8778 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
8779 (grub_elf64_size): Likewise.
8781 * kern/i386/loader.S (grub_unix_real_boot): New function.
8783 * loader/aout.c: New file.
8785 * loader/i386/bsd.c: New file.
8787 * loader/i386/bsd_normal.c: New file.
8789 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
8791 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
8792 can test other formats.
8794 2008-02-19 Robert Millan <rmh@aybabtu.com>
8796 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
8797 (grub_gpt_partition_type_empty): Redefine with macro from
8798 `<grub/gpt_partition.h>'.
8799 (gpt_partition_map_iterate): Adjust partition type comparison.
8801 Export `entry' as partmap-specific `part.data' struct.
8802 (grub_gpt_header, grub_gpt_partentry): Move from here ...
8804 * include/grub/gpt_partition.h (grub_gpt_header)
8805 (grub_gpt_partentry): ... to here (new file).
8807 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
8809 (grub_gpt_partition_type_bios_boot): New const variable, defined
8810 with macro from `<grub/gpt_partition.h>'.
8812 (setup): Replace `first_start' with `embed_region', which keeps
8813 track of the embed region (and is partmap-agnostic).
8815 Replace find_first_partition_start() with find_usable_region(),
8816 which finds a usable region for embedding using partmap-specific
8817 knowledge (supports PC/MSDOS and GPT).
8819 Fix all assumptions that the embed region start at sector 1, using
8820 `embed_region.start' from now on. Similarly, use `embed_region.end'
8821 rather than `first_start' to calculate available size.
8823 In grub_util_info() message, replace "into after the MBR" with an
8824 indication of the specific sector our embed region starts at.
8826 2008-02-19 Robert Millan <rmh@aybabtu.com>
8828 * DISTLIST: Replace `commands/ieee1275/halt.c' and
8829 `commands/ieee1275/reboot.c' with `commands/halt.c' and
8830 `commands/reboot.c'.
8831 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
8832 (halt_mod_SOURCES): Likewise.
8833 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
8834 (halt_mod_SOURCES): Likewise.
8836 2008-02-17 Christian Franke <franke@computer.org>
8838 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
8840 2008-02-17 Robert Millan <rmh@aybabtu.com>
8842 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
8843 set `first_start' to 0 for non-PC/MSDOS partition maps.
8845 2008-02-16 Robert Millan <rmh@aybabtu.com>
8847 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
8848 do not assume partition map is PC/MSDOS before performing checks that
8849 are specific to that layout.
8851 2008-02-13 Robert Millan <rmh@aybabtu.com>
8853 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
8854 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
8855 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
8857 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
8859 * configure.ac: Only a cosmetic change on the handling of
8860 -fno-stack-protector.
8862 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
8864 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
8865 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
8867 (grub_install_SOURCES): Add halt.mod and reboot.mod.
8868 (halt_mod_SOURCES): New variable.
8869 (halt_mod_CFLAGS): Likewise.
8870 (halt_mod_LDFLAGS): Likewise.
8871 (reboot_mod_SOURCES): Likewise.
8872 (reboot_mod_CFLAGS): Likewise.
8873 (reboot_mod_LDFLAGS): Likewise.
8875 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
8876 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
8878 (halt_mod_SOURCES): Likewise.
8879 (reboot_mod_SOURCES): Likewise.
8881 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
8882 commands/i386/pc/reboot.c by commands/reboot.c.
8883 (reboot_mod_SOURCES): Likewise.
8885 * commands/i386/pc/reboot.c: merge this file ...
8887 * commands/ieee1275/reboot.c: ... and this file ...
8889 * commands/reboot.c: ... to this file.
8890 Add some precompiler directive to include the correct header for
8893 * commands/ieee1275/halt.c: move this file ...
8895 * commands/halt.c: ... to here.
8896 Add some precompiler directive to include the correct header for
8899 * include/grub/efi/efi.h (grub_reboot): New function declaration.
8900 (grub_halt): Likewise.
8902 * kern/efi/efi.c (grub_reboot): New function.
8903 (grub_halt): Likewise.
8905 2008-02-12 Robert Millan <rmh@aybabtu.com>
8907 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
8908 /dev (like it is done for /dev/mapper). This doesn't provide support
8909 for EVMS, but at least it is now easy to identify the problem when it
8912 2008-02-11 Robert Millan <rmh@aybabtu.com>
8914 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
8915 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
8916 comparing it with -1, not 0.
8918 2008-02-10 Robert Millan <rmh@aybabtu.com>
8920 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
8922 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8923 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8925 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
8926 `disk/lvm.c' to the end of the list.
8927 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
8928 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8930 2008-02-10 Robert Millan <rmh@aybabtu.com>
8932 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
8933 grub_print_error() instead. This will let user know why we're entering
8935 Based on suggestions from Sam Morris.
8937 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
8939 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
8940 on remaining N args, instead of "--" arg N times.
8942 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
8944 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
8945 (fill_with_default_glyph): Changed to use unknown_glyph for fill
8946 pattern for unknown glyphs.
8948 2008-02-09 Robert Millan <rmh@aybabtu.com>
8950 * configure.ac: Probe for `help2man'.
8951 * Makefile.in (builddir): New variable.
8952 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
8953 or otherwise add a few flags/options to it.
8954 (install-local): For every executable utility or script that is
8955 installed, invoke $(HELP2MAN) to install a manpage based on --help
8958 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
8959 that it doesn't prevent --help from working in build tree.
8961 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
8962 with `bug-grub@gnu.org'.
8963 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
8964 * util/update-grub.in (usage): New function.
8965 Implement proper argument check, with support for --help and --version
8966 (as well as existing -y).
8968 2008-02-09 Christian Franke <franke@computer.org>
8970 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
8971 avoid overwriting previous output.
8972 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
8974 2008-02-09 Robert Millan <rmh@aybabtu.com>
8976 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
8979 2008-02-09 Robert Millan <rmh@aybabtu.com>
8981 * commands/sleep.c: New file.
8982 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
8983 (sleep_mod_SOURCES): New variable.
8984 (sleep_mod_CFLAGS): Likewise.
8985 (sleep_mod_LDFLAGS): Likewise.
8987 2008-02-09 Robert Millan <rmh@aybabtu.com>
8989 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
8990 situations in which we can deduce the RAID size and the superblock
8993 2008-02-09 Robert Millan <rmh@aybabtu.com>
8995 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
8996 and return a grub_diskmemberlist_t composed of LVM physical volumes.
8997 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
8999 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
9000 and return a grub_diskmemberlist_t composed of physical array members.
9001 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
9003 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
9005 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
9006 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
9007 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
9009 * util/grub-probe.c (probe): Move partmap probing code from here ...
9010 (probe_partmap): ... to here.
9011 (probe): Use probe_partmap() once for the disk we're probing, and
9012 additionally, when such disk contains a memberlist() struct member,
9013 once for each disk that is contained in the structure returned by
9016 2008-02-09 Robert Millan <rmh@aybabtu.com>
9018 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
9019 environment variable to 'all' in order to obtain debug output from
9021 * util/i386/pc/grub-setup.c (main): Likewise.
9023 2008-02-08 Robert Millan <rmh@aybabtu.com>
9025 * disk/raid.c (grub_raid_scan_device): Check for
9026 `array->device[sb.this_disk.number]' rather than for
9027 `array->device[sb.this_disk.number]->name', since the latter is not
9028 guaranteed to be accessible.
9030 2008-02-08 Robert Millan <rmh@aybabtu.com>
9032 * disk/raid.c: Update copyright.
9033 * fs/cpio.c: Likewise.
9034 * include/grub/raid.h: Likewise.
9035 * loader/i386/pc/multiboot.c: Likewise.
9036 * util/hostfs.c: Likewise.
9038 2008-02-08 Robert Millan <rmh@aybabtu.com>
9040 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
9041 to a grub_disk_t array.
9042 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
9044 (grub_raid_scan_device): Replace `device[x].name' accesses with
9045 `device[x]->name'. Simplify initialization of `array->device[x]'.
9047 2008-02-08 Robert Millan <rmh@aybabtu.com>
9049 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
9050 grub_dprintf() calls.
9051 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
9054 2008-02-07 Christian Franke <franke@computer.org>
9056 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
9057 instead of fseek and ftell to support large files.
9058 (grub_hostfs_read): Likewise.
9060 2008-02-07 Robert Millan <rmh@aybabtu.com>
9062 Patch from Jeroen Dekkers.
9063 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
9064 failure, since successfully reading all array members might not be
9067 2008-02-06 Robert Millan <rmh@aybabtu.com>
9069 * util/grub-probe.c (probe): Simplify partmap probing (with the
9070 assumption that the first word up to the underscore equals to
9073 2008-02-06 Christian Franke <franke@computer.org>
9075 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
9076 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
9077 last block of a cpio or tar stream.
9078 Check for "TRAILER!!!" instead of any empty data
9079 block to detect last block of a cpio stream.
9080 (grub_cpio_dir): Fix constness of variable np.
9081 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
9082 cpio or tar trailer is detected. This fixes a crash
9083 on open of a non existing file.
9085 2008-02-05 Bean <bean123ch@gmail.com>
9087 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
9089 (grub_multiboot_load_elf64): Likewise.
9090 (grub_multiboot): Initialize mbi structure.
9092 * util/grub-fstest.c: Don't include unused header file script.h.
9094 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
9096 (grub_fstest_SOURCES): Likewise.
9098 2008-02-05 Robert Millan <rmh@aybabtu.com>
9100 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
9101 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
9102 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
9103 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
9105 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
9106 (translation_table): Replace hardcoded values with macros
9107 provided by `<grub/term.h>'.
9109 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
9110 (keyboard_map): Correct/add a few values, with macros provided
9112 (keyboard_map_shift): Zero values that don't differ from their
9113 `keyboard_map' equivalents.
9114 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
9115 Discard the second scan code that is always sent by Caps lock.
9116 Only use `keyboard_map_shift' when it provides a non-zero value,
9117 otherwise fallback to `keyboard_map'.
9119 2008-02-04 Bean <bean123ch@gmail.com>
9121 * Makefile.in (enable_grub_fstest): New variable.
9123 * conf/common.rmk (grub_fstest_init.lst): New rule.
9124 (grub_fstest_init.h): Likewise.
9125 (grub_fstest_init.c): Likewise.
9126 (util/grub-fstest.c_DEPENDENCIES): New variable.
9127 (grub_fstest_SOURCES): Likewise.
9129 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
9131 * util/grub-fstest.c: New file.
9133 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
9135 Make grub-setup handle a separate root device.
9137 * util/i386/pc/grub-setup.c (setup): Always open the root device,
9138 so that the root device can be compared with the destination
9140 When embedding the core image, if the root and destination devices
9141 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
9143 When not embedding, set ROOT_DRIVE to 0xFF.
9145 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
9147 Add support for having a grub directory in a different drive. This
9148 is still only the data handling part.
9150 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
9151 (codestart): Save %dh in GRUB_ROOT_DRIVE.
9152 (grub_root_drive): New variable.
9154 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
9155 instead of GRUB_BOOT_DRIVE to construct a device name. Set
9156 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
9159 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
9161 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
9163 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
9165 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
9166 is bogus, because PXE booting does not specify any drive
9169 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
9170 am not sure if this is really correct.
9172 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
9173 is always identical to the boot drive when booting from a CD.
9175 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
9177 (root_drive): New variable.
9178 (real_start): Unconditionally set %dh to ROOT_DRIVE.
9179 (setup_sectors): Push %dx right after popping it, because %dh will
9181 (copy_buffer): Restore %dx.
9183 2008-02-03 Robert Millan <rmh@aybabtu.com>
9185 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
9186 use `cdboot.img' for cdrom images.
9188 2008-02-03 Robert Millan <rmh@aybabtu.com>
9190 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
9191 only setup gfxterm when `font' command has succeeded.
9193 2008-02-03 Robert Millan <rmh@aybabtu.com>
9195 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
9196 (grub_rescue_cmd_multiboot_loader)
9197 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
9199 2008-02-03 Pavel Roskin <proski@gnu.org>
9201 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
9202 %edx and %esi from stack only after grub_gate_a20() is called.
9203 grub_gate_a20() clobbers %edx.
9205 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
9207 * configure.ac (AC_INIT): Bumped to 1.96.
9209 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
9210 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
9211 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
9212 video/readers/png.c.
9214 2008-02-03 Bean <bean123ch@gmail.com>
9216 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
9217 (cdboot_img_SOURCES): New variable.
9218 (cdboot_img_ASFLAGS): New variable.
9219 (cdboot_img_LDFLAGS): New variable.
9221 * boot/i386/pc/cdboot.S: New file.
9223 * disk/i386/pc/biosdisk.c (cd_start): New variable.
9224 (cd_count): Likewise.
9225 (grub_biosdisk_get_drive): Add support for cd device.
9226 (grub_biosdisk_call_hook): Likewise.
9227 (grub_biosdisk_iterate): Likewise.
9228 (grub_biosdisk_open): Likewise.
9229 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
9230 (grub_biosdisk_rw): Support reading from cd device.
9231 (GRUB_MOD_INIT): Iterate cd devices.
9233 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
9234 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
9235 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
9237 * kern/i386/pc/init.c (make_install_device): Check for cd device.
9239 2008-02-02 Robert Millan <rmh@aybabtu.com>
9241 * commands/read.c: New file.
9242 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
9243 (read_mod_SOURCES): New variable.
9244 (read_mod_CFLAGS): Likewise.
9245 (read_mod_LDFLAGS): Likewise.
9247 2008-02-02 Robert Millan <rmh@aybabtu.com>
9249 * normal/main.c (grub_normal_execute): Check for `menu->size' when
9250 determining whether menu has to be displayed.
9252 2008-02-02 Marco Gerards <marco@gnu.org>
9254 * bus/pci.c: New file.
9256 * include/grub/pci.h: Likewise.
9258 * include/grub/i386/pc/pci.h: Likewise.
9260 * commands/lspci.c: Likewise.
9262 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
9264 (pci_mod_SOURCES): New variable.
9265 (pci_mod_CFLAGS): Likewise.
9266 (pci_mod_LDFLAGS): Likewise.
9267 (lspci_mod_SOURCES): Likewise.
9268 (lspci_mod_CFLAGS): Likewise.
9269 (lspci_mod_LDFLAGS): Likewise.
9271 2008-02-02 Bean <bean123ch@gmail.com>
9273 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
9274 (grub_ufs_get_file_block): Fix indirect block calculation problem.
9276 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
9277 (grub_xfs_btree_node): New structure.
9278 (grub_xfs_btree_root): New structure.
9279 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
9280 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
9281 (GRUB_XFS_EXTENT_BLOCK): Likewise.
9282 (GRUB_XFS_EXTENT_SIZE): Likewise.
9283 (grub_xfs_read_block): Support btree format type.
9284 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
9285 Use directory block as basic unit.
9287 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
9289 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
9290 __attribute__ ((__regparm__ (1))).
9292 2008-02-01 Robert Millan <rmh@aybabtu.com>
9294 Correct a mistake in previous commit.
9296 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
9298 (normal/command.c_DEPENDENCIES): New variable.
9300 2008-02-01 Robert Millan <rmh@aybabtu.com>
9302 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
9304 (normal/command.c_DEPENDENCIES): New variable.
9305 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
9306 * conf/i386-ieee1275.rmk: Likewise.
9307 * conf/i386-linuxbios.rmk: Likewise.
9308 * conf/i386-pc.rmk: Likewise.
9309 * conf/sparc64-ieee1275.rmk: Likewise.
9310 * conf/powerpc-ieee1275.rmk: Likewise.
9311 (grub_emu_SOURCES): Add `fs/fshelp.c'.
9313 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
9315 2008-02-01 Robert Millan <rmh@aybabtu.com>
9317 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
9318 call at beginning of function.
9320 2008-01-31 Pavel Roskin <proski@gnu.org>
9322 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
9323 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
9324 (grub_mkrescue_SOURCES): Likewise.
9325 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
9327 2008-01-30 Robert Millan <rmh@aybabtu.com>
9329 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
9330 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
9331 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
9332 (grub_probe_SOURCES): ... to here.
9334 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
9335 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
9336 * conf/i386-ieee1275.rmk: Likewise.
9337 * conf/i386-linuxbios.rmk: Likewise.
9338 * conf/powerpc-ieee1275.rmk: Likewise.
9340 2008-01-30 Tristan Gingold <gingold@free.fr>
9342 * kern/rescue.c: Silently accept empty lines.
9344 2008-01-29 Bean <bean123ch@gmail.com>
9346 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
9347 (real_code_2): Code cleanup and change comment style.
9348 (move_memory): Avoid using 32-bit address mode.
9350 2008-01-29 Bean <bean123ch@gmail.com>
9352 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
9353 (png_mod_SOURCES): New variable.
9354 (png_mod_CFLAGS): Likewise.
9355 (png_mod_LDFLAGS): Likewise.
9357 * video/readers/png.c: New file.
9359 2008-01-28 Robert Millan <rmh@aybabtu.com>
9361 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
9362 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
9363 `ifndef GRUB_MOD_GAP' hack.
9364 * util/elf/grub-mkimage.c (add_segments): Likewise.
9366 2008-01-27 Robert Millan <rmh@aybabtu.com>
9368 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
9369 `GRUB_MOD_GAP' for platforms in which it's not defined.
9370 * util/elf/grub-mkimage.c (add_segments): Likewise.
9372 2008-01-27 Robert Millan <rmh@aybabtu.com>
9374 Get grub-emu to build again (including parallel builds).
9376 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
9378 (util/grub-emu.c_DEPENDENCIES): ... this, ...
9379 (normal/execute.c_DEPENDENCIES): ... this, ...
9380 (grub-emu_DEPENDENCIES): ... and this.
9382 * conf/i386-efi.rmk: Likewise.
9383 * conf/i386-linuxbios.rmk: Likewise.
9384 * conf/i386-ieee1275.rmk: Likewise.
9385 * conf/powerpc-ieee1275.rmk: Likewise.
9386 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
9388 2008-01-27 Robert Millan <rmh@aybabtu.com>
9390 * NEWS: Add a few items.
9392 2008-01-27 Robert Millan <rmh@aybabtu.com>
9394 Fix parallel builds with grub-emu. Based on earlier commit for
9395 grub-probe and grub-setup.
9397 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9398 (util/grub-emu.c_DEPENDENCIES): ... this.
9399 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9400 (util/grub-emu.c_DEPENDENCIES): ... this.
9401 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9402 (util/grub-emu.c_DEPENDENCIES): ... this.
9403 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9404 (util/grub-emu.c_DEPENDENCIES): ... this.
9405 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9406 (util/grub-emu.c_DEPENDENCIES): ... this.
9408 2008-01-27 Pavel Roskin <proski@gnu.org>
9410 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
9411 to create a gap between _end and the modules added to the image
9412 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
9413 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
9414 * util/elf/grub-mkimage.c (add_segments): Likewise.
9416 2008-01-26 Pavel Roskin <proski@gnu.org>
9418 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
9419 just return an error.
9421 2008-01-26 Bean <bean123ch@gmail.com>
9423 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
9424 (grub_reiserfs_get_item): Save offset of the next item.
9425 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
9427 2008-01-25 Robert Millan <rmh@aybabtu.com>
9429 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
9430 make all filesystem sources appear together (possibly fixing omissions
9432 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9433 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9434 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
9435 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9437 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
9439 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
9440 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
9441 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
9442 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
9444 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
9445 (probe): Add a sanity check to make sure of our ability to read
9446 requested files when probing for filesystem type.
9448 * genmk.rb: Update copyright year (2007).
9450 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
9451 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
9452 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
9453 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
9454 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
9455 : Remove function prototypes.
9457 2008-01-25 Robert Millan <rmh@aybabtu.com>
9459 Revert my previous commits (based on wrong assumption of how grub_errno
9462 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
9463 * kern/file.c (grub_file_open): Likewise.
9465 2008-01-24 Pavel Roskin <proski@gnu.org>
9467 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
9468 that hang if GRUB tries to setup colors.
9469 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
9470 colors for firmwares that don't support it.
9471 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
9472 Recognize Open Hack'Ware, set flags to work around its
9475 2008-01-24 Robert Millan <rmh@aybabtu.com>
9477 * kern/file.c (grub_file_open): Do not account previous failures of
9478 unrelated functions when grub_errno is checked for.
9479 Reported by Oleg Strikov.
9481 2008-01-24 Bean <bean123ch@gmail.com>
9483 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
9484 (grub_ufs_sblock): New member volume name.
9485 (grub_ufs_find_file): Fix string copy bug.
9486 (grub_ufs_label): Implement this function properly.
9488 * fs/hfs.c (grub_hfs_cnid_type): New enum.
9489 (grub_hfs_iterate_records): Use the correct file number for extents
9490 and catalog file. Fix problem in next index calculation.
9491 (grub_hfs_find_node): Replace recursive function call with loop.
9492 (grub_hfs_iterate_dir): Replace recursive function call with loop.
9494 2008-01-23 Robert Millan <rmh@aybabtu.com>
9496 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
9497 `<grub/symbol.h>' and `<grub/multiboot.h>'.
9498 (grub_multiboot2_real_boot): New function prototype.
9500 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
9501 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
9503 * kern/i386/ieee1275/init.c (grub_os_area_addr)
9504 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
9506 2008-01-23 Robert Millan <rmh@aybabtu.com>
9508 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
9509 #ifdef'ed out grub_printf().
9511 2008-01-23 Robert Millan <rmh@aybabtu.com>
9513 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
9514 grub_dprintf calls, since they make "debug=all" mode unusable.
9515 (grub_console_checkkey): Likewise.
9517 2008-01-23 Robert Millan <rmh@aybabtu.com>
9519 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
9520 `term/i386/pc/at_keyboard.c'.
9521 (pkglib_MODULES): Add `serial.mod'.
9522 (serial_mod_SOURCES): New variable.
9523 (serial_mod_CFLAGS): Likewise.
9524 (serial_mod_LDFLAGS): Likewise.
9526 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
9527 `<grub/powerpc/ieee1275/console.h>'.
9528 (grub_keyboard_controller_init): New function prototype.
9529 (grub_console_checkkey): Likewise.
9530 (grub_console_getkey): Likewise.
9532 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
9535 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
9536 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
9538 2008-01-23 Robert Millan <rmh@aybabtu.com>
9540 * kern/i386/pc/init.c (make_install_device): When memdisk image is
9541 present, "(memdisk)/boot/grub" becomes the default prefix.
9543 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
9544 a memdisk tarball with all the modules. Add --overlay=DIR option that
9545 allows users to overlay additional files into the image.
9547 2008-01-23 Robert Millan <rmh@aybabtu.com>
9549 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
9550 and `machine/memory.h'.
9551 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
9552 (_multiboot_mod_SOURCES): New variable.
9553 (_multiboot_mod_CFLAGS): Likewise.
9554 (_multiboot_mod_LDFLAGS): Likewise.
9555 (multiboot_mod_SOURCES): Likewise.
9556 (multiboot_mod_CFLAGS): Likewise.
9557 (multiboot_mod_LDFLAGS): Likewise.
9559 * include/grub/i386/ieee1275/loader.h: New file.
9561 * include/grub/i386/ieee1275/machine.h: Likewise.
9563 * include/grub/i386/ieee1275/memory.h: Likewise.
9565 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
9566 variable declaration.
9567 (grub_os_area_size): Likewise.
9569 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
9570 (grub_lower_mem, grub_upper_mem): New variables.
9571 (grub_stop_floppy): New function (just to make
9572 grub_multiboot2_real_boot() happy).
9574 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
9575 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
9576 (grub_stop): New function.
9577 Include `"../realmode.S"' and `"../loader.S"'.
9579 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
9580 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
9582 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
9583 rely on grub_multiboot2_real_boot() for final boot.
9585 2008-01-22 Robert Millan <rmh@aybabtu.com>
9587 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
9588 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
9589 device that doesn't look like an SD card.
9590 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
9591 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
9592 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
9593 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
9596 2008-01-22 Robert Millan <rmh@aybabtu.com>
9598 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
9599 avoid claiming over our own code.
9601 2008-01-22 Bean <bean123ch@gmail.com>
9603 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
9604 (jpeg_mod_SOURCES): New variable.
9605 (jpeg_mod_CFLAGS): Likewise.
9606 (jpeg_mod_LDFLAGS): Likewise.
9608 * video/readers/jpeg.c : New file.
9610 2008-01-22 Bean <bean123ch@gmail.com>
9612 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
9613 there are no more items.
9615 2008-01-21 Robert Millan <rmh@aybabtu.com>
9617 * kern/mm.c (grub_mm_init_region): Improve debug message.
9619 2008-01-21 Robert Millan <rmh@aybabtu.com>
9621 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
9622 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
9624 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
9626 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
9627 Indicates start of upper memory.
9628 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
9629 (generate_image): Abort when image size is big enough to corrupt
9632 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
9633 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
9634 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
9635 instead of hardcoding 0xA0000.
9636 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
9637 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
9638 instead of hardcoding 0xA0000.
9640 2008-01-21 Robert Millan <rmh@aybabtu.com>
9642 * disk/memdisk.c (memdisk_size): New variable.
9643 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
9645 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
9646 image to dynamic memory.
9647 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
9648 `memdisk_size'. Free memdisk block.
9650 2008-01-21 Robert Millan <rmh@aybabtu.com>
9652 Fix detection of very small filesystems (like tar).
9654 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
9655 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
9656 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
9657 a problem with this disk).
9659 2008-01-21 Robert Millan <rmh@aybabtu.com>
9661 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
9662 on grub_biosdisk_rw_standard() error.
9664 2008-01-21 Robert Millan <rmh@aybabtu.com>
9666 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
9668 * kern/elf.c: Likewise.
9669 * kern/ieee1275/ieee1275.c: Likewise.
9670 * kern/powerpc/ieee1275/openfw.c: Likewise.
9671 * term/ieee1275/ofconsole.c: Likewise.
9673 2008-01-21 Robert Millan <rmh@aybabtu.com>
9675 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
9677 * include/grub/kernel.h (grub_arch_memdisk_addr)
9678 (grub_arch_memdisk_size): Moved from here ...
9680 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
9681 (grub_arch_memdisk_size): ... to here.
9683 2008-01-21 Robert Millan <rmh@aybabtu.com>
9685 Mostly based on bugfix from Bean.
9687 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
9688 attribute with hook() parameter.
9689 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
9691 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
9692 attribute with hook() parameter.
9693 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
9696 2008-01-21 Robert Millan <rmh@aybabtu.com>
9698 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
9699 (pkglib_MODULES): Add `memdisk.mod'.
9700 (memdisk_mod_SOURCES): New variable.
9701 (memdisk_mod_CFLAGS): Likewise.
9702 (memdisk_mod_LDFLAGS): Likewise.
9704 * disk/memdisk.c: New file.
9706 * include/grub/disk.h (grub_disk_dev_id): Add
9707 `GRUB_DISK_DEVICE_MEMDISK_ID'.
9709 * include/grub/i386/pc/kernel.h
9710 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
9711 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
9712 (grub_kernel_image_size): New variable declaration.
9713 (grub_total_module_size): Likewise.
9714 (grub_memdisk_image_size): Likewise.
9716 * include/grub/i386/pc/memory.h
9717 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
9719 * include/grub/kernel.h: Include `<grub/symbol.h>'.
9720 (grub_arch_memdisk_addr): New variable declaration.
9721 (grub_arch_memdisk_size): Likewise.
9723 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
9724 (grub_arch_memdisk_size): Likewise.
9726 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
9727 (codestart): Replace hardcoded `0x100000' with
9728 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
9730 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
9731 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
9732 not NULL, append the contents of the file it refers to, at the end of
9733 the compressed kernel image. Initialize `grub_memdisk_image_size'
9734 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
9735 (options): Add "memdisk"|'m' option.
9736 (main): Parse --memdisk|-m option, and pass user-provided path as
9737 parameter to generate_image().
9739 2008-01-20 Robert Millan <rmh@aybabtu.com>
9741 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
9742 grub_dprintf() calls from here ...
9743 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
9745 2008-01-20 Robert Millan <rmh@aybabtu.com>
9747 Fix detection of "real mode" when /options/real-mode? doesn't exist.
9749 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
9751 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
9752 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
9753 `GRUB_IEEE1275_FLAG_REAL_MODE'.
9754 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
9756 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
9757 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
9759 2008-01-19 Robert Millan <rmh@aybabtu.com>
9761 Get rid of confusing function (superseded by
9762 `grub_ieee1275_get_integer_property')
9763 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
9765 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
9767 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
9768 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
9769 in native endianness from grub_ieee1275_get_integer_property().
9771 2008-01-19 Robert Millan <rmh@aybabtu.com>
9773 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
9774 command after "shut-down", since implementations differ on which
9775 the command for halt is.
9777 2008-01-19 Robert Millan <rmh@aybabtu.com>
9779 * include/grub/i386/linuxbios/console.h: Add header protection.
9780 (grub_keyboard_controller_init): New function prototype.
9781 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
9782 (KEYBOARD_COMMAND_READ): Likewise.
9783 (KEYBOARD_COMMAND_WRITE): Likewise.
9784 (KEYBOARD_SCANCODE_SET1): Likewise.
9785 (grub_keyboard_controller_write): New function.
9786 (grub_keyboard_controller_read): Likewise.
9787 (grub_keyboard_controller_init): Likewise.
9789 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
9790 (grub_console_init): On coreboot/LinuxBIOS, call
9791 grub_keyboard_controller_init().
9793 2008-01-19 Robert Millan <rmh@aybabtu.com>
9795 PowerPC changes provided by Pavel Roskin.
9797 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
9798 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
9799 don't rely on cmain() doing it.
9800 * kern/i386/ieee1275/startup.S (_start): Store %eax in
9801 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
9803 2008-01-16 Robert Millan <rmh@aybabtu.com>
9805 * include/grub/i386/linuxbios/memory.h
9806 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
9807 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
9808 receive `table_header' as argument. Instead, probe for it in the
9809 known memory ranges where it can be present.
9810 (grub_available_iterate): Do not pass a fixed `table_header' address
9811 to grub_linuxbios_table_iterate().
9813 2008-01-15 Robert Millan <rmh@aybabtu.com>
9815 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
9816 * conf/i386-ieee1275.rmk: New file.
9817 * include/grub/i386/ieee1275/console.h: Likewise.
9818 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
9819 * include/grub/i386/ieee1275/kernel.h: Likewise.
9820 * include/grub/i386/ieee1275/time.h: Likewise.
9821 * kern/i386/ieee1275/init.c: Likewise.
9822 * kern/i386/ieee1275/startup.S: Likewise.
9824 2008-01-15 Robert Millan <rmh@aybabtu.com>
9826 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
9827 when pointers are 32-bit (but still do set it to one when they are
9830 2008-01-15 Robert Millan <rmh@aybabtu.com>
9832 * include/grub/ieee1275/ieee1275.h
9833 (grub_ieee1275_get_integer_property): New function prototype.
9835 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
9836 (grub_ieee1275_get_integer_property): New function. Wraps around
9837 grub_ieee1275_get_property() to handle endianness.
9839 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
9840 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
9842 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
9843 (grub_map): Likewise.
9844 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
9846 2008-01-15 Bean <bean123ch@gmail.com>
9848 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
9849 (grub_script_execute_cmdline): Reset grub_errno.
9851 * normal/main.c (read_config_file): Reset grub_errno.
9853 * normal/parse.y (script_init): New.
9854 (script): Move function and menuentry here.
9856 (command): Add delimiter at the end of command.
9857 (commands): Adjust to match the new command.
9858 (commandblock): Remove grub_script_lexer_record_start.
9859 (menuentry): Add grub_script_lexer_record_start, use the new commands.
9860 (if): Use the new commands.
9862 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
9864 2008-01-15 Robert Millan <rmh@aybabtu.com>
9866 * normal/menu.c (run_menu): Move timeout message from here ...
9867 (print_timeout): ... to here.
9868 (run_menu): Use print_timeout() once during initial draw to print
9869 the whole message, and again in every clock tick to update only
9870 the number of seconds.
9872 2008-01-15 Robert Millan <rmh@aybabtu.com>
9874 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
9875 actual size of `available' from grub_ieee1275_get_property(), and
9876 restrict parsing to that bound.
9878 2008-01-15 Christian Franke <franke@computer.org>
9880 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
9881 (argp_program_version): Remove variable.
9882 (argp_program_bug_address): Likewise.
9883 (options): Convert from struct argp_option to struct option.
9884 (struct arguments): Remove.
9885 (parse_opt): Remove.
9886 (usage): New function.
9887 (main): Replace struct args members by simple variables.
9888 Replace argp_parse() by getopt_long().
9889 Add switch to evaluate options.
9890 Add missing "(...)" around root_dev in prefix string.
9892 2008-01-14 Robert Millan <rmh@aybabtu.com>
9894 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
9895 for grub_ieee1275_exit(), in order to improve portability.
9897 2008-01-14 Robert Millan <rmh@aybabtu.com>
9899 * util/grub.d/10_linux.in (prefix): Define.
9900 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
9902 2008-01-13 Pavel Roskin <proski@gnu.org>
9904 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
9905 grub_errno if no errors have been detected.
9907 2008-01-12 Robert Millan <rmh@aybabtu.com>
9909 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
9910 (grub_util_get_dev_abstraction): New function prototype.
9912 * util/getroot.c: Include `<grub/util/getroot.h>'
9913 (grub_util_get_grub_dev): Move detection of abstraction type to ...
9914 (grub_util_get_dev_abstraction): ... here (new function).
9916 * util/grub-probe.c: Convert PRINT_* to an enum. Add
9917 `PRINT_ABSTRACTION'.
9918 (probe): Probe for abstraction type when requested.
9919 (main): Understand `--target=abstraction'.
9921 * util/i386/efi/grub-install.in: Add abstraction module to core
9922 image when it is found to be necessary.
9923 * util/i386/pc/grub-install.in: Likewise.
9924 * util/powerpc/ieee1275/grub-install.in: Likewise.
9926 * util/update-grub_lib.in (font_path): Return system path without
9927 converting to GRUB path.
9928 * util/update-grub.in: Convert system path returned by font_path()
9929 to a GRUB path. Use `grub-probe -t abstraction' to determine what
9930 abstraction module is needed for loading fonts (if any). Export
9931 that as `GRUB_PRELOAD_MODULES'.
9932 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
9935 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
9937 Remove some unused code from reiserfs.
9939 * fs/reiserfs.c (struct grub_reiserfs_key)
9940 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
9941 (struct grub_reiserfs_node_body): Removed.
9942 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
9944 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
9946 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
9948 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
9950 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
9952 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
9954 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
9955 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
9956 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
9958 2008-01-10 Robert Millan <rmh@aybabtu.com>
9960 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
9961 Determines if a file is garbage left by packaging systems, etc.
9962 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
9963 for processing /etc/grub.d scripts.
9964 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
9965 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
9966 as a condition for processing Linux images.
9968 2008-01-10 Pavel Roskin <proski@gnu.org>
9970 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
9971 to compile reiserfs.c on PowerPC.
9973 2008-01-10 Robert Millan <rmh@aybabtu.com>
9975 * kern/device.c (grub_device_iterate): Do not abort device iteration
9976 when one of the devices cannot be opened.
9977 * kern/disk.c (grub_disk_open): Do not account previous failures of
9978 unrelated functions when grub_errno is checked for.
9980 2008-01-08 Robert Millan <rmh@aybabtu.com>
9982 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
9983 `! grub_linux_is_bzimage', change order of address comparison to make
9984 it more intuitive, and improve "too big zImage" error message.
9986 2008-01-08 Robert Millan <rmh@aybabtu.com>
9988 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
9989 `$(update-grub_DATA)'.
9990 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
9993 2008-01-07 Robert Millan <rmh@aybabtu.com>
9995 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
9996 which instruction is modified by grub-setup during installation
9997 (since it wasn't obvious by only looking at this file).
9999 2008-01-07 Robert Millan <rmh@aybabtu.com>
10001 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
10002 listing actual TODO items.
10004 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
10006 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
10008 (grub_reiserfs_get_key_offset): Likewise.
10009 (grub_reiserfs_set_key_offset): Likewise.
10010 (grub_reiserfs_set_key_type): Likewise.
10011 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
10013 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
10014 better to remove the bitfield version completely.
10016 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
10018 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
10019 allocated from the heap, due to the fshelp implementation.
10020 (grub_reiserfs_dir): Free NODE, due to the same reason.
10022 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
10024 Mostly from Vincent Pelletier:
10026 * fs/reiserfs.c: New file.
10028 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
10029 (reiserfs_mod_SOURCES): New variable.
10030 (reiserfs_mod_CFLAGS): Likewise.
10031 (reiserfs_mod_LDFLAGS): Likewise.
10033 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
10034 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
10035 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
10038 2008-01-06 Robert Millan <rmh@aybabtu.com>
10040 * normal/color.c: Remove `<grub/env.h>'.
10042 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
10044 * include/grub/normal.h: Include <grub/env.h>.
10046 2008-01-05 Robert Millan <rmh@aybabtu.com>
10048 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
10049 usage example with `(hd0,1)'.
10050 Reported by Samuel Thibault.
10052 2008-01-05 Robert Millan <rmh@aybabtu.com>
10054 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
10055 (grub_linux_boot_zimage): Rename to ...
10056 (grub_linux_boot): ... this.
10057 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
10058 (grub_linux_boot_zimage): Conditionalize zImage copy.
10060 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
10061 (grub_linux_boot_bzimage): Remove prototype.
10062 (grub_linux_boot_zimage): Rename to ...
10063 (grub_linux_boot): ... this.
10065 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
10066 (grub_linux_boot): Remove function.
10068 2008-01-05 Robert Millan <rmh@aybabtu.com>
10070 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
10071 (grub_env_write_color_highlight): Likewise.
10072 (grub_wait_after_message): Likewise.
10074 * normal/color.c: New file.
10076 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
10077 (normal_mod_DEPENDENCIES): Likewise.
10079 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
10080 (normal_mod_DEPENDENCIES): Likewise.
10082 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
10083 (normal_mod_DEPENDENCIES): Likewise.
10085 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
10086 (normal_mod_DEPENDENCIES): Likewise.
10088 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
10089 for waiting after a message is printed.
10090 * normal/main.c (read_config_file): Likewise.
10091 (grub_normal_init): Register grub_env_write_color_normal() and
10092 grub_env_write_color_highlight() hooks. Mark `color_normal' and
10093 `color_highlight' variables as global.
10095 * normal/menu.c (grub_wait_after_message): New function.
10096 (grub_color_menu_normal): New variable. Replaces ...
10097 (GRUB_COLOR_MENU_NORMAL): ... this macro.
10098 (grub_color_menu_highlight): New variable. Replaces ...
10099 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
10100 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
10101 `GRUB_TERM_COLOR_STANDARD'.
10102 (print_message): Use `grub_setcolorstate' to reload colors. Rename
10103 `normal_code' and `highlight_code' to `old_color_normal' and
10104 `old_color_highlight', respectively.
10105 (grub_menu_init_page): Update colors when drawing the menu, based on
10106 `menu_color_normal' and `menu_color_highlight' variables.
10107 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
10108 a message is printed.
10110 2008-01-05 Robert Millan <rmh@aybabtu.com>
10112 * kern/env.c (grub_env_context_open): Propagate hooks for global
10113 variables to new context.
10115 * kern/main.c (grub_set_root_dev): Export `root' variable.
10117 2008-01-05 Robert Millan <rmh@aybabtu.com>
10119 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
10120 discs unconditionally, since udev and others have options to provide
10123 2008-01-05 Robert Millan <rmh@aybabtu.com>
10125 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
10127 2008-01-04 Christian Franke <franke@computer.org>
10129 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
10132 2008-01-03 Pavel Roskin <proski@gnu.org>
10134 * kern/i386/linuxbios/init.c: Put "void" to all function
10135 declarations with no arguments.
10136 * kern/powerpc/ieee1275/init.c: Likewise.
10137 * term/i386/pc/at_keyboard.c: Likewise.
10138 * term/i386/pc/vga_text.c: Likewise.
10139 * util/grub-mkdevicemap.c: Likewise.
10141 2008-01-02 Robert Millan <rmh@aybabtu.com>
10143 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
10144 message when loaded image is out of bounds.
10145 (grub_multiboot_load_elf64): Likewise.
10147 2008-01-02 Pavel Roskin <proski@gnu.org>
10149 * util/grub.d/10_linux.in: Try version without ".old" when
10150 looking for initrd. It's better to use initrd from the newer
10151 kernel of the same version than no initrd at all.
10153 2008-01-01 Robert Millan <rmh@aybabtu.com>
10155 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
10157 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
10159 * include/grub/video.h: Added grub_video_unmap_color and
10160 grub_video_get_active_render_target.
10161 (grub_video_adapter): Added unmap_color and get_active_render_target.
10163 * video/video.c: Added grub_video_unmap_color and
10164 grub_video_get_active_render_target.
10165 (grub_video_get_info): Changed method to accept NULL pointer as an
10166 argument to allow detection of active video adapter.
10168 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
10169 grub_video_vbe_unmap_color_int.
10170 Added grub_video_vbe_unmap_color and
10171 grub_video_vbe_get_active_render_target.
10172 (grub_video_vbe_adapter): Added unmap_color and
10173 get_active_render_target.
10175 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
10176 with grub_video_vbe_unmap_color_int.
10178 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
10179 (DEFAULT_NORMAL_COLOR): Likewise.
10180 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
10181 (DEFAULT_FG_COLOR): Removed.
10182 (DEFAULT_BG_COLOR): Likewise.
10183 (DEFAULT_CURSOR_COLOR): Changed value.
10184 (grub_virtual_screen): Added standard_color_setting,
10185 normal_color_setting, highlight_color_setting and term_color.
10186 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
10187 (bitmap_width): Added.
10188 (bitmap_height): Likewise.
10189 (bitmap): Likewise.
10190 (set_term_color): Likewise.
10191 (grub_virtual_screen_setup): Changed to use new terminal coloring
10193 (grub_gfxterm_init): Added init for bitmap.
10194 (grub_gfxterm_fini): Added destroy for bitmap.
10195 (redraw_screen_rect): Updated to use background bitmap and new
10197 (scroll_up): Added optimization for case when there is no bitmap.
10198 (grub_gfxterm_cls): Fixed to use correct background color.
10199 (grub_virtual_screen_setcolorstate): Changed to use new terminal
10201 (grub_virtual_screen_setcolor): Likewise.
10202 (grub_virtual_screen_getcolor): Added.
10203 (grub_gfxterm_background_image_cmd): Likewise.
10204 (grub_video_term): Added setcolor and getcolor.
10205 (MOD_INIT): Added registration of background_image command.
10206 (MOD_TERM): Added unregistration for background_image command.
10208 2007-12-30 Pavel Roskin <proski@gnu.org>
10210 * loader/multiboot_loader.c: Fix multiboot command
10211 unregistration. Fix all typos in the word "multiboot".
10213 2007-12-29 Pavel Roskin <proski@gnu.org>
10215 * util/grub.d/10_linux.in: Refactor search for initrd. Add
10216 support for initrd names used in Fedora.
10218 2007-12-26 Bean <bean123ch@gmail.com>
10220 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
10221 (cpio_mod_SOURCES): New variable.
10222 (cpio_mod_CFLAGS): Likewise.
10223 (cpio_mod_LDFLAGS): Likewise.
10225 * fs/cpio.c: New file.
10227 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
10229 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10231 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10233 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10235 2007-12-25 Robert Millan <rmh@aybabtu.com>
10237 * include/grub/term.h (struct grub_term): Add `getcolor' function.
10238 (grub_getcolor): New function.
10240 * kern/term.c (grub_getcolor): New function.
10241 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
10242 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
10243 (print_entry): Set normal and highlight colors to
10244 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
10245 respectively, before printing and restore them to old
10247 (grub_menu_init_page): Likewise. Fill an additional colored space
10248 that would otherwise be left blank.
10250 * term/efi/console.c (grub_console_getcolor): New function.
10251 (struct grub_console_term.getcolor): New variable.
10252 * term/i386/pc/console.c (grub_console_getcolor): New function.
10253 (struct grub_console_term.getcolor): New variable.
10254 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
10255 (struct grub_console_term.getcolor): New variable.
10257 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
10258 (struct grub_console_term.setcolor): Remove variable.
10259 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
10260 (struct grub_console_term.setcolor): Remove variable.
10261 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
10262 (struct grub_console_term.setcolor): Remove variable.
10263 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
10264 (struct grub_console_term.setcolor): Remove variable.
10266 2007-12-25 Robert Millan <rmh@aybabtu.com>
10268 * configure.ac: Search for possible unifont.hex locations, and
10269 define UNIFONT_HEX if found.
10271 * Makefile.in (UNIFONT_HEX): Define variable.
10272 (DATA): Rename to ...
10273 (PKGLIB): ... this. Update all users.
10274 (PKGDATA): New variable.
10275 (pkgdata_IMAGES): Rename to ...
10276 (pkglib_IMAGES): ... this. Update all users.
10277 (pkgdata_MODULES): Rename to ...
10278 (pkglib_MODULES): ... this. Update all users.
10279 (pkgdata_PROGRAMS): Rename to ...
10280 (pkglib_PROGRAMS): ... this. Update all users.
10281 (pkgdata_DATA): Rename to ...
10282 (pkglib_DATA): ... this. Update all users.
10283 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
10284 (unicode.pff, ascii.pff): New rules.
10285 (all-local): Add `$(PKGDATA)' dependency.
10286 (install-local): Process `$(PKGDATA)'.
10288 * util/update-grub_lib.in (font_path): Search for *.pff files in
10289 a few more locations, including `${pkgdata}'.
10291 2007-12-23 Robert Millan <rmh@aybabtu.com>
10293 Patch from Bean <bean123ch@gmail.com>:
10294 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
10297 2007-12-21 Bean <bean123ch@gmail.com>
10299 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
10300 (ntfscomp_mod_SOURCES): New variable.
10301 (ntfscomp_mod_CFLAGS): Likewise.
10302 (ntfscomp_mod_LDFLAGS): Likewise.
10304 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
10305 (grub_probe_SOURCES): Likewise.
10306 (grub_emu_SOURCES): Likewise.
10308 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
10309 (grub_emu_SOURCES): Likewise.
10311 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
10312 (grub_emu_SOURCES): Likewise.
10314 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
10315 (grub_emu_SOURCES): Likewise.
10317 * fs/ntfs.c (grub_ntfscomp_func): New variable.
10318 (read_run_list): Renamed to grub_ntfs_read_run_list.
10319 (decomp_nextvcn): Moved to ntfscomp.c.
10320 (decomp_getch): Likewise.
10321 (decomp_get16): Likewise.
10322 (decomp_block): Likewise.
10323 (read_block): Likewise.
10324 (read_data): Partially moved to ntfscomp.c.
10325 (fixup): Change unsigned to grub_uint16_t.
10326 (read_mft): Change unsigned long to grub_uint32_t.
10327 (read_attr): Likewise.
10328 (read_data): Likewise.
10329 (read_run_data): Likewise.
10330 (read_run_list): Likewise.
10331 (read_mft): Likewise.
10333 * fs/ntfscomp.c: New file.
10335 * include/grub/ntfs.h: New file.
10337 2007-12-16 Robert Millan <rmh@aybabtu.com>
10339 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
10340 IDE disk check, since Linux is known to support 20 IDE disks.
10341 Reported by Colin Watson.
10343 2007-12-15 Bean <bean123ch@gmail.com>
10345 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
10346 (lnxboot_img_SOURCES): New variable.
10347 (lnxboot_img_ASFLAGS): Likewise.
10348 (lnxboot_img_LDFLAGS): Likewise.
10350 * boot/i386/pc/lnxboot.S: New file.
10352 2007-11-24 Pavel Roskin <proski@gnu.org>
10354 * configure.ac: Test if '--build-id=none' is supported by the
10355 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
10356 objcopy to generate incorrect binary files (binutils
10357 2.17.50.0.18-1 as shipped by Fedora 8).
10358 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
10359 linking, so that build ID doesn't break the test.
10361 2007-11-24 Pavel Roskin <proski@gnu.org>
10363 * include/grub/i386/time.h: use "void" in the argument list
10364 of grub_cpu_idle().
10365 * include/grub/powerpc/time.h: Likewise.
10366 * include/grub/sparc64/time.h: Likewise.
10368 2007-11-18 Christian Franke <franke@computer.org>
10370 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
10371 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
10372 This fixes the problem that function keys did not work in grub-emu.
10374 2007-11-18 Christian Franke <franke@computer.org>
10376 * disk/host.c (grub_host_open): Remove attribute unused from
10377 name parameter. Add check for "host". This fixes the problem
10378 that grub-emu does not find partitions.
10380 2007-11-18 Christian Franke <franke@computer.org>
10382 * util/hostfs.c (is_dir): New function.
10383 (grub_hostfs_dir): Handle missing dirent.d_type case.
10384 (grub_hostfs_read): Add missing fseek().
10385 (grub_hostfs_label): Clear label pointer. This fixes a crash
10386 of grub-emu on "ls (host)".
10388 2007-11-18 Christian Franke <franke@computer.org>
10390 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
10391 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
10392 to 64 bit boundary by default.
10394 2007-11-18 Bean <bean123ch@gmail.com>
10396 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
10397 (hexdump_mod_SOURCES): New variable.
10398 (hexdump_mod_CFLAGS): Likewise.
10399 (hexdump_mod_LDFLAGS): Likewise.
10401 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
10403 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
10405 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
10407 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
10409 * include/grub/hexdump.h: New file.
10411 * commands/hexdump.c: New file.
10413 2007-11-10 Robert Millan <rmh@aybabtu.com>
10415 * commands/i386/pc/play.c (beep_off): Switch order of arguments
10416 in grub_outb() calls.
10417 (beep_on): Likewise.
10419 2007-11-10 Christian Franke <franke@computer.org>
10421 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
10422 (grub_menu_run): Likewise.
10424 2007-11-10 Robert Millan <rmh@aybabtu.com>
10426 * include/grub/i386/efi/machine.h: New file.
10427 * include/grub/i386/linuxbios/machine.h: Likewise.
10428 * include/grub/i386/pc/machine.h: Likewise.
10429 * include/grub/powerpc/ieee1275/machine.h: Likewise.
10430 * include/grub/sparc64/ieee1275/machine.h: Likewise.
10432 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
10433 (serial_hw_io_addr): New variable.
10434 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
10435 instead of `(unsigned short *) 0x400'.
10437 2007-11-10 Bean <bean123ch@gmail.com>
10439 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
10441 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
10443 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
10444 (vga_mod_SOURCES): Added.
10445 (vga_mod_CFLAGS): Likewise.
10446 (vga_mod_LDFLAGS): Likewise.
10448 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
10450 (set_map_mask): Likewise.
10451 (set_read_map): Likewise.
10452 (set_read_address): Likewise.
10453 (vga_font): Removed variable.
10454 (get_vga_glyph): Removed function.
10455 (invalidate_char): Likewise.
10456 (write_char): Changed to use grub_font_get_glyph() for font
10458 (grub_vga_putchar): Likewise.
10459 (grub_vga_getcharwidth): Likewise.
10461 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
10463 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
10465 (pxeboot_img_LDFLAGS): Likewise.
10466 (diskboot_img_LDFLAGS): Likewise.
10467 (kernel_img_LDFLAGS): Likewise.
10469 2007-11-06 Robert Millan <rmh@aybabtu.com>
10471 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
10472 in grub_outb() calls.
10473 (serial_hw_init): Likewise.
10475 2007-11-05 Robert Millan <rmh@aybabtu.com>
10477 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
10478 spaces. Skip non-regular files.
10480 2007-11-05 Robert Millan <rmh@aybabtu.com>
10482 * kern/disk.c (grub_disk_firmware_fini)
10483 (grub_disk_firmware_is_tainted): New variables.
10485 * include/grub/disk.h (grub_disk_firmware_fini)
10486 (grub_disk_firmware_is_tainted): Likewise.
10488 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
10489 (grub_disk_biosdisk_fini): ... to here.
10490 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
10491 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
10492 is set. Register grub_disk_biosdisk_fini() in
10493 `grub_disk_firmware_fini'.
10495 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
10496 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
10497 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
10498 to finish existing firmware disk interface.
10500 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
10501 (ata_mod_SOURCES): New variable.
10502 (ata_mod_CFLAGS): Likewise.
10503 (ata_mod_LDFLAGS): Likewise.
10505 2007-11-05 Robert Millan <rmh@aybabtu.com>
10507 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
10508 (grub_ata_wait): Reimplement using grub_millisleep().
10510 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
10511 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
10513 2007-11-03 Marco Gerards <marco@gnu.org>
10515 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
10516 (CRTC_ADDR_PORT): New macro.
10517 (CRTC_DATA_PORT): Likewise.
10518 (CRTC_CURSOR): Likewise.
10519 (CRTC_CURSOR_ADDR_HIGH): Likewise.
10520 (CRTC_CURSOR_ADDR_LOW): Likewise.
10521 (update_cursor): New function.
10522 (grub_console_real_putchar): Call `update_cursor'.
10523 (grub_console_gotoxy): Likewise.
10524 (grub_console_cls): Set the default color when clearing the
10526 (grub_console_setcursor): Implemented.
10528 2007-11-03 Marco Gerards <marco@gnu.org>
10530 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
10532 (grub_ata_pio_write): Likewise.
10534 (grub_atapi_identify): Wait after issuing an ATA command.
10535 (grub_atapi_packet): Likewise.
10536 (grub_ata_identify): Likewise.
10537 (grub_ata_readwrite): Likewise.
10539 2007-11-03 Marco Gerards <marco@gnu.org>
10541 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
10542 (grub_ata_pio_write): Likewise.
10543 (grub_ata_readwrite): Use `grub_error', instead of
10544 returning `grub_errno'.
10546 2007-11-03 Marco Gerards <marco@gnu.org>
10548 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
10549 grub_ata_pio_write once for every single sector, instead of for
10552 2007-10-31 Robert Millan <rmh@aybabtu.com>
10554 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
10556 * conf/i386-linuxbios.rmk: New file.
10558 * kern/i386/pc/hardware.c: Likewise.
10559 * term/i386/pc/at_keyboard.c: Likewise.
10560 * term/i386/pc/vga_text.c: Likewise.
10562 * include/grub/i386/linuxbios/boot.h: Likewise.
10563 * include/grub/i386/linuxbios/console.h: Likewise.
10564 * include/grub/i386/linuxbios/init.h: Likewise.
10565 * include/grub/i386/linuxbios/kernel.h: Likewise.
10566 * include/grub/i386/linuxbios/loader.h: Likewise.
10567 * include/grub/i386/linuxbios/memory.h: Likewise.
10568 * include/grub/i386/linuxbios/serial.h: Likewise.
10569 * include/grub/i386/linuxbios/time.h: Likewise.
10571 * kern/i386/linuxbios/init.c: Likewise.
10572 * kern/i386/linuxbios/startup.S: Likewise.
10573 * kern/i386/linuxbios/table.c: Likewise.
10575 2007-10-31 Marco Gerards <marco@gnu.org>
10577 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
10578 (ata_mod_SOURCES): New variable.
10579 (ata_mod_CFLAGS): Likewise.
10580 (ata_mod_LDFLAGS): Likewise.
10582 * disk/ata.c: New file.
10584 * include/grub/disk.h (grub_disk_dev_id): Add
10585 `GRUB_DISK_DEV_ATA_ID'.
10587 2007-10-31 Robert Millan <rmh@aybabtu.com>
10589 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
10590 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
10592 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
10593 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
10595 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
10598 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
10600 2007-10-27 Robert Millan <rmh@aybabtu.com>
10602 * include/grub/types.h (ULONG_MAX): Define macro.
10604 2007-10-22 Robert Millan <rmh@aybabtu.com>
10606 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
10608 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
10610 2007-10-22 Robert Millan <rmh@aybabtu.com>
10612 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
10613 (pkgdata_MODULES): Add `biosdisk.mod'.
10614 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
10617 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
10618 (grub_biosdisk_init): Replace with ...
10619 (GRUB_MOD_INIT(biosdisk)): ... this.
10620 (grub_biosdisk_fini): Replace with ...
10621 (GRUB_MOD_FINI(biosdisk)): ... this.
10623 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
10624 (grub_machine_init): Remove call to grub_biosdisk_init().
10625 (grub_machine_fini): Remove call to grub_machine_fini().
10627 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
10629 2007-10-22 Robert Millan <rmh@aybabtu.com>
10631 * include/grub/time.h: New file.
10632 * include/grub/i386/time.h: Likewise.
10633 * include/grub/powerpc/time.h: Likewise.
10634 * include/grub/sparc64/time.h: Likewise.
10636 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
10638 (KERNEL_MACHINE_TIME_HEADER): ... this.
10639 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
10641 (KERNEL_MACHINE_TIME_HEADER): ... this.
10642 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
10644 (KERNEL_MACHINE_TIME_HEADER): ... this.
10646 * kern/i386/efi/init.c: Include `<grub/time.h>'.
10647 (grub_millisleep): New function.
10648 * kern/i386/pc/init.c: Include `<grub/time.h>'.
10649 (grub_millisleep): New function.
10650 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
10651 Remove `grub/machine/time.h' include.
10652 (grub_millisleep): New function.
10653 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
10654 Remove `grub/machine/time.h' include.
10655 (grub_millisleep): New function.
10657 * include/grub/misc.h (grub_div_roundup): New function.
10659 * kern/misc.c: Include `<grub/time.h>'.
10660 (grub_millisleep_generic): New function.
10662 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
10664 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
10666 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
10667 `machine/time.h'. Add `time.h'.
10668 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
10670 2007-10-21 Robert Millan <rmh@aybabtu.com>
10672 * include/grub/misc.h (grub_max): New function.
10674 2007-10-21 Robert Millan <rmh@aybabtu.com>
10676 * util/misc.c (grub_util_info): Call fflush() before returning.
10678 2007-10-20 Robert Millan <rmh@aybabtu.com>
10680 * genmk.rb (Image): Copy `extra_flags' from here ...
10681 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
10683 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
10684 to `argc' and `args' arguments.
10686 2007-10-17 Robert Millan <rmh@aybabtu.com>
10688 * kern/i386/loader.S: New file.
10690 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
10691 * kern/i386/loader.S (grub_linux_prot_size)... to here.
10692 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
10693 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
10694 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
10695 * kern/i386/loader.S (grub_linux_real_addr)... to here.
10696 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
10697 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
10698 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
10699 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
10700 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
10701 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
10702 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
10703 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
10705 * kern/i386/realmode.S: New file.
10707 * kern/i386/pc/startup.S (protstack): Moved from here ...
10708 * kern/i386/realmode.S (protstack)... to here.
10709 * kern/i386/pc/startup.S (gdt): Moved from here ...
10710 * kern/i386/realmode.S (gdt)... to here.
10711 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
10712 * kern/i386/realmode.S (prot_to_real)... to here.
10714 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
10715 `kern/i386/realmode.S'.
10717 2007-10-17 Robert Millan <rmh@aybabtu.com>
10719 * include/grub/i386/loader.h: New file.
10721 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
10722 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
10723 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
10724 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
10725 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
10726 * include/grub/i386/loader.h (grub_linux_prot_size)
10727 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
10728 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
10729 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
10730 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
10732 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
10734 2007-10-15 Robert Millan <rmh@aybabtu.com>
10736 * normal/misc.c (grub_normal_print_device_info): Do not probe for
10737 filesystem when dev->disk is unset.
10738 Do probe for filesystem even when dev->disk->has_partitions is set.
10739 In case a filesystem is found, always report it.
10740 In case it isn't, if dev->disk->has_partitions is set, report that
10741 a partition table was found instead of reporting that no filesystem
10742 could be identified.
10744 2007-10-12 Robert Millan <rmh@aybabtu.com>
10746 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
10747 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
10749 * include/grub/types.h (grub_host_to_target16): New macro.
10750 (grub_host_to_target32): Likewise.
10751 (grub_host_to_target64): Likewise.
10752 (grub_target_to_host16): Likewise.
10753 (grub_target_to_host32): Likewise.
10754 (grub_target_to_host64): Likewise.
10756 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
10757 Renamed from to ...
10758 (GRUB_MOD_ALIGN): ...this. Update all users.
10760 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
10761 grub_host_to_target32.
10762 Replace grub_be_to_cpu32 with grub_target_to_host32.
10763 (load_modules): Likewise.
10764 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
10765 Replace grub_be_to_cpu32 with grub_target_to_host32.
10766 Replace grub_cpu_to_be16 with grub_host_to_target16.
10767 Replace grub_cpu_to_be32 grub_host_to_target32.
10769 2007-10-12 Robert Millan <rmh@aybabtu.com>
10771 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
10772 * util/elf/grub-mkimage.c: ... here.
10774 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
10775 `util/powerpc/ieee1275/grub-mkimage.c'.
10777 2007-10-07 Robert Millan <rmh@aybabtu.com>
10779 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
10780 and make it easier to figure out.
10781 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
10782 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
10783 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
10784 leave us with less than HEAP_MIN_SIZE total heap.
10785 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
10787 2007-10-03 Robert Millan <rmh@aybabtu.com>
10789 * include/grub/i386/io.h: New file.
10790 * commands/i386/pc/play.c (inb): Removed.
10792 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
10794 * term/i386/pc/serial.c (inb): Removed.
10796 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
10798 * term/i386/pc/vga.c (inb): Removed.
10800 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
10803 2007-10-02 Robert Millan <rmh@aybabtu.com>
10805 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
10806 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10807 Reported by Marcin Kurek.
10809 2007-09-07 Robert Millan <rmh@aybabtu.com>
10811 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
10812 SmartFirmware version updates (as released by Sven Luther), and avoid
10813 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
10814 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
10817 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
10819 From Hitoshi Ozeki:
10820 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
10821 when merging two regions.
10823 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
10825 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
10826 * normal/completion.c (grub_normal_do_completion): Likewise.
10827 Reported by Hitoshi Ozeki.
10829 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
10831 Do not use devices at boot in chainloading.
10833 * loader/i386/pc/chainloader.c (boot_drive): New variable.
10834 (boot_part_addr): Likewise.
10835 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
10836 with BOOT_DRIVE and BOOT_PART_ADDR.
10837 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
10838 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
10840 2007-08-29 Robert Millan <rmh@aybabtu.com>
10842 Patch from Simon Peter <dn.tlp@gmx.net>:
10843 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
10844 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
10845 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
10846 util/i386/pc/grub-setup.c_DEPENDENCIES.
10847 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
10848 util/grub-probe.c_DEPENDENCIES.
10849 * conf/powerpc-ieee1275.rmk: Likewise.
10851 2007-08-28 Robert Millan <rmh@aybabtu.com>
10853 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
10854 to tell grub-mkdevicemap how to name devices.
10855 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
10858 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
10859 util/i386/get_disk_name.c.
10860 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
10861 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
10862 util/ieee1275/get_disk_name.c.
10864 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
10866 * DISTLIST: Add util/i386/get_disk_name.c and
10867 util/ieee1275/get_disk_name.c.
10869 * util/grub-mkdevicemap.c: Replace device naming logic with
10870 grub_util_get_disk_name() calls.
10872 2007-08-20 Robert Millan <rmh@aybabtu.com>
10874 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
10875 (so that it works for both plural and singular quantities).
10877 2007-08-05 Robert Millan <rmh@aybabtu.com>
10879 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
10880 so that [xz] isn't taken into account when determining order.
10882 2007-08-02 Marco Gerards <marco@gnu.org>
10884 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
10885 `include/multiboot2.h', `include/grub/elfload.h',
10886 `include/multiboot.h', `include/grub/multiboot.h',
10887 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
10888 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
10889 `kern/elf.c', `loader/multiboot_loader.c',
10890 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
10891 `loader/i386/pc/multiboot2.c',
10892 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
10893 `util/i386/pc/grub-mkrescue.in'. Remove
10894 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
10895 `include/grub/i386/pc/util/biosdisk.h' and
10896 `include/grub/powerpc/ieee1275/multiboot.h'.
10898 2007-08-02 Bean <bean123ch@gmail.com>
10900 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
10901 (ntfs_mod_SOURCES): New variable.
10902 (ntfs_mod_CFLAGS): Likewise.
10903 (ntfs_mod_LDFLAGS): Likewise.
10905 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
10906 (grub_probe_SOURCES): Likewise.
10907 (grub_emu_SOURCES): Likewise.
10909 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
10910 (grub_emu_SOURCES): Likewise.
10912 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
10913 (grub_emu_SOURCES): Likewise.
10915 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
10917 * fs/ntfs.c: New file.
10919 2007-08-02 Bean <bean123ch@gmail.com>
10921 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
10923 * file.h (grub_file): Likewise.
10925 * fshelp.h (grub_fshelp_read_file): Likewise.
10927 * util/i386/pc/grub-setup.c (setup): Likewise.
10928 (save_first_sector): Likewise.
10929 (save_blocklists): Likewise.
10931 * fs/affs.c (grub_affs_read_file): Likewise.
10933 * fs/ext2.c (grub_ext2_read_file): Likewise.
10935 * fs/fat.c (grub_fat_read_data): Likewise.
10937 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
10939 * fs/hfs.c (grub_hfs_read_file): Likewise.
10941 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
10943 * fs/jfs.c (grub_jfs_read_file): Likewise.
10945 * fs/minix.c (grub_minix_read_file): Likewise.
10947 * fs/sfs.c (grub_sfs_read_file): Likewise.
10949 * fs/ufs.c (grub_ufs_read_file): Likewise.
10951 * fs/xfs.c (grub_xfs_read_file): Likewise.
10953 * command/blocklist.c (read_blocklist): Likewise.
10954 (print_blocklist): Likewise.
10956 2007-08-02 Marco Gerards <marco@gnu.org>
10958 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
10961 * disk/host.c: New file.
10963 * util/hostfs.c: Likewise.
10965 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
10966 return `GRUB_ERR_BAD_FS'.
10967 * fs/sfs.c (grub_sfs_mount): Likewise.
10968 * fs/xfs.c (grub_xfs_mount): Likewise.
10970 * include/grub/disk.h (enum grub_disk_dev_id): Add
10971 `GRUB_DISK_DEVICE_HOST_ID'.
10973 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
10975 2007-07-24 Jerone Young <jerone@gmail.com>
10977 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
10978 modules for compilation.
10979 * conf/powerpc-ieee1275.rmk: Likewise.
10981 * include/multiboot.h: Move multiboot definitions to one file. Rename
10982 many definitions to not get grub specific.
10983 * include/multiboot2.h: Create header with multiboot 2 definitions.
10984 * include/grub/multiboot.h: Header for grub specific function
10985 prototypes and definitions.
10986 * include/grub/multiboot2.h: Likewise.
10987 * include/grub/multiboot_loader.h: Likewise.
10988 * include/grub/i386/pc/multiboot.h: Removed.
10989 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
10991 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
10992 and 2 to allow for one multiboot and module commands.
10993 * loader/multiboot2.c: Add multiboot2 functionality.
10994 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
10995 and definition names.
10996 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
10998 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
10999 ieee1275 specific multiboot2 code.
11001 * kern/i386/pc/startup.S: Change headers and definition names for
11002 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
11004 2007-07-22 Robert Millan <rmh@aybabtu.com>
11006 * geninitheader.sh: Process file specified in first parameter rather
11007 than hardcoding grub_modules_init.lst.
11008 * geninit.sh: Likewise. Also, construct header name dynamically rather
11009 than hardcoding grub_modules_init.h.
11011 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
11012 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
11013 grub_probe_init.[ch] and grub_setup_init.[ch].
11015 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
11016 grub_modules_init.h with grub_emu_init.h.
11017 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
11018 grub_probe_init.[ch] files.
11019 * conf/i386-efi.rmk: Likewise.
11020 * conf/i386-pc.rmk: Likewise.
11021 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
11022 grub_setup_init.[ch] files.
11024 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
11025 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
11026 to initialize modules rather than a list of hardcoded functions.
11027 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
11028 grub_init_all() to initialize modules rather than a list of hardcoded
11031 2007-07-22 Robert Millan <rmh@aybabtu.com>
11033 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
11034 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
11036 2007-07-22 Robert Millan <rmh@aybabtu.com>
11038 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
11039 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
11040 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
11041 flag when running on SmartFirmware.
11042 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
11043 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
11046 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11047 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
11048 rather than decreasing it.
11050 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
11051 there's not enough space to do it, fail in the same way as when it
11052 can't be done because there are no partitions.
11054 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
11055 when nvsetenv failed.
11057 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
11059 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
11060 because this rule is automatically generated.
11061 (grub-mkrescue): Removed for the same reason as above.
11063 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
11065 Migrate to GNU General Public License Version 3.
11067 * COPYING: Replaced with the plain text version of GPLv3.
11069 * config.guess: Updated from gnulib.
11070 * config.sub: Likewise.
11072 * geninit.sh: Output a GPLv3 copyright notice.
11073 * geninitheader.sh: Likewise.
11074 * genmodsrc.sh: Likewise.
11075 * gensymlist.sh.in: Likewise.
11077 * boot/i386/pc/boot.S: Upgraded to GPLv3.
11078 * boot/i386/pc/diskboot.S: Likewise.
11079 * boot/i386/pc/pxeboot.S: Likewise.
11080 * commands/blocklist.c: Likewise.
11081 * commands/boot.c: Likewise.
11082 * commands/cat.c: Likewise.
11083 * commands/cmp.c: Likewise.
11084 * commands/configfile.c: Likewise.
11085 * commands/echo.c: Likewise.
11086 * commands/help.c: Likewise.
11087 * commands/ls.c: Likewise.
11088 * commands/search.c: Likewise.
11089 * commands/terminal.c: Likewise.
11090 * commands/test.c: Likewise.
11091 * commands/videotest.c: Likewise.
11092 * commands/i386/cpuid.c: Likewise.
11093 * commands/i386/pc/halt.c: Likewise.
11094 * commands/i386/pc/play.c: Likewise.
11095 * commands/i386/pc/reboot.c: Likewise.
11096 * commands/i386/pc/vbeinfo.c: Likewise.
11097 * commands/i386/pc/vbetest.c: Likewise.
11098 * commands/ieee1275/halt.c: Likewise.
11099 * commands/ieee1275/reboot.c: Likewise.
11100 * commands/ieee1275/suspend.c: Likewise.
11101 * disk/loopback.c: Likewise.
11102 * disk/lvm.c: Likewise.
11103 * disk/raid.c: Likewise.
11104 * disk/efi/efidisk.c: Likewise.
11105 * disk/i386/pc/biosdisk.c: Likewise.
11106 * disk/ieee1275/ofdisk.c: Likewise.
11107 * font/manager.c: Likewise.
11108 * fs/affs.c: Likewise.
11109 * fs/ext2.c: Likewise.
11110 * fs/fat.c: Likewise.
11111 * fs/fshelp.c: Likewise.
11112 * fs/hfs.c: Likewise.
11113 * fs/hfsplus.c: Likewise.
11114 * fs/iso9660.c: Likewise.
11115 * fs/jfs.c: Likewise.
11116 * fs/minix.c: Likewise.
11117 * fs/sfs.c: Likewise.
11118 * fs/ufs.c: Likewise.
11119 * fs/xfs.c: Likewise.
11120 * hello/hello.c: Likewise.
11121 * include/grub/acorn_filecore.h: Likewise.
11122 * include/grub/arg.h: Likewise.
11123 * include/grub/bitmap.h: Likewise.
11124 * include/grub/boot.h: Likewise.
11125 * include/grub/cache.h: Likewise.
11126 * include/grub/device.h: Likewise.
11127 * include/grub/disk.h: Likewise.
11128 * include/grub/dl.h: Likewise.
11129 * include/grub/elfload.h: Likewise.
11130 * include/grub/env.h: Likewise.
11131 * include/grub/err.h: Likewise.
11132 * include/grub/file.h: Likewise.
11133 * include/grub/font.h: Likewise.
11134 * include/grub/fs.h: Likewise.
11135 * include/grub/fshelp.h: Likewise.
11136 * include/grub/gzio.h: Likewise.
11137 * include/grub/hfs.h: Likewise.
11138 * include/grub/kernel.h: Likewise.
11139 * include/grub/loader.h: Likewise.
11140 * include/grub/lvm.h: Likewise.
11141 * include/grub/misc.h: Likewise.
11142 * include/grub/mm.h: Likewise.
11143 * include/grub/net.h: Likewise.
11144 * include/grub/normal.h: Likewise.
11145 * include/grub/parser.h: Likewise.
11146 * include/grub/partition.h: Likewise.
11147 * include/grub/pc_partition.h: Likewise.
11148 * include/grub/raid.h: Likewise.
11149 * include/grub/rescue.h: Likewise.
11150 * include/grub/script.h: Likewise.
11151 * include/grub/setjmp.h: Likewise.
11152 * include/grub/symbol.h: Likewise.
11153 * include/grub/term.h: Likewise.
11154 * include/grub/terminfo.h: Likewise.
11155 * include/grub/tparm.h: Likewise.
11156 * include/grub/types.h: Likewise.
11157 * include/grub/video.h: Likewise.
11158 * include/grub/efi/api.h: Likewise.
11159 * include/grub/efi/chainloader.h: Likewise.
11160 * include/grub/efi/console.h: Likewise.
11161 * include/grub/efi/console_control.h: Likewise.
11162 * include/grub/efi/disk.h: Likewise.
11163 * include/grub/efi/efi.h: Likewise.
11164 * include/grub/efi/pe32.h: Likewise.
11165 * include/grub/efi/time.h: Likewise.
11166 * include/grub/i386/linux.h: Likewise.
11167 * include/grub/i386/setjmp.h: Likewise.
11168 * include/grub/i386/types.h: Likewise.
11169 * include/grub/i386/efi/kernel.h: Likewise.
11170 * include/grub/i386/efi/loader.h: Likewise.
11171 * include/grub/i386/efi/time.h: Likewise.
11172 * include/grub/i386/pc/biosdisk.h: Likewise.
11173 * include/grub/i386/pc/boot.h: Likewise.
11174 * include/grub/i386/pc/chainloader.h: Likewise.
11175 * include/grub/i386/pc/console.h: Likewise.
11176 * include/grub/i386/pc/init.h: Likewise.
11177 * include/grub/i386/pc/kernel.h: Likewise.
11178 * include/grub/i386/pc/loader.h: Likewise.
11179 * include/grub/i386/pc/memory.h: Likewise.
11180 * include/grub/i386/pc/multiboot.h: Likewise.
11181 * include/grub/i386/pc/serial.h: Likewise.
11182 * include/grub/i386/pc/time.h: Likewise.
11183 * include/grub/i386/pc/vbe.h: Likewise.
11184 * include/grub/i386/pc/vbeblit.h: Likewise.
11185 * include/grub/i386/pc/vbefill.h: Likewise.
11186 * include/grub/i386/pc/vbeutil.h: Likewise.
11187 * include/grub/i386/pc/vga.h: Likewise.
11188 * include/grub/ieee1275/ieee1275.h: Likewise.
11189 * include/grub/ieee1275/ofdisk.h: Likewise.
11190 * include/grub/powerpc/libgcc.h: Likewise.
11191 * include/grub/powerpc/setjmp.h: Likewise.
11192 * include/grub/powerpc/types.h: Likewise.
11193 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
11194 * include/grub/powerpc/ieee1275/console.h: Likewise.
11195 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
11196 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
11197 * include/grub/powerpc/ieee1275/loader.h: Likewise.
11198 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
11199 * include/grub/powerpc/ieee1275/time.h: Likewise.
11200 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
11201 * include/grub/sparc64/libgcc.h: Likewise.
11202 * include/grub/sparc64/setjmp.h: Likewise.
11203 * include/grub/sparc64/types.h: Likewise.
11204 * include/grub/sparc64/ieee1275/console.h: Likewise.
11205 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
11206 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
11207 * include/grub/sparc64/ieee1275/time.h: Likewise.
11208 * include/grub/util/biosdisk.h: Likewise.
11209 * include/grub/util/getroot.h: Likewise.
11210 * include/grub/util/lvm.h: Likewise.
11211 * include/grub/util/misc.h: Likewise.
11212 * include/grub/util/raid.h: Likewise.
11213 * include/grub/util/resolve.h: Likewise.
11214 * io/gzio.c: Likewise.
11215 * kern/device.c: Likewise.
11216 * kern/disk.c: Likewise.
11217 * kern/dl.c: Likewise.
11218 * kern/elf.c: Likewise.
11219 * kern/env.c: Likewise.
11220 * kern/err.c: Likewise.
11221 * kern/file.c: Likewise.
11222 * kern/fs.c: Likewise.
11223 * kern/loader.c: Likewise.
11224 * kern/main.c: Likewise.
11225 * kern/misc.c: Likewise.
11226 * kern/mm.c: Likewise.
11227 * kern/parser.c: Likewise.
11228 * kern/partition.c: Likewise.
11229 * kern/rescue.c: Likewise.
11230 * kern/term.c: Likewise.
11231 * kern/efi/efi.c: Likewise.
11232 * kern/efi/init.c: Likewise.
11233 * kern/efi/mm.c: Likewise.
11234 * kern/i386/dl.c: Likewise.
11235 * kern/i386/efi/init.c: Likewise.
11236 * kern/i386/efi/startup.S: Likewise.
11237 * kern/i386/pc/init.c: Likewise.
11238 * kern/i386/pc/lzo1x.S: Likewise.
11239 * kern/i386/pc/startup.S: Likewise.
11240 * kern/ieee1275/ieee1275.c: Likewise.
11241 * kern/powerpc/cache.S: Likewise.
11242 * kern/powerpc/dl.c: Likewise.
11243 * kern/powerpc/ieee1275/cmain.c: Likewise.
11244 * kern/powerpc/ieee1275/crt0.S: Likewise.
11245 * kern/powerpc/ieee1275/init.c: Likewise.
11246 * kern/powerpc/ieee1275/openfw.c: Likewise.
11247 * kern/sparc64/cache.S: Likewise.
11248 * kern/sparc64/dl.c: Likewise.
11249 * kern/sparc64/ieee1275/init.c: Likewise.
11250 * kern/sparc64/ieee1275/openfw.c: Likewise.
11251 * loader/efi/chainloader.c: Likewise.
11252 * loader/efi/chainloader_normal.c: Likewise.
11253 * loader/i386/efi/linux.c: Likewise.
11254 * loader/i386/efi/linux_normal.c: Likewise.
11255 * loader/i386/pc/chainloader.c: Likewise.
11256 * loader/i386/pc/chainloader_normal.c: Likewise.
11257 * loader/i386/pc/linux.c: Likewise.
11258 * loader/i386/pc/linux_normal.c: Likewise.
11259 * loader/i386/pc/multiboot.c: Likewise.
11260 * loader/i386/pc/multiboot_normal.c: Likewise.
11261 * loader/powerpc/ieee1275/linux.c: Likewise.
11262 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
11263 * normal/arg.c: Likewise.
11264 * normal/cmdline.c: Likewise.
11265 * normal/command.c: Likewise.
11266 * normal/completion.c: Likewise.
11267 * normal/execute.c: Likewise.
11268 * normal/function.c: Likewise.
11269 * normal/lexer.c: Likewise.
11270 * normal/main.c: Likewise.
11271 * normal/menu.c: Likewise.
11272 * normal/menu_entry.c: Likewise.
11273 * normal/misc.c: Likewise.
11274 * normal/parser.y: Likewise.
11275 * normal/script.c: Likewise.
11276 * normal/i386/setjmp.S: Likewise.
11277 * normal/powerpc/setjmp.S: Likewise.
11278 * normal/sparc64/setjmp.S: Likewise.
11279 * partmap/acorn.c: Likewise.
11280 * partmap/amiga.c: Likewise.
11281 * partmap/apple.c: Likewise.
11282 * partmap/gpt.c: Likewise.
11283 * partmap/pc.c: Likewise.
11284 * partmap/sun.c: Likewise.
11285 * term/gfxterm.c: Likewise.
11286 * term/terminfo.c: Likewise.
11287 * term/efi/console.c: Likewise.
11288 * term/i386/pc/console.c: Likewise.
11289 * term/i386/pc/serial.c: Likewise.
11290 * term/i386/pc/vesafb.c: Likewise.
11291 * term/i386/pc/vga.c: Likewise.
11292 * term/ieee1275/ofconsole.c: Likewise.
11293 * util/biosdisk.c: Likewise.
11294 * util/console.c: Likewise.
11295 * util/genmoddep.c: Likewise.
11296 * util/getroot.c: Likewise.
11297 * util/grub-emu.c: Likewise.
11298 * util/grub-mkdevicemap.c: Likewise.
11299 * util/grub-probe.c: Likewise.
11300 * util/lvm.c: Likewise.
11301 * util/misc.c: Likewise.
11302 * util/raid.c: Likewise.
11303 * util/resolve.c: Likewise.
11304 * util/update-grub.in: Likewise.
11305 * util/update-grub_lib.in: Likewise.
11306 * util/grub.d/00_header.in: Likewise.
11307 * util/grub.d/10_hurd.in: Likewise.
11308 * util/grub.d/10_linux.in: Likewise.
11309 * util/i386/efi/grub-install.in: Likewise.
11310 * util/i386/efi/grub-mkimage.c: Likewise.
11311 * util/i386/pc/grub-install.in: Likewise.
11312 * util/i386/pc/grub-mkimage.c: Likewise.
11313 * util/i386/pc/grub-mkrescue.in: Likewise.
11314 * util/i386/pc/grub-setup.c: Likewise.
11315 * util/i386/pc/misc.c: Likewise.
11316 * util/powerpc/ieee1275/grub-install.in: Likewise.
11317 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
11318 * util/powerpc/ieee1275/misc.c: Likewise.
11319 * video/bitmap.c: Likewise.
11320 * video/video.c: Likewise.
11321 * video/i386/pc/vbe.c: Likewise.
11322 * video/i386/pc/vbeblit.c: Likewise.
11323 * video/i386/pc/vbefill.c: Likewise.
11324 * video/i386/pc/vbeutil.c: Likewise.
11325 * video/readers/tga.c: Likewise.
11327 2007-07-02 Robert Millan <rmh@aybabtu.com>
11329 * conf/i386-efi.rmk: Replace obsolete reference to
11330 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
11331 with util/getroot.c.
11332 * conf/powerpc-ieee1275.rmk: Likewise.
11333 * conf/sparc64-ieee1275.rmk: Likewise.
11335 * util/grub-emu.c (main): Fix unchecked pointer handling.
11337 2007-07-02 Robert Millan <rmh@aybabtu.com>
11339 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
11340 invocation to fail, in order to support partition-less media.
11342 * util/i386/pc/grub-install.in: Likewise.
11344 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
11345 which fs or partmap modules are needed (akin to its sister scripts).
11347 Also use grub-probe to get rid of unportable /proc/mounts check.
11349 Print the same informational message that the other scripts do, before
11352 2007-06-23 Robert Millan <rmh@aybabtu.com>
11354 * util/update-grub_lib.in (font_path): New function. Determine whether
11355 a font file can be found and, if so, echo the GRUB path to it.
11357 * util/update-grub.in: Handle multiple terminals depending on user
11358 input, platform availability and font file presence. Propagate
11359 variables of our findings to /etc/grub.d/ children.
11361 * util/grub.d/00_header.in: Handle multiple terminals, based on
11362 environment setup by update-grub.
11364 2007-06-23 Robert Millan <rmh@aybabtu.com>
11366 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
11368 2007-06-21 Robert Millan <rmh@aybabtu.com>
11370 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
11371 indicate end of data section in kernel image.
11372 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
11373 GRUB_KERNEL_MACHINE_DATA_END.
11375 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
11377 * kern/i386/efi/startup.S: Likewise.
11379 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
11380 during image generation. Implement --prefix option to override this
11382 * util/i386/efi/grub-mkimage.c: Likewise.
11384 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
11385 code to make path relative to its root into a separate function.
11387 * util/i386/pc/grub-install.in: Use newly provided
11388 make_system_path_relative_to_its_root() to convert ${grubdir}, then
11389 pass the result to grub-install --prefix.
11391 2007-06-13 Robert Millan <rmh@aybabtu.com>
11393 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
11394 DEFAULT_DEVICE_MAP.
11395 * util/grub-emu.c: Use above definitions from misc.h instead of
11397 * util/grub-mkdevicemap.c: Likewise.
11398 * util/i386/pc/grub-setup.c: Likewise.
11399 * util/grub-probe.c: Likewise.
11400 (probe): Abort with grub_util_error() when either
11401 grub_guess_root_device or grub_util_get_grub_dev fails.
11403 2007-06-12 Robert Millan <rmh@aybabtu.com>
11405 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
11406 "pager" assignment.
11407 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
11409 * util/grub-probe.c (probe): Likewise for "drive_name".
11411 2007-06-11 Robert Millan <rmh@aybabtu.com>
11413 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
11414 not just the cdrom one.
11416 2007-06-11 Robert Millan <rmh@aybabtu.com>
11418 * util/i386/pc/grub-mkrescue.in: Add "set -e".
11419 Add --pkglibdir=DIR option to override pkglibdir.
11420 Mention --image-type=TYPE in help output.
11421 Fix --grub-mkimage (it was a no-op).
11422 Abort gracefully when no parameter is given.
11424 2007-06-11 Robert Millan <rmh@aybabtu.com>
11426 * util/i386/pc/grub-mkrescue.in: New file.
11427 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
11428 * Makefile.in: Handle bin_SCRIPTS.
11430 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
11432 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
11433 list of video modes.
11435 2007-06-06 Robert Millan <rmh@aybabtu.com>
11437 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
11438 file doesn't exist, or if it is in a filesystem grub can't read.
11440 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
11441 not abort if GRUB_DRIVE could not be defined. Rearrange generated
11442 header comment to fit in 80 columns when the variables are resolved.
11444 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
11445 could be identified by update-grub. Remove redundant check for
11446 unifont.pff existence (since convert_system_path_to_grub_path now
11449 2007-06-04 Robert Millan <rmh@aybabtu.com>
11451 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
11453 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
11455 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
11457 2007-06-04 Robert Millan <rmh@aybabtu.com>
11459 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
11461 * include/grub/partition.h: Declare grub_apple_partition_map_init and
11462 grub_apple_partition_map_fini.
11465 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
11466 to access >2 TiB disks).
11468 Print disk->total_sectors with %llu instead of %lu, since this
11469 variable is always 64-bit (prevents wrong disk size from being displayed
11470 on either >2 TiB disk or big-endian CPU).
11472 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
11473 into a generic case that supports all (sane) partition maps.
11475 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
11478 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
11479 and grub_apple_partition_map_fini() after that.
11481 2007-06-01 Robert Millan <rmh@aybabtu.com>
11483 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
11485 * util/grub.d/00_header.in: Only enable gfxterm when
11486 convert_system_path_to_grub_path() succeeds.
11488 2007-05-20 Robert Millan <rmh@aybabtu.com>
11490 * util/update-grub_lib.in: New file.
11491 * DISTLIST: Add update-grub_lib.in.
11492 * conf/common.rmk: Generate update-grub_lib and install it in
11494 * Makefile.in: Add install routine for $(lib_DATA).
11496 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
11497 function provided by update-grub_lib to support arbitrary paths of
11499 * util/update-grub.in: Use convert_system_path_to_grub_path() to
11500 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
11502 2007-05-19 Robert Millan <rmh@aybabtu.com>
11504 * commands/i386/cpuid.c: New module.
11505 * DISTLIST: Add it.
11506 * conf/i386-efi.rmk: Enable cpuid.mod.
11507 * conf/i386-pc.rmk: Likewise.
11509 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
11511 * kern/disk.c (grub_disk_read): Check return value of
11514 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
11516 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
11518 * disk/raid.c (grub_raid_open): Likewise.
11520 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
11522 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
11523 stack instead of on the heap.
11525 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
11526 before doing a read on it.
11528 * configure.ac: Only use -fno-stack-protector for the target
11531 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
11533 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
11534 __attribute_ ((unused)) to mode_type argument.
11536 * util/getroot.c (grub_guess_root_device): Fix #endif.
11538 * kern/misc.c (memcmp): Fix prototype.
11540 * include/grub/partition.h [GRUB_UTIL]
11541 (grub_gpt_partition_map_init): Add prototype.
11542 (grub_gpt_partition_map_fini): Likewise.
11544 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
11545 at the right place.
11547 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
11548 (grub_fat_read_data): Likewise.
11549 (grub_fat_find_dir): Likewise.
11551 * font/manager.c (find_glyph): Make table a const.
11552 (grub_font_get_glyph): Remove bitmap from if statement.
11554 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
11556 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
11557 code, first search for device in /dev/mapper, then in /dev.
11558 (grub_util_get_grub_dev): New function.
11559 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
11561 * util/grub-probe.c (probe): Remove check for RAID, call
11562 grub_util_get_grub_dev() instead of
11563 grub_util_biosdisk_get_grub_dev().
11564 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
11565 grub_util_biosdisk_get_grub_dev().
11566 * util/i386/pc/grub-setup.c (main): Likewise.
11568 2007-05-16 Robert Millan <rmh@aybabtu.com>
11570 * DISTLIST: Update for the latest changes.
11571 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
11572 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
11573 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
11574 grub/util/biosdisk.h.
11575 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
11576 grub/util/biosdisk.h.
11578 2007-05-16 Robert Millan <rmh@aybabtu.com>
11580 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
11582 2007-05-16 Robert Millan <rmh@aybabtu.com>
11584 * util/i386/efi/grub-install.in: New.
11585 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
11586 newly added grub-install.
11587 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
11589 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
11590 grub/util/biosdisk.h.
11591 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
11592 grub/util/biosdisk.h.
11594 2007-05-16 Robert Millan <rmh@aybabtu.com>
11596 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
11597 * include/grub/util/biosdisk.h: ... here.
11598 * util/i386/pc/biosdisk.c: Moved to ...
11599 * util/biosdisk.c: ... here.
11600 * util/i386/pc/getroot.c: Moved to ...
11601 * util/getroot.c: ... here.
11602 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
11603 * util/grub-mkdevicemap.c: ... here.
11604 * util/i386/pc/grub-probe.c: Moved to ...
11605 * util/grub-probe.c: ... here.
11607 2007-05-15 Robert Millan <rmh@aybabtu.com>
11609 * util/update-grub.in: Remove duplicated line in grub.cfg header
11612 2007-05-13 Robert Millan <rmh@aybabtu.com>
11614 * util/update-grub.in: Fix a few assumptions about the devices holding
11615 /, /boot and /boot/grub being the same.
11616 * util/grub.d/00_header.in: Likewise.
11617 * util/grub.d/10_hurd.in: Likewise.
11618 * util/grub.d/10_linux.in: Likewise.
11620 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
11621 patterns. Use that to define the `.old' suffix as older than `'.
11623 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
11625 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
11626 the grub.cfg header message.
11628 2007-05-11 Robert Millan <rmh@aybabtu.com>
11630 * util/update-grub.in: Create device.map if it doesn't already exist,
11631 before attempting to run grub-probe.
11632 Check for grub-probe and grub-mkdevicemap with the same code
11633 grub-install is using.
11636 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
11638 * Makefile.in: Add the datarootdir autoconf variable.
11640 2007-05-09 Robert Millan <rmh@aybabtu.com>
11642 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
11643 fail gracefully if dev->disk->partition == NULL.
11645 2007-05-07 Robert Millan <rmh@aybabtu.com>
11647 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
11648 determine partition map module.
11649 * util/i386/pc/grub-install.in: Use this feature to decide which
11650 partition module to load, instead of hardcoding pc and gpt.
11652 2007-05-07 Robert Millan <rmh@aybabtu.com>
11654 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
11655 source directory differs from build directory.
11657 2007-05-05 Robert Millan <rmh@aybabtu.com>
11659 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
11662 2007-05-05 Robert Millan <rmh@aybabtu.com>
11664 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
11666 2007-05-05 Robert Millan <rmh@aybabtu.com>
11668 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
11669 command-line arguments via ${GRUB_CMDLINE_LINUX}.
11671 2007-05-05 Robert Millan <rmh@aybabtu.com>
11673 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
11674 (grub_probe_SOURCES): Likewise.
11675 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
11676 GPT and initialize dos_part and bsd_part accordingly.
11677 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
11679 (main): Activate gpt module for use during partition identification,
11680 and deactivate it afterwards.
11681 * util/i386/pc/grub-install.in: Add gpt module to core.img.
11682 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
11683 partition identification, and deactivate it afterwards.
11685 2007-05-05 Robert Millan <rmh@aybabtu.com>
11687 * term/i386/pc/console.c (grub_console_fini): Call
11688 grub_term_set_current() before grub_term_unregister().
11690 2007-05-04 Robert Millan <rmh@aybabtu.com>
11692 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
11693 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
11694 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
11695 and update-grub_DATA.
11696 * conf/common.rmk: Build and install update-grub components.
11697 * conf/common.mk: Regenerate.
11698 * util/update-grub.in: New. Core of update-grub.
11699 * util/grub.d/00_header.in: New. Generates grub.cfg header.
11700 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
11701 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
11702 * util/grub.d/README: New. Document grub.d directory layout.
11704 2007-05-01 Robert Millan <rmh@aybabtu.com>
11706 * util/grub-emu.c: Move initialization functions
11707 grub_util_biosdisk_init() and grub_init_all() before
11708 grub_util_biosdisk_get_grub_dev(), which relies on them.
11710 2007-04-19 Robert Millan <rmh@aybabtu.com>
11712 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
11715 2007-04-18 Jerone Young <jerone@gmail.com>
11717 * kernel/elf.c: Add missing parenthesis for conditional statement
11720 2007-04-10 Jerone Young <jerone@gmail.com>
11722 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
11723 continue on and look for device node with real device name.
11725 2007-04-10 Jerone Young <jerone@gmail.com>
11727 * configure.ac: Add argument for autoconf to use transformation
11729 * Makefile.in: Add autoconf package transformation code.
11730 * util/i386/pc/grub-install.in: Likewise.
11731 * util/powerpc/ieee1275/grub-install.in: Likewise.
11733 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
11735 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
11736 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
11737 (EXT2_REVISION): Likewise.
11738 (EXT2_INODE_SIZE): Likewise.
11739 (struct grub_ext2_block_group): Added a missing member
11741 (grub_ext2_read_inode): Divide by the inode size in a superblock
11742 instead of 128 to obtain INODES_PER_BLOCK.
11743 Use the macro EXT2_INODE_SIZE instead of directly using
11744 SBLOCK->INODE_SIZE.
11746 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
11748 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
11749 superblock instead of the structure size to compute an
11750 offset. This fixes the problem that GRUB could not read a
11751 filesystem when inode size is different from 128-byte.
11753 2007-03-05 Marco Gerards <marco@gnu.org>
11755 * normal/main.c (read_config_file): When "menu" is not set, create
11756 an initial context.
11758 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
11760 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
11761 (HEAP_LIMIT): New macro.
11762 (grub_claim_heap): Claim memory up to `heaplimit'.
11764 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
11766 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
11767 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
11768 (_start): Likewise.
11769 (grub_arch_modules_addr): Return address after `_end'.
11770 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
11771 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
11772 (add_segments): Calculate `_end' from phdr size and location.
11773 (ALIGN_UP): Moved to ...
11774 * include/grub/misc.h: here.
11775 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
11777 (GRUB_IEEE1275_MODULE_BASE): Removed.
11779 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
11781 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
11784 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
11786 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
11788 (grub_elf64_load_hook_t): Likewise.
11789 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
11792 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
11794 * kern/mm.c: Update copyright.
11795 (grub_mm_debug): Correct syntax error.
11796 (grub_mm_dump_free): New function.
11797 (grub_debug_free): Call `grub_free'.
11798 * include/grub/mm.h: Update copyright.
11799 (grub_mm_dump_free): Add declaration.
11801 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
11803 * include/grub/ieee1275/ieee1275.h: Update copyright.
11804 * kern/powerpc/ieee1275/init.c: Likewise.
11805 * kern/powerpc/ieee1275/openfw.c: Likewise.
11807 * loader/powerpc/ieee1275/linux.c: Likewise.
11808 * include/grub/elfload.h: Likewise.
11809 * kern/elf.c: Likewise.
11810 (grub_elf32_load): Pass `base' and `size' parameters. Update all
11812 (grub_elf64_load): Likewise.
11813 (grub_elf32_load_segment): Move to a nested function.
11814 (grub_elf64_load_segment): Likewise.
11816 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
11818 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
11820 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
11821 (grub_heap_len): Likewise.
11822 (HEAP_SIZE): New macro.
11823 (grub_claim_heap): New function.
11824 (grub_machine_init): Don't claim heap directly. Call
11826 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
11827 (grub_available_iterate): New function.
11829 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
11831 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
11832 * configure.ac: Use it for testing the HOST and TARGET compilers.
11834 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
11836 * Makefile.in (enable_grub_emu): New variable.
11837 * configure.ac (--enable-grub-emu): New option.
11838 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
11839 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
11840 * conf/i386-pc.rmk: Likewise.
11841 * conf/powerpc-ieee1275.rmk: Likewise.
11842 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
11844 2006-12-12 Marco Gerards <marco@gnu.org>
11846 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
11848 * kern/env.c (grub_env_unset): Don't free the member `value' when
11849 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
11852 * normal/main.c (current_menu): Removed.
11853 (free_menu): Unset the `menu' environment variable.
11854 (grub_normal_menu_addentry): Make use of the environment variable
11855 `menu', instead of using the global `current_menu'. Allocate
11856 memory for the sourcecode of this entry.
11857 (read_config_file): New argument `nested', changed all callers.
11858 Only in the case of a new context, initialize a new menu. Set the
11859 `menu' environment variable.
11860 (grub_normal_execute): Don't set and unset the environment
11861 variable `menu' here anymore. Only free the menu when leaving the
11864 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
11867 2006-12-11 Marco Gerards <marco@gnu.org>
11869 * normal/menu_entry.c (run): Fix off by one bug so the last line
11870 is executed. Move the loader check to outside the loop.
11872 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
11874 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
11876 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
11878 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
11879 the number of sectors. Reported by Andrey Shuvikov
11880 <mr_hyro@yahoo.com>.
11882 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
11884 * kern/disk.c (grub_disk_read): When there is a read error, always
11885 try to read only the necessary data.
11887 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
11889 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
11891 [GRUB_UTIL] (grub_raid_fini): Likewise.
11892 [GRUB_UTIL] (grub_lvm_init): Likewise.
11893 [GRUB_UTIL] (grub_lvm_fini): Likewise.
11894 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
11895 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
11896 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
11897 and grub_raid_fini().
11899 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
11901 * include/grub/types.h (__unused): Rename to UNUSED.
11902 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
11903 (grub_elf64_size): Likewise.
11905 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
11907 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
11908 grub_error_push and grub_error_pop in the error-handling path.
11909 (grub_elf32_load_segment): Only call grub_file_read with non-zero
11912 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
11914 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
11915 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
11916 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11917 (kernel_elf_SOURCES): Likewise.
11918 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
11919 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
11920 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
11921 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
11922 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
11923 (elf_mod_SOURCES): New variable.
11924 (elf_mod_CFLAGS): Likewise.
11925 (elf_mod_LDFLAGS): Likewise.
11926 * include/grub/types.h (__unused): New macro.
11927 * include/grub/elfload.h: New file.
11928 * kern/elf.c: Likewise.
11929 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
11930 (ELF32_LOADMASK): New macro.
11931 (ELF64_LOADMASK): Likewise.
11932 (vmlinux): Removed.
11933 (grub_linux_load32): New function.
11934 (grub_linux_load64): Likewise.
11935 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
11936 Use grub_elf_t instead of grub_file_t.
11938 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
11940 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
11941 `catch_result' to struct set_color_args.
11943 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
11945 * normal/menu.c: Include grub/script.h.
11946 * normal/menu_entry.c: Likewise.
11947 * include/grub/normal.h: Do not include grub/script.h.
11949 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
11951 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
11953 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
11955 * kern/disk.c (grub_disk_open): Print debug messages when opening a
11957 (grub_disk_close): Print debug messages when closing a disk.
11958 (grub_disk_read): Print debug messages when disk read fails.
11959 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
11961 * kern/partition.c: Include misc.h.
11962 (grub_partition_iterate): Print debug messages when detecting
11965 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
11967 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
11969 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
11971 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
11973 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11974 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
11976 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
11978 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
11979 instead of sizeof(lv). Patch by Michael Guntsche.
11981 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
11983 * disk/lvm.c: Rename VGS to VG_LIST.
11984 (grub_lvm_iterate): Change VGS->LV to VG-LV.
11985 (grub_lvm_open): Likewise.
11986 Thanks to Michael Guntsche for finding this bug.
11988 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
11990 * configure.ac (AC_INIT): Bumped to 1.95.
11992 2006-10-14 Robert Millan <rmh@aybabtu.com>
11994 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
11995 with "/dev/.static/dev/md".
11997 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
11999 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
12000 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
12001 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
12002 DRIVE_NAME are always freed.
12004 * util/i386/pc/biosdisk.c (make_device_name): Add one into
12005 DOS_PART, as a DOS partition is counted from one instead of zero
12006 now. Reported by Robert Millan.
12008 2006-10-14 Robert Millan <rmh@aybabtu.com>
12010 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
12011 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
12012 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
12013 string returned by grub_guess_root_device.
12014 * util/i386/pc/grub-setup.c: Likewise.
12015 * util/i386/pc/grub-probefs.c: Likewise.
12017 * util/i386/pc/grub-probefs.c: Rename to ...
12018 * util/i386/pc/grub-probe.c: ... this.
12019 * DISTLIST: Remove grub-probefs, add grub-probe.
12020 * conf/i386-efi.rmk: Likewise.
12021 * conf/i386-pc.rmk: Likewise.
12022 * util/i386/pc/grub-install.in: Likewise.
12024 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
12025 choose which information we want to print.
12027 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
12029 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
12030 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
12031 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
12032 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
12033 video/readers/tga.c and video/i386/pc/vbeutil.c.
12035 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
12037 Added support for RAID and LVM.
12039 * disk/lvm.c: New file.
12040 * disk/raid.c: Likewise.
12041 * include/grub/lvm.h: Likewise.
12042 * include/grub/raid.h: Likewise.
12043 * include/grub/util/lvm.h: Likewise.
12044 * include/grub/util/raid.h: Likewise.
12045 * util/lvm.c: Likewise.
12046 * util/raid.c: Likewise.
12048 * include/grub/disk.h (grub_disk_dev_id): Add
12049 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
12050 (grub_disk_get_size): New prototype.
12051 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
12052 returns a partition.
12053 (grub_disk_get_size): New function.
12055 * kern/i386/pc/init.c (make_install_device): Copy the prefix
12056 verbatim if grub_install_dos_part is -2.
12058 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
12061 * util/i386/pc/grub-setup.c (setup): New argument
12062 MUST_EMBED. Force embedding of GRUB when the argument is
12063 true. Close FILE before returning.
12064 (main): Add support for RAID and LVM.
12066 * conf/common.rmk: Add RAID and LVM modules.
12067 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
12069 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
12071 * kern/misc.c (grub_strstr): New function.
12072 * include/grub/misc.h (grub_strstr): New prototype.
12074 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
12076 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
12078 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
12080 * kern/misc.c (grub_strtoull): Guess the base only if not
12083 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
12085 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
12088 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
12090 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
12092 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
12093 Remove `flags' argument. All callers changed.
12094 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
12095 (IEEE1275_IHANDLE_INVALID): New variable.
12096 (IEEE1275_CELL_INVALID): New variable.
12097 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12098 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
12099 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
12100 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
12101 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
12102 codes from Open Firmware. All callers updated.
12103 (grub_ieee1275_next_property): Directly return Open Firmware return
12105 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
12106 Standardize error checking from `grub_ieee1275_get_property'.
12107 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
12108 `devalias' to `aliases'. Correct comments. Consolidate error paths.
12110 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
12112 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
12113 `instance_to_package_args' to `instance_to_path_args'.
12115 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
12116 `grub_ieee1275_chosen'.
12118 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
12119 `grub_ieee1275_interpret'.
12121 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
12123 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
12125 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
12127 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
12128 (__cmpdi): Likewise.
12130 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
12131 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
12134 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
12136 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
12137 to type `grub_ssize_t'.
12138 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
12140 2006-09-22 Marco Gerards <marco@gnu.org>
12142 * normal/script.c (grub_script_create_cmdmenu): Skip leading
12145 2006-09-22 Marco Gerards <marco@gnu.org>
12147 * commands/echo.c: New file.
12149 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
12151 * conf/common.rmk (echo_mod_SOURCES): New variable.
12152 (echo_mod_CFLAGS): Likewise.
12153 (echo_mod_LDFLAGS): Likewise.
12155 2006-09-22 Marco Gerards <marco@gnu.org>
12157 * normal/main.c (get_line): Malloc memory instead of using
12158 preallocated memory. Removed the arguments `cmdline' and
12159 `max_len'. Updated all callers.
12161 2006-09-22 Marco Gerards <marco@gnu.org>
12163 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
12164 (normal_mod_DEPENDENCIES): Likewise.
12166 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
12167 (normal_mod_DEPENDENCIES): Likewise.
12169 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
12171 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
12173 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
12175 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
12176 (normal_mod_DEPENDENCIES): Likewise.
12177 * conf/i386-pc.mk: Regenerate.
12178 * conf/i386-efi.mk: Likewise
12179 * conf/common.mk: Likewise.
12180 * conf/powerpc-ieee1275.mk: Likewise.
12181 * conf/sparc64-ieee1275.mk: Likewise.
12183 2006-09-22 Robert Millan <rmh@aybabtu.com>
12185 Sync with i386 version.
12186 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
12187 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
12189 2006-09-21 Robert Millan <rmh@aybabtu.com>
12191 Import from GRUB Legacy (lib/device.c):
12192 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
12193 (init_device_map) [__linux__]: Add support for I2O devices.
12195 2006-09-14 Marco Gerards <marco@gnu.org>
12197 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
12200 2006-09-14 Robert Millan <rmh@aybabtu.com>
12202 * util/i386/pc/grub-install.in: Skip menu.lst when removing
12205 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
12207 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
12208 before adding it to device.map.
12210 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
12212 * genmk.rb: Let GCC generate dependencies the first time it
12213 compiles a file; using the -MD option.
12214 * conf/common.mk: Regenerate.
12215 * conf/i386-pc.mk: Likewise.
12216 * conf/i386-efi.mk: Likewise.
12217 * conf/powerpc-ieee1275.mk: Likewise.
12218 * conf/sparc64-ieee1275.mk: Likewise.
12220 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
12222 Move the prototypes of grub_setjmp and grub_longjmp to
12223 cpu/setjmp.h, so that each architecture may specify different
12226 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
12227 (grub_longjmp): Likewise.
12228 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
12229 (grub_longjmp): Likewise.
12230 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
12231 (grub_longjmp): Likewise.
12233 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
12234 [!GRUB_UTIL] (grub_longjmp): Removed.
12236 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
12238 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
12239 "color!" method does not return any value.
12241 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
12243 * include/grub/bitmap.h: New file.
12245 * include/grub/i386/pc/vbeutil.h: Likewise.
12247 * video/bitmap.c: Likewise.
12249 * video/readers/tga.c: Likewise.
12251 * video/i386/pc/vbeutil.c: Likewise.
12253 * commands/videotest.c: Code cleanup and updated to reflect to new
12256 * term/gfxterm.c: Likewise.
12258 * video/video.c: Likewise.
12260 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
12261 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
12262 (bitmap_mod_SOURCES): New entry.
12263 (bitmap_mod_CFLAGS): Likewise.
12264 (bitmap_mod_LDFLAGS): Likewise.
12265 (tga_mod_SOURCES): Likewise.
12266 (tga_mod_CFLAGS): Likewise.
12267 (tga_mod_LDFLAGS): Likewise.
12269 * include/grub/video.h (grub_video_blit_operators): New enum type.
12270 (grub_video_render_target): Changed as forward declaration and moved
12271 actual definition to be video driver specific.
12272 (grub_video_adapter.blit_bitmap): Added blitting operator.
12273 (grub_video_adapter.blit_render_target): Likewise.
12274 (grub_video_blit_bitmap): Likewise.
12275 (grub_video_blit_render_target): Likewise.
12277 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
12278 driver specific render target definition.
12279 (grub_video_vbe_map_rgba): Added driver internal helper.
12280 (grub_video_vbe_unmap_color): Updated to use
12281 grub_video_i386_vbeblit_info.
12282 (grub_video_vbe_get_video_ptr): Likewise.
12284 * include/grub/i386/pc/vbeblit.h
12285 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
12286 grub_video_i386_vbeblit_info.
12287 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
12288 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
12289 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
12290 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
12291 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
12292 (grub_video_i386_vbeblit_index_index): Likewise.
12293 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
12294 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
12295 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
12296 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
12298 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
12301 * video/i386/pc/vbeblit.c: Updated to reflect changes on
12302 include/grub/i386/pc/vbeblit.h.
12304 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
12305 Updated to use grub_video_i386_vbeblit_info.
12306 (grub_video_i386_vbefill_R8G8B8): Likewise.
12307 (grub_video_i386_vbefill_index): Likewise.
12308 (grub_video_i386_vbefill): Added generic filler.
12310 * video/i386/pc/vbefill.c: Updated to reflect changes on
12311 include/grub/i386/pc/vbefill.h.
12313 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
12314 grub_video_i386_vbeblit_info.
12315 (grub_video_vbe_unmap_color): Likewise.
12316 (grub_video_vbe_blit_glyph): Likewise.
12317 (grub_video_vbe_scroll): Likewise.
12318 (grub_video_vbe_draw_pixel): Removed function.
12319 (grub_video_vbe_get_pixel): Likewise.
12320 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
12321 updated code to use it.
12322 (common_blitter): Added common blitter for render target and bitmap.
12323 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
12324 (grub_video_vbe_blit_render_target): Likewise.
12326 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
12328 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
12329 is in text mode if there is no console control protocol instance
12332 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
12334 * include/grub/video.h: Code cleanup.
12336 * include/grub/i386/pc/vbe.h: Likewise.
12338 * video/i386/pc/vbe.c: Likewise.
12340 * video/i386/pc/vbeblit.c: Likewise.
12342 * video/i386/pc/vbefill.c: Likewise.
12344 * video/video.c: Likewise. Also added more comments.
12346 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
12348 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
12349 (struct grub_biosdisk_dap): Likewise.
12351 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
12352 linkage settings for all functions.
12354 2006-07-12 Marco Gerards <marco@gnu.org>
12356 * configure.ac (--enable-mm-debug): Fix typo.
12358 * genkernsyms.sh.in: Use proper quoting for `CC'.
12360 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
12362 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
12363 (normal_mod_ASFLAGS): Remove "-m32".
12365 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
12367 * util/misc.c: Include config.h.
12368 [!HAVE_MEMALIGN]: Do not include malloc.h.
12369 (grub_memalign): Use posix_memalign, if present. Then, use
12370 memalign, if present. Otherwise, emit an error.
12372 * util/grub-emu.c: Do not include malloc.h.
12374 * include/grub/util/misc.h: Include unistd.h. This is required for
12375 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
12376 D. Eades III <hde@foobar-qux.org>.
12378 * configure.ac (AC_GNU_SOURCE): Added.
12379 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
12382 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
12384 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
12385 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
12387 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
12389 * include/grub/types.h (grub_host_addr_t): Rename to
12390 grub_target_addr_t.
12391 (grub_host_off_t): Rename to grub_target_off_t.
12392 (grub_host_size_t): Rename to grub_target_size_t.
12393 (grub_host_ssize_t): Rename to grub_target_ssize_t.
12394 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
12396 * include/grub/kernel.h (struct grub_module_header): Change type
12397 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
12398 (grub_module_info): Likewise.
12400 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
12402 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
12403 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
12404 Velazquez <jesus.velazquez@gmail.com>.
12406 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
12408 Count partitions from 1 instead of 0 in the string representation
12409 of partitions. Still use 0-based internally.
12411 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
12412 (sun_partition_map_iterate): Use grub_partition_t instead of
12413 struct grub_partition *. Cast DESC->START_CYLINDER to
12414 grub_uint64_t after converting the endian.
12415 (sun_partition_map_probe): Subtract 1 for PARTNUM.
12416 (sun_partition_map_get_name): Add 1 to P->INDEX.
12418 * partmap/pc.c (grub_partition_parse): Subtract 1 for
12420 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
12422 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
12423 zero instead of one.
12424 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
12425 (gpt_partition_map_get_name): Add 1 into P->INDEX.
12427 * partmap/apple.c (apple_partition_map_iterate): Change the type
12428 of POS to unsigned.
12429 (apple_partition_map_probe): Subtract 1 for PARTNUM.
12430 (apple_partition_map_get_name): Add 1 into P->INDEX.
12432 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
12433 of POS to unsigned.
12434 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
12435 calculate the offset of a partition.
12436 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
12437 (amiga_partition_map_get_name): Add 1 into P->INDEX.
12439 * partmap/acorn.c (acorn_partition_map_find): Change the type of
12440 SECTOR to grub_disk_addr_t.
12441 (acorn_partition_map_iterate): Likewise.
12442 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
12443 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
12445 (acorn_partition_map_get_name): Add 1 into P->INDEX.
12447 * kern/i386/pc/init.c (make_install_device): Add 1 into
12448 GRUB_INSTALL_DOS_PART.
12450 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
12453 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
12455 Clean up the code to support 64-bit addressing in disks and
12456 files. This change is not enough for filesystems yet.
12458 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
12459 type of "start" to grub_uint64_t.
12460 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
12461 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
12462 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
12465 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
12466 to grub_disk_addr_t.
12468 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
12471 * partmap/pc.c (pc_partition_map_iterate): Likewise.
12473 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
12476 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
12478 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
12480 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
12482 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
12483 to grub_off_t, to detect an error from grub_file_seek.
12484 (grub_multiboot_load_elf32): Likewise.
12486 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
12487 maximum unsigned long value when an overflow is detected.
12488 (grub_strtoull): New function.
12489 (grub_divmod64): Likewise.
12490 (grub_lltoa): use grub_divmod64.
12492 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
12494 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
12495 the pointer to next character. Use grub_strtoull instead of
12497 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
12498 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
12501 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
12502 return value is signed.
12503 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
12504 test if OFFSET is less than zero, as OFFSET is unsigned now.
12506 * kern/disk.c (struct grub_disk_cache): Change the type of
12507 "sector" to grub_disk_addr_t.
12508 (grub_disk_cache_get_index): Change the type of SECTOR to
12509 grub_disk_addr_t. Calculate the hash with SECTOR casted to
12510 unsigned after shifting.
12511 (grub_disk_cache_invalidate): Change the type of SECTOR to
12513 (grub_disk_cache_unlock): Likewise.
12514 (grub_disk_cache_store): Likewise.
12515 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
12516 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
12517 grub_disk_addr_t and grub_uint64_t, respectively.
12518 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
12519 body, as the value of OFFSET is tweaked by
12520 grub_disk_check_range. Change the types of START_SECTOR, LEN and
12521 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
12523 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
12524 body, as the value of OFFSET is tweaked by
12525 grub_disk_check_range. Change the types of LEN and N to
12528 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
12529 and "saved_offset" to grub_off_t.
12530 (test_header): Cast BUF to char *.
12531 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
12533 (grub_gzio_read): Change the types of OFFSET and SIZE to
12534 grub_off_t and grub_size_t, respectively.
12536 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
12538 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
12539 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
12540 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
12541 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
12542 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
12544 * include/grub/types.h (grub_off_t): Unconditionally set to
12546 (grub_disk_addr_t): Changed to grub_uint64_t.
12548 * include/grub/partition.h (struct grub_partition): Change the
12549 types of "start", "len" and "offset" to grub_disk_addr_t,
12550 grub_uint64_t and grub_disk_addr_t, respectively.
12551 (grub_partition_get_start): Return grub_disk_addr_t.
12552 (grub_partition_get_len): Return grub_uint64_t.
12554 * include/grub/misc.h (grub_strtoull): New prototype.
12555 (grub_divmod64): Likewise.
12557 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
12558 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
12559 grub_off_t, respectively.
12560 All callers and references changed.
12562 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
12563 grub_size_t in "read".
12564 All callers and references changed.
12566 * include/grub/file.h (struct grub_file): Change the types of
12567 "offset" and "size" to grub_off_t and grub_off_t,
12568 respectively. Change the type of SECTOR to grub_disk_addr_t in
12570 (grub_file_read): Change the type of LEN to grub_size_t.
12571 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
12573 (grub_file_size): Return grub_off_t.
12574 (grub_file_tell): Likewise.
12575 All callers and references changed.
12577 * include/grub/disk.h (struct grub_disk_dev): Change the types of
12578 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
12580 (struct grub_disk): Change the type of "total_sectors" to
12581 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
12583 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
12584 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
12585 (grub_disk_write): Likewise.
12586 All callers and references changed.
12588 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
12589 char * for grub_strncmp to silence gcc.
12590 (grub_iso9660_mount): Likewise.
12591 (grub_iso9660_mount): Likewise.
12592 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
12594 (grub_iso9660_iterate_dir): Likewise.
12595 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
12597 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
12598 LEN to grub_disk_addr_t and grub_size_t, respectively.
12600 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12602 * fs/jfs.c (grub_jfs_read_file): Likewise.
12604 * fs/minix.c (grub_jfs_read_file): Likewise.
12606 * fs/sfs.c (grub_jfs_read_file): Likewise.
12608 * fs/ufs.c (grub_jfs_read_file): Likewise.
12610 * fs/xfs.c (grub_jfs_read_file): Likewise.
12612 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
12613 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
12616 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
12617 BLKNR to -1 instead of returning GRUB_ERRNO.
12618 (grub_ext2_read_file): Change the types of SECTOR and
12619 LEN to grub_disk_addr_t and grub_size_t, respectively.
12621 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
12622 LEN to grub_disk_addr_t and grub_size_t, respectively.
12624 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
12627 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
12628 string. Do not cast SECTOR explicitly.
12630 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
12631 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
12632 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
12633 grub_disk_addr_t and grub_size_t, respectively. If the sector is
12634 over 2TB and LBA mode is not supported, raise an error.
12635 (get_safe_sectors): New function.
12636 (grub_biosdisk_read): Use get_safe_sectors.
12637 (grub_biosdisk_write): Likewise.
12639 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
12640 (grub_efidisk_write): Likewise.
12642 * disk/loopback.c (delete_loopback): Cosmetic changes.
12643 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
12645 (grub_loopback_open): Likewise.
12646 (grub_loopback_read): Likewise. Also, change the type of POS to
12647 grub_off_t, and fix the usage of grub_memset.
12649 * commands/i386/pc/play.c: Include grub/machine/time.h.
12651 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
12654 * commands/configfile.c: Include grub/env.h.
12656 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
12657 GRUB_ERRNO directly instead. Change the type of POS to
12658 grub_off_t. Follow the coding standard.
12660 * commands/blocklist.c: Include grub/partition.h.
12661 (grub_cmd_blocklist): Return an error if the underlying device is
12662 not a disk. Take the starting sector of a partition into account,
12663 if a partition is used.
12665 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
12667 (lba_mode): Support 64-bit addresses.
12668 (chs_mode): Likewise.
12669 (copy_buffer): Adapted to the new offsets of a length field and a
12671 (blocklist_default_start): Allocate 64-bit space.
12673 * boot/i386/pc/boot.S (force_lba): Removed.
12674 (boot_drive): Moved to under KERNEL_SECTOR.
12675 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
12677 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
12679 (lba_mode): Refactored to support a 64-bit address. More size
12681 (setup_sectors): Likewise.
12683 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
12685 * DISTLIST: Added include/grub/i386/linux.h. Removed
12686 include/grub/i386/pc/linux.h
12688 * configure.ac (AC_INIT): Bumped to 1.94.
12690 * config.guess: Updated from gnulib.
12691 * config.sub: Likewise.
12692 * install-sh: Likewise.
12693 * mkinstalldirs: Likewise.
12695 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
12697 * conf/common.rmk (grub_modules_init.lst): Depended on
12698 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
12701 * genmk.rb (PModule::rule): Reverted the previous change.
12703 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
12705 * conf/common.rmk (grub_modules_init.lst): Depends on
12706 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
12707 that the target does not exist before producing.
12708 (grub_modules_init.h): Remove the target before generating.
12709 (grub_emu_init.c): Likewise.
12711 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
12713 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
12715 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
12716 for the target-specific tests. Make sure that we also have the
12717 up-to-date target variables for those tests.
12719 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
12721 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
12722 (PModule::rule): Likewise.
12724 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
12726 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
12727 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
12728 target-specific flags should be prefixed.
12729 (PModule::rule): Likewise.
12731 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
12733 * configure.ac (CMP): Check if cmp is available explicitly.
12735 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
12737 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
12738 (target_cpu): New variable.
12739 (pkglibdir): Use target_cpu instead of host_cpu.
12741 * util/i386/pc/grub-install.in (host_cpu): Removed.
12742 (target_cpu): New variable.
12743 (pkglibdir): Use target_cpu instead of host_cpu.
12745 * util/genmoddep.c: Removed.
12747 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
12748 instead of GRUB_HOST_SIZEOF_VOID_P.
12749 * kern/dl.c: Likewise.
12751 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
12753 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
12754 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
12755 (GRUB_TARGET_SIZEOF_LONG): ... this.
12756 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
12757 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
12758 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
12760 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
12761 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
12762 (GRUB_TARGET_SIZEOF_LONG): ... this.
12763 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
12764 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
12765 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
12767 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
12768 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
12769 (GRUB_TARGET_SIZEOF_LONG): ... this.
12770 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
12771 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
12773 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
12774 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
12775 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
12776 instead of GRUB_HOST_SIZEOF_LONG.
12777 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
12778 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
12779 GRUB_CPU_WORDS_BIGENDIAN.
12780 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
12781 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
12784 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
12785 (genmoddep_SOURCES): Likewise.
12786 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
12787 (genmoddep_SOURCES): Likewise.
12788 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
12789 (genmoddep_SOURCES): Likewise.
12790 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
12792 (genmoddep_SOURCES): Likewise.
12794 * genmoddep.awk: New file.
12796 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
12797 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
12798 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
12799 (PModule::rule): Likewise.
12800 (Program::rule): Likewise.
12801 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
12802 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
12805 * configure.ac: Rewritten intensively to use host and target
12806 instead of build and host, respectively.
12808 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
12809 (host_cpu): Removed.
12810 (target_cpu): New variable.
12811 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
12812 (BUILD_CC): Removed.
12813 (BUILD_CFLAGS): Likewise.
12814 (BUILD_CPPFLAGS): Likewise.
12815 (TARGET_CC): New variable.
12816 (TARGET_CFLAGS): Likewise.
12817 (TARGET_CPPFLAGS): Likewise.
12818 (TARGET_LDFLAGS): Likewise.
12820 (include): Use target_cpu instead of host_cpu.
12821 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
12823 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
12825 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
12827 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
12828 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
12829 field 'false' to 'exec_on_false'.
12830 (grub_script_create_cmdif): Renamed argument names to reflect above
12833 * normal/execute.c (grub_script_execute_cmdif): Likewise.
12835 * normal/script.c (grub_script_create_cmdif): Likewise.
12837 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
12839 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
12841 (grub_hfsplus_btree_recptr): Likewise.
12842 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
12843 FILEBLOCK both to pass a block number and store next block
12845 (grub_hfsplus_read_block): Rewritten heavily to support an extent
12846 overflow file correctly. Specify errors appropriately, because
12847 fshelp expects that GRUB_ERRNO is set when fails. Reuse
12848 grub_hfsplus_btree_recptr to get the pointer to a found key.
12849 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
12852 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
12854 (_linux_mod_SOURCES): New variable.
12855 (_linux_mod_CFLAGS): Likewise.
12856 (_linux_mod_LDFLAGS): Likewise.
12857 (linux_mod_SOURCES): Likewise.
12858 (linux_mod_CFLAGS): Likewise.
12859 (linux_mod_LDFLAGS): Likewise.
12861 * DISTLIST: Added loader/i386/efi/linux.c,
12862 loader/i386/efi/linux_normal.c and
12863 include/grub/i386/efi/loader.h.
12865 * loader/i386/efi/linux.c: New file.
12866 * loader/i386/efi/linux_normal.c: Likewise.
12867 * include/grub/i386/efi/loader.h: Likewise.
12869 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
12871 * commands/blocklist.c: New file.
12873 * DISTLIST: Added commands/blocklist.c.
12875 * term/efi/console.c (grub_console_highlight_color): Use a lighter
12876 color for the background, and a darker color for the foreground.
12877 (grub_console_checkkey): Return READ_KEY.
12878 (grub_console_cls): Set the background to
12879 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
12881 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
12883 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
12884 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
12886 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
12889 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
12890 BG. The spec is wrong again.
12892 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
12894 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
12896 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
12897 commands/blocklist.c.
12898 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12900 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
12901 (blocklist_mod_SOURCES): New variable.
12902 (blocklist_mod_CFLAGS): Likewise.
12903 (blocklist_mod_LDFLAGS): Likewise.
12905 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
12907 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
12909 (lba_mode): Use %eax more intensively to reduce the code size.
12911 2006-05-20 Marco Gerards <marco@gnu.org>
12913 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
12915 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
12917 (script): Accept leading newlines.
12918 (newlines): New rule to describe 0 or more newlines.
12919 (commands): Accept `command' with trailing newline. Fixed the
12920 order in which arguments were passed to `grub_script_add_cmd'.
12921 Accept commands separated by newlines.
12922 (function): Changed to accept newlines.
12923 (menuentry) Rewritten.
12925 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
12926 front of the list, instead of to the end.
12928 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
12930 * util/i386/pc/grub-install.in (bindir): New variable.
12931 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
12932 Shaver <lbgwjl@gmail.com>.
12934 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
12936 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
12937 grub/machine/linux.h
12938 * loader/i386/pc/linux.c: Likewise.
12940 * include/grub/i386/pc/linux.h: Moved to ...
12941 * include/grub/i386/linux.h: ... here.
12943 * include/grub/i386/linux.h (struct linux_kernel_params): New
12946 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
12948 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
12950 (grub_video_vbe_blit_glyph): Likewise.
12951 (grub_video_vbe_blit_bitmap): Likewise.
12952 (grub_video_vbe_blit_render_target): Likewise.
12954 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
12956 * configure.ac (--with-platform): Properly quote the square
12959 2006-05-08 Marco Gerards <marco@gnu.org>
12961 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
12963 (kernel_elf_HEADERS): ...to this. Updated all users.
12964 (grubof_symlist.c): Renamed from this...
12965 (kernel_elf_symlist.c): ...to this. Updated all users.
12966 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
12967 (grubof_SOURCES): Renamed from this...
12968 (kernel_elf_SOURCES): ...to this.
12969 (grubof_HEADERS): Renamed from this...
12970 (kernel_elf_HEADERS): ...to this.
12971 (grubof_CFLAGS): Renamed from this...
12972 (kernel_elf_CFLAGS): ...to this.
12973 (grubof_ASFLAGS): Renamed from this...
12974 (kernel_elf_ASFLAGS): ...to this.
12975 (grubof_LDFLAGS): Renamed from this...
12976 (kernel_elf_LDFLAGS): ...to this.
12978 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
12980 (kernel_elf_HEADERS): ...to this. Updated all users.
12981 (grubof_symlist.c): Renamed from this...
12982 (kernel_elf_symlist.c): ...to this. Updated all users.
12983 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
12984 (grubof_SOURCES): Renamed from this...
12985 (kernel_elf_SOURCES): ...to this.
12986 (grubof_HEADERS): Renamed from this...
12987 (kernel_elf_HEADERS): ...to this.
12988 (grubof_CFLAGS): Renamed from this...
12989 (kernel_elf_CFLAGS): ...to this.
12990 (grubof_ASFLAGS): Renamed from this...
12991 (kernel_elf_ASFLAGS): ...to this.
12992 (grubof_LDFLAGS): Renamed from this...
12993 (kernel_elf_LDFLAGS): ...to this.
12995 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
12996 `kernel.elf' instead of `grubof'.
12998 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
13000 Add --with-platform to configure. Use pkglibdir instead of
13001 pkgdatadir. This is reported by Roger Leigh.
13003 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
13004 (host_vendor): Likewise.
13005 (host_os): Likewise.
13006 (pkgdatadir): Likewise.
13007 (platform): New variable.
13008 (pkglibdir): Likewise.
13009 Use PKGLIBDIR instead of PKGDATADIR.
13011 * util/i386/pc/grub-install.in (datadir): Removed.
13012 (host_vendor): Likewise.
13013 (host_os): Likewise.
13014 (pkgdatadir): Likewise.
13015 (platform): New variable.
13016 (pkglibdir): Likewise.
13017 Use PKGLIBDIR instead of PKGDATADIR.
13019 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
13020 instead of GRUB_DATADIR.
13022 * util/i386/pc/grub-mkimage.c (usage): Likewise.
13024 * util/i386/efi/grub-mkimage.c (usage): Likewise.
13027 * configure.ac (--with-platform): New option.
13028 Use PLATFORM instead of HOST_VENDOR to specify a platform.
13030 * Makefile.in: Include a makefile based on PLATFORM instead of
13032 (pkgdatadir): Not appended by the machine type.
13033 (pkglibdir): Appended by the machine type.
13034 (host_vendor): Removed.
13035 (platform): New variable.
13036 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
13037 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
13038 (uninstall): Likewise.
13040 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
13042 Use the environment context in the menu. Remove the commands
13043 "default" and "timeout", and use variables instead.
13045 * normal/menu.c: Include grub/env.h.
13046 (print_entry): Cast TITLE to silence gcc.
13047 (get_timeout): New function.
13048 (set_timeout): Likewise.
13049 (get_entry_number): Likewise.
13050 (run_menu): Use a default entry, a fallback entry and a timeout
13051 in the environment variables "default", "fallback" and
13052 "timeout". Also, tweak the default entry if it is not within the
13053 current menu entries.
13054 (grub_menu_run): Use a fallback entry in the environment variable
13057 * normal/main.c (read_config_file): Do not initialize
13058 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
13060 (grub_normal_execute): Use a data slot to store the menu.
13062 * include/grub/normal.h (struct grub_menu): Removed default_entry,
13063 fallback_entry and timeout.
13064 (struct grub_menu_list): Removed.
13065 (grub_menu_list_t): Likewise.
13066 (struct grub_context): Likewise.
13067 (grub_context_t): Likewise.
13068 (grub_context_get): Likewise.
13069 (grub_context_get_current_menu): Likewise.
13070 (grub_context_push_menu): Likewise.
13071 (grub_context_pop_menu): Likewise.
13072 (grub_default_init): Likewise.
13073 (grub_default_fini): Likewise.
13074 (grub_timeout_init): Likewise.
13075 (grub_timeout_fini): Likewise.
13077 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
13079 (normal_mod_SOURCES): Removed normal/context.c.
13081 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
13082 commands/default.c, commands/timeout.c and normal/context.c.
13083 (normal_mod_SOURCES): Removed normal/context.c.
13085 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
13086 commands/timeout.c and normal/context.c.
13087 (normal_mod_SOURCES): Removed normal/context.c.
13089 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
13090 commands/default.c, commands/timeout.c and normal/context.c.
13091 (normal_mod_SOURCES): Removed normal/context.c.
13093 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
13095 (default_mod_SOURCES): Removed.
13096 (default_mod_CFLAGS): Likewise.
13097 (default_mod_LDFLAGS): Likewise.
13098 (timeout_mod_SOURCES): Removed.
13099 (timeout_mod_CFLAGS): Likewise.
13100 (timeout_mod_LDFLAGS): Likewise.
13102 * DISTLIST: Removed commands/default.c, commands/timeout.c and
13105 * commands/default.c: Removed.
13106 * commands/timeout.c: Likewise.
13107 * normal/context.c: Likewise.
13109 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
13111 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
13113 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
13115 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
13116 "next" to "prev" for readability.
13117 (struct grub_env_sorted_var): New struct.
13118 (grub_env_context): Renamed to ...
13119 (initial_context): ... this.
13120 (grub_env_var_context): Renamed to ...
13121 (current_context): ... this.
13122 (grub_env_find): Look only at CURRENT_CONTEXT.
13123 (grub_env_context_open): Rewritten to copy exported variables from
13125 (grub_env_context_close): Rewritten according to the new
13126 scheme. Also, add an assertion to prevent the initial context from
13128 (grub_env_insert): Removed the code for the sorted list.
13129 (grub_env_remove): Likewise.
13130 (grub_env_export): Simply mark the variable with
13131 GRUB_ENV_VAR_GLOBAL.
13132 (grub_env_set): A cosmetic change for naming consistency.
13133 (grub_env_get): Likewise.
13134 (grub_env_unset): Likewise.
13135 (grub_env_iterate): Rewritten to sort variables within this
13137 (grub_register_variable_hook): Fixed for naming consistency. Call
13138 grub_env_find again, only if NAME is not found at the first time.
13139 (mangle_data_slot_name): New function.
13140 (grub_env_set_data_slot): Likewise.
13141 (grub_env_get_data_slot): Likewise.
13142 (grub_env_unset_data_slot): Likewise.
13144 * include/grub/env.h (grub_env_var_type): New enum.
13145 (GRUB_ENV_VAR_LOCAL): New constant.
13146 (GRUB_ENV_VAR_GLOBAL): Likewise.
13147 (GRUB_ENV_VAR_DATA): Likewise.
13148 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
13150 (grub_env_set): Replace VAR with NAME for consistency.
13151 (grub_register_variable_hook): Likewise.
13152 (grub_env_export): Specify the name of the argument.
13153 (grub_env_set_data_slot): New prototype.
13154 (grub_env_get_data_slot): Likewise.
13155 (grub_env_unset_data_slot): Likewise.
13157 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
13159 Extend the loader so that GRUB can accept a loader which comes
13160 back to GRUB when a loaded image exits. Also, this change adds
13161 support for a chainloader on EFI.
13163 * term/efi/console.c: Include grub/misc.h.
13164 (grub_console_checkkey): Display a scan code on the top for
13165 debugging. This will be removed once the EFI port gets stable.
13166 Correct the scan code mapping.
13168 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
13169 allocate memory from larger regions, in order to reduce the number
13170 of allocated regions. Otherwise, the MacOSX loader panics.
13171 (filter_memory_map): Avoid less than 1MB for compatibility with
13173 (add_memory_regions): Allocate from the tail of a region, if
13174 possible, to avoid allocating a region near to 1MB, for the MacOSX
13177 * kern/efi/init.c (grub_efi_set_prefix): Specify
13178 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
13180 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
13181 argument IMAGE_HANDLE and specify it to get a loaded image.
13182 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
13183 grub_efi_get_loaded_image.
13184 (grub_efi_get_filename): Divide the length by the size of
13186 (grub_efi_get_device_path): New function.
13187 (grub_efi_print_device_path): Print End Device Path nodes. Divide
13188 the length by the size of grub_efi_char16_t for a file path device
13191 * kern/loader.c (grub_loader_noreturn): New variable.
13192 (grub_loader_set): Accept a new argument NORETURN. Set
13193 GRUB_LOADER_NORETURN to NORETURN.
13194 All callers changed.
13195 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
13198 * include/grub/efi/efi.h (grub_efi_get_device_path): New
13200 (grub_efi_get_loaded_image): Take an argument to specify an image
13203 * include/grub/loader.h (grub_loader_set): Added one more argument
13206 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
13207 instead of grub_efi_open_protocol.
13208 (grub_efidisk_get_device_name): Likewise.
13209 (grub_efidisk_close): Print a newline.
13210 (grub_efidisk_get_device_handle): Fixed to use
13211 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
13212 GRUB_EFI_DEVICE_PATH_TYPE.
13214 * disk/efi/efidisk.c (device_path_guid): Moved to ...
13215 * kern/efi/efi.c (device_path_guid): ... here.
13217 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
13219 (kernel_mod_HEADERS): Added efi/disk.h.
13220 (_chain_mod_SOURCES): New variable.
13221 (_chain_mod_CFLAGS): Likewise.
13222 (_chain_mod_LDFLAGS): Likewise.
13223 (chain_mod_SOURCES): Likewise.
13224 (chain_mod_CFLAGS): Likewise.
13225 (chain_mod_LDFLAGS): Likewise.
13227 * DISTLIST: Added include/grub/efi/chainloader.h,
13228 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
13230 * include/grub/efi/chainloader.h: New file.
13231 * loader/efi/chainloader.c: Likewise.
13232 * loader/efi/chainloader_normal.c: Likewise.
13234 2006-04-30 Marco Gerards <marco@gnu.org>
13236 * commands/configfile.c (grub_cmd_source): New function.
13237 (GRUB_MOD_INIT): Register the commands `source' and `.'.
13238 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
13240 2006-04-30 Marco Gerards <marco@gnu.org>
13242 * normal/execute.c (grub_script_execute_cmd): Change the return
13243 type to `grub_err_t'. Correctly return the error.
13244 (grub_script_execute_cmdline): In case a command line is not a
13245 command or a function, try to interpret it as an assignment.
13247 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
13249 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
13250 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
13251 skip a node whose name is obviously invalid as UTF-16,
13252 i.e. contains a NUL character. Stop the iteration when the last
13253 directory entry is found. Instead of using the return value of
13254 grub_hfsplus_btree_iterate_node, store the value in RET and use
13255 it, because the iterator can be stopped by the last directory
13258 2006-04-30 Marco Gerards <marco@gnu.org>
13260 * include/grub/env.h (grub_env_export): New prototype. Reported
13261 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
13263 2006-04-30 Marco Gerards <marco@gnu.org>
13265 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
13266 size of the extents in a catalog file record.
13268 2006-04-29 Marco Gerards <marco@gnu.org>
13270 * commands/configfile.c (grub_cmd_configfile): Execute the
13271 configfile within its own context.
13273 * include/grub/env.h (grub_env_context_open): New prototype.
13274 (grub_env_context_close): Likewise.
13276 * kern/env.c (grub_env): Removed.
13277 (grub_env_sorted): Likewise.
13278 (grub_env_context): New variable.
13279 (grub_env_var_context): Likewise.
13280 (grub_env_find): Search both the active context and the global
13282 (grub_env_context_open): New function.
13283 (grub_env_context_close): Likewise.
13284 (grub_env_insert): Likewise.
13285 (grub_env_remove): Likewise.
13286 (grub_env_export): Likewise.
13287 (grub_env_set): Changed to use helper functions to avoid code
13289 (grub_env_iterate): Rewritten so both the current context and the
13290 global context are being used.
13292 * normal/command.c (export_command): New function.
13293 (grub_command_init): Register the `export' function.
13295 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
13297 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
13298 explicitly to suppress gcc's warnings.
13299 * fs/fat.c (grub_fat_find_dir): Likewise.
13300 (grub_fat_label): Likewise.
13301 * fs/xfs.c (grub_xfs_read_inode): Likewise.
13302 (grub_xfs_mount): Likewise.
13303 (grub_xfs_label): Likewise.
13304 * fs/affs.c (grub_affs_mount): Likewise.
13305 (grub_affs_label): Likewise.
13306 (grub_affs_iterate_dir): Likewise.
13307 * fs/sfs.c (grub_sfs_mount): Likewise.
13308 (grub_sfs_iterate_dir): Likewise.
13309 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
13310 * fs/hfs.c (grub_hfs_mount): Likewise.
13311 (grub_hfs_cmp_catkeys): Likewise.
13312 (grub_hfs_find_dir): Likewise.
13313 (grub_hfs_dir): Likewise.
13314 (grub_hfs_label): Likewise.
13315 * fs/jfs.c (grub_jfs_mount): Likewise.
13316 (grub_jfs_opendir): Likewise.
13317 (grub_jfs_getent): Likewise.
13318 (grub_jfs_lookup_symlink): Likewise.
13319 (grub_jfs_label): Likewise.
13320 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
13321 (grub_hfsplus_iterate_dir): Likewise.
13322 (grub_hfsplus_btree_iterate_node): Made static.
13324 * util/grub-emu.c (prefix): New variable.
13325 (grub_machine_set_prefix): New function.
13326 (main): Do not set the environment variable "prefix" here. Only
13327 set PREFIX, which is used later by grub_machine_set_prefix.
13329 * include/grub/video.h: Do not include grub/symbol.h.
13330 (grub_video_register): Not exported. This symbol is not defined in
13332 (grub_video_unregister): Likewise.
13333 (grub_video_iterate): Likewise.
13334 (grub_video_setup): Likewise.
13335 (grub_video_restore): Likewise.
13336 (grub_video_get_info): Likewise.
13337 (grub_video_get_blit_format): Likewise.
13338 (grub_video_set_palette): Likewise.
13339 (grub_video_get_palette): Likewise.
13340 (grub_video_set_viewport): Likewise.
13341 (grub_video_get_viewport): Likewise.
13342 (grub_video_map_color): Likewise.
13343 (grub_video_map_rgb): Likewise.
13344 (grub_video_map_rgba): Likewise.
13345 (grub_video_fill_rect): Likewise.
13346 (grub_video_blit_glyph): Likewise.
13347 (grub_video_blit_bitmap): Likewise.
13348 (grub_video_blit_render_target): Likewise.
13349 (grub_video_scroll): Likewise.
13350 (grub_video_swap_buffers): Likewise.
13351 (grub_video_create_render_target): Likewise.
13352 (grub_video_delete_render_target): Likewise.
13353 (grub_video_set_active_render_target): Likewise.
13355 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
13357 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
13359 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
13360 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
13361 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
13362 instead of $(srcdir)/genkernsyms.sh.
13364 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
13365 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
13366 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
13367 instead of $(srcdir)/genkernsyms.sh.
13369 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
13370 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
13371 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
13372 instead of $(srcdir)/genkernsyms.sh.
13374 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
13375 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
13376 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
13377 instead of $(srcdir)/genkernsyms.sh.
13379 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
13382 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
13384 (gensymlist.sh): New target.
13385 (genkernsyms.sh): Likewise.
13387 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
13388 genkernsyms.sh.in and gensymlist.sh.in.
13390 * genkernsyms.sh: Removed.
13391 * gensymlist.sh: Likewise.
13393 * genkernsyms.sh.in: New file.
13394 * gensymlist.sh.in: Likewise.
13396 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
13398 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
13399 clobber "prefix", since we may have already set it manually.
13401 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
13403 * kern/misc.c (abort): New alias for grub_abort.
13405 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
13407 A new machine-specific function "grub_machine_set_prefix" is
13408 defined. This is called after loading modules, so that a prefix
13409 initialization can use modules. Also, this change adds an
13410 intensive debugging feature for the memory manager via the
13411 configure option "--enable-mm-debug".
13413 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
13416 * kern/sparc64/ieee1275/init.c (abort): Removed.
13417 (grub_stop): Likewise.
13418 (grub_exit): New function.
13419 (grub_set_prefix): Renamed to ...
13420 (grub_machine_set_prefix): ... this.
13421 (grub_machine_init): Do not call grub_set_prefix.
13423 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
13424 (grub_machine_set_prefix): ... this.
13425 (grub_machine_init): Do not call grub_set_prefix.
13427 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
13428 (grub_machine_init): Do not set the prefix here.
13430 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
13432 * kern/efi/init.c: Include grub/mm.h.
13433 (grub_efi_set_prefix): New function.
13435 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
13436 (grub_efi_get_filename): New function.
13437 (grub_print_device_path): Renamed to ...
13438 (grub_efi_print_device_path): ... this.
13440 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
13441 [MM_DEBUG] (grub_realloc): Likewise.
13442 [MM_DEBUG] (grub_free): Likewise.
13443 [MM_DEBUG] (grub_memalign): Likewise.
13444 [MM_DEBUG] (grub_mm_debug): New variable.
13445 [MM_DEBUG] (grub_debug_malloc): New function.
13446 [MM_DEBUG] (grub_debug_free): New function.
13447 [MM_DEBUG] (grub_debug_realloc): New function.
13448 [MM_DEBUG] (grub_debug_memalign): New function.
13450 * kern/misc.c (grub_abort): Print a newline to distinguish
13453 * kern/main.c (grub_main): Call grub_machine_set_prefix and
13454 grub_set_root_dev after loading modules. This is necessary when
13455 setting a prefix depends on modules.
13457 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
13458 (grub_efi_print_device_path): ... this.
13459 (grub_efi_get_filename): New prototype.
13460 (grub_efi_set_prefix): Likewise.
13462 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
13464 (grub_efidisk_get_device_handle): New prototype.
13465 (grub_efidisk_get_device_name): Likewise.
13467 * include/grub/mm.h: Include config.h.
13468 (MM_DEBUG): Removed.
13469 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
13470 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
13471 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
13472 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
13473 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
13474 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
13475 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
13476 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
13477 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
13479 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
13481 * disk/efi/efidisk.c: Include grub/partition.h.
13482 (iterate_child_devices): New function.
13483 (add_device): First, compare only last device path nodes, so that
13484 devices are sorted by the types.
13485 (grub_efidisk_get_device_handle): New function.
13486 (grub_efidisk_get_device_name): Likewise.
13488 * configure.ac (--enable-mm-debug): New option to enable the
13489 memory manager debugging feature. This makes the binary much
13490 bigger, so is disabled by default.
13492 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
13494 Use grub_abort instead of grub_stop, and grub_exit must be
13495 define in each architecture now. Also, this change adds support
13498 * util/i386/pc/grub-probefs.c: Include grub/term.h.
13499 (grub_getkey): New function.
13500 (grub_term_get_current): Likewise.
13502 * util/i386/pc/grub-setup.c: Include grub/term.h.
13503 (grub_getkey): New function.
13504 (grub_term_get_current): Likewise.
13506 * util/misc.c (grub_stop): Renamed to ...
13507 (grub_exit): ... this.
13509 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
13510 (grub_exit): ... this.
13511 (grub_machine_init): Use grub_abort instead of abort.
13512 (grub_stop): Removed.
13514 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
13517 * kern/i386/pc/startup.S (grub_exit): New function.
13518 (cold_reboot): New label.
13520 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
13521 (grub_efi_init): Call grub_efidisk_init.
13522 (grub_efi_fini): Call grub_efidisk_fini.
13524 * kern/efi/efi.c: Include grub/mm.h.
13525 (grub_efi_console_control_guid): Renamed to ...
13526 (console_control_guid): ... this.
13527 (grub_efi_loaded_image_guid): Renamed to ...
13528 (loaded_image_guid): ... this.
13529 (grub_efi_locate_handle): New function.
13530 (grub_efi_open_protocol): Likewise.
13531 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
13532 GRUB_EFI_CONSOLE_CONTROL_GUID.
13533 (grub_efi_exit): Removed.
13534 (grub_stop): Likewise.
13535 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
13536 (grub_exit): New function.
13537 (grub_print_device_path): Likewise.
13539 * kern/rescue.c (grub_rescue_cmd_exit): New function.
13540 (grub_enter_rescue_mode): Register "exit".
13542 * kern/misc.c (grub_real_dprintf): A cosmetic change.
13543 (grub_abort): New function.
13545 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
13547 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
13549 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
13551 * include/grub/efi/efi.h (grub_efi_exit): Removed.
13552 (grub_print_device_path): New prototype.
13553 (grub_efi_locate_handle): Likewise.
13554 (grub_efi_open_protocol): Likewise.
13556 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
13557 * disk/efi/efidisk.c: Likewise.
13559 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
13561 * include/grub/efi/console_control.h
13562 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
13564 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
13565 last 8 bytes as an array.
13566 (GRUB_EFI_DISK_IO_GUID): New macro.
13567 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
13568 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
13569 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
13571 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
13572 (struct grub_efi_device_path): Rename the member "sub_type" to
13574 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
13575 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
13576 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
13577 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
13578 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
13579 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
13580 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
13581 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
13582 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
13583 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
13584 (struct grub_efi_pci_device_path): New structure.
13585 (grub_efi_pci_device_path_t): New type.
13586 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
13587 (struct grub_efi_pccard_device_path): New structure.
13588 (grub_efi_pccard_device_path_t): New type.
13589 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
13590 (struct grub_efi_memory_mapped_device_path): New structure.
13591 (grub_efi_memory_mapped_device_path_t): New type.
13592 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
13593 (struct grub_efi_vendor_device_path): New structure.
13594 (grub_efi_vendor_device_path_t): New type.
13595 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
13596 (struct grub_efi_controller_device_path): New structure.
13597 (grub_efi_controller_device_path_t): New type.
13598 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
13599 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
13600 (struct grub_efi_acpi_device_path): New structure.
13601 (grub_efi_acpi_device_path_t): New type.
13602 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
13603 (struct grub_efi_expanded_acpi_device_path): New structure.
13604 (grub_efi_expanded_acpi_device_path_t): New type.
13605 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
13606 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
13607 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
13608 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
13609 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
13610 (struct grub_efi_atapi_device_path): New structure.
13611 (grub_efi_atapi_device_path_t): New type.
13612 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
13613 (struct grub_efi_fibre_channel_device_path): New structure.
13614 (grub_efi_fibre_channel_device_path_t): New type.
13615 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
13616 (struct grub_efi_1394_device_path): New structure.
13617 (grub_efi_1394_device_path_t): New type.
13618 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
13619 (struct grub_efi_usb_device_path): New structure.
13620 (grub_efi_usb_device_path_t): New type.
13621 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
13622 (struct grub_efi_usb_class_device_path): New structure.
13623 (grub_efi_usb_class_device_path_t): New type.
13624 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
13625 (struct grub_efi_i2o_device_path): New structure.
13626 (grub_efi_i2o_device_path_t): New type.
13627 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
13628 (struct grub_efi_mac_address_device_path): New structure.
13629 (grub_efi_mac_address_device_path_t): New type.
13630 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
13631 (struct grub_efi_ipv4_device_path): New structure.
13632 (grub_efi_ipv4_device_path_t): New type.
13633 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
13634 (struct grub_efi_ipv6_device_path): New structure.
13635 (grub_efi_ipv6_device_path_t): New type.
13636 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
13637 (struct grub_efi_infiniband_device_path): New structure.
13638 (grub_efi_infiniband_device_path_t): New type.
13639 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
13640 (struct grub_efi_uart_device_path): New structure.
13641 (grub_efi_uart_device_path_t): New type.
13642 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
13643 (struct grub_efi_vendor_messaging_device_path): New structure.
13644 (grub_efi_vendor_messaging_device_path_t): New type.
13645 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
13646 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
13647 (struct grub_efi_hard_drive_device_path): New structure.
13648 (grub_efi_hard_drive_device_path_t): New type.
13649 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
13650 (struct grub_efi_cdrom_device_path): New structure.
13651 (grub_efi_cdrom_device_path_t): New type.
13652 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
13653 (struct grub_efi_vendor_media_device_path): New structure.
13654 (grub_efi_vendor_media_device_path_t): New type.
13655 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
13656 (struct grub_efi_file_path_device_path): New structure.
13657 (grub_efi_file_path_device_path_t): New type.
13658 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
13659 (struct grub_efi_protocol_device_path): New structure.
13660 (grub_efi_protocol_device_path_t): New type.
13661 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
13662 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
13663 (struct grub_efi_bios_device_path): New structure.
13664 (grub_efi_bios_device_path_t): New type.
13665 (struct grub_efi_disk_io): New structure.
13666 (grub_efi_disk_io_t): New type.
13667 (struct grub_efi_block_io_media): New structure.
13668 (grub_efi_block_io_media_t): New type.
13669 (struct grub_efi_block_io): New structure.
13670 (grub_efi_block_io_t): New type.
13672 * include/grub/misc.h (grub_stop): Removed.
13673 (grub_exit): New prototype.
13674 (grub_abort): Likewise.
13676 * include/grub/disk.h (enum grub_disk_dev_id): Added
13677 GRUB_DISK_DEVICE_EFIDISK_ID.
13679 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
13680 disk/efi/efidisk.c.
13681 (kernel_syms.lst): Remove the target if an error occurs.
13683 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
13685 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
13686 as it was simply too buggy.
13688 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
13690 * kern/misc.c (grub_lltoa): New function.
13691 (grub_vsprintf): Added support for the long long suffix,
13694 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
13696 * Makefile.in (LDFLAGS): Add variable.
13697 (LD): Remove variable.
13698 * configure.ac: Add -m32 to LDFLAGS.
13699 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
13700 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
13701 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
13702 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
13703 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
13705 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
13706 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
13707 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
13709 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
13711 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
13712 length for unknown glyph.
13714 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
13716 Add support for pre-loaded modules into the EFI port.
13718 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
13719 completely. Accept one more argument DIR. The caller has changed.
13721 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
13723 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
13724 (grub_efi_loaded_image_guid): New variable.
13725 (grub_efi_get_loaded_image): New function.
13726 (grub_arch_modules_addr): Likewise.
13728 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
13731 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
13732 (struct grub_efi_loaded_image): New structure.
13733 (grub_efi_loaded_image_t): New type.
13735 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
13737 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
13738 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
13739 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
13741 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
13743 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
13745 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
13747 * DISTLIST: Added include/grub/efi/console.h,
13748 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
13749 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
13751 * include/grub/efi/console.h: New file.
13752 * include/grub/efi/time.h: Likewise.
13753 * include/grub/i386/efi/kernel.h: Likewise.
13754 * kern/efi/init.c: Likewise.
13755 * kern/efi/mm.c: Likewise.
13756 * term/efi/console.c: Likewise.
13758 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
13759 (grub_stop): Removed.
13760 (grub_get_rtc): Likewise.
13761 (grub_machine_init): Simply call grub_efi_init.
13762 (grub_machine_fini): Call grub_efi_fini.
13764 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
13765 (grub_efi_output_string): Removed.
13766 (grub_efi_stall): New function.
13767 (grub_stop): Likewise.
13768 (grub_get_rtc): Likewise.
13770 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
13771 (grub_efi_stall): New prototype.
13772 (grub_efi_allocate_pages): Likewise.
13773 (grub_efi_free_pages): Likewise.
13774 (grub_efi_get_memory_map): Likewise.
13775 (grub_efi_mm_init): Likewise.
13776 (grub_efi_mm_fini): Likewise.
13777 (grub_efi_init): Likewise.
13778 (grub_efi_fini): Likewise.
13780 * include/grub/i386/efi/time.h: Do not include
13781 grub/symbol.h. Include grub/efi/time.h.
13782 (GRUB_TICKS_PER_SECOND): Removed.
13783 (grub_get_rtc): Likewise.
13785 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
13786 Added padding. The EFI spec is buggy.
13787 (GRUB_EFI_BLACK): New macro.
13788 (GRUB_EFI_BLUE): Likewise.
13789 (GRUB_EFI_GREEN): Likewise.
13790 (GRUB_EFI_CYAN): Likewise.
13791 (GRUB_EFI_RED): Likewise.
13792 (GRUB_EFI_MAGENTA): Likewise.
13793 (GRUB_EFI_BROWN): Likewise.
13794 (GRUB_EFI_LIGHTGRAY): Likewise.
13795 (GRUB_EFI_BRIGHT): Likewise.
13796 (GRUB_EFI_DARKGRAY): Likewise.
13797 (GRUB_EFI_LIGHTBLUE): Likewise.
13798 (GRUB_EFI_LIGHTGREEN): Likewise.
13799 (GRUB_EFI_LIGHTCYAN): Likewise.
13800 (GRUB_EFI_LIGHTRED): Likewise.
13801 (GRUB_EFI_LIGHTMAGENTA): Likewise.
13802 (GRUB_EFI_YELLOW): Likewise.
13803 (GRUB_EFI_WHITE): Likewise.
13804 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
13805 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
13806 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
13807 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
13808 (GRUB_EFI_BACKGROUND_RED): Likewise.
13809 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
13810 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
13811 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
13812 (GRUB_EFI_TEXT_ATTR): Likewise.
13814 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
13815 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
13816 (kernel_mod_HEADERS): Added efi/time.h.
13818 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
13820 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
13821 include/grub/efi/api.h, include/grub/efi/console_control.h,
13822 include/grub/efi/efi.h, include/grub/efi/pe32.h,
13823 include/grub/i386/efi/time.h, kern/efi/efi.c,
13824 kern/i386/efi/init.c, kern/i386/efi/startup.S,
13825 and util/i386/efi/grub-mkimage.c.
13827 * Makefile.in (RMKFILES): Added i386-efi.rmk.
13829 * genmk.rb (PModule#rule): Do not export symbols if
13830 #{prefix}_EXPORTS is set to "no".
13832 * conf/i386-efi.mk: New file.
13833 * conf/i386-efi.rmk: Likewise.
13834 * include/grub/efi/api.h: Likewise.
13835 * include/grub/efi/console_control.h: Likewise.
13836 * include/grub/efi/efi.h: Likewise.
13837 * include/grub/efi/pe32.h: Likewise.
13838 * include/grub/i386/efi/time.h: Likewise.
13839 * kern/efi/efi.c: Likewise.
13840 * kern/i386/efi/init.c: Likewise.
13841 * kern/i386/efi/startup.S: Likewise.
13842 * util/i386/efi/grub-mkimage.c: Likewise.
13844 2006-04-17 Marco Gerards <marco@gnu.org>
13846 * include/grub/script.h: Include <grub/parser.h> and
13847 "grub_script.tab.h".
13848 (struct grub_lexer_param): New struct.
13849 (struct grub_parser_param): Likewise.
13850 (grub_script_create_arglist): Pass the state in an argument.
13851 (grub_script_add_arglist): Likewise.
13852 (grub_script_create_cmdline): Likewise.
13853 (grub_script_create_cmdblock): Likewise.
13854 (grub_script_create_cmdif): Likewise.
13855 (grub_script_create_cmdmenu): Likewise.
13856 (grub_script_add_cmd): Likewise.
13857 (grub_script_arg_add): Likewise.
13858 (grub_script_lexer_ref): Likewise.
13859 (grub_script_lexer_deref): Likewise.
13860 (grub_script_lexer_record_start): Likewise.
13861 (grub_script_lexer_record_stop): Likewise.
13862 (grub_script_mem_record): Likewise.
13863 (grub_script_mem_record_stop): Likewise.
13864 (grub_script_malloc): Likewise.
13865 (grub_script_yylex): Likewise.
13866 (grub_script_yyparse): Likewise.
13867 (grub_script_yyerror): Likewise.
13868 (grub_script_yylex): Likewise.
13869 (grub_script_lexer_init): Return the state.
13871 * normal/lexer.c (grub_script_lexer_state): Removed variable.
13872 (grub_script_lexer_done): Likewise.
13873 (grub_script_lexer_getline): Likewise.
13874 (grub_script_lexer_refs): Likewise.
13875 (script): Likewise.
13876 (newscript): Likewise.
13877 (record): Likewise.
13878 (recording): Likewise.
13879 (recordpos): Likewise.
13880 (recordlen): Likewise.
13881 (grub_script_lexer_init): Return the state instead of setting
13883 (grub_script_lexer_ref): Use the newly added argument for state
13884 instead of globals.
13885 (grub_script_lexer_deref): Likewise.
13886 (grub_script_lexer_record_start): Likewise.
13887 (grub_script_lexer_record_stop): Likewise.
13888 (recordchar): Likewise.
13889 (nextchar): Likewise.
13890 (grub_script_yylex2): Likewise.
13891 (grub_script_yylex): Likewise.
13892 (grub_script_yyerror): Likewise.
13894 * normal/parser.y (func_mem): Removed variable.
13895 (menu_entry): Likewise.
13897 (%lex-param): New parser option.
13898 (%parse-param): Likewise.
13899 (script): Always return the AST.
13900 (argument): Pass the state around.
13901 (arguments): Likewise.
13902 (grubcmd): Likewise.
13903 (commands): Likewise.
13904 (function): Likewise.
13905 (menuentry): Likewise.
13906 (if_statement): Likewise.
13909 * normal/script.c (grub_script_memused): Removed variable.
13910 (grub_script_parsed): Likewise.
13911 (grub_script_malloc): Added a state argument. Use that instead of
13913 (grub_script_mem_record): Likewise.
13914 (grub_script_mem_record_stop): Likewise.
13915 (grub_script_arg_add): Likewise.
13916 (grub_script_add_arglist): Likewise.
13917 (grub_script_create_cmdline): Likewise.
13918 (grub_script_create_cmdif): Likewise.
13919 (grub_script_create_cmdmenu): Likewise.
13920 (grub_script_add_cmd): Likewise.
13921 (grub_script_parse): Setup the state before calling the parser.
13923 2006-04-16 Marco Gerards <marco@gnu.org>
13925 * normal/command.c (grub_command_init): Remove the title command.
13927 * normal/lexer.c (grub_script_yylex): Renamed from this...
13928 (grub_script_yylex2): ... to this.
13929 (grub_script_yylex): New function. Temporary
13930 introduced to filter some tokens.
13931 (grub_script_yyerror): Print a newline.
13933 * normal/main.c (read_config_file): Output information about the
13934 lines that contain errors. Wait for a key after all lines have
13935 been processed. Don't return an empty menu.
13937 * normal/parser.y (func_mem): Don't initialize.
13938 (menu_entry): Likewise.
13939 (err): New variable.
13940 (script): Don't return anything when an error was encountered.
13941 (ws, returns): Removed rules.
13942 (argument): Disabled concatenated variable support.
13943 (arguments): Remove explicit separators.
13944 (grubcmd): Likewise.
13945 (function): Likewise.
13946 (menuentry): Likewise.
13948 (commands): Likewise. Add error handling.
13950 * normal/script.c (grub_script_create_cmdline): If
13951 `grub_script_parsed' is 0, assume the parser encountered an error.
13953 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
13955 * configure.ac: Add support for EFI. Fix the typo
13956 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
13958 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
13960 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
13961 foreign multibyte characters should be shown correctly.
13963 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
13965 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
13967 (read_config_file): Made it to close file before returning.
13969 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
13971 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
13972 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
13973 video/i386/pc/vbefill.c.
13975 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
13976 video/i386/pc/vbefill.c.
13978 * include/grub/video.h (grub_video_blit_format): New enum.
13979 (grub_video_mode_info): Added new member blit_format.
13980 (grub_video_get_blit_format): New function prototype.
13982 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
13983 function prototype.
13984 (grub_video_vbe_map_rgb): Likewise.
13985 (grub_video_vbe_unmap_color): Likewise.
13987 * include/grub/i386/pc/vbeblit.h: New file.
13989 * include/grub/i386/pc/vbefill.h: New file.
13991 * video/video.c (grub_video_get_blit_format): New function.
13992 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
13993 (grub_video_vbe_map_rgb): Likewise.
13994 (grub_video_vbe_unmap_color): Likewise.
13996 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
13998 (grub_video_vbe_blit_render_target): Changed to use more optimized
14000 (grub_video_vbe_setup): Added detection for optimized settings.
14001 (grub_video_vbe_create_render_target): Likewise.
14003 * video/i386/pc/vbeblit.c: New file.
14005 * video/i386/pc/vbefill.c: New file.
14007 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
14009 * font/manager.c (grub_font_get_glyph): Removed font fixup from
14012 * util/unifont2pff.rb: ... and moved it to here. Improved argument
14013 parsing to support both hex and dec ranges. If filename was missing
14014 show usage information.
14016 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
14018 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
14019 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
14021 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
14022 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
14023 (video_mod_SOURCES): Added.
14024 (video_mod_CFLAGS): Likewise.
14025 (video_mod_LDFLAGS): Likewise.
14026 (gfxterm_mod_SOURCES): Likewise.
14027 (gfxterm_mod_CFLAGS): Likewise.
14028 (gfxterm_mod_LDFLAGS): Likewise.
14029 (videotest_mod_SOURCES): Likewise.
14030 (videotest_mod_CFLAGS): Likewise.
14031 (videotest_mod_LDFLAGS): Likewise.
14032 (vesafb_mod_SOURCES): Removed.
14033 (vesafb_mod_CFLAGS): Likewise.
14034 (vesafb_mod_LDFLAGS): Likewise.
14035 (vga_mod_SOURCES): Likewise.
14036 (vga_mod_CFLAGS): Likewise.
14037 (vga_mod_LDFLAGS): Likewise.
14039 * commands/videotest.c: New file.
14041 * font/manager.c (fill_with_default_glyph): Modified to use
14043 (grub_font_get_glyph): Likewise.
14044 (fontmanager): Renamed from this...
14045 (font_manager): ... to this.
14047 * include/grub/font.h (grub_font_glyph): Added new structure.
14048 (grub_font_get_glyph): Modified to use grub_font_glyph.
14050 * include/grub/misc.h (grub_abs): Added as inline function.
14052 * include/grub/video.h: New file.
14054 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
14055 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
14056 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
14057 (grub_vbe_get_controller_info): Renamed from this...
14058 (grub_vbe_bios_get_controller_info): ... to this.
14059 (grub_vbe_get_mode_info): Renamed from this...
14060 (grub_vbe_bios_get_mode_info): ... to this.
14061 (grub_vbe_set_mode): Renamed from this...
14062 (grub_vbe_bios_set_mode): ... to this.
14063 (grub_vbe_get_mode): Renamed from this...
14064 (grub_vbe_bios_get_mode): ... to this.
14065 (grub_vbe_set_memory_window): Renamed from this...
14066 (grub_vbe_bios_set_memory_window): ... to this.
14067 (grub_vbe_get_memory_window): Renamed from this...
14068 (grub_vbe_bios_get_memory_window): ... to this.
14069 (grub_vbe_set_scanline_length): Renamed from this...
14070 (grub_vbe_set_scanline_length): ... to this.
14071 (grub_vbe_get_scanline_length): Renamed from this...
14072 (grub_vbe_bios_get_scanline_length): ... to this.
14073 (grub_vbe_set_display_start): Renamed from this...
14074 (grub_vbe_bios_set_display_start): ... to this.
14075 (grub_vbe_get_display_start): Renamed from this...
14076 (grub_vbe_bios_get_display_start): ... to this.
14077 (grub_vbe_set_palette_data): Renamed from this...
14078 (grub_vbe_bios_set_palette_data): ... to this.
14079 (grub_vbe_set_pixel_rgb): Removed.
14080 (grub_vbe_set_pixel_index): Likewise.
14082 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
14084 (grub_vbe_bios_get_controller_info): ... to this.
14085 (grub_vbe_get_mode_info): Renamed from this...
14086 (grub_vbe_bios_get_mode_info): ... to this.
14087 (grub_vbe_set_mode): Renamed from this...
14088 (grub_vbe_bios_set_mode): ... to this.
14089 (grub_vbe_get_mode): Renamed from this...
14090 (grub_vbe_bios_get_mode): ... to this.
14091 (grub_vbe_set_memory_window): Renamed from this...
14092 (grub_vbe_bios_set_memory_window): ... to this.
14093 (grub_vbe_get_memory_window): Renamed from this...
14094 (grub_vbe_bios_get_memory_window): ... to this.
14095 (grub_vbe_set_scanline_length): Renamed from this...
14096 (grub_vbe_set_scanline_length): ... to this.
14097 (grub_vbe_get_scanline_length): Renamed from this...
14098 (grub_vbe_bios_get_scanline_length): ... to this.
14099 (grub_vbe_set_display_start): Renamed from this...
14100 (grub_vbe_bios_set_display_start): ... to this.
14101 (grub_vbe_get_display_start): Renamed from this...
14102 (grub_vbe_bios_get_display_start): ... to this.
14103 (grub_vbe_set_palette_data): Renamed from this...
14104 (grub_vbe_bios_set_palette_data): ... to this.
14105 (grub_vbe_bios_get_controller_info): Fixed problem with registers
14106 getting corrupted after calling it. Added more pushes and pops.
14107 (grub_vbe_bios_set_mode): Likewise.
14108 (grub_vbe_bios_get_mode): Likewise.
14109 (grub_vbe_bios_get_memory_window): Likewise.
14110 (grub_vbe_bios_set_scanline_length): Likewise.
14111 (grub_vbe_bios_get_scanline_length): Likewise.
14112 (grub_vbe_bios_get_display_start): Likewise.
14113 (grub_vbe_bios_set_palette_data): Likewise.
14115 * normal/cmdline.c (cl_set_pos): Refresh the screen.
14116 (cl_insert): Likewise.
14117 (cl_delete): Likewise.
14119 * term/gfxterm.c: New file.
14121 * term/i386/pc/vesafb.c: Removed file.
14123 * video/video.c: New file.
14125 * video/i386/pc/vbe.c (real2pm): Added new function.
14126 (grub_video_vbe_draw_pixel): Likewise.
14127 (grub_video_vbe_get_video_ptr): Likewise.
14128 (grub_video_vbe_get_pixel): Likewise
14129 (grub_video_vbe_init): Likewise.
14130 (grub_video_vbe_fini): Likewise.
14131 (grub_video_vbe_setup): Likewise.
14132 (grub_video_vbe_get_info): Likewise.
14133 (grub_video_vbe_set_palette): Likewise.
14134 (grub_video_vbe_get_palette): Likewise.
14135 (grub_video_vbe_set_viewport): Likewise.
14136 (grub_video_vbe_get_viewport): Likewise.
14137 (grub_video_vbe_map_color): Likewise.
14138 (grub_video_vbe_map_rgb): Likewise.
14139 (grub_video_vbe_map_rgba): Likewise.
14140 (grub_video_vbe_unmap_color): Likewise.
14141 (grub_video_vbe_fill_rect): Likewise.
14142 (grub_video_vbe_blit_glyph): Likewise.
14143 (grub_video_vbe_blit_bitmap): Likewise.
14144 (grub_video_vbe_blit_render_target): Likewise.
14145 (grub_video_vbe_scroll): Likewise.
14146 (grub_video_vbe_swap_buffers): Likewise.
14147 (grub_video_vbe_create_render_target): Likewise.
14148 (grub_video_vbe_delete_render_target): Likewise.
14149 (grub_video_vbe_set_active_render_target): Likewise.
14150 (grub_vbe_set_pixel_rgb): Remove function.
14151 (grub_vbe_set_pixel_index): Likewise.
14152 (index_color_mode): Remove static variable.
14153 (active_mode): Likewise.
14154 (framebuffer): Likewise.
14155 (bytes_per_scan_line): Likewise.
14156 (grub_video_vbe_adapter): Added new static variable.
14157 (framebuffer): Likewise.
14158 (render_target): Likewise.
14159 (initial_mode): Likewise.
14160 (mode_in_use): Likewise.
14161 (mode_list): Likewise.
14163 2006-03-10 Marco Gerards <marco@gnu.org>
14165 * configure.ac (AC_INIT): Bumped to 1.93.
14167 * DISTLIST: Added `include/grub/hfs.h'.
14169 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
14171 * boot/i386/pc/boot.S (general_error): Before looping, try INT
14172 18H, which might help the BIOS falling back to next boot media.
14174 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
14176 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
14177 Poe Chen <poe.poechen@gmail.com>.
14179 2006-01-17 Marco Gerards <marco@gnu.org>
14181 * include/grub/normal.h: Include <grub/script.h>.
14182 (grub_command_list): Removed struct.
14183 (grub_command_list_t): Removed type.
14184 (grub_menu_entry): Remove members `num' and `command_list'. Add
14185 members `commands' and `sourcecode'.
14186 * include/grub/script.h: Add inclusion guards.
14187 (grub_script_cmd_menuentry): New struct.
14188 (grub_script_execute_menuentry): New prototype.
14189 (grub_script_lexer_record_start): Likewise.
14190 (grub_script_lexer_record_stop): Likewise.
14191 * normal/execute.c (grub_script_execute_menuentry): New function.
14192 * normal/lexer.c (record, recording, recordpos, recordlen): New
14194 (grub_script_lexer_record_start): New function.
14195 (grub_script_lexer_record_stop): Likewise.
14196 (recordchar): Likewise.
14197 (nextchar): Likewise.
14198 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
14199 2048 as the buffer size. Add the tokens `menuentry' and `@'.
14200 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
14201 (current_menu): New variable.
14202 (free_menu): Mainly rewritten.
14203 (grub_normal_menu_addentry): New function.
14204 (read_config_file): Rewritten.
14205 * normal/menu.c (run_menu_entry): Mainly rewritten.
14206 * normal/menu_entry.c (make_screen): Rewritten the code to insert
14208 (run): Mainly rewritten.
14209 * normal/parser.y (menu_entry): New variable.
14210 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
14211 (menuentry): New rule.
14212 (command): Add `menuentry'.
14213 (if_statement): Allow additional returns before `fi'.
14214 * normal/script.c (grub_script_create_cmdmenu): New function.
14216 2006-01-03 Marco Gerards <marco@gnu.org>
14218 * INSTALL: GNU Bison is required.
14219 * configure.ac: Rewritten the test to detect Bison.
14220 * Makefile.in (YACC): New variable. Reported by Xun Sun
14221 <xun.sun.cn@gmail.com>.
14223 2006-01-03 Marco Gerards <marco@gnu.org>
14225 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
14226 the HFS+ filesystem to filesystem blocks.
14227 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
14228 GCC warning is silenced.
14230 2006-01-03 Marco Gerards <marco@gnu.org>
14232 * partmap/apple.c (apple_partition_map_iterate): Convert the data
14233 read from disk from big endian to host byte order.
14235 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
14237 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
14239 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
14240 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
14241 embedded HFS+ filesystem.
14242 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
14243 (grub_hfs_sblock): Move from here...
14244 * include/grub/hfs.h: To here... New file.
14245 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
14247 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
14249 (grub_hfsplus_volheader): Change type of member `magic' to
14251 (grub_hfsplus_data): Add new member `embedded_offset'.
14252 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
14254 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
14255 Calculate the offset.
14257 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
14259 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
14261 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
14263 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
14265 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
14266 ENV->NAME is NULL after allocating ENV->VALUE.
14268 2005-12-25 Marco Gerards <marco@gnu.org>
14270 * kern/env.c (grub_env_set): Rewritten the error handling code.
14272 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
14274 * geninit.sh: Made more robust, and more portable.
14276 2005-12-25 Marco Gerards <marco@gnu.org>
14278 Add support for Apple HFS+ filesystems.
14280 * fs/hfsplus.c: New file.
14282 * DISTLIST: Added `fs/hfsplus.c'.
14284 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
14285 (hfsplus_mod_SOURCES): New variable.
14286 (hfsplus_mod_CFLAGS): Likewise.
14287 (hfsplus_mod_LDFLAGS): Likewise.
14288 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
14289 (grub_setup_SOURCES): Likewise.
14290 (grub_mkdevicemap_SOURCES): Likewise.
14291 (grub_emu_SOURCES): Likewise.
14292 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14294 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
14296 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
14298 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
14300 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
14301 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
14302 include/grub/parser.h, include/grub/script.h, kern/parser.c,
14303 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
14304 normal/lexer.c, normal/parser.y, normal/script.c, and
14306 Removed kern/sparc64/cache.c.
14308 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
14309 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
14312 * configure.ac (AC_INIT): Bumped to 1.92.
14314 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
14316 * kern/err.c (grub_error_push): Added new function to support error
14318 (grub_error_pop): Likewise.
14319 (grub_error_stack_items): New local variable to support error stacks.
14320 (grub_error_stack_pos): Likewise.
14321 (grub_error_stack_assert): Likewise.
14322 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
14324 (grub_print_error): Added support to print errors from error stack.
14326 * include/grub/err.h (grub_error_push): Added function prototype.
14327 (grub_error_pop): Likewise.
14329 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
14331 * configure.ac: Accept `powerpc64' as host_cpu.
14332 (amd64): Rename to `biarch32'.
14334 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
14335 non-cacheline-aligned addresses.
14337 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
14338 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
14339 if `size' is non-zero.
14341 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
14343 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
14344 and `cd' to make sure the filename is not prefixed with a
14346 (pkgdata_MODULES): Add `gpt.mod'.
14347 (gpt_mod_SOURCES): New variable.
14348 (gpt_mod_CFLAGS): Likewise.
14349 (gpt_mod_LDFLAGS): Likewise.
14351 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
14353 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
14356 * partmap/gpt.c: New file.
14358 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
14359 GPT partition map is detected.
14361 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
14363 * commands/i386/pc/play.c: New file.
14364 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
14365 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
14368 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
14370 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
14371 ((unused))' to silence gcc warning.
14373 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
14375 * configure.ac: Correct `AC_PROG_YACC' test.
14377 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
14379 * util/powerpc/ieee1275/grub-install.in: Run the mount point
14380 check before installing files.
14382 2005-11-22 Mike Small <smallm@panix.com>
14384 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
14385 number regex so multidigit numbers are recognized correctly.
14387 2005-11-22 Mike Small <smallm@panix.com>
14389 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
14390 debugging message before attempting to claim memory.
14391 (grub_rescue_cmd_initrd): Add a claim debugging message and try
14392 multiple addresses in case of failure.
14394 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
14396 * term/tparm.c (get_space): Remove empty `if' statement.
14398 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
14400 * kern/parser.c (check_varstate): Rename `state' to 's'.
14402 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
14404 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
14405 variable definitions to the beginning of each function. Sort stack
14407 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
14408 `buf' argument to `char *'.
14410 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
14412 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
14413 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
14414 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
14415 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
14416 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
14417 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
14418 configfile.mod, search.mod, gzio.mod and test.mod.
14419 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
14420 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
14421 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
14422 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
14423 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
14424 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
14425 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
14426 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
14427 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
14428 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
14429 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
14430 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
14431 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
14432 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
14433 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
14434 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
14435 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
14436 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
14437 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
14438 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
14439 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
14440 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
14441 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
14443 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
14445 (pkgdata_MODULES): Add test.mod.
14447 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
14449 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
14450 appending to variables with "+=".
14451 (PModule): Use full pathname to generate *.lst filenames.
14453 * Makefile.in: Fixed list rules moved from genmk.rb.
14454 (.DELETE_ON_ERROR): New special target.
14455 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
14457 * conf/i386-pc.rmk: Include conf/common.mk.
14458 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
14459 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
14460 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
14461 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
14462 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
14463 configfile.mod, search.mod, gzio.mod and test.mod.
14464 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
14465 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
14466 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
14467 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
14468 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
14469 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
14470 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
14471 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
14472 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
14473 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
14474 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
14475 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
14476 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
14477 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
14478 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
14479 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
14480 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
14481 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
14482 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
14483 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
14484 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
14485 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
14486 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
14488 * conf/common.rmk: ... to here. New file.
14490 * conf/common.mk: New file.
14492 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
14494 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
14495 (grub_script.tab.c): ... here.
14497 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
14498 (grub_script.tab.c): ... here.
14500 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
14501 (grub_script.tab.c): ... here.
14503 * normal/command.c (grub_command_find): Fixed a memory leak of
14504 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
14506 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
14508 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
14509 "@" which marks the start of a comment on ARM.
14510 (VARIABLE): Likewise.
14512 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
14514 Add support for Linux/ADFS partition tables.
14516 * partmap/acorn.c: New file.
14518 * include/grub/acorn_filecore.h: Likewise.
14520 * DISTLIST: Added `partmap/acorn.c' and
14521 `include/grub/acorn_filecore.h'.
14523 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
14525 (pkgdata_MODULES): Add `acorn.mod'.
14526 (acorn_mod_SOURCES): New variable.
14527 (acorn_mod_CFLAGS): Likewise.
14529 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
14531 (pkgdata_MODULES): Add `acorn.mod'.
14532 (acorn_mod_SOURCES): New variable.
14533 (acorn_mod_CFLAGS): Likewise.
14535 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
14536 (pkgdata_MODULES): Add `acorn.mod'.
14537 (acorn_mod_SOURCES): New variable.
14538 (acorn_mod_CFLAGS): Likewise.
14539 (acorn_mod_LDFLAGS): Likewise.
14541 * include/types.h (grub_disk_addr_t): New typedef.
14543 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
14545 * geninit.sh: New file.
14547 * geninitheader.sh: Likewise.
14549 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
14550 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
14551 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
14552 * commands/configfile.c (grub_configfile_init)
14553 (grub_configfile_fini): Likewise.
14554 * commands/default.c (grub_default_init, grub_default_fini):
14556 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
14557 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
14558 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
14559 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
14561 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
14562 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
14564 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
14565 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
14567 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
14569 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
14571 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
14572 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
14573 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
14574 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
14575 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
14576 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
14577 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
14578 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
14579 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
14580 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
14581 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
14582 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
14583 * partmap/amiga.c (grub_amiga_partition_map_init)
14584 (grub_amiga_partition_map_fini): Likewise.
14585 * partmap/apple.c (grub_apple_partition_map_init)
14586 (grub_apple_partition_map_fini): Likewise.
14587 * partmap/pc.c (grub_pc_partition_map_init)
14588 (grub_pc_partition_map_fini): Likewise.
14589 * partmap/sun.c (grub_sun_partition_map_init,
14590 grub_sun_partition_map_fini): Likewise.
14591 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
14594 * util/grub-emu.c: Include <grub_modules_init.h>.
14595 (main): Don't initialize and de-initialize any modules directly,
14596 use `grub_init_all' and `grub_fini_all' instead.
14598 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
14599 `grub_vesafb_mod_init'.
14600 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
14602 * term/i386/pc/vga.c (grub_vga_init): Renamed to
14603 `grub_vga_mod_init'. Updated all users.
14604 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
14606 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
14607 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
14610 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
14611 Generate a function to initialize the module in utilities.
14612 Updated all callers.
14613 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
14614 initialize the module in utilities. Updated all callers.
14616 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
14618 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
14619 escape sequence and a literal ^L to clear the screen.
14621 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
14622 when returning from Open Firmware.
14624 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
14626 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
14627 (grub_ofconsole_height): Likewise.
14628 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
14629 manually insert a '\n'.
14630 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
14631 `grub_ofconsole_height'. Return early if these are already set.
14633 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
14635 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
14636 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
14637 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
14638 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
14639 and `normal/script.c'.
14640 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
14641 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
14642 (test_mod_SOURCES): New variable.
14643 (test_mod_CFLAGS): Likewise.
14644 (test_mod_LDFLAGS): Likewise.
14645 (pkgdata_MODULES): Add `test.mod'.
14646 (grub_script.tab.c): New rule.
14647 (grub_script.tab.h): Likewise.
14649 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
14651 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
14652 `commands/test.c', `normal/execute.c', `normal/lexer.c',
14653 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
14654 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
14655 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
14656 (test_mod_SOURCES): New variable.
14657 (test_mod_CFLAGS): Likewise.
14658 (pkgdata_MODULES): Add `test.mod'.
14659 (grub_script.tab.c): New rule.
14660 (grub_script.tab.h): Likewise.
14662 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
14664 Add initial scripting support.
14666 * commands/test.c: New file.
14667 * include/grub/script.h: Likewise.
14668 * normal/execute.c: Likewise.
14669 * normal/function.c: Likewise.
14670 * normal/lexer.c: Likewise.
14671 * normal/parser.y: Likewise.
14672 * normal/script.c: Likewise.
14674 * configure.ac: Add `AC_PROG_YACC' test.
14676 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
14677 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
14678 `normal/function.c' and `normal/script.c'.
14679 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
14680 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
14681 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
14683 (pkgdata_MODULES): Add `test.mod'.
14684 (grub_script.tab.c): New rule.
14685 (grub_script.tab.h): Likewise.
14687 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
14689 * include/grub/normal.h (grub_test_init): New prototype.
14690 (grub_test_fini): Likewise.
14692 * normal/command.c: Include <grub/script.h>.
14693 (grub_command_execute): Rewritten.
14695 * util/grub-emu.c (main): Call `grub_test_init' and
14698 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
14700 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
14702 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
14703 there are no pending characters.
14705 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
14707 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
14708 `grub_strndup' to drop device arguments. Replace unnecessary
14709 `grub_strndup' with `grub_strdup'.
14711 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
14713 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
14714 `debug' environment variable has been set.
14716 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
14718 * Makefile.in (install-local): Use $(DATA).
14719 (uninstall): Likewise.
14720 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
14721 (sbin_UTILITIES): ... to here.
14722 (sbin_SCRIPTS): New variable.
14723 (grub_install_SOURCES): New variable.
14724 * util/powerpc/ieee1275/grub-install.in: New file.
14725 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
14727 (add_segments): Call `grub_util_get_path'.
14729 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
14731 From Timothy Baldwin:
14732 * commands/ls.c (grub_ls_list_files): Close FILE with
14734 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
14736 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
14738 * include/grub/parser.h: New file.
14740 * kern/parser.c: Likewise.
14742 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
14743 (grub_setup_SOURCES): Likewise.
14744 (grub_probefs_SOURCES): Likewise.
14745 (grub_emu_SOURCES): Likewise.
14746 (kernel_img_HEADERS): Add `parser.h'.
14748 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
14749 (grub_emu_SOURCES): Add `kern/parser.c'.
14750 (grubof_SOURCES): Likewise.
14752 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
14753 (grubof_SOURCES): Add `kern/parser.c'.
14755 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
14757 * kern/misc.c (grub_split_cmdline): Removed function.
14759 * kern/rescue.c: Include <grub/parser.h>.
14760 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
14761 of `grub_split_cmdline'.
14763 * normal/command.c: Include <grub/parser.h>.
14764 (grub_command_execute): Use `grub_parser_split_cmdline' instead
14765 of `grub_split_cmdline'.
14767 * normal/completion.c: Include <grub/parser.h>.
14768 (cmdline_state): New variable.
14769 (iterate_dir): End the filename with a quote depending on the
14770 command line state.
14771 (get_state): new function.
14772 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
14773 split the arguments and determine the current argument. When the
14774 argument string is not quoted, escape all spaces.
14776 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
14778 * normal/sparc64/setjmp.S: New file.
14780 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
14782 * include/grub/sparc64/libgcc.h: New file.
14783 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
14784 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
14785 normal/sparc64/setjmp.c.
14787 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
14789 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
14790 * kern/sparc64/cache.S: New file.
14791 * kern/sparc64/cache.c: Removed.
14792 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
14793 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
14795 (COMMON_LDFLAGS): Add -melf64_sparc.
14796 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
14797 (grubof_SOURCES): Use cache.S instead of cache.c.
14798 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
14799 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
14800 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
14802 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
14803 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
14804 (linux_mod_CFLAGS): Commented out.
14805 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
14806 out because module isn't built.
14807 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
14808 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
14809 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
14810 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
14811 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
14812 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
14813 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
14814 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
14815 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
14816 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
14817 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
14818 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
14819 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
14820 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
14822 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
14824 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
14825 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
14826 longer, because HFS should not be used on PC.
14828 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
14830 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
14831 consistently within the loop.
14833 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
14835 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
14836 directory can not be read.
14838 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
14840 * configure.ac (AC_INIT): Increase the version number to 1.91.
14842 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
14843 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
14844 term/i386/pc/serial.c.
14846 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
14848 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
14849 file size must be permitted.
14851 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
14852 between %ah and %al.
14854 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
14856 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
14858 Call the hook with a NUL-terminated filename.
14859 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
14862 * kern/term.c (cursor_state): New variable.
14863 (grub_term_set_current): Reset the cursor state on a new
14865 (grub_setcursor): Rewritten to use CURSOR_STATE.
14866 (grub_getcursor): New function.
14868 * include/grub/term.h (grub_getcursor): New prototype.
14870 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
14871 integers on ARM. Reported by Timothy Baldwin
14872 <T.E.Baldwin99@members.leeds.ac.uk>.
14874 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
14876 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
14878 (grub_sfs_dir): Likewise.
14880 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
14882 Add support for the SFS filesystem.
14884 * fs/sfs.c: New file.
14886 * DISTLIST: Added `fs/sfs.c'.
14888 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
14889 (grub_probefs_SOURCES): Likewise.
14890 (grub_emu_SOURCES): Likewise.
14891 (pkgdata_MODULES): Add `sfs.mod'.
14892 (sfs_mod_SOURCES): New variable.
14893 (sfs_mod_CFLAGS): Likewise.
14894 (sfs_mod_LDFLAGS): Likewise.
14896 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
14897 (pkgdata_MODULES): Add `sfs.mod'.
14898 (sfs_mod_SOURCES): New variable.
14899 (sfs_mod_CFLAGS): Likewise.
14901 * util/grub-emu.c (main): Call `grub_sfs_init' and
14904 * include/grub/fs.h (grub_sfs_init): New prototype.
14905 (grub_sfs_fini): Likewise.
14907 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
14909 Add support for the AFFS filesystem.
14911 * fs/affs.c: New file.
14913 * DISTLIST: Added `fs/affs.c'.
14915 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
14916 (grub_probefs_SOURCES): Likewise.
14917 (grub_emu_SOURCES): Likewise.
14918 (pkgdata_MODULES): Add `affs.mod'.
14919 (affs_mod_SOURCES): New variable.
14920 (affs_mod_CFLAGS): Likewise.
14921 (affs_mod_LDFLAGS): Likewise.
14923 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
14924 (pkgdata_MODULES): Add `affs.mod'.
14925 (affs_mod_SOURCES): New variable.
14926 (affs_mod_CFLAGS): Likewise.
14928 * util/grub-emu.c (main): Call `grub_affs_init' and
14931 * include/grub/fs.h (grub_affs_init): New prototype.
14932 (grub_affs_fini): Likewise.
14934 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
14936 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
14938 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
14940 * configure.ac: Accept `x86_64' as host_cpu. In that case add
14943 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
14946 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
14947 (COMMON_LDFLAGS): New variable.
14948 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
14949 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
14950 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
14951 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
14952 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
14953 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
14954 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
14955 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
14956 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
14957 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
14958 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
14959 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
14960 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
14961 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
14962 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
14964 (normal_mod_ASFLAGS): Add `-m32'.
14966 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
14967 (grub_host_size_t, grub_host_ssize_t): New types.
14968 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
14969 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
14970 `GRUB_HOST_SIZEOF_VOID_P'.
14972 * include/grub/kernel.h (struct grub_module_header): Type of
14973 member offset changed to `grub_host_off_t'. Type of member size
14974 changed to `grub_host_size_t'.
14975 (struct grub_module_info): Type of member offset changed to
14976 `grub_host_off_t'. Type of member size changed to
14977 `grub_host_size_t'.
14979 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
14981 Make GRUB's kernel compliant to Multiboot Specification.
14983 * kern/i386/pc/startup.S (multiboot_header): New label.
14984 (multiboot_entry): Likewise.
14985 (multiboot_trampoline): Likewise.
14987 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
14988 Increased to 0x4A0.
14990 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
14991 put parentheses after a question mark.
14992 [!GRUB_UTIL] (my_mod): New variable.
14994 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
14996 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
14998 Adds support for the XFS filesystem. Btrees are not supported
15001 * fs/xfs.c: New file.
15003 * DISTLIST: Added `fs/xfs.c'.
15005 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
15006 (grub_probefs_SOURCES): Likewise.
15007 (grub_emu_SOURCES): Likewise.
15008 (pkgdata_MODULES): Add `xfs.mod'.
15009 (xfs_mod_SOURCES): New variable.
15010 (xfs_mod_CFLAGS): Likewise.
15012 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
15013 (pkgdata_MODULES): Add `xfs.mod'.
15014 (xfs_mod_SOURCES): New variable.
15015 (xfs_mod_CFLAGS): Likewise.
15017 * util/grub-emu.c (main): Call `grub_xfs_init' and
15020 * include/grub/fs.h (grub_xfs_init): New prototype.
15021 (grub_xfs_fini): Likewise.
15024 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
15026 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
15027 color modes, allow greater than 16 colors to be configured as
15030 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
15032 * normal/completion.c (complete_arguments): Add the qualifier
15033 const into OPTIONS.
15035 From Omniflux <omniflux+lists@omniflux.com>:
15036 * include/grub/terminfo.h: New file.
15037 * include/grub/tparm.h: Likewise.
15038 * include/grub/i386/pc/serial.h: Likewise.
15039 * term/terminfo.c: Likewise.
15040 * term/tparm.c: Likewise.
15041 * term/i386/pc/serial.c: Likewise.
15042 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
15044 (terminfo_mod_SOURCES): New variable.
15045 (terminfo_mod_CFLAGS): Likewise.
15046 (serial_mod_SOURCES): Likewise.
15047 (serial_mod_CFLAGS): Likewise.
15049 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
15051 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
15052 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
15053 and kern/powerpc/ieee1275/cmain.c, respectively.
15055 * boot/powerpc/ieee1275/crt0.S: Moved to ...
15056 * kern/powerpc/ieee1275/crt0.S: ... here.
15058 * boot/powerpc/ieee1275/cmain.c: Moved to ...
15059 * kern/powerpc/ieee1275/cmain.c: ... here.
15061 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
15062 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
15063 instead of boot/powerpc/ieee1275/crt0.S and
15064 boot/powerpc/ieee1275/cmain.c, respectively.
15066 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
15067 sectors. It was not used anyway.
15069 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
15071 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
15072 `unused parameter' warning.
15074 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
15076 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
15078 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
15081 2005-08-28 Marco Gerards <metgerards@student.han.nl>
15083 * include/grub/normal.h (enum grub_completion_type): Added
15084 `GRUB_COMPLETION_TYPE_ARGUMENT'.
15086 * normal/cmdline.c (print_completion): Handle
15087 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
15088 * normal/menu_entry.c (store_completion): Likewise.
15090 * normal/completion.c (complete_arguments): New function.
15091 (grub_normal_do_completion): Call `complete_arguments' when the
15092 current words start with a dash.
15094 2005-08-27 Marco Gerards <metgerards@student.han.nl>
15096 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
15097 `gzio.mod' instead of `io.mod').
15099 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
15101 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
15102 (DISTDIRS): Added io and video.
15103 Rewrite the search routine to make an output consistently.
15105 * DISTLIST: Added conf/sparc64-ieee1275.mk,
15106 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
15107 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
15108 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
15109 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
15110 util/powerpc/ieee1275/misc.c.
15112 * include/grub/gzio.h: New file.
15113 * io/gzio.c: Likewise.
15115 * kern/file.c (grub_file_close): Call grub_device_close only if
15116 FILE->DEVICE is not NULL.
15118 * include/grub/mm.h [!NULL] (NULL): New macro.
15120 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
15122 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
15123 (pkgdata_MODULES): Added gzio.mod.
15124 (gzio_mod_SOURCES): New variable.
15125 (gzio_mod_CFLAGS): Likewise.
15127 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
15128 (pkgdata_MODULES): Added gzio.mod.
15129 (gzio_mod_SOURCES): New variable.
15130 (gzio_mod_CFLAGS): Likewise.
15132 * commands/cat.c: Include grub/gzio.h.
15133 (grub_cmd_cat): Use grub_gzfile_open instead of
15136 * commands/cmp.c: Include grub/gzio.h.
15137 (grub_cmd_cmp): Use grub_gzfile_open instead of
15140 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
15141 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
15143 (grub_rescue_cmd_module): Likewise.
15145 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
15147 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
15148 kern/sparc64/ieee1275/init.c because it contains _start.
15149 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
15151 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
15153 * configure.ac: Add support for sparc64 host with ieee1275
15155 * configure: Generated from configure.ac.
15156 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
15158 (grub_ofdisk_read): Likewise.
15159 (grub_ofdisk_open): Use %p to print pointer values, and cast the
15160 pointers as (void *) to remove a warning.
15161 (grub_ofdisk_close): Likewise.
15162 (grub_ofdisk_read): Likewise.
15163 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
15164 returns, so make it return void to remove a warning.
15165 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
15166 Corresponding prototype change.
15167 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
15168 values, and cast the pointers as (void *) to remove a warning.
15169 (grub_mm_dump): Likewise.
15170 * conf/sparc64-ieee1275.mk: New file.
15171 * conf/sparc64-ieee1275.rmk: Likewise.
15172 * include/grub/sparc64/setjmp.h: Likewise.
15173 * include/grub/sparc64/types.h: Likewise.
15174 * include/grub/sparc64/ieee1275/console.h: Likewise.
15175 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
15176 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
15177 * include/grub/sparc64/ieee1275/time.h: Likewise.
15178 * kern/sparc64/cache.c: Likewise.
15179 * kern/sparc64/dl.c: Likewise.
15180 * kern/sparc64/ieee1275/init.c: Likewise.
15181 * kern/sparc64/ieee1275/openfw.c: Likewise.
15183 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
15185 * util/console.c (grub_ncurses_putchar): If C is greater than
15186 0x7f, set C to a question mark.
15187 (grub_ncurses_getcharwidth): New function.
15188 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
15191 * normal/menu.c (print_entry): Made aware of Unicode. First,
15192 convert TITLE to UCS-4, and predict the cursor position by
15195 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
15197 * kern/misc.c (grub_utf16_to_utf8): Likewise.
15199 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
15201 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
15202 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
15205 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
15206 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
15207 grub_strcpy and grub_strlen. Take it into account that a space
15208 character is inserted as a delimiter.
15210 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
15212 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
15213 invalid magic in the error.
15215 * commands/search.c: New file.
15217 * util/grub-emu.c (main): Call grub_search_init and
15220 * kern/rescue.c (grub_rescue_print_disks): Removed.
15221 (grub_rescue_print_devices): New function.
15222 (grub_rescue_cmd_ls): Use grub_device_iterate with
15223 grub_rescue_print_devices instead of grub_disk_dev_iterate with
15224 grub_rescue_print_disks.
15226 * kern/partition.c (grub_partition_iterate): Return the result of
15227 PARTMAP->ITERATE instead of GRUB_ERRNO.
15229 * kern/device.c: Include grub/partition.h.
15230 (grub_device_iterate): New function.
15232 * include/grub/partition.h (grub_partition_iterate): Return int
15233 instead of grub_err_t.
15235 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
15237 [GRUB_UTIL] (grub_search_fini): Likewise.
15239 * include/grub/device.h (grub_device_iterate): New prototype.
15241 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
15243 (pkgdata_MODULES): Added search.mod.
15244 (search_mod_SOURCES): New variable.
15245 (search_mod_CFLAGS): Likewise.
15247 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
15248 (pkgdata_MODULES): Added search.mod.
15249 (search_mod_SOURCES): New variable.
15250 (search_mod_CFLAGS): Likewise.
15252 * commands/ls.c (grub_ls_list_disks): Renamed to ...
15253 (grub_ls_list_devices): ... this, and use grub_device_iterate.
15254 All callers changed.
15256 * DISTLIST: Added commands/search.c.
15258 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
15260 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
15262 (grub_getcharwidth): New function.
15264 * kern/misc.c (grub_utf8_to_ucs4): New function.
15266 * include/grub/term.h (struct grub_term): Added a new member
15268 (grub_getcharwidth): New prototype.
15270 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
15272 * term/i386/pc/console.c (map_char): New function. Segregated from
15273 grub_console_putchar.
15274 (grub_console_putchar): Use map_char.
15275 (grub_console_getcharwidth): New function.
15276 (grub_console_term): Specified grub_console_getcharwidth as
15279 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
15280 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
15282 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
15284 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
15285 on grub_strtoul completely.
15286 (write_char): Declare local variables in the beginning of the
15288 (grub_vesafb_getcharwidth): New function.
15289 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
15292 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
15294 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
15295 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
15296 commands/i386/pc/vbetest.c.
15298 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
15299 call grub_vbe_get_controller_info again, because the returned
15300 information is volatile.
15301 (grub_vbe_set_video_mode): Mostly rewritten.
15302 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
15303 grub_vbe_status_t correctly.
15304 (grub_vbe_get_video_mode_info): Likewise.
15305 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
15306 several if statements.
15308 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
15309 * commands/i386/pc/vbeinfo.c: ... this.
15311 * commands/i386/pc/vbe_test.c: Renamed to ...
15312 * commands/i386/pc/vbetest.c: ... this.
15314 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
15316 (grub_cmd_vbeinfo): ... this. Save video modes before
15317 iterating. Skip a video mode, if it is not available, not enough
15318 information is given or it is monochrome. Show the memory
15319 model. Leave the interpretation of MODEVAR to grub_strtoul
15321 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
15322 (GRUB_MOD_FINI): Likewise.
15324 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
15325 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
15326 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
15327 duplicated grub_env_get. Leave the interpretation of MODEVAR to
15328 grub_strtoul completely.
15329 (real2pm): Removed.
15330 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
15331 (GRUB_MOD_FINI): Likewise.
15333 * normal/misc.c: Include grub/mm.h.
15335 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
15336 vbe_list_modes with vbetest.mod and vbeinfo.mod.
15337 (vbe_list_modes_mod_SOURCES): Removed.
15338 (vbe_list_modes_mod_CFLAGS): Likewise.
15339 (vbe_test_mod_SOURCES): Likewise.
15340 (vbe_test_mod_CFLAGS): Likewise.
15341 (vbeinfo_mod_SOURCES): New variable.
15342 (vbeinfo_mod_CFLAGS): Likewise.
15343 (vbetest_mod_SOURCES): Likewise.
15344 (vbetest_mod_CFLAGS): Likewise.
15346 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
15348 * normal/misc.c: New file.
15350 * DISTLIST: Added normal/misc.c.
15352 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
15353 DISK to HOOK. Call HOOK with DISK.
15354 * partmap/apple.c (apple_partition_map_iterate): Likewise.
15355 * partmap/pc.c (pc_partition_map_iterate): Likewise.
15356 * partmap/sun.c (sun_partition_map_iterate): Likewise.
15358 * normal/menu_entry.c (struct screen): Added a new member
15359 "completion_shown".
15360 (completion_buffer): New global variable.
15361 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
15362 (store_completion): New function.
15363 (complete): Likewise.
15364 (clear_completions): Likewise.
15365 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
15366 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
15367 a tab, call complete.
15369 * normal/completion.c (disk_dev): Removed.
15370 (print_simple_completion): Likewise.
15371 (print_partition_completion): Likewise.
15372 (print_func): New global variable.
15373 (add_completion): Do not take the arguments WHAT or PRINT any
15374 longer. Added a new argument TYPE. Instead of printing directly,
15375 call PRINT_FUNC if not NULL.
15376 All callers changed.
15377 (complete_device): Use a local variable DEV instead of
15378 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
15379 (grub_normal_do_completion): Take a new argument HOOK. Do not
15380 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
15381 empty string, return NULL instead.
15382 All callers changed.
15384 * normal/cmdline.c (print_completion): New function.
15386 * kern/partition.c (grub_partition_iterate): Add an argument DISK
15388 All callers changed.
15390 * kern/disk.c (grub_print_partinfo): Removed.
15392 * include/grub/partition.h (struct grub_partition_map): Add a new
15393 argument DISK into HOOK of ITERATE.
15394 (grub_partition_iterate): Add a new argument DISK to HOOK.
15396 * include/grub/normal.h (enum grub_completion_type): New enum.
15397 (grub_completion_type_t): New type.
15398 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
15399 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
15400 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
15401 (GRUB_COMPLETION_TYPE_FILE): Likewise.
15402 (grub_normal_do_completion): Added a new argument HOOK.
15403 (grub_normal_print_device_info): New prototype.
15405 * include/grub/disk.h (grub_print_partinfo): Removed.
15407 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
15408 (normal_mod_SOURCES): Likewise.
15409 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15410 (normal_mod_SOURCES): Likewise.
15412 * commands/ls.c (grub_ls_list_disks): Use
15413 grub_normal_print_device_info instead of grub_print_partinfo. Free
15415 (grub_ls_list_files): Use grub_normal_print_device_info instead of
15416 duplicating the code.
15418 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
15420 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
15421 follow GCS more precisely.
15422 * commands/i386/pc/vbe_test.c: Likewise.
15423 * include/grub/i386/pc/vbe.h: Likewise.
15424 * term/i386/pc/vesafb.c: Likewise.
15425 * video/i386/pc/vbe.c: Likewise.
15427 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
15429 * DISTLIST: Added term/i386/pc/vesafb.c
15430 DISTLIST: Added video/i386/pc/vbe.c
15431 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
15432 DISTLIST: Added commands/i386/pc/vbe_test.c.
15433 * commands/i386/pc/vbe_list_modes.c: New file.
15434 * commands/i386/pc/vbe_test.c: Likewise.
15435 * term/i386/pc/vesafb.c: Likewise.
15436 * video/i386/pc/vbe.c: Likewise.
15437 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
15438 (grub_vbe_probe) Added prototype.
15439 (grub_vbe_set_video_mode) Likewise.
15440 (grub_vbe_get_video_mode) Likewise.
15441 (grub_vbe_get_video_mode_info) Likewise.
15442 (grub_vbe_set_pixel_rgb) Likewise.
15443 (grub_vbe_set_pixel_index) Likewise.
15444 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
15445 (pkgdata_MODULES): Added vesafb.mod.
15446 (pkgdata_MODULES): Added vbe_list_modes.mod.
15447 (pkgdata_MODULES): Added vbe_test.mod.
15448 (vbe_mod_SOURCES): Added.
15449 (vbe_mod_CFLAGS): Likewise.
15450 (vesafb_mod_SOURCES): Likewise.
15451 (vesafb_mod_CFLAGS): Likewise.
15452 (vbe_list_modes_mod_SOURCES): Likewise.
15453 (vbe_list_modes_mod_CFLAGS): Likewise.
15454 (vbe_test_mod_SOURCES): Likewise.
15455 (vbe_test_mod_CFLAGS): Likewise.
15457 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
15459 * normal/command.c (grub_command_execute): If INTERACTIVE is
15460 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
15461 CMDLINE. Disable the pager if INTERACTIVE is true.
15462 All callers are changed.
15464 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
15465 before reading a config file.
15466 * normal/main.c (read_config_file): Even if a command is not
15467 found, register it if it is within an entry.
15469 * util/grub-emu.c: Include sys/types.h and unistd.h.
15470 (options): Added --hold.
15471 (struct arguments): Added a new member "hold".
15472 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
15474 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
15475 cleared by a debugger, if it is not zero.
15477 * include/grub/normal.h (grub_command_execute): Add an argument
15480 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
15482 * DISTLIST: Added include/grub/i386/pc/vbe.h.
15484 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
15486 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
15487 program with another one, because the old one didn't detect a bug
15488 in gcc-3.4. Always use regparm 2, because the new test is still
15489 not enough for gcc-4.0. Someone must investigate a simple test
15490 case which detects a bug in gcc-4.0.
15492 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
15494 * DISTLIST: Added normal/completion.c.
15496 * normal/completion.c: New file.
15498 * term/i386/pc/console.c (grub_console_getwh): New function.
15499 (grub_console_term): Assign grub_console_getwh to getwh.
15501 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
15502 function is defined in normal/completion.c as
15503 grub_normal_do_completion.
15504 (grub_cmdline_get): Use grub_normal_do_completion instead of
15507 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
15508 returns non-zero, otherwise return 0.
15509 (grub_partition_iterate): First, probe the partition map. Then,
15510 call ITERATE only for this partition map.
15512 * kern/misc.c (grub_strncmp): Rewritten.
15514 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
15515 returns non-zero. Otherwise return 0.
15517 * include/grub/partition.h (grub_partition_map_iterate): Return
15518 int instead of void.
15520 * include/grub/normal.h (grub_normal_do_completion): New prototype.
15522 * include/grub/misc.h (grub_strncmp): Change the type of N to
15525 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
15528 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
15529 unsigned explicitly before comparing it with I.
15531 * kern/main.c (grub_env_write_root): Add the attribute unused into
15534 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
15535 normal/completion.c.
15536 (normal_mod_SOURCES): Likewise.
15537 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15538 (normal_mod_SOURCES): Likewise.
15540 * normal/command.c (grub_iterate_commands): If ITERATE returns
15541 non-zero, return one immediately.
15543 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
15545 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
15546 * kern/i386/pc/startup.S: Updated Global Descriptor table's
15548 (grub_vbe_get_controller_info): New function.
15549 (grub_vbe_get_mode_info): Likewise.
15550 (grub_vbe_set_mode): Likewise.
15551 (grub_vbe_get_mode): Likewise.
15552 (grub_vbe_set_memory_window): Likewise.
15553 (grub_vbe_get_memory_window): Likewise.
15554 (grub_vbe_set_scanline_length): Likewise.
15555 (grub_vbe_get_scanline_length): Likewise.
15556 (grub_vbe_set_display_start): Likewise.
15557 (grub_vbe_get_display_start): Likewise.
15558 (grub_vbe_set_palette_data): Likewise.
15559 * include/grub/i386/pc/vbe.h: New file.
15561 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
15563 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
15564 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
15565 * DISTLIST: Likewise.
15566 * kern/ieee1275/of.c: Moved to ...
15567 * kern/ieee1275/ieee1275.c: ... here.
15569 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
15571 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
15572 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
15573 Pass 0 as `end' parameter to grub_strtoul().
15575 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
15577 * include/grub/powerpc/ieee1275/console.h: Do not include
15578 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
15580 (grub_console_cur_color): Remove i386-specific prototype.
15581 (grub_console_real_putchar): Likewise.
15582 (grub_console_checkkey): Likewise.
15583 (grub_console_getkey): Likewise.
15584 (grub_console_getxy): Likewise.
15585 (grub_console_gotoxy): Likewise.
15586 (grub_console_cls): Likewise.
15587 (grub_console_setcursor): Likewise.
15588 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
15589 Include <grub/machine/console.h>.
15590 * term/ieee1275/ofconsole.c: Likewise.
15592 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
15594 * Makefile.in (LIBLZO): New variable.
15596 * configure.ac: Check for LZO version 2.
15598 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
15599 lzo/lzo1x.h instead of lzo1x.h.
15601 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
15604 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
15605 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
15607 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
15608 copying the data from PARTITION to P.
15610 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
15612 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
15613 negative, unload the module.
15615 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
15616 map is "pc_partition_map" but not "pc".
15617 (usage): Fix the description. The options are --boot-image and
15618 --core-image but not --boot-file or --core-file.
15619 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
15620 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
15623 * util/i386/pc/grub-install.in: Do not specify --boot-file or
15624 --core-file. Specify INSTALL_DEVICE as an argument.
15626 * util/console.c: Include config.h.
15627 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
15628 [HAVE_NCURSES_H]: Include ncurses.h.
15629 [HAVE_CURSES_H]: Include curses.h.
15630 [!A_NORMAL] (A_NORMAL): Defined as zero.
15631 [!A_STANDOUT] (A_STANDOUT): Likewise.
15633 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
15635 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
15637 * configure.ac: Check for curses libraries and headers.
15639 * Makefile.in (LIBCURSES): New variable.
15641 * genmk.rb (Script::rule): Set the executable bits.
15643 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
15644 name of the PC partition map is "pc_partition_map" but not "pc".
15646 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
15648 * util/i386/pc/grub-install.in (grub_probefs): New variable.
15649 (modules): Likewise.
15650 (usage): Added descriptions for --modules and --grub-probefs.
15651 Handle --modules and --grub-probefs. Save the arguments in MODULES
15652 and GRUB_PROBEFS, respectively.
15653 Auto-detect a filesystem module against GRUBDIR. If the result is
15654 empty and modules are not specified explicitly, abort the
15655 installation. Add the result to MODULES.
15657 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
15658 disk/powerpc/ieee1275/ofdisk.c,
15659 include/grub/powerpc/ieee1275/init.h and
15660 term/powerpc/ieee1275/ofconsole.c.
15661 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
15662 term/ieee1275/ofconsole.c.
15664 * include/grub/powerpc/ieee1275/console.h: Resurrected.
15666 * COPYING: Upgraded to the latest version. Only the address of the
15667 FSF office has changed.
15669 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
15671 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
15672 kern/ieee1275.c with kern/ieee1275/of.c.
15674 * kern/ieee1275.c: Moved to ...
15675 * kern/ieee1275/of.c: ... here.
15677 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
15679 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
15682 * config.guess: Updated to the latest version from gnulib.
15683 * config.sub: Likewise.
15684 * install.sh: Likewise.
15685 * mkinstalldirs: Likewise.
15687 * include/grub/console.h: Removed. This file is arch-specific. Do
15688 not put this in include/grub.
15690 * include/grub/i386/pc/console.h: Resurrected.
15692 * util/console.c: Include grub/machine/console.h instead of
15694 * util/grub-emu.c: Likewise.
15696 2005-08-04 Marco Gerards <metgerards@student.han.nl>
15698 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
15701 From Vincent Pelletier <subdino2004@yahoo.fr>
15702 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
15703 Redefined to use grub_getwh.
15704 (grub_term): New member named getwh.
15705 (grub_getwh): New prototype.
15706 * kern/term.c (grub_getwh): New function.
15707 * term/i386/pc/console.c (grub_console_getwh): New function.
15708 (grub_console_term): New member `getwh'.
15709 * term/i386/pc/vga.c (grub_vga_getwh): New function.
15710 (grub_vga_term): New member `getwh'.
15711 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
15713 (grub_ofconsole_getw): New function.
15714 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
15715 (grub_ofconsole_term): New field named getwh and new initial
15718 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
15720 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
15721 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
15722 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
15723 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
15724 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
15725 of <grub/machine/ieee1275.h>.
15726 * commands/ieee1275/reboot.c: Likewise.
15727 * boot/powerpc/ieee1275/ieee1275.c: Move ...
15728 * kern/ieee1275.c: ... to here. All users updated. Change all
15729 parameter structs to use new type `grub_ieee1275_cell_t'.
15730 * term/powerpc/ieee1275/ofconsole.c: Move ...
15731 * term/ieee1275/ofconsole.c: ... to here. All users updated.
15732 * disk/powerpc/ieee1275/ofdisk.c: Move ...
15733 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
15734 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
15736 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
15737 Remove unused prototypes. All users updated.
15738 * include/grub/powerpc/ieee1275/console.h: Removed.
15739 * include/grub/powerpc/ieee1275/ieee1275.h: Define
15740 `grub_ieee1275_cell_t'.
15741 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
15742 Cast comparisons with -1 to the correct type.
15743 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
15744 type to match `grub_ieee1275_entry_fn'.
15746 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
15748 * DISTLIST: Added util/i386/pc/grub-probefs.c.
15750 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
15751 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
15753 (grub_probefs_SOURCES): New variable.
15755 * util/i386/pc/grub-probefs.c: New file.
15757 * util/i386/pc/grub-setup.c (main): Call
15758 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
15759 grub_hfs_init and grub_jfs_init to initialize the system. Call
15760 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
15761 grub_pc_partition_map_fini to finish the system.
15763 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
15765 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
15767 (grub_multiboot_load_elf32): Likewise.
15768 (grub_multiboot_is_elf64): Likewise.
15769 (grub_multiboot_load_elf64): Likewise.
15770 (grub_multiboot_load_elf): Likewise.
15771 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
15772 an ELF32 or ELF64 file.
15773 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
15775 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
15776 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
15777 NULL before calling FS->LABEL.
15778 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
15779 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
15780 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
15781 before calling FS->LABEL.
15783 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
15785 * util/i386/pc/grub-install.in (datadir): New variable.
15787 (pkgdatadir): New variable.
15788 (pkglibdir): Removed.
15790 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
15792 * DISTLIST: Added util/i386/pc/grub-install.in.
15794 * util/i386/pc/grub-install.in: New file.
15796 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
15797 (grub_install_SOURCES): Likewise.
15799 * genmk.rb: Added support for scripts.
15800 (Script): New class.
15801 (scripts): New variable.
15803 * Makefile.in (install-local): Install sbin_SCRIPTS by
15805 (uninstall): Remove sbin_SCRIPTS.
15807 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
15808 device, try to get a GRUB device by
15809 grub_util_biosdisk_get_grub_dev.
15812 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
15813 description for --device-map.
15815 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
15817 Change the semantics of variable hooks. They now return strings
15818 instead of error values.
15820 * util/i386/pc/grub-setup.c: Include grub/env.h.
15821 (setup): Use grub_device_set_root instead of grub_env_set.
15823 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
15824 grub_env_get instead of grub_device_set_root and
15825 grub_device_get_root, respectively.
15827 * kern/main.c (grub_env_write_root): New function.
15828 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
15829 grub_env_set instead of grub_device_set_root.
15831 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
15833 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
15834 rather than calling ENV->WRITE_HOOK afterwards.
15835 (grub_env_get): Return the result of ENV->READ_HOOK rather than
15836 passing a pointer of a pointer.
15837 (grub_register_variable_hook): Change the types of "read_hook" and
15838 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
15840 Allocate the default empty string on the heap, because this string
15841 may be freed later.
15843 * kern/device.c: Include grub/env.h.
15844 (grub_device_set_root): Removed.
15845 (grub_device_get_root): Likewise.
15846 (grub_device_open): Use grub_env_get instead of
15847 grub_device_get_root.
15849 * include/grub/env.h (grub_env_read_hook_t): New type.
15850 (grub_env_write_hook_t): Likewise.
15851 (grub_env_var): Change the types of "read_hook" and "write_hook"
15852 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
15853 (grub_register_variable_hook): Likewise.
15855 * include/grub/device.h (grub_device_set_root): Removed.
15856 (grub_device_set_root): Likewise.
15858 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
15859 make sure that DIRNAME terminates with '/', so that
15860 grub_fat_find_dir will fail if PATH is not a directory.
15862 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
15864 Use the qualifier auto for print_files and print_files_long.
15865 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
15867 Put a newline only if there is no error.
15868 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
15871 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
15873 * kern/partition.c (grub_partition_probe): Initialize PART to
15874 NULL. Otherwise, when no partition map is registered, this returns
15877 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
15879 * partmap/apple.c (apple_partition_map_iterate): Check if POS
15880 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
15883 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
15885 * commands/ls.c (grub_ls_list_disks): Print the filesystem
15886 information on each device, if it does not have partitions. Print
15887 "Device" instead of "Disk", because this function is not specific
15890 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
15891 static to ensure that it is put on the memory rather than a
15894 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
15896 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
15897 (grub_cat_init): Likewise.
15898 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
15899 (options): Likewise.
15900 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
15901 (grub_configfile_init): Likewise.
15902 * font/manager.c (GRUB_MOD_INIT): Likewise.
15903 * commands/help.c (GRUB_MOD_INIT): Likewise.
15904 (grub_help_init): Likewise.
15905 * normal/command.c (grub_command_init): Likewise.
15906 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
15907 * disk/loopback.c (grub_loop_init): Likewise.
15908 (GRUB_MOD_INIT): Likewise.
15909 * commands/ls.c (grub_ls_init): Likewise.
15910 (GRUB_MOD_INIT): Likewise.
15911 (options): Likewise.
15912 * commands/boot.c (grub_boot_init): Likewise.
15913 (GRUB_MOD_INIT): Likewise.
15914 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
15915 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
15916 (GRUB_MOD_INIT): Likewise.
15917 * commands/cmp.c (grub_cmp_init): Likewise.
15918 (GRUB_MOD_INIT): Likewise.
15920 * normal/arg.c: Use <> instead of "" to include header files.
15921 (SHORT_ARG_HELP): New macro.
15922 (SHORT_ARG_USAGE): Likewise.
15923 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
15924 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
15926 (find_short): Check if C is 'h' or 'u' explicitly.
15927 (grub_arg_show_help): Use space characters instead of tabs. Treat
15928 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
15929 are shown with --help and --usage only if they are not used for
15930 the command itself.
15931 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
15934 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
15935 const into "longarg". Change the type of "shortarg" to int.
15937 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
15939 * boot/i386/pc/boot.S (boot_drive_check): New label.
15941 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
15944 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
15945 which do not pass a boot drive correctly. Copied from GRUB Legacy.
15947 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
15949 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
15950 When turning off Gate A20, skip the check and return immediately,
15951 because this is not fatal usually.
15953 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
15955 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
15956 be 0x7C00 instead of 0x8000.
15958 * boot/i386/pc/pxeboot.S: Rewritten.
15960 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
15962 (gate_a20_check_state): Read a byte from 0x108000. Invert the
15965 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
15967 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
15968 robustness. This routine now supports a BIOS call and System
15969 Control Port A to modify the gate A20.
15971 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
15972 Increased to 0x440.
15974 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
15976 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
15977 device path and resulting ihandle.
15978 (grub_ofdisk_close): dprintf the ihandle being closed.
15979 (grub_ofdisk_read): dprintf function parameters.
15980 * kern/mm.c (grub_mm_init_region): Likewise.
15981 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
15982 (grub_linux_boot): dprintf the Linux entry point, initrd address and
15983 size, and boot arguments.
15984 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
15985 before loading into memory.
15986 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
15987 before loading into memory.
15989 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
15991 * kern/mm.c: Added much documentation.
15992 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
15993 8, set to 5 instead of 8.
15995 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
15997 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
15999 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
16000 (grub_mkdevicemap_SOURCES): New variable.
16002 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
16003 lib/device.c of GRUB Legacy.
16005 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
16007 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
16008 instead of PATH is NULL.
16010 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
16012 * commands/cmp.c (BUFFER_SIZE): New macro.
16013 (grub_cmd_cmp): Close the right file at the right time. Compare
16014 only data just read. Don't report files of different size as
16015 identical. Dynamically allocate buffers. Move variable
16016 declarations at the beginning of function.
16018 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
16020 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
16023 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
16025 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
16026 when backspace is pressed at beginning of line.
16028 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
16030 * DISTLIST: Added genfslist.sh.
16032 * normal/main.c (fs_module_list): New variable.
16033 (autoload_fs_module): New function.
16034 (read_fs_list): Likewise.
16035 (grub_normal_execute): Call read_fs_list.
16037 * kern/fs.c (grub_fs_autoload_hook): New variable.
16038 (grub_fs_probe): Added support for auto-loading.
16040 * include/grub/normal.h (struct grub_fs_module_list): New struct.
16041 (grub_fs_module_list_t): New type.
16043 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
16044 (grub_fs_autoload_hook): New prototype.
16046 * genfslist.sh: New file.
16048 * genmk.rb: Added a rule to generate a filesystem list.
16050 2005-06-30 Marco Gerards <metgerards@student.han.nl>
16052 * configure.ac: Fix the test for cross-compiling.
16054 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
16055 define GRUB_UTIL anymore.
16057 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
16058 so this function works on other systems than just big endian.
16059 (load_modules): Likewise.
16060 (add_segments): Likewise.
16062 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
16064 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
16065 contains `l' modifier, get a long from va_arg().
16067 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
16069 * kern/mm.c (grub_free): If the next free block which is being
16070 merged is the first free block, set the first block to the block
16072 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
16074 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
16076 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
16077 `grub_ieee1275_chosen'.
16079 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
16081 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
16082 (grub_ieee1275_chosen): New variable.
16083 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
16085 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
16086 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
16087 Rename first argument to `phandle' for consistency.
16088 (grub_ieee1275_get_property_length): Likewise.
16089 (grub_ieee1275_next_property): Likewise. Change type of first argument
16090 to grub_ieee1275_phandle_t.
16091 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
16092 Move export next to declaration.
16093 (grub_ieee1275_chosen): New variable.
16094 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
16095 Correct cosmetic typo.
16096 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
16097 `grub_ieee1275_chosen'.
16098 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
16099 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
16100 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
16101 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
16102 `grub_ieee1275_chosen'.
16104 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
16106 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
16108 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
16109 /chosen/bootargs as "variable=value" pairs.
16111 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
16113 * include/grub/misc.h (grub_dprintf): New macro.
16114 (grub_real_dprintf): New prototype.
16115 (grub_strword): Likewise.
16116 (grub_iswordseparator): Likewise.
16117 * kern/misc.c (grub_real_dprintf): New function.
16118 (grub_strword): Likewise.
16119 (grub_iswordseparator): Likewise.
16121 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
16123 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
16124 (roundup): Remove macro.
16125 (grub_ieee1275_flags): Make static.
16126 (grub_ieee1275_realmode): Remove.
16127 (grub_ieee1275_test_flag): New function.
16128 (grub_ieee1275_set_flag): Likewise.
16129 (find_options): Rename to `grub_ieee1275_find_options'; update
16130 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
16131 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
16132 (cmain): New prototype.
16133 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
16134 `grub_ieee1275_flags' directly.
16135 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
16136 machine/biosdisk.h.
16137 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
16138 Don't include grub/machine/init.h.
16139 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
16140 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
16142 (grub_ieee1275_realmode): Likewise.
16143 (grub_ieee1275_flag): New enum.
16144 (grub_ieee1275_test_flag): New prototype.
16145 (grub_ieee1275_set_flag): New prototype.
16146 * include/grub/powerpc/ieee1275/init.h: Remove file.
16147 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
16148 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
16149 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
16150 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
16152 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
16153 `grub_ieee1275_test_flag'.
16154 (grub_ieee1275_encode_devname): Likewise.
16156 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
16158 * include/grub/powerpc/ieee1275/ieee1275.h
16159 (grub_ieee1275_encode_devname): New prototype.
16160 (grub_ieee1275_get_filename): Likewise.
16161 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
16163 (grub_set_prefix): Likewise.
16164 (grub_machine_init): Call grub_set_prefix.
16165 * kern/powerpc/ieee1275/openfw.c: Fix typos.
16166 (grub_parse_type): New enum.
16167 (grub_ieee1275_get_devargs): New function.
16168 (grub_ieee1275_get_devname): Likewise.
16169 (grub_ieee1275_parse_args): Likewise.
16170 (grub_ieee1275_get_filename): Likewise.
16171 (grub_ieee1275_encode_devname): Likewise.
16173 2005-03-30 Marco Gerards <metgerards@student.han.nl>
16175 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
16176 `grub_loader_unset'.
16178 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
16180 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
16181 instead of grub_ieee1275_interpret.
16182 (grub_halt_init): New function.
16183 (grub_halt_fini): Likewise.
16184 (GRUB_MOD_INIT): Correct message grammar.
16185 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
16186 instead of grub_ieee1275_interpret.
16187 (grub_reboot_init): New function.
16188 (grub_reboot_fini): Likewise.
16189 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
16190 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
16191 util/i386/pc/misc.c with commands/ieee1275/halt.c,
16192 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
16193 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
16195 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
16197 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
16199 (grub_halt): Likewise.
16200 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
16201 (cmain): Remove __attribute__((unused)).
16202 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
16203 (grub_heap_len): Likewise.
16204 (grub_machine_fini): New function.
16205 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
16206 (grub_halt): Likewise.
16207 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
16209 * util/powerpc/ieee1275/misc.c: New file.
16211 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
16213 * DISTLIST: New file.
16214 * gendistlist.sh: Likewise.
16216 * Makefile.in (COMMON_DISTFILES): Removed.
16217 (BOOT_DISTFILES): Likewise.
16218 (CONF_DISTFILES): Likewise.
16219 (DISK_DISTFILES): Likewise.
16220 (FS_DISTFILES): Likewise.
16221 (INCLUDE_DISTFILES): Likewise.
16222 (KERN_DISTFILES): Likewise.
16223 (LOADER_DISTFILES): Likewise.
16224 (TERM_DISTFILES): Likewise.
16225 (UTIL_DISTFILES): Likewise.
16226 (DISTFILES): Likewise.
16227 (uninstall): Uninstall files in $(pkgdata_DATA).
16228 (DISTLIST): New target.
16229 (distdir): Use the contents of the file DISTLIST to get a list of
16232 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
16234 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
16235 descriptor. This is ported from GRUB Legacy.
16237 * gencmdlist.sh: Added an extra semicolon to make it work with
16238 old sed versions. Reported by Robert Bihlmeyer
16239 <robbe@orcus.priv.at>.
16241 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
16243 Automatic loading of commands is supported.
16245 * normal/main.c (read_command_list): New function.
16246 (grub_normal_execute): Call read_command_list.
16248 * normal/command.c (grub_register_command): Return zero or CMD.
16249 Allocate CMD->NAME from the heap.
16250 Initialize CMD->MODULE_NAME to zero.
16251 Find the same name as well. If the same command is found and it is
16252 a dummy command, overwrite members. If it is not a dummy command,
16254 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
16255 (grub_command_find): If a dummy command is found, load a module
16256 and retry to find a command only once.
16258 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
16259 make sure that each command is loaded.
16261 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
16263 (struct grub_command): Remove const from the member `name'.
16264 Add a new member `module_name'.
16265 (grub_register_command): Return grub_command_t.
16267 * commands/help.c (grub_cmd_help): Call grub_command_find to make
16268 sure that each command is loaded.
16270 * genmk.rb (PModule::rule): Specify a module name without the
16271 suffix ".mod" to gencmdlist.sh.
16273 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
16275 * gencmdlist.sh: New file.
16277 * genmk.rb (PModule::rule): Generate a rule for a command list.
16279 Generate command.lst from $(COMMANDFILES).
16281 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
16282 (DATA): Added $(pkgdata_DATA).
16283 (install-local): Install files in $(pkgdata_DATA).
16285 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
16287 * term/i386/pc/vga.c (debug_command): Removed.
16288 (GRUB_MOD_INIT): Do not register the command "debug".
16290 From Hollis Blanchard:
16291 * commands/configfile.c: New file.
16292 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
16293 commands/configfile.c.
16294 (pkgdata_MODULES): Added configfile.mod.
16295 (configfile_mod_SOURCES): New variable.
16296 (configfile_mod_CFLAGS): Likewise.
16297 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
16298 commands/configfile.c.
16299 (pkgdata_MODULES): Added configfile.mod.
16300 (configfile_mod_SOURCES): New variable.
16301 (configfile_mod_CFLAGS): Likewise.
16302 * util/grub-emu.c (main): Call grub_configfile_init and
16303 grub_configfile_fini.
16304 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
16306 [GRUB_UTIL] (grub_configfile_fini): Likewise.
16308 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
16310 * normal/arg.c (grub_arg_show_help): Do not show the bug report
16313 * commands/help.c (grub_cmd_help): Do not print newlines after
16314 the last command in print_command_help.
16316 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
16318 * commands/default.h: New file.
16319 * commands/timeout.h: Likewise.
16320 * normal/context.c: Likewise.
16322 * util/misc.c: Do not include sys/times.h.
16323 Include sys/time.h and grub/machine/time.h.
16324 (grub_get_rtc): Rewritten with gettimeofday.
16326 * util/grub-emu.c (main): Call grub_default_init and
16327 grub_timeout_init before grub_normal_init, and call
16328 grub_timeout_fini and grub_default_fini after grub_main.
16330 * util/console.c (grub_ncurses_checkkey): Return the read
16333 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
16336 * normal/main.c (read_config_file): Push MENU. If this fails,
16337 print an error and wait for a user input.
16338 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
16339 If a menu is empty or an error occurs, pop MENU.
16340 (grub_normal_execute): Pop and free MENU after grub_menu_run
16343 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
16345 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
16347 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
16349 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
16351 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
16354 * include/grub/normal.h (struct grub_menu_list): New struct.
16355 (grub_menu_list_t): New type.
16356 (struct grub_context): New struct.
16357 (grub_context_t): New type.
16358 (grub_register_command): Got rid of EXPORT_FUNC.
16359 (grub_unregister_command): Likewise.
16360 (grub_context_get): New prototype.
16361 (grub_context_get_current_menu): Likewise.
16362 (grub_context_push_menu): Likewise.
16363 (grub_context_pop_menu): Likewise.
16364 [GRUB_UTIL] (grub_default_init): Likewise.
16365 [GRUB_UTIL] (grub_default_fini): Likewise.
16366 [GRUB_UTIL] (grub_timeout_init): Likewise.
16367 [GRUB_UTIL] (grub_timeout_fini): Likewise.
16369 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
16370 commands/timeout.c and normal/context.c.
16371 (pkgdata_MODULES): Added default.mod and timeout.mod.
16372 (normal_mod_SOURCES): Added normal/context.c.
16373 (default_mod_SOURCES): New variable.
16374 (default_mod_CFLAGS): Likewise.
16375 (timeout_mod_SOURCES): Likewise.
16376 (timeout_mod_CFLAGS): Likewise.
16377 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
16379 (pkgdata_MODULES): Added default.mod and timeout.mod.
16380 (normal_mod_SOURCES): Added normal/context.c.
16381 (default_mod_SOURCES): New variable.
16382 (default_mod_CFLAGS): Likewise.
16383 (timeout_mod_SOURCES): Likewise.
16384 (timeout_mod_CFLAGS): Likewise.
16386 * Makefile.in (all-local): Added $(MKFILES).
16388 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
16390 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
16391 (grub_emu_SOURCES): Likewise.
16392 (pkgdata_MODULES): Add `sun.mod'.
16393 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
16394 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16396 (pkgdata_MODULES): Add `sun.mod'.
16397 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
16398 * include/grub/partition.h (grub_sun_partition_map_init): New
16400 (grub_sun_partition_map_fini): Likewise.
16401 * partmap/sun.c: New file.
16402 * util/grub-emu.c (main): Initialize and de-initialize the sun
16403 partitionmap support.
16405 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
16407 This implements an Emacs-like menu entry editor.
16409 * normal/menu_entry.c: New file.
16411 * util/console.c (grub_ncurses_putchar): Translate some Unicode
16412 characters to ASCII.
16413 (saved_char): New variable.
16414 (grub_ncurses_checkkey): Rewritten completely.
16415 (grub_ncurses_getkey): Likewise.
16416 (grub_ncurses_init): Call raw instead of cbreak.
16418 * normal/menu.c (print_entry): Do not put a space.
16419 (init_page): Renamed to ...
16420 (grub_menu_init_page): ... this. All callers changed.
16421 (edit_menu_entry): Removed.
16422 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
16424 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
16426 * kern/misc.c (grub_vprintf): Call grub_refresh.
16428 * normal/menu.c (DISP_LEFT): Renamed to ...
16429 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
16430 * normal/menu.c (DISP_UP): Renamed to ...
16431 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
16432 * normal/menu.c (DISP_RIGHT): Renamed to ...
16433 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
16434 * normal/menu.c (DISP_DOWN): Renamed to ...
16435 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
16436 * normal/menu.c (DISP_HLINE): Renamed to ...
16437 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
16438 * normal/menu.c (DISP_VLINE): Renamed to ...
16439 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
16440 * normal/menu.c (DISP_UL): Renamed to ...
16441 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
16442 * normal/menu.c (DISP_UR): Renamed to ...
16443 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
16444 * normal/menu.c (DISP_LL): Renamed to ...
16445 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
16446 * normal/menu.c (DISP_LR): Renamed to ...
16447 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
16448 * normal/menu.c (TERM_WIDTH): Renamed to ...
16449 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
16450 * normal/menu.c (TERM_HEIGHT): Renamed to ...
16451 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
16452 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
16453 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
16454 * normal/menu.c (TERM_MARGIN): Renamed to ...
16455 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
16456 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
16457 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
16458 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
16459 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
16460 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
16461 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
16462 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
16463 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
16464 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
16465 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
16466 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
16467 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
16468 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
16469 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
16470 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
16471 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
16472 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
16473 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
16474 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
16475 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
16476 All callers changed.
16478 * include/grub/normal.h: New prototype.
16480 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
16481 normal/menu_entry.c.
16482 (normal_mod_SOURCES): Likewise.
16483 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16484 (normal_mod_SOURCES): Likewise.
16486 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
16488 * include/grub/normal.h (grub_halt_init): New prototype.
16489 (grub_halt_fini): Likewise.
16490 (grub_reboot_init): Likewise.
16491 (grub_reboot_fini): Likewise.
16493 * util/grub-emu.c: Include signal.h.
16494 (main_env): New global variable.
16495 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
16497 (grub_machine_fini): New function.
16498 (main): Call grub_halt_init and grub_reboot_init before
16499 grub_main, and grub_reboot_fini and grub_halt_fini after it.
16500 Call setjmp with MAIN_ENV to go back afterwards.
16501 Call grub_machine_fini right before return.
16503 * include/grub/util/misc.h: Include setjmp.h.
16504 (main_env): New prototype.
16506 * include/grub/kernel.h (grub_machine_fini): New prototype.
16507 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
16508 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
16510 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
16511 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
16512 * term/i386/pc/console.c (grub_console_fini): Likewise.
16514 * util/i386/pc/misc.c: New file.
16516 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
16517 util/i386/pc/misc.c, commands/i386/pc/halt.c and
16518 commands/i386/pc/reboot.c.
16520 2005-02-14 Guillem Jover <guillem@hadrons.org>
16522 * include/grub/dl.h (grub_dl_check_header): New prototype.
16523 (grub_arch_dl_check_header): Change return type to grub_err_t,
16524 remove size parameter and export function. Update all callers.
16525 * kern/dl.c (grub_dl_check_header): New function.
16526 (grub_dl_load_core): Use `grub_dl_check_header' instead of
16527 `grub_arch_dl_check_header'. Check ELF type. Check if sections
16528 are inside the core.
16529 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
16530 independent ELF header checks.
16531 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
16532 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
16533 `grub_dl_check_header' instead of explicit checks. Check for the
16535 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
16536 `grub_dl_check_header' instead of explicit checks. Remove arch
16537 specific ELF header checks.
16539 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
16542 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
16544 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
16545 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
16547 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
16549 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
16550 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
16551 (part_map_iterate): Clear `grub_errno' and return 0 if
16552 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
16553 * partmap/amiga.c (amiga_partition_map_iterate): Return
16554 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
16555 * partmap/apple.c (apple_partition_map_iterate): Likewise.
16557 2005-02-01 Guillem Jover <guillem@hadrons.org>
16559 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
16562 2005-01-31 Marco Gerards <metgerards@student.han.nl>
16564 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
16566 (grub_rescue_cmd_linux): New prototype.
16567 (grub_rescue_cmd_initrd): Likewise.
16568 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
16570 (grub_linux_release_mem): Release the memory for the initrd.
16571 (grub_load_linux): Renamed from this...
16572 (grub_rescue_cmd_linux): ...To this. Changed all callers.
16573 Changed `entry' not to be static. Loop over memory regions to
16574 find another one when the default fails.
16575 (grub_rescue_cmd_initrd): New function.
16576 (grub_linux_init): Remove function.
16577 (grub_linux_fini): Likewise.
16578 (GRUB_MOD_INIT): Register `initrd'.
16579 (GRUB_MOD_FINI): Unregister `initrd'.
16580 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
16582 (grub_linux_normal_fini): Likewise.
16583 (GRUB_MOD_INIT): Register `initrd'.
16584 (GRUB_MOD_FINI): Unregister `initrd'.
16586 2005-01-31 Marco Gerards <metgerards@student.han.nl>
16588 * commands/help.c: New file.
16589 * normal/arg.c (show_help): Renamed to...
16590 (grub_arg_show_help): ... this.
16591 * commands/i386/pc/halt.c: New file.
16592 * commands/i386/pc/reboot.c: Likewise.
16593 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
16594 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
16595 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
16596 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
16598 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16600 (pkgdata_MODULES): Add `help.mod'.
16601 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
16602 * grub/i386/pc/init.h (grub_reboot): New prototype.
16603 (grub_halt): Likewise.
16604 * include/grub/normal.h (grub_arg_show_help): New prototype.
16605 (grub_help_init): Likewise.
16606 (grub_help_fini): Likewise.
16607 * util/grub-emu.c (main): Initialize and deinitialize the help
16610 * normal/cmdline.c (grub_cmdline_get): Doc fix.
16612 * normal/command.c (grub_command_init): Fixed the description of
16613 the `set' and `unset' commands.
16615 2005-01-31 Marco Gerards <metgerards@student.han.nl>
16617 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
16619 * commands/ieee1275/halt.c: New file.
16620 * commands/ieee1275/reboot.c: Likewise.
16621 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
16622 `__attribute__ ((unused))'. Some GCS related fixed.
16623 (grub_suspend_init) [GRUB_UTIL]: Function removed.
16624 (grub_suspend_fini): Likewise.
16625 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
16627 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
16628 (halt_mod_CFLAGS): New variables.
16629 * include/grub/powerpc/ieee1275/ieee1275.h
16630 (grub_ieee1275_interpret): New prototype.
16632 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
16634 * include/grub/misc.h (memmove): New prototype.
16635 (memcpy): Likewise.
16637 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
16639 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
16640 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
16642 2005-01-22 Marco Gerards <metgerards@student.han.nl>
16644 * kern/misc.c (grub_strndup): Function rewritten.
16646 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
16648 * normal/menu.c (TERM_WIDTH): Macro redefined.
16649 (TERM_TOP_BORDER_Y): Likewise.
16650 (draw_border): Replaced while-loop by a for-loop. Make the number
16651 of lines consistent with the number of lines displayed in
16652 print_entries. Added a margin below the rectangle.
16653 (print_entry): Make the entry fit in the rectangle.
16654 (print_entries): Display the scroll arrows next to the right
16657 2005-01-21 Marco Gerards <metgerards@student.han.nl>
16659 * fs/minix.c (grub_minix_find_file): Reserve more space for
16660 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
16661 `grub_strncpy' to copy `path' into it.
16663 2005-01-21 Marco Gerards <metgerards@student.han.nl>
16665 Add the loopback device, a device via which files can be accessed
16668 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
16669 (pkgdata_MODULES): Add loopback.mod.
16670 (loopback_mod_SOURCES): New variable.
16671 (loopback_mod_CFLAGS): Likewise.
16672 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16674 (pkgdata_MODULES): Add loopback.mod.
16675 (loopback_mod_SOURCES): New variable.
16676 (loopback_mod_CFLAGS): Likewise.
16677 * disk/loopback.c: new file.
16678 * include/grub/normal.h (grub_loop_init): New prototype.
16679 (grub_loop_fini): New prototype.
16680 * util/grub-emu.c (main): Initialize and de-initialize loopback
16682 * include/grub/disk.h (grub_disk_dev_id): Add
16683 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
16685 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
16687 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
16689 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
16690 (suspend_mod_SOURCES): New variable.
16691 (suspend_mod_CFLAGS): Likewise.
16692 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
16694 * commands/ieee1275/suspend.c: New file.
16696 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16698 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
16699 ((unused))' to `__attribute__ ((used))'.
16700 (GRUB_MOD_FINI): Likewise.
16701 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
16702 * genmk.rb (PModule): Assign space to common symbols when linking
16705 2005-01-20 Marco Gerards <metgerards@student.han.nl>
16707 * include/grub/mm.h (grub_mm_init_region): Change the type of the
16708 `unsigned' arguments to `grub_size_t'.
16709 (grub_malloc): Likewise.
16710 (grub_realloc): Likewise.
16711 (grub_memalign): Likewise.
16712 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
16713 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
16714 * util/misc.c (grub_malloc): Likewise.
16715 (grub_realloc): Likewise.
16716 * kern/mm.c (get_header_from_pointer): Change the casts to
16717 `unsigned' into a cast to `grub_size_t'.
16719 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
16720 point to `currnode' when `currnode' is changed.
16722 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
16723 Schottelius <nico-linux@schottelius.org>.
16725 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
16727 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
16728 (note_path): Remove variable.
16729 (GRUB_IEEE1275_NOTE_NAME): New macro.
16730 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
16731 (grub_ieee1275_note_hdr): New structure.
16732 (grub_ieee1275_note_desc): Likewise.
16733 (grub_ieee1275_note): Likewise.
16734 (load_note): Remove `dir' argument. All callers updated. Remove
16735 `note_img' and `path'. Do not load a file from `note_path'.
16736 Initialize a struct grub_ieee1275_note and write that to `out'.
16737 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
16739 2005-01-05 Marco Gerards <metgerards@student.han.nl>
16741 * util/misc.c (grub_util_read_image): Revert last change. It
16742 called `grub_util_read_at', which seeks from the beginning of the
16745 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
16747 * TODO: Add note about endianness in grub-mkimage.
16748 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
16750 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
16751 (grub_mkimage_SOURCES): New target.
16752 * include/grub/kernel.h (grub_start_addr): Remove variable.
16753 (grub_end_addr): Likewise.
16754 (grub_total_module_size): Likewise.
16755 (grub_kernel_image_size): Likewise.
16756 (GRUB_MODULE_MAGIC): New constant.
16757 (grub_module_info): New structure.
16758 (grub_arch_modules_addr): New prototype.
16759 (grub_get_end_addr): Remove prototype.
16760 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
16761 * include/grub/powerpc/ieee1275/kernel.h: New file.
16762 * include/grub/util/misc.h (grub_util_get_fp_size): New
16764 (grub_util_read_at): Likewise.
16765 (grub_util_write_image_at): Likewise.
16766 * kern/main.c (grub_get_end_addr): Remove function.
16767 (grub_load_modules): Call grub_arch_modules_addr instead of using
16768 grub_end_addr. Look for a grub_module_info struct in memory. Use
16769 the grub_module_info fields instead of calling grub_get_end_addr
16770 as loop conditions. Move grub_add_unused_region code here.
16771 (grub_add_unused_region): Remove function.
16772 * kern/i386/pc/init.c: Include grub/cache.h.
16773 (grub_machine_init): Remove call to grub_get_end_addr. Remove
16774 one call to add_mem_region.
16775 (grub_arch_modules_addr): New function.
16776 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
16777 (grub_total_module_size): Likewise.
16778 Include grub/machine/kernel.h.
16779 (grub_arch_modules_addr): New function.
16780 * util/grub-emu.c (grub_end_addr): Remove variable.
16781 (grub_total_module_size): Likewise.
16782 (grub_arch_modules_addr): New function.
16783 * util/misc.c: Include unistd.h.
16784 (grub_util_get_fp_size): New function.
16785 (grub_util_read_at): Likewise.
16786 (grub_util_write_image_at): Likewise.
16787 (grub_util_read_image): Call grub_util_read_at.
16788 (grub_util_write_image): Call grub_util_write_image_at.
16789 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
16790 additional memory in kernel_img for a struct grub_module_info.
16791 Fill in that grub_module_info.
16792 * util/powerpc/ieee1275/grub-mkimage.c: New file.
16794 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
16796 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
16798 * include/grub/powerpc/ieee1275/ieee1275.h
16799 (grub_ieee1275_milliseconds): New prototype.
16800 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
16802 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
16803 grub_ieee1275_milliseconds.
16805 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
16807 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
16809 (find_options): New function.
16810 (cmain): Call find_options.
16811 * include/grub/powerpc/ieee1275/ieee1275.h
16812 (grub_ieee1275_realmode): New extern variable.
16813 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
16814 grub_map if grub_ieee1275_realmode is false.
16816 2004-12-29 Marco Gerards <metgerards@student.han.nl>
16818 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
16819 lines are inserted and make it work like readline. Reported by
16820 Vincent Pelletier <subdino2004@yahoo.fr>.
16822 2004-12-28 Marco Gerards <metgerards@student.han.nl>
16824 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
16826 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
16827 `kern/powerpc/cache.S'.
16829 2004-12-27 Marco Gerards <metgerards@student.han.nl>
16831 * genmk.rb: Handle the `Program' class in the main loop. Written
16832 by Johan Rydberg <jrydberg@gnu.org>.
16833 (Program): New class.
16834 (programs): New variable.
16835 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
16836 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
16837 instead of "grub/kernel.h". Include <grub/machine/init.h>.
16838 (help_arch): Function removed.
16839 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
16840 `powerpc/libgcc.h' and `loader.h'.
16841 (pkgdata_PROGRAMS): New variable.
16842 (sbin_UTILITIES): Variable removed.
16843 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
16844 (grubof_SOURCES): Variable re-defined so it only includes the
16845 core functionality.
16846 (grubof_CFLAGS): Remove `-DGRUBOF'.
16847 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
16848 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
16849 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
16850 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
16851 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
16852 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
16853 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
16854 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
16855 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
16856 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
16857 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16858 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
16859 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
16860 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
16861 (pc_mod_CFLAGS): New variables.
16862 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
16863 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
16864 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
16865 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
16867 * include/grub/i386/pc/init.h (grub_os_area_addr)
16868 (rub_os_area_size): ... to here.
16869 * include/grub/powerpc/ieee1275/ieee1275.h
16870 (grub_ieee1275_entry_fn): Export symbol.
16871 * include/grub/powerpc/ieee1275/init.h: New file.
16872 * include/grub/powerpc/libgcc.h: Likewise.
16873 * include/grub/cache.h: Likewise.
16874 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
16875 <hollis@penguinppc.org>.
16876 * kern/dl.c: Include <grub/cache.h>.
16877 (grub_dl_flush_cache): New function.
16878 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
16880 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
16881 (grub_console_init): Removed prototypes.
16882 (grub_machine_init): Don't initialize the modules anymore.
16883 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
16885 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
16886 Macro undef removed.
16887 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
16888 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
16889 relocation `R_PPC_REL32'. Return an error when the relocation is
16891 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
16892 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
16893 * util/misc.c (grub_arch_sync_caches): Likewise.
16895 2004-12-19 Marco Gerards <metgerards@student.han.nl>
16897 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
16898 `symlist.c', add `grubof_symlist.c'.
16899 (symlist.c): Variable removed.
16900 (grubof_HEADERS): Variable added.
16901 (grubof_symlist.c): New target.
16902 (kernel_syms.lst): Use `grubof_HEADERS' instead of
16903 `kernel_img_HEADERS'.
16904 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
16905 * kern/powerpc/dl.c: New file.
16906 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
16908 (grub_arch_dl_relocate_symbols): Likewise.
16909 (grub_register_exported_symbols): Likewise.
16911 2004-12-13 Marco Gerards <metgerards@student.han.nl>
16913 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
16914 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
16915 to fail instead. Reported by Vincent Pelletier
16916 <subdino2004@yahoo.fr>.
16918 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
16919 it is not allocated. Reported by Vincent Pelletier
16920 <subdino2004@yahoo.fr>.
16922 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
16923 output so the output looks better.
16925 2004-12-04 Marco Gerards <metgerards@student.han.nl>
16927 Modulize the partition map support and add support for the amiga
16930 * commands/ls.c: Include <grub/partition.h> instead of
16931 <grub/machine/partition.h>.
16932 * kern/disk.c: Likewise.
16933 * kern/rescue.c: Likewise.
16934 * loader/i386/pc/chainloader.c: Likewise.
16935 * normal/cmdline.c: Likewise.
16936 * kern/powerpc/ieee1275/init.c: Likewise.
16937 (grub_machine_init): Call `grub_pc_partition_map_init',
16938 `grub_amiga_partition_map_init' and
16939 `grub_apple_partition_map_init'.
16940 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
16941 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
16942 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
16943 `partition.h' and `pc_partition.h'.
16944 (grub_setup_SOURCES): Remove
16945 `disk/i386/pc/partition.c'. Add `kern/partition.c',
16946 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
16947 (grub_emu_SOURCES): Likewise.
16948 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
16949 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
16950 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
16951 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
16952 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
16953 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
16954 (grubof_SOURCES): Likewise.
16955 * disk/i386/pc/partition.c: File removed.
16956 * disk/powerpc/ieee1275/partition.c: Likewise.
16957 * include/grub/powerpc/ieee1275/partition.h: Likewise.
16958 * include/grub/i386/pc/partition.h: Likewise.
16959 * kern/partition.c: New file.
16960 * partmap/amiga.c: Likewise.
16961 * partmap/apple.c: Likewise.
16962 * partmap/pc.c: Likewise.
16963 * include/grub/partition.h: Likewise..
16964 * include/grub/pc_partition.h: Likewise.
16965 * util/grub-emu.c: Include <grub/partition.h> instead of
16966 <grub/machine/partition.h>.
16967 (main): Call `grub_pc_partition_map_init',
16968 `grub_amiga_partition_map_init' and
16969 `grub_apple_partition_map_init' and deinitialize afterwards.
16970 * util/i386/pc/biosdisk.c: Include `#include
16971 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
16972 `<grub/machine/partition.h>'.
16973 * util/i386/pc/grub-setup.c: Likewise.
16974 * util/i386/pc/biosdisk.c: Likewise.
16975 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
16976 partition information in case of a PC partition.
16977 * util/i386/pc/grub-setup.c: Include `#include
16978 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
16979 `<grub/machine/partition.h>'.
16980 (setup): Only access the PC specific partition information in case
16983 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
16985 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
16986 (grub_longjmp): Likewise.
16987 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
16989 * normal/powerpc/setjmp.S: New file.
16990 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
16991 `normal/powerpc/setjmp.S'.
16992 (grubof_CFLAGS): Add `-DGRUBOF'.
16993 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
16994 [GRUB_UTIL && !GRUBOF].
16996 2004-11-16 Marco Gerards <metgerards@student.han.nl>
16998 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
16999 property named `name'. Correctly handle the error returned by
17000 `grub_ieee1275_finddevice' if a device can not be opened.
17002 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
17004 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
17005 `actual' for negativity.
17006 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
17009 2004-11-01 Marco Gerards <metgerards@student.han.nl>
17011 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
17012 (PAGE_OFFSET): New macro.
17013 (CRTC_ADDR_PORT): Likewise.
17014 (CRTC_DATA_PORT): Likewise.
17015 (START_ADDR_HIGH_REGISTER): Likewise.
17016 (START_ADDR_LOW_REGISTER): Likewise.
17017 (GRAPHICS_ADDR_PORT): Likewise.
17018 (GRAPHICS_DATA_PORT): Likewise.
17019 (READ_MAP_REGISTER): Likewise.
17020 (INPUT_STATUS1_REGISTER): Likewise.
17021 (INPUT_STATUS1_VERTR_BIT): Likewise.
17022 (page): New variable.
17023 (wait_vretrace): New function.
17024 (set_read_map): Likewise.
17025 (set_start_address): Likewise.
17026 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
17028 (check_vga_mem): Take the page into account.
17029 (write_char): Likewise.
17030 (write_cursor): Likewise.
17031 (scroll_up): Likewise. Copy the page to the page that is not
17032 shown and switch between both pages.
17033 (grub_vga_putchar): Fix off by one error.
17034 (grub_vga_cls): Wait for the vertical retrace. Take the page into
17037 2004-11-01 Marco Gerards <metgerards@student.han.nl>
17039 Add support for iso9660 (including rockridge).
17041 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
17042 (iso9660_mod_SOURCES): New variable.
17043 (iso9660_mod_CFLAGS): Likewise.
17044 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
17045 * include/grub/fs.h (grub_iso9660_init): New prototype.
17046 * util/grub-emu.c (main): Call `grub_iso9660_init'.
17047 * fs/iso9660.c: New file.
17049 * include/grub/misc.h (grub_strncat): New prototype.
17050 * kern/misc.c (grub_strncat): New function.
17052 * fs/hfs.c (grub_hfs_mount): Translate the error
17053 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
17054 * fs/jfs.c (grub_jfs_mount): Likewise.
17055 * fs/ufs.c (grub_ufs_mount): Likewise.
17057 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
17059 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
17060 which initialized BAT registers.
17061 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
17062 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
17064 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
17065 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
17067 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
17068 (grub_mapclaim): Likewise.
17069 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
17070 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
17073 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
17075 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
17076 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
17077 -ffreestanding and -msoft-float.
17079 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
17081 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
17082 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
17083 set in grub_ieee1275_flags.
17085 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
17087 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
17089 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
17090 grub_console_init first.
17091 Change the memory range used for grub_ieee1275_claim and
17092 grub_mm_init_region.
17093 Print an error message if the claim fails.
17094 Include <grub/misc.h>.
17096 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
17098 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
17099 Call grub_children_iterate for device nodes of type `scsi',
17101 (grub_ofdisk_open): Remove manual device alias resolution.
17102 Fix memory leak when device cannot be opened.
17103 * include/grub/powerpc/ieee1275/ieee1275.h
17104 (grub_children_iterate): New prototype.
17105 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
17107 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17108 Return -1 if args.size was -1.
17110 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
17112 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
17113 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
17114 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
17115 Open Firmware's memory for it; claim memory from _start to _end.
17116 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
17117 (_end): New extern.
17118 (_start): Zero BSS from __bss_start to _end.
17119 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
17121 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
17123 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
17125 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
17126 -1 if args.base was -1.
17128 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
17130 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
17131 escape sequence instead of a literal ^L. Also call
17132 grub_ofconsole_gotoxy.
17134 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
17136 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
17137 void * arguments to grub_addr_t. All callers updated. Also make
17138 the `result' argument optional.
17139 (grub_ieee1275_release): change void * arguments to grub_addr_t.
17140 All callers updated.
17142 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
17144 * commands/ls.c (grub_ls_list_files): Use the string following the
17145 initial ')', if present, as the filesystem path.
17146 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
17148 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
17150 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
17152 Make the source code of the menu interface more readable.
17154 * normal/menu.c: Include grub/mm.h.
17155 (TERM_WIDTH): New macro.
17156 (TERM_HEIGHT): Likewise.
17157 (TERM_INFO_HEIGHT): Likewise.
17158 (TERM_MARGIN): Likewise.
17159 (TERM_SCROLL_WIDTH): Likewise.
17160 (TERM_TOP_BORDER_Y): Likewise.
17161 (TERM_LEFT_BORDER_X): Likewise.
17162 (TERM_BORDER_WIDTH): Likewise.
17163 (TERM_MESSAGE_HEIGHT): Likewise.
17164 (TERM_BORDER_HEIGHT): Likewise.
17165 (TERM_NUM_ENTRIES): Likewise.
17166 (TERM_FIRST_ENTRY_Y): Likewise.
17167 (TERM_ENTRY_WIDTH): Likewise.
17168 (TERM_CURSOR_X): Likewise.
17169 (draw_border): Use macros instead of magic numbers.
17170 (print_entry): Likewise.
17171 (print_entries): Likewise.
17172 (run_menu): Likewise. Also, handle the key 'e'.
17173 (run_menu_entry): Ignore empty command lines.
17174 (print_message): Added a new argument EDIT. If EDIT is true,
17175 print a different message.
17176 (init_page): Likewise.
17177 (edit_menu_entry): New function. Not implemented yet.
17179 2004-09-17 Marco Gerards <metgerards@student.han.nl>
17181 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
17182 can be loaded from normal mode.
17184 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
17186 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
17187 (multiboot_mod_CFLAGS): New variables.
17188 * loader/i386/pc/linux_normal.c: New file.
17189 * loader/i386/pc/multiboot_normal.c: Likewise.
17191 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
17192 attribute `unused'.
17194 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
17195 `fdiro' to read the mode information from instead of `diro'.
17197 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
17198 looking up a symlink.
17200 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
17202 * normal/command.c (grub_command_execute): Don't parse the
17203 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
17204 flags of the command.
17206 * normal/menu.c (grub_menu_run): Fix typo.
17208 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
17210 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
17212 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
17213 `y + 1' instead of `y - 1'.
17215 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
17217 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
17219 From Hollis Blanchard <hollis@penguinppc.org>:
17220 * kern/misc.c (memmove): New alias for grub_memmove.
17221 (memcmp): New alias for grub_memcmp.
17222 (memset): New alias for grub_memset.
17223 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17224 Change "int handle" to "grub_ieee1275_phandle_t handle".
17225 * include/grub/powerpc/ieee1275/ieee1275.h
17226 (grub_ieee1275_get_property): Likewise.
17228 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
17230 Added normal mode command `chainloader' as module chain.mod, which
17231 depends on normal.mod and _chain.mod.
17233 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
17234 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
17235 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
17237 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
17238 but arguments parsing moved to ...
17239 (grub_chainloader_cmd): ... here. New function.
17240 * include/grub/i386/pc/chainloader.h: New file.
17241 * loader/i386/pc/chainloader_normal.c: Likewise.
17243 2004-09-11 Marco Gerards <metgerards@student.han.nl>
17245 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
17246 (grub_mkimage_LDFLAGS): Likewise.
17247 (grub_emu_SOURCES): Likewise.
17248 (kernel_img_HEADERS): Added fshelp.h.
17249 * fs/ext2.c: Include <grub/fshelp.h>.
17250 (FILETYPE_REG): New macro.
17251 (FILETYPE_INO_REG): Likewise.
17252 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
17254 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
17256 (grub_fshelp_node): New struct.
17257 (grub_ext2_data): Added member `diropen'. Changed member `inode'
17259 (grub_ext2_get_file_block): Removed function.
17260 (grub_ext2_read_block): New function.
17261 (grub_ext2_read_file): Replaced parameter `data' by `node'.
17262 This function was written.
17263 (grub_ext2_mount): Read the root inode. Create a diropen struct.
17264 (grub_ext2_find_file): Removed function.
17265 (grub_ext2_read_symlink): New function.
17266 (grub_ext2_iterate_dir): Likewise.
17267 (grub_ext2_open): Rewritten.
17268 (grub_ext2_dir): Rewritten.
17269 * include/grub/fshelp.h: New file.
17270 * fs/fshelp.c: Likewise.
17272 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
17274 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
17275 (print_message): Add a missing newline.
17276 (run_menu): Added timeout support.
17277 (run_menu_entry): New local function.
17278 (grub_menu_run): Added support for booting.
17280 * kern/loader.c (grub_loader_is_loaded): New function.
17282 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
17283 (grub_get_rtc): Exported.
17285 * include/grub/i386/pc/time.h: Include grub/symbol.h.
17286 (grub_get_rtc): Exported.
17288 * include/grub/normal.h (struct grub_command_list): Remove
17289 constant from the member `command'.
17291 * include/grub/loader.h (grub_loader_is_loaded): Declared.
17293 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
17295 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
17297 2004-08-28 Marco Gerards <metgerards@student.han.nl>
17299 Add support for the JFS filesystem.
17301 * fs/jfs.c: New file.
17302 * include/grub/fs.h (grub_jfs_init): New prototype.
17303 (grub_jfs_fini): New prototype.
17304 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
17305 (grub_emu_SOURCES): Likewise.
17306 (pkgdata_MODULES): Add jfs.mod.
17307 (jfs_mod_SOURCES): New variable.
17308 (jfs_mod_CFLAGS): Likewise.
17309 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
17310 (grubof_SOURCES): Likewise.
17311 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
17313 * fs/fat.c (grub_fat_find_dir): Convert the filename little
17314 endian to the host endian.
17315 (grub_fat_utf16_to_utf8): Move function from there...
17316 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
17317 the endianness of the source string anymore.
17318 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
17320 2004-08-24 Marco Gerards <metgerards@student.han.nl>
17322 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
17323 (grub_boot_fini) [GRUB_UTIL]: Likewise.
17324 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
17325 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
17327 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
17328 (grub_hfs_iterate_dir): Make the function static. Add prototypes
17329 for `node_found' and `it_dir'.
17330 (grub_hfs_dir): Add prototype for `dir_hook'.
17332 * fs/minix.c (grub_minix_get_file_block): Add prototype for
17333 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
17334 and `indir32' to silence a gcc warning.
17336 * include/grub/fs.h (grub_hfs_init): New prototype.
17337 (grub_hfs_fini): Likewise.
17340 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
17342 Each disk device has its own id now. This is useful to make use
17343 of multiple disk devices.
17345 * include/grub/disk.h (grub_disk_dev_id): New enum.
17346 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
17347 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
17349 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
17350 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
17352 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
17353 GRUB_DISK_DEVICE_OFDISK_ID as an id.
17355 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
17356 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
17358 * include/grub/disk.h (struct grub_disk_dev): Added a new member
17359 "id" which is used by the cache manager.
17361 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
17364 2004-08-18 Marco Gerards <metgerards@student.han.nl>
17366 * fs/hfs.c: New file.
17367 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
17368 (grub_emu_SOURCES): Likewise.
17369 (pkgdata_MODULES): Add hfs.mod.
17370 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
17371 (grubof_SOURCES): Likewise.
17372 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
17374 * include/grub/misc.h (grub_strncasecmp): Add prototype.
17375 * kern/misc.c (grub_strncasecmp): Add function.
17377 2004-08-14 Marco Gerards <metgerards@student.han.nl>
17379 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
17382 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
17383 (grub_ext2_dir): In case the directory entry type is unknown, read
17386 2004-08-02 Peter Bruin <pjbruin@dds.nl>
17388 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
17389 grub_load_linux instead of grub_rescue_cmd_linux as second
17390 argument of grub_rescue_register_command.
17392 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
17394 2004-07-27 Marco Gerards <metgerards@student.han.nl>
17396 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
17398 * commands/boot.c: Remove the check for `GRUB_UTIL'.
17399 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
17400 `loader/powerpc/ieee1275/linux.c',
17401 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
17402 * include/grub/powerpc/ieee1275/ieee1275.h
17403 (grub_ieee1275_release): New prototype.
17404 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
17405 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
17406 normal, boot, linux and linux_normal.
17407 * loader/powerpc/ieee1275/linux.c: New file.
17408 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
17410 2004-07-12 Marco Gerards <metgerards@student.han.nl>
17412 * normal/arg.c (grub_arg_parse): Correct error handling after
17413 reallocating the argumentlist (check if `argl' is not null instead
17414 of checking if `args' is not null).
17415 * kern/mm.c (grub_realloc): Return the same pointer when using the
17416 same region, instead of returning the header address.
17418 2004-07-11 Marco Gerards <metgerards@student.han.nl>
17420 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
17421 one block instead of two when looking for the initial partition.
17422 (grub_partition_probe): Initialize the local variable `p' with 0.
17423 Use base 10 for the grub_strtoul call.
17424 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
17425 need for one local variable.
17426 (grub_strtoul): Don't add the new value to `num', instead of that
17429 2004-07-11 Marco Gerards <metgerards@student.han.nl>
17431 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
17432 (pxeboot_img_SOURCES): New variable.
17433 (pxeboot_img_ASFLAGS): Likewise.
17434 (pxeboot_img_LDFLAGS): Likewise.
17435 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
17436 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
17437 <lode_leroy@hotmail.com>.
17439 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
17441 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
17442 there was no input.
17444 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
17446 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
17447 the history buffer logic.
17449 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
17451 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
17452 (FILETYPE_INO_SYMLINK): New macros.
17453 (grub_ext2_find_file): Check if the node is a directory using the
17454 inode stat information instead of using the filetype in the
17455 dirent. Exclude the first character of an absolute symlink.
17456 (grub_ext2_dir): Mask out the filetype part of the mode member of
17459 2004-05-24 Marco Gerards <metgerards@student.han.nl>
17461 Add support for UFS version 1 and 2. Add support for the minix
17462 filesystem version 1 and 2, both the variants with 14 and 30 long
17465 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
17467 (grub_emu_SOURCES): Likewise.
17468 (pkgdata_MODULES): Add ufs.mod and minix.mod.
17469 (ufs_mod_SOURCES): New variable.
17470 (ufs_mod_CFLAGS): Likewise.
17471 (minix_mod_SOURCES): Likewise.
17472 (minix_mod_CFLAGS): Likewise.
17473 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
17475 (grubof_SOURCES): Likewise.
17476 * fs/ufs.c: New file.
17477 * fs/minix.c: New file.
17478 * include/grub/fs.h (grub_ufs_init): New prototype.
17479 (grub_ufs_fini): Likewise.
17480 (grub_minix_init): Likewise.
17481 (grub_minix_fini): Likewise.
17482 * util/grub-emu.c (main): Initialize and deinitialize UFS and
17485 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
17487 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
17488 commands/ls.c, commands/terminal.c, commands/boot.c,
17489 commands/cmp.c and commands/cat.c.
17490 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
17492 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
17495 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
17497 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
17498 and grub_, respectively. Because the conversion is trivial and
17499 mechanical, I omit the details here. Please refer to the CVS
17500 if you need more information.
17502 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
17504 * include/pupa: Renamed to ...
17505 * include/grub: ... this.
17506 * util/i386/pc/pupa-mkimage.c: Renamed to ...
17507 * util/i386/pc/grub-mkimage.c: ... this.
17508 * util/i386/pc/pupa-setup.c: Renamed to ...
17509 * util/i386/pc/grub-setup.c: ... this.
17510 * util/pupa-emu.c: Renamed to ...
17511 * util/grub-emu.c: ... this.
17513 2004-03-29 Marco Gerards <metgerards@student.han.nl>
17515 Add support for the newworld apple macintosh (PPC). This has been
17516 tested on the powerbook 2000 only. It only adds support for
17517 generic ieee1275 functions, console and disk support. This should
17518 be easy to port to other architectures with support for Open
17521 * configure.ac: Accept the powerpc as host_cpu. In the case of
17522 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
17523 specific tests are only executed while building for the i386.
17524 Inverse test for crosscompile.
17525 * genmk.rb (Utility): Allow assembler files.
17526 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
17527 * conf/powerpc-ieee1275.rmk: New file.
17528 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
17529 * disk/powerpc/ieee1275/partition.c: Likewise.
17530 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
17531 * include/pupa/powerpc/ieee1275/console.h: Likewise.
17532 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
17533 * include/pupa/powerpc/ieee1275/time.h: Likewise.
17534 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
17535 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
17536 * include/pupa/powerpc/ieee1275/loader.h
17537 * include/pupa/powerpc/setjmp.h: Likewise.
17538 * include/pupa/powerpc/types.h: Likewise.
17539 * kern/powerpc/ieee1275/init.c: Likewise.
17540 * kern/powerpc/ieee1275/openfw.c: Likewise.
17541 * term/powerpc/ieee1275/ofconsole.c: Likewise.
17543 These files were written by Johan Rydberg
17544 (jrydberg@night.trouble.net) and I only modified them slightly.
17546 * boot/powerpc/ieee1275/cmain.c: New file.
17547 * boot/powerpc/ieee1275/crt0.S: Likewise.
17548 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
17549 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
17551 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
17553 * Makefile.in: Update copyright.
17554 * genmodsrc.sh: Likewise.
17555 * gensymlist.sh: Likewise.
17556 * term/i386/pc/vga.c: Indent correctly.
17558 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
17559 bugreporting address.
17560 * util/i386/pc/pupa-setup.c (usage): Likewise,
17561 (main): Call pupa_ext2_init and pupa_ext2_fini.
17563 * fs/fat.c (log2): Renamed to ...
17564 (fat_log2): ... this.
17565 All callers changed.
17566 * kern/misc.c (memcpy): Alias to pupa_memmove.
17567 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
17569 * util/console.c (pupa_ncurses_fini): Return 0.
17571 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
17572 Move fail label here.
17573 [__GNU__]: Don't warn when using stat.
17574 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
17575 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
17576 long int. Use strtol instead of strtoul.
17578 2004-03-14 Marco Gerards <metgerards@student.han.nl>
17580 * commands/boot.c: New file.
17581 * commands/cat.c: Likewise.
17582 * commands/cmp.c: Likewise.
17583 * commands/ls.c: Likewise.
17584 * commands/terminal.c: Likewise.
17585 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
17586 (pupa_register_command): Changed interface to match the new
17588 (pupa_command_execute): Changed (almost rewritten) so it uses
17589 pupa_split_command. Added support for setting variables using the
17591 (rescue_command): Changed to work with the new argument parser.
17592 (terminal_command): Moved from here to commands/terminal.c.
17593 (set_command): New function.
17594 (unset_command): New function.
17595 (insmod_command): New function.
17596 (rmmod_command): New function.
17597 (lsmod_command): New function.
17598 (pupa_command_init): Don't initialize the command terminal
17599 anymore. Initialize the commands set, unset, insmod, rmmod and
17601 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
17602 (kernel_img_HEADERS): Add arg.h and env.h.
17603 (pupa_mkimage_LDFLAGS): Add kern/env.c.
17604 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
17605 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
17607 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
17609 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
17610 (boot_mod_SOURCES): New variable.
17611 (terminal_mod_SOURCES): Likewise.
17612 (ls_mod_SOURCES): Likewise.
17613 (cmp_mod_SOURCES): Likewise.
17614 (cat_mod_SOURCES): Likewise.
17616 * normal/arg.c: New file.
17617 * kern/env.c: Likewise.
17618 * include/pupa/arg.h: Likewise.
17619 * include/pupa/env.h: Likewise.
17620 * font/manager.c (font_command): Changed to match argument parsing
17622 (PUPA_MOD_INIT): Likewise.
17623 * hello/hello.c (pupa_cmd_hello): Likewise.
17624 (PUPA_MOD_INIT): Likewise.
17625 * include/pupa/disk.h: Include <pupa/device.h>.
17626 (pupa_print_partinfo): New prototype.
17627 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
17628 (pupa_dl_get_prefix): Likewise.
17629 * include/pupa/misc.h: Include <pupa/err.h>.
17630 (pupa_isgraph): New prototype.
17631 (pupa_isdigit): Likewise.
17632 (pupa_split_cmdline): Likewise.
17633 * include/pupa/normal.h: Include <pupa/arg.h>.
17634 (pupa_command): Changed the prototype of the member `func' to
17635 match the argument parsing interface. Added member `options'.
17636 (pupa_register_command): Updated to match function.
17637 (pupa_arg_parse): New prototype.
17638 (pupa_hello_init) [PUPA_UTIL]: New prototype.
17639 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
17640 (pupa_ls_init) [PUPA_UTIL]: Likewise.
17641 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
17642 (pupa_cat_init) [PUPA_UTIL]: Likewise.
17643 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
17644 (pupa_boot_init) [PUPA_UTIL]: Likewise.
17645 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
17646 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
17647 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
17648 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
17649 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
17650 * kern/disk.c: Include <pupa/file.h>.
17651 (pupa_print_partinfo): New function.
17652 * kern/dl.c: Include <pupa/env.h>.
17653 (pupa_dl_dir): Variable removed.
17654 (pupa_dl_load): Use the environment variable `prefix' instead of
17655 the variable pupa_dl_dir.
17656 (pupa_dl_set_prefix): Function removed.
17657 (pupa_dl_get_prefix): Likewise.
17658 * kern/i386/pc/init.c: Include <pupa/env.h>.
17659 (pupa_machine_init): Use the environment variable `prefix' instead of
17660 using pupa_dl_set_prefix to set the prefix.
17661 * kern/main.c: Include <pupa/env.h>.
17662 (pupa_set_root_dev): Use the environment variable `prefix' instead of
17663 using pupa_dl_get_prefix to get the prefix.
17664 * kern/misc.c: Include <pupa/env.h>.
17665 (pupa_isdigit): New function.
17666 (pupa_isgraph): Likewise.
17667 (pupa_ftoa): Likewise.
17668 (pupa_vsprintf): Added support for printing values of the type
17669 `double'. Make it possible to format variable output when using
17670 formatting like `%1.2%f'.
17671 (pupa_split_cmdline): New function.
17672 * kern/rescue.c: Include <pupa/env.h>.
17673 (next_word): Removed function.
17674 (pupa_rescue_cmd_prefix): Likewise.
17675 (pupa_rescue_cmd_set): New function.
17676 (pupa_rescue_cmd_unset): New function.
17677 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
17678 split the command line instead of splitting it here. Added
17679 support for setting variables using the syntax `foo=bar'. Don't
17680 initialize the prefix command anymore. Initialized the set and
17682 * normal/cmdline.c: Include <pupa/env.h>.
17683 (pupa_tab_complete): Added prototypes for print_simple_completion,
17684 print_partition_completion, add_completion, iterate_commands,
17685 iterate_dev, iterate_part and iterate_dir. Moved code to print
17686 partition information from here to kern/disk.c.
17687 (pupa_cmdline_run): Don't check if the function exists anymore.
17688 * normal/main.c: Include <pupa/env.h>.
17689 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
17690 instead of using pupa_dl_get_prefix to get the prefix.
17691 * term/i386/pc/vga.c: Include <pupa/arg.h>.
17692 (check_vga_mem): Cast pointers to `void *' to silence a gcc
17694 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
17695 (pupa_vga_setcolor): Declare unused variables with `__attribute__
17696 ((unused))' to silence a gcc warning.
17697 (pupa_vga_setcolor): Likewise.
17698 (debug_command): Changed to match argument parsing
17700 * util/pupa-emu.c: Include <pupa/env.h>.
17701 (options): Added 0's for unused fields to silence a gcc warning.
17703 (main): Use the environment variable `prefix' instead of using
17704 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
17705 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
17708 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
17709 * util/misc.c: Include <malloc.h>.
17710 (pupa_malloc): Rewritten so errors are correctly reported.
17711 (pupa_realloc): Likewise.
17712 (pupa_memalign): Likewise.
17713 (pupa_mm_init_region): Declare unused variables with
17714 `__attribute__ ((unused))' to silence a gcc warning.
17715 * normal/i386/setjmp.S: Remove tab at the end of the file to
17716 silence a gcc warning.
17717 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
17718 variables with `__attribute__ ((unused))' to silence a gcc
17720 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
17721 local variable i unsigned to silence a gcc warning.
17723 * kern/term.c: Include <pupa/misc.h>.
17724 (pupa_more_lines): New variable.
17725 (pupa_more): Likewise.
17726 (pupa_putcode): When the pager is active pause at the end of every
17728 (pupa_set_more): New function.
17729 * include/pupa/term.h (pupa_set_more): New prototype.
17732 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
17734 Now this project is GRUB 2 rather than PUPA. The location of
17735 the CVS repository was moved to GRUB's.
17737 * configure.ac: Use bug-grub as the reporting address.
17738 Use GRUB instead of PUPA.
17739 Change the version number to 1.90.
17741 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
17743 * genkernsyms.sh: Updated copyright information.
17744 * genmk.rb: Likewise.
17745 * genmodsrc.sh: Likewise.
17746 * gensymlist.sh: Likewise.
17747 * boot/i386/pc/boot.S: Likewise.
17748 * boot/i386/pc/diskboot.S: Likewise.
17749 * disk/i386/pc/biosdisk.c: Likewise.
17750 * disk/i386/pc/partition.c: Likewise.
17751 * font/manager.c: Likewise.
17752 * fs/ext2.c: Likewise.
17753 * fs/fat.c: Likewise.
17754 * include/pupa/boot.h: Likewise.
17755 * include/pupa/device.h: Likewise.
17756 * include/pupa/disk.h: Likewise.
17757 * include/pupa/dl.h: Likewise.
17758 * include/pupa/elf.h: Likewise.
17759 * include/pupa/err.h: Likewise.
17760 * include/pupa/file.h: Likewise.
17761 * include/pupa/font.h: Likewise.
17762 * include/pupa/fs.h: Likewise.
17763 * include/pupa/kernel.h: Likewise.
17764 * include/pupa/loader.h: Likewise.
17765 * include/pupa/misc.h: Likewise.
17766 * include/pupa/mm.h: Likewise.
17767 * include/pupa/net.h: Likewise.
17768 * include/pupa/normal.h: Likewise.
17769 * include/pupa/rescue.h: Likewise.
17770 * include/pupa/setjmp.h: Likewise.
17771 * include/pupa/symbol.h: Likewise.
17772 * include/pupa/term.h: Likewise.
17773 * include/pupa/types.h: Likewise.
17774 * include/pupa/i386/setjmp.h: Likewise.
17775 * include/pupa/i386/types.h: Likewise.
17776 * include/pupa/i386/pc/biosdisk.h: Likewise.
17777 * include/pupa/i386/pc/boot.h: Likewise.
17778 * include/pupa/i386/pc/console.h: Likewise.
17779 * include/pupa/i386/pc/init.h: Likewise.
17780 * include/pupa/i386/pc/kernel.h: Likewise.
17781 * include/pupa/i386/pc/linux.h: Likewise.
17782 * include/pupa/i386/pc/loader.h: Likewise.
17783 * include/pupa/i386/pc/memory.h: Likewise.
17784 * include/pupa/i386/pc/multiboot.h: Likewise.
17785 * include/pupa/i386/pc/partition.h: Likewise.
17786 * include/pupa/i386/pc/time.h: Likewise.
17787 * include/pupa/i386/pc/vga.h: Likewise.
17788 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
17789 * include/pupa/util/getroot.h: Likewise.
17790 * include/pupa/util/misc.h: Likewise.
17791 * include/pupa/util/resolve.h: Likewise.
17792 * kern/device.c: Likewise.
17793 * kern/disk.c: Likewise.
17794 * kern/dl.c: Likewise.
17795 * kern/err.c: Likewise.
17796 * kern/file.c: Likewise.
17797 * kern/fs.c: Likewise.
17798 * kern/loader.c: Likewise.
17799 * kern/main.c: Likewise.
17800 * kern/misc.c: Likewise.
17801 * kern/mm.c: Likewise.
17802 * kern/rescue.c: Likewise.
17803 * kern/term.c: Likewise.
17804 * kern/i386/dl.c: Likewise.
17805 * kern/i386/pc/init.c: Likewise.
17806 * kern/i386/pc/lzo1x.S: Likewise.
17807 * kern/i386/pc/startup.S: Likewise.
17808 * loader/i386/pc/chainloader.c: Likewise.
17809 * loader/i386/pc/linux.c: Likewise.
17810 * loader/i386/pc/multiboot.c: Likewise.
17811 * normal/cmdline.c: Likewise.
17812 * normal/command.c: Likewise.
17813 * normal/main.c: Likewise.
17814 * normal/menu.c: Likewise.
17815 * normal/i386/setjmp.S: Likewise.
17816 * term/i386/pc/console.c: Likewise.
17817 * term/i386/pc/vga.c: Likewise.
17818 * util/console.c: Likewise.
17819 * util/genmoddep.c: Likewise.
17820 * util/misc.c: Likewise.
17821 * util/pupa-emu.c: Likewise.
17822 * util/resolve.c: Likewise.
17823 * util/unifont2pff.rb: Likewise.
17824 * util/i386/pc/biosdisk.c: Likewise.
17825 * util/i386/pc/getroot.c: Likewise.
17826 * util/i386/pc/pupa-mkimage.c: Likewise.
17827 * util/i386/pc/pupa-setup.c: Likewise.
17829 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
17831 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
17832 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
17833 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
17834 reading and reset it after reading.
17835 (pupa_ext2_close): Return PUPA_ERR_NONE.
17837 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
17839 (struct linux_kernel_header): Add kernel_version and
17841 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
17842 pupa_file_read succeeds.
17843 (pupa_rescue_cmd_initrd): Implement.
17845 2003-12-03 Marco Gerards <metgerards@student.han.nl>
17847 * fs/ext2.c (pupa_ext2_label): New function.
17848 (pupa_ext2_fs): Added label.
17849 * fs/fat.c (pupa_fat_label): New function.
17850 (pupa_fat_fs): Added label.
17851 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
17853 * kern/misc.c (pupa_strndup): New function.
17854 * include/pupa/misc.h (pupa_strndup): New prototype.
17856 * include/pupa/normal.h: Include <pupa/err.h>.
17857 (pupa_set_history): New prototype.
17858 (pupa_iterate_commands): New prototype.
17859 * normal/cmdline.c: Include <pupa/machine/partition.h>,
17860 <pupa/disk.h>, <pupa/file.h>.
17861 (hist_size): New variable.
17862 (hist_lines): Likewise.
17863 (hist_end): Likewise.
17864 (hist_used): Likewise.
17865 (pupa_set_history): New function.
17866 (pupa_history_get): Likewise.
17867 (pupa_history_add): Likewise.
17868 (pupa_history_replace): Likewise.
17869 (pupa_tab_complete): Likewise.
17870 (pupa_cmdline_run): Added tab completion and history buffer. Tab
17871 completion shows partitionnames while completing partitions, this
17872 feature was suggested by Jeff Bailey.
17873 * normal/command.c (pupa_iterate_commands): New function.
17874 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
17875 (pupa_normal_init): Initialize history buffer.
17876 (PUPA_MOD_INIT): Likewise.
17877 (pupa_normal_fini): Free the history buffer.
17878 (PUPA_MOD_FINI): Likewise.
17880 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
17883 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
17884 * configure.ac [i386]: Check for regparam bug.
17885 (NESTED_FUNC_ATTR) [! i386]: Defined.
17887 2003-11-17 Marco Gerards <metgerards@student.han.nl>
17889 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
17890 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
17891 (pupa_emu_SOURCES): New variable.
17892 (pupa_emu_LDFLAGS): Likewise.
17893 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
17894 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
17895 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
17896 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
17897 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
17898 (pupa_jmp_buf): New typedef.
17899 (pupa_setjmp) [PUPA_UTIL]: New macro.
17900 (pupa_longjmp) [PUPA_UTIL]: Likewise.
17901 * include/pupa/term.h (struct pupa_term): New member `refresh'.
17902 (pupa_refresh): New prototype.
17903 * include/pupa/util/getroot.h: New file.
17904 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
17906 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
17907 (pupa_rescue_cmd_cat): Likewise.
17908 (pupa_rescue_cmd_ls): Likewise.
17909 (pupa_rescue_cmd_testload): Likewise.
17910 (pupa_rescue_cmd_lsmod): Likewise.
17911 * normal/cmdline.c (pupa_cmdline_get): Likewise.
17912 * normal/menu.c (run_menu): Likewise.
17913 * kern/term.c (pupa_cls): Likewise.
17914 (pupa_refresh): New function.
17915 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
17916 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
17917 * util/console.c: New file.
17919 * util/i386/pc/getroot.c: New file.
17920 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
17921 (pupa_putchar): New function.
17922 (pupa_refresh): Likewise.
17923 (xgetcwd): Function moved to ...
17924 (strip_extra_slashes): Likewise.
17925 (get_prefix): Likewise.
17926 * util/i386/pc/getroot.c: ... here.
17927 (find_root_device): Function moved and renamed to...
17928 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
17929 Changed all callers.
17930 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
17932 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
17933 Changed all callers.
17934 * util/misc.c (pupa_memalign): New function.
17935 (pupa_mm_init_region): Likewise.
17936 (pupa_register_exported_symbols): Likewise.
17937 (pupa_putchar): Function removed.
17938 * util/pupa-emu.c: New file.
17940 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
17942 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
17943 (_multiboot_mod_SOURCES): New variable.
17944 (_multiboot_mod_CFLAGS): Likewise.
17945 * loader/i386/pc/multiboot.c: New file.
17946 * include/pupa/i386/pc/multiboot.h: Likewise.
17947 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
17948 (pupa_multiboot_real_boot): New function.
17949 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
17950 (pupa_multiboot_real_boot): New prototype.
17951 (pupa_rescue_cmd_multiboot): Likewise
17952 (pupa_rescue_cmd_module): Likewise.
17954 * kern/loader.c (pupa_loader_set): Continue when
17955 pupa_loader_unload_func() fails.
17956 (pupa_loader_unset): New function.
17957 * include/pupa/loader.h (pupa_loader_unset): New prototype.
17959 * kern/misc.c (pupa_stpcpy): New function.
17960 * include/pupa/misc.h (pupa_stpcpy): New prototype.
17962 2003-11-12 Marco Gerards <metgerards@student.han.nl>
17964 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
17965 for available extensions.
17967 * include/pupa/i386/pc/time.h: New file.
17968 * kern/disk.c: Include <pupa/machine/time.h>.
17969 (PUPA_CACHE_TIMEOUT): New macro.
17970 (pupa_last_time): New variable.
17971 (pupa_disk_open): Flush the cache when there was a timeout.
17972 (pupa_disk_close): Reset the timer.
17973 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
17975 * util/misc.c: Include <sys/times.h>
17976 (pupa_get_rtc): New function.
17978 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
17980 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
17982 (pupa_ext2_get_file_block): Use blocks member.
17984 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
17985 first block. Return -1 instead of pupa_errno on error.
17987 2003-10-27 Marco Gerards <metgerards@student.han.nl>
17989 * README: In the pupa-mkimage example use _chain instead of chain
17990 and ext2 instead of fat.
17991 * TODO: Replace ext2fs with jfs as an example. Add an item for
17992 adding journal playback for ext2fs.
17993 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
17994 (pkgdata_MODULES): Added ext2.mod.
17995 (ext2_mod_SOURCES): New variable.
17996 (ext2_mod_CFLAGS): Likewise.
17997 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
17998 * include/pupa/misc.h (pupa_strncpy): New prototype.
17999 (pupa_strcat): Likewise.
18000 (pupa_strncmp): Likewise.
18001 * kern/misc.c (pupa_strcat): Enable function.
18002 (pupa_strncpy): New function.
18003 (pupa_strncmp): Likewise.
18004 * fs/ext2.c: New file.
18006 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
18007 when the read failed before retrying.
18008 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
18009 (_FILE_OFFSET_BITS): Likewise.
18010 * configure.ac: Added AC_SYS_LARGEFILE.
18012 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
18014 * genmk.rb (PModule#rule): Make sure to get only symbol names
18015 from the output of nm.
18016 Reported by Robert Millan <zeratul2@wanadoo.es>.
18018 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
18020 I forgot to check in these changes for a long time. This adds
18021 incomplete support for VGA console, and this is still very
18022 buggy. Also, a lot of consideration is required for I18N,
18023 UNICODE, and VGA font issues. Therefore, assume that this is
18024 such that "better than nothing".
18026 * font/manager.c: New file.
18027 * include/pupa/font.h: Likewise.
18028 * include/pupa/i386/pc/vga.h: Likewise.
18029 * term/i386/pc/vga.c: Likewise.
18030 * util/unifont2pff.rb: Likewise.
18032 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
18033 (pkgdata_MODULES): Added vga.mod and font.mod.
18034 (vga_mod_SOURCES): New variables.
18035 (vga_mod_CFLAGS): Likewise.
18036 (font_mod_SOURCES): Likewise.
18037 (font_mod_CFLAGS): Likewise.
18039 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
18041 * include/pupa/term.h: Include pupa/err.h.
18042 (struct pupa_term): Added init and fini.
18043 Changed the argument of putchar to pupa_uint32_t.
18045 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
18046 (pupa_console_real_putchar): New prototype.
18047 (pupa_console_putchar): Removed.
18048 (pupa_console_checkkey): Exported.
18049 (pupa_console_getkey): Likewise.
18051 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
18054 * kern/term.c (pupa_term_set_current): Rewritten.
18055 (pupa_putchar): Likewise.
18056 (pupa_putcode): New function.
18058 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
18059 (pupa_console_real_putchar): ... this.
18060 (pupa_vga_set_mode): New function.
18061 (pupa_vga_get_font): Likewise.
18063 * normal/command.c: Include pupa/term.h.
18064 (terminal_command): New function.
18065 (pupa_command_init): Register the command "terminal".
18067 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
18068 (DISP_UP): Likewise.
18069 (DISP_RIGHT): Likewise.
18070 (DISP_DOWN): Likewise.
18071 (DISP_HLINE): Likewise.
18072 (DISP_VLINE): Likewise.
18073 (DISP_UL): Likewise.
18074 (DISP_UR): Likewise.
18075 (DISP_LL): Likewise.
18076 (DISP_LR): Likewise.
18078 * term/i386/pc/console.c (pupa_console_putchar): New function.
18080 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
18082 * util/resolve.c (pupa_util_resolve_dependencies): BUG
18083 FIX. Reverse the path_list.
18085 * include/pupa/normal.h: Export pupa_register_command and
18086 pupa_unregister_command.
18088 * hello/hello.c (pupa_cmd_hello): New module.
18089 * conf/i386-pc.rmk: Added hello.mod.
18091 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
18093 * kern/i386/pc/lzo1x.S: New file.
18095 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
18096 (compress_kernel): New variable.
18097 (generate_image): Heavily modified to support compressing a
18098 large part of the core image.
18100 * util/misc.c (pupa_util_read_image): Fix a file descriptor
18102 (pupa_util_load_image): New function.
18104 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
18105 (pupa_compressed_size): New variable.
18106 (codestart): Enable Gate A20 here.
18107 Decompress the compressed part of the core image.
18108 Rearrange the code to put functions and variables which are
18109 required for initialization in the non-compressed part.
18112 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
18115 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
18117 * include/pupa/i386/pc/kernel.h
18118 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
18119 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
18120 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
18121 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
18122 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
18124 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
18126 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
18127 (Utility#rule): Likewise.
18129 * configure.ac: Check if LZO is available.
18131 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
18133 * include/pupa/normal.h: New file.
18134 * include/pupa/setjmp.h: Likewise.
18135 * include/pupa/i386/setjmp.h: Likewise.
18136 * normal/cmdline.c: Likewise.
18137 * normal/command.c: Likewise.
18138 * normal/main.c: Likewise.
18139 * normal/menu.c: Likewise.
18140 * normal/i386/setjmp.S: Likewise.
18142 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
18143 (pupa_rescue_cmd_initrd): Likewise.
18145 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
18148 * kern/i386/pc/startup.S (translation_table): New variable.
18149 (translate_keycode): New function.
18150 (pupa_console_getkey): Call translate_keycode.
18152 * kern/rescue.c (attempt_normal_mode): New function.
18153 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
18154 it failed, print a message.
18156 * kern/mm.c (pupa_real_malloc): Print more information when a
18157 free magic is broken.
18158 (pupa_free): If the first free header is not free actually, set
18161 * kern/main.c (pupa_load_normal_mode): Just load the module
18163 (pupa_main): Don't print the message
18164 "Entering into rescue mode..." here.
18166 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
18168 (pupa_rescue_cmd_initrd): Likewise.
18169 (pupa_rescue_cmd_initrd): Likewise.
18171 * include/pupa/symbol.h (FUNCTION): Specify the type.
18172 (VARIABLE): Likewise.
18174 * include/pupa/err.h (pupa_err_t): Added
18175 PUPA_ERR_UNKNOWN_COMMAND.
18177 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
18178 (pupa_dl_get_prefix): Likewise.
18180 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
18181 Added _chain.mod and _linux.mod instead of chain.mod and
18183 (chain_mod_SOURCES): Renamed to ...
18184 (_chain_mod_SOURCES): ... this.
18185 (chain_mod_CFLAGS): Renamed to ...
18186 (_chain_mod_CFLAGS): ... this.
18187 (linux_mod_SOURCES): Renamed to ...
18188 (_linux_mod_SOURCES): ... this.
18189 (linux_mod_CFLAGS): Renamed to ...
18190 (_linux_mod_CFLAGS): ... this.
18191 (normal_mod_SOURCES): New variable.
18192 (normal_mod_CFLAGS): Likewise.
18193 (normal_mod_ASFLAGS): Likewise.
18195 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
18197 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
18200 * kern/dl.c (pupa_dl_ref): Refer depending modules
18202 (pupa_dl_unref): Unrefer depending modules recursively.
18203 Don't call pupa_dl_unload implicitly, because PUPA can crash if
18204 a module is unloaded before one depending on that module is
18206 (pupa_dl_unload): Unload depending modules explicitly,
18209 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
18211 * include/pupa/i386/pc/linux.h: New file.
18212 * loader/i386/pc/linux.c: Likewise.
18214 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
18216 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
18217 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
18218 of PUPA_CHAINLOADER_BOOT_SECTOR.
18220 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
18221 (pupa_linux_prot_size): New variable.
18222 (pupa_linux_tmp_addr): Likewise.
18223 (pupa_linux_real_addr): Likewise.
18224 (pupa_linux_boot_zimage): New function.
18225 (pupa_linux_boot_bzimage): Likewise.
18227 * kern/i386/pc/init.c (struct mem_region): New structure.
18228 (MAX_REGIONS): New macro.
18229 (mem_regions): New variable.
18230 (num_regions): Likewise.
18231 (pupa_os_area_addr): Likewise.
18232 (pupa_os_area_size): Likewise.
18233 (pupa_lower_mem): Likewise.
18234 (pupa_upper_mem): Likewise.
18235 (add_mem_region): New function.
18236 (compact_mem_regions): Likewise.
18237 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
18238 the size of the conventional memory and that of so-called upper
18239 memory (before the first memory hole).
18240 Instead of adding each found region to free memory, use
18241 add_mem_region and add them after removing overlaps.
18242 Also, add only 1/4 of the upper memory to free memory. The rest
18243 is used for loading OS images. Maybe this is ad hoc, but this
18244 makes it much easier to relocate OS images when booting.
18246 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
18247 (pupa_enter_rescue_mode): Don't register initrd and module.
18249 * kern/mm.c: Include pupa/dl.h.
18251 * kern/main.c: Include pupa/file.h and pupa/device.h.
18253 * kern/loader.c (pupa_loader_load_module_func): Removed.
18254 (pupa_loader_load_module): Likewise.
18256 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
18259 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
18260 (pupa_linux_tmp_addr): Likewise.
18261 (pupa_linux_real_addr): Likewise.
18262 (pupa_linux_boot_zimage): Likewise.
18263 (pupa_linux_boot_bzimage): Likewise.
18265 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
18266 (pupa_upper_mem): Likewise.
18267 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
18268 module is too dangerous.
18270 * include/pupa/loader.h (pupa_os_area_addr): Declared.
18271 (pupa_os_area_size): Likewise.
18272 (pupa_loader_set): Remove the first argument. Loader doesn't
18273 manage modules or initrd any longer.
18274 (pupa_loader_load_module): Removed.
18276 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
18277 (linux_mod_SOURCES): New variable.
18278 (linux_mod_CFLAGS): Likewise.
18280 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
18282 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
18283 the length of a blocklist correctly.
18285 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
18286 Use ioctl only if the OS file is a block device.
18287 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
18288 not very useful for normal files.
18290 * kern/main.c (pupa_set_root_dev): New function.
18291 (pupa_load_normal_mode): Likewise.
18292 (pupa_main): Call those above.
18294 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
18297 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
18299 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
18301 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
18302 (setup): Configure the installed partition information and the
18305 * loader/i386/pc/chainloader.c (my_mod): New variable.
18306 (pupa_chainloader_unload): New function.
18307 (pupa_rescue_cmd_chainloader): Refer itself.
18308 (PUPA_MOD_INIT): Save its own module in MY_MOD.
18310 * kern/i386/pc/startup.S (install_partition): Removed.
18311 (version_string): Likewise.
18312 (config_file): Likewise.
18313 (pupa_install_dos_part): New variable.
18314 (pupa_install_bsd_part): Likewise.
18315 (pupa_prefix): Likewise.
18316 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
18318 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
18320 (make_install_device): New function.
18321 (pupa_machine_init): Set the dl prefix.
18323 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
18324 (buf): Renamed to ...
18325 (linebuf): ... this.
18326 (pupa_rescue_cmd_prefix): New function.
18327 (pupa_rescue_cmd_insmod): Likewise.
18328 (pupa_rescue_cmd_rmmod): Likewise.
18329 (pupa_rescue_cmd_lsmod): Likewise.
18330 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
18333 * kern/mm.c (pupa_memalign): If failed even after invalidating
18334 disk caches, unload unneeded modules and retry.
18336 * kern/misc.c (pupa_memmove): New function.
18337 (pupa_memcpy): Removed.
18338 (pupa_strcpy): New function.
18339 (pupa_itoa): Made static.
18341 * kern/dl.c (pupa_dl_iterate): New function.
18342 (pupa_dl_ref): Likewise.
18343 (pupa_dl_unref): Likewise.
18344 (pupa_dl_unload): Return if succeeded or not.
18345 (pupa_dl_unload_unneeded): New function.
18346 (pupa_dl_unload_all): Likewise.
18347 (pupa_dl_init): Renamed to ...
18348 (pupa_dl_set_prefix): ... this.
18349 (pupa_dl_get_prefix): New function.
18351 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
18352 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
18353 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
18354 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
18355 (pupa_install_dos_part): Declared.
18356 (pupa_install_bsd_part): Likewise.
18357 (pupa_prefix): Likewise.
18358 (pupa_boot_drive): Likewise.
18360 * include/pupa/types.h: Fix a typo.
18362 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
18364 (pupa_memmove): Declared.
18365 (pupa_strcpy): Likewise.
18367 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
18368 pupa_mod_init takes one argument, its own module.
18369 (pupa_dl_unload_unneeded): Declared.
18370 (pupa_dl_unload_all): Likewise.
18371 (pupa_dl_ref): Likewise.
18372 (pupa_dl_unref): Likewise.
18373 (pupa_dl_iterate): Likewise.
18374 (pupa_dl_init): Renamed to ...
18375 (pupa_dl_set_prefix): ... this.
18376 (pupa_dl_get_prefix): Declared.
18378 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
18379 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
18381 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
18382 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
18384 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
18385 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
18387 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
18389 * util/i386/pc/pupa-setup.c (setup): Define the internal
18390 function find_first_partition_start at the top level, because GCC
18391 3.0.x cannot compile internal functions in deeper scopes
18393 (find_root_device): Use lstat instead of stat.
18394 Don't follow symbolic links.
18395 Fix the path-constructing code.
18397 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
18398 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
18399 by a BLKGETSIZE ioctl first, because block devices don't fill
18400 the member st_mode of the structure stat on Linux.
18401 [__linux__] (linux_find_partition): Use a temporary buffer
18402 REAL_DEV for the working space. Copy it to DEV before returning.
18403 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
18404 buffer cache consistent.
18405 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
18406 strncmp. The previous value was merely wrong.
18407 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
18409 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
18410 FAT size is 12. The previous value was merely wrong.
18412 * kern/main.c (pupa_main): Don't split the starting message from
18415 * kern/term.c (pupa_putchar): Put CR after LF instead of before
18416 LF, because BIOS goes crazy about character attributes in this
18419 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
18421 * include/i386/pc/util/biosdisk.h: New file.
18422 * util/i386/pc/biosdisk.c: Likewise.
18423 * util/i386/pc/pupa-setup.c: Likewise.
18425 * Makefile.in (INCLUDE_DISTFILES): Added
18426 include/pupa/i386/pc/util/biosdisk.h.
18427 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
18428 directory util/i386/pc.
18429 (install-local): Added a rule for sbin_UTILITIES.
18430 (uninstall): Likewise.
18432 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
18434 * util/misc.c (xrealloc): New function.
18435 (pupa_malloc): Likewise.
18436 (pupa_free): Likewise.
18437 (pupa_realloc): Likewise.
18438 (pupa_stop): Likewise.
18439 (pupa_putchar): Likewise.
18441 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
18443 * include/pupa/util/misc.h (xrealloc): Declared.
18445 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
18447 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
18448 (PUPA_BOOT_MACHINE_BPB_END): ... this.
18450 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
18451 [PUPA_UTIL] (pupa_fat_fini): Likewise.
18453 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
18454 way should be implemented.
18455 [PUPA_UTIL] (pupa_fat_fini): Likewise.
18457 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
18458 the size of NAME for safety.
18459 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
18462 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
18463 (pupa_setup_SOURCES): Likewise.
18465 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
18467 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
18469 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
18470 bunch of pushl's from pusha, because this destroys the return
18473 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
18475 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
18476 This means that any missing prototypes could be fatal. Also, you
18477 must take care when writing assembly code. See the comments at
18478 the beginning of startup.S, for more details.
18480 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
18481 compilation mechanism.
18482 (pupa_chainloader_real_boot): Likewise.
18483 (pupa_biosdisk_rw_int13_extensions): Likewise.
18484 (pupa_biosdisk_rw_standard): Likewise.
18485 (pupa_biosdisk_check_int13_extensions): Likewise.
18486 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
18487 (pupa_biosdisk_get_diskinfo_standard): Likewise.
18488 (pupa_get_memsize): Likewise.
18489 (pupa_get_mmap_entry): Likewise.
18490 (pupa_console_putchar): Likewise.
18491 (pupa_console_setcursor): Likewise.
18492 (pupa_getrtsecs): Use pushl instead of push.
18494 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
18495 memory instead of the stack for a mmap entry, because some
18496 BIOSes may ignore the maximum size and overflow.
18498 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
18500 * genmk.rb (PModule#rule): Compile automatically generated
18501 sources with module-specific CFLAGS as well as other sources.
18503 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
18505 * configure.ac: Check ld.
18506 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
18507 respectively, before checking endianness and sizes.
18509 * Makefile.in (LD): New variable.
18511 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
18513 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
18515 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
18517 * Changelog: New file.