1 2009-08-08 Pavel Roskin <proski@gnu.org>
3 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
4 on it. Add missing space before closing bracket. Fix
7 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9 * docs/grub.texi: Major overhaul. Remove all sections that are
10 specific to GRUB Legacy, or mostly composed of Legacy-specific
13 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
15 * docs/version.texi: New file. Provides version information for
18 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
20 * docs/grub.texi: Update CVS information to SVN.
21 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
23 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
25 * util/grub-mkconfig.in: Remove a wrong `fi'.
27 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
30 (grub_jfs_uuid): New function.
31 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
33 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
35 * util/grub-mkconfig_lib.in (font_path): Move the functionality
37 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
38 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
40 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
42 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
43 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
46 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
47 not just "vmlinu[zx]".
49 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
52 * util/grub.d/10_linux.in (find_latest): Moved from here ...
53 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
56 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
58 * util/grub.d/10_freebsd.in: Use an absolute device path for
59 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
61 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
63 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
64 handling of multiple abstraction modules.
66 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
68 Fix a bug resulting in black screen when loading Linux using a
71 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
74 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
75 (grub_vbe_bios_getset_dac_palette_width): New function.
76 (grub_vbe_bios_get_dac_palette_width)
77 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
78 grub_vbe_bios_getset_dac_palette_width()).
80 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
81 check for return status.
82 (grub_vbe_get_video_mode_info): When getting information for a packed
83 mode (<= 8 bpp), obtain DAC palette width using
84 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
85 {red,green,blue}_mark_size.
87 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
89 * commands/search.c (options): Fix help output to match actual code.
91 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
93 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
96 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
98 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
101 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
103 Support Apple partition map with sector size different from 512 bytes.
105 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
106 (apple_partition_map_iterate): Respect 'aheader.blocksize'
107 and 'apart.partmap_size'.
109 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
110 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
114 * commands/i386/cpuid.c (options): New variable.
115 (grub_cmd_cpuid): Return real error.
116 (GRUB_MOD_INIT(cpuid)): Declare options.
118 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
120 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
123 2009-07-31 Bean <bean123ch@gmail.com>
125 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
127 (grub_fshelp_node): Move inode field to the end.
128 (grub_xfs_data): Remove inode field.
129 (grub_xfs_inode_block): Calculate inode size using sblock.
130 (grub_xfs_inode_offset): Likewise.
131 (grub_xfs_read_inode): Calculate inode size using sblock.
132 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
133 (grub_xfs_iterate_dir): Calculate inode size using sblock.
134 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
136 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
137 not accessible when data is null.
138 (grub_xfs_open): Likewise.
140 2009-07-31 Bean <bean123ch@gmail.com>
142 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
143 Don't change pv->disk if it's already set.
145 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
146 (grub_raid_register): ... here.
147 (grub_raid_rescan): Removed.
149 * include/grub/raid.h (grub_raid_rescan): Removed.
151 * util/grub-fstest.c: Remove include file <grub/raid.h>.
152 (fstest): Replace grub_raid_rescan with module fini function followed
155 * util/grub-probe.c: Add include file <grub/raid.h>.
156 (probe_raid_level): New function.
157 (probe): Detect abstraction by walking the disk device, support two
158 level of abstraction (LVM on RAID) when detecting partition map.
160 2009-07-31 Pavel Roskin <proski@gnu.org>
162 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
163 to grub_zalloc(), it was erroneous.
164 Reported by Bean <bean123ch@gmail.com>
166 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
168 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
169 embeding zone, not only the first one.
171 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
173 * term/gfxterm.c (clear_char): New function.
174 (grub_virtual_screen_setup): Use clear_char.
175 (scroll_up): Likewise.
176 (grub_virtual_screen_cls): Likewise.
178 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
180 * util/deviceiter.c (get_acceleraid_disk_name): New static
182 (grub_util_iterate_devices): Handle Accelraid devices.
183 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
185 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
187 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
188 separator for the suggested gfxpayload string (';' collides with the
189 parser and needs escaping).
191 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
193 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
194 Clear direction flag before jumping to OS.
195 (grub_multiboot2_real_boot): Likewise.
197 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
199 * util/i386/pc/grub-install: Fix parsing of --disk-module
202 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
204 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
207 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
209 * util/grub-mkconfig.in (package_version): New variable.
210 Use it do display the version.
212 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
214 * kern/file.c (grub_file_open): Revert to previous check with
217 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
219 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
220 from help line. It's out of sync with code.
222 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
224 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
225 entries on failed boot.
227 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
229 * kern/file.c (grub_file_open): Fix an error check.
231 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
233 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
234 partition map couldn't be identified.
236 2009-07-23 Pavel Roskin <proski@gnu.org>
238 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
239 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
240 case of little endian words becomes just an optimization.
241 Respect const modifier.
242 (md5_final): Use code that doesn't depend on endianess.
244 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
245 to avoid loss of upper bits if align is unsigned and shorter
248 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
252 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
253 (grub_ufs_uuid): New function.
254 (grub_ufs_fs): add .uuid
256 2009-07-21 Pavel Roskin <proski@gnu.org>
258 * kern/dl.c (grub_dl_check_header): Make static.
260 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
262 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
263 add drivemap for Vista. It breaks Windows 7.
265 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
267 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
270 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
274 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
275 (grub_fstest_SOURCES): Likewise.
276 (pkglib_MODULES): Add befs.mod.
277 (befs_mod_SOURCES): New variable.
278 (befs_mod_CFLAGS): Likewise.
279 (befs_mod_LDFLAGS): Likewise.
280 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
281 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
282 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
283 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
284 (grub_setup_SOURCES): Likewise.
285 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
286 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
287 (grub_setup_SOURCES): Likewise.
288 * fs/befs.c: New file.
289 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
290 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
291 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
292 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
293 (B_KEY_INDEX_ALIGN): New declaration.
294 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
295 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
296 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
297 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
298 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
299 (grub_afs_mount) [MODE_BFS]: Likewise.
300 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
301 (grub_afs_fs): Use GRUB_AFS_FSNAME
302 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
303 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
304 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
305 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
307 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
309 * util/getroot.c (find_root_device): Add support for MacOSX.
310 * util/hostdisk.c: Likewise.
312 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
314 * font/font.c (find_glyph): Check whether a font is present to avoid
317 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
319 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
321 2009-07-20 Pavel Roskin <proski@gnu.org>
323 * configure.ac: Trim excessively wordy excuses.
325 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
327 Add symlink, mtime and label support to AtheFS.
329 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
330 (grub_afs_iterate_dir): Handle symlinks.
331 (grub_afs_open): Use grub_afs_read_symlink.
332 (grub_afs_dir): Likewise.
334 (grub_afs_label): New function.
335 (grub_afs_fs): Add grub_afs_label.
336 (grub_afs_read_symlink): New function.
338 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
342 * fs/afs.c: Fix comments style.
343 (grub_afs_blockrun): Declare as packed.
344 (grub_afs_datastream): Likewise.
345 (grub_afs_bnode): Likewise.
346 (grub_afs_btree): Likewise.
347 (grub_afs_sblock): Likewise.
348 Declare `name' as char.
349 (grub_afs_inode): Declare as packed.
350 Change void *vnode to grub_uint32_t unused.
351 (grub_afs_iterate_dir): Check that key_size is positive.
352 (grub_afs_mount): Don't read superblock twice.
353 (grub_afs_dir): Don't free node in case of error,
354 grub_fshelp_find_file already handles this.
355 (grub_afs_open): Likewise.
357 2009-07-19 Pavel Roskin <proski@gnu.org>
359 * Makefile.in: Remove LIBLZO and enable_lzo.
360 * conf/i386-pc.rmk: Remove lzo support.
361 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
362 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
364 * kern/i386/pc/lzo1x.S: Remove.
365 * kern/i386/pc/startup.S: Remove lzo support.
366 * util/i386/pc/grub-mkimage.c: Likewise.
368 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
370 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
371 * fs/xfs.c (grub_xfs_dir): Likewise.
372 * fs/afs.c (grub_afs_dir): Likewise.
373 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
374 (grub_iso9660_open): Likewise.
375 * fs/jfs.c (grub_jfs_open): Likewise.
376 * fs/ext2.c (grub_ext2_dir): Likewise.
377 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
378 * script/sh/lexer.c (grub_script_yylex): Likewise.
380 2009-07-16 Pavel Roskin <proski@gnu.org>
382 * configure.ac: Never add "-c" to CFLAGS.
384 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
386 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
387 grub_cv_cc_efiemu should be used.
389 * configure.ac: Typo fixes.
391 * kern/mm.c (grub_zalloc): New function.
392 (grub_debug_zalloc): Likewise.
393 * include/grub/mm.h: Declare grub_zalloc() and
395 * util/misc.c (grub_zalloc): New function.
396 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
397 instead of grub_malloc(), remove unneeded initializations.
398 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
399 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
400 * commands/parttool.c (grub_cmd_parttool): Likewise.
401 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
402 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
403 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
404 * disk/usbms.c (grub_usbms_finddevs): Likewise.
405 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
406 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
407 (grub_cmd_efiemu_pnvram): Likewise.
408 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
409 * fs/iso9660.c (grub_iso9660_mount): Likewise.
410 (grub_iso9660_iterate_dir): Likewise.
411 * fs/jfs.c (grub_jfs_opendir): Likewise.
412 * fs/ntfs.c (list_file): Likewise.
413 (grub_ntfs_mount): Likewise.
414 * kern/disk.c (grub_disk_open): Likewise.
415 * kern/dl.c (grub_dl_load_core): Likewise.
416 * kern/elf.c (grub_elf_file): Likewise.
417 * kern/env.c (grub_env_context_open): Likewise.
418 (grub_env_set): Likewise.
419 (grub_env_set_data_slot): Likewise.
420 * kern/file.c (grub_file_open): Likewise.
421 * kern/fs.c (grub_fs_blocklist_open): Likewise.
422 * loader/i386/multiboot.c (grub_module): Likewise.
423 * loader/xnu.c (grub_xnu_create_key): Likewise.
424 (grub_xnu_create_value): Likewise.
425 * normal/main.c (grub_normal_add_menu_entry): Likewise.
426 (read_config_file): Likewise.
427 * normal/menu_entry.c (make_screen): Likewise.
428 * partmap/sun.c (sun_partition_map_iterate): Likewise.
429 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
430 * script/sh/script.c (grub_script_parse): Likewise.
431 * video/bitmap.c (grub_video_bitmap_create): Likewise.
432 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
433 * video/readers/png.c (grub_png_output_byte): Likewise.
434 (grub_video_reader_png): Likewise.
436 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
438 Enable all targets that can be built by default
440 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
441 grub-mkfont and grub-fstest if they can be built
443 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
445 Fix hang and segmentation fault in grub-emu-usb
447 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
448 * util/usb.c (grub_libusb_devices): likewise
449 (grub_libusb_init): rename to ...
450 (GRUB_MOD_INIT (libusb)):...this
451 (grub_libusb_fini): rename to ..
452 (GRUB_MOD_FINI (libusb)):...this
453 * disk/usbms.c (grub_usbms_transfer): fix retry logic
454 * include/grub/disk.h (grub_raid_init): removed, it's useless
455 (grub_raid_fini): likewise
456 (grub_lvm_init): likewise
457 (grub_lvm_fini): likewise
458 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
461 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
465 * Makefile.in (LIBUSB): new macro
466 * genmk.rb (Utility/print_tail): new method
467 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
468 (top level): call util.print_tail at the end.
470 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
472 Make FreeBSD accept zpool.cache
474 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
475 type is /boot/zfs/zpool.cache
477 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
481 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
482 correct wrong typedef
483 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
485 2009-07-15 Pavel Roskin <proski@gnu.org>
487 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
488 * kern/disk.c (struct grub_disk_cache): Likewise.
490 * commands/probe.c (options): Typo fix.
492 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
493 Increase to 0x5a to accommodate FAT32. Adjust other offsets
495 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
497 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
498 the end of "Error" to make the message more readable.
500 * boot/i386/pc/boot.S (kernel_segment): Remove.
501 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
504 * boot/i386/pc/boot.S (boot_version): Remove.
505 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
508 * include/grub/i386/pc/boot.h: Sort all offsets.
509 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
510 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
511 * boot/i386/pc/boot.S: Assert location of every offset listed in
512 include/grub/i386/pc/boot.h.
514 2009-07-13 Pavel Roskin <proski@gnu.org>
516 * include/grub/i386/coreboot/machine.h: Rename
517 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
518 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
519 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
521 * kern/dl.c: Force native word size to suppress warnings when
524 * kern/device.c (grub_device_iterate): Change struct part_ent to
525 hold the name, not a pointer to it. Use one grub_malloc() per
526 partition, not two. Free partition_name if grub_malloc() fails.
527 Set ents to NULL only before grub_partition_iterate() is called.
529 2009-07-11 Bean <bean123ch@gmail.com>
531 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
534 2009-07-10 Bean <bean123ch@gmail.com>
535 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
537 * kern/ieee1275/openfw.c (grub_children_iterate)
538 (grub_devalias_iterate): Fix size evaluation for property or path
539 strings, which was broken since r2132.
541 2009-07-07 Pavel Roskin <proski@gnu.org>
543 * commands/search.c (search_file): Merge into ...
544 (search_fs): ... this. Accept search type as argument.
545 (grub_cmd_search): Pass search type to search_fs().
547 * include/grub/util/console.h: New file.
548 * util/console.c: Use it instead of grub/machine/console.h.
549 * util/grub-emu.c: Likewise.
551 * lib/arg.c (find_long_option): Remove.
552 (find_long): Add `len' argument, make `s' const char *.
553 (grub_arg_parse): Parse long options in place, not in a
556 2009-07-06 Pavel Roskin <proski@gnu.org>
558 * commands/search.c (search_fs): Fix potential NULL pointer
561 * commands/search.c (search_fs): Replace QUID macro with quid_fn
564 2009-07-06 Daniel Mierswa <impulze@impulze.org>
566 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
569 2009-07-05 Pavel Roskin <proski@gnu.org>
571 * include/grub/i386/linux.h (struct linux_kernel_params):
572 Restore padding3, it's still needed.
574 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
576 * util/osdetect.lua: Likewise.
578 2009-07-05 Bean <bean123ch@gmail.com>
580 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
582 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
583 (grub_lua_getenv): Likewise.
584 (grub_lua_setenv): Likewise.
585 (save_errno): New function.
586 (push_result): Likewise.
587 (grub_lua_enum_device): Likewise.
588 (grub_lua_enum_file): Likewise.
589 (grub_lua_file_open): Likewise.
590 (grub_lua_file_close): Likewise.
591 (grub_lua_file_seek): Likewise.
592 (grub_lua_file_read): Likewise.
593 (grub_lua_file_getline): Likewise.
594 (grub_lua_file_getsize): Likewise.
595 (grub_lua_file_getpos): Likewise.
596 (grub_lua_file_eof): Likewise.
597 (grub_lua_file_exist): Likewise.
598 (grub_lua_add_menu): Likewise.
600 * script/lua/grub_lua.h (isupper): New inline function.
603 (isxdigit): Likewise.
604 (strcspn): Change to normal function.
605 (strpbkr): New function declaration.
608 * script/lua/grub_main.c (scan_str): New function.
613 * script/lua/linit.c (lualibs): Enable the string library.
615 * util/osdetect.lua: New file.
617 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
619 * include/grub/i386/linux.h (struct linux_kernel_params): Add
620 `capabilities' member.
622 2009-07-02 Pavel Roskin <proski@gnu.org>
624 * genparttoollist.sh: Add missing newline at the end.
626 2009-07-01 Pavel Roskin <proski@gnu.org>
628 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
630 * util/hostdisk.c (open_device): Remove `const' from
631 `sysctl_size', as sysctlbyname() can change it (in this case it
632 doesn't actually happen).
634 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
635 using signed long int constants.
637 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
638 constant to avoid a warning on FreeBSD.
640 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
643 * Makefile.in: Install include/grub/machine symlink.
645 * Makefile.in: When installing symlinks, use "cp -fR", which
646 works on FreeBSD and MacOSX.
647 From Yves Blusseau <cl7m42e02@sneakemail.com>
649 * kern/dl.c (grub_dl_resolve_symbol): Make static.
650 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
652 * util/misc.c: Move grub_reboot() and grub_halt() ...
653 * util/grub-emu.c: ... here. Make main_env static.
654 * include/grub/util/misc.h: Remove main_env.
656 * kern/mm.c: Use correct format to print size_t.
658 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
659 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
660 * kern/powerpc/dl.c: Likewise.
661 * kern/sparc64/dl.c: Likewise.
662 * kern/x86_64/dl.c: Likewise.
664 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
666 Fix grub-emu build on sparc64-ieee1275.
668 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
669 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
671 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
673 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
674 (grub_reboot, grub_halt): New functions.
676 * util/i386/pc/misc.c: Delete. Update all users.
677 * util/sparc64/ieee1275/misc.c: Likewise.
678 * util/powerpc/ieee1275/misc.c: Likewise.
680 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
682 * conf/i386.rmk (setjmp_mod_SOURCES)
683 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
684 * conf/common.rmk (setjmp_mod_SOURCES)
685 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
686 to use $(target_cpu).
687 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
688 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
689 * conf/powerpc-ieee1275.rmk: Likewise.
690 * conf/sparc64-ieee1275.rmk: Likewise.
692 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
693 $(target_cpu) for kern/$(target_cpu)/dl.c.
694 * conf/i386-efi.rmk: Likewise.
695 * conf/i386-ieee1275.rmk: Likewise.
696 * conf/x86_64-efi.rmk: Likewise.
697 * conf/i386-coreboot.rmk: Likewise.
698 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
699 $(target_cpu) for kern/$(target_cpu)/dl.c and for
700 kern/$(target_cpu)/cache.S.
701 * conf/sparc64-ieee1275.rmk: Likewise.
703 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
705 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
706 type to `grub_uint8_t', and adjust `padding9' accordingly.
708 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
710 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
712 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
713 assembly in final jump, using register constraints.
715 (grub_linux_boot): For text mode, initialize `have_vga' using
716 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
718 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
719 right before the final jump.
721 Set `video_mode' to 0x3.
723 Document initialization of `video_page', `video_mode' and
726 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
728 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
729 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
730 and set GRUB_LINUX_FLAG_QUIET appropriately.
732 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
734 Fix build on Debian / sparc.
736 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
738 2009-06-28 Pavel Roskin <proski@gnu.org>
740 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
743 * util/grub.d/10_linux.in: Match SUSE style initrd names.
745 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
747 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
750 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
754 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
755 file can't be opened. grub_file_open() is already supposed to set
756 grub_errno / grub_errmsg appropriately.
757 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
759 2009-06-27 Pavel Roskin <proski@gnu.org>
760 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
762 * include/grub/dl.h: Include grub/elf.h.
763 (struct grub_dl): Add symtab field.
764 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
765 GRUB_MODULES_MACHINE_READONLY.
766 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
767 of the header for read-only modules.
768 (grub_dl_unload): Free mod->symtab for read-only modules.
769 * kern/i386/dl.c: Use mod->symtab.
770 * kern/powerpc/dl.c: Likewise.
771 * kern/sparc64/dl.c: Likewise.
772 * kern/x86_64/dl.c: Likewise.
774 * conf/i386-qemu.rmk: New file.
775 * kern/i386/qemu/startup.S: Likewise.
776 * kern/i386/qemu/mmap.c: Likewise.
777 * boot/i386/qemu/boot.S: Likewise.
778 * include/grub/i386/qemu/time.h: Likewise.
779 * include/grub/i386/qemu/serial.h: Likewise.
780 * include/grub/i386/qemu/kernel.h: Likewise.
781 * include/grub/i386/qemu/console.h: Likewise.
782 * include/grub/i386/qemu/boot.h: Likewise.
783 * include/grub/i386/qemu/init.h: Likewise.
784 * include/grub/i386/qemu/machine.h: Likewise.
785 * include/grub/i386/qemu/loader.h: Likewise.
786 * include/grub/i386/qemu/memory.h: Likewise.
788 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
789 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
790 [qemu] (pkglib_IMAGES): Add `boot.img'.
791 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
792 [qemu] (boot_img_FORMAT): New variables.
793 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
794 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
795 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
796 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
797 [qemu] (kernel_img_FORMAT): New variables.
799 * configure.ac: Recognise `i386-qemu'.
801 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
802 (for no compression).
803 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
804 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
805 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
806 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
809 2009-06-27 Pavel Roskin <proski@gnu.org>
811 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
813 * efiemu/prepare32.c: Likewise.
814 * efiemu/prepare64.c: Likewise.
816 2009-06-26 Pavel Roskin <proski@gnu.org>
818 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
819 * include/grub/elf.h: Define symbols without "32" or "64" based
820 on GRUB_TARGET_WORDSIZE.
821 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
822 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
824 * efiemu/loadcore64.c: Likewise.
825 * loader/i386/bsd32.c: Likewise.
826 * loader/i386/bsd64.c: Likewise.
827 * kern/dl.c: Remove own ELF definitions.
828 * util/i386/efi/grub-mkimage.c: Likewise.
830 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
832 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
833 segment 0x0 unconditionally, because the reference generated by
834 GAS is an absolute address.
836 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
838 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
839 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
841 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
843 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
844 indexes. Check for -f explicitly.
845 (search_file): Improve error message.
846 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
848 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
850 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
851 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
853 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
855 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
856 * conf/i386-ieee1275.rmk: Likewise.
857 * conf/i386-coreboot.rmk: Likewise.
859 * kern/i386/pc/startup.S (grub_stop): Remove function.
860 * kern/i386/ieee1275/startup.S: Likewise.
861 * kern/i386/coreboot/startup.S: Likewise.
862 * kern/i386/misc.S (grub_stop): New function.
864 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
866 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
867 * kern/i386/realmode.S (real_to_prot): ... to here.
869 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
871 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
873 (kernel_elf_SOURCES): Rename to ...
874 (kernel_img_SOURCES): ... this.
875 (kernel_elf_HEADERS): Rename to ...
876 (kernel_img_HEADERS): ... this. Update all users.
877 (kernel_elf_ASFLAGS): Rename to ...
878 (kernel_img_ASFLAGS): ... this.
879 (kernel_elf_CFLAGS): Rename to ...
880 (kernel_img_CFLAGS): ... this.
881 (kernel_elf_LDFLAGS): Rename to ...
882 (kernel_img_LDFLAGS): ... this.
883 * conf/i386-coreboot.rmk: Likewise.
884 * conf/powerpc-ieee1275.rmk: Likewise.
886 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
889 2009-06-21 Pavel Roskin <proski@gnu.org>
891 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
892 to match nested functions.
893 * loader/sparc64/ieee1275/linux.c: Likewise.
895 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
897 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
899 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
902 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
904 Fix asm file handling on ELF, and remove workarounds.
906 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
907 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
908 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
909 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
911 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
915 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
916 and loader/i386/bsd64.c
917 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
918 (FREEBSD_MODTYPE_ELF_MODULE): New definition
919 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
920 (grub_freebsd_load_elfmodule32): New declaration
921 (grub_freebsd_load_elfmoduleobj64): Likewise
922 (grub_freebsd_load_elf_meta32): Likewise
923 (grub_freebsd_load_elf_meta64): Likewise
924 (grub_freebsd_add_meta): Likewise
925 (grub_freebsd_add_meta_module): Likewise
926 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
927 (grub_freebsd_add_meta_module): Likewise and move module-specific
928 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
929 (grub_cmd_freebsd): Add elf-kernel specific parts
930 based on grub_freebsd_add_meta_module
931 (grub_cmd_freebsd_module): Add type parsing moved from
932 grub_freebsd_add_meta_module
933 (grub_cmd_freebsd_module_elf): New function
934 (cmd_freebsd_module_elf): New variable
935 (GRUB_MOD_INIT): Register freebsd_module_elf
936 * loader/i386/bsd32.c: New file
937 * loader/i386/bsd64.c: Likewise
938 * loader/i386/bsdXX.c: Likewise
939 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
940 (grub_elf64_load): Likewise
941 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
943 (grub_elf64_load_hook_t): Likewise
945 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
947 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
949 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
950 don't write a menu entry for recovery mode.
952 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
954 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
955 after it's no longer needed.
957 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
959 * include/grub/i386/loader.h (grub_linux_prot_size)
960 (grub_linux_tmp_addr, grub_linux_real_addr)
961 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
963 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
964 common grub_util_info() call to ...
965 (generate_image): ... here.
966 Fix use of uninitialized memory, comparison of signed with
967 unsigned integers and memory leak.
968 Remove bogus module address message.
970 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
972 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
974 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
976 2009-06-19 Pavel Roskin <proski@gnu.org>
978 * configure.ac: Remove stray AC_MSG_CHECKING.
980 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
982 * disk/scsi.c (grub_scsi_open): use continue instead of big if
984 2009-06-18 Pavel Roskin <proski@gnu.org>
986 * conf/common.rmk: Add fs_file.mod.
987 * disk/fs_file.c: New file.
988 * include/grub/disk.h (enum grub_disk_dev_id): Add
989 GRUB_DISK_DEVICE_FILE_ID.
991 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
993 Fix build with Apple's toolchain. Part 2
995 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
998 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1000 Fix build with Apple's toolchain. Part 1
1002 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
1004 * configure.ac: remove a leftover AC_MSG_RESULT
1005 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
1008 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1012 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
1013 (decomp_block): initialize ch
1014 use grub_memcpy instead of memcpy
1016 2009-06-17 Pavel Roskin <proski@gnu.org>
1018 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
1019 version, use declarations needed to use vga_text as the startup
1022 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
1023 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
1025 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
1026 and grub_at_keyboard_fini(), it's done on module load and
1029 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
1031 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
1032 file can't be found.
1033 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
1035 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1037 Fix newline handling
1039 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
1040 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
1041 (grub_script_yylex): don't segfault on unterminated script
1042 newline terminates command and variable
1044 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1046 avoid double grub_adjust_range call. Bug reported by David Simner
1048 * kern/disk.c (grub_disk_write): change to raw disk access before
1051 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
1053 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
1054 spaces, for the benefit of help2man.
1055 * util/i386/efi/grub-mkimage.c (usage): Likewise.
1057 2009-06-16 Pavel Roskin <proski@gnu.org>
1059 * kern/i386/halt.c: Include grub/machine/init.h.
1060 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
1062 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
1064 * util/grub.d/30_os-prober.in: Use ${root} in the generated
1067 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
1069 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
1072 2009-06-16 Pavel Roskin <proski@gnu.org>
1074 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
1075 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
1076 save %dx, we only need %dl and we never change it.
1077 * boot/i386/pc/cdboot.S: Don't set the root drive.
1078 * boot/i386/pc/pxeboot.S: Likewise.
1079 * include/grub/i386/pc/boot.h: Remove
1080 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
1081 GRUB_BOOT_MACHINE_DRIVE_CHECK.
1082 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
1083 * kern/i386/pc/init.c (make_install_device): Remove references
1085 * kern/i386/pc/startup.S: Likewise.
1086 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
1088 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1092 * commands/xnu_uuid.c: new file
1093 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
1094 (xnu_uuid_mod_SOURCES): new variable
1095 (xnu_uuid_mod_CFLAGS): likewise
1096 (xnu_uuid_mod_LDFLAGS): likewise
1097 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
1098 * conf/i386-ieee1275.rmk: likewise
1099 * conf/i386-pc.rmk: likewise
1100 * conf/powerpc-ieee1275.rmk: likewise
1101 * conf/sparc64-ieee1275.rmk: likewise
1102 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
1104 2009-06-16 Pavel Roskin <proski@gnu.org>
1106 * configure.ac: Avoid '==' in test command, it's not portable.
1108 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1112 * commands/probe.c: new file
1113 * conf/common.rmk (pkglib_MODULES): add probe.mod
1114 (probe_mod_SOURCES): new variable
1115 (probe_mod_CFLAGS): likewise
1116 (probe_mod_LDFLAGS): likewise
1117 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
1118 * conf/i386-ieee1275.rmk: likewise
1119 * conf/i386-pc.rmk: likewise
1120 * conf/powerpc-ieee1275.rmk: likewise
1121 * conf/sparc64-ieee1275.rmk: likewise
1123 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1125 Fix handling of string like \"hello\" and "a
1128 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
1129 (grub_script_yylex): fix parsing of quoting, escaping and newline
1131 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1133 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
1136 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
1138 * util/grub-mkconfig.in: Fix parsing of --output option.
1140 2009-06-12 Pavel Roskin <proski@gnu.org>
1142 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
1143 genmk.rb don't need to be generated or installed.
1145 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1147 * commands/i386/pc/drivemap_int13h.S: add more comments
1149 2009-06-11 Pavel Roskin <proski@gnu.org>
1151 * Makefile.in (uninstall): Uninstall manuals.
1153 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
1154 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
1155 and update-grub_lib in two places.
1156 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
1158 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
1161 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
1162 `entry_lo' to fix variable shadowing.
1164 2009-06-11 Christian Franke <franke@computer.org>
1166 * kern/misc.c (__enable_execute_stack): Add missing return type
1167 to prevent gcc warning.
1169 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
1171 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
1173 2009-06-11 Pavel Roskin <proski@gnu.org>
1175 * Makefile.in: Don't rely on any scripts being executable.
1176 Always use $(SHELL) to run shell scripts.
1178 * configure.ac: Always define ___main if using -nostdlib. This
1179 fixes tests on Cygwin.
1181 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
1185 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
1186 is in bytes and not in blocks
1188 2009-06-11 Pavel Roskin <proski@gnu.org>
1190 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
1193 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
1195 * util/grub.d/30_os-prober.in: Fix a comment. Source
1196 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
1197 to set the root device. Place drivemap command in the generated
1200 2009-06-11 Pavel Roskin <proski@gnu.org>
1202 * configure.ac: Remove host_m32. Issues with 64-bit utilities
1203 have long been resolved.
1205 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
1207 * util/grub.d/10_linux.in: Capitalise "Linux".
1209 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
1211 2009-06-11 Pavel Roskin <proski@gnu.org>
1213 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
1214 fix a gcc warning and ensure that the function won't ever exit.
1216 * kern/i386/ieee1275/init.c: Add missing prototype for
1219 * loader/ieee1275/multiboot2.c [__i386__]: Include
1220 grub/cpu/multiboot.h.
1222 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
1223 casts to short - they are not portable and cause warnings. Fix
1224 use of uninitialized values in input_buf. Use ARRAY_SIZE.
1226 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1230 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
1232 (grub_get_root_biosnumber_saved): new variable
1233 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
1234 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
1235 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
1236 %dx after the call if necessary
1237 * conf/common.rmk (pkglib_MODULES): remove boot.mod
1238 (boot_mod_SOURCES): remove
1239 (boot_mod_CFLAGS): remove
1240 (boot_mod_LDFLAGS): remove
1241 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
1242 (boot_mod_SOURCES): new variable
1243 (boot_mod_CFLAGS): likewise
1244 (boot_mod_LDFLAGS): likewise
1245 * conf/i386-efi.rmk: likewise
1246 * conf/i386-ieee1275.rmk: likewise
1247 * conf/i386-pc.rmk: likewise
1248 * conf/powerpc-ieee1275.rmk: likewise
1249 * conf/sparc64-ieee1275.rmk: likewise
1250 * conf/x86_64-efi.rmk: likewise
1251 * include/grub/i386/pc/biosnum.h: new file
1252 * lib/i386/pc/biosnum.c: likewise
1253 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
1254 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
1255 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
1257 2009-06-10 Pavel Roskin <proski@gnu.org>
1259 * io/gzio.c (test_header): Don't reuse one buffer for all data.
1260 Use separate variables. Read only the file size at the end, but
1261 not the checksum that we don't use.
1263 * kern/file.c (grub_file_read): Use void pointer for the buffer.
1266 * kern/ieee1275/openfw.c: Remove libc includes.
1267 * kern/ieee1275/cmain.c: Likewise.
1268 * include/grub/ieee1275/ieee1275.h: Likewise.
1270 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
1273 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
1275 * Makefile.in: Remove all trailing whitespace.
1276 * conf/i386-pc.rmk: Likewise.
1277 * conf/powerpc-ieee1275.rmk: Likewise.
1278 * conf/sparc64-ieee1275.rmk: Likewise.
1279 * docs/grub.texi: Likewise.
1280 * docs/texinfo.tex: Likewise.
1281 * disk/fs_uuid.c: Likewise.
1282 * disk/lvm.c: Likewise.
1283 * disk/scsi.c: Likewise.
1284 * disk/ata.c: Likewise.
1285 * disk/ieee1275/ofdisk.c: Likewise.
1286 * disk/i386/pc/biosdisk.c: Likewise.
1287 * disk/host.c: Likewise.
1288 * disk/raid.c: Likewise.
1289 * disk/efi/efidisk.c: Likewise.
1290 * disk/usbms.c: Likewise.
1291 * disk/memdisk.c: Likewise.
1292 * disk/loopback.c: Likewise.
1293 * kern/powerpc/dl.c: Likewise.
1294 * kern/device.c: Likewise.
1295 * kern/dl.c: Likewise.
1296 * kern/sparc64/dl.c: Likewise.
1297 * kern/ieee1275/ieee1275.c: Likewise.
1298 * kern/term.c: Likewise.
1299 * kern/fs.c: Likewise.
1300 * kern/i386/dl.c: Likewise.
1301 * kern/i386/pc/startup.S: Likewise.
1302 * kern/i386/pc/init.c: Likewise.
1303 * kern/i386/pc/mmap.c: Likewise.
1304 * kern/i386/pc/lzo1x.S: Likewise.
1305 * kern/i386/ieee1275/init.c: Likewise.
1306 * kern/i386/realmode.S: Likewise.
1307 * kern/i386/tsc.c: Likewise.
1308 * kern/partition.c: Likewise.
1309 * kern/corecmd.c: Likewise.
1310 * kern/file.c: Likewise.
1311 * kern/efi/efi.c: Likewise.
1312 * kern/efi/init.c: Likewise.
1313 * kern/efi/mm.c: Likewise.
1314 * kern/main.c: Likewise.
1315 * kern/err.c: Likewise.
1316 * kern/env.c: Likewise.
1317 * kern/disk.c: Likewise.
1318 * kern/generic/millisleep.c: Likewise.
1319 * kern/generic/rtc_get_time_ms.c: Likewise.
1320 * kern/misc.c: Likewise.
1321 * kern/parser.c: Likewise.
1322 * genmk.rb: Likewise.
1323 * configure.ac: Likewise.
1324 * boot/i386/pc/diskboot.S: Likewise.
1325 * boot/i386/pc/pxeboot.S: Likewise.
1326 * boot/i386/pc/boot.S: Likewise.
1327 * boot/i386/pc/lnxboot.S: Likewise.
1328 * boot/i386/pc/cdboot.S: Likewise.
1329 * parttool/pcpart.c: Likewise.
1330 * video/readers/tga.c: Likewise.
1331 * video/video.c: Likewise.
1332 * video/bitmap.c: Likewise.
1333 * lib/envblk.c: Likewise.
1334 * lib/i386/setjmp.S: Likewise.
1335 * fs/xfs.c: Likewise.
1336 * fs/afs.c: Likewise.
1337 * fs/fat.c: Likewise.
1338 * fs/ntfs.c: Likewise.
1339 * fs/udf.c: Likewise.
1340 * fs/affs.c: Likewise.
1341 * fs/iso9660.c: Likewise.
1342 * fs/hfs.c: Likewise.
1343 * fs/fshelp.c: Likewise.
1344 * fs/ext2.c: Likewise.
1345 * fs/jfs.c: Likewise.
1346 * fs/reiserfs.c: Likewise.
1347 * fs/hfsplus.c: Likewise.
1348 * fs/minix.c: Likewise.
1349 * fs/cpio.c: Likewise.
1350 * fs/sfs.c: Likewise.
1351 * fs/ufs.c: Likewise.
1352 * efiemu/prepare.c: Likewise.
1353 * efiemu/loadcore_common.c: Likewise.
1354 * efiemu/runtime/efiemu.sh: Likewise.
1355 * efiemu/runtime/efiemu.S: Likewise.
1356 * efiemu/runtime/efiemu.c: Likewise.
1357 * efiemu/pnvram.c: Likewise.
1358 * efiemu/main.c: Likewise.
1359 * efiemu/i386/pc/cfgtables.c: Likewise.
1360 * efiemu/i386/loadcore64.c: Likewise.
1361 * efiemu/i386/loadcore32.c: Likewise.
1362 * efiemu/loadcore.c: Likewise.
1363 * efiemu/symbols.c: Likewise.
1364 * efiemu/mm.c: Likewise.
1365 * include/grub/autoefi.h: Likewise.
1366 * include/grub/datetime.h: Likewise.
1367 * include/grub/term.h: Likewise.
1368 * include/grub/hfs.h: Likewise.
1369 * include/grub/lvm.h: Likewise.
1370 * include/grub/i386/tsc.h: Likewise.
1371 * include/grub/i386/linux.h: Likewise.
1372 * include/grub/i386/xnu.h: Likewise.
1373 * include/grub/i386/efiemu.h: Likewise.
1374 * include/grub/i386/pc/biosdisk.h: Likewise.
1375 * include/grub/i386/pc/memory.h: Likewise.
1376 * include/grub/i386/pc/vbe.h: Likewise.
1377 * include/grub/parttool.h: Likewise.
1378 * include/grub/video.h: Likewise.
1379 * include/grub/memory.h: Likewise.
1380 * include/grub/fs.h: Likewise.
1381 * include/grub/partition.h: Likewise.
1382 * include/grub/xnu.h: Likewise.
1383 * include/grub/efi/api.h: Likewise.
1384 * include/grub/efi/pe32.h: Likewise.
1385 * include/grub/efi/memory.h: Likewise.
1386 * include/grub/multiboot.h: Likewise.
1387 * include/grub/usbdesc.h: Likewise.
1388 * include/grub/multiboot2.h: Likewise.
1389 * include/grub/acpi.h: Likewise.
1390 * include/grub/efiemu/efiemu.h: Likewise.
1391 * include/grub/disk.h: Likewise.
1392 * include/grub/ieee1275/ieee1275.h: Likewise.
1393 * include/grub/net.h: Likewise.
1394 * include/grub/machoload.h: Likewise.
1395 * include/grub/macho.h: Likewise.
1396 * include/multiboot.h: Likewise.
1397 * genmoddep.awk: Likewise.
1398 * normal/main.c: Likewise.
1399 * normal/menu_entry.c: Likewise.
1400 * normal/menu_viewer.c: Likewise.
1401 * normal/completion.c: Likewise.
1402 * normal/cmdline.c: Likewise.
1403 * normal/misc.c: Likewise.
1404 * normal/datetime.c: Likewise.
1405 * bus/usb/usbtrans.c: Likewise.
1406 * bus/usb/ohci.c: Likewise.
1407 * bus/usb/uhci.c: Likewise.
1408 * bus/usb/usb.c: Likewise.
1409 * mmap/efi/mmap.c: Likewise.
1410 * mmap/i386/pc/mmap_helper.S: Likewise.
1411 * mmap/i386/pc/mmap.c: Likewise.
1412 * mmap/i386/mmap.c: Likewise.
1413 * mmap/i386/uppermem.c: Likewise.
1414 * mmap/mmap.c: Likewise.
1415 * commands/acpi.c: Likewise.
1416 * commands/echo.c: Likewise.
1417 * commands/blocklist.c: Likewise.
1418 * commands/loadenv.c: Likewise.
1419 * commands/usbtest.c: Likewise.
1420 * commands/boot.c: Likewise.
1421 * commands/parttool.c: Likewise.
1422 * commands/search.c: Likewise.
1423 * commands/cat.c: Likewise.
1424 * commands/i386/pc/play.c: Likewise.
1425 * commands/i386/pc/drivemap.c: Likewise.
1426 * commands/i386/pc/vbeinfo.c: Likewise.
1427 * commands/i386/pc/acpi.c: Likewise.
1428 * commands/i386/pc/vbetest.c: Likewise.
1429 * commands/ls.c: Likewise.
1430 * commands/cmp.c: Likewise.
1431 * commands/test.c: Likewise.
1432 * commands/efi/acpi.c: Likewise.
1433 * commands/gptsync.c: Likewise.
1434 * commands/help.c: Likewise.
1435 * partmap/amiga.c: Likewise.
1436 * partmap/apple.c: Likewise.
1437 * partmap/acorn.c: Likewise.
1438 * partmap/pc.c: Likewise.
1439 * partmap/sun.c: Likewise.
1440 * partmap/gpt.c: Likewise.
1441 * script/sh/lexer.c: Likewise.
1442 * script/sh/function.c: Likewise.
1443 * font/font.c: Likewise.
1444 * font/font_cmd.c: Likewise.
1445 * loader/powerpc/ieee1275/linux.c: Likewise.
1446 * loader/efi/chainloader.c: Likewise.
1447 * loader/multiboot_loader.c: Likewise.
1448 * loader/macho.c: Likewise.
1449 * loader/i386/multiboot.c: Likewise.
1450 * loader/i386/linux.c: Likewise.
1451 * loader/i386/pc/linux.c: Likewise.
1452 * loader/i386/pc/multiboot2.c: Likewise.
1453 * loader/i386/pc/chainloader.c: Likewise.
1454 * loader/i386/pc/xnu.c: Likewise.
1455 * loader/i386/bsd_trampoline.S: Likewise.
1456 * loader/i386/efi/linux.c: Likewise.
1457 * loader/i386/multiboot_elfxx.c: Likewise.
1458 * loader/i386/bsd_helper.S: Likewise.
1459 * loader/i386/bsd.c: Likewise.
1460 * loader/i386/linux_trampoline.S: Likewise.
1461 * loader/i386/xnu_helper.S: Likewise.
1462 * loader/i386/xnu.c: Likewise.
1463 * loader/i386/bsd_pagetable.c: Likewise.
1464 * loader/i386/multiboot_helper.S: Likewise.
1465 * loader/xnu.c: Likewise.
1466 * loader/xnu_resume.c: Likewise.
1467 * io/gzio.c: Likewise.
1468 * term/efi/console.c: Likewise.
1469 * term/terminfo.c: Likewise.
1470 * term/ieee1275/ofconsole.c: Likewise.
1471 * term/i386/pc/serial.c: Likewise.
1472 * term/i386/pc/vesafb.c: Likewise.
1473 * term/i386/pc/vga.c: Likewise.
1474 * term/usb_keyboard.c: Likewise.
1475 * term/gfxterm.c: Likewise.
1476 * aclocal.m4: Likewise.
1477 * util/lvm.c: Likewise.
1478 * util/grub.d/30_os-prober.in: Likewise.
1479 * util/grub.d/10_hurd.in: Likewise.
1480 * util/console.c: Likewise.
1481 * util/grub-macho2img.c: Likewise.
1482 * util/grub-probe.c: Likewise.
1483 * util/hostfs.c: Likewise.
1484 * util/i386/pc/grub-mkimage.c: Likewise.
1485 * util/i386/pc/grub-setup.c: Likewise.
1486 * util/i386/efi/grub-mkimage.c: Likewise.
1487 * util/grub-mkconfig.in: Likewise.
1488 * util/raid.c: Likewise.
1489 * util/resolve.c: Likewise.
1490 * util/grub-mkdevicemap.c: Likewise.
1491 * util/grub-emu.c: Likewise.
1492 * util/getroot.c: Likewise.
1493 * util/hostdisk.c: Likewise.
1494 * util/usb.c: Likewise.
1495 * util/grub-editenv.c: Likewise.
1496 * util/misc.c: Likewise.
1498 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
1500 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
1501 `genparttoollist.sh'.
1502 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
1503 Add `*.sh' to the list find searches for and change `mdate.sh'
1506 2009-06-10 Pavel Roskin <proski@gnu.org>
1508 * include/grub/multiboot2.h: Provide compatibility defines for
1510 * include/multiboot2.h: Include stdint.h only if needed, using
1512 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
1514 * loader/ieee1275/multiboot2.c: Likewise.
1515 * loader/multiboot2.c: Likewise.
1516 * loader/multiboot_loader.c: Likewise.
1518 * configure.ac: Use -nostdlib when probing for the target. It
1519 should not be required to have libc for the target.
1521 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
1522 they fail without libc headers for the target.
1523 * include/grub/powerpc/libgcc.h: Use weak attribute for all
1525 * include/grub/sparc64/libgcc.h: Likewise. Don't use
1526 preprocessor conditionals.
1528 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
1529 build system doesn't need to be aware of the tar.c internals.
1531 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
1533 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
1535 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
1537 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
1538 disk limit to 26 for IDE, Virtio, Xen and SCSI.
1540 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
1542 * util/i386/pc/grub-install.in: Change the error message if UUIDs
1543 aren't available if ata.mod gets used.
1545 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
1547 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
1548 initialising controller.
1549 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
1551 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
1553 * util/i386/pc/grub-install.in: Add a parameter --disk-module
1554 to choose between ata and biosdisk module on i386-pc.
1556 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
1558 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
1559 Subclass and Programming Interface fields in terms of the 3 byte
1560 Class Code register.
1561 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
1563 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
1564 interface is OHCI. Add grub_dprintf for symmetry with
1566 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
1567 interface is UHCI. Add interf variable for programming
1568 interface. Print interface with class/subclass.
1570 * bus/usb/ohci.c: Set interf with correct field.
1572 * bus/usb/uhci.c: Remove unneeded doubled lines.
1573 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
1574 Remove whitespace inside comment.
1576 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
1578 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
1579 as fallback an equivalent option without depth.
1581 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1583 Not fail if unable to retrieve C/H/S on LBA disks
1585 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
1586 if unable to retrieve C/H/S on LBA disks
1588 2009-06-08 Pavel Roskin <proski@gnu.org>
1590 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
1593 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
1595 * Makefile.in (uninstall): Remove all $lib_DATA files.
1597 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1599 Bugfix: install on partitionless device
1601 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
1604 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
1606 * Makefile.in (uninstall): Remove all $include_DATA files.
1608 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
1610 * commands/true.c: New file. Implement the true and false commands.
1611 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
1612 (true_mod_SOURCES): New variable.
1613 (true_mod_CFLAGS): Likewise.
1614 (true_mod_LDFLAGS): Likewise.
1616 2009-06-05 Colin D Bennett <colin@gibibit.com>
1618 Optimized font character lookup using binary search instead of linear
1619 search. Fonts now are required to have the character index ordered by
1622 * font/font.c (load_font_index): Verify that fonts have ordered
1624 (find_glyph): Use binary search instead of linear search to find a
1625 character in a font.
1627 2009-06-05 Michael Scherer <misc@mandriva.org>
1629 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
1630 uses case sensitive btree.
1631 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
1632 only for case insensitive filesystems.
1634 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1636 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
1637 * conf/common.rmk (search_mod_CFLAGS): likewise
1639 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1641 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
1642 compensate a compiler bug
1644 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1646 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
1649 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1651 Definitions for creating asm symbols with Apple's CC
1653 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
1654 [APPLE_CC] (VARIABLE): likewise
1656 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1658 Disable lnxboot.img when compiled
1661 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
1662 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
1663 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
1664 [! APPLE_CC] (CODE_LENG): skip
1665 [! APPLE_CC] (setup_sects): likewise
1666 [! APPLE_CC]: skip filling
1668 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1670 Address in trampolines based on 32-bit registers when compiled
1673 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
1675 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
1677 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1679 Avoid aliases when compiling with Apple's CC for PCBIOS machine
1681 * kern/misc.c [APPLE_CC] (memcpy): new function
1682 [APPLE_CC] (memmove): likewise
1683 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
1684 (memcpy): define alias conditionally on !APPLE_CC
1687 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
1688 APPLE_CC are defined
1689 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
1690 (grub_assert_fail): make prototype conditional
1692 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1694 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
1696 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
1698 (CLEANFILES): add grub-macho2img
1699 (grub_macho2img_SOURCES): new variable
1700 * kern/i386/pc/startup.S (bss_start): new variable
1702 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
1703 * util/grub-macho2img.c: new file
1705 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1707 Use objconv when compiling with Apple's CC
1709 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
1710 (efiemu64.o): likewise
1711 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
1712 when compiling with Apple's CC
1713 (efiemu64_s.o): likewise
1714 * configure.ac: check for objconv when compiling with Apple's CC
1715 * genmk.rb: use objconv for modules when compiled with Apple's CC
1717 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1719 Define segment as well as section when compiling with
1722 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
1723 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
1724 (efiemu_convert_pointer): likewise
1725 (efiemu_set_virtual_address_map): likewise
1726 (efiemu_convert_pointer): likewise
1727 (efiemu_getcrc32): likewise
1728 (init_crc32_table): likewise
1730 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
1731 (GRUB_MOD_DEP): likewise
1733 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1735 Allow a compilation without -mcmodel=large
1737 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
1738 when compiled without -mcmodel=large
1739 (filter_memory_map): remove memory post 4 GiB when compiled
1740 without -mcmodel=large
1741 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
1742 TARGET_CFLAGS when -mcmodel=large isn't supported
1744 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1746 Remove nested functions in efiemu core
1748 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
1750 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1752 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
1754 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
1756 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
1758 (grub_cpu_is_tsc_supported): likewise
1759 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
1761 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1763 Absolute addressing through constant with Apple's cc
1765 * kern/i386/pc/startup.S: Define necessary constants
1766 and address through it when using ABS with Apple's CC
1767 * boot/i386/pc/diskboot.S: likewise
1768 * boot/i386/pc/boot.S: likewise
1769 * boot/i386/pc/lnxboot.S: likewise
1770 * boot/i386/pc/cdboot.S: likewise
1771 * mmap/i386/pc/mmap_helper.S: likewise
1772 * commands/i386/pc/drivemap_int13h.S: likewise
1774 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1776 Check if compiler is apple cc
1778 * Makefile.in (ASFLAGS): new variable
1779 (TARGET_ASFLAGS): likewise
1780 (TARGET_MODULE_FORMAT): likewise
1781 (TARGET_APPLE_CC): likewise
1783 (TARGET_IMG_CFLAGS): likewise
1784 (TARGET_CPPFLAGS): add includedir
1785 * configure.ac: call grub_apple_cc and grub_apple_target_cc
1786 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
1787 Check for linker script only if compiler isn't Apple's CC
1788 (TARGET_MODULE_FORMAT): set
1789 (TARGET_APPLE_CC): likewise
1790 (TARGET_ASFLAGS): likewise
1792 Check for objcopy only if compiler isn't Apple's CC
1793 Check for BSS symbol only if compiler isn't Apple's CC
1794 * genmk.rb: adapt nm options if we use Apple's utils
1795 * aclocal.m4 (grub_apple_cc): new test
1796 (grub_apple_target_cc): likewise
1798 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1800 Simplify sed expressions and improve awk
1802 * Makefile.in (install-local): simplify sed expression
1803 * gencmdlist.sh: likewise
1804 * genmoddep.awk: avoid adding module as a dependency of itself
1806 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1808 Add missing start symbols
1810 * boot/i386/pc/boot.S: add start
1811 * boot/i386/pc/pxeboot.S: likewise
1813 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1815 Fix wrong assumptions with grub-mkimage on EFI
1817 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
1818 (relocate_addresses): consider both r_addend and value at offset
1819 (make_mods_section): zerofill modinfo and header
1820 (convert_elf): write prefix here
1822 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1824 Use .asciz instead of .string
1826 * i386/pc/diskboot.S: use .asciz instead of .string
1827 * i386/pc/boot.S: likewise
1828 * include/grub/dl.h (GRUB_MOD_DEP): likewise
1829 (GRUB_MOD_NAME): likewise
1831 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1835 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
1836 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
1837 (grub_video_setup): remove
1838 (grub_video_set_mode): new prototype
1839 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
1841 (linux_vesafb_res): compile only on PCBIOS
1842 (grub_linux_boot): support gfxpayload
1843 * loader/i386/pc/xnu.c (video_hook): new function
1844 (grub_xnu_set_video): support gfxpayload
1845 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
1846 (DEFAULT_VIDEO_HEIGHT): likewise
1847 (DEFAULT_VIDEO_FLAGS): likewise
1848 (DEFAULT_VIDEO_MODE): new definition
1849 (video_hook): new function
1850 (grub_gfxterm_init): use grub_video_set_mode
1851 * util/grub.d/30_os-prober.in: remove explicit modesetting before
1853 * video/video.c (grub_video_setup): removed
1854 (grub_video_set_mode): new function based on grub_gfxterm_init and
1857 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1859 Avoid calling biosdisk in drivemap
1861 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
1862 (revparse_biosdisk): likewise
1863 (list_mappings): derive name from id directly
1864 (grub_cmd_drivemap): use tryparse_diskstring
1866 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1870 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
1871 (grub_lexer_param): add tokenonhold
1872 (grub_script_create_cmdline): remove cmdline. All callers updated
1873 (grub_script_function_create): make functionname
1874 grub_script_arg. All callers updated
1875 (grub_script_execute_argument_to_string): new prototype
1876 * kern/parser.c (state_transitions): reorder
1877 (grub_parser_cmdline_state): fix a bug and make more compact
1878 * script/sh/execute.c (grub_script_execute_argument_to_string):
1880 (grub_script_execute_cmdline): use new format
1881 * script/sh/function.c (grub_script_function_create): make functionname
1882 grub_script_arg. All callers updated
1883 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
1884 (grub_script_yylex): remove
1885 (grub_script_yylex2): renamed to ...
1886 (grub_script_yylex): ...renamed
1887 parse the expressions like a${b}c
1888 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
1889 (GRUB_PARSER_TOKEN_VAR): remove
1890 (GRUB_PARSER_TOKEN_NAME): likewise
1891 ("if"): declare as typeless
1893 ("function"): likewise
1898 (argument): likewise
1899 (script): accept empty scripts and make exit on error
1900 (arguments): use GRUB_PARSER_TOKEN_ARG
1901 (function): likewise
1902 (command): move error handling to script
1903 (menuentry): move grub_script_lexer_ref before
1904 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
1905 argument. All callers updated
1907 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
1909 Prevent GRUB from probing floppies during boot.
1911 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
1912 * commands/search.c (options): Add --no-floppy.
1913 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
1914 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
1915 --no-floppy when searching for UUIDs.
1917 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
1919 Simplify the code duplication in commands/search.c.
1921 * commands/search.c (search_label, search_fs_uuid): Merge into ...
1922 (search_fs): ... this. Update all users.
1924 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
1926 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
1928 2009-05-28 Pavel Roskin <proski@gnu.org>
1930 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
1931 Remove the original symlink explicitly.
1933 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
1934 just one slash. That's how grub_fshelp_find_file() does it.
1936 2009-05-26 Pavel Roskin <proski@gnu.org>
1938 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
1941 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
1944 2009-05-25 Christian Franke <franke@computer.org>
1946 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
1948 (grub_atapi_identify): Add wait after drive select.
1949 (grub_ata_identify): Do more strict status register check before
1950 calling grub_atapi_identify (). Suppress error message if status
1951 register is 0x00 after command failure. Add status register
1952 check after PIO read to avoid bogus identify due to stuck DRQ.
1953 Thanks to Pavel Roskin for testing.
1954 (grub_device_initialize): Remove unsafe status register check.
1955 Thanks to 'phcoder' for problem report and patch.
1956 Prevent sign extension in debug message.
1958 2009-05-23 Colin D Bennett <colin@gibibit.com>
1960 Cleaned up `include/grub/normal.h'. Grouped prototypes by
1961 definition file, and functions defined in `normal/menu.c' have had
1962 their prototypes moved to `include/grub/menu.h' for consistency.
1964 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
1966 (grub_menu_get_entry): Likewise.
1967 (grub_menu_get_timeout): Likewise.
1968 (grub_menu_set_timeout): Likewise.
1969 (grub_menu_execute_entry): Likewise.
1970 (grub_menu_execute_with_fallback): Likewise.
1971 (grub_menu_entry_run): Likewise.
1973 * include/grub/normal.h: Re-ordered and grouped function
1974 prototypes by file that the function is defined in.
1975 (grub_menu_execute_callback): Removed; moved to menu.h.
1976 (grub_menu_get_entry): Likewise.
1977 (grub_menu_get_timeout): Likewise.
1978 (grub_menu_set_timeout): Likewise.
1979 (grub_menu_execute_entry): Likewise.
1980 (grub_menu_execute_with_fallback): Likewise.
1981 (grub_menu_entry_run): Likewise.
1982 (grub_menu_addentry): Renamed from this ...
1983 (grub_normal_add_menu_entry): ... to this.
1985 * normal/main.c (grub_menu_addentry): Renamed from this ...
1986 (grub_normal_add_menu_entry): ... to this.
1988 * script/sh/execute.c (grub_script_execute_menuentry): Update
1989 reference to renamed grub_menu_addentry function.
1991 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
1993 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
1995 2009-05-22 Pavel Roskin <proski@gnu.org>
1997 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
1998 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
1999 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
2000 compiling for the i386 targets, but not for the utilities.
2002 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
2004 (grub_root_drive): Likewise.
2005 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
2007 (grub_root_drive): Change size to byte.
2008 (grub_start_addr): Remove.
2009 (grub_end_addr): Likewise.
2010 (grub_apm_bios_info): Likewise.
2012 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
2014 * normal/i386: Remove.
2015 * normal/powerpc: Likewise.
2016 * normal/sparc64: Likewise.
2017 * normal/x86_64: Likewise.
2019 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
2021 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
2022 * loader/i386/linux_trampoline.S: Fix indentation
2023 * loader/i386/xnu_helper.S: Likewise
2025 2009-05-18 Colin D Bennett <colin@gibibit.com>
2027 Display error messages when parsing a Lua statement fails.
2028 Previously, executing a syntactically invalid statement like
2029 ")foo" or "bar;" would silently fail.
2031 * script/lua/grub_main.c (handle_lua_error): New function.
2032 (grub_lua_parse_line): Improved reporting of Lua parser and
2035 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2037 Remove -Werror which causes build to fail on some systems
2039 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
2040 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
2041 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
2043 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2045 trampoline for linux on 64-bit platform
2047 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
2048 loader/i386/efi/linux_trampoline.S
2049 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
2051 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
2053 * loader/i386/linux_trampoline.S: moved here
2054 * loader/i386/efi/linux.c (allocate_pages): reserve space for
2056 (jumpvector): removed
2057 (grub_linux_trampoline_start): new declaration
2058 (grub_linux_trampoline_end): likewise
2059 (grub_linux_boot): use trampoline when on 64-bit platform
2060 * loader/i386/linux.c: likewise
2062 2009-05-16 Pavel Roskin <proski@gnu.org>
2064 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
2065 const to avoid a warning.
2066 (grub_lua_setenv): Likewise.
2067 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
2068 lmsg to fix a warning.
2070 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
2072 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
2073 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2074 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
2075 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2076 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
2077 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2078 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
2079 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2081 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
2083 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
2085 2009-05-16 Bean <bean123ch@gmail.com>
2087 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
2088 (lua_mod_SOURCES): New variable.
2089 (lua_mod_CFLAGS): Likewise.
2090 (lua_mod_LDFLAGS): Likewise.
2092 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
2093 (setjmp_mod_SOURCES): New variable.
2094 (setjmp_mod_CFLAGS): Likewise.
2095 (setjmp_LDFLAGS): Likewise.
2097 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
2098 (setjmp_mod_SOURCES): New variable.
2099 (setjmp_mod_CFLAGS): Likewise.
2100 (setjmp_LDFLAGS): Likewise.
2102 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
2103 (setjmp_mod_SOURCES): New variable.
2104 (setjmp_mod_CFLAGS): Likewise.
2105 (setjmp_LDFLAGS): Likewise.
2107 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
2108 (setjmp_mod_SOURCES): New variable.
2109 (setjmp_mod_CFLAGS): Likewise.
2110 (setjmp_LDFLAGS): Likewise.
2112 * normal/i386/setjmp.S: Moved from here ...
2113 * lib/i386/setjmp.S: ... Moved here
2114 * normal/x86_64/setjmp.S: Moved from here ...
2115 * lib/x86_64/setjmp.S: ... Moved here
2116 * normal/powerpc/setjmp.S: Moved from here ...
2117 * lib/powerpc/setjmp.S: ... Moved here
2118 * normal/sparc64/setjmp.S: Moved from here ...
2119 * lib/sparc64/setjmp.S: ... Moved here
2121 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
2122 returns_twice in mingw.
2124 * script/lua/grub_lib.c: New file.
2125 * script/lua/grub_lib.h: Likewise.
2126 * script/lua/grub_lua.h: Likewise.
2127 * script/lua/grub_main.c: Likewise.
2128 * script/lua/lapi.c: Likewise.
2129 * script/lua/lapi.h: Likewise.
2130 * script/lua/lauxlib.c: Likewise.
2131 * script/lua/lauxlib.h: Likewise.
2132 * script/lua/lbaselib.c: Likewise.
2133 * script/lua/lcode.c: Likewise.
2134 * script/lua/lcode.h: Likewise.
2135 * script/lua/ldblib.c: Likewise.
2136 * script/lua/ldebug.c: Likewise.
2137 * script/lua/ldebug.h: Likewise.
2138 * script/lua/ldo.c: Likewise.
2139 * script/lua/ldo.h: Likewise.
2140 * script/lua/ldump.c: Likewise.
2141 * script/lua/lfunc.c: Likewise.
2142 * script/lua/lfunc.h: Likewise.
2143 * script/lua/lgc.c: Likewise.
2144 * script/lua/lgc.h: Likewise.
2145 * script/lua/linit.c: Likewise.
2146 * script/lua/liolib.c: Likewise.
2147 * script/lua/llex.c: Likewise.
2148 * script/lua/llex.h: Likewise.
2149 * script/lua/llimits.h: Likewise.
2150 * script/lua/lmathlib.c: Likewise.
2151 * script/lua/lmem.c: Likewise.
2152 * script/lua/lmem.h: Likewise.
2153 * script/lua/loadlib.c: Likewise.
2154 * script/lua/lobject.c: Likewise.
2155 * script/lua/lobject.h: Likewise.
2156 * script/lua/lopcodes.c: Likewise.
2157 * script/lua/lopcodes.h: Likewise.
2158 * script/lua/loslib.c: Likewise.
2159 * script/lua/lparser.c: Likewise.
2160 * script/lua/lparser.h: Likewise.
2161 * script/lua/lstate.c: Likewise.
2162 * script/lua/lstate.h: Likewise.
2163 * script/lua/lstring.c: Likewise.
2164 * script/lua/lstring.h: Likewise.
2165 * script/lua/lstrlib.c: Likewise.
2166 * script/lua/ltable.c: Likewise.
2167 * script/lua/ltable.h: Likewise.
2168 * script/lua/ltablib.c: Likewise.
2169 * script/lua/ltm.c: Likewise.
2170 * script/lua/ltm.h: Likewise.
2171 * script/lua/lua.h: Likewise.
2172 * script/lua/luaconf.h: Likewise.
2173 * script/lua/lualib.h: Likewise.
2174 * script/lua/lundump.c: Likewise.
2175 * script/lua/lundump.h: Likewise.
2176 * script/lua/lvm.c: Likewise.
2177 * script/lua/lvm.h: Likewise.
2178 * script/lua/lzio.c: Likewise.
2179 * script/lua/lzio.h: Likewise.
2181 2009-05-16 Bean <bean123ch@gmail.com>
2183 * include/grub/kernel.h (grub_module_header_types): Add type
2186 * kern/main.c (grub_load_config): New function.
2187 (grub_main): Call grub_load_config to read boot config.
2189 * grub-mkimage (generate_image): New parameter config_path.
2190 (options): New option --config.
2191 (main): Parse --config option, and pass it to generate_image.
2193 2009-05-14 Christian Franke <franke@computer.org>
2195 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
2196 This fixes build on Cygwin.
2198 2009-05-14 Pavel Roskin <proski@gnu.org>
2200 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
2201 jump. This saves two bytes, so the typical case of 2 swapped
2202 drives would fit 32 bytes.
2204 2009-05-13 Pavel Roskin <proski@gnu.org>
2206 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
2207 grub_uint32_t to avoid a warning.
2209 * loader/i386/linux.c (allocate_pages): When assigning
2210 real_mode_mem, cast through grub_size_t to fix a warning. The
2211 code already makes sure that the value would fit a pointer.
2212 (grub_linux_setup_video): Cast render_target->data to
2213 grub_size_t to fix a warning.
2215 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
2217 * commands/i386/pc/drivemap.c: New file - implement drivemap
2219 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
2220 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
2222 2009-05-13 Pavel Roskin <proski@gnu.org>
2224 * util/i386/pc/grub-setup.c (setup): Remove unused variable
2225 embedding_area_exists.
2227 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
2229 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
2230 it easier to understand / work with.
2231 Improve warning messages for cases where there's no embedding area,
2232 or when it is too small (or core.img too large).
2234 2009-05-13 Pavel Roskin <proski@gnu.org>
2236 * loader/i386/pc/multiboot2.c: Add necessary includes for
2237 grub_multiboot2_real_boot().
2239 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
2240 PX record is always little-endian. We only need the lower 2
2243 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
2244 facilitate code reuse.
2245 (grub_cpio_mount): Use "struct head", not a char buffer. This
2246 fixes a warning reported by gcc 4.4.
2248 * kernel/disk.c (grub_disk_read): Use void pointer for the
2250 (grub_disk_write): Use const void pointer for the buffer.
2251 Adjust all callers. Remove unnecessary casts.
2253 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
2255 * util/i386/pc/grub-install.in: Update copyright year.
2257 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2261 * commands/gptsync.c: new file
2262 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
2263 (gptsync_mod_SOURCES): new variable
2264 (gptsync_mod_CFLAGS): likewise
2265 (gptsync_mod_LDFLAGS): likewise
2266 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2268 (GRUB_PC_PARTITION_TYPE_HFS): likewise
2269 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
2270 * conf/i386-ieee1275.rmk: likewise
2271 * conf/i386-pc.rmk: likewise
2272 * conf/powerpc-ieee1275.rmk: likewise
2274 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2278 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
2279 (grub_dl_ref): likewise
2281 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
2283 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
2284 split in two functions (one for msdos and one for gpt).
2286 2009-05-08 Pavel Roskin <proski@gnu.org>
2288 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
2291 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
2292 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
2293 Initialize them with -1. Add sanity check for bad1. Eliminate
2296 2009-05-08 David S. Miller <davem@davemloft.net>
2298 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
2300 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
2302 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
2305 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
2307 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
2308 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
2310 2009-05-05 David S. Miller <davem@davemloft.net>
2312 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
2314 2009-05-05 Pavel Roskin <proski@gnu.org>
2316 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
2317 of grub_dl_ref() and grub_dl_unref().
2318 * commands/parttool.c: Remove preprocessor conditionals around
2319 grub_dl_ref() and grub_dl_unref().
2320 * fs/affs.c: Likewise.
2321 * fs/afs.c: Likewise.
2322 * fs/cpio.c: Likewise.
2323 * fs/ext2.c: Likewise.
2324 * fs/fat.c: Likewise.
2325 * fs/hfs.c: Likewise.
2326 * fs/hfsplus.c: Likewise.
2327 * fs/iso9660.c: Likewise.
2328 * fs/jfs.c: Likewise.
2329 * fs/minix.c: Likewise.
2330 * fs/ntfs.c: Likewise.
2331 * fs/reiserfs.c: Likewise.
2332 * fs/sfs.c: Likewise.
2333 * fs/udf.c: Likewise.
2334 * fs/ufs.c: Likewise.
2335 * fs/xfs.c: Likewise.
2336 * include/grub/dl.h: Likewise.
2337 * loader/xnu.c: Likewise.
2339 2009-05-04 Pavel Roskin <proski@gnu.org>
2341 * commands/acpi.c: Remove unused variable my_mod.
2342 * partmap/amiga.c: Likewise.
2343 * partmap/apple.c: Likewise.
2344 * partmap/gpt.c: Likewise.
2345 * partmap/pc.c: Likewise.
2346 * partmap/sun.c: Likewise.
2347 * term/gfxterm.c: Likewise.
2348 * term/i386/pc/vesafb.c: Likewise.
2349 * term/i386/pc/vga.c: Likewise.
2351 2009-05-04 David S. Miller <davem@davemloft.net>
2353 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
2354 pointer args to grub_ieee1275_get_property().
2356 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
2358 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
2359 devices, and do not traverse down under controller nodes.
2361 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
2362 (grub_ofdisk_open): Use it to un-escape "," characters.
2363 * kern/disk.c (find_part_sep): New.
2364 (grub_disk_open): Use it to find the first non-escaped ','
2365 character in the disk name.
2366 * util/ieee1275/devicemap.c (escape_of_path): New.
2367 (grub_util_emit_devicemap_entry): Use it.
2368 * util/sparc64/ieee1275/grub-install.in: Update script to
2369 strip partition specifiers properly by not triggering on
2370 '\' escaped ',' characters.
2372 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
2374 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
2376 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
2378 (linux_vesafb_modes): Add a lot of additional modes to the list (based
2379 on documentation from Wikipedia).
2381 2009-05-04 Pavel Roskin <proski@gnu.org>
2383 * disk/ata.c: Spelling fixes.
2384 * disk/raid.c: Likewise.
2385 * disk/usbms.c: Likewise.
2386 * disk/dmraid_nvidia.c: Likewise.
2387 * kern/ieee1275/openfw.c: Likewise.
2388 * kern/ieee1275/init.c: Likewise.
2389 * kern/ieee1275/cmain.c: Likewise.
2390 * boot/i386/pc/cdboot.S: Likewise.
2391 * video/readers/png.c: Likewise.
2392 * video/i386/pc/vbe.c: Likewise.
2393 * fs/udf.c: Likewise.
2394 * fs/hfs.c: Likewise.
2395 * fs/reiserfs.c: Likewise.
2396 * efiemu/runtime/efiemu.c: Likewise.
2397 * efiemu/main.c: Likewise.
2398 * efiemu/mm.c: Likewise.
2399 * include/grub/elf.h: Likewise.
2400 * include/grub/xnu.h: Likewise.
2401 * include/grub/usbdesc.h: Likewise.
2402 * include/grub/usb.h: Likewise.
2403 * include/grub/script_sh.h: Likewise.
2404 * include/grub/lib/LzmaEnc.h: Likewise.
2405 * include/grub/efiemu/efiemu.h: Likewise.
2406 * include/grub/command.h: Likewise.
2407 * normal/menu.c: Likewise.
2408 * normal/main.c: Likewise.
2409 * normal/datetime.c: Likewise.
2410 * bus/usb/uhci.c: Likewise.
2411 * mmap/i386/uppermem.c: Likewise.
2412 * mmap/mmap.c: Likewise.
2413 * commands/acpi.c: Likewise.
2414 * commands/test.c: Likewise.
2415 * partmap/apple.c: Likewise.
2416 * font/font.c: Likewise.
2417 * loader/sparc64/ieee1275/linux.c: Likewise.
2418 * loader/macho.c: Likewise.
2419 * loader/i386/bsd_trampoline.S: Likewise.
2420 * loader/i386/bsd.c: Likewise.
2421 * loader/xnu.c: Likewise.
2422 * term/i386/pc/vesafb.c: Likewise.
2423 * term/usb_keyboard.c: Likewise.
2424 * util/resolve.c: Likewise.
2425 * util/getroot.c: Likewise.
2427 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
2429 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
2431 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
2433 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
2436 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
2438 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
2439 parameter only available on BIOS.
2441 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2443 Removed wrong semicolon in declaration
2445 * grub/misc.h (grub_dprintf): remove semicolon
2447 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
2449 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
2450 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
2451 is done by grub_cmd_linux() now).
2452 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
2453 restore video to text mode.
2454 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
2455 indicates lack of "vga=" parameter. "vga=0" is mapped to
2456 `GRUB_LINUX_VID_MODE_NORMAL'.
2458 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
2460 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
2461 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
2462 and `normal/script.c'. Add `kern/rescue_reader.c',
2463 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
2464 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
2465 `grub_script.tab.c'.
2467 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2468 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
2469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2470 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
2471 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2473 * Makefile.in: Remove duplicated 2008 in Copyright line.
2475 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
2477 * util/misc.c (grub_util_warn): New function. Emits a warning
2479 * include/grub/util/misc.h (grub_util_warn): New declaration.
2481 * util/i386/pc/grub-install.in: Understand --force and pass it down
2484 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
2486 (setup): Improve error messages and add warnings when requested to
2487 install in odd layouts. Refuse to install using blocklists unless
2490 2009-05-04 martin f. krafft <madduck@madduck.net>
2492 * disk/raid.c (grub_raid_scan_device): Improve debug message.
2494 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2496 Updated copyright year
2498 * fs/hfsplus.c: updated copyright year
2500 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2504 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
2505 in the space previously used by unused3
2506 (grub_hfsplus_uuid): new function
2507 (grub_hfsplus_fs): added uuid field
2509 2009-05-03 Pavel Roskin <proski@gnu.org>
2511 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
2512 suppress warnings. It's no longer needed.
2513 * disk/host.c: Likewise.
2514 * disk/ata_pthru.c: Likewise.
2515 * disk/loopback.c: Likewise.
2516 * hook/datehook.c: Likewise.
2517 * parttool/pcpart.c: Likewise.
2518 * fs/i386/pc/pxe.c: Likewise.
2519 * fs/ntfscomp.c: Likewise.
2520 * efiemu/main.c: Likewise.
2521 * mmap/mmap.c: Likewise.
2522 * commands/crc.c: Likewise.
2523 * commands/hexdump.c: Likewise.
2524 * commands/hdparm.c: Likewise.
2525 * commands/acpi.c: Likewise.
2526 * commands/echo.c: Likewise.
2527 * commands/minicmd.c: Likewise.
2528 * commands/blocklist.c: Likewise.
2529 * commands/memrw.c: Likewise.
2530 * commands/loadenv.c: Likewise.
2531 * commands/usbtest.c: Likewise.
2532 * commands/lsmmap.c: Likewise.
2533 * commands/boot.c: Likewise.
2534 * commands/parttool.c: Likewise.
2535 * commands/configfile.c: Likewise.
2536 * commands/search.c: Likewise.
2537 * commands/ieee1275/suspend.c: Likewise.
2538 * commands/cat.c: Likewise.
2539 * commands/i386/pc/pxecmd.c: Likewise.
2540 * commands/i386/pc/play.c: Likewise.
2541 * commands/i386/pc/halt.c: Likewise.
2542 * commands/i386/pc/vbeinfo.c: Likewise.
2543 * commands/i386/pc/vbetest.c: Likewise.
2544 * commands/lspci.c: Likewise.
2545 * commands/date.c: Likewise.
2546 * commands/handler.c: Likewise.
2547 * commands/ls.c: Likewise.
2548 * commands/test.c: Likewise.
2549 * commands/cmp.c: Likewise.
2550 * commands/efi/loadbios.c: Likewise.
2551 * commands/efi/fixvideo.c: Likewise.
2552 * commands/halt.c: Likewise.
2553 * commands/help.c: Likewise.
2554 * commands/reboot.c: Likewise.
2555 * hello/hello.c: Likewise.
2556 * script/sh/main.c: Likewise.
2557 * loader/xnu.c: Likewise.
2558 * term/terminfo.c: Likewise.
2559 * term/i386/pc/serial.c: Likewise.
2560 * term/usb_keyboard.c: Likewise.
2562 2009-05-03 David S. Miller <davem@davemloft.net>
2564 * normal/menu.c: Include grub/parser.h
2566 2009-05-03 Pavel Roskin <proski@gnu.org>
2568 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
2570 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
2571 Suggested by Javier MartÃn <lordhabbit@gmail.com>
2573 * util/i386/pc/grub-mkrescue.in: Allow for the case when
2574 efiemu??.o doesn't exist.
2575 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
2578 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
2580 FreeBSD 64-bit support
2582 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
2583 and loader/i386/bsd_trampoline.S
2584 (bsd_mod_ASFLAGS): new variable
2585 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
2586 (FREEBSD_MODTYPE_KERNEL64): likewise
2587 (grub_bsd64_trampoline_start): likewise
2588 (grub_bsd64_trampoline_end): likewise
2589 (grub_bsd64_trampoline_selfjump): likewise
2590 (grub_bsd64_trampoline_gdt): likewise
2591 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
2592 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
2593 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
2594 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
2595 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
2597 * loader/i386/bsd_pagetable.c: new file
2598 * loader/i386/bsd_trampoline.S: likewise
2599 * loader/i386/bsd.c (ALIGN_QWORD): new macro
2600 (ALIGN_VAR): likewise
2601 (entry_hi): new variable
2602 (kern_end_mdofs): likewise
2603 (is_64bit): likewise
2604 (grub_freebsd_add_meta): use ALIGN_VAR
2605 (grub_e820_mmap): new declaration
2606 (grub_freebsd_add_mmap): new function
2607 (grub_freebsd_add_meta_module): support 64 bit kernels
2608 (grub_freebsd_list_modules): use ALIGN_VAR
2609 (gdt_descriptor): new declaration
2610 (grub_freebsd_boot): support 64 bit kernels
2611 (grub_bsd_elf64_hook): new function
2612 (grub_bsd_load_elf): support elf64
2614 2009-05-03 Bean <bean123ch@gmail.com>
2616 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
2617 after we get the result of if statement.
2619 2009-05-03 Bean <bean123ch@gmail.com>
2621 * Makefile.in (enable_efiemu): New variable.
2623 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
2625 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
2627 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
2628 path, add -mno-red-zone option.
2629 (efiemu64_s.o): Likewise.
2630 (efiemu64.o): Use macro $^ for source file.
2632 * configure.ac (--enable-efiemu): New option.
2634 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2638 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
2639 (pkglib_MODULES): add xnu.mod
2640 (xnu_mod_SOURCES): new variable
2641 (xnu_mod_CFLAGS): likewise
2642 (xnu_mod_LDFLAGS): likewise
2643 (xnu_mod_ASFLAGS): likewise
2644 * conf/i386-pc.rmk: likewise
2645 * conf/x86_64-efi.rmk: likewise
2646 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
2648 * include/grub/i386/macho.h: new file
2649 * include/grub/i386/xnu.h: likewise
2650 * include/grub/macho.h: likewise
2651 * include/grub/machoload.h: likewise
2652 * include/grub/x86_64/macho.h: likewise
2653 * include/grub/x86_64/xnu.h: likewise
2654 * include/grub/xnu.h: likewise
2655 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
2656 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
2657 * loader/i386/efi/xnu.c: new file
2658 * loader/i386/pc/xnu.c: likewise
2659 * loader/i386/xnu.c: likewise
2660 * loader/i386/xnu_helper.S: likewise
2661 * loader/macho.c: likewise
2662 * loader/xnu.c: likewise
2663 * loader/xnu_resume.c: likewise
2664 * util/grub-dumpdevtree: likewise
2665 * include/grub/i386/pit.h: include grub/err.h
2666 (grub_pit_wait): export
2667 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
2669 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2673 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
2674 _linux_efi, linux_efi.
2675 new files in grub-emu
2676 new targets efiemu32.o and efiemu64.o
2677 * loader/linux_normal_efiemu.c: likewise
2678 * loader/i386/efi/linux.c: added preliminary efiemu support
2679 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
2681 * include/grub/autoefi.h: new file
2682 * include/grub/i386/efiemu.h: likewise
2683 * include/grub/i386/pc/efiemu.h: likewise
2684 * include/grub/efi/api.h: add LL suffix when necessary
2685 new definitions relating to tables
2686 * include/grub/efiemu/efiemu.h: new file
2687 * include/grub/efiemu/runtime.h: likewise
2688 * efiemu/prepare.c: likewise
2689 * efiemu/loadcore_common.c: likewise
2690 * efiemu/loadcore64.c: likewise
2691 * efiemu/runtime/efiemu.sh: likewise
2692 * efiemu/runtime/efiemu.S: likewise
2693 * efiemu/runtime/efiemu.c: likewise
2694 * efiemu/runtime/config.h: likewise
2695 * efiemu/prepare32.c: likewise
2696 * efiemu/main.c: likewise
2697 * efiemu/modules/pnvram.c: likewise
2698 * efiemu/modules/i386: likewise
2699 * efiemu/modules/i386/pc: likewise
2700 * efiemu/modules/acpi.c: likewise
2701 * efiemu/i386/pc/cfgtables.c: likewise
2702 * efiemu/i386/loadcore64.c: likewise
2703 * efiemu/i386/loadcore32.c: likewise
2704 * efiemu/prepare64.c: likewise
2705 * efiemu/loadcore.c: likewise
2706 * efiemu/symbols.c: likewise
2707 * efiemu/mm.c: likewise
2708 * efiemu/loadcore32.c: likewise
2710 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2714 * commands/acpi.c: new file
2715 * commands/i386/pc/acpi.c: likewise
2716 * commands/efi/acpi.c: likewise
2717 * include/grub/acpi.h: likewise
2718 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
2719 (acpi_mod_SOURCES): new variable
2720 (acpi_mod_CFLAGS): likewise
2721 (acpi_mod_LDFLAGS): likewise
2722 * conf/i386-efi.rmk: likewise
2723 * conf/x86_64-efi.rmk: likewise
2725 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2727 Missing part from mmap patch
2729 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
2730 (grub_mmap_unregister)
2731 (grub_mmap_free_and_unregister): use grub_mmap_register
2733 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2737 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
2738 * loader/i386/linux.c (find_mmap_size): likewise
2739 (allocate_pages): likewise
2740 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
2741 (grub_fill_multiboot_mmap): likewise
2742 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
2743 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
2744 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
2745 (OPENBSD_MMAP_RESERVED): likewise
2746 * include/grub/i386/pc/memory.h: include grub/memory.h
2747 (grub_lower_mem): removed
2748 (grub_upper_mem): likewise
2749 (GRUB_MACHINE_MEMORY_ACPI): new definition
2750 (GRUB_MACHINE_MEMORY_NVS): likewise
2751 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
2752 (GRUB_MACHINE_MEMORY_HOLE): likewise
2753 (grub_machine_mmap_register): likewise
2754 (grub_machine_mmap_unregister): likewise
2755 (grub_machine_get_upper): likewise
2756 (grub_machine_get_lower): likewise
2757 (grub_machine_get_post64): likewise
2758 * include/grub/i386/efi/memory.h: new file
2759 * include/grub/x86_64/efi/memory.h: likewise
2760 * include/grub/efi/memory.h: likewise
2761 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
2762 (mmap_mod_SOURCES): new variable
2763 (mmap_mod_LDFLAGS): likewise
2764 (mmap_mod_ASFLAGS): likewise
2765 * conf/i386-coreboot.rmk: likewise
2766 * conf/i386-ieee1275.rmk: likewise
2767 * conf/i386-efi.rmk: likewise
2768 * conf/x86_64-efi.rmk: likewise
2769 * include/grub/types.h (UINT_TO_PTR): new macro
2770 (PTR_TO_UINT32): likewise
2771 (PTR_TO_UINT64): likewise
2772 * include/grub/memory.h: new file
2773 * mmap/i386/pc/mmap.c: likewise
2774 * mmap/i386/pc/mmap_helper.S: likewise
2775 * mmap/i386/uppermem.c: likewise
2776 * mmap/mmap.c: likewise
2777 * mmap/efi/mmap.c: likewise
2778 * kern/i386/coreboot/init.c (grub_machine_init): don't use
2780 * kern/i386/pc/init.c (grub_lower_mem): removed variable
2781 (grub_upper_mem): likewise
2782 (grub_machine_init): don't use grub_upper_mem,
2783 make grub_lower_mem local
2784 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
2785 grub_mmap_iterate and grub_mmap_get_upper
2786 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
2788 2009-05-02 Bean <bean123ch@gmail.com>
2790 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
2792 (pkglib_MODULES): Add normal.mod and sh.mod.
2793 (normal_SOURCES): New variable.
2794 (normal_mod_CFLAGS): Likewise.
2795 (normal_mod_LDFLAGS): Likewise.
2796 (sh_mod_SOURCES): Likewise.
2797 (sh_mod_CFLAGS): Likewise.
2798 (sh_mod_LDFLAGS): Likewise.
2800 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
2801 script/sh/lexer.c_DEPENDENCIES.
2802 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
2803 kern/rescue_reader.c and kern/rescue_parser.c.
2804 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
2805 (grub_emu_SOURCES): Change source files.
2806 (pkglib_MODULES): Remove normal.mod.
2807 (normal_SOURCES): Removed.
2808 (normal_mod_CFLAGS): Likewise.
2809 (normal_mod_LDFLAGS): Likewise.
2810 * conf/i386-coreboot.rmk: Likewise.
2811 * conf/i386-efi.rmk: Likewise.
2812 * conf/i386-ieee1276.rmk: Likewise.
2813 * conf/powerpc-ieee1275.rmk: Likewise.
2814 * conf/sparc64-ieee1275.rmk: Likewise.
2815 * conf/x86_64-efi.rmk: Likewise.
2817 * include/grub/command.h (grub_command_execute): New inline function.
2819 * include/grub/menu.h (grub_menu_entry): Removed commands field.
2821 * include/grub/normal.h: Remove <grub/setjmp.h>.
2822 (grub_fs_module_list): Moved to normal/autofs.c.
2823 (grub_exit_env): Removed.
2824 (grub_command_execute): Likewise.
2825 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
2827 (read_command_list): New function declaration.
2828 (read_fs_list): Likewise.
2830 * include/parser.h: Include <grub/reader.h>.
2831 (grub_parser_split_cmdline): Change type of getline parameter.
2832 (grub_parser): New structure.
2833 (grub_parser_class): New variable.
2834 (grub_parser_execute): New function declaration.
2835 (grub_register_rescue_parser): Likewise.
2836 (grub_parser_register): New inline function.
2837 (grub_parser_unregister): Likewise.
2838 (grub_parser_get_current): Likewise.
2839 (grub_parser_set_current): Likewise.
2841 * include/grub/reader.h: New file.
2842 * kern/reader.c: Likewise.
2843 * kern/rescue_parser.c: Likewise.
2844 * kern/rescue_reader.c: Likewise.
2845 * normal/autofs.c: Likewise.
2846 * normal/dyncmd.c: Likewise.
2848 * include/grub/rescue.h: Removed.
2849 * normal/command.h: Likewise.
2851 * include/grub/script.h: Moved to ...
2852 * include/grub/script_sh.h: ... Moved here.
2853 * normal/execute.c: Moved to ...
2854 * script/sh/execute.c: ... Moved here.
2855 * normal/function.c: Moved to ...
2856 * script/sh/function.c: ... Moved here.
2857 * normal/lexer.c: Moved to ...
2858 * script/sh/lexer.c: ... Moved here.
2859 * normal/parser.y: Moved to ...
2860 * script/sh/parser.y: ... Moved here.
2861 * normal/script.c: Moved to ...
2862 * script/sh/script.c: ... Moved here.
2864 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
2866 (grub_exit_env): Removed.
2867 (fs_module_list): Moved to normal/autofs.c.
2868 (grub_file_getline): Don't handle comment here.
2869 (free_menu): Skip removed field entry->commands.
2870 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
2872 (read_config_file): Removed nested parameter, change getline function.
2873 (grub_enter_normal_mode): Removed.
2874 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
2875 (read_command_list): Likewise.
2876 (autoload_fs_module): Moved to normal/autofs.c.
2877 (read_fs_list): Likewise.
2878 (reader_nested): New variable.
2879 (grub_normal_execute): Run parser.sh to switch to sh parser.
2880 (grub_cmd_rescue): Removed.
2881 (cmd_normal): Removed.
2882 (grub_cmd_normal): Unregister itself at the beginning. Don't register
2884 (grub_cmdline_run): New function.
2885 (grub_normal_reader_init): Likewise.
2886 (grub_normal_read_line): Likewise.
2887 (grub_env_write_pager): Likewise.
2888 (cmdline): New variable.
2889 (grub_normal_reader): Likewise.
2890 (GRUB_MOD_INIT): Register normal reader and set as current, register
2891 pager hook, register normal command with grub_register_command_prio,
2892 so that it won't show up in command.lst.
2893 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
2894 grub_fs_autoload_hook.
2896 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
2897 (grub_menu_execute_entry): Replace grub_script_execute with
2898 grub_parser_execute, change parameter to grub_command_execute.
2900 * normal/menu_text.c: Remove <grub/script.h>.
2902 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
2903 and <grub/parser.h>.
2904 (run): Change editor_getline to use new parser interface. Change
2905 parameter to grub_command_execute.
2907 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
2908 <grub/reader.h> and <grub/parser.h>.
2909 (grub_load_normal_mode): Execute normal command.
2910 (grub_main): Call grub_register_core_commands,
2911 grub_register_rescue_parser and grub_register_rescue_reader, use
2912 grub_reader_loop to enter input loop.
2914 * kern/parser.c (grub_parser_split_cmdline): Change type of
2916 (grub_parser_class): New variable.
2917 (grub_parser_execute): New function.
2919 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
2920 * loader/multiboot2.c: Likewise.
2921 * loader/sparc64/ieee1275/linux.c: Likewise.
2923 * util/grub-emu.c (read_command_list): New dummy function.
2925 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
2927 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
2928 count to 16 for CCISS and IDA.
2930 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
2932 * normal/menu_text.c (grub_wait_after_message): Print a newline
2933 after waiting for user input.
2935 * loader/i386/linux.c: Include `<grub/normal.h>'.
2936 (grub_cmd_linux): Improve the error message about `ask' mode, by
2937 waiting for user input so it's not missed (we can do this, since
2938 user requested interaction).
2940 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2942 Added missing lst to grub-mkrescue
2944 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
2945 and ${input_dir}/parttool.lst
2947 2009-04-30 David S. Miller <davem@davemloft.net>
2949 * util/hostdisk.c (device_is_wholedisk): New function.
2950 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
2951 zero only if device_is_wholedisk() returns true.
2953 * util/hostdisk.c (convert_system_partition_to_system_disk):
2954 Handle virtual disk devices named /dev/vdiskX as found on sparc
2957 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
2958 lettered partition specifier is found, convert to numbered.
2960 2009-04-29 David S. Miller <davem@davemloft.net>
2962 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
2963 * include/grub/sparc64/ieee1275/memory.h: Likewise.
2965 * normal/command.c: Add missing newline at end of file.
2967 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
2969 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
2970 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
2971 grub_ofdisk_read): Likewise, and deal similarly with the fact that
2972 ihandles have a 32-bit type but need to be stored in a "void *".
2974 2009-04-28 Pavel Roskin <proski@gnu.org>
2976 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
2977 not disk. Adjust all dependencies.
2978 (grub_fs_uuid_close): Use grub_device_close(), not
2981 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
2982 parent's partition, don't copy it by reference, as it gets freed
2985 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2987 Preboot hooks support
2989 * commands/boot.c (struct grub_preboot_t): new declaration
2990 (preboots_head): new variable
2991 (preboots_tail): likewise
2992 (grub_loader_register_preboot_hook): new function
2993 (grub_loader_unregister_preboot_hook): likewise
2994 (grub_loader_set): launch preboot hooks
2995 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
2996 (grub_loader_register_preboot_hook): new declaration
2997 (grub_loader_unregister_preboot_hook): likewise
2999 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3003 * disk/scsi.c (grub_scsi_open): added missing cast when
3004 calling grub_dprintf
3006 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3008 Bug and warning fixes
3010 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
3012 * commands/test.c (test_parse): fixed bug with file tests and corrected
3013 declaration of find_file
3015 2009-04-26 Pavel Roskin <proski@gnu.org>
3017 * Makefile.in: Don't install empty manual pages if help2man is
3018 missing. Use help2man option for output, not shell redirection.
3020 2009-04-26 David S. Miller <davem@davemloft.net>
3022 * util/grub-mkdevicemap.c (make_device_map): Add missing
3023 NESTED_FUNC_ATTR to process_device().
3025 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3029 * commands/test.c: rewritten to use bash-like test
3031 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3033 Parttool autoloading and improvements
3035 * Makefile.in (pkglib_DATA): add parttool.lst
3036 (parttool.lst): new target
3037 * genmk.rb: generate parttool-*
3038 (CLEANFILES): add #{parttool}
3039 (PARTTOOLFILES): new variable
3040 * genparttoollist.sh: new file
3041 * parttool/pcpart.c (grub_pcpart_boot): more feedback
3042 (grub_pcpart_type): likewise
3043 * commands/parttool.c (helpmsg): new variable
3044 (grub_cmd_parttool): output help if not enough arguments are supplied
3046 (GRUB_MOD_INIT(parttool)): use helpmsg
3048 2009-04-24 David S. Miller <davem@davemloft.net>
3050 Avoiding opening same device multiple times in device iterator.
3052 * kern/device.c: (grub_device_iterate): Define struct part_ent,
3053 and use it to build a list of partitions in iterate_disk() and
3054 iterate_partition().
3056 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
3059 * disk/ieee1275/nand.c (grub_nand_iterate): Return
3060 grub_devalias_iterate() result instead of unconditional 0.
3061 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
3062 Also, capture hook return value, either directly or via
3063 grub_children_iterate(), and propagate to caller.
3064 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
3065 grub_children_iterate): Return value is now 'int' instead of
3067 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
3068 like a proper iterator, stopping when hooks return non-zero.
3069 (grub_devalias_iterate): Likewise.
3071 2009-04-23 David S. Miller <davem@davemloft.net>
3073 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
3075 2009-04-22 David S. Miller <davem@davemloft.net>
3077 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
3078 is larger than address_cells, use that value for address_cells too.
3080 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
3081 IEEE1275_MAX_PATH_LEN): Define.
3082 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
3083 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
3084 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
3085 'devtype'. Explicitly NULL terminate devalias expansion.
3087 * util/sparc64/ieee1275/misc.c: New file.
3088 * util/sparc64/ieee1275/grub-setup.c: New file.
3089 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
3090 * util/sparc64/ieee1275/grub-mkimage.c: New file.
3091 * util/sparc64/ieee1275/grub-install.in: New file.
3092 * util/ieee1275/ofpath.c: New file.
3093 * util/ieee1275/devicemap.c: New file.
3094 * util/devicemap.c: New file.
3095 * util/deviceiter.c: New file.
3096 * kern/sparc64/ieee1275/init.c: New file.
3097 * include/grub/util/ofpath.h: New file.
3098 * include/grub/util/deviceiter.h: New file.
3099 * util/grub-mkdevicemap.c: Include deviceiter.h.
3100 Implement using grub_util_emit_devicemap_entry and
3101 grub_util_iterate_devices.
3102 * conf/i386-corebook.rmk: Build util/deviceiter.c and
3103 util/devicemap.c into grub-mkdevicemap
3104 * conf/i386-efi.rmk: Likewise.
3105 * conf/i386-ieee1275.rmk: Likewise.
3106 * conf/i386-pc.rmk: Likewise.
3107 * conf/powerpc-ieee1275.rmk: Likewise.
3108 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
3109 images and installation utilities. Build kernel as image
3110 instead of as elf binary. Use common rules as much as possible.
3112 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3114 Correct GPT definition
3116 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
3119 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
3121 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
3123 2009-04-19 David S. Miller <davem@davemloft.net>
3125 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
3126 (grub_rescue_cmd_linux): Rename to...
3127 (grub_cmd_linux): and fix prototype.
3128 (grub_rescue_cmd_initrd): Rename to...
3129 (grub_cmd_initrd): and fix prototype.
3130 (cmd_linux, cmd_initrd): New.
3131 (GRUB_MOD_INIT(linux)): Use grub_register_command().
3132 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
3134 2009-04-17 Pavel Roskin <proski@gnu.org>
3136 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
3138 (grub_ohci_transfer): Likewise.
3140 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
3142 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
3143 return without a value. Fix inconsistent indentation.
3145 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
3146 match struct grub_fs.
3148 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
3149 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
3150 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3151 * commands/lspci.c (grub_lspci_iter): Likewise.
3153 2009-04-16 Bean <bean123ch@gmail.com>
3155 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
3158 2009-04-15 Pavel Roskin <proski@gnu.org>
3160 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
3161 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
3162 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
3165 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
3167 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
3168 that no multiple data or metadata areas are supported and `Unknown
3171 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3173 Move loader out of the kernel
3175 * kern/loader.c: moved to ...
3176 * commands/boot.c: ... moved here
3177 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
3178 * commands/boot.c (grub_cmd_boot): moved here. All users updated
3179 * include/grub/kernel.h (grub_machine_fini): export
3180 * include/grub/loader.h (grub_loader_is_loaded): update declaration
3181 (grub_loader_set): likewise
3182 (grub_loader_unset): likewise
3183 (grub_loader_boot): likewise
3184 * conf/common.rmk: new module boot.mod
3185 (pkglib_MODULES): add boot.mod
3186 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
3187 (grub_emu_SOURCES): likewise
3188 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
3189 (grub_emu_SOURCES): likewise
3190 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
3191 (grub_emu_SOURCES): likewise
3192 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
3193 (grub_emu_SOURCES): likewise
3194 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
3195 (grub_emu_SOURCES): likewise
3196 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
3197 (grub_emu_SOURCES): likewise
3198 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
3199 (grub_emu_SOURCES): likewise
3201 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3203 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
3205 * kern/misc.c (grub_itoa): Removed function
3206 (grub_ltoa): likewise
3207 (grub_vsprintf): use grub_lltoa
3209 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3213 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
3214 * conf/i386-coreboot.rmk: likewise
3215 * conf/i386-ieee1275.rmk: likewise
3216 * conf/powerpc-ieee1275.rmk: likewise
3218 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
3220 * INSTALL: Add that `./autogen.sh' needs to be run before
3223 2009-04-14 Bean <bean123ch@gmail.com>
3225 * Makefile.in (pkglib_DATA): Add handler.lst.
3226 (handler.lst): New rule.
3228 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
3229 * conf/i386-coreboot.rmk: Likewise.
3230 * conf/i386-ieee1275.rmk: Likewise.
3231 * conf/i386-efi.rmk: Likewise.
3232 * conf/x86_64-efi.rmk: Likewise.
3233 * conf/powerpc-ieee1275.rmk: Likewise.
3234 * conf/sparc64-ieee1275.rmk: Likewise.
3236 * genhandlerlist.sh: New file.
3238 * genmk.rb: Add rules to generate handler.lst.
3240 * include/grub/normal.h (grub_file_getline): New function definition.
3241 (read_handler_list): Likewise.
3242 (free_handler_list): Likewise.
3244 * include/grub/term.h (grub_term_register_input): Add name parameter
3245 for auto generation of handler.lst.
3246 (grub_term_register_output): Likewise.
3248 * normal/handler.c: New file.
3250 * normal/main.c (get_line): Renamed to grub_file_getline.
3251 (read_config_file): Use the newly renamed grub_file_getline.
3252 (read_command_list): Likewise.
3253 (read_fs_list): Likewise.
3254 (grub_normal_execute): Call read_handler_list to parse handler.lst.
3255 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
3257 * term/efi/console.c (grub_console_init): Add name parameter for auto
3258 generation of handler.lst.
3259 * term/gfxterm.c: Likewise.
3260 * term/i386/pc/at_keyboard.c: Likewise.
3261 * term/i386/pc/console.c: Likewise.
3262 * term/i386/pc/serial.c: Likewise.
3263 * term/i386/pc/vesafb.c: Likewise.
3264 * term/i386/pc/vga.c: Likewise.
3265 * term/i386/pc/vga_text.c: Likewise.
3266 * term/ieee1275/ofconsole.c: Likewise.
3267 * term/usb_keyboard.c: Likewise.
3269 2009-04-14 Bean <bean123ch@gmail.com>
3271 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
3272 properly with null character.
3274 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
3276 * configure: Remove.
3277 * config.h.in: Likewise.
3278 * stamp-h.in: Likewise.
3279 * DISTLIST: Likewise.
3280 * conf/common.mk: Likewise.
3281 * conf/i386-coreboot.mk: Likewise.
3282 * conf/i386-efi.mk: Likewise.
3283 * conf/i386-ieee1275.mk: Likewise.
3284 * conf/i386.mk: Likewise.
3285 * conf/i386-pc.mk: Likewise.
3286 * conf/powerpc-ieee1275.mk: Likewise.
3287 * conf/sparc64-ieee1275.mk: Likewise.
3288 * conf/x86_64-efi.mk: Likewise.
3290 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
3293 2009-04-14 John Stanley <jpsinthemix@verizon.net>
3294 David S. Miller <davem@davemloft.net>
3296 * util/hostdisk.c (make_device_name): Fix buffer length
3299 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
3301 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
3302 <sys/param.h> and <sys/sysctl.h>.
3303 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
3304 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
3305 opening the device and reset them afterwards.
3307 2009-04-13 Pavel Roskin <proski@gnu.org>
3309 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
3310 Reported by John Stanley <jpsinthemix@verizon.net>
3312 2009-04-13 Robert Millan <rmh@aybabtu.com>
3314 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
3315 that name for menuentries when appropriate.
3317 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
3319 * util/grub.d/10_freebsd.in: Add a missing `fi'.
3321 2009-04-13 Robert Millan <rmh@aybabtu.com>
3323 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
3324 to Linux, simply abort telling the user it's no longer supported.
3326 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
3328 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
3329 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
3330 `freebsd_loadenv' only when devices.hints exist.
3332 2009-04-13 Pavel Roskin <proski@gnu.org>
3334 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
3336 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
3338 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
3340 (grub_drive): Likewise.
3342 2009-04-13 David S. Miller <davem@davemloft.net>
3344 * kern/sparc64/ieee1275/ieee1275.c: New file.
3345 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
3346 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
3347 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
3348 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
3349 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
3350 grub_ieee1275_alloc_physmem): Declare new exported functions.
3352 * include/grub/sparc64/ieee1275/loader.h: New file.
3353 * include/grub/sparc64/ieee1275/memory.h: Likewise.
3354 * include/grub/sparc64/kernel.h: Likewise.
3355 * loader/sparc64/ieee1275/linux.c: Likewise.
3357 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
3358 (grub_fstest_SOURCES): Likewise.
3360 * util/hostdisk.c (make_device_name): Do not make any assumptions
3361 about the length of drive names.
3363 * kern/dl.c (grub_dl_load_file): Close file immediately when
3364 we are done using it.
3366 2009-04-12 David S. Miller <davem@davemloft.net>
3368 * kern/misc.c (grub_ltoa): Fix cast when handling negative
3369 values. Noticed by Pavel Roskin.
3371 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
3374 * genmk.rb: Add more flexible image type specification, also
3375 pass --strip-unneeded to objcopy.
3376 * conf/i386-pc.rmk: Use *_FORMAT.
3377 * conf/i386-pc.mk: Rebuilt.
3379 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
3380 (OFDISK_HASH_SZ): Define.
3381 (ofdisk_hash): New hash table.
3382 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
3383 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
3384 instead of device phandle which is not unique.
3386 * kern/sparc64/ieee1275/init.c: Delete, replace with...
3387 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
3388 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
3389 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
3390 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
3391 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
3392 GRUB_KERNEL_MACHINE_DATA_END): Define.
3393 (grub_kernel_image_size, grub_total_module_size): Declare.
3395 2009-04-12 Pavel Roskin <proski@gnu.org>
3397 * configure.ac: Change the logic when we check for target tools.
3398 Do it when the target is specified and it's different from the
3399 specified value of the host.
3401 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
3403 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
3404 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
3405 GNU/kFreeBSD. Check if a device is a character device. Use
3406 DIOCGMEDIASIZE to get the size.
3407 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
3408 support for GNU/kFreeBSD.
3409 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
3410 is a character device instead of a block device. Add support for
3411 FreeBSD device names.
3413 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
3414 is a character device instead of a block device.
3416 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
3417 is a character device instead of a block device.
3419 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
3421 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
3422 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
3423 FreeBSD. Check if a device is a character device. Use
3424 DIOCGMEDIASIZE to get the size.
3425 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
3426 support for FreeBSD.
3427 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
3428 is a character device instead of a block device. Add support for
3429 FreeBSD device names.
3431 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
3432 a character device instead of a block device.
3433 (grub_util_check_char_device): New function.
3435 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
3436 a character device instead of a block device.
3438 * include/grub/util/getroot.h (grub_util_check_char_device): New
3441 2009-04-11 David S. Miller <davem@davemloft.net>
3443 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
3445 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
3446 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
3447 function, if present.
3448 (__bswapdi2): Likewise.
3450 * include/grub/sparc64/ieee1275/boot.h: New file.
3451 * boot/sparc64/ieee1275/boot.S: Likewise.
3452 * boot/sparc64/ieee1275/diskboot.S: Likewise.
3454 * kern/misc.c (grub_ltoa): New function.
3455 (grub_vsprintf): Use it to format 'long' integers.
3457 2009-04-10 David S. Miller <davem@davemloft.net>
3459 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
3460 slots are of type grub_ieee1275_cell_t.
3461 (grub_nand_read): Likewise.
3462 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
3463 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
3464 macros are used to compare values in arg/ret block of the call.
3465 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
3466 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
3467 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
3468 grub_ieee1275_instance_to_path, grub_ieee1275_write,
3469 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
3470 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
3471 grub_ieee1275_close, grub_ieee1275_set_property,
3472 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
3473 grub_ieee1275_cell_t.
3474 * kern/ieee1275/openfw.c (grub_map): Likewise.
3475 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
3476 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
3478 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
3479 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
3480 (grub_devalias_iterate): Likewise.
3482 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3486 * fs/ufs.c (INODE_NBLOCKS): new definition
3487 (struct grub_ufs_dirent): added fields for non-BSD dirents
3488 (grub_ufs_get_file_block): fixed double indirect handling
3489 (grub_ufs_lookup_symlink): use more robust way to determine whether
3491 (grub_ufs_find_file): support for non-BSD dirents
3492 (grub_ufs_dir): support for non-BSD dirents
3494 2009-04-10 Bean <bean123ch@gnail.com>
3496 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
3497 attribute, otherwise the size would be wrong for i386 platform.
3499 * include/grub/pci.h (grub_pci_read_word): New inline function.
3500 (grub_pci_read_byte): Likewise.
3501 (grub_pci_write): Likewise.
3502 (grub_pci_write_word): Likewise.
3503 (grub_pci_write_byte): Likewise.
3505 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
3507 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
3508 (find_framebuf): Scan pci to locate the frame buffer address.
3510 * commands/efi/fixvideo.c: New file.
3512 * commands/efi/loadbios.c: Likewise.
3514 * commands/memrw.c: Likewise.
3516 * util/grub-dumpbios.in: Likewise.
3518 * conf/common.rmk (grub-dumpbios): New utility.
3519 (pkglib_MODULES): New module memrw.mod.
3520 (memrw_mod_SOURCE): New macro.
3521 (memrw_mod_CFLAGS): Likewise.
3522 (memrw_mod_LDFLAGS): Likewise.
3524 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
3526 (loadbios_mod_SOURCE): New macro.
3527 (loadbios_mod_CFLAGS): Likewise.
3528 (loadbios_mod_LDFLAGS): Likewise.
3529 (fixvideo_mod_SOURCE): Likewise.
3530 (fixvideo_mod_CFLAGS): Likewise.
3531 (fixvideo_mod_LDFLAGS): Likewise.
3533 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
3535 (loadbios_mod_SOURCE): New macro.
3536 (loadbios_mod_CFLAGS): Likewise.
3537 (loadbios_mod_LDFLAGS): Likewise.
3538 (fixvideo_mod_SOURCE): Likewise.
3539 (fixvideo_mod_CFLAGS): Likewise.
3540 (fixvideo_mod_LDFLAGS): Likewise.
3542 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
3544 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
3546 2009-04-07 David S. Miller <davem@davemloft.net>
3548 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
3549 support for R_SPARC_OLO10 relocations. Fix compile warning for
3550 R_SPARC_WDISP30 case.
3551 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
3553 2009-04-06 Pavel Roskin <proski@gnu.org>
3555 * include/grub/misc.h (ARRAY_SIZE): New macro.
3556 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
3558 * loader/i386/linux.c (allocate_pages): Use free_pages().
3559 (grub_linux_unload): Don't use free_pages().
3560 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
3561 wrong index. Treat all other modes as text modes.
3562 (grub_cmd_linux): Initialize vid_mode unconditionally to
3563 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
3565 * commands/help.c (print_command_help): Use cmd->prio, not
3566 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
3568 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3572 * parttool/pcpart.c: new file
3573 * commands/parttool.c: likewise
3574 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
3575 (parttool_mod_SOURCES): new variable
3576 (parttool_mod_CFLAGS): likewise
3577 (parttool_mod_LDFLAGS): likewise
3578 (pcpart_mod_SOURCES): likewise
3579 (pcpart_mod_CFLAGS): likewise
3580 (pcpart_mod_LDFLAGS): likewise
3581 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
3582 and parttool/pcpart.c
3583 * conf/i386-efi.rmk: likewise
3584 * conf/i386-ieee1275.rmk: likewise
3585 * conf/i386-pc.rmk: likewise
3586 * conf/powerpc-ieee1275.rmk: likewise
3587 * conf/sparc64-ieee1275.rmk: likewise
3588 * conf/x86_64-ieee1275.rmk: likewise
3590 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3592 Support for mtime and further expandability of dir command
3594 * include/grub/lib/datetime.h: moved to ...
3595 * include/grub/datetime.h: ... moved here and added
3596 declaration of grub_unixtime2datetime. All users updated
3597 * include/grub/fs.h: new syntax for dir and mtime functions in
3599 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
3600 and GRUB_FSHELP_FLAGS_MASK
3601 * commands/ls.c (grub_ls_list_files): Write mtime in long format
3602 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
3603 (grub_ext2_mtime): new function
3604 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
3605 (grub_hfsplus_mtime): new function
3606 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
3607 (GRUB_UFS_ATTR_FILE): likewise
3608 (GRUB_UFS_ATTR_LNK): likewise
3609 (struct grub_ufs_sblock): new fields mtime
3610 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
3612 (grub_ufs_dir): mtime support
3613 (grub_ufs_mtime): new function
3614 * fs/affs.c (grub_affs_dir): use new dir syntax
3615 * fs/afs.c (grub_afs_dir): likewise
3616 * fs/cpio.c (grub_cpio_dir): likewise
3617 * fs/fat.c (grub_fat_find_dir): likewise
3618 * fs/hfs.c (grub_hfs_dir): likewise
3619 * fs/iso9660.c (grub_iso9660_dir): likewise
3620 * fs/jfs.c (grub_jfs_dir): likewise
3621 * fs/minix.c (grub_minix_dir): likewise
3622 * fs/ntfs.c (grub_ntfs_dir): likewise
3623 * fs/reiserfs.c (grub_reiserfs_dir): likewise
3624 * fs/sfs.c (grub_sfs_dir): likewise
3625 * fs/xfs.c (grub_xfs_dir): likewise
3626 * util/hostfs.c (grub_hostfs_dir): likewise
3627 * lib/datetime.c: moved to ...
3628 * normal/datetime.c: ... moved here
3629 (grub_unixtime2datetime): new function
3630 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
3631 * normal/completion.c (iterate_dir): use new dir syntax
3632 * normal/misc.c (grub_normal_print_device_info): tell the
3633 last modification time of a volume
3634 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
3635 * conf/common.rmk: added lib/datetime.c to ls.mod
3636 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
3637 (normal_mod_SOURCES): likewise
3638 (datetime_mod_SOURCES): Removed lib/datetime.c
3639 * conf/i386-efi.rmk: likewise
3640 * conf/i386-ieee1275.rmk: likewise
3641 * conf/i386-pc.rmk: likewise
3642 * conf/powerpc-ieee1275.rmk: likewise
3643 * conf/sparc64-ieee1275.rmk: likewise
3644 * conf/x86_64-efi.rmk: likewise
3646 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3648 Trim trailing spaces in FAT label and support mtools-like labels
3650 * fs/fat.c (grub_fat_iterate_dir): New function based
3651 on grub_fat_find_dir
3652 (grub_fat_find_dir): use grub_fat_iterate_dir
3653 (grub_fat_label): likewise
3655 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3657 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
3659 remove extraneous kernel_elf_HEADERS
3661 2009-04-04 Bean <bean123ch@gnail.com>
3663 * include/grub/util/misc.h: Add dummy function fsync for mingw.
3665 * util/misc.c: Likewise.
3667 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
3669 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
3670 instead of grub_printf.
3672 2009-04-03 Robert Millan <rmh@aybabtu.com>
3674 * loader/i386/linux.c (grub_linux_setup_video): Fill
3675 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
3676 values from `mode info' structure instead of hardcoded
3679 2009-04-01 Pavel Roskin <proski@gnu.org>
3681 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
3683 * genmk.rb: Likewise.
3684 * configure.ac: Likewise.
3686 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
3688 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
3689 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
3691 2009-04-01 David S. Miller <davem@davemloft.net>
3693 * normal/sparc64/setjmp.S: Fix setjmp implementation.
3694 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
3695 (grub_setjmp): Mark with 'returns_twice' attribute.
3696 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
3697 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
3698 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
3700 2009-04-01 Robert Millan <rmh@aybabtu.com>
3702 Reapply fix from 2008-07-28 which was accidentally reverted; also
3703 perform the same fix to a similar check in same function.
3705 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
3706 with the same number are found, just use issue a warning with
3707 grub_dprintf(), as this error has been reported to be non-fatal.
3709 2009-03-31 Pavel Roskin <proski@gnu.org>
3711 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
3712 for cross-compilation.
3714 2009-03-30 Robert Millan <rmh@aybabtu.com>
3716 Fix i386-ieee1275 build.
3718 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
3721 2009-03-30 Pavel Roskin <proski@gnu.org>
3723 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
3724 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
3725 zero-terminated, rely only on the strlen value. Fix comparison
3726 of strings differing in length.
3728 2009-03-30 Robert Millan <rmh@aybabtu.com>
3730 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
3731 checking for abi version. Improve error messages on BIOS to notify
3732 user about `linux16' command.
3734 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3738 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
3739 in case of collision
3740 * disk/scsi.c (grub_scsi_open): free scsi in case of error
3742 2009-03-29 Robert Millan <rmh@aybabtu.com>
3744 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
3745 set `vid_mode' accordingly.
3746 (grub_linux_boot): Process `vid_mode' and set video mode.
3748 2009-03-29 Robert Millan <rmh@aybabtu.com>
3750 * util/grub.d/10_linux.in (linux_entry): New function.
3751 Factorize generation of Linux boot entries.
3753 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
3755 Make the format of Environment Block plain text. The boot loader
3756 part is not tested well yet.
3758 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
3761 (usage): Remove "info" and "clear". Add "unset". Update the
3762 description of "set", as this does not delete variables any
3764 (create_envblk_file): Complete rewrite.
3765 (open_envblk_file): Likewise.
3766 (cmd_info): Removed.
3767 (cmd_list): Likewise.
3768 (cmd_set): Likewise.
3769 (cmd_clear): Likewise.
3770 (list_variables): New function.
3771 (write_envblk): Likewise.
3772 (set_variables): Likewise.
3773 (unset_variables): Likewise.
3774 (main): Complete rewrite.
3776 * commands/loadenv.c (buffer): Removed.
3778 (open_envblk_file): New function.
3779 (read_envblk_file): Complete rewrite.
3780 (grub_cmd_load_env): Likewise.
3781 (grub_cmd_list_env): Likewise.
3782 (struct blocklist): New struct.
3783 (free_blocklists): New function.
3784 (check_blocklists): Likewise.
3785 (write_blocklists): Likewise.
3786 (grub_cmd_save_env): Complete rewrite.
3788 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
3789 a plain text signature.
3790 (GRUB_ENVBLK_MAXLEN): Removed.
3791 (struct grub_envblk): Complete rewrite.
3792 (grub_envblk_find): Removed.
3793 (grub_envblk_insert): Likewise.
3794 (grub_envblk_open): New prototype.
3795 (grub_envblk_set): Likewise.
3796 (grub_envblk_delete): Put const to VALUE.
3797 (grub_envblk_iterate): Put const to NAME and VALUE.
3798 (grub_envblk_close): New prototype.
3799 (grub_envblk_buffer): New inline function.
3800 (grub_envblk_size): Likewise.
3802 * lib/envblk.c: Include grub/mm.h.
3803 (grub_env_find): Removed.
3804 (grub_envblk_open): New function.
3805 (grub_envblk_close): Likewise.
3806 (escaped_value_len): Likewise.
3807 (find_next_line): Likewise.
3808 (grub_envblk_insert): Removed.
3809 (grub_envblk_set): New function.
3810 (grub_envblk_delete): Complete rewrite.
3811 (grub_envblk_iterate): Likewise.
3813 2009-03-28 Robert Millan <rmh@aybabtu.com>
3815 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
3816 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
3817 variables. Use 16-bit loader.
3818 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
3820 * kern/i386/loader.S (grub_linux_boot): Rename to ...
3821 (grub_linux16_boot): ... this. Update all users.
3822 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
3823 (grub_linux_boot): ... this. Update all users.
3825 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
3826 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
3827 commands to `linux16' and `initrd16'.
3828 (GRUB_MOD_FINI(linux)): Rename to ...
3829 (GRUB_MOD_FINI(linux16)): ... this.
3831 2009-03-24 Pavel Roskin <proski@gnu.org>
3833 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
3834 not just for compilation.
3836 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3838 Move multiboot helper out of kernel
3840 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
3841 `loader/i386/multiboot_helper.S'.
3842 * conf/i386-coreboot.rmk: Likewise
3843 * conf/i386-ieee1275.rmk: Likewise
3845 * kern/i386/loader.S: Move multiboot helpers from here...
3846 * loader/i386/multiboot_helper.S: ...moved here
3847 * include/grub/i386/loader.h: Move declarations of multiboot
3848 helpers from here...
3849 * include/grub/i386/multiboot.h: ...moved here
3850 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
3852 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
3854 * kern/env.c (grub_env_context_open): Added an argument to specify
3855 whether a new context inherits exported variables from current
3856 one. This is useful when making a sandbox to interpret a config
3858 All callers updated.
3860 * include/grub/env.h (grub_env_context_open): Updated the prototype.
3862 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
3864 * kern/env.c (grub_env_context_close): Fix memory leaks.
3866 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
3868 * normal/main.c (grub_normal_execute): Added an argument
3869 BATCH to specify if an interactive interface should be provided
3870 after reading a config file.
3871 All callers updated.
3872 (read_command_list): Prevent being executed twice.
3873 (read_fs_list): Likewise.
3875 * include/grub/normal.h (grub_normal_execute): Updated the
3878 2009-03-22 Pavel Roskin <proski@gno.org>
3880 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
3882 * kern/i386/pc/startup.S: Likewise.
3883 * kern/i386/efi/startup.S: Likewise.
3884 * kern/i386/ieee1275/startup.S: Likewise.
3885 * kern/i386/coreboot/startup.S: Likewise.
3886 * kern/x86_64/efi/startup.S: Likewise.
3888 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
3889 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
3890 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
3892 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
3894 Bugfixes in multiboot for bugs uncovered by solaris kernel.
3896 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
3898 Use vaddr of correct segment for entry_point.
3900 2009-03-21 Bean <bean123ch@gmail.com>
3902 * commands/blocklist.c: Add include file <grub/command.h>, remove
3903 <grub/normal.h> and <grub/arg.h>.
3904 (grub_cmd_blocklist): Use the new command interface.
3905 (GRUB_MOD_INIT): Likewise.
3906 (GRUB_MOD_FINI): Likewise.
3907 * commands/boot.c: Likewise.
3908 * commands/cat.c: Likewise.
3909 * commands/cmp.c: Likewise.
3910 * commands/configfile.c: Likewise.
3911 * commands/crc.c: Likewise.
3912 * commands/echo.c: Likewise.
3913 * commands/halt.c: Likewise.
3914 * commands/handler.c: Likewise.
3915 * commands/hdparm.c: Likewise.
3916 * commands/help.c: Likewise.
3917 * commands/hexdump.c: Likewise.
3918 * commands/loadenv.c: Likewise.
3919 * commands/ls.c: Likewise.
3920 * commands/lsmmap.c: Likewise.
3921 * commands/lspci.c: Likewise.
3922 * commands/loadenv.c: Likewise.
3923 * commands/read.c: Likewise.
3924 * commands/reboot.c: Likewise.
3925 * commands/search.c: Likewise.
3926 * commands/sleep.c: Likewise.
3927 * commands/test.c: Likewise.
3928 * commands/usbtest.c: Likewise.
3929 * commands/videotest.c: Likewise.
3930 * commands/i386/cpuid.c: Likewise.
3931 * commands/i386/pc/halt.c: Likewise.
3932 * commands/i386/pc/play.c: Likewise.
3933 * commands/i386/pc/pxecmd.c: Likewise.
3934 * commands/i386/pc/vbeinfo.c: Likewise.
3935 * commands/i386/pc/vbetest.c: Likewise.
3936 * commands/ieee1275/suspend.c: Likewise.
3937 * disk/loopback.c: Likewise.
3938 * font/font_cmd.c: Likewise.
3939 * hello/hello.c: Likewise.
3940 * loader/efi/appleloader.c: Likewise.
3941 * loader/efi/chainloader.c: Likewise.
3942 * loader/i386/bsd.c: Likewise.
3943 * loader/i386/efi/linux.c: Likewise.
3944 * loader/i386/ieee1275/linux.c: Likewise.
3945 * loader/i386/linux.c: Likewise.
3946 * loader/i386/pc/chainloader.c: Likewise.
3947 * loader/i386/pc/linux.c: Likewise.
3948 * loader/powerpc/ieee1275/linux.c: Likewise.
3949 * loader/multiboot_loader.c: Likewise.
3950 * term/gfxterm.c: Likewise.
3951 * term/i386/pc/serial.c: Likewise.
3952 * term/terminfo.c: Likewise.
3954 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
3955 * term/i386/pc/vga.c: Likewise.
3956 * video/readers/jpeg.c: Likewise.
3957 * video/readers/png.c: Likewise.
3958 * video/readers/tga.c: Likewise.
3960 * util/grub-fstest (cmd_loopback): Removed.
3961 (cmd_blocklist): Likewise.
3963 (grub_register_command): Likewise.
3964 (grub_unregister_command): Likewise.
3965 (execute_command): Use grub_command_find to locate command and execute
3968 * include/grub/efi/chainloader.h: Removed.
3969 * loader/efi/chainloader_normal.c: Likewise.
3970 * loader/i386/bsd_normal.c: Likewise.
3971 * loader/i386/pc/chainloader_normal.c: Likewise.
3972 * loader/i386/pc/multiboot_normal.c: Likewise.
3973 * loader/linux_normal.c: Likewise.
3974 * loader/multiboot_loader_normal.c: Likewise.
3975 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
3977 * gencmdlist.sh: Scan new registration command grub_register_extcmd
3978 and grub_register_command_p1.
3980 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
3981 kern/command.c, lib/arg.c and commands/extcmd.c.
3982 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
3983 (minicmd_mod_SOURCES): New variable.
3984 (minicmd_mod_CFLAGS): Likewise.
3985 (minicmd_mod_LDFLAGS): Likewise.
3986 (extcmd_mod_SOURCES): Likewise.
3987 (extcmd_mod_CFLAGS): Likewise.
3988 (extcmd_mod_LDFLAGS): Likewise.
3989 (boot_mod_SOURCES): Removed.
3990 (boot_mod_CFLAGS): Likewise.
3991 (boot_mod_LDFLAGS): Likewise.
3993 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
3995 (kernel_img_HEADERS): Add command.h.
3996 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
3997 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
3999 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
4000 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
4001 remove the corresponding normal mode command.
4002 (normal_mod_SOURCES): Remove normal/arg.c.
4003 * conf/i386-coreboot.rmk: Likewise.
4004 * conf/i386-efi.rmk: Likewise.
4005 * conf/i386-ieee1275.rmk: Likewise.
4006 * conf/powerpc-ieee1275.rmk: Likewise.
4007 * conf/x86_64-efi.rmk: Likewise.
4009 * include/grub/arg.h: Move from here ...
4010 * include/grub/lib/arg.h: ... to here.
4012 * normal/arg.c: Move from here ...
4013 * lib/arg.c: ... to here.
4015 * commands/extcmd.c: New file.
4016 * commands/minicmd.c: Likewise.
4017 * include/grub/command.h: Likewise.
4018 * include/grub/extcmd.h: Likewise.
4019 * kern/command.c: Likewise.
4020 * kern/corecmd.c: Likewise.
4022 * kern/list.c (grub_list_iterate): Return int instead of void.
4023 (grub_list_insert): New function.
4024 (grub_prio_list_insert): Likewise.
4026 * kern/rescue.c (grub_rescue_command): Removed.
4027 (grub_rescue_command_list): Likewise.
4028 (grub_rescue_register_command): Likewise.
4029 (grub_rescue_unregister_command): Likewise.
4030 (grub_rescue_cmd_boot): Move to minicmd.c
4031 (grub_rescue_cmd_help): Likewise.
4032 (grub_rescue_cmd_info): Likewise.
4033 (grub_rescue_cmd_boot): Likewise.
4034 (grub_rescue_cmd_testload): Likewise.
4035 (grub_rescue_cmd_dump): Likewise.
4036 (grub_rescue_cmd_rmmod): Likewise.
4037 (grub_rescue_cmd_lsmod): Likewise.
4038 (grub_rescue_cmd_exit): Likewise.
4039 (grub_rescue_print_devices): Moved to corecmd.c.
4040 (grub_rescue_print_files): Likewise.
4041 (grub_rescue_cmd_ls): Likewise.
4042 (grub_rescue_cmd_insmod): Likewise.
4043 (grub_rescue_cmd_set): Likewise.
4044 (grub_rescue_cmd_unset): Likewise.
4045 (attempt_normal_mode): Use grub_command_find to get normal module.
4046 (grub_enter_rescue_mode): Use grub_register_core_commands to register
4047 commands, remove grub_rescue_register_command calls.
4049 * normal/command.c (grub_register_command): Removed.
4050 (grub_unregister_command): Likewise.
4051 (grub_command_find): Likewise.
4052 (grub_iterate_commands): Likewise.
4053 (rescue_command): Likewise.
4054 (export_command): Moved to corecmd.c.
4055 (set_command): Removed.
4056 (unset_command): Likewise.
4057 (insmod_command): Likewise.
4058 (rmmod_command): Likewise.
4059 (lsmod_command): Likewise.
4060 (grub_command_init): Likewise.
4062 * normal/completion.c (iterate_command): Use cmd->prio to check for
4064 (complete_arguments): Use grub_extcmd_t structure to find options.
4065 (grub_normal_do_completion): Change function grub_iterate_commands to
4066 grub_command_iterate.
4068 * normal/execute.c (grub_script_execute_cmd): No need to parse
4071 * normal/main.c (grub_dyncmd_dispatcher): New function.
4072 (read_command_list): Register unload commands as dyncmd.
4073 (grub_cmd_normal): Use new command interface, register rescue,
4074 unregister normal at entry, register normal, unregister rescue at exit.
4076 * include/grub/list.h (grub_list_test_t): New type.
4077 (grub_list_iterate): Return int instead of void.
4078 (grub_list_insert): New function.
4079 (GRUB_AS_NAMED_LIST_P): New macro.
4080 (GRUB_AS_PRIO_LIST): Likewise.
4081 (GRUB_AS_PRIO_LIST_P): Likewise.
4082 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
4083 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
4084 (grub_prio_list): New structure.
4085 (grub_prio_list_insert): New function.
4086 (grub_prio_list_remove): New inline function.
4088 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
4089 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
4090 (GRUB_COMMAND_FLAG_MENU): Likewise.
4091 (GRUB_COMMAND_FLAG_BOTH): Likewise.
4092 (GRUB_COMMAND_FLAG_TITLE): Likewise.
4093 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
4094 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
4095 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
4096 (grub_command): Likewise.
4097 (grub_register_command): Likewise.
4098 (grub_command_find): Likewise.
4099 (grub_iterate_commands): Likewise.
4100 (grub_command_init): Likewise.
4101 (grub_arg_parse): Likewise.
4102 (grub_arg_show_help): Likewise.
4104 * include/grub/rescue.h (grub_rescue_register_command): Removed.
4105 (grub_rescue_unregister_command): Likewise.
4107 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
4108 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
4109 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
4111 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
4112 grub_rescue_cmd_initrd.
4113 * include/grub/i386/loader.h: Likewise.
4114 * include/grub/x86_64/loader.h: Likewise.
4116 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
4118 2009-03-21 Bean <bean123ch@gmail.com>
4120 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
4121 instead of stat in mingw environment.
4123 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
4125 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
4127 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
4130 2009-03-21 Bean <bean123ch@gmail.com>
4132 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
4135 2009-03-18 Michel Dänzer <michel@daenzer.net>
4137 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
4138 checking inode flags for EXT4_EXTENTS_FLAG.
4140 2009-03-18 Robert Millan <rmh@aybabtu.com>
4142 * loader/i386/linux.c: Include `<grub/video.h>' and
4143 `<grub/i386/pc/vbe.h>'..
4144 (grub_linux_setup_video): New function. Loosely based on the EFI one.
4145 (grub_linux32_boot): Attempt to configure video settings with
4146 grub_linux_setup_video().
4147 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
4148 to avoid grub_console_fini() which would step out of graphical mode
4151 2009-03-14 Robert Millan <rmh@aybabtu.com>
4153 Fix build on powerpc.
4154 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
4156 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
4158 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
4159 background image command.
4161 2009-03-12 Colin D Bennett <colin@gibibit.com>
4163 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
4164 (grub_gfxterm_putchar): Extract pairs of identical calls to
4165 draw_cursor out of conditional blocks.
4167 2009-03-11 Pavel Roskin <proski@gnu.org>
4169 * fs/hfs.c (grub_hfs_strncasecmp): New function.
4170 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
4172 2009-03-11 Robert Millan <rmh@aybabtu.com>
4174 * loader/i386/multiboot_elfxx.c
4175 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
4177 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
4179 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
4182 2009-03-11 Robert Millan <rmh@aybabtu.com>
4184 * loader/i386/multiboot.c (code_size): New variable.
4185 (grub_multiboot): Define offsets by adding to `code_size' rather
4186 than subtracting from `grub_multiboot_payload_size'. Provide
4187 4-byte alignment to MBI and others by increasing
4188 `boot_loader_name_length' appropriately.
4190 * loader/i386/multiboot_elfxx.c
4191 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
4193 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
4195 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
4198 2009-03-08 Robert Millan <rmh@aybabtu.com>
4200 Make loader/i386/linux.c usable on i386-pc again.
4202 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
4204 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
4207 2009-03-07 Bean <bean123ch@gmail.com>
4209 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
4212 2009-03-06 Robert Millan <rmh@aybabtu.com>
4214 Fix display issue on terminals with screen size other than 80x25
4215 (e.g. gfxterm with resolution higher than 640x480).
4217 * normal/main.c (grub_normal_init_page): Display title text in a
4218 position relative to the center of the terminal instead of relying
4219 on a hardcoded offset.
4221 2009-03-04 Robert Millan <rmh@aybabtu.com>
4223 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
4226 * Makefile.in (host_kernel): New variable.
4227 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
4228 scripts instead of just the windows one.
4229 * configure.ac: Initialize and AC_SUBST `host_kernel'.
4231 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
4233 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
4235 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
4236 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4237 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
4238 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4239 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4240 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4242 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
4244 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
4245 or if there's no space for the disk label and print the partition number on a
4248 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
4250 * util/misc.c: Include <time.h>.
4251 (grub_millisleep): New function.
4253 2009-03-04 Bean <bean123ch@gmail.com>
4255 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
4256 another option -mno-red-zone.
4258 * commands/handler.c: Change module description.
4260 * kern/handler.c: Add missing space at the end of description line.
4262 * kern/list.c: Likewise.
4264 2009-03-03 Robert Millan <rmh@aybabtu.com>
4266 Move more components to the relocation area, and fix mbi pointer
4267 handling to use the destination rather than the origin (thanks to
4268 Vladimir Serbinenko for spotting).
4270 * loader/i386/multiboot.c (mbi_dest): New variable.
4271 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
4272 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
4275 2009-03-01 Bean <bean123ch@gmail.com>
4277 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
4278 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
4279 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
4280 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
4282 * loader/i386/efi/linux.c (acpi_guid): New variable.
4283 (acpi_guid): Likewise.
4284 (EBDA_SEG_ADDR): New constant.
4285 (LOW_MEM_ADDR): Likewise.
4286 (FAKE_EBDA_SEG): Likewise.
4287 (fake_bios_data): New function.
4288 (grub_linux_boot): Call fake_bios_data.
4290 2009-03-01 Bean <bean123ch@gmail.com>
4292 * commands/terminal.c: Removed.
4294 * commands/handler.c: New file.
4296 * include/grub/list.h: Likewise.
4298 * include/grub/handler.h: Likewise.
4300 * kern/list.c: Likewise.
4302 * kern/handler.c: Likewise.
4304 * kern/term.h: Include header file <grub/handler.h>.
4305 (grub_term_input): Move next field to the beginning.
4306 (grub_term_output): Likewise.
4307 (grub_term_input_class): New variable.
4308 (grub_term_output_class): Likewise.
4309 (grub_term_register_input): Changed to inline function.
4310 (grub_term_register_output): Likewise.
4311 (grub_term_unregister_input): Likewise.
4312 (grub_term_unregister_output): Likewise.
4313 (grub_term_set_current_input): Likewise.
4314 (grub_term_set_current_output): Likewise.
4315 (grub_term_get_current_input): Likewise.
4316 (grub_term_get_current_output): Likewise.
4317 (grub_term_iterate_input): Removed.
4318 (grub_term_iterate_output): Likewise.
4320 * kern/term.c (grub_term_list_input): Removed.
4321 (grub_term_list_output): Likewise.
4322 (grub_term_input_class): New variable.
4323 (grub_term_output_class): Likewise.
4324 (grub_cur_term_input): Change variable as macro.
4325 (grub_cur_term_output): Likewise.
4326 (grub_term_register_input): Removed.
4327 (grub_term_register_output): Likewise.
4328 (grub_term_unregister_input): Likewise.
4329 (grub_term_unregister_output): Likewise.
4330 (grub_term_set_current_input): Likewise.
4331 (grub_term_set_current_output): Likewise.
4332 (grub_term_iterate_input): Likewise.
4333 (grub_term_iterate_output): Likewise.
4334 (grub_term_get_current_input): Likewise.
4335 (grub_term_get_current_output): Likewise.
4337 * util/grub-editenv.c: Include header file <grub/handler.h>.
4338 (grub_term_get_current_input): Removed.
4339 (grub_term_get_current_output): Likewise.
4340 (grub_term_input_class): New variable.
4341 (grub_term_output_class): Likewise.
4343 * util/grub-fstest.c (grub_term_get_current_input): Removed.
4344 (grub_term_get_current_output): Likewise.
4345 (grub_term_input_class): New variable.
4346 (grub_term_output_class): Likewise.
4348 * util/grub-probe.c (grub_term_get_current_input): Removed.
4349 (grub_term_get_current_output): Likewise.
4350 (grub_term_input_class): New variable.
4351 (grub_term_output_class): Likewise.
4353 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
4354 (grub_term_get_current_output): Likewise.
4355 (grub_term_input_class): New variable.
4356 (grub_term_output_class): Likewise.
4358 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
4359 (terminal_mod_SOURCES): Likewise.
4360 (terminal_mod_CFLAGS): Likewise.
4361 (terminal_mod_LDFLAGS): Likewise.
4363 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
4365 (kernel_img_SOURCES): Add list.c and handler.c.
4366 (kernel_img_HEADERS): Add list.h and handler.h.
4368 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
4370 (kernel_mod_SOURCES): Add list.c and handler.c.
4371 (kernel_mod_HEADERS): Add list.h and handler.h.
4373 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
4375 (kernel_elf_SOURCES): Add list.c and handler.c.
4376 (kernel_elf_HEADERS): Add list.h and handler.h.
4378 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
4380 (kernel_elf_SOURCES): Add list.c and handler.c.
4381 (kernel_elf_HEADERS): Add list.h and handler.h.
4383 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
4385 (kernel_mod_SOURCES): Add list.c and handler.c.
4386 (kernel_mod_HEADERS): Add list.h and handler.h.
4388 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
4390 (kernel_elf_SOURCES): Add list.c and handler.c.
4391 (kernel_elf_HEADERS): Add list.h and handler.h.
4393 2009-02-27 Robert Millan <rmh@aybabtu.com>
4395 Factorize elf32 / elf64 code in Multiboot loader. This will
4396 prevent it from getting out of sync again.
4398 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
4399 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
4400 grub_multiboot_load_elf64): Move from here ...
4401 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
4402 grub_multiboot_load_elf): ... to here (new file).
4404 2009-02-27 Robert Millan <rmh@aybabtu.com>
4406 * util/grub.d/10_linux.in: Rename "single-user mode" to
4409 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4411 Don't leak in SCSI code.
4412 * disk/scsi.c (grub_scsi_close): free `scsi'.
4414 2009-02-27 Robert Millan <rmh@aybabtu.com>
4416 * loader/i386/pc/multiboot.c: Move from here ...
4417 * loader/i386/multiboot.c: ... to here. Update all users.
4419 2009-02-27 Robert Millan <rmh@aybabtu.com>
4421 Patch from Alexandre Bique <bique.alexandre@gmail.com>
4422 * util/i386/pc/grub-setup.c (setup): Fix directory path.
4424 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
4426 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
4429 2009-02-27 Robert Millan <rmh@aybabtu.com>
4431 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
4432 `0x' qualifier as 0 when base is specified as parameter).
4434 2009-02-24 Bean <bean123ch@gmail.com>
4436 * configure.ac: Check for -mcmodel=large in x86_64 target.
4438 * include/grub/efi/api.h (efi_call_10): New macro.
4439 (efi_wrap_10): New function.
4441 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
4442 (GRUB_PE32_REL_BASED_HIGH): Likewise.
4443 (GRUB_PE32_REL_BASED_LOW): Likewise.
4444 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
4445 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
4446 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
4447 (GRUB_PE32_REL_BASED_SECTION): Likewise.
4448 (GRUB_PE32_REL_BASED_REL): Likewise.
4449 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
4450 (GRUB_PE32_REL_BASED_DIR64): Likewise.
4451 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
4453 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
4456 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
4457 (efi_wrap_10): New function.
4459 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
4461 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
4462 MB/MBP model (NV chipset).
4463 (devdata_devs): Add devpath_5 to the list.
4465 * load/i386/efi/linux.c (video_base): Remove variable.
4466 (RGB_MASK): New macro.
4467 (RGB_MAGIC): Likewise.
4468 (LINE_MIN): Likewise.
4469 (LINE_MAX): Likewise.
4470 (FBTEST_STEP): Likewise.
4471 (FBTEST_COUNT): Likewise.
4472 (fb_list): New variable.
4473 (grub_find_video_card): Remove function.
4474 (find_framebuf): New function.
4475 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
4478 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
4481 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
4483 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
4485 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
4488 2009-02-22 Robert Millan <rmh@aybabtu.com>
4490 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
4491 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
4492 in our relocation, instead of using it directly from heap. Also
4493 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
4495 2009-02-21 Robert Millan <rmh@aybabtu.com>
4497 Implement USB keyboard support (based on patch by Marco Gerards)
4499 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
4500 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
4501 (usb_keyboard_mod_LDFLAGS): New variables.
4503 * term/usb_keyboard.c: New file.
4505 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
4507 Corrected wrong declaration
4509 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
4511 2009-02-14 Christian Franke <franke@computer.org>
4513 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
4514 (grub_lspci_iter): Print class code and programming interface byte.
4516 2009-02-14 Christian Franke <franke@computer.org>
4518 * gendistlist.sh: Ignore `.svn' directories.
4520 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
4522 * fs/fat.c: Add 2009 to Copyright line.
4524 2009-02-14 Christian Franke <franke@computer.org>
4526 * commands/hdparm.c: New file. Provides `hdparm' command
4527 which sends ATA commands via grub_disk_ata_pass_through ().
4529 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
4531 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
4532 and <grub/cpu/io.h> to include/grub/ata.h.
4533 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
4534 (GRUB_CDROM_SECTOR_SIZE): Remove.
4535 (GRUB_ATA_*): Move to include/grub/ata.h.
4536 (GRUB_ATAPI_*): Likewise.
4537 (enum grub_ata_commands): Likewise.
4538 (enum grub_ata_timeout_milliseconds): Likewise.
4539 (struct grub_ata_device): Likewise.
4540 (grub_ata_regset): Likewise.
4541 (grub_ata_regget): Likewise.
4542 (grub_ata_regset2): Likewise.
4543 (grub_ata_regget2): Likewise.
4544 (grub_ata_check_ready): Likewise.
4545 (grub_ata_wait_not_busy): Remove static, exported in
4547 (grub_ata_wait_drq): Likewise.
4548 (grub_ata_pio_read): Likewise.
4550 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
4551 function for hdparm.mod.
4553 * include/grub/ata.h: New file, contains declarations from
4555 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
4557 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
4558 (grub_disk_ata_pass_through): New exported variable.
4560 * kern/disk.c (grub_disk_ata_pass_through): New variable.
4562 2009-02-13 Colin D Bennett <colin@gibibit.com>
4564 Support multiple fallback entries, and provide an API to support
4565 executing default+fallback menu entries. Renamed the `terminal' menu
4568 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
4569 variable declaration.
4570 (grub_menu_execute_callback): New structure declaration.
4571 (grub_menu_execute_callback_t): New typedef.
4572 (grub_menu_execute_with_fallback): New function declaration.
4573 (grub_menu_get_entry): Likewise.
4574 (grub_menu_get_timeout): Likewise.
4575 (grub_menu_set_timeout): Likewise.
4577 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
4579 * normal/menu.c (grub_wait_after_message): Moved to
4580 `normal/menu_text.c'.
4581 (draw_border): Likewise.
4582 (print_message): Likewise.
4583 (print_entry): Likewise.
4584 (print_entries): Likewise.
4585 (grub_menu_init_page): Likewise.
4586 (get_entry_number): Likewise.
4587 (print_timeout): Likewise.
4588 (run_menu): Likewise.
4589 (grub_menu_execute_entry): Likewise.
4590 (show_text_menu): Likewise.
4591 (get_and_remove_first_entry_number): New function.
4592 (grub_menu_execute_with_fallback): Likewise.
4593 (get_entry): Renamed to ...
4594 (grub_menu_get_entry): .. this and made it global.
4595 (get_timeout): Renamed to ...
4596 (grub_menu_get_timeout): ... this and made it global.
4597 (set_timeout): Renamed to ...
4598 (grub_menu_set_timeout): ... this and made it global.
4599 (grub_normal_terminal_menu_viewer): Renamed to ...
4600 (grub_normal_text_menu_viewer): ... this.
4602 * normal/menu_text.c: New file. Extracted text-menu-specific code
4605 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
4606 (normal_mod_SOURCES): Likewise.
4608 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
4609 (normal_mod_SOURCES): Likewise.
4611 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4612 (normal_mod_SOURCES): Likewise.
4614 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
4615 (normal_mod_SOURCES): Likewise.
4617 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4618 (normal_mod_SOURCES): Likewise.
4620 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4621 (normal_mod_SOURCES): Likewise.
4623 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4624 (normal_mod_SOURCES): Likewise.
4626 2009-02-11 Robert Millan <rmh@aybabtu.com>
4628 * util/grub.d/00_header.in: Update old reference to `font' command.
4630 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
4632 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
4634 Based on patch from Javier MartÃn.
4636 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
4638 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
4639 to avoid false positives with FAT.
4640 (grub_fstest_SOURCES): Likewise.
4641 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
4642 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4644 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
4645 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4646 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4648 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
4650 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
4651 bpb.version_specific.fat12_or_fat16.fstype and
4652 bpb.version_specific.fat32.fstype.
4654 2009-02-08 Robert Millan <rmh@aybabtu.com>
4656 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
4658 2009-02-08 Robert Millan <rmh@aybabtu.com>
4660 * Makefile.in (host_os, host_cpu): New variables.
4661 (target_os): Remove. Update all users.
4663 2009-02-08 Marco Gerards <marco@gnu.org>
4665 * Makefile.in (enable_grub_emu_usb): New variable.
4666 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
4667 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
4668 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
4669 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
4670 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
4671 `usbtest.mod' and `usbms.mod'.
4672 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
4673 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
4674 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
4675 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
4676 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
4679 * disk/usbms.c: New file.
4681 * include/grub/usb.h: Likewise.
4683 * include/grub/usbtrans.h: Likewise.
4685 * include/grub/usbdesc.h: Likewise.
4687 * bus/usb/usbtrans.c: Likewise.
4689 * bus/usb/ohci.c: Likewise.
4691 * bus/usb/uhci.c: Likewise.
4693 * bus/usb/usbhub.c: Likewise.
4695 * bus/usb/usb.c: Likewise.
4697 * commands/usbtest.c: Likewise.
4699 * util/usb.c: Likewise.
4701 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
4703 * configure.ac: Test for libusb presence.
4705 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
4707 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
4709 * kern/mm.c: Add more comments.
4711 2009-02-08 Robert Millan <rmh@aybabtu.com>
4713 Patch from Javier MartÃn.
4714 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
4715 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
4717 2009-02-08 Robert Millan <rmh@aybabtu.com>
4719 * fs/cpio.c: Split tar functionality to ...
4720 * fs/tar.c: ... here (new file). Update all users.
4722 2009-02-07 Robert Millan <rmh@aybabtu.com>
4724 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
4725 backward-incompatible features.
4727 Based on patch from Javier MartÃn, with some adjustments.
4729 2009-02-07 Michael Scherer <misc@mandriva.org>
4731 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
4733 2009-02-07 Robert Millan <rmh@aybabtu.com>
4735 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
4736 position of `disk/lvm.c' to ensure grub_init_all() always picks it
4737 after the RAID stuff.
4739 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
4741 Fixes problem when running vbetest command as reported by
4742 Vladimir Serbinenko <phcoder@gmail.com>.
4744 * (grub_vbe_set_video_mode): Fixed problem with text modes.
4746 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
4748 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
4749 /dev/md/NpN style mdraid devices.
4751 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
4753 * util/unifont2pff.rb: Remove.
4755 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
4757 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
4760 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
4762 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
4763 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
4764 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4765 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
4766 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4767 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4768 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4770 2009-02-02 Christian Franke <franke@computer.org>
4772 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
4774 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
4776 * INSTALL: Note that we now require at least autoconf 2.59 and
4777 that LZO is optional.
4779 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
4781 Base on patch on bug #24154 created by Tomas Tintera
4784 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
4786 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
4788 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
4789 <bero@arklinux.org>.
4791 * normal/parser.y (script_init): Add missing semicolon.
4793 2009-01-31 Colin D Bennett <colin@gibibit.com>
4795 * normal/main.c: Add include to grub/menu_viewer.h.
4796 (free_menu_entry_classes): Added.
4797 (grub_normal_menu_addentry): Added class property handling.
4798 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
4799 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
4801 * normal/menu_viewer.c: New file.
4803 * normal/menu.c (run_menu_entry): Renamed to ...
4804 (grub_menu_execute_entry): ... this and made it as global.
4805 (grub_menu_run): Renamed to ...
4806 (show_text_menu): ... this and made it local.
4807 (show_text_menu): Adapt to new function names.
4808 (grub_normal_terminal_menu_viewer): New global variable.
4810 * include/grub/menu.h: New file.
4812 * include/grub/menu_viewer.h: New file.
4814 * include/grub/normal.h: Added include to grub/menu.h.
4815 (grub_menu_entry): Moved to include/grub/menu.h.
4816 (grub_menu_entry_t): Likewise.
4817 (grub_menu): Likewise.
4818 (grub_menu_t): Likewise.
4819 (grub_normal_terminal_menu_viewer): Added.
4820 (grub_menu_execute_entry): Likewise.
4821 (grub_menu_run): Removed.
4823 * DISTLIST: Added include/grub/menu.h.
4824 Added include/grub/menu_viewer.h.
4825 Added normal/menu_viewer.c.
4827 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
4829 * normal/execute.c (grub_script_execute_menuentry): Changed to use
4830 arglist for menutitle arguments.
4832 * normal/main.c (grub_normal_menu_addentry): Likewise.
4834 * normal/parser.y (menuentry): Likewise.
4836 * normal/script.c (grub_script_create_cmdmenu): Likewise.
4838 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
4839 (grub_script_create_cmdmenu): Likewise.
4841 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
4843 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
4846 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
4848 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
4850 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
4852 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
4854 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
4856 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
4858 2009-01-30 Christian Franke <franke@computer.org>
4860 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
4861 in option help text.
4863 2009-01-27 Pavel Roskin <proski@gnu.org>
4865 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
4867 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
4869 * commands/lsmmap.c: Add include to grub/machine/memory.h.
4871 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
4873 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
4874 unregister function.
4876 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
4878 * disk/scsi.c (grub_scsi_read): Fix sign problem.
4880 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
4882 * util/grub-mkfont.c (usage): Fix typo.
4884 * util/elf/grub-mkimage.c (load_modules): Fix warning.
4886 2009-01-26 Daniel Mierswa <impulze@impulze.org>
4888 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
4890 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
4892 * kern/misc.c (grub_strcasecmp): New function.
4893 (grub_strcasecmp): Use grub_size_t instead of int for length.
4895 * include/grub/misc.h: Update function prototypes.
4897 2009-01-26 Robert Millan <rmh@aybabtu.com>
4899 * configure.ac: Fix cross-compilation check.
4901 2009-01-22 Christian Franke <franke@computer.org>
4903 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
4904 (precision) digit string. Allow `.format2' without `format1' (width).
4905 Limit input chars for `%s' output to `format2' if specified. This is
4906 compatible with standard printf ().
4908 2009-01-22 Christian Franke <franke@computer.org>
4910 * disk/ata.c (grub_ata_wait_status): Replace by ...
4911 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
4912 other status bits may be invalid while BSY is asserted.
4913 (grub_ata_check_ready): New function.
4914 (grub_ata_cmd): Removed.
4915 (grub_ata_wait_drq): New function.
4916 (grub_ata_strncpy): Remove inline.
4917 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
4918 and error check now done by grub_ata_wait_drq ().
4919 (grub_ata_pio_write): Likewise.
4920 (grub_atapi_identify): Set DEV before check for !BSY. Use
4921 grub_ata_wait_drq () to wait for data.
4922 (grub_ata_device_initialize): Add status register check to
4923 detect missing SATA slave devices. Add debug messages.
4924 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
4925 (grub_atapi_packet): Set DEV before check for !BSY. Replace
4926 transfer loop by grub_ata_pio_write ().
4927 (grub_ata_identify): Set DEV before check for !BSY. Use
4928 grub_ata_wait_drq () to wait for data.
4929 (grub_ata_setaddress): Set DEV before check for !BSY.
4930 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
4931 read/write in one loop. Fix invalid command on write. Fix incomplete
4932 command on (size % batch) == 0. Add missing error check after write of
4933 last block. Add debug messages.
4934 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
4936 2009-01-19 Christian Franke <franke@computer.org>
4938 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
4939 (GRUB_ATAPI_IREASON_*): Likewise.
4940 (grub_ata_pio_write): Fix timeout error return.
4941 (grub_atapi_identify): Add grub_ata_wait () after cmd.
4942 (grub_atapi_wait_drq): New function.
4943 (grub_atapi_packet): New parameter `size'.
4944 Use grub_atapi_wait_drq () and direct write instead of
4945 grub_ata_pio_write ().
4946 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
4947 reads the number of bytes requested by the device for each DRQ
4949 (grub_atapi_write): Remove old implementation, return not
4950 implemented instead.
4952 2009-01-19 Christian Franke <franke@computer.org>
4954 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
4955 of 512 to calculate data size.
4956 (grub_scsi_read12): Likewise.
4957 (grub_scsi_write10): Likewise.
4958 (grub_scsi_write12): Likewise.
4959 (grub_scsi_read): Adjust size according to blocksize.
4960 Add checks for invalid blocksize and unaligned transfer.
4962 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
4964 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
4966 * term/gfxterm.c (write_char): Fix background rendering for wide
4969 2009-01-19 Robert Millan <rmh@aybabtu.com>
4971 * config.guess: Update to latest version from config git.
4972 * config.sub: Likewise.
4974 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
4976 * Makefile.in: Change font compilation to use new grub-mkfont instead
4979 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
4980 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
4981 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
4982 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
4983 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
4984 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
4985 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
4986 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
4987 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
4989 2009-01-16 Christian Franke <franke@computer.org>
4991 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
4992 (enum grub_ata_timeout_milliseconds): New enum.
4993 (grub_ata_wait_status): Add parameter milliseconds.
4994 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
4995 recovery from timed-out commands.
4996 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
4997 return grub_errno instead of REG_ERROR.
4998 (grub_ata_pio_write): Add parameter milliseconds.
4999 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
5000 Pass milliseconds to grub_ata_wait_status () and
5001 grub_ata_pio_read ().
5002 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
5003 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
5004 grub_ata_wait_status (). Fix IDENTIFY timeout check.
5005 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
5006 It is not suitable for device detection, because DEV bit is ignored,
5007 the command may run too long, and not all devices set the signature
5009 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
5010 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
5011 Fix device selection, DEV bit must be set first to address the registers
5012 of the correct device.
5013 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
5014 grub_ata_pio_read/write ().
5015 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
5016 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
5018 2009-01-13 Carles Pina i Estany <carles@pina.cat>
5020 * util/grub-editenv.c (main): Use fseeko(), not fseek().
5022 2009-01-13 Bean <bean123ch@gmail.com>
5024 * util/grub-mkfont.c (write_font): forget to remove some debug code.
5026 2009-01-13 Bean <bean123ch@gmail.com>
5028 * Makefile.in: (enable_grub_mkfont): New variable.
5029 (freetype_cflags): Likewise.
5030 (freetype_libs): Likewise.
5032 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
5033 (grub_mkfont_SOURCES): New variable.
5034 (grub_mkfont_CFLAGS): Likewise.
5035 (grub_mkfont_LDFLAGS): Likewise.
5037 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
5038 library if `--enable-grub-mkfont' is requested.
5039 (enable_grub_mkfont): New variable.
5040 (freetype_cflags): Likewise.
5041 (freetype_libs): Likewise.
5043 * util/grub-mkfont.c: New file.
5045 2009-01-12 Christian Franke <franke@computer.org>
5047 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
5048 mode check. Fix setting of compat_use[].
5050 2009-01-10 Robert Millan <rmh@aybabtu.com>
5052 Update a few copyright years which we forgot to do in 2008 (only for
5053 files whose changes made in 2008 were copyright-significant)
5055 * Makefile.in: Add 2008 to Copyright line.
5056 * disk/ieee1275/ofdisk.c: Likewise.
5057 * disk/efi/efidisk.c: Likewise.
5058 * kern/dl.c: Likewise.
5059 * kern/sparc64/ieee1275/init.c: Likewise.
5060 * kern/mm.c: Likewise.
5061 * kern/efi/mm.c: Likewise.
5062 * boot/i386/pc/boot.S: Likewise.
5063 * genfslist.sh: Likewise.
5064 * fs/iso9660.c: Likewise.
5065 * fs/hfs.c: Likewise.
5066 * fs/jfs.c: Likewise.
5067 * fs/minix.c: Likewise.
5068 * fs/ufs.c: Likewise.
5069 * gensymlist.sh.in: Likewise.
5070 * genkernsyms.sh.in: Likewise.
5071 * include/grub/misc.h: Likewise.
5072 * include/grub/types.h: Likewise.
5073 * include/grub/symbol.h: Likewise.
5074 * include/grub/elf.h: Likewise.
5075 * include/grub/kernel.h: Likewise.
5076 * include/grub/disk.h: Likewise.
5077 * include/grub/dl.h: Likewise.
5078 * include/grub/i386/linux.h: Likewise.
5079 * include/grub/i386/pc/biosdisk.h: Likewise.
5080 * include/grub/efi/api.h: Likewise.
5081 * include/grub/efi/pe32.h: Likewise.
5082 * include/grub/util/misc.h: Likewise.
5083 * normal/execute.c: Likewise.
5084 * normal/arg.c: Likewise.
5085 * normal/completion.c: Likewise.
5086 * normal/lexer.c: Likewise.
5087 * normal/parser.y: Likewise.
5088 * normal/misc.c: Likewise.
5089 * commands/i386/pc/vbeinfo.c: Likewise.
5090 * commands/hexdump.c: Likewise.
5091 * commands/terminal.c: Likewise.
5092 * commands/ls.c: Likewise.
5093 * commands/help.c: Likewise.
5094 * partmap/pc.c: Likewise.
5095 * loader/efi/chainloader.c: Likewise.
5096 * loader/multiboot_loader.c: Likewise.
5097 * loader/i386/pc/multiboot2.c: Likewise.
5098 * term/efi/console.c: Likewise.
5099 * term/i386/pc/serial.c: Likewise.
5100 * util/lvm.c: Likewise.
5101 * util/console.c: Likewise.
5102 * util/i386/efi/grub-mkimage.c: Likewise.
5103 * util/raid.c: Likewise.
5105 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
5107 * commands/videotest.c: Removed include to grub/machine/memory.h.
5109 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
5110 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
5111 (video_mod_SOURCES): Removed.
5112 (video_mod_CFLAGS): Likewise.
5113 (video_mod_LDFLAGS): Likewise.
5114 (gfxterm_mod_SOURCES): Likewise.
5115 (gfxterm_mod_CFLAGS): Likewise.
5116 (gfxterm_mod_LDFLAGS): Likewise.
5117 (videotest_mod_SOURCES): Likewise.
5118 (videotest_mod_CFLAGS): Likewise.
5119 (videotest_mod_LDFLAGS): Likewise.
5120 (bitmap_mod_SOURCES): Likewise.
5121 (bitmap_mod_CFLAGS): Likewise.
5122 (bitmap_mod_LDFLAGS): Likewise.
5123 (tga_mod_SOURCES): Likewise.
5124 (tga_mod_CFLAGS): Likewise.
5125 (tga_mod_LDFLAGS): Likewise.
5126 (jpeg_mod_SOURCES): Likewise.
5127 (jpeg_mod_CFLAGS): Likewise.
5128 (jpeg_mod_LDFLAGS): Likewise.
5129 (png_mod_SOURCES): Likewise.
5130 (png_mod_CFLAGS): Likewise.
5131 (png_mod_LDFLAGS): Likewise.
5133 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
5134 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
5135 (video_mod_SOURCES): Added.
5136 (video_mod_CFLAGS): Likewise.
5137 (video_mod_LDFLAGS): Likewise.
5138 (videotest_mod_SOURCES): Likewise.
5139 (videotest_mod_CFLAGS): Likewise.
5140 (videotest_mod_LDFLAGS): Likewise.
5141 (bitmap_mod_SOURCES): Likewise.
5142 (bitmap_mod_CFLAGS): Likewise.
5143 (bitmap_mod_LDFLAGS): Likewise.
5144 (tga_mod_SOURCES): Likewise.
5145 (tga_mod_CFLAGS): Likewise.
5146 (tga_mod_LDFLAGS): Likewise.
5147 (jpeg_mod_SOURCES): Likewise.
5148 (jpeg_mod_CFLAGS): Likewise.
5149 (jpeg_mod_LDFLAGS): Likewise.
5150 (png_mod_SOURCES): Likewise.
5151 (png_mod_CFLAGS): Likewise.
5152 (png_mod_LDFLAGS): Likewise.
5153 (gfxterm_mod_SOURCES): Likewise.
5154 (gfxterm_mod_CFLAGS): Likewise.
5155 (gfxterm_mod_LDFLAGS): Likewise.
5157 * term/gfxterm.c: Removed include to grub/machine/memory.h,
5158 grub/machine/console.h.
5160 2009-01-04 Jerone Young <jerone@gmail.com>
5162 Make on screen instructions clearer
5164 Based on patch created by Jidanni <jidanni@jidanni.org>
5166 * normal/menu.c: print clearer instructions on the screen
5168 2009-01-02 Colin D Bennett <colin@gibibit.com>
5172 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
5173 build system and fixed gfxterm.c to work with different sized fonts.
5175 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
5177 * configure: Re-generated.
5179 * DISTLIST: Removed font/manager.c.
5181 Added font/font_cmd.c.
5183 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
5186 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
5188 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
5190 * kern/term.c: Changed users of grub_utf8_to_ucs4.
5192 * normal/menu.c: Likewise.
5194 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
5195 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
5197 * include/grub/font.h: Replaced with new file.
5199 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
5200 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
5201 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
5202 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
5203 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
5204 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
5205 fg_red, fg_green, fg_blue, fg_alpha.
5206 (grub_video_adapter): Removed blit_glyph.
5207 (grub_video_blit_glyph): Removed.
5209 * font/manager.c: Removed file.
5211 * font/font.c: New file.
5213 * font/font_cmd.c: Likewise.
5215 * video/video.c (grub_video_blit_glyph): Removed.
5217 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
5218 (grub_video_vbe_map_rgba): Likewise.
5219 (grub_video_vbe_unmap_color_int): Likewise.
5220 (grub_video_vbe_blit_glyph): Removed.
5221 (grub_video_vbe_adapter): Removed blit_glyph.
5223 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
5224 (get_pixel): Likewise.
5225 (set_pixel): Likewise.
5227 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
5229 * term/gfxterm.c: Adapted to new font engine.
5231 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
5233 * term/i386/pc/vga.c: Likewise.
5235 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
5237 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
5239 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
5241 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
5243 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
5245 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
5247 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
5249 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
5251 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
5253 * util/grub.d/00_header.in: Changed to use new loadfont command.
5255 * util/grub-mkconfig_lib.in: Changed font extension.
5257 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
5259 * util/getroot.c (grub_util_get_grub_dev): Add support for
5260 /dev/md/dNNpNN style partitionable mdraid devices.
5262 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
5264 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
5265 at a time limit of the PXE TFTP API correctly.
5266 (grub_pxefs_close): Likewise.
5268 2008-11-29 Robert Millan <rmh@aybabtu.com>
5270 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
5271 grub_ata_device_initialize() calls.
5273 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
5275 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
5277 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
5279 2008-11-28 Robert Millan <rmh@aybabtu.com>
5281 Fix build on powerpc-ieee1275. Based on patch created by
5282 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
5283 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
5284 `kern/ieee1275/mmap.c'.
5285 * include/grub/powerpc/ieee1275/memory.h: New file.
5287 Provide grub-install on coreboot.
5288 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
5289 (grub_install_SOURCES): New variable.
5290 * util/i386/pc/grub-install.in: Add a few condition checks to make it
5293 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
5295 * util/grub-fstest.c (grub_term_get_current_input): Change return type
5296 to `grub_term_input_t'.
5297 (grub_term_get_current_output): Change return type to
5298 `grub_term_output_t'.
5300 2008-11-22 Robert Millan <rmh@aybabtu.com>
5302 Fix breakage on coreboot due to declaration mismatch.
5303 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
5304 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
5305 grub_vga_text_cls().
5307 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
5308 comments. Avoid copying one more byte than necessary (just in case).
5310 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
5311 to 0x200000 (avoids trouble with some OFW implementations, and matches
5312 with the one in Yaboot).
5313 Reported by Manoel Abranches
5315 2008-11-20 Robert Millan <rmh@aybabtu.com>
5317 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
5318 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
5320 * util/grub-mkconfig_lib.in (grub_warn): New function.
5321 (convert_system_path_to_grub_path): Use grub_warn() when issuing
5322 warnings, to obtain consistent formatting.
5323 * util/grub.d/00_header.in: Likewise.
5324 * util/update-grub_lib.in: Likewise.
5326 * loader/i386/linux.c (allocate_pages): Fix a warning.
5327 Move comment text to `#error' stanza.
5329 Harmonize ieee1275's grub_available_iterate() with the generic
5330 grub_machine_mmap_iterate() interface (fixes a recently-introduced
5331 build problem on i386-ieee1275):
5332 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
5333 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
5334 parameter `type'. Update all users of this function.
5335 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
5336 `kern/ieee1275/mmap.c'.
5337 * kern/ieee1275/init.c
5338 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
5340 (grub_machine_mmap_iterate): ... this.
5341 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
5342 return type to `grub_err_t'. Update all implementations of this
5344 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
5347 Add `lsmmap' command (lists firmware-provided memory map):
5348 * commands/lsmmap.c: New file.
5349 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
5350 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
5352 * conf/powerpc-ieee1275.rmk: Likewise.
5353 * conf/i386-coreboot.rmk: Likewise.
5354 * conf/i386-ieee1275.rmk: Likewise.
5356 2008-11-19 Robert Millan <rmh@aybabtu.com>
5358 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
5359 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
5360 constraints to initrd allocation (based on code from
5361 loader/i386/pc/linux.c). Without them, initrd was allocated too high
5362 for Linux to find it.
5364 2008-11-14 Robert Millan <rmh@aybabtu.com>
5366 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
5367 order to cope with duplicate slashes.
5369 2008-11-14 Robert Millan <rmh@aybabtu.com>
5371 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
5372 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
5373 don't want to mess with lower memory, because it is used in the Linux
5376 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
5377 an appropriate place in lower memory, between 0x10000 and 0x90000,
5378 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
5379 is in our heap (probably as a result of it being corrupted during
5380 decompression). Add #error instance with comment to explain why this
5381 loader isn't currently usable on PC/BIOS.
5383 2008-11-14 Robert Millan <rmh@aybabtu.com>
5385 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
5386 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
5388 2008-11-12 Robert Millan <rmh@aybabtu.com>
5390 Make loader/i386/linux.c buildable on i386-pc (although disabled).
5392 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
5393 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
5395 * include/grub/i386/pc/memory.h: ... to here.
5397 2008-11-12 Robert Millan <rmh@aybabtu.com>
5399 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
5402 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
5403 (grub_console_cur_color, grub_console_real_putchar)
5404 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
5405 (grub_console_setcolorstate, grub_console_setcolor)
5406 (grub_console_getcolor): Move from here ...
5407 * include/grub/i386/vga_common.h: ... to here (new file).
5409 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
5410 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
5412 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
5413 `<grub/i386/vga_common.h>'.
5415 2008-11-12 Robert Millan <rmh@aybabtu.com>
5417 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
5418 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
5419 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
5421 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
5422 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
5424 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
5425 grub_console_init() with call to grub_vga_text_init().
5426 (grub_machine_fini): Replace call to
5427 grub_console_fini() with call to grub_vga_text_fini() and
5428 grub_at_keyboard_fini().
5430 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
5431 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
5432 (grub_console_setcolorstate, grub_console_setcolor)
5433 (grub_console_getcolor): New function prototypes.
5435 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
5436 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
5437 (grub_vga_text_setcursor): Static-ize.
5438 (grub_vga_text_term): New structure.
5439 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
5441 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
5442 (grub_console_cur_color, grub_console_standard_color)
5443 (grub_console_normal_color, grub_console_highlight_color)
5444 (map_char, grub_console_putchar, grub_console_getcharwidth)
5445 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
5446 (grub_console_getcolor): Move from here ...
5447 * term/i386/vga_common.c: ... to here (same function names).
5449 2008-11-12 Robert Millan <rmh@aybabtu.com>
5451 Use newly-added Multiboot support in coreboot.
5453 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
5454 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
5456 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
5457 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
5458 (codestart): Store the MBI in `startup_multiboot_info' when we're
5459 being loaded using Multiboot.
5461 * kern/i386/coreboot/init.c (grub_machine_init): Move
5462 grub_at_keyboard_init() call to beginning of function (useful for
5463 debugging). Call grub_machine_mmap_init() before attempting to use
5464 grub_machine_mmap_iterate().
5465 (grub_lower_mem, grub_upper_mem): Move from here ...
5466 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
5469 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
5472 2008-11-12 Robert Millan <rmh@aybabtu.com>
5474 Fix a regression introduced by the at_keyboard.mod split. Because
5475 some terminals are default on some platforms and non-default on
5476 others, the first terminal being registered determines which is
5477 going to be default.
5479 * kern/term.c (grub_term_register_input): If this is the first
5480 terminal being registered, set it as the current one.
5481 (grub_term_register_output): Likewise.
5483 * term/efi/console.c (grub_console_init): Do not call
5484 grub_term_set_current_output() or grub_term_set_current_input().
5485 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
5486 * term/i386/pc/console.c (grub_console_init): Likewise.
5487 (grub_console_fini): Do not call grub_term_set_current_input()
5488 (but leave grub_term_set_current_output() to restore text mode).
5490 2008-11-10 Robert Millan <rmh@aybabtu.com>
5492 * util/grub.d/00_header.in: Add backward compatibility check for
5493 versions of terminal.mod that don't understand `terminal_input' or
5496 2008-11-09 Robert Millan <rmh@aybabtu.com>
5498 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
5499 `terminal_input' / `terminal_output', not `terminal'.
5501 2008-11-08 Robert Millan <rmh@aybabtu.com>
5503 * Makefile.in (include_DATA): Fix srcdir=. assumption.
5504 (DISTCLEANFILES): Add `build_env.mk'.
5506 2008-11-08 Robert Millan <rmh@aybabtu.com>
5508 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
5509 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
5510 members. Update all users.
5511 * util/console.c (grub_ncurses_term): Split in ...
5512 (grub_ncurses_term_input): ... this, and ...
5513 (grub_ncurses_term_output): ... this. Update all users.
5514 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
5516 2008-11-08 Robert Millan <rmh@aybabtu.com>
5518 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
5519 (PKGDATA): Add $(pkgdata_SRCDIR).
5520 (pkglib_BUILDDIR): New variable.
5521 (pkgdata_SRCDIR): New variable.
5522 (build_env.mk): New target.
5523 (include_DATA): New variable.
5524 (install-local): Install $(include_DATA) files in $(includedir).
5526 2008-11-07 Pavel Roskin <proski@gnu.org>
5528 * gendistlist.sh: Use C locale for sorting to ensure consistent
5529 output on all systems.
5531 * util/grub.d/00_header.in: Remove incorrect space before
5534 2008-11-07 Robert Millan <rmh@aybabtu.com>
5536 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
5538 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
5539 * loader/multiboot_loader.c (find_multi_boot2_header): New function
5540 (based on find_multi_boot1_header).
5541 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
5542 using find_multi_boot2_header(), and abort if neither Multiboot or
5543 Multiboot headers were found.
5545 2008-11-07 Robert Millan <rmh@aybabtu.com>
5547 Modularize at_keyboard.mod:
5549 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
5550 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
5551 (at_keyboard_mod_LDFLAGS): New variables.
5553 Actual terminal split:
5555 * include/grub/term.h (struct grub_term): Split in ...
5556 (struct grub_term_input): ... this, and ...
5557 (struct grub_term_output): ... this. Update all users.
5558 (grub_term_set_current): Split in ...
5559 (grub_term_set_current_input): ... this, and ...
5560 (grub_term_set_current_output): ... this.
5561 (grub_term_get_current): Split in ...
5562 (grub_term_get_current_input): ... this, and ...
5563 (grub_term_get_current_output): ... this.
5564 (grub_term_register): Split in ...
5565 (grub_term_register_input): ... this, and ...
5566 (grub_term_register_output): ... this.
5567 (grub_term_unregister): Split in ...
5568 (grub_term_unregister_input): ... this, and ...
5569 (grub_term_unregister_output): ... this.
5570 (grub_term_iterate): Split in ...
5571 (grub_term_iterate_input): ... this, and ...
5572 (grub_term_iterate_output): ... this.
5574 * kern/term.c (grub_term_list): Split in ...
5575 (grub_term_list_input): ... this, and ...
5576 (grub_term_list_output): ... this. Update all users.
5577 (grub_cur_term): Split in ...
5578 (grub_cur_term_input): ... this, and ...
5579 (grub_cur_term_output): ... this. Update all users.
5580 (grub_term_set_current): Split in ...
5581 (grub_term_set_current_input): ... this, and ...
5582 (grub_term_set_current_output): ... this.
5583 (grub_term_get_current): Split in ...
5584 (grub_term_get_current_input): ... this, and ...
5585 (grub_term_get_current_output): ... this.
5586 (grub_term_register): Split in ...
5587 (grub_term_register_input): ... this, and ...
5588 (grub_term_register_output): ... this.
5589 (grub_term_unregister): Split in ...
5590 (grub_term_unregister_input): ... this, and ...
5591 (grub_term_unregister_output): ... this.
5592 (grub_term_iterate): Split in ...
5593 (grub_term_iterate_input): ... this, and ...
5594 (grub_term_iterate_output): ... this.
5596 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
5597 a check for input and one for output (and only attempt to get keys
5598 from user when input works).
5600 * util/grub-probe.c (grub_term_get_current): Split in ...
5601 (grub_term_get_current_input): ... this, and ...
5602 (grub_term_get_current_output): ... this.
5603 * util/grub-fstest.c: Likewise.
5604 * util/i386/pc/grub-setup.c: Likewise.
5605 * util/grub-editenv.c: Likewise.
5607 Portability adjustments:
5609 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
5610 `term/i386/pc/at_keyboard.c'.
5611 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
5612 grub_keyboard_controller_init() (now handled by terminal .init).
5613 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
5614 grub_at_keyboard_init().
5615 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
5616 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
5617 at_keyboard.mod via input terminal interface).
5618 * include/grub/i386/coreboot/console.h: Convert into a stub for
5619 `<grub/i386/pc/console.h>'.
5621 Migrate full terminals to new API:
5623 * term/efi/console.c (grub_console_term): Split into ...
5624 (grub_console_term_input): ... this, and ...
5625 (grub_console_term_output): ... this. Update all users.
5626 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
5627 (grub_ofconsole_init): Split into ...
5628 (grub_ofconsole_init_input): ... this, and ...
5629 (grub_ofconsole_init_output): ... this.
5630 (grub_ofconsole_term): Split into ...
5631 (grub_ofconsole_term_input): ... this, and ...
5632 (grub_ofconsole_term_output): ... this. Update all users.
5633 * term/i386/pc/serial.c (grub_serial_term): Split into ...
5634 (grub_serial_term_input): ... this, and ...
5635 (grub_serial_term_output): ... this. Update all users.
5636 * term/i386/pc/console.c (grub_console_term): Split into ...
5637 (grub_console_term_input): ... this, and ...
5638 (grub_console_term_output): ... this. Update all users.
5639 (grub_console_term_input): Only enable it on PC/BIOS platform.
5640 (grub_console_init): Remove grub_keyboard_controller_init() call.
5642 Migrate input terminals to new API:
5644 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
5645 `i386' and `i386/pc' to enable build on x86_64 (this driver is
5646 i386-specific anyway).
5647 (grub_console_checkkey): Rename to ...
5648 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
5650 (grub_keyboard_controller_orig): New variable.
5651 (grub_console_getkey): Rename to ...
5652 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
5654 (grub_keyboard_controller_init): Static-ize. Save original
5655 controller value so that it can be restored ...
5656 (grub_keyboard_controller_fini): ... here (new function).
5657 (grub_at_keyboard_term): New structure.
5658 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
5661 Migrate output terminals to new API:
5663 * term/i386/pc/vga.c (grub_vga_term): Change type to
5664 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
5665 members. Update all users.
5666 * term/gfxterm.c (grub_video_term): Change type to
5667 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
5668 members. Update all users.
5669 * include/grub/i386/pc/console.h (grub_console_checkkey)
5670 (grub_console_getkey): Do not export (no longer needed by gfxterm,
5673 Migrate `terminal' command and userland tools to new API:
5675 * commands/terminal.c (grub_cmd_terminal): Split into ...
5676 (grub_cmd_terminal_input): ... this, and ...
5677 (grub_cmd_terminal_output): ... this.
5678 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
5679 `terminal_input' and `terminal_output'.
5680 * util/grub.d/00_header.in: Adjust `terminal' calls to new
5681 `terminal_input' / `terminal_output' API.
5682 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
5683 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
5684 provided ${GRUB_TERMINAL}, convert it).
5686 2008-11-04 Robert Millan <rmh@aybabtu.com>
5688 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
5690 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
5692 2008-11-03 Bean <bean123ch@gmail.com>
5694 * kern/elf.c (grub_elf32_load): Revert to previous code.
5695 (grub_elf64_load): Likewise.
5697 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
5699 2008-11-01 Robert Millan <rmh@aybabtu.com>
5701 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
5702 (TARGET_CPPFLAGS): Likewise.
5703 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
5705 2008-11-01 Carles Pina i Estany <carles@pina.cat>
5707 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
5709 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
5711 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
5712 addition of objects until the code is not going to be able to fail.
5714 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
5716 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
5717 (add a missing NULL check, and correct them by moving the pointer
5718 operations after the actual check).
5720 2008-10-29 Robert Millan <rmh@aybabtu.com>
5722 * util/i386/pc/grub-install.in: Handle empty string as output from
5723 make_system_path_relative_to_its_root().
5725 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
5727 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
5728 circular metadata worst case scenario. If the metadata is circular
5729 then copy the wrap in place.
5730 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
5731 project lib/format_text/layout.h
5732 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
5734 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
5736 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
5738 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
5740 * util/update-grub_lib.in: Mention filename in warning message.
5742 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
5744 * NEWS: Update for rename of update-grub to grub-mkconfig.
5746 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
5748 * util/update-grub_lib.in: Copy to ...
5749 * util/grub-mkconfig_lib.in: ... this. Update all users.
5750 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
5751 * util/update-grub.in: Rename to ...
5752 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
5753 option. Add `--output' option to allow users to specify the generated
5754 configuration file. Default to stdout.
5755 (update_grub_dir): Rename to ...
5756 (grub_mkconfig_dir): ... this.
5757 (grub_cfg): Default to an empty string.
5758 * conf/common.rmk (update-grub): Rename to ...
5759 (grub-mkconfig): ... this.
5760 (update-grub_lib): Copy to ...
5761 (grub-mkconfig_lib): ... this.
5762 (update-grub_SCRIPTS): Copy to ...
5763 (grub-mkconfig_SCRIPTS): ... this. Update all users.
5764 (update-grub_DATA): Rename to ...
5765 (grub-mkconfig_DATA): ... this.
5767 2008-09-28 Robert Millan <rmh@aybabtu.com>
5769 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
5770 to `modified'. Add the real `created' field.
5771 (grub_iso9660_uuid): Use `modified' rather than `created' for
5772 constructing the UUID.
5774 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
5776 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
5777 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
5779 2008-09-28 Bean <bean123ch@gmail.com>
5781 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
5782 Thanks to Christian Franke for finding this bug.
5784 2008-09-25 Robert Millan <rmh@aybabtu.com>
5786 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
5787 instances of grub_util_get_disk_name() (see previous commit).
5789 2008-09-25 Robert Millan <rmh@aybabtu.com>
5791 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
5792 `util/i386/get_disk_name.c'.
5793 * conf/i386-efi.rmk: Likewise.
5794 * conf/x86_64-efi.rmk: Likewise.
5795 * conf/i386-coreboot.rmk: Likewise.
5796 * conf/i386-ieee1275.rmk: Likewise.
5797 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
5798 `util/ieee1275/get_disk_name.c'.
5799 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
5800 * util/ieee1275/get_disk_name.c: Remove file.
5801 * util/i386/get_disk_name.c: Remove file.
5802 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
5803 "hd%d" for device.map entries, rather than using
5804 grub_util_get_disk_name().
5806 2008-09-24 Carles Pina i Estany <carles@pina.cat>
5808 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
5810 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
5812 2008-09-24 Carles Pina i Estany <carles@pina.cat>
5814 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
5816 (GRUB_TERM_PPAGE): Changed to 0x4900.
5818 2008-09-24 Robert Millan <rmh@aybabtu.com>
5820 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
5821 macros (they were i386-pc specific).
5822 * include/grub/sparc64/ieee1275/console.h: Likewise.
5823 * include/grub/efi/console.h: Likewise.
5825 2008-09-22 Bean <bean123ch@gmail.com>
5827 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
5828 resident and in attribute list.
5830 * include/grub/ntfs.h (BMP_LEN): Removed.
5832 2008-09-22 Bean <bean123ch@gmail.com>
5834 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
5835 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
5837 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
5838 error occurs, as grub_disk_open will call grub_disk_close, which will
5839 call p->close (scsi).
5841 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
5843 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
5844 (AC_PREREQ): Bumped to 2.59.
5845 (AC_TRY_COMPILE): Replace obsolete macro with ...
5846 (AC_COMPILE_IFELSE): ... this.
5847 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
5848 (AC_LINK_IFELSE): ... this.
5850 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
5852 * autogen.sh: Add a call to `gendistlist.sh'.
5854 2008-09-19 Christian Franke <franke@computer.org>
5856 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
5857 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
5858 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
5859 Export __enable_execute_stack() to modules.
5860 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
5863 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
5865 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
5868 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
5870 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
5871 #include <grub/util/hostdisk.h>.
5873 2008-09-08 Robert Millan <rmh@aybabtu.com>
5875 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
5876 segments when their filesz is zero (grub_file_read() interprets
5877 zero-size as "read until EOF", which results in memory corruption).
5878 Use `lowest_segment' rather than 0 for calculating the current
5879 segment load address.
5881 2008-09-08 Robert Millan <rmh@aybabtu.com>
5883 * util/hostdisk.c (open_device): Replace a grub_util_info() call
5884 with grub_dprintf("hostdisk", ...), as it was so verbose that it
5885 clobbered useful information.
5887 2008-09-08 Robert Millan <rmh@aybabtu.com>
5889 * include/grub/util/biosdisk.h: Move to ...
5890 * include/grub/util/hostdisk.h: ... here. Update all users.
5891 * util/biosdisk.c: Move to ...
5892 * util/hostdisk.c: ... here. Update all users.
5894 2008-09-07 Robert Millan <rmh@aybabtu.com>
5896 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
5898 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
5899 and length can be stored directly in the `mbi->mmap_addr' and
5900 `mbi->mmap_length' struct fields.
5902 2008-09-07 Robert Millan <rmh@aybabtu.com>
5904 * conf/i386.rmk: New file. Provides declaration for building
5906 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
5907 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
5909 Include `conf/i386.mk'.
5910 * conf/i386-efi.rmk: Likewise.
5911 * conf/x86_64-efi.rmk: Likewise.
5912 * conf/i386-coreboot.rmk: Likewise.
5913 * conf/i386-ieee1275.rmk: Likewise.
5915 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
5917 Based on patch created by Colin D Bennett <colin@gibibit.com>.
5918 Adds optimization support for BGR based modes.
5920 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
5921 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
5922 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
5923 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
5924 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
5925 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
5926 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
5927 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
5928 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
5929 (grub_video_i386_vbeblit_index_index): Likewise.
5930 (grub_video_i386_vbeblit_replace_directN): Added.
5931 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
5932 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
5933 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
5934 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
5935 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
5936 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
5937 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
5938 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
5939 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
5940 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
5941 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
5942 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
5943 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
5945 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
5946 (grub_video_i386_vbefill_R8G8B8): Likewise.
5947 (grub_video_i386_vbefill_index): Likewise.
5948 (grub_video_i386_vbefill_direct32): Added.
5949 (grub_video_i386_vbefill_direct24): Likewise.
5950 (grub_video_i386_vbefill_direct16): Likewise.
5951 (grub_video_i386_vbefill_direct8): Likewise.
5953 * include/grub/video.h (grub_video_blit_format): Removed
5954 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
5955 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
5956 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
5957 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
5958 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
5960 * video/video.c (grub_video_get_blit_format): Updated to use new
5961 blit formats. Added handling for 16 bit color modes.
5963 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
5965 (common_blitter): Updated to use new blitters.
5967 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
5969 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
5970 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
5971 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
5972 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
5973 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
5974 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
5975 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
5976 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
5977 (grub_video_i386_vbeblit_index_index): Likewise.
5978 (grub_video_i386_vbeblit_replace_directN): Added.
5979 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
5980 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
5981 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
5982 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
5983 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
5984 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
5985 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
5986 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
5987 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
5988 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
5989 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
5990 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
5991 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
5993 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
5994 (grub_video_i386_vbefill_R8G8B8): Likewise.
5995 (grub_video_i386_vbefill_index): Likewise.
5996 (grub_video_i386_vbefill_direct32): Added.
5997 (grub_video_i386_vbefill_direct24): Likewise.
5998 (grub_video_i386_vbefill_direct16): Likewise.
5999 (grub_video_i386_vbefill_direct8): Likewise.
6001 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
6004 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
6007 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
6010 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
6013 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
6015 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
6018 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
6020 * fs/iso9660.c (grub_iso9660_date): New structure.
6021 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
6022 (grub_iso9660_uuid): New function.
6024 2008-09-05 Bean <bean123ch@gmail.com>
6026 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
6028 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
6029 insensitive bit for names in Win32 and Win32 & DOS namespace.
6031 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
6033 * include/grub/types.h (LONG_MAX): Likewise.
6035 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
6037 * util/getroot.c: Include <config.h>.
6038 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
6039 add support for /dev/md/N devices and handle LVM double dash escaping.
6041 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
6043 * config.guess: Update to latest version from config git.
6044 * config.sub: Likewise.
6046 2008-09-03 Robert Millan <rmh@aybabtu.com>
6048 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
6049 `disk->total_sectors'.
6051 2008-09-01 Colin D Bennett <colin@gibibit.com>
6053 * include/grub/normal.h: Fixed incorrect comment for
6054 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
6056 2008-09-01 Colin D Bennett <colin@gibibit.com>
6058 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
6059 values with defines.
6061 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
6062 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
6063 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
6064 (GRUB_VBE_MODEATTR_COLOR): Likewise.
6065 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
6066 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
6067 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
6068 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
6069 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
6070 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
6071 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
6072 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
6073 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
6074 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
6075 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
6076 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
6077 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
6078 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
6079 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
6081 2008-08-31 Robert Millan <rmh@aybabtu.com>
6083 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
6085 (grub_multiboot): Fix a few warnings.
6087 2008-08-31 Robert Millan <rmh@aybabtu.com>
6089 * loader/i386/pc/multiboot.c: Update comment not to say that
6090 boot_device support is unimplemented.
6092 2008-08-31 Robert Millan <rmh@aybabtu.com>
6094 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
6095 or memory map support are unimplemented.
6097 2008-08-31 Colin D Bennett <colin@gibibit.com>
6099 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
6101 2008-08-31 Colin D Bennett <colin@gibibit.com>
6103 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
6104 total video memory in 'vbeinfo' output; show color format details for
6107 2008-08-30 Pavel Roskin <proski@gnu.org>
6109 * util/genmoddep.c: Remove for real this time.
6110 * DISTLIST: Remove util/genmoddep.c.
6112 2008-08-30 Robert Millan <rmh@aybabtu.com>
6114 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
6115 as required by Multiboot spec (it was already 4-byte aligned, but
6118 2008-08-29 Pavel Roskin <proski@gnu.org>
6120 * kern/powerpc/ieee1275/crt0.S: Rename to ...
6121 * kern/powerpc/ieee1275/startup.S: ... this.
6122 * conf/powerpc-ieee1275.rmk: Adjust for the above.
6123 * DISTLIST: Likewise.
6125 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
6126 grub/cpu/kernel.h. Add start label for consistency with other
6127 platforms. Add grub_prefix immediately after start. Add jump
6128 to the code after grub_prefix.
6129 * include/grub/powerpc/kernel.h: Provide valid values for
6130 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
6132 2008-08-29 Bean <bean123ch@gmail.com>
6134 * configure.ac: Change host_os to cygwin for mingw.
6135 (asprintf): New check for function.
6137 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
6138 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
6140 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
6141 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6142 sync, sleep and grub_util_get_disk_size for mingw.
6144 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
6145 to get size in mingw.
6146 (open_device): Use flag O_BINARY if it's defined.
6147 (find_root_device): Add dummy code for mingw.
6149 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
6150 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
6151 (get_scsi_disk_name): Return 0 for mingw.
6153 * util/hostfs.c: #include <grub/util/misc.h>.
6154 (grub_hostfs_open): Use "rb" flag to open file, use
6155 grub_util_get_disk_size to get disk size for mingw.
6157 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
6158 (asprintf): New function if HAVE_ASPRINTF is not set.
6159 (sync): New function for mingw.
6161 (grub_util_get_disk_size): Likewise.
6163 2008-08-28 Pavel Roskin <proski@gnu.org>
6165 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6168 2008-08-28 Robert Millan <rmh@aybabtu.com>
6170 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
6172 2008-08-28 Robert Millan <rmh@aybabtu.com>
6174 Change find_grub_drive() syntax so it doesn't prevent it from
6175 detecting NULL names as errors.
6177 * util/biosdisk.c (find_grub_drive): Move free slot search code
6179 (find_free_slot): ... to here.
6180 (read_device_map): Use find_free_slot() to search for free slots.
6182 2008-08-27 Marco Gerards <marco@gnu.org>
6184 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
6185 (scsi_mod_SOURCES): New variable.
6186 (scsi_mod_CFLAGS): Likewise
6187 (scsi_mod_LDFLAGS): Likewise.
6189 * disk/scsi.c: New file.
6191 * include/grub/scsi.h: Likewise.
6193 * include/grub/scsicmd.h: Likewise.
6195 * disk/ata.c: Include <grub/scsi.h>.
6196 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
6198 (grub_ata_iterate): Skip ATAPI devices.
6199 (grub_ata_open): Only handle ATAPI devices.
6200 (struct grub_atapi_read): Removed.
6201 (grub_atapi_readsector): Likewise.
6202 (grub_ata_read): No longer handle ATAPI devices.
6203 (grub_ata_write): Likewise.
6204 (grub_atapi_iterate): New function.
6205 (grub_atapi_read): Likewise.
6206 (grub_atapi_write): Likewise.
6207 (grub_atapi_open): Likewise.
6208 (grub_atapi_close): Likewise.
6209 (grub_atapi_dev): New variable.
6210 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
6211 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
6213 * include/grub/disk.h (enum grub_disk_dev_id): Add
6214 `GRUB_DISK_DEVICE_SCSI_ID'.
6216 2008-08-26 Robert Millan <rmh@aybabtu.com>
6218 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
6219 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
6222 2008-08-23 Bean <bean123ch@gmail.com>
6224 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
6225 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
6226 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
6227 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
6229 (raid5rec_mod_SOURCES): New macro.
6230 (raid5rec_mod_CFLAGS): Likewise.
6231 (raid5rec_mod_LDFLAGS): Likewise.
6232 (raid6rec_mod_SOURCES): Likewise.
6233 (raid6rec_mod_CFLAGS): Likewise.
6234 (raid6rec_mod_LDFLAGS): Likewise.
6235 (mdraid_mod_SOURCES): Likewise.
6236 (mdraid_mod_CFLAGS): Likewise.
6237 (mdraid_mod_LDFLAGS): Likewise.
6238 (dm_nv_mod_SOURCES): Likewise.
6239 (dm_nv_mod_CFLAGS): Likewise.
6240 (dm_nv_mod_LDFLAGS): Likewise.
6242 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
6243 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
6244 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
6246 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
6247 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
6249 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6251 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6253 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6255 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6257 * disk/raid5_recover.c: New file.
6259 * disk/raid6_recover.c: Likewise.
6261 * disk/mdraid_linux.c: Likewise.
6263 * disk/dmraid_nvidia.c: Likewise.
6265 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
6268 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
6269 calculate the size of raid device.
6270 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
6271 different layout of raid5.
6272 (grub_raid_scan_device): Remove code specific to mdraid.
6273 (grub_raid_list): New variable.
6274 (free_array): New function.
6275 (grub_raid_register): Likewise.
6276 (grub_raid_unregister): Likewise.
6277 (grub_raid_rescan): Likewise.
6278 (GRUB_MOD_INIT): Don't iterate device here.
6279 (GRUB_MOD_FINI): Use free_array to release resource.
6281 * include/grub/raid.h: Remove macro and structure specific to mdraid.
6282 (grub_raid5_recover_func_t): New function variable type.
6283 (grub_raid6_recover_func_t): Likewise.
6284 (grub_raid5_recover_func): New variable.
6285 (grub_raid6_recover_func): Likewise.
6286 (grub_raid_register): New function.
6287 (grub_raid_unregister): Likewise.
6288 (grub_raid_rescan): Likewise.
6289 (grub_raid_block_xor): Likewise.
6291 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
6292 (CMD_CRC): New macro.
6294 (read_file): Handle device as well as file.
6295 (cmd_crc): New function.
6296 (fstest): Handle multiple disks.
6297 (options): Remove part, raw and long, add root and diskcount.
6298 (usage): Add crc, remove -p, -r, -l, add -r and -c.
6299 (main): Find the first non option entry and ignore subsequent options,
6300 add handling for the new options, support multiple disks.
6302 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
6304 2008-08-23 Bean <bean123ch@gmail.com>
6306 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
6308 * genfslist.sh: Ignore kernel.mod.
6310 * genpartmaplist.sh: Likewise.
6312 2008-08-23 Robert Millan <rmh@aybabtu.com>
6314 * util/getroot.c (find_root_device): Skip anything that starts with
6315 a dot, not just directories. This avoids things like /dev/.tmp.md0.
6317 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
6319 * util/update-grub.in (GRUB_GFXMODE): Export variable.
6320 * util/grub.d/00_header.in: Allow the administrator to change default
6321 gfxmode via ${GRUB_GFXMODE}.
6323 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
6325 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
6327 2008-08-21 Robert Millan <rmh@aybabtu.com>
6329 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
6331 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
6332 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
6334 2008-08-20 Carles Pina i Estany <carles@pina.cat>
6336 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
6337 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
6339 2008-08-19 Robert Millan <rmh@aybabtu.com>
6341 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
6342 (struct grub_virtual_screen): Remove `cursor_color'.
6343 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
6345 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
6347 2008-08-18 Robert Millan <rmh@aybabtu.com>
6349 Unify (identical) linux_normal.c files.
6350 * loader/i386/efi/linux_normal.c: Move from here ...
6351 * loader/linux_normal.c: ... to here. Update all users.
6352 * loader/i386/pc/linux_normal.c: Delete. Update all users.
6353 * loader/i386/ieee1275/linux_normal.c: Likewise.
6355 2008-08-18 Robert Millan <rmh@aybabtu.com>
6357 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
6358 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
6359 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
6360 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
6361 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
6363 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
6364 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
6365 (GRUB_LINUX_CL_END_OFFSET): ... to here.
6366 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
6367 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
6368 (GRUB_EFI_CL_END_OFFSET): Rename to ...
6369 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
6370 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
6371 Initialize `params->video_cursor_x' and `params->video_cursor_y'
6372 portably using grub_getxy().
6373 Replace `-EFI' with `-bzImage' in boot message.
6375 2008-08-17 Robert Millan <rmh@aybabtu.com>
6377 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
6379 2008-08-17 Robert Millan <rmh@aybabtu.com>
6381 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
6383 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
6384 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
6385 (grub_machine_mmap_iterate): New function declaration.
6386 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
6388 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
6391 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
6392 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
6393 Move e820 parsing from here ...
6394 * kern/i386/pc/mmap.c: New file.
6395 (grub_machine_mmap_iterate): ... to here.
6397 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
6398 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
6399 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
6400 (grub_available_iterate): Redeclare to return `void', and redeclare
6401 its hook to use grub_uint64_t as addr and size parameters, and rename
6403 (grub_machine_mmap_iterate): ... this. Update all users.
6405 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
6406 to make it more readable. Rename to ...
6407 (grub_machine_mmap_iterate): ... this.
6409 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
6410 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
6411 (grub_multiboot): Allocate an extra region after the payload, and fill
6412 it with a Multiboot memory map. Adjust a.out loader to calculate size
6413 with the extra space.
6414 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
6415 with the extra space.
6417 2008-08-17 Carles Pina i Estany <carles@pina.cat>
6419 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
6421 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
6423 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
6424 mdate-sh to the list `find' searches for.
6425 * DISTLIST: Regenerated.
6427 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
6429 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
6430 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
6431 genmoddep.awk, gensymlist.sh.in.
6432 (DISTDIRS): Add bus, docs, hook, lib.
6433 * DISTLIST: Regenerated.
6434 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
6436 2008-08-16 Robert Millan <rmh@aybabtu.com>
6438 * disk/raid.c (grub_raid_init): Handle/report errors set by
6439 grub_device_iterate().
6440 * disk/lvm.c (grub_lvm_init): Likewise.
6442 2008-08-15 Bean <bean123ch@gmail.com>
6444 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6446 (datetime_mod_SOURCES): New macro.
6447 (datetime_mod_CFLAGS): Likewise.
6448 (datetime_mod_LDFLAGS): Likewise.
6449 (date_mod_SOURCES): Likewise.
6450 (date_mod_CFLAGS): Likewise.
6451 (date_mod_LDFLAGS): Likewise.
6452 (datehook_mod_SOURCES): Likewise.
6453 (datehook_mod_CFLAGS): Likewise.
6454 (datehook_mod_LDFLAGS): Likewise.
6456 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6458 (datetime_mod_SOURCES): New macro.
6459 (datetime_mod_CFLAGS): Likewise.
6460 (datetime_mod_LDFLAGS): Likewise.
6461 (date_mod_SOURCES): Likewise.
6462 (date_mod_CFLAGS): Likewise.
6463 (date_mod_LDFLAGS): Likewise.
6464 (datehook_mod_SOURCES): Likewise.
6465 (datehook_mod_CFLAGS): Likewise.
6466 (datehook_mod_LDFLAGS): Likewise.
6468 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6470 (datetime_mod_SOURCES): New macro.
6471 (datetime_mod_CFLAGS): Likewise.
6472 (datetime_mod_LDFLAGS): Likewise.
6473 (date_mod_SOURCES): Likewise.
6474 (date_mod_CFLAGS): Likewise.
6475 (date_mod_LDFLAGS): Likewise.
6476 (datehook_mod_SOURCES): Likewise.
6477 (datehook_mod_CFLAGS): Likewise.
6478 (datehook_mod_LDFLAGS): Likewise.
6480 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6482 (datetime_mod_SOURCES): New macro.
6483 (datetime_mod_CFLAGS): Likewise.
6484 (datetime_mod_LDFLAGS): Likewise.
6485 (date_mod_SOURCES): Likewise.
6486 (date_mod_CFLAGS): Likewise.
6487 (date_mod_LDFLAGS): Likewise.
6488 (datehook_mod_SOURCES): Likewise.
6489 (datehook_mod_CFLAGS): Likewise.
6490 (datehook_mod_LDFLAGS): Likewise.
6492 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6494 (datetime_mod_SOURCES): New macro.
6495 (datetime_mod_CFLAGS): Likewise.
6496 (datetime_mod_LDFLAGS): Likewise.
6497 (date_mod_SOURCES): Likewise.
6498 (date_mod_CFLAGS): Likewise.
6499 (date_mod_LDFLAGS): Likewise.
6500 (datehook_mod_SOURCES): Likewise.
6501 (datehook_mod_CFLAGS): Likewise.
6502 (datehook_mod_LDFLAGS): Likewise.
6504 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
6506 * commands/date.c: New file.
6508 * hook/datehook.c: Likewise.
6510 * include/grub/lib/datetime.h: Likewise.
6512 * include/grub/i386/cmos.h: Likewise.
6514 * lib/datetime.c: Likewise.
6516 * lib/i386/datetime.c: Likewise.
6518 * lib/efi/datetime.c: Likewise.
6520 2008-08-14 Robert Millan <rmh@aybabtu.com>
6522 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
6523 (grub_mkelfimage_SOURCES): New variable.
6524 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
6526 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
6527 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
6528 * conf/powerpc-ieee1275.rmk: Likewise.
6529 * conf/i386-ieee1275.rmk: Likewise.
6531 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
6532 * kern/i386/coreboot/init.c: Likewise.
6534 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
6535 with `<grub/cpu/kernel.h>'.
6536 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
6538 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
6539 * kern/i386/coreboot/startup.S: Likewise.
6541 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
6542 (GRUB_MOD_GAP): Remove.
6543 * include/grub/powerpc/kernel.h: New file.
6544 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
6545 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
6546 * include/grub/i386/kernel.h: New file.
6547 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
6548 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
6549 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
6551 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
6553 Use --directory when invoking grub_mkimage.
6555 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
6556 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
6557 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
6558 and GRUB_KERNEL_CPU_PREFIX.
6560 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
6562 * include/grub/err.h (grub_err_printf): New function prototype.
6563 * util/misc.c (grub_err_printf): New function.
6564 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
6566 * kern/err.c (grub_print_error): Use grub_err_printf.
6568 2008-08-13 Robert Millan <rmh@aybabtu.com>
6570 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
6572 2008-08-13 Robert Millan <rmh@aybabtu.com>
6574 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
6577 2008-08-12 Robert Millan <rmh@aybabtu.com>
6579 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
6580 of the relocation code from here ...
6581 (grub_multiboot): ... to here.
6582 (forward_relocator, backward_relocator): Move from here ...
6583 * kern/i386/loader.S (grub_multiboot_forward_relocator)
6584 (grub_multiboot_backward_relocator): ... to here.
6585 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
6586 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
6587 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
6588 (grub_multiboot_forward_relocator_end)
6589 (grub_multiboot_backward_relocator)
6590 (grub_multiboot_backward_relocator_end): New variables.
6592 2008-08-12 Bean <bean123ch@gmail.com>
6594 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
6596 2008-08-11 Robert Millan <rmh@aybabtu.com>
6598 * kern/i386/linuxbios/startup.S: Move from here ...
6599 * kern/i386/coreboot/startup.S: ... to here.
6601 * kern/i386/linuxbios/init.c: Move from here ...
6602 * kern/i386/coreboot/init.c: ... to here.
6604 * kern/i386/linuxbios/table.c: Move from here ...
6605 * kern/i386/coreboot/mmap.c: ... to here.
6607 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
6609 2008-08-11 Robert Millan <rmh@aybabtu.com>
6611 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
6612 errors. Leave it to the upper layer to handle them.
6614 2008-08-09 Christian Franke <franke@computer.org>
6616 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
6617 * conf/common.rmk: Install `grub-pe2elf' only if requested.
6618 Install `grub.d/10_windows' only on Cygwin.
6619 * configure.ac: Add subst of `target_os'.
6620 Check `target_os' also before setting TARGET_OBJ2ELF.
6621 Add `--enable-grub-pe2elf'.
6623 2008-08-08 Robert Millan <rmh@aybabtu.com>
6625 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
6626 (grub_last_time): Change type to grub_uint64_t.
6627 (grub_disk_open): Migrate code from to using grub_get_time_ms().
6628 (grub_disk_close): Likewise.
6630 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
6631 (run_menu): Migrate code from to using grub_get_time_ms().
6633 * util/misc.c (grub_get_time_ms): New function.
6635 2008-08-08 Marco Gerards <marco@gnu.org>
6637 * disk/ata.c (grub_ata_regget): Change return type to
6639 (grub_ata_regget2): Likewise.
6640 (grub_ata_wait_status): New function.
6641 (grub_ata_wait_busy): Removed function, updated all users to use
6642 `grub_ata_wait_status'.
6643 (grub_ata_wait_drq): Likewise.
6644 (grub_ata_cmd): New function.
6645 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
6647 (grub_ata_pio_write): Add error handling.
6648 (grub_atapi_identify): Likewise.
6649 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
6651 (grub_ata_identify): Use `grub_ata_cmd' and improve error
6652 handling. Actually use the detected registers. Reorder the
6653 detection logic such that it is easier to read.
6654 (grub_ata_pciinit): Do not assign the same ID to each controller.
6655 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
6657 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
6659 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
6661 2008-08-08 Marco Gerards <marco@gnu.org>
6665 2008-08-07 Bean <bean123ch@gmail.com>
6667 * include/grub/x86_64/pci.h: New file.
6669 2008-08-07 Christian Franke <franke@computer.org>
6671 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
6672 (TIMER2_GATE): Likewise.
6673 (grub_pit_wait): Add enable/disable of the timer2 gate
6674 bit of port 0x61. This fixes a possible infinite loop.
6676 2008-08-07 Bean <bean123ch@gmail.com>
6678 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
6679 kern/i386/tsc.c and kern/i386/pit.c.
6681 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
6684 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
6687 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
6689 2008-08-07 Bean <bean123ch@gmail.com>
6691 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
6693 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
6695 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
6696 multiple inclusion. Add #include <grub/types.h>.
6698 2008-08-06 Christian Franke <franke@computer.org>
6700 * conf/common.rmk: Build and install `10_windows'.
6701 * util/grub.d/10_windows.in: New script.
6703 2008-08-06 Pavel Roskin <proski@gnu.org>
6705 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
6707 2008-08-06 Robert Millan <rmh@aybabtu.com>
6709 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
6710 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
6712 2008-08-06 Bean <bean123ch@gmail.com>
6714 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
6715 (grub_pxefs_fs_int): Remove dummy definition.
6716 (grub_pxefs_open): Use data->block_size to store the current block
6718 (grub_pxefs_read): Use block size stored in data->block_size. As the
6719 value of grub_pxe_blksize can be changed after the file is opened.
6721 2008-08-06 Bean <bean123ch@gmail.com>
6723 * fs/i386/pc/pxe.c (curr_file): new variable.
6724 (grub_pxefs_open): Simply the handling of pxe file system. Don't
6725 require the dummy internal file system anymore.
6726 (grub_pxefs_read): Removed.
6727 (grub_pxefs_close): Likewise.
6728 (grub_pxefs_fs_int): Likewise.
6729 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
6730 connection when we switch file.
6731 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
6733 2008-08-06 Robert Millan <rmh@aybabtu.com>
6735 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
6737 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
6738 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
6740 * kern/i386/halt.c: New file.
6741 * kern/i386/reboot.c: Likewise.
6742 * include/grub/i386/reboot.h: Likewise.
6743 * include/grub/i386/halt.h: Likewise.
6745 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
6746 Include `<grub/cpu/halt.h>'.
6747 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
6748 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
6750 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
6751 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
6752 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
6753 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
6754 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
6755 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
6757 * include/grub/i386/at_keyboard.h: ... to here.
6759 2008-08-05 Robert Millan <rmh@aybabtu.com>
6761 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
6762 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
6763 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
6764 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
6765 `kern/generic/millisleep.c'.
6767 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
6768 instead of grub_get_rtc().
6769 (grub_tsc_init): Initialize `tsc_boot_time'.
6771 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
6772 (grub_machine_init): Use grub_tsc_init() rather than
6773 installing an RTC-based handler via grub_install_get_time_ms().
6775 * kern/i386/pit.c: New file.
6776 * include/grub/i386/pit.h: Likewise.
6778 2008-08-05 Bean <bean123ch@gmail.com>
6780 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
6782 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
6783 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
6784 (pxe_mod_SOURCES): New macro.
6785 (pxe_mod_CFLAGS): Likewise.
6786 (pxe_mod_LDFLAGS): Likewise.
6787 (pxecmd_mod_SOURCES): Likewise.
6788 (pxecmd_mod_CFLAGS): Likewise.
6789 (pxecmd_mod_LDFLAGS): Likewise.
6791 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
6792 (grub_pxe_call): Likewise.
6794 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
6796 * commands/i386/pc/pxecmd.c: New file.
6798 * fs/i386/pc/pxe.c: Likewise.
6800 * include/grub/i386/pc/pxe.h: Likewise.
6802 2008-08-05 Bean <bean123ch@gmail.com>
6804 * util/console.c (grub_console_cur_color): New variable.
6805 (grub_console_standard_color): Likewise.
6806 (grub_console_normal_color): Likewise.
6807 (grub_console_highlight_color): Likewise.
6808 (color_map): Likewise.
6809 (use_color): Likewise.
6810 (NUM_COLORS): New macro.
6811 (grub_ncurses_setcolorstate): Handle color properly.
6812 (grub_ncurses_setcolor): Don't change color here, just remember the
6813 settings, color will be set in grub_ncurses_setcolorstate.
6814 (grub_ncurses_getcolor): New function.
6815 (grub_ncurses_init): Initialize color pairs.
6816 (grub_ncurses_term): New member grub_ncurses_getcolor.
6818 2008-08-05 Colin D Bennett <colin@gibibit.com>
6820 High resolution timer support. Implemented for x86 CPUs using TSC.
6821 Extracted generic grub_millisleep() so it's linked in only as needed.
6822 This requires a Pentium compatible CPU; if the RDTSC instruction is
6823 not supported, then it falls back on the generic grub_get_time_ms()
6824 implementation that uses the machine's RTC.
6826 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
6827 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
6828 `kern/generic/millisleep.c'.
6830 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
6831 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
6833 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
6834 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
6836 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
6838 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6839 `kern/generic/millisleep.c'.
6841 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
6843 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
6845 * kern/generic/rtc_get_time_ms.c: New file.
6847 * kern/generic/millisleep.c: New file.
6849 * kern/misc.c: Don't include
6850 <kern/time.h> anymore.
6851 (grub_millisleep_generic): Removed.
6853 * commands/sleep.c (grub_interruptible_millisleep): Uses
6854 grub_get_time_ms() instead of grub_get_rtc().
6856 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
6858 (grub_cpu_is_cpuid_supported): New inline function.
6859 (grub_cpu_is_tsc_supported): New inline function.
6860 (grub_tsc_init): New function prototype.
6861 (grub_tsc_get_time_ms): New function prototype.
6863 * kern/i386/tsc.c (grub_get_time_ms): New file.
6865 * include/grub/time.h: Include <grub/types.h.
6866 (grub_millisleep_generic): Removed.
6867 (grub_get_time_ms): New prototype.
6868 (grub_install_get_time_ms): New prototype.
6869 (grub_rtc_get_time_ms): New prototype.
6871 * kern/time.c (grub_get_time_ms): New function.
6872 (grub_install_get_time_ms): New function.
6874 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
6875 <grub/time.h> anymore.
6876 (grub_millisleep): Removed.
6877 (grub_machine_init): Call grub_tsc_init.
6879 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
6880 get_time_ms() implementation.
6882 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
6883 (ieee1275_get_time_ms): New function.
6884 (grub_machine_init): Install get_time_ms() implementation.
6886 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
6887 (grub_machine_init): Call grub_tsc_init().
6888 (grub_millisleep): Removed.
6890 * kern/ieee1275/init.c (grub_millisleep): Removed.
6891 (grub_machine_init): Install ieee1275_get_time_ms()
6893 (ieee1275_get_time_ms): New function.
6894 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
6897 2008-08-05 Marco Gerards <marco@gnu.org>
6899 * disk/ata.c: Include <grub/pci.h>.
6900 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
6901 (grub_ata_initialize): Rewritten.
6902 (grub_ata_device_initialize): New function.
6904 2008-08-04 Pavel Roskin <proski@gnu.org>
6906 * kern/main.c: Include grub/mm.h.
6908 2008-08-04 Robert Millan <rmh@aybabtu.com>
6910 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
6911 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
6912 corruption problem).
6914 2008-08-04 Robert Millan <rmh@aybabtu.com>
6916 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
6917 warnings introduced in my last commit.
6919 2008-08-03 Robert Millan <rmh@aybabtu.com>
6921 Make PCI available on all i386 architectures.
6923 * include/grub/i386/pc/pci.h: Move from here ...
6924 * include/grub/i386/pci.h: ... to here.
6926 * include/grub/i386/pc/pci.h: Remove.
6927 * include/grub/i386/efi/pci.h: Remove.
6928 * include/grub/x86_64/efi/pci.h: Remove.
6930 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
6933 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
6934 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
6935 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
6937 * conf/i386-ieee1275.rmk: Likewise.
6939 2008-08-03 Robert Millan <rmh@aybabtu.com>
6941 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
6942 (grub_console_setcursor): Make it possible to set cursor off.
6944 2008-08-03 Robert Millan <rmh@aybabtu.com>
6946 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
6947 of modules instead of assuming which platform provides what.
6948 * util/update-grub.in: Likewise.
6950 2008-08-03 Robert Millan <rmh@aybabtu.com>
6952 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
6953 instead of `grub_install_dos_part' to determine whether a drive needs
6954 to be prepended to prefix (`grub_install_dos_part' is not reliable,
6955 because it can be overridden when loading GRUB via Multiboot).
6957 2008-08-02 Robert Millan <rmh@aybabtu.com>
6959 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
6961 2008-08-02 Robert Millan <rmh@aybabtu.com>
6963 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
6964 of informational grub_dprintf() calls.
6966 2008-08-02 Robert Millan <rmh@aybabtu.com>
6968 * disk/memdisk.c (memdisk_size): Don't initialize.
6969 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
6971 * include/grub/i386/pc/kernel.h
6972 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
6973 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
6974 (grub_memdisk_image_size, grub_arch_memdisk_addr)
6975 (grub_arch_memdisk_size): Remove.
6977 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
6978 field (was only used to transfer a constant). Add `type' field to
6979 support multiple module types.
6980 (grub_module_iterate): New function.
6982 * kern/device.c (grub_device_open): Do not hide error messages
6983 when grub_disk_open() fails. Use grub_print_error() instead.
6985 * kern/i386/pc/init.c (grub_arch_modules_addr)
6986 (grub_arch_memdisk_size): Remove functions.
6987 (grub_arch_modules_addr): Return the module address in high memory
6988 (now that it isn't copied anymore).
6990 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
6991 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
6992 decompression routine (grub_total_module_size already includes that
6993 now). Don't copy modules back to low memory.
6995 * kern/main.c: Include `<grub/mm.h>'.
6996 (grub_load_modules): Split out (and use) ...
6997 (grub_module_iterate): ... this function, which iterates through
6998 module objects and runs a hook.
6999 Comment out grub_mm_init_region() call, as it would cause non-ELF
7000 modules to be overwritten.
7002 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
7003 the memdisk image in its own region, make it part of the module list.
7004 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
7005 (main): Parse --memdisk|-m option, and pass user-provided path as
7006 parameter to generate_image().
7007 (add_segments): Pass `memdisk_path' down to load_modules().
7008 (load_modules): Embed memdisk image in module section when requested.
7009 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
7010 `header.type' instead of `header.offset'.
7012 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
7013 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
7014 (memdisk_mod_LDFLAGS): New variables.
7015 * conf/i386-coreboot.rmk: Likewise.
7016 * conf/i386-ieee1275.rmk: Likewise.
7018 2008-08-02 Robert Millan <rmh@aybabtu.com>
7020 * loader/i386/pc/multiboot.c (playground, forward_relocator)
7021 (backward_relocator): New variables. Used to allocate and relocate
7022 the payload, respectively.
7023 (grub_multiboot_load_elf32): Load into heap instead of requested
7024 address, install the appropriate relocator code in each bound of
7025 the payload, and set the entry point such that
7026 grub_multiboot_real_boot() will jump to one of them.
7028 * kern/i386/loader.S (grub_multiboot_payload_size)
7029 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
7030 (grub_multiboot_payload_entry_offset): New variables.
7031 (grub_multiboot_real_boot): Set cpu context to what the relocator
7032 expects, and jump to the relocator instead of the payload.
7034 * include/grub/i386/loader.h (grub_multiboot_payload_size)
7035 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
7036 (grub_multiboot_payload_entry_offset): Export.
7038 2008-08-01 Bean <bean123ch@gmail.com>
7040 * normal/menu_entry.c (editor_getline): Don't return the original
7041 string as result, as it will be released by lexer once it has done
7044 2008-08-01 Robert Millan <rmh@aybabtu.com>
7046 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
7047 within menuentries, not before them.
7048 util/grub.d/10_hurd.in: Likewise.
7050 2008-08-01 Bean <bean123ch@gmail.com>
7052 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
7053 (bufio_mod_SOURCES): New macro.
7054 (bufio_mod_CFLAGS): Likewise.
7055 (bufio_mod_LDFLAGS): Likewise.
7057 * include/grub/bufio.h: New file.
7059 * io/bufio.c: Likewise.
7061 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
7062 (grub_video_reader_png): Use grub_buffile_open to open file.
7064 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
7065 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
7067 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
7068 (grub_video_reader_tga): Use grub_buffile_open to open file.
7070 * font/manager.c: Include <grub/bufio.h>.
7071 (add_font): Use grub_buffile_open to open file.
7073 2008-07-31 Robert Millan <rmh@aybabtu.com>
7075 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
7076 ELF segments, use a macro for arbitrarily accessing any of them instead
7077 of preparing a pointer that allows access to one at a time.
7078 (grub_multiboot_load_elf64): Likewise.
7080 2008-07-31 Bean <bean123ch@gmail.com>
7082 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
7083 GRUB_KERNEL_MACHINE_DATA_END.
7085 2008-07-30 Robert Millan <rmh@aybabtu.com>
7087 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
7088 Increase from 0x50 to 0x60.
7089 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
7090 use UUIDs to identify the root drive for them. If that's not
7092 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
7093 check, for cross-disk installs.
7095 2008-07-30 Robert Millan <rmh@aybabtu.com>
7097 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
7098 is non-empty, use it to set the `prefix' environment variable instead
7099 of the usual approach.
7100 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
7101 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
7102 environment variable instead of dummy make_install_device().
7104 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
7105 (start): Insert a data section, with `grub_prefix' variable.
7106 * kern/i386/linuxbios/startup.S: Likewise.
7108 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
7109 New variable reference.
7110 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
7111 New macro. Defines offset of `grub_prefix' within startup.S (relative
7113 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
7114 section within startup.S (relative to `start').
7115 * include/grub/i386/coreboot/kernel.h: Likewise.
7117 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
7118 Overwrite grub_prefix with its contents, at the beginning of the
7120 (main): Understand -p|--prefix.
7122 2008-07-30 Robert Millan <rmh@aybabtu.com>
7124 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
7126 2008-07-30 Robert Millan <rmh@aybabtu.com>
7128 * term/i386/pc/vga_text.c (grub_console_cls): Use
7129 grub_console_gotoxy() to go back to beginning of the screen.
7130 Found by Patrick Georgi <patrick.georgi@coresystems.de>
7132 2008-07-29 Christian Franke <franke@computer.org>
7134 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
7135 Add conversion of emulated mount points on Cygwin.
7137 2008-07-29 Christian Franke <franke@computer.org>
7139 * util/update-grub.in: Add a check for admin
7141 Remove old `grub.cfg.new' before creation.
7142 Add `-f' to `mv' to handle the different filesystem
7143 semantics of Windows.
7145 2008-07-29 Bean <bean123ch@gmail.com>
7147 * normal/main.c (get_line): Fix buffer overflow bug.
7149 2008-07-28 Robert Millan <rmh@aybabtu.com>
7151 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
7152 (struct grub_apple_header): New struct. Describes the layout of
7154 (apple_partition_map_iterate): Check the header magic as well as the
7155 partition magic (which was already being checked).
7157 2008-07-28 Pavel Roskin <proski@gnu.org>
7159 * genmk.rb: Add a warning to the beginning of the output that
7160 it's a generated file and should not be edited.
7162 2008-07-28 Robert Millan <rmh@aybabtu.com>
7164 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
7165 with the same number are found, just use issue a warning with
7166 grub_dprintf(), as this error has been reported to be non-fatal.
7168 2008-07-27 Robert Millan <rmh@aybabtu.com>
7170 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
7173 2008-07-27 Bean <bean123ch@gmail.com>
7175 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
7176 (grub_fat_find_dir): Ignore case when comparing filename.
7178 2008-07-27 Bean <bean123ch@gmail.com>
7180 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
7181 smallino, as it's more descriptive, and i8count can be confused with
7182 the other field count.
7183 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
7186 2008-07-27 Bean <bean123ch@gmail.com>
7188 * commands/crc.c: New file.
7190 * lib/crc.c: Likewise.
7192 * include/grub/lib/crc.h: Likewise.
7194 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
7196 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
7197 (hexdump): Move this function to ...
7199 * lib/hexdump.c: ... here.
7201 * include/grub/hexdump.h: Renamed to ...
7203 * include/grub/lib/hexdump.h: ... this.
7205 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
7207 * util/grub-editenv.c: Likewise.
7209 * include/envblk.h: Renamed to ...
7211 * include/lib/envblk.h: ... this.
7213 * util/envblk.c: Renamed to ...
7215 * lib/envblk.c: ... this.
7217 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
7219 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
7220 (pkglib_MODULES): Add crc.mod.
7221 (hexdump_mod_SOURCES): Add lib/hexdump.c.
7222 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
7223 (crc_mod_SOURCES): New macro.
7224 (crc_mod_CFLAGS): Likewise.
7225 (crc_mod_LDFLAGS): Likewise.
7227 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
7229 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7231 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
7233 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7235 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7237 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
7239 * commands/help.c: Include <grub/term.h>.
7240 (TERM_WIDTH): Removed. Updated all users.
7242 2008-07-27 Pavel Roskin <proski@gnu.org>
7244 * util/getroot.c (find_root_device): Rephrase a comment to avoid
7245 spurious warnings about a comment within a comment.
7247 2008-07-25 Robert Millan <rmh@aybabtu.com>
7249 * util/getroot.c (find_root_device): Skip devices that match
7250 /dev/dm-[0-9]. This lets the real device be found for any type of
7251 abstraction (LVM, EVMS, RAID..).
7252 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
7253 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
7254 device is found first, find_root_device() will now skip it.
7256 2008-07-24 Pavel Roskin <proski@gnu.org>
7258 * include/grub/types.h: Use __builtin_bswap32() and
7259 __builtin_bswap64() with gcc 4.3 and newer.
7261 2008-07-24 Christian Franke <franke@computer.org>
7263 * util/i386/pc/grub-install.in: If `--debug' is specified,
7264 pass `--verbose' to grub-setup.
7265 Abort script if make_system_path_relative_to_its_root() fails.
7267 2008-07-24 Bean <bean123ch@gmail.com>
7269 * configure.ac: Fixed a bug caused by the previous cygwin patch,
7270 variable `target_platform' should be `platform'.
7272 2008-07-24 Bean <bean123ch@gmail.com>
7274 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
7275 (grub_png_init_fixed_block): New function.
7276 (grub_png_decode_image_data): Handle fixed huffman code compression.
7278 2008-07-24 Bean <bean123ch@gmail.com>
7280 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
7281 (grub_pe2elf_SOURCES): New macro.
7282 (CLEANFILES): Add grub-pe2elf.
7284 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
7285 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
7286 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
7287 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
7288 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
7289 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
7290 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
7291 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
7292 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
7293 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
7294 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
7295 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
7296 (GRUB_PE32_DT_FUNCTION): Likewise.
7297 (GRUB_PE32_REL_I386_DIR32): Likewise.
7298 (GRUB_PE32_REL_I386_REL32): Likewise.
7299 (grub_pe32_symbol): New structure.
7300 (grub_pe32_reloc): Likewise.
7302 * util/grub-pe2elf.c: New file.
7304 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
7305 start symbol in non pc platform.
7307 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
7309 The following patches are from Christian Franke.
7311 * include/grub/dl.h: Remove .previous, gas supports this only
7314 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
7315 Remove .type, gas supports this only for ELF format.
7317 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
7318 nullbytes in symbol table. This fixes an infinite loop if table is
7321 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
7322 TARGET_IMG_LDFLAGS and EXEEXT.
7324 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
7325 TARGET_IMG_LDFLAGS_AC.
7326 (grub_CHECK_STACK_ARG_PROBE): New function.
7328 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
7330 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
7332 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
7333 to set TARGET_IMG_LD* accordingly.
7334 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
7335 Add call to grub_CHECK_STACK_ARG_PROBE.
7336 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
7338 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
7340 * genmk.rb: Add EXEEXT to CLEANFILES.
7342 2008-07-23 Robert Millan <rmh@aybabtu.com>
7344 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
7345 define the codes for arrows and lines used for the menu).
7346 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
7349 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
7350 fonts, because the latter are too slow.
7352 2008-07-21 Bean <bean123ch@gmail.com>
7354 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
7355 a20. Run keyboard test last, as it will cause macbook to halt.
7357 2008-07-18 Pavel Roskin <proski@gnu.org>
7359 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
7360 load foreign architecture modules correctly anyway. Keep
7361 support for loading host architecture modules, whether we
7362 compile them or not.
7364 2008-07-17 Pavel Roskin <proski@gnu.org>
7366 * configure.ac: Use -m32 or -m64 regardless of whether we had to
7367 change target_cpu. The compiler default can mismatch target_cpu
7370 * disk/efi/efidisk.c: Fix format warnings on x86_64.
7371 * kern/efi/efi.c: Likewise.
7373 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
7374 target compiler is functional.
7375 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
7378 * configure.ac: Default to efi platform for x86_64-apple. Allow
7379 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
7380 adjustments from the rest, only do them if target is not
7381 explicitly given. Merge other adjustments with the final sanity
7382 check. Remove an extraneous check for supported CPU. Be
7383 specific which CPU and which platform is not supported.
7385 * configure.ac: Default to pc platform for x86_64.
7387 2008-07-17 Robert Millan <rmh@aybabtu.com>
7389 Partial LinuxBIOS -> Coreboot rename.
7391 * conf/i386-linuxbios.rmk: Renamed to ...
7392 * conf/i386-coreboot.rmk: ... this.
7393 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
7394 * configure.ac: Accept "coreboot" as input platform (but maintain
7395 compatibility with "linuxbios").
7396 * include/grub/i386/linuxbios: Renamed to ...
7397 * include/grub/i386/coreboot: ... this.
7399 2008-07-17 Bean <bean123ch@gmail.com>
7401 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
7402 (appleldr_mod_SOURCE): New variable.
7403 (appleldr_mod_CFLAGS): Likewise.
7404 (appleldr_mod_LDFLAGS): Likewise.
7405 (pci_mod_SOURCES): Likewise.
7406 (pci_mod_CFLAGS): Likewise.
7407 (pci_mod_LDFLAGS): Likewise.
7408 (lspci_mod_SOURCES): Likewise.
7409 (lspci_mod_CFLAGS): Likewise.
7410 (lspci_mod_LDFLAGS): Likewise.
7412 * conf/x86_64-efi.rmk: New file.
7414 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
7416 (grub_efidisk_write): Likewise.
7418 * include/efi/api.h (efi_call_0): New macro.
7419 (efi_call_1): Likewise.
7420 (efi_call_2): Likewise.
7421 (efi_call_3): Likewise.
7422 (efi_call_4): Likewise.
7423 (efi_call_5): Likewise.
7424 (efi_call_6): Likewise.
7426 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
7427 grub_rescue_cmd_chainloader.
7429 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
7430 (grub_pe32_optional_header): Change some fields based on i386 or
7432 (GRUB_PE32_PE32_MAGIC): Likewise.
7434 * include/grub/efi/uga_draw.h: New file.
7436 * include/grub/elf.h (STN_ABS): New constant.
7437 (R_X86_64_NONE): Relocation constant for x86_64.
7438 (R_X86_64_64): Likewise.
7439 (R_X86_64_PC32): Likewise.
7440 (R_X86_64_GOT32): Likewise.
7441 (R_X86_64_PLT32): Likewise.
7442 (R_X86_64_COPY): Likewise.
7443 (R_X86_64_GLOB_DAT): Likewise.
7444 (R_X86_64_JUMP_SLOT): Likewise.
7445 (R_X86_64_RELATIVE): Likewise.
7446 (R_X86_64_GOTPCREL): Likewise.
7447 (R_X86_64_32): Likewise.
7448 (R_X86_64_32S): Likewise.
7449 (R_X86_64_16): Likewise.
7450 (R_X86_64_PC16): Likewise.
7451 (R_X86_64_8): Likewise.
7452 (R_X86_64_PC8): Likewise.
7454 * include/grub/i386/efi/pci.h: New file.
7456 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
7457 Change it value based on platform.
7458 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
7459 (GRUB_E820_RAM): Likewise.
7460 (GRUB_E820_RESERVED): Likewise.
7461 (GRUB_E820_ACPI): Likewise.
7462 (GRUB_E820_NVS): Likewise.
7463 (GRUB_E820_EXEC_CODE): Likewise.
7464 (GRUB_E820_MAX_ENTRY): Likewise.
7465 (grub_e820_mmap): New structure.
7466 (linux_kernel_header): Change the efi field according to different
7467 kernel version, also field from linux_kernel_header.
7469 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
7471 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
7472 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
7473 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
7474 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
7475 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
7476 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
7477 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
7478 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
7479 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
7480 (GRUB_PCI_ADDR_IO_MASK): Likewise.
7482 * include/grub/x86_64/efi/kernel.h: New file.
7484 * include/grub/x86_64/efi/loader.h: Likewise.
7486 * include/grub/x86_64/efi/machine.h: Likewise.
7488 * include/grub/x86_64/efi/pci.h: Likewise.
7490 * include/grub/x86_64/efi/time.h: Likewise.
7492 * include/grub/x86_64/linux.h: Likewise.
7494 * include/grub/x86_64/setjmp.h: Likewise.
7496 * include/grub/x86_64/time.h: Likewise.
7498 * include/grub/x86_64/types.h: Likewise.
7500 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
7501 GRUB_TARGET_SIZEOF_VOID_P.
7503 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
7504 (grub_efi_locate_handle): Likewise.
7505 (grub_efi_open_protocol): Likewise.
7506 (grub_efi_set_text_mode): Likewise.
7507 (grub_efi_stall): Likewise.
7508 (grub_exit): Likewise.
7509 (grub_reboot): Likewise.
7510 (grub_halt): Likewise.
7511 (grub_efi_exit_boot_services): Likewise.
7512 (grub_get_rtc): Likewise.
7514 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
7515 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
7516 (grub_efi_allocate_pages): Wrap efi calls.
7517 (grub_efi_free_pages): Wrap efi calls.
7518 (grub_efi_get_memory_map): Wrap efi calls.
7520 * kern/x86_64/dl.c: New file.
7522 * kern/x86_64/efi/callwrap.S: Likewise.
7524 * kern/x86_64/efi/startup.S: Likewise.
7526 * loader/efi/appleloader.c: Likewise.
7528 * loader/efi/chainloader.c (cmdline): New variable.
7529 (grub_chainloader_unload): Wrap efi calls.
7530 (grub_chainloader_boot): Likewise.
7531 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
7534 * loader/efi/chainloader_normal.c (chainloader_command):
7535 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
7538 * loader/i386/efi/linux.c (allocate_pages): Change allocation
7540 (grub_e820_add_region): New function.
7541 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
7543 (grub_find_video_card): New function.
7544 (grub_linux_setup_video): New function.
7545 (grub_rescue_cmd_linux): Probe for video information.
7547 * normal/x86_64/setjmp.S: New file.
7549 * term/efi/console.c (map_char): New function.
7550 (grub_console_putchar): Map unicode char.
7551 (grub_console_checkkey): Wrap efi calls.
7552 (grub_console_getkey): Likewise.
7553 (grub_console_getwh): Likewise.
7554 (grub_console_gotoxy): Likewise.
7555 (grub_console_cls): Likewise.
7556 (grub_console_setcolorstate): Likewise.
7557 (grub_console_setcursor): Likewise.
7559 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
7561 2008-07-16 Pavel Roskin <proski@gnu.org>
7563 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
7566 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
7567 pointer, not an integer. This fixes a warning and prevents
7568 precision loss on 64-bit systems.
7569 (relocate_addresses): Remove unneeded cast.
7571 2008-07-15 Pavel Roskin <proski@gnu.org>
7573 * kern/i386/ieee1275/init.c: Include grub/cache.h.
7575 * term/ieee1275/ofconsole.c: Disable code unused on i386.
7577 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
7578 Fix comparison between signed and unsigned.
7580 * include/grub/i386/ieee1275/console.h: Declare
7581 grub_console_init() and grub_console_fini().
7583 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
7584 It's empty and unused.
7586 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
7587 beginning to avoid warnings with some compilers.
7589 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
7590 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
7592 2008-07-14 Pavel Roskin <proski@gnu.org>
7594 * kern/env.c (grub_register_variable_hook): Don't copy empty
7595 string, it leaks memory. Pass "" to grub_env_set(), it should
7596 handle constant strings.
7598 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
7599 * commands/cmp.c (grub_cmd_cmp): Likewise.
7600 * kern/dl.c (grub_dl_flush_cache): Likewise.
7601 (grub_dl_load_core): Likewise.
7602 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
7603 (grub_elf64_load_phdrs): Likewise.
7605 2008-07-13 Pavel Roskin <proski@gnu.org>
7607 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
7608 between signed and unsigned.
7609 (LzmaEnc_Finish): Fix warning about an unused parameter.
7611 2008-07-13 Bean <bean123ch@gmail.com>
7613 * Makefile.in (enable_lzo): New rule.
7615 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
7617 * configure.ac (ENABLE_LZO): New option --enable-lzo.
7619 * boot/i386/pc/lnxboot.S: #include <config.h>.
7621 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
7622 its value according to the compression algorithm used, lzo or lzma.
7624 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
7625 compression algorithm according to configure macro.
7627 * kern/i386/pc/startup.S (codestart): Likewise.
7629 * kern/i386/pc/lzma_decode.S: New file.
7631 * include/grub/lib/LzFind.h: Likewise.
7633 * include/grub/lib/LzHash.h: Likewise.
7635 * include/grub/lib/LzmaDec.h: Likewise.
7637 * include/grub/lib/LzmaEnc.h: Likewise.
7639 * include/grub/lib/LzmaTypes.h: Likewise.
7641 * lib/LzFind.c: Likewise.
7643 * lib/LzmaDec.c: Likewise.
7645 * lib/LzmaEnc.c: Likewise.
7647 2008-07-13 Bean <bean123ch@gmail.com>
7649 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
7650 (grub_ext4_extent_header): New structure.
7651 (grub_ext4_extent): Likewise.
7652 (grub_ext4_extent_idx): Likewise.
7653 (grub_ext4_find_leaf): New function.
7654 (grub_ext2_read_block): Handle extents.
7656 2008-07-12 Robert Millan <rmh@aybabtu.com>
7658 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
7660 2008-07-11 Robert Millan <rmh@aybabtu.com>
7662 * util/grub.d/40_custom.in: New file. Example on how to add custom
7663 entries to /etc/grub.d.
7664 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
7665 40_custom (implicitly, by merging all the grub.d rules).
7667 2008-07-11 Pavel Roskin <proski@gnu.org>
7669 * commands/read.c (grub_getline): Fix invalid memory access.
7670 Don't add newline to the variable value.
7672 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
7673 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
7674 (serial_hw_get_port): Check validity of the port number.
7675 (grub_cmd_serial): Check return value of serial_hw_get_port().
7677 2008-07-07 Pavel Roskin <proski@gnu.org>
7679 * boot/i386/pc/diskboot.S (notification_string): Replace
7680 "Loading kernel" with just "loading". This is shorter, less
7681 confusing and saves a few bytes for possible future changes.
7683 2008-07-05 Pavel Roskin <proski@gnu.org>
7685 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
7686 size for ATAPI devices, they are undefined. Output sector
7687 number in decimal form.
7689 * disk/ata.c: Use named constants for status bits.
7691 2008-07-04 Pavel Roskin <proski@gnu.org>
7693 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
7694 grub_addr_t before casting it to the void pointer to fix a
7695 warning. Non-addressable regions are discarded earlier.
7696 (grub_arch_modules_addr): Cast _end to grub_addr_t.
7697 * kern/i386/linuxbios/table.c: Include grub/misc.h.
7698 (check_signature): Don't shadow table_header.
7699 (grub_linuxbios_table_iterate): Cast numeric constants to
7700 grub_linuxbios_table_header_t.
7701 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
7704 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
7707 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
7708 pointer, which can cause warnings. Support 64-bit addresses.
7710 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
7711 of sizeof(long). This fixes PowerPC image generation on x86_64.
7713 2008-07-04 Robert Millan <rmh@aybabtu.com>
7715 This fixes a performance issue when pc & gpt partmap iterators
7716 didn't abort iteration even after our hook found what it was
7717 looking for (often causing expensive probes of non-existent drives).
7719 Some callers relied on previous buggy behaviour, since they would
7720 raise an error when their own hooks caused early abortion of its
7723 * kern/device.c (grub_device_open): Improve error message.
7724 * disk/lvm.c (grub_lvm_open): Likewise.
7725 * disk/raid.c (grub_raid_open): Likewise.
7727 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
7728 when hook requests it, independently of grub_errno.
7729 (pc_partition_map_probe): Do not fail when find_func() caused
7730 early abortion of pc_partition_map_iterate().
7732 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
7733 when hook requests it, independently of grub_errno.
7734 (gpt_partition_map_probe): Do not fail when find_func() caused
7735 early abortion of gpt_partition_map_iterate().
7737 * kern/partition.c (grub_partition_iterate): Abort parent iteration
7738 when hook requests it, independently of grub_errno. Do not fail when
7739 part_map_iterate_hook() caused early abortion of p->iterate().
7741 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
7742 when grub_partition_iterate() returned with non-zero.
7744 2008-07-03 Pavel Roskin <proski@gnu.org>
7746 * disk/ata.c (grub_ata_pio_write): Check status before writing,
7747 like we do in grub_ata_pio_read().
7748 (grub_ata_readwrite): Always write individual sectors. Fix the
7749 sector count for the remainder.
7750 (grub_ata_write): Enable writing to ATA devices. Correctly
7751 report error for ATAPI devices.
7753 2008-07-02 Pavel Roskin <proski@gnu.org>
7755 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
7758 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
7759 for every read sector, we already increment it for the whole
7760 batch. This fixes reading more than 256 sectors at once.
7762 * util/grub-editenv.c (cmd_info): Cast argument to long
7763 explicitly. ptrdiff_t reduces to int on i386.
7765 * util/grub-editenv.c (main): Be specific which parameter is
7768 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
7769 (memdisk): Make memdisk_orig_addr a pointer.
7771 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
7772 for file offsets, use grub_off_t instead. Fix printf format
7775 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
7776 there. Real unexpected warnings should not drown in the noise
7777 about known problems.
7779 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
7780 grub_disk_addr_t for memory addresses.
7782 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
7783 explicitly to fix a warning.
7785 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
7787 * Makefile.in (MODULE_LDFLAGS): New variable.
7788 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
7789 the linker accepts --build-id=none.
7790 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
7792 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
7794 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
7795 those in Linux XFS code. Provide a way to access 64-bit parent
7797 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
7798 the end of struct grub_xfs_dir_header.
7800 2008-07-02 Bean <bean123ch@gmail.com>
7802 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
7803 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
7804 and GRUB_IEEE1275_FLAG_NO_ANSI.
7806 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
7807 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
7808 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
7810 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
7811 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
7813 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
7814 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
7816 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
7817 esc sequence on non ANSI terminal.
7818 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
7820 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
7823 2008-07-02 Bean <bean123ch@gmail.com>
7825 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
7826 (grub_editenv_SOURCES): New variable.
7827 (pkglib_MODULES): Add loadenv.mod.
7828 (loadenv_mod_SOURCES): New variable.
7829 (loadenv_mod_CFLAGS): Likewise.
7830 (loadenv_mod_LDFLAGS): Likewise.
7832 * include/grub/envblk.h: New file.
7834 * util/envblk.c: New file.
7836 * util/grub-editenv.c: New file.
7838 * commands/loadenv.c: New file.
7840 2008-07-01 Pavel Roskin <proski@gnu.org>
7842 * include/multiboot2.h (struct multiboot_tag_module): Use char,
7843 not unsigned char. This fixes warnings and is consistent with
7846 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
7848 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
7850 * term/tparm.c (analyze): Always set *popcount.
7852 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
7853 cast to fix a warning.
7855 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
7856 cast to suppress a warning.
7858 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
7859 grub_fshelp_read_file() expects.
7861 * fs/fat.c: Fix UUID calculation on big-endian systems. We
7862 write uuid as a 32-bit value in CPU byte order, so declare and
7865 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
7866 long if the format specifier expects it.
7867 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
7868 * partmap/pc.c (pc_partition_map_iterate): Likewise.
7869 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
7870 long to fix a warning.
7871 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
7872 grub_dprintf() arguments to fix warnings.
7874 2008-06-30 Pavel Roskin <proski@gnu.org>
7876 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
7877 install_bsd_part immediately before core.img is embedded or
7878 modified on disk. This fixes core.img verification if core.img
7881 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
7882 core_path to calculate the blocklist.
7883 Patch from Javier MartÃn <lordhabbit@gmail.com>
7885 2008-06-29 Robert Millan <rmh@aybabtu.com>
7887 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
7888 block to disk block.
7889 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
7890 Patch from Niels Böhm <bitbucket@arcor.de>
7892 2008-06-29 Robert Millan <rmh@aybabtu.com>
7894 * util/update-grub_lib.in (font_path): Search for fonts in
7895 /boot/grub first, which is more likely to be readable (we aren't
7896 deciding where fonts live, just looking for them).
7898 2008-06-26 Pavel Roskin <proski@gnu.org>
7900 * util/biosdisk.c (read_device_map): Don't leave dead map
7901 entries for devices failing stat() check.
7903 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
7904 core_path_dev for the core.img path on the target device.
7906 2008-06-26 Robert Millan <rmh@aybabtu.com>
7908 * disk/fs_uuid.c: New file.
7909 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
7910 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
7911 (fs_uuid_mod_LDFLAGS): New variables.
7912 * include/grub/disk.h (grub_disk_dev_id): Add
7913 `GRUB_DISK_DEVICE_UUID_ID'.
7914 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
7915 implement iterate().
7917 2008-06-26 Robert Millan <rmh@aybabtu.com>
7919 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
7920 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
7921 Linux image includes no initrd.
7923 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
7925 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
7926 call to resolve the core image location that effectively appended the
7929 2008-06-21 Robert Millan <rmh@aybabtu.com>
7931 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
7934 * util/grub.d/10_hurd.in: ... to here ...
7935 * util/grub.d/10_linux.in: ... and here.
7937 2008-06-19 Robert Millan <rmh@aybabtu.com>
7939 * kern/main.c (grub_main): Export `prefix' variable immediately
7940 after it has been set by grub_machine_set_prefix().
7942 2008-06-19 Robert Millan <rmh@aybabtu.com>
7944 * commands/search.c (search_label, search_fs_uuid, search_file): Print
7945 search result when not saving to variable, not the other way around.
7946 When saving to variable, abort iteration as soon as a match is found.
7948 2008-06-19 Robert Millan <rmh@aybabtu.com>
7950 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
7951 check for partition that provides /boot/grub. Its logic is flawed,
7952 as it prevents prepare_grub_to_access_device() from being called
7955 2008-06-19 Robert Millan <rmh@aybabtu.com>
7957 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
7958 "insmod" command directly when abstraction modules are needed,
7959 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
7960 since it had already been processed).
7962 2008-06-19 Pavel Roskin <proski@gnu.org>
7964 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
7965 changed. This is needed in case GRUB_LIBDIR changes.
7966 * conf/i386-ieee1275.rmk: Likewise.
7967 * conf/i386-linuxbios.rmk: Likewise.
7968 * conf/i386-pc.rmk: Likewise.
7969 * conf/powerpc-ieee1275.rmk: Likewise.
7971 2008-06-18 Pavel Roskin <proski@gnu.org>
7973 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
7974 kernel_elf_symlist.c to symlist.c for consistency with other
7975 architectures. Update all users.
7976 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
7978 2008-06-18 Robert Millan <rmh@aybabtu.com>
7980 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
7983 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
7984 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
7985 a RAID device, run setup() for all members independently on whether
7986 LVM abstraction is being used.
7987 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
7988 If grub-mkimage has set `*install_dos_part == -2', don't override this
7990 Perform *install_dos_part adjustments independently on whether
7991 we're embedding or not.
7992 Clarify error message when image is too big for embedding.
7993 Remove duplicate *install_dos_part stanza.
7995 2008-06-17 Robert Millan <rmh@aybabtu.com>
7997 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
7998 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
8000 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
8001 values in grub_ofconsole_normal_color and
8002 grub_ofconsole_highlight_color (they're not directly related to
8003 background and foreground).
8004 (grub_ofconsole_setcolorstate): Extract background and foreground
8005 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
8007 2008-06-17 Robert Millan <rmh@aybabtu.com>
8009 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
8010 /boot/grub for the check in last commit, not /boot (they could be
8011 different partitions).
8013 2008-06-16 Robert Millan <rmh@aybabtu.com>
8015 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
8016 asked to setup access for the same partition that provides /boot,
8017 don't bother using UUIDs since our root already has the value we
8020 2008-06-16 Robert Millan <rmh@aybabtu.com>
8022 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
8024 Patch from Sven Mueller <sven@debian.org>.
8026 2008-06-16 Robert Millan <rmh@aybabtu.com>
8028 * util/update-grub.in: Check for $EUID instead of $UID.
8029 Reported by Vincent Zweije.
8031 2008-06-16 Bean <bean123ch@gmail.com>
8033 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
8034 (grub_ext2_read_block): Likewise.
8035 (grub_ext2_read_inode): Likewise.
8036 (grub_ext2_mount): Likewise.
8037 (grub_ext2_close): Likewise.
8038 (grub_ext3_get_journal): Removed.
8040 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
8041 (grub_reiserfs_read_symlink): Likewise.
8042 (grub_reiserfs_mount): Likewise.
8043 (grub_reiserfs_open): Likewise.
8044 (grub_reiserfs_read): Likewise.
8045 (grub_reiserfs_close): Likewise.
8046 (grub_reiserfs_get_journal): Removed.
8048 * fs/fshelp.c (grub_fshelp_read): Removed.
8049 (grub_fshelp_map_block): Likewise.
8051 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
8052 (grub_fshelp_journal): Likewise.
8053 (grub_fshelp_read): Likewise.
8054 (grub_fshelp_map_block): Likewise.
8056 2008-06-16 Pavel Roskin <proski@gnu.org>
8058 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
8059 floating point anymore.
8060 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
8062 2008-06-15 Pavel Roskin <proski@gnu.org>
8064 * commands/ls.c (grub_ls_list_files): Use integer calculations
8065 for human readable format, avoid floating point use.
8066 * kern/misc.c (grub_ftoa): Remove.
8067 (grub_vsprintf): Remove floating point support.
8069 2008-06-15 Robert Millan <rmh@aybabtu.com>
8071 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
8073 Reported by Max Vozeler.
8075 2008-06-15 Robert Millan <rmh@aybabtu.com>
8077 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
8078 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
8080 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
8081 the beginning of the prefix.
8083 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
8084 It is assumed that if we have a memdisk, grub-mkimage has set
8085 grub_prefix to include the "(memdisk)" drive in it.
8087 2008-06-15 Robert Millan <rmh@aybabtu.com>
8089 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
8090 Initialize keyboard controller after registering the terminal, so that
8091 grub_printf() can be called from grub_keyboard_controller_init().
8093 2008-06-15 Robert Millan <rmh@aybabtu.com>
8095 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
8096 extent-btree which is written as big endian on disk.
8097 Reported by Alain Greppin <al@chilibi.org>.
8099 2008-06-14 Robert Millan <rmh@aybabtu.com>
8101 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
8102 * util/i386/pc/grub-install.in (modules): Likewise.
8104 2008-06-13 Pavel Roskin <proski@gnu.org>
8106 * commands/ls.c (grub_ls_list_files): Fix format warnings.
8108 2008-06-13 Bean <bean123ch@gmail.com>
8110 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
8112 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
8114 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
8115 to indicate sparse block.
8117 2008-06-12 Pavel Roskin <proski@gnu.org>
8119 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
8120 number, grub_fshelp_read() does it for us.
8122 * fs/fshelp.c (grub_fshelp_read): New function. Implement
8123 linear disk read with journal translation.
8124 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
8125 * include/grub/fshelp.h: Declare grub_fshelp_read().
8127 2008-06-09 Pavel Roskin <proski@gnu.org>
8129 * fs/minix.c (grub_minix_mount): Handle error reading
8132 2008-06-08 Robert Millan <rmh@aybabtu.com>
8134 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
8135 don't append the RAID prefix afterwards.
8136 Reported by Clint Adams.
8138 2008-06-08 Robert Millan <rmh@aybabtu.com>
8140 Based on description from Pavel:
8141 * kern/disk.c (grub_disk_check_range): Rename to ...
8142 (grub_disk_adjust_range): ... this. Add a comment explaining the
8143 tasks performed by this function.
8145 2008-06-08 Robert Millan <rmh@aybabtu.com>
8147 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
8148 `num_serial' (for consistency with other variables).
8149 (struct grub_ntfs_data): Add `uuid' member.
8150 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
8151 (grub_ntfs_uuid): New function.
8152 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
8154 2008-06-07 Pavel Roskin <proski@gnu.org>
8156 * util/biosdisk.c (open_device): Revert last change to the
8157 function, it broke installation. The sector needs to be
8158 different dependent on which device is opened.
8160 2008-06-06 Robert Millan <rmh@aybabtu.com>
8162 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
8163 rest of GRUB, and breakage doesn't happen if its value were modified.
8165 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
8166 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
8167 a constant (same value).
8168 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
8169 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
8171 2008-06-06 Robert Millan <rmh@aybabtu.com>
8173 * util/biosdisk.c (open_device): Do not modify sector offset when
8174 accessing a partition. kern/disk.c already handles this for us.
8176 2008-06-06 Robert Millan <rmh@aybabtu.com>
8178 * util/grub-emu.c (grub_machine_init): Move code in this function from
8180 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
8181 segfault in case grub_printf() is called).
8183 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
8184 grub_probe. Update all users not to explicitly add it again.
8185 (grub_device): New variable; contains corresponding device for grubdir.
8186 (fs_module, partmap_module, devabstraction_module): Pass
8187 `--device ${grub_device}' to grub_probe to avoid traversing /dev
8190 2008-06-05 Robert Millan <rmh@aybabtu.com>
8192 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
8193 is found, print it (same layout as with labels).
8195 2008-06-04 Robert Millan <rmh@aybabtu.com>
8197 * util/biosdisk.c (get_drive): Rename to ...
8198 (find_grub_drive): ... this. Update all users.
8200 (get_os_disk): Rename to ...
8201 (convert_system_partition_to_system_disk): ... this. Update all users.
8203 (find_drive): Rename to ...
8204 (find_system_device): ... this. Update all users.
8206 2008-06-04 Robert Millan <rmh@aybabtu.com>
8208 * util/biosdisk.c (get_os_disk): Handle IDA devices.
8209 * util/grub-mkdevicemap.c (get_mmc_disk_name)
8210 (make_device_map): Likewise.
8212 2008-06-01 Robert Millan <rmh@aybabtu.com>
8214 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
8215 before dereferencing it.
8217 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
8218 union with fat12/fat16-specific ones. Add some new fields, including
8219 `num_serial' for both versions.
8220 (struct grub_fat_data): Add `uuid' member.
8221 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
8222 names. Initialize `data->uuid' using `num_serial'.
8223 (grub_fat_uuid): New function.
8224 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
8226 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
8227 (grub_reiserfs_uuid): New function.
8228 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
8231 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
8232 (grub_xfs_uuid): New function.
8233 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
8235 2008-06-01 Robert Millan <rmh@aybabtu.com>
8237 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
8238 code that is backward compatible with pre-uuid search command.
8240 2008-05-31 Robert Millan <rmh@aybabtu.com>
8242 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
8243 floppies after everything else, to ensure floppy drive isn't accessed
8244 unnecessarily (patch from Bean).
8246 2008-05-31 Robert Millan <rmh@aybabtu.com>
8248 * commands/search.c (search_label, search_fs_uuid, search_file): Do
8249 not print device names when we were asked to set a variable.
8251 2008-05-31 Robert Millan <rmh@aybabtu.com>
8253 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
8254 using "cursor-on" and "cursor-off" commands (understood at least by
8255 the Open Firmware flavour on OLPC).
8257 2008-05-31 Michael Gorven <michael@gorven.za.net>
8259 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
8260 on and off sequences.
8262 2008-05-31 Robert Millan <rmh@aybabtu.com>
8264 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
8265 * util/update-grub.in: Likewise.
8267 2008-05-30 Pavel Roskin <proski@gnu.org>
8269 * util/biosdisk.c (linux_find_partition): Simplify logic and
8270 make the code more universal. Keep special processing for
8271 devfs, but use a simple rule for all other devices. If the
8272 device ends with a number, append 'p' and the partition number.
8273 Otherwise, append only the partition number.
8275 2008-05-30 Robert Millan <rmh@aybabtu.com>
8277 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
8278 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
8279 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
8280 the `root' parameter to Linux.
8282 2008-05-30 Robert Millan <rmh@aybabtu.com>
8284 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
8285 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
8286 --fs_uuid with --fs-uuid.
8287 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
8288 all filesystems support them).
8290 2008-05-30 Robert Millan <rmh@aybabtu.com>
8292 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
8293 grub_printf() flags, since we're printing in units of 2 bytes.
8295 2008-05-30 Robert Millan <rmh@aybabtu.com>
8297 * util/grub.d/00_header.in: Remove obsolete comment referencing
8298 convert_system_path_to_grub_path().
8299 * util/update-grub.in: Likewise.
8300 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
8301 (convert_system_path_to_grub_path): Add a warning message explaining
8302 that this function is deprecated. Rely on is_path_readable_by_grub()
8303 for the readability checks.
8304 (font_path): Use is_path_readable_by_grub() for the readability
8305 check rather than convert_system_path_to_grub_path().
8307 2008-05-30 Robert Millan <rmh@aybabtu.com>
8309 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
8310 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
8311 converting it first.
8312 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
8313 grub.cfg for access to font file, and afterwards call it again to set
8316 2008-05-30 Robert Millan <rmh@aybabtu.com>
8318 * commands/search.c (options): Add --fs_uuid option.
8319 (search_fs_uuid): New function.
8320 (grub_cmd_search): Fix --set argument passing.
8321 Use search_fs_uuid() when requested via --fs_uuid.
8322 (grub_search_init): Update help message.
8323 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
8324 and redeclare it as an array of 16-bit words.
8325 (grub_ext2_uuid): New function.
8326 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
8327 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
8328 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
8329 (GRUB_DEVICE_BOOT_UUID): New variables.
8330 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
8331 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
8333 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
8334 just assume `root' variable has the right value.
8335 * util/grub.d/10_linux.in: Likewise.
8336 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
8338 (main): Recognise `-t fs_uuid' argument.
8340 2008-05-30 Robert Millan <rmh@aybabtu.com>
8342 * util/biosdisk.c (map): Redefine structure to hold information
8343 about GRUB drive name.
8344 (get_drive): Reimplement without assuming (and verifying) BIOS-like
8346 (call_hook): Remove.
8347 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
8348 member. Assume drive has partitions.
8349 (grub_util_biosdisk_open): Access device names via `.device' struct
8351 (open_device): Likewise.
8352 (find_drive): Likewise.
8353 (read_device_map): Adjust map[] usage to match the new struct
8354 definition. Don't check for duplicates (still possible, but not cheap
8356 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
8357 (make_device_name): Remove assumption of BIOS-like drive names.
8359 2008-05-30 Pavel Roskin <proski@gnu.org>
8361 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
8362 compiling execute.c doesn't need grub_script.tab.h anymore.
8363 (normal/command.c_DEPENDENCIES): Likewise.
8364 (normal/function.c_DEPENDENCIES): Likewise.
8365 * conf/i386-ieee1275.rmk: Likewise.
8366 * conf/i386-linuxbios.rmk: Likewise.
8367 * conf/i386-pc.rmk: Likewise.
8368 * conf/powerpc-ieee1275.rmk: Likewise.
8369 * conf/sparc64-ieee1275.rmk: Likewise.
8371 2008-05-29 Pavel Roskin <proski@gnu.org>
8373 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
8374 when scanning metadata for volume group name.
8376 * include/grub/script.h: Don't include grub_script.tab.h. It's
8377 a generated file, which may only be included from the files with
8378 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
8379 use union YYSTYPE, as the later allows forward declaration.
8380 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
8382 2008-05-29 Robert Millan <rmh@aybabtu.com>
8384 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
8385 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
8386 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
8387 (grub_console_checkkey): Add grub_dprintf() call to report unknown
8390 2008-05-29 Robert Millan <rmh@aybabtu.com>
8392 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
8393 control key combinations.
8395 2008-05-29 Robert Millan <rmh@aybabtu.com>
8397 * util/powerpc/ieee1275/grub-install.in: Move from here ...
8398 * util/ieee1275/grub-install.in: ... to here.
8399 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
8400 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
8401 (grub_install_SOURCES): Likewise.
8403 2008-05-29 Robert Millan <rmh@aybabtu.com>
8405 * fs/affs.c: Update copyright year.
8406 * fs/ext2.c: Likewise.
8407 * fs/fshelp.c: Likewise.
8408 * fs/hfsplus.c: Likewise.
8409 * fs/ntfs.c: Likewise.
8410 * fs/xfs.c: Likewise.
8411 * include/grub/fshelp.h: Likewise.
8412 * util/grub-mkdevicemap.c: Likewise.
8414 2008-05-28 Robert Millan <rmh@aybabtu.com>
8416 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
8417 might need to be fatfs to support some firmware implementations
8420 2008-05-28 Robert Millan <rmh@aybabtu.com>
8422 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
8424 * util/grub-mkdevicemap.c (get_mmc_disk_name)
8425 (make_device_map): Likewise.
8427 2008-05-20 Bean <bean123ch@gmail.com>
8429 * fs/fshelp.c (grub_fshelp_map_block): New function.
8430 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
8431 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
8433 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
8434 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
8435 (grub_fshelp_journal): New structure.
8436 (grub_fshelp_map_block): New function prototype.
8437 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
8438 (grub_fshelp_map_block): Likewise.
8440 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
8441 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
8442 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
8443 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
8444 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
8445 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
8446 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
8447 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
8448 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
8449 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
8450 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
8451 (grub_ext2_sblock): New members for journal support.
8452 (grub_ext3_journal_header): New structure.
8453 (grub_ext3_journal_revoke_header): Likewise.
8454 (grub_ext3_journal_block_tag): Likewise.
8455 (grub_ext3_journal_sblock): Likewise.
8456 (grub_fshelp_node): New members logfile and journal.
8457 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
8458 grub_fshelp_map_block to get real block number.
8459 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
8461 (grub_ext2_read_inode): Likewise.
8462 (grub_ext3_get_journal): New function.
8463 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
8464 (grub_ext2_close): Release memory used by journal.
8466 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
8467 (REISERFS_MAGIC_DESC_BLOCK): New macro.
8468 (grub_reiserfs_transaction_header): Renamed to
8469 grub_reiserfs_description_block, replace field data with real_blocks.
8470 (grub_reiserfs_commit_block): New structure.
8471 (grub_reiserfs_data): New member journal.
8472 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
8474 (grub_reiserfs_read_symlink): Likewise.
8475 (grub_reiserfs_iterate_dir): Likewise.
8476 (grub_reiserfs_open): Likewise.
8477 (grub_reiserfs_read): Likewise.
8478 (grub_reiserfs_get_journal): New function.
8479 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
8480 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
8481 using grub_reiserfs_get_journal.
8482 (grub_reiserfs_close): Release memory used by journal.
8484 * fs/affs.c (grub_affs_read_block): Change block type to
8485 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
8487 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
8489 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
8491 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
8493 * fs/udf.c (grub_udf_read_block): Change block type to
8494 grub_disk_addr_t. Use type cast to avoid warning.
8496 * fs/xfs.c (grub_xfs_read_block): Likewise.
8498 2008-05-16 Christian Franke <franke@computer.org>
8500 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
8501 to ensure that break with ESC will always work.
8502 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
8503 Remove ESC from keyboard queue.
8505 2008-05-16 Christian Franke <franke@computer.org>
8507 * util/biosdisk.c: [__CYGWIN__] Add includes.
8508 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
8509 (get_os_disk): Move variable declarations to OS specific
8510 parts to avoid warning.
8511 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
8512 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
8513 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
8515 * util/getroot.c: [__CYGWIN__] Add includes.
8516 (strip_extra_slashes): Fix "/" case.
8517 [__CYGWIN__] (get_win32_path): New function.
8518 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
8519 [__CYGWIN__] (find_root_device): Disable.
8520 [__CYGWIN__] (get_bootsec_serial): New function.
8521 [__CYGWIN__] (find_cygwin_root_device): Likewise.
8522 [__linux__] (grub_guess_root_device): Add early returns to simplify
8524 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
8525 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
8526 check for Linux only.
8528 2008-05-15 Bean <bean123ch@gmail.com>
8530 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
8531 keyboard hang problem in apple's intel mac.
8533 2008-05-09 Robert Millan <rmh@aybabtu.com>
8535 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
8537 * util/grub-mkdevicemap.c (get_virtio_disk_name)
8538 (make_device_map): Likewise.
8539 Reported by Aurelien Jarno <aurel32@debian.org>
8541 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
8543 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
8544 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
8545 (make_device_map): Output entries for xvd type disks.
8547 2008-05-07 Robert Millan <rmh@aybabtu.com>
8549 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
8551 * util/grub-mkdevicemap.c (get_cciss_disk_name)
8552 (make_device_map): Likewise.
8553 Reported by Roland Dreier <rdreier@cisco.com>
8555 2008-05-07 Robert Millan <rmh@aybabtu.com>
8557 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
8558 grub_strstr() call. Correct a few mistakes in failure path handling.
8560 2008-05-06 Robert Millan <rmh@aybabtu.com>
8562 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
8563 Do not print a trailing slash (therefore, the root directory is an
8565 (convert_system_path_to_grub_path): Do not remove trailing slash
8566 from make_system_path_relative_to_its_root() output.
8568 * util/i386/pc/grub-install.in: Add trailing slash to output from
8569 make_system_path_relative_to_its_root().
8571 2008-05-06 Robert Millan <rmh@aybabtu.com>
8573 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
8574 ensures that output lines aren't intermangled with those sent to
8575 stderr (via grub_util_info()).
8576 * util/grub-probe.c (grub_refresh): Likewise.
8577 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
8579 2008-05-05 Christian Franke <franke@computer.org>
8581 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
8582 Add Cygwin device names.
8583 (get_ide_disk_name) [__CYGWIN__]: Likewise.
8584 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
8585 (check_device): Return error instead of success on empty name.
8586 (make_device_map): Move label inside linux specific code to
8587 prevent compiler warning.
8589 2008-04-30 Robert Millan <rmh@aybabtu.com>
8591 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
8592 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
8594 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
8596 2008-04-29 Robert Millan <rmh@aybabtu.com>
8598 * docs/grub.cfg: New file (example GRUB configuration).
8600 2008-04-26 Robert Millan <rmh@aybabtu.com>
8602 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
8603 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
8604 and `disk/ieee1275/nand.c'.
8606 2008-04-25 Bean <bean123ch@gmail.com>
8608 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
8611 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
8612 change the buffer size to 4096 for cdrom device.
8614 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
8616 (_linux_mod_SOURCES): New variable.
8617 (_linux_mod_CFLAGS): Likewise.
8618 (_linux_mod_LDFLAGS): Likewise.
8619 (linux_mod_SOURCES): Likewise.
8620 (linux_mod_CFLAGS): Likewise.
8621 (linux_mod_LDFLAGS): Likewise.
8622 (nand_mod_SOURCES): Likewise.
8623 (nand_mod_CFLAGS): Likewise.
8624 (nand_mod_LDFLAGS): Likewise.
8626 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
8627 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
8628 type property. (nand device in olpc don't have this property)
8630 * include/grub/disk.h (grub_disk_dev_id): New macro
8631 GRUB_DISK_DEVICE_NAND_ID.
8633 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
8635 (grub_rescue_cmd_initrd): Likewise.
8637 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
8638 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
8639 ofw_cif_handler and ofw_idt, adjust padding number.
8641 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
8642 GRUB_MACHINE_IEEE1275 is defined.
8644 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
8645 Use NESTED_FUNC_ATTR attribute on the hook parameter.
8647 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
8648 on nested function heap_init.
8649 (grub_upper_mem): New variable for i386-ieee1275.
8650 (grub_get_extended_memory): New function for i386-ieee1275.
8651 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
8653 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
8654 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
8657 * loader/i386/ieee1275/linux.c: New file.
8659 * loader/i386/ieee1275/linux_normal.c: New file.
8661 * disk/ieee1275/nand.c: New file.
8663 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
8665 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
8667 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
8669 2008-04-18 Robert Millan <rmh@aybabtu.com>
8671 Restructures early code path on ieee1275 to unify grub_main() as
8672 the first C function that is executed in every platform.
8674 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
8675 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
8677 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
8678 * kern/ieee1275/cmain.c (cmain): Rename to ...
8679 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
8680 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
8683 2008-04-18 Robert Millan <rmh@aybabtu.com>
8685 * util/update-grub.in: Fix syntax error when setting
8686 `GRUB_PRELOAD_MODULES'.
8687 Reported by Stephane Chazelas <stephane@artesyncp.com>
8689 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
8691 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
8692 section into account, newer toolchains generate unique build ids
8693 * configure.ac: remove the test for --build-id=none acceptance,
8694 we want build ids to be preserved
8695 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
8696 far from other sections don't cause the raw binary images grow
8699 2008-04-15 Robert Millan <rmh@aybabtu.com>
8701 * disk/lvm.c: Update copyright year.
8702 * kern/misc.c: Likewise.
8704 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
8706 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
8707 there is no memory left for physical volume name.
8709 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
8711 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
8712 volume name mapping to support bigger than 9 character names properly.
8714 2008-04-13 Robert Millan <rmh@aybabtu.com>
8716 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
8717 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
8719 2008-04-13 Christian Franke <franke@computer.org>
8721 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
8722 to create a floppy emulation boot CD when non emulation mode
8724 Enable Joliet CD filesystem extension.
8726 2008-04-13 Robert Millan <rmh@aybabtu.com>
8728 * kern/misc.c (grub_strncat): Fix off-by-one error.
8729 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
8731 * kern/env.c (grub_env_context_close): Clear current context, not
8733 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
8735 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
8737 2008-04-13 Robert Millan <rmh@aybabtu.com>
8739 Improve robustness when handling LVM.
8741 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
8742 (and leave `*p' unmodified).
8743 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
8745 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
8746 iterating through it.
8747 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
8749 (grub_lvm_scan_device): Check the return value (and fail gracefully
8750 when due) on each grub_lvm_getvalue() or grub_strstr() call.
8751 Don't assume `vg->pvs != NULL' when iterating through it.
8753 2008-04-13 Robert Millan <rmh@aybabtu.com>
8755 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
8756 * genmk.rb (partmap): New variable.
8757 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
8758 (#{partmap}): New target rule.
8759 * genpartmaplist.sh: New file.
8760 * Makefile.in (pkglib_DATA): Add partmap.lst.
8761 (partmap.lst): New target rule.
8762 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
8763 modules (including all partition maps), instead of preloading them.
8765 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
8767 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
8768 `linux-boot-prober' (if installed) to detect other operating
8769 systems which are installed on the computer and add them to
8771 * conf/common.rmk: Build and install 30_os-prober.
8773 2008-04-12 Robert Millan <rmh@aybabtu.com>
8775 * kern/powerpc/ieee1275/init.c: Move from here ...
8776 * kern/ieee1275/init.c: ... to here. Update all users.
8778 * kern/powerpc/ieee1275/cmain.c: Move from here ...
8779 * kern/ieee1275/cmain.c: ... to here. Update all users.
8781 * kern/powerpc/ieee1275/openfw.c: Move from here ...
8782 * kern/ieee1275/openfw.c: ... to here. Update all users.
8784 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
8785 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
8787 2008-04-10 Pavel Roskin <proski@gnu.org>
8789 * configure.ac: Always use "_cv_" in cache variables for
8790 compatibility with Autoconf 2.62.
8792 2008-04-07 Robert Millan <rmh@aybabtu.com>
8794 Revert grub/machine/init.h addition by Pavel (since it breaks on
8795 i386-ieee1275 and others):
8796 * util/i386/pc/misc.c: Remove grub/machine/init.h.
8797 * util/powerpc/ieee1275/misc.c: Likewise.
8799 2008-04-07 Robert Millan <rmh@aybabtu.com>
8801 * util/grub-probe.c (probe): Improve error message.
8803 2008-04-07 Robert Millan <rmh@aybabtu.com>
8805 * util/biosdisk.c (read_device_map): Skip devices that don't exist
8806 (this prevents the presence of a bogus entry from ruining the whole
8809 2008-04-06 Pavel Roskin <proski@gnu.org>
8811 * util/biosdisk.c: Include grub/util/biosdisk.h.
8812 * util/grub-fstest.c (execute_command): Make static.
8813 * util/grub-mkdevicemap.c (check_device): Likewise.
8814 * util/i386/pc/misc.c: Include grub/machine/init.h.
8815 * util/powerpc/ieee1275/misc.c: Likewise.
8816 * util/lvm.c: Include grub/util/lvm.h.
8817 * util/misc.c: Include grub/kernel.h, grub/misc.h and
8819 * util/raid.c: Include grub/util/raid.h.
8820 (grub_util_getdiskname): Make static.
8822 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
8823 grub_hostfs_fini(), as they are called from grub_init_all() and
8824 grub_fini_all() respectively. This fixes an infinite loop in
8825 grub-fstest due to double registration of hostfs.
8826 Reported by Christian Franke <Christian.Franke@t-online.de>
8828 2008-04-05 Pavel Roskin <proski@gnu.org>
8830 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
8831 all 8 functions. Otherwise, probe function 0 only.
8833 2008-04-04 Pavel Roskin <proski@gnu.org>
8835 * commands/lspci.c (grub_lspci_iter): Print the bus number
8838 * commands/lspci.c (grub_pci_classes): Fix typos.
8839 (grub_lspci_iter): Don't print func twice. Print vendor ID
8840 before device ID, as it's normally done.
8842 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
8843 Fix signedness warnings.
8844 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
8846 * util/ieee1275/get_disk_name.c: Include config.h so that
8847 _GNU_SOURCE is defined and getline() is declared. Mark an
8848 unused argument as such. Fix a signedness warning.
8850 2008-04-02 Pavel Roskin <proski@gnu.org>
8852 * genkernsyms.sh.in: Use more robust assignments for CC and
8853 srcdir. Quote srcdir.
8854 * gensymlist.sh.in: Likewise. Assert at the compile time that
8855 the symbol table is not empty.
8857 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
8858 * fs/cpio.c (grub_cpio_read): Likewise.
8860 2008-04-01 Pavel Roskin <proski@gnu.org>
8862 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
8863 * disk/host.c (grub_host_open): Likewise.
8864 * disk/loopback.c (grub_loopback_open): Likewise.
8865 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
8866 disk->id as in disk/host.c, not a multi-character constant.
8868 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
8869 later is obsolete, potentially dangerous and sets a bad example.
8870 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
8871 * util/misc.c (grub_util_get_image_size): Likewise.
8873 * disk/loopback.c (options): Improve help for "--partitions".
8875 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
8876 options to align them with the short options, e.g. "echo -e".
8878 2008-03-31 Bean <bean123ch@gmail.com>
8880 * video/reader/png.c (grub_png_data): New member is_16bit and
8882 (grub_png_decode_image_header): Detect 16 bit png image.
8883 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
8884 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
8885 (grub_video_reader_png): Release memory occupied by image_data.
8887 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
8889 (grub_nfs_mount): Skip the test for sector per cluster.
8891 * include/grub/ntfs.h (MAX_SPC): Removed.
8893 2008-03-31 Bean <bean123ch@gmail.com>
8895 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
8896 (grub_probe_SOURCES): Add fs/afs.c.
8897 (grub_fstest_SOURCES): Likewise.
8898 (afs_mod_SOURCES): New variable.
8899 (afs_mod_CFLAGS): Likewise.
8900 (afs_mod_LDFLAGS): Likewise.
8902 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
8903 (grub_emu_SOURCES): Likewise.
8905 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8907 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8909 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
8911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8913 * fs/afs.c: New file.
8915 2008-03-30 Pavel Roskin <proski@gnu.org>
8917 * disk/host.c: Include grub/misc.h to fix a warning.
8918 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
8919 warnings about implicit declarations.
8921 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
8923 * include/grub/i386/loader.h: Change declaration of
8924 grub_linux_boot() to match what grub_loader_set() expects.
8925 * util/getroot.c (grub_guess_root_device): Return const char* to
8927 * util/grub-probe.c (probe): Fix a warning about uninitialized
8928 abstraction_name variable.
8929 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
8930 second argument as unused to fix a warning.
8932 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
8933 missing grub_error() call.
8935 * util/update-grub_lib.in: Define datarootdir, since Autoconf
8936 2.60 and newer uses it to define datadir.
8938 * commands/sleep.c: Fix warning about implicit declaration.
8939 * disk/memdisk.c: Likewise.
8940 * loader/aout.c: Likewise.
8941 * loader/i386/bsd_normal.c: Likewise.
8942 * util/grub-probe.c: Likewise.
8944 * commands/i386/cpuid.c (has_longmode): Make static.
8945 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
8946 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
8948 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
8949 GDT. This is more robust, as %ds can change.
8950 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
8951 calling real_to_prot().
8952 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
8954 2008-03-28 Pavel Roskin <proski@gnu.org>
8956 * kern/i386/pc/startup.S: Assert that uncompressed functions
8957 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
8958 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
8959 code, as they push parts of the code (error handlers) beyond
8960 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
8961 code as correctness and size.
8963 2008-03-28 Pavel Roskin <proski@gnu.org>
8965 * kern/i386/pc/startup.S
8966 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
8967 data block address to the real mode, keep offset minimal. This
8968 works around a bug in AWARD BIOS on old Athlon systems, which
8969 makes CD detection hang.
8971 2008-03-26 Pavel Roskin <proski@gnu.org>
8973 * normal/color.c (grub_parse_color_name_pair): Make `name' a
8975 * include/grub/normal.h: Add grub_parse_color_name_pair()
8978 2008-03-24 Bean <bean123ch@gmail.com>
8980 * disk/i386/pc/biosdisk.c (cd_start): Removed.
8981 (cd_count): Removed.
8982 (cd_drive): New variable.
8983 (grub_biosdisk_get_drive): Don't check for (cdN) device.
8984 (grub_biosdisk_call_hook): Likewise.
8985 (grub_biosdisk_iterate): Change cdrom detection method.
8986 (grub_biosdisk_open): Replace cd_start with cd_drive.
8987 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
8988 detect cdrom device.
8990 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
8992 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
8993 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
8994 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
8995 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
8996 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
8997 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
8998 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
8999 (grub_biosdisk_cdrp): New structure.
9000 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
9002 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
9004 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
9007 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
9010 2008-03-20 Robert Millan <rmh@aybabtu.com>
9012 Remove 2 TiB limit in ata.mod.
9013 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
9014 (grub_ata_dumpinfo): Print sector count with 0x%llx.
9015 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
9016 grub_uint64_t instead of grub_uint32_t.
9018 2008-03-05 Bean <bean123ch@gmail.com>
9020 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
9021 (grub_multiboot): Set boot device.
9023 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
9025 2008-03-02 Bean <bean123ch@gmail.com>
9027 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
9030 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
9032 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
9035 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
9038 * docs/fdl.texi: New file.
9040 * docs/mdate-sh: New file. Copied from gnulib.
9041 * docs/texinfo.tex: Likewise.
9043 * config.guess: Updated from gnulib.
9044 * install-sh: Likewise.
9046 2008-02-28 Robert Millan <rmh@aybabtu.com>
9048 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
9049 (aout_mod_SOURCES): New variable.
9050 (aout_mod_CFLAGS): Likewise.
9051 (aout_mod_LDFLAGS): Likewise.
9053 * conf/i386-ieee1275.rmk: Likewise.
9055 2008-02-28 Robert Millan <rmh@aybabtu.com>
9057 * util/update-grub.in: Reorganise terminal validity check. Accept
9058 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
9059 Based on suggestion by Franklin PIAT.
9061 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
9063 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
9065 * util/getroot.c (grub_util_check_block_device): New function that
9066 returns the given argument if it is a block device and returns NULL else.
9067 * util/grub-probe.c (argument_is_device): New variable.
9068 (probe): Promote device_name from a variable to an argument. Receive
9069 device_name from grub_util_check_block_device() if path is NULL and from
9070 grub_guess_root_device() else. Do not free() device_name anymore.
9071 (options): Introduce new parameter '-d, --device'.
9072 (main): Add description of the new parameter to the help screen.
9073 Rename path variable to argument. Set argument_is_device if the '-d'
9074 option is given. Pass argument to probe() depending on
9077 2008-02-24 Bean <bean123ch@gmail.com>
9079 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
9080 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
9081 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
9082 (GRUB_ISO9660_VOLDESC_PART): Likewise.
9083 (GRUB_ISO9660_VOLDESC_END): Likewise.
9084 (grub_iso9660_primary_voldesc): New member escape.
9085 (grub_iso9660_data): New member joliet.
9086 (grub_iso9660_convert_string): New function.
9087 (grub_iso9660_mount): Detect joliet extension.
9088 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
9089 (grub_iso9660_iso9660_label): Likewise.
9091 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
9092 (grub_setup_SOURCES): Add fs/udf.c.
9093 (grub_fstest_SOURCES): Likewise.
9094 (udf_mod_SOURCES): New variable.
9095 (udf_mod_CFLAGS): Likewise.
9096 (udf_mod_LDFLAGS): Likewise.
9098 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
9099 (grub_emu_SOURCES): Likewise.
9101 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9103 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9105 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
9107 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9109 * fs/udf.c: New file.
9111 2008-02-24 Robert Millan <rmh@aybabtu.com>
9113 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
9114 (normal/lexer.c_DEPENDENCIES): New variables.
9115 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
9116 (normal/lexer.c_DEPENDENCIES): Likewise.
9117 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
9118 (normal/lexer.c_DEPENDENCIES): Likewise.
9119 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
9120 (normal/lexer.c_DEPENDENCIES): Likewise.
9121 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
9122 (normal/lexer.c_DEPENDENCIES): Likewise.
9123 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
9124 (normal/lexer.c_DEPENDENCIES): Likewise.
9126 2008-02-23 Robert Millan <rmh@aybabtu.com>
9128 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
9129 since they were intended to be in hex. This didn't break previously
9130 because of a bug in gpt_partition_map_iterate() (see below).
9132 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
9133 when checking the validity of GPT header.
9134 Remove `partno', since it always provides the same information as `i'.
9136 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
9138 * include/grub/efi/time.h: Fix a wrong comment.
9140 2008-02-19 Pavel Roskin <proski@gnu.org>
9142 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
9145 2008-02-19 Bean <bean123ch@gmail.com>
9147 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
9148 (aout_mod_SOURCES): New variable.
9149 (aout_mod_CFLAGS): Likewise.
9150 (aout_mod_LDFLAGS): Likewise.
9151 (_bsd_mod_SOURCES): New variable.
9152 (_bsd_mod_CFLAGS): Likewise.
9153 (_bsd_mod_LDFLAGS): Likewise.
9154 (bsd_mod_SOURCES): New variable.
9155 (bsd_mod_CFLAGS): Likewise.
9156 (bsd_mod_LDFLAGS): Likewise.
9158 * include/grub/aout.h: New file.
9160 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
9162 * include/grub/i386/bsd.h: New file.
9164 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
9167 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
9168 function is called, so that it's possible to change it inside the hook.
9169 (grub_elf64_load): Likewise.
9170 (grub_elf_file): Don't close the file if elf header is not found.
9171 (grub_elf_close): Close the file if grub_elf_file fails (The new
9172 grub_elf_file won't close it).
9173 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
9174 (grub_elf64_size): Likewise.
9176 * kern/i386/loader.S (grub_unix_real_boot): New function.
9178 * loader/aout.c: New file.
9180 * loader/i386/bsd.c: New file.
9182 * loader/i386/bsd_normal.c: New file.
9184 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
9186 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
9187 can test other formats.
9189 2008-02-19 Robert Millan <rmh@aybabtu.com>
9191 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
9192 (grub_gpt_partition_type_empty): Redefine with macro from
9193 `<grub/gpt_partition.h>'.
9194 (gpt_partition_map_iterate): Adjust partition type comparison.
9196 Export `entry' as partmap-specific `part.data' struct.
9197 (grub_gpt_header, grub_gpt_partentry): Move from here ...
9199 * include/grub/gpt_partition.h (grub_gpt_header)
9200 (grub_gpt_partentry): ... to here (new file).
9202 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
9204 (grub_gpt_partition_type_bios_boot): New const variable, defined
9205 with macro from `<grub/gpt_partition.h>'.
9207 (setup): Replace `first_start' with `embed_region', which keeps
9208 track of the embed region (and is partmap-agnostic).
9210 Replace find_first_partition_start() with find_usable_region(),
9211 which finds a usable region for embedding using partmap-specific
9212 knowledge (supports PC/MSDOS and GPT).
9214 Fix all assumptions that the embed region start at sector 1, using
9215 `embed_region.start' from now on. Similarly, use `embed_region.end'
9216 rather than `first_start' to calculate available size.
9218 In grub_util_info() message, replace "into after the MBR" with an
9219 indication of the specific sector our embed region starts at.
9221 2008-02-19 Robert Millan <rmh@aybabtu.com>
9223 * DISTLIST: Replace `commands/ieee1275/halt.c' and
9224 `commands/ieee1275/reboot.c' with `commands/halt.c' and
9225 `commands/reboot.c'.
9226 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
9227 (halt_mod_SOURCES): Likewise.
9228 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
9229 (halt_mod_SOURCES): Likewise.
9231 2008-02-17 Christian Franke <franke@computer.org>
9233 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
9235 2008-02-17 Robert Millan <rmh@aybabtu.com>
9237 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
9238 set `first_start' to 0 for non-PC/MSDOS partition maps.
9240 2008-02-16 Robert Millan <rmh@aybabtu.com>
9242 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
9243 do not assume partition map is PC/MSDOS before performing checks that
9244 are specific to that layout.
9246 2008-02-13 Robert Millan <rmh@aybabtu.com>
9248 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
9249 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
9250 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
9252 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
9254 * configure.ac: Only a cosmetic change on the handling of
9255 -fno-stack-protector.
9257 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
9259 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
9260 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
9262 (grub_install_SOURCES): Add halt.mod and reboot.mod.
9263 (halt_mod_SOURCES): New variable.
9264 (halt_mod_CFLAGS): Likewise.
9265 (halt_mod_LDFLAGS): Likewise.
9266 (reboot_mod_SOURCES): Likewise.
9267 (reboot_mod_CFLAGS): Likewise.
9268 (reboot_mod_LDFLAGS): Likewise.
9270 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
9271 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
9273 (halt_mod_SOURCES): Likewise.
9274 (reboot_mod_SOURCES): Likewise.
9276 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
9277 commands/i386/pc/reboot.c by commands/reboot.c.
9278 (reboot_mod_SOURCES): Likewise.
9280 * commands/i386/pc/reboot.c: merge this file ...
9282 * commands/ieee1275/reboot.c: ... and this file ...
9284 * commands/reboot.c: ... to this file.
9285 Add some precompiler directive to include the correct header for
9288 * commands/ieee1275/halt.c: move this file ...
9290 * commands/halt.c: ... to here.
9291 Add some precompiler directive to include the correct header for
9294 * include/grub/efi/efi.h (grub_reboot): New function declaration.
9295 (grub_halt): Likewise.
9297 * kern/efi/efi.c (grub_reboot): New function.
9298 (grub_halt): Likewise.
9300 2008-02-12 Robert Millan <rmh@aybabtu.com>
9302 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
9303 /dev (like it is done for /dev/mapper). This doesn't provide support
9304 for EVMS, but at least it is now easy to identify the problem when it
9307 2008-02-11 Robert Millan <rmh@aybabtu.com>
9309 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
9310 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
9311 comparing it with -1, not 0.
9313 2008-02-10 Robert Millan <rmh@aybabtu.com>
9315 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
9317 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9318 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
9320 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
9321 `disk/lvm.c' to the end of the list.
9322 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
9323 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9325 2008-02-10 Robert Millan <rmh@aybabtu.com>
9327 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
9328 grub_print_error() instead. This will let user know why we're entering
9330 Based on suggestions from Sam Morris.
9332 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
9334 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
9335 on remaining N args, instead of "--" arg N times.
9337 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
9339 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
9340 (fill_with_default_glyph): Changed to use unknown_glyph for fill
9341 pattern for unknown glyphs.
9343 2008-02-09 Robert Millan <rmh@aybabtu.com>
9345 * configure.ac: Probe for `help2man'.
9346 * Makefile.in (builddir): New variable.
9347 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
9348 or otherwise add a few flags/options to it.
9349 (install-local): For every executable utility or script that is
9350 installed, invoke $(HELP2MAN) to install a manpage based on --help
9353 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
9354 that it doesn't prevent --help from working in build tree.
9356 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
9357 with `bug-grub@gnu.org'.
9358 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
9359 * util/update-grub.in (usage): New function.
9360 Implement proper argument check, with support for --help and --version
9361 (as well as existing -y).
9363 2008-02-09 Christian Franke <franke@computer.org>
9365 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
9366 avoid overwriting previous output.
9367 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
9369 2008-02-09 Robert Millan <rmh@aybabtu.com>
9371 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
9374 2008-02-09 Robert Millan <rmh@aybabtu.com>
9376 * commands/sleep.c: New file.
9377 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
9378 (sleep_mod_SOURCES): New variable.
9379 (sleep_mod_CFLAGS): Likewise.
9380 (sleep_mod_LDFLAGS): Likewise.
9382 2008-02-09 Robert Millan <rmh@aybabtu.com>
9384 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
9385 situations in which we can deduce the RAID size and the superblock
9388 2008-02-09 Robert Millan <rmh@aybabtu.com>
9390 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
9391 and return a grub_diskmemberlist_t composed of LVM physical volumes.
9392 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
9394 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
9395 and return a grub_diskmemberlist_t composed of physical array members.
9396 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
9398 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
9400 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
9401 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
9402 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
9404 * util/grub-probe.c (probe): Move partmap probing code from here ...
9405 (probe_partmap): ... to here.
9406 (probe): Use probe_partmap() once for the disk we're probing, and
9407 additionally, when such disk contains a memberlist() struct member,
9408 once for each disk that is contained in the structure returned by
9411 2008-02-09 Robert Millan <rmh@aybabtu.com>
9413 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
9414 environment variable to 'all' in order to obtain debug output from
9416 * util/i386/pc/grub-setup.c (main): Likewise.
9418 2008-02-08 Robert Millan <rmh@aybabtu.com>
9420 * disk/raid.c (grub_raid_scan_device): Check for
9421 `array->device[sb.this_disk.number]' rather than for
9422 `array->device[sb.this_disk.number]->name', since the latter is not
9423 guaranteed to be accessible.
9425 2008-02-08 Robert Millan <rmh@aybabtu.com>
9427 * disk/raid.c: Update copyright.
9428 * fs/cpio.c: Likewise.
9429 * include/grub/raid.h: Likewise.
9430 * loader/i386/pc/multiboot.c: Likewise.
9431 * util/hostfs.c: Likewise.
9433 2008-02-08 Robert Millan <rmh@aybabtu.com>
9435 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
9436 to a grub_disk_t array.
9437 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
9439 (grub_raid_scan_device): Replace `device[x].name' accesses with
9440 `device[x]->name'. Simplify initialization of `array->device[x]'.
9442 2008-02-08 Robert Millan <rmh@aybabtu.com>
9444 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
9445 grub_dprintf() calls.
9446 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
9449 2008-02-07 Christian Franke <franke@computer.org>
9451 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
9452 instead of fseek and ftell to support large files.
9453 (grub_hostfs_read): Likewise.
9455 2008-02-07 Robert Millan <rmh@aybabtu.com>
9457 Patch from Jeroen Dekkers.
9458 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
9459 failure, since successfully reading all array members might not be
9462 2008-02-06 Robert Millan <rmh@aybabtu.com>
9464 * util/grub-probe.c (probe): Simplify partmap probing (with the
9465 assumption that the first word up to the underscore equals to
9468 2008-02-06 Christian Franke <franke@computer.org>
9470 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
9471 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
9472 last block of a cpio or tar stream.
9473 Check for "TRAILER!!!" instead of any empty data
9474 block to detect last block of a cpio stream.
9475 (grub_cpio_dir): Fix constness of variable np.
9476 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
9477 cpio or tar trailer is detected. This fixes a crash
9478 on open of a non existing file.
9480 2008-02-05 Bean <bean123ch@gmail.com>
9482 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
9484 (grub_multiboot_load_elf64): Likewise.
9485 (grub_multiboot): Initialize mbi structure.
9487 * util/grub-fstest.c: Don't include unused header file script.h.
9489 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
9491 (grub_fstest_SOURCES): Likewise.
9493 2008-02-05 Robert Millan <rmh@aybabtu.com>
9495 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
9496 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
9497 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
9498 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
9500 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
9501 (translation_table): Replace hardcoded values with macros
9502 provided by `<grub/term.h>'.
9504 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
9505 (keyboard_map): Correct/add a few values, with macros provided
9507 (keyboard_map_shift): Zero values that don't differ from their
9508 `keyboard_map' equivalents.
9509 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
9510 Discard the second scan code that is always sent by Caps lock.
9511 Only use `keyboard_map_shift' when it provides a non-zero value,
9512 otherwise fallback to `keyboard_map'.
9514 2008-02-04 Bean <bean123ch@gmail.com>
9516 * Makefile.in (enable_grub_fstest): New variable.
9518 * conf/common.rmk (grub_fstest_init.lst): New rule.
9519 (grub_fstest_init.h): Likewise.
9520 (grub_fstest_init.c): Likewise.
9521 (util/grub-fstest.c_DEPENDENCIES): New variable.
9522 (grub_fstest_SOURCES): Likewise.
9524 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
9526 * util/grub-fstest.c: New file.
9528 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
9530 Make grub-setup handle a separate root device.
9532 * util/i386/pc/grub-setup.c (setup): Always open the root device,
9533 so that the root device can be compared with the destination
9535 When embedding the core image, if the root and destination devices
9536 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
9538 When not embedding, set ROOT_DRIVE to 0xFF.
9540 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
9542 Add support for having a grub directory in a different drive. This
9543 is still only the data handling part.
9545 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
9546 (codestart): Save %dh in GRUB_ROOT_DRIVE.
9547 (grub_root_drive): New variable.
9549 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
9550 instead of GRUB_BOOT_DRIVE to construct a device name. Set
9551 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
9554 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
9556 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
9558 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
9560 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
9561 is bogus, because PXE booting does not specify any drive
9564 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
9565 am not sure if this is really correct.
9567 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
9568 is always identical to the boot drive when booting from a CD.
9570 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
9572 (root_drive): New variable.
9573 (real_start): Unconditionally set %dh to ROOT_DRIVE.
9574 (setup_sectors): Push %dx right after popping it, because %dh will
9576 (copy_buffer): Restore %dx.
9578 2008-02-03 Robert Millan <rmh@aybabtu.com>
9580 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
9581 use `cdboot.img' for cdrom images.
9583 2008-02-03 Robert Millan <rmh@aybabtu.com>
9585 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
9586 only setup gfxterm when `font' command has succeeded.
9588 2008-02-03 Robert Millan <rmh@aybabtu.com>
9590 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
9591 (grub_rescue_cmd_multiboot_loader)
9592 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
9594 2008-02-03 Pavel Roskin <proski@gnu.org>
9596 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
9597 %edx and %esi from stack only after grub_gate_a20() is called.
9598 grub_gate_a20() clobbers %edx.
9600 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
9602 * configure.ac (AC_INIT): Bumped to 1.96.
9604 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
9605 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
9606 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
9607 video/readers/png.c.
9609 2008-02-03 Bean <bean123ch@gmail.com>
9611 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
9612 (cdboot_img_SOURCES): New variable.
9613 (cdboot_img_ASFLAGS): New variable.
9614 (cdboot_img_LDFLAGS): New variable.
9616 * boot/i386/pc/cdboot.S: New file.
9618 * disk/i386/pc/biosdisk.c (cd_start): New variable.
9619 (cd_count): Likewise.
9620 (grub_biosdisk_get_drive): Add support for cd device.
9621 (grub_biosdisk_call_hook): Likewise.
9622 (grub_biosdisk_iterate): Likewise.
9623 (grub_biosdisk_open): Likewise.
9624 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
9625 (grub_biosdisk_rw): Support reading from cd device.
9626 (GRUB_MOD_INIT): Iterate cd devices.
9628 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
9629 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
9630 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
9632 * kern/i386/pc/init.c (make_install_device): Check for cd device.
9634 2008-02-02 Robert Millan <rmh@aybabtu.com>
9636 * commands/read.c: New file.
9637 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
9638 (read_mod_SOURCES): New variable.
9639 (read_mod_CFLAGS): Likewise.
9640 (read_mod_LDFLAGS): Likewise.
9642 2008-02-02 Robert Millan <rmh@aybabtu.com>
9644 * normal/main.c (grub_normal_execute): Check for `menu->size' when
9645 determining whether menu has to be displayed.
9647 2008-02-02 Marco Gerards <marco@gnu.org>
9649 * bus/pci.c: New file.
9651 * include/grub/pci.h: Likewise.
9653 * include/grub/i386/pc/pci.h: Likewise.
9655 * commands/lspci.c: Likewise.
9657 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
9659 (pci_mod_SOURCES): New variable.
9660 (pci_mod_CFLAGS): Likewise.
9661 (pci_mod_LDFLAGS): Likewise.
9662 (lspci_mod_SOURCES): Likewise.
9663 (lspci_mod_CFLAGS): Likewise.
9664 (lspci_mod_LDFLAGS): Likewise.
9666 2008-02-02 Bean <bean123ch@gmail.com>
9668 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
9669 (grub_ufs_get_file_block): Fix indirect block calculation problem.
9671 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
9672 (grub_xfs_btree_node): New structure.
9673 (grub_xfs_btree_root): New structure.
9674 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
9675 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
9676 (GRUB_XFS_EXTENT_BLOCK): Likewise.
9677 (GRUB_XFS_EXTENT_SIZE): Likewise.
9678 (grub_xfs_read_block): Support btree format type.
9679 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
9680 Use directory block as basic unit.
9682 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
9684 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
9685 __attribute__ ((__regparm__ (1))).
9687 2008-02-01 Robert Millan <rmh@aybabtu.com>
9689 Correct a mistake in previous commit.
9691 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
9693 (normal/command.c_DEPENDENCIES): New variable.
9695 2008-02-01 Robert Millan <rmh@aybabtu.com>
9697 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
9699 (normal/command.c_DEPENDENCIES): New variable.
9700 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
9701 * conf/i386-ieee1275.rmk: Likewise.
9702 * conf/i386-linuxbios.rmk: Likewise.
9703 * conf/i386-pc.rmk: Likewise.
9704 * conf/sparc64-ieee1275.rmk: Likewise.
9705 * conf/powerpc-ieee1275.rmk: Likewise.
9706 (grub_emu_SOURCES): Add `fs/fshelp.c'.
9708 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
9710 2008-02-01 Robert Millan <rmh@aybabtu.com>
9712 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
9713 call at beginning of function.
9715 2008-01-31 Pavel Roskin <proski@gnu.org>
9717 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
9718 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
9719 (grub_mkrescue_SOURCES): Likewise.
9720 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
9722 2008-01-30 Robert Millan <rmh@aybabtu.com>
9724 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
9725 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
9726 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
9727 (grub_probe_SOURCES): ... to here.
9729 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
9730 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
9731 * conf/i386-ieee1275.rmk: Likewise.
9732 * conf/i386-linuxbios.rmk: Likewise.
9733 * conf/powerpc-ieee1275.rmk: Likewise.
9735 2008-01-30 Tristan Gingold <gingold@free.fr>
9737 * kern/rescue.c: Silently accept empty lines.
9739 2008-01-29 Bean <bean123ch@gmail.com>
9741 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
9742 (real_code_2): Code cleanup and change comment style.
9743 (move_memory): Avoid using 32-bit address mode.
9745 2008-01-29 Bean <bean123ch@gmail.com>
9747 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
9748 (png_mod_SOURCES): New variable.
9749 (png_mod_CFLAGS): Likewise.
9750 (png_mod_LDFLAGS): Likewise.
9752 * video/readers/png.c: New file.
9754 2008-01-28 Robert Millan <rmh@aybabtu.com>
9756 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
9757 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
9758 `ifndef GRUB_MOD_GAP' hack.
9759 * util/elf/grub-mkimage.c (add_segments): Likewise.
9761 2008-01-27 Robert Millan <rmh@aybabtu.com>
9763 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
9764 `GRUB_MOD_GAP' for platforms in which it's not defined.
9765 * util/elf/grub-mkimage.c (add_segments): Likewise.
9767 2008-01-27 Robert Millan <rmh@aybabtu.com>
9769 Get grub-emu to build again (including parallel builds).
9771 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
9773 (util/grub-emu.c_DEPENDENCIES): ... this, ...
9774 (normal/execute.c_DEPENDENCIES): ... this, ...
9775 (grub-emu_DEPENDENCIES): ... and this.
9777 * conf/i386-efi.rmk: Likewise.
9778 * conf/i386-linuxbios.rmk: Likewise.
9779 * conf/i386-ieee1275.rmk: Likewise.
9780 * conf/powerpc-ieee1275.rmk: Likewise.
9781 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
9783 2008-01-27 Robert Millan <rmh@aybabtu.com>
9785 * NEWS: Add a few items.
9787 2008-01-27 Robert Millan <rmh@aybabtu.com>
9789 Fix parallel builds with grub-emu. Based on earlier commit for
9790 grub-probe and grub-setup.
9792 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9793 (util/grub-emu.c_DEPENDENCIES): ... this.
9794 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9795 (util/grub-emu.c_DEPENDENCIES): ... this.
9796 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9797 (util/grub-emu.c_DEPENDENCIES): ... this.
9798 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9799 (util/grub-emu.c_DEPENDENCIES): ... this.
9800 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9801 (util/grub-emu.c_DEPENDENCIES): ... this.
9803 2008-01-27 Pavel Roskin <proski@gnu.org>
9805 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
9806 to create a gap between _end and the modules added to the image
9807 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
9808 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
9809 * util/elf/grub-mkimage.c (add_segments): Likewise.
9811 2008-01-26 Pavel Roskin <proski@gnu.org>
9813 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
9814 just return an error.
9816 2008-01-26 Bean <bean123ch@gmail.com>
9818 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
9819 (grub_reiserfs_get_item): Save offset of the next item.
9820 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
9822 2008-01-25 Robert Millan <rmh@aybabtu.com>
9824 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
9825 make all filesystem sources appear together (possibly fixing omissions
9827 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9828 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9829 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
9830 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9832 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
9834 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
9835 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
9836 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
9837 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
9839 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
9840 (probe): Add a sanity check to make sure of our ability to read
9841 requested files when probing for filesystem type.
9843 * genmk.rb: Update copyright year (2007).
9845 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
9846 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
9847 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
9848 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
9849 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
9850 : Remove function prototypes.
9852 2008-01-25 Robert Millan <rmh@aybabtu.com>
9854 Revert my previous commits (based on wrong assumption of how grub_errno
9857 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
9858 * kern/file.c (grub_file_open): Likewise.
9860 2008-01-24 Pavel Roskin <proski@gnu.org>
9862 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
9863 that hang if GRUB tries to setup colors.
9864 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
9865 colors for firmwares that don't support it.
9866 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
9867 Recognize Open Hack'Ware, set flags to work around its
9870 2008-01-24 Robert Millan <rmh@aybabtu.com>
9872 * kern/file.c (grub_file_open): Do not account previous failures of
9873 unrelated functions when grub_errno is checked for.
9874 Reported by Oleg Strikov.
9876 2008-01-24 Bean <bean123ch@gmail.com>
9878 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
9879 (grub_ufs_sblock): New member volume name.
9880 (grub_ufs_find_file): Fix string copy bug.
9881 (grub_ufs_label): Implement this function properly.
9883 * fs/hfs.c (grub_hfs_cnid_type): New enum.
9884 (grub_hfs_iterate_records): Use the correct file number for extents
9885 and catalog file. Fix problem in next index calculation.
9886 (grub_hfs_find_node): Replace recursive function call with loop.
9887 (grub_hfs_iterate_dir): Replace recursive function call with loop.
9889 2008-01-23 Robert Millan <rmh@aybabtu.com>
9891 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
9892 `<grub/symbol.h>' and `<grub/multiboot.h>'.
9893 (grub_multiboot2_real_boot): New function prototype.
9895 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
9896 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
9898 * kern/i386/ieee1275/init.c (grub_os_area_addr)
9899 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
9901 2008-01-23 Robert Millan <rmh@aybabtu.com>
9903 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
9904 #ifdef'ed out grub_printf().
9906 2008-01-23 Robert Millan <rmh@aybabtu.com>
9908 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
9909 grub_dprintf calls, since they make "debug=all" mode unusable.
9910 (grub_console_checkkey): Likewise.
9912 2008-01-23 Robert Millan <rmh@aybabtu.com>
9914 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
9915 `term/i386/pc/at_keyboard.c'.
9916 (pkglib_MODULES): Add `serial.mod'.
9917 (serial_mod_SOURCES): New variable.
9918 (serial_mod_CFLAGS): Likewise.
9919 (serial_mod_LDFLAGS): Likewise.
9921 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
9922 `<grub/powerpc/ieee1275/console.h>'.
9923 (grub_keyboard_controller_init): New function prototype.
9924 (grub_console_checkkey): Likewise.
9925 (grub_console_getkey): Likewise.
9927 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
9930 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
9931 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
9933 2008-01-23 Robert Millan <rmh@aybabtu.com>
9935 * kern/i386/pc/init.c (make_install_device): When memdisk image is
9936 present, "(memdisk)/boot/grub" becomes the default prefix.
9938 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
9939 a memdisk tarball with all the modules. Add --overlay=DIR option that
9940 allows users to overlay additional files into the image.
9942 2008-01-23 Robert Millan <rmh@aybabtu.com>
9944 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
9945 and `machine/memory.h'.
9946 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
9947 (_multiboot_mod_SOURCES): New variable.
9948 (_multiboot_mod_CFLAGS): Likewise.
9949 (_multiboot_mod_LDFLAGS): Likewise.
9950 (multiboot_mod_SOURCES): Likewise.
9951 (multiboot_mod_CFLAGS): Likewise.
9952 (multiboot_mod_LDFLAGS): Likewise.
9954 * include/grub/i386/ieee1275/loader.h: New file.
9956 * include/grub/i386/ieee1275/machine.h: Likewise.
9958 * include/grub/i386/ieee1275/memory.h: Likewise.
9960 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
9961 variable declaration.
9962 (grub_os_area_size): Likewise.
9964 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
9965 (grub_lower_mem, grub_upper_mem): New variables.
9966 (grub_stop_floppy): New function (just to make
9967 grub_multiboot2_real_boot() happy).
9969 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
9970 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
9971 (grub_stop): New function.
9972 Include `"../realmode.S"' and `"../loader.S"'.
9974 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
9975 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
9977 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
9978 rely on grub_multiboot2_real_boot() for final boot.
9980 2008-01-22 Robert Millan <rmh@aybabtu.com>
9982 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
9983 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
9984 device that doesn't look like an SD card.
9985 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
9986 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
9987 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
9988 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
9991 2008-01-22 Robert Millan <rmh@aybabtu.com>
9993 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
9994 avoid claiming over our own code.
9996 2008-01-22 Bean <bean123ch@gmail.com>
9998 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
9999 (jpeg_mod_SOURCES): New variable.
10000 (jpeg_mod_CFLAGS): Likewise.
10001 (jpeg_mod_LDFLAGS): Likewise.
10003 * video/readers/jpeg.c : New file.
10005 2008-01-22 Bean <bean123ch@gmail.com>
10007 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
10008 there are no more items.
10010 2008-01-21 Robert Millan <rmh@aybabtu.com>
10012 * kern/mm.c (grub_mm_init_region): Improve debug message.
10014 2008-01-21 Robert Millan <rmh@aybabtu.com>
10016 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
10017 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
10019 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
10021 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
10022 Indicates start of upper memory.
10023 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
10024 (generate_image): Abort when image size is big enough to corrupt
10027 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
10028 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
10029 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
10030 instead of hardcoding 0xA0000.
10031 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
10032 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
10033 instead of hardcoding 0xA0000.
10035 2008-01-21 Robert Millan <rmh@aybabtu.com>
10037 * disk/memdisk.c (memdisk_size): New variable.
10038 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
10040 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
10041 image to dynamic memory.
10042 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
10043 `memdisk_size'. Free memdisk block.
10045 2008-01-21 Robert Millan <rmh@aybabtu.com>
10047 Fix detection of very small filesystems (like tar).
10049 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
10050 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
10051 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
10052 a problem with this disk).
10054 2008-01-21 Robert Millan <rmh@aybabtu.com>
10056 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
10057 on grub_biosdisk_rw_standard() error.
10059 2008-01-21 Robert Millan <rmh@aybabtu.com>
10061 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
10063 * kern/elf.c: Likewise.
10064 * kern/ieee1275/ieee1275.c: Likewise.
10065 * kern/powerpc/ieee1275/openfw.c: Likewise.
10066 * term/ieee1275/ofconsole.c: Likewise.
10068 2008-01-21 Robert Millan <rmh@aybabtu.com>
10070 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
10072 * include/grub/kernel.h (grub_arch_memdisk_addr)
10073 (grub_arch_memdisk_size): Moved from here ...
10075 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
10076 (grub_arch_memdisk_size): ... to here.
10078 2008-01-21 Robert Millan <rmh@aybabtu.com>
10080 Mostly based on bugfix from Bean.
10082 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
10083 attribute with hook() parameter.
10084 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
10086 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
10087 attribute with hook() parameter.
10088 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
10091 2008-01-21 Robert Millan <rmh@aybabtu.com>
10093 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
10094 (pkglib_MODULES): Add `memdisk.mod'.
10095 (memdisk_mod_SOURCES): New variable.
10096 (memdisk_mod_CFLAGS): Likewise.
10097 (memdisk_mod_LDFLAGS): Likewise.
10099 * disk/memdisk.c: New file.
10101 * include/grub/disk.h (grub_disk_dev_id): Add
10102 `GRUB_DISK_DEVICE_MEMDISK_ID'.
10104 * include/grub/i386/pc/kernel.h
10105 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
10106 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
10107 (grub_kernel_image_size): New variable declaration.
10108 (grub_total_module_size): Likewise.
10109 (grub_memdisk_image_size): Likewise.
10111 * include/grub/i386/pc/memory.h
10112 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
10114 * include/grub/kernel.h: Include `<grub/symbol.h>'.
10115 (grub_arch_memdisk_addr): New variable declaration.
10116 (grub_arch_memdisk_size): Likewise.
10118 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
10119 (grub_arch_memdisk_size): Likewise.
10121 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
10122 (codestart): Replace hardcoded `0x100000' with
10123 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
10125 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
10126 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
10127 not NULL, append the contents of the file it refers to, at the end of
10128 the compressed kernel image. Initialize `grub_memdisk_image_size'
10129 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
10130 (options): Add "memdisk"|'m' option.
10131 (main): Parse --memdisk|-m option, and pass user-provided path as
10132 parameter to generate_image().
10134 2008-01-20 Robert Millan <rmh@aybabtu.com>
10136 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
10137 grub_dprintf() calls from here ...
10138 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
10140 2008-01-20 Robert Millan <rmh@aybabtu.com>
10142 Fix detection of "real mode" when /options/real-mode? doesn't exist.
10144 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
10146 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
10147 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
10148 `GRUB_IEEE1275_FLAG_REAL_MODE'.
10149 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
10151 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
10152 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
10154 2008-01-19 Robert Millan <rmh@aybabtu.com>
10156 Get rid of confusing function (superseded by
10157 `grub_ieee1275_get_integer_property')
10158 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
10160 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
10162 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
10163 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
10164 in native endianness from grub_ieee1275_get_integer_property().
10166 2008-01-19 Robert Millan <rmh@aybabtu.com>
10168 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
10169 command after "shut-down", since implementations differ on which
10170 the command for halt is.
10172 2008-01-19 Robert Millan <rmh@aybabtu.com>
10174 * include/grub/i386/linuxbios/console.h: Add header protection.
10175 (grub_keyboard_controller_init): New function prototype.
10176 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
10177 (KEYBOARD_COMMAND_READ): Likewise.
10178 (KEYBOARD_COMMAND_WRITE): Likewise.
10179 (KEYBOARD_SCANCODE_SET1): Likewise.
10180 (grub_keyboard_controller_write): New function.
10181 (grub_keyboard_controller_read): Likewise.
10182 (grub_keyboard_controller_init): Likewise.
10184 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
10185 (grub_console_init): On coreboot/LinuxBIOS, call
10186 grub_keyboard_controller_init().
10188 2008-01-19 Robert Millan <rmh@aybabtu.com>
10190 PowerPC changes provided by Pavel Roskin.
10192 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
10193 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
10194 don't rely on cmain() doing it.
10195 * kern/i386/ieee1275/startup.S (_start): Store %eax in
10196 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
10198 2008-01-16 Robert Millan <rmh@aybabtu.com>
10200 * include/grub/i386/linuxbios/memory.h
10201 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
10202 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
10203 receive `table_header' as argument. Instead, probe for it in the
10204 known memory ranges where it can be present.
10205 (grub_available_iterate): Do not pass a fixed `table_header' address
10206 to grub_linuxbios_table_iterate().
10208 2008-01-15 Robert Millan <rmh@aybabtu.com>
10210 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
10211 * conf/i386-ieee1275.rmk: New file.
10212 * include/grub/i386/ieee1275/console.h: Likewise.
10213 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
10214 * include/grub/i386/ieee1275/kernel.h: Likewise.
10215 * include/grub/i386/ieee1275/time.h: Likewise.
10216 * kern/i386/ieee1275/init.c: Likewise.
10217 * kern/i386/ieee1275/startup.S: Likewise.
10219 2008-01-15 Robert Millan <rmh@aybabtu.com>
10221 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
10222 when pointers are 32-bit (but still do set it to one when they are
10225 2008-01-15 Robert Millan <rmh@aybabtu.com>
10227 * include/grub/ieee1275/ieee1275.h
10228 (grub_ieee1275_get_integer_property): New function prototype.
10230 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
10231 (grub_ieee1275_get_integer_property): New function. Wraps around
10232 grub_ieee1275_get_property() to handle endianness.
10234 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
10235 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
10237 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
10238 (grub_map): Likewise.
10239 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
10241 2008-01-15 Bean <bean123ch@gmail.com>
10243 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
10244 (grub_script_execute_cmdline): Reset grub_errno.
10246 * normal/main.c (read_config_file): Reset grub_errno.
10248 * normal/parse.y (script_init): New.
10249 (script): Move function and menuentry here.
10251 (command): Add delimiter at the end of command.
10252 (commands): Adjust to match the new command.
10253 (commandblock): Remove grub_script_lexer_record_start.
10254 (menuentry): Add grub_script_lexer_record_start, use the new commands.
10255 (if): Use the new commands.
10257 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
10259 2008-01-15 Robert Millan <rmh@aybabtu.com>
10261 * normal/menu.c (run_menu): Move timeout message from here ...
10262 (print_timeout): ... to here.
10263 (run_menu): Use print_timeout() once during initial draw to print
10264 the whole message, and again in every clock tick to update only
10265 the number of seconds.
10267 2008-01-15 Robert Millan <rmh@aybabtu.com>
10269 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
10270 actual size of `available' from grub_ieee1275_get_property(), and
10271 restrict parsing to that bound.
10273 2008-01-15 Christian Franke <franke@computer.org>
10275 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
10276 (argp_program_version): Remove variable.
10277 (argp_program_bug_address): Likewise.
10278 (options): Convert from struct argp_option to struct option.
10279 (struct arguments): Remove.
10280 (parse_opt): Remove.
10281 (usage): New function.
10282 (main): Replace struct args members by simple variables.
10283 Replace argp_parse() by getopt_long().
10284 Add switch to evaluate options.
10285 Add missing "(...)" around root_dev in prefix string.
10287 2008-01-14 Robert Millan <rmh@aybabtu.com>
10289 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
10290 for grub_ieee1275_exit(), in order to improve portability.
10292 2008-01-14 Robert Millan <rmh@aybabtu.com>
10294 * util/grub.d/10_linux.in (prefix): Define.
10295 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
10297 2008-01-13 Pavel Roskin <proski@gnu.org>
10299 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
10300 grub_errno if no errors have been detected.
10302 2008-01-12 Robert Millan <rmh@aybabtu.com>
10304 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
10305 (grub_util_get_dev_abstraction): New function prototype.
10307 * util/getroot.c: Include `<grub/util/getroot.h>'
10308 (grub_util_get_grub_dev): Move detection of abstraction type to ...
10309 (grub_util_get_dev_abstraction): ... here (new function).
10311 * util/grub-probe.c: Convert PRINT_* to an enum. Add
10312 `PRINT_ABSTRACTION'.
10313 (probe): Probe for abstraction type when requested.
10314 (main): Understand `--target=abstraction'.
10316 * util/i386/efi/grub-install.in: Add abstraction module to core
10317 image when it is found to be necessary.
10318 * util/i386/pc/grub-install.in: Likewise.
10319 * util/powerpc/ieee1275/grub-install.in: Likewise.
10321 * util/update-grub_lib.in (font_path): Return system path without
10322 converting to GRUB path.
10323 * util/update-grub.in: Convert system path returned by font_path()
10324 to a GRUB path. Use `grub-probe -t abstraction' to determine what
10325 abstraction module is needed for loading fonts (if any). Export
10326 that as `GRUB_PRELOAD_MODULES'.
10327 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
10330 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
10332 Remove some unused code from reiserfs.
10334 * fs/reiserfs.c (struct grub_reiserfs_key)
10335 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
10336 (struct grub_reiserfs_node_body): Removed.
10337 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
10339 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
10341 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
10343 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
10345 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
10347 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
10349 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
10350 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
10351 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
10353 2008-01-10 Robert Millan <rmh@aybabtu.com>
10355 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
10356 Determines if a file is garbage left by packaging systems, etc.
10357 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
10358 for processing /etc/grub.d scripts.
10359 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
10360 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
10361 as a condition for processing Linux images.
10363 2008-01-10 Pavel Roskin <proski@gnu.org>
10365 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
10366 to compile reiserfs.c on PowerPC.
10368 2008-01-10 Robert Millan <rmh@aybabtu.com>
10370 * kern/device.c (grub_device_iterate): Do not abort device iteration
10371 when one of the devices cannot be opened.
10372 * kern/disk.c (grub_disk_open): Do not account previous failures of
10373 unrelated functions when grub_errno is checked for.
10375 2008-01-08 Robert Millan <rmh@aybabtu.com>
10377 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
10378 `! grub_linux_is_bzimage', change order of address comparison to make
10379 it more intuitive, and improve "too big zImage" error message.
10381 2008-01-08 Robert Millan <rmh@aybabtu.com>
10383 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
10384 `$(update-grub_DATA)'.
10385 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
10388 2008-01-07 Robert Millan <rmh@aybabtu.com>
10390 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
10391 which instruction is modified by grub-setup during installation
10392 (since it wasn't obvious by only looking at this file).
10394 2008-01-07 Robert Millan <rmh@aybabtu.com>
10396 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
10397 listing actual TODO items.
10399 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
10401 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
10403 (grub_reiserfs_get_key_offset): Likewise.
10404 (grub_reiserfs_set_key_offset): Likewise.
10405 (grub_reiserfs_set_key_type): Likewise.
10406 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
10408 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
10409 better to remove the bitfield version completely.
10411 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
10413 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
10414 allocated from the heap, due to the fshelp implementation.
10415 (grub_reiserfs_dir): Free NODE, due to the same reason.
10417 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
10419 Mostly from Vincent Pelletier:
10421 * fs/reiserfs.c: New file.
10423 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
10424 (reiserfs_mod_SOURCES): New variable.
10425 (reiserfs_mod_CFLAGS): Likewise.
10426 (reiserfs_mod_LDFLAGS): Likewise.
10428 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
10429 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
10430 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
10433 2008-01-06 Robert Millan <rmh@aybabtu.com>
10435 * normal/color.c: Remove `<grub/env.h>'.
10437 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
10439 * include/grub/normal.h: Include <grub/env.h>.
10441 2008-01-05 Robert Millan <rmh@aybabtu.com>
10443 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
10444 usage example with `(hd0,1)'.
10445 Reported by Samuel Thibault.
10447 2008-01-05 Robert Millan <rmh@aybabtu.com>
10449 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
10450 (grub_linux_boot_zimage): Rename to ...
10451 (grub_linux_boot): ... this.
10452 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
10453 (grub_linux_boot_zimage): Conditionalize zImage copy.
10455 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
10456 (grub_linux_boot_bzimage): Remove prototype.
10457 (grub_linux_boot_zimage): Rename to ...
10458 (grub_linux_boot): ... this.
10460 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
10461 (grub_linux_boot): Remove function.
10463 2008-01-05 Robert Millan <rmh@aybabtu.com>
10465 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
10466 (grub_env_write_color_highlight): Likewise.
10467 (grub_wait_after_message): Likewise.
10469 * normal/color.c: New file.
10471 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
10472 (normal_mod_DEPENDENCIES): Likewise.
10474 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
10475 (normal_mod_DEPENDENCIES): Likewise.
10477 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
10478 (normal_mod_DEPENDENCIES): Likewise.
10480 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
10481 (normal_mod_DEPENDENCIES): Likewise.
10483 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
10484 for waiting after a message is printed.
10485 * normal/main.c (read_config_file): Likewise.
10486 (grub_normal_init): Register grub_env_write_color_normal() and
10487 grub_env_write_color_highlight() hooks. Mark `color_normal' and
10488 `color_highlight' variables as global.
10490 * normal/menu.c (grub_wait_after_message): New function.
10491 (grub_color_menu_normal): New variable. Replaces ...
10492 (GRUB_COLOR_MENU_NORMAL): ... this macro.
10493 (grub_color_menu_highlight): New variable. Replaces ...
10494 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
10495 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
10496 `GRUB_TERM_COLOR_STANDARD'.
10497 (print_message): Use `grub_setcolorstate' to reload colors. Rename
10498 `normal_code' and `highlight_code' to `old_color_normal' and
10499 `old_color_highlight', respectively.
10500 (grub_menu_init_page): Update colors when drawing the menu, based on
10501 `menu_color_normal' and `menu_color_highlight' variables.
10502 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
10503 a message is printed.
10505 2008-01-05 Robert Millan <rmh@aybabtu.com>
10507 * kern/env.c (grub_env_context_open): Propagate hooks for global
10508 variables to new context.
10510 * kern/main.c (grub_set_root_dev): Export `root' variable.
10512 2008-01-05 Robert Millan <rmh@aybabtu.com>
10514 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
10515 discs unconditionally, since udev and others have options to provide
10518 2008-01-05 Robert Millan <rmh@aybabtu.com>
10520 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
10522 2008-01-04 Christian Franke <franke@computer.org>
10524 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
10527 2008-01-03 Pavel Roskin <proski@gnu.org>
10529 * kern/i386/linuxbios/init.c: Put "void" to all function
10530 declarations with no arguments.
10531 * kern/powerpc/ieee1275/init.c: Likewise.
10532 * term/i386/pc/at_keyboard.c: Likewise.
10533 * term/i386/pc/vga_text.c: Likewise.
10534 * util/grub-mkdevicemap.c: Likewise.
10536 2008-01-02 Robert Millan <rmh@aybabtu.com>
10538 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
10539 message when loaded image is out of bounds.
10540 (grub_multiboot_load_elf64): Likewise.
10542 2008-01-02 Pavel Roskin <proski@gnu.org>
10544 * util/grub.d/10_linux.in: Try version without ".old" when
10545 looking for initrd. It's better to use initrd from the newer
10546 kernel of the same version than no initrd at all.
10548 2008-01-01 Robert Millan <rmh@aybabtu.com>
10550 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
10552 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
10554 * include/grub/video.h: Added grub_video_unmap_color and
10555 grub_video_get_active_render_target.
10556 (grub_video_adapter): Added unmap_color and get_active_render_target.
10558 * video/video.c: Added grub_video_unmap_color and
10559 grub_video_get_active_render_target.
10560 (grub_video_get_info): Changed method to accept NULL pointer as an
10561 argument to allow detection of active video adapter.
10563 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
10564 grub_video_vbe_unmap_color_int.
10565 Added grub_video_vbe_unmap_color and
10566 grub_video_vbe_get_active_render_target.
10567 (grub_video_vbe_adapter): Added unmap_color and
10568 get_active_render_target.
10570 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
10571 with grub_video_vbe_unmap_color_int.
10573 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
10574 (DEFAULT_NORMAL_COLOR): Likewise.
10575 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
10576 (DEFAULT_FG_COLOR): Removed.
10577 (DEFAULT_BG_COLOR): Likewise.
10578 (DEFAULT_CURSOR_COLOR): Changed value.
10579 (grub_virtual_screen): Added standard_color_setting,
10580 normal_color_setting, highlight_color_setting and term_color.
10581 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
10582 (bitmap_width): Added.
10583 (bitmap_height): Likewise.
10584 (bitmap): Likewise.
10585 (set_term_color): Likewise.
10586 (grub_virtual_screen_setup): Changed to use new terminal coloring
10588 (grub_gfxterm_init): Added init for bitmap.
10589 (grub_gfxterm_fini): Added destroy for bitmap.
10590 (redraw_screen_rect): Updated to use background bitmap and new
10592 (scroll_up): Added optimization for case when there is no bitmap.
10593 (grub_gfxterm_cls): Fixed to use correct background color.
10594 (grub_virtual_screen_setcolorstate): Changed to use new terminal
10596 (grub_virtual_screen_setcolor): Likewise.
10597 (grub_virtual_screen_getcolor): Added.
10598 (grub_gfxterm_background_image_cmd): Likewise.
10599 (grub_video_term): Added setcolor and getcolor.
10600 (MOD_INIT): Added registration of background_image command.
10601 (MOD_TERM): Added unregistration for background_image command.
10603 2007-12-30 Pavel Roskin <proski@gnu.org>
10605 * loader/multiboot_loader.c: Fix multiboot command
10606 unregistration. Fix all typos in the word "multiboot".
10608 2007-12-29 Pavel Roskin <proski@gnu.org>
10610 * util/grub.d/10_linux.in: Refactor search for initrd. Add
10611 support for initrd names used in Fedora.
10613 2007-12-26 Bean <bean123ch@gmail.com>
10615 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
10616 (cpio_mod_SOURCES): New variable.
10617 (cpio_mod_CFLAGS): Likewise.
10618 (cpio_mod_LDFLAGS): Likewise.
10620 * fs/cpio.c: New file.
10622 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
10624 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10626 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10630 2007-12-25 Robert Millan <rmh@aybabtu.com>
10632 * include/grub/term.h (struct grub_term): Add `getcolor' function.
10633 (grub_getcolor): New function.
10635 * kern/term.c (grub_getcolor): New function.
10636 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
10637 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
10638 (print_entry): Set normal and highlight colors to
10639 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
10640 respectively, before printing and restore them to old
10642 (grub_menu_init_page): Likewise. Fill an additional colored space
10643 that would otherwise be left blank.
10645 * term/efi/console.c (grub_console_getcolor): New function.
10646 (struct grub_console_term.getcolor): New variable.
10647 * term/i386/pc/console.c (grub_console_getcolor): New function.
10648 (struct grub_console_term.getcolor): New variable.
10649 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
10650 (struct grub_console_term.getcolor): New variable.
10652 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
10653 (struct grub_console_term.setcolor): Remove variable.
10654 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
10655 (struct grub_console_term.setcolor): Remove variable.
10656 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
10657 (struct grub_console_term.setcolor): Remove variable.
10658 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
10659 (struct grub_console_term.setcolor): Remove variable.
10661 2007-12-25 Robert Millan <rmh@aybabtu.com>
10663 * configure.ac: Search for possible unifont.hex locations, and
10664 define UNIFONT_HEX if found.
10666 * Makefile.in (UNIFONT_HEX): Define variable.
10667 (DATA): Rename to ...
10668 (PKGLIB): ... this. Update all users.
10669 (PKGDATA): New variable.
10670 (pkgdata_IMAGES): Rename to ...
10671 (pkglib_IMAGES): ... this. Update all users.
10672 (pkgdata_MODULES): Rename to ...
10673 (pkglib_MODULES): ... this. Update all users.
10674 (pkgdata_PROGRAMS): Rename to ...
10675 (pkglib_PROGRAMS): ... this. Update all users.
10676 (pkgdata_DATA): Rename to ...
10677 (pkglib_DATA): ... this. Update all users.
10678 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
10679 (unicode.pff, ascii.pff): New rules.
10680 (all-local): Add `$(PKGDATA)' dependency.
10681 (install-local): Process `$(PKGDATA)'.
10683 * util/update-grub_lib.in (font_path): Search for *.pff files in
10684 a few more locations, including `${pkgdata}'.
10686 2007-12-23 Robert Millan <rmh@aybabtu.com>
10688 Patch from Bean <bean123ch@gmail.com>:
10689 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
10692 2007-12-21 Bean <bean123ch@gmail.com>
10694 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
10695 (ntfscomp_mod_SOURCES): New variable.
10696 (ntfscomp_mod_CFLAGS): Likewise.
10697 (ntfscomp_mod_LDFLAGS): Likewise.
10699 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
10700 (grub_probe_SOURCES): Likewise.
10701 (grub_emu_SOURCES): Likewise.
10703 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
10704 (grub_emu_SOURCES): Likewise.
10706 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
10707 (grub_emu_SOURCES): Likewise.
10709 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
10710 (grub_emu_SOURCES): Likewise.
10712 * fs/ntfs.c (grub_ntfscomp_func): New variable.
10713 (read_run_list): Renamed to grub_ntfs_read_run_list.
10714 (decomp_nextvcn): Moved to ntfscomp.c.
10715 (decomp_getch): Likewise.
10716 (decomp_get16): Likewise.
10717 (decomp_block): Likewise.
10718 (read_block): Likewise.
10719 (read_data): Partially moved to ntfscomp.c.
10720 (fixup): Change unsigned to grub_uint16_t.
10721 (read_mft): Change unsigned long to grub_uint32_t.
10722 (read_attr): Likewise.
10723 (read_data): Likewise.
10724 (read_run_data): Likewise.
10725 (read_run_list): Likewise.
10726 (read_mft): Likewise.
10728 * fs/ntfscomp.c: New file.
10730 * include/grub/ntfs.h: New file.
10732 2007-12-16 Robert Millan <rmh@aybabtu.com>
10734 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
10735 IDE disk check, since Linux is known to support 20 IDE disks.
10736 Reported by Colin Watson.
10738 2007-12-15 Bean <bean123ch@gmail.com>
10740 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
10741 (lnxboot_img_SOURCES): New variable.
10742 (lnxboot_img_ASFLAGS): Likewise.
10743 (lnxboot_img_LDFLAGS): Likewise.
10745 * boot/i386/pc/lnxboot.S: New file.
10747 2007-11-24 Pavel Roskin <proski@gnu.org>
10749 * configure.ac: Test if '--build-id=none' is supported by the
10750 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
10751 objcopy to generate incorrect binary files (binutils
10752 2.17.50.0.18-1 as shipped by Fedora 8).
10753 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
10754 linking, so that build ID doesn't break the test.
10756 2007-11-24 Pavel Roskin <proski@gnu.org>
10758 * include/grub/i386/time.h: use "void" in the argument list
10759 of grub_cpu_idle().
10760 * include/grub/powerpc/time.h: Likewise.
10761 * include/grub/sparc64/time.h: Likewise.
10763 2007-11-18 Christian Franke <franke@computer.org>
10765 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
10766 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
10767 This fixes the problem that function keys did not work in grub-emu.
10769 2007-11-18 Christian Franke <franke@computer.org>
10771 * disk/host.c (grub_host_open): Remove attribute unused from
10772 name parameter. Add check for "host". This fixes the problem
10773 that grub-emu does not find partitions.
10775 2007-11-18 Christian Franke <franke@computer.org>
10777 * util/hostfs.c (is_dir): New function.
10778 (grub_hostfs_dir): Handle missing dirent.d_type case.
10779 (grub_hostfs_read): Add missing fseek().
10780 (grub_hostfs_label): Clear label pointer. This fixes a crash
10781 of grub-emu on "ls (host)".
10783 2007-11-18 Christian Franke <franke@computer.org>
10785 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
10786 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
10787 to 64 bit boundary by default.
10789 2007-11-18 Bean <bean123ch@gmail.com>
10791 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
10792 (hexdump_mod_SOURCES): New variable.
10793 (hexdump_mod_CFLAGS): Likewise.
10794 (hexdump_mod_LDFLAGS): Likewise.
10796 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
10798 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
10800 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
10802 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
10804 * include/grub/hexdump.h: New file.
10806 * commands/hexdump.c: New file.
10808 2007-11-10 Robert Millan <rmh@aybabtu.com>
10810 * commands/i386/pc/play.c (beep_off): Switch order of arguments
10811 in grub_outb() calls.
10812 (beep_on): Likewise.
10814 2007-11-10 Christian Franke <franke@computer.org>
10816 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
10817 (grub_menu_run): Likewise.
10819 2007-11-10 Robert Millan <rmh@aybabtu.com>
10821 * include/grub/i386/efi/machine.h: New file.
10822 * include/grub/i386/linuxbios/machine.h: Likewise.
10823 * include/grub/i386/pc/machine.h: Likewise.
10824 * include/grub/powerpc/ieee1275/machine.h: Likewise.
10825 * include/grub/sparc64/ieee1275/machine.h: Likewise.
10827 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
10828 (serial_hw_io_addr): New variable.
10829 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
10830 instead of `(unsigned short *) 0x400'.
10832 2007-11-10 Bean <bean123ch@gmail.com>
10834 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
10836 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
10838 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
10839 (vga_mod_SOURCES): Added.
10840 (vga_mod_CFLAGS): Likewise.
10841 (vga_mod_LDFLAGS): Likewise.
10843 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
10845 (set_map_mask): Likewise.
10846 (set_read_map): Likewise.
10847 (set_read_address): Likewise.
10848 (vga_font): Removed variable.
10849 (get_vga_glyph): Removed function.
10850 (invalidate_char): Likewise.
10851 (write_char): Changed to use grub_font_get_glyph() for font
10853 (grub_vga_putchar): Likewise.
10854 (grub_vga_getcharwidth): Likewise.
10856 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
10858 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
10860 (pxeboot_img_LDFLAGS): Likewise.
10861 (diskboot_img_LDFLAGS): Likewise.
10862 (kernel_img_LDFLAGS): Likewise.
10864 2007-11-06 Robert Millan <rmh@aybabtu.com>
10866 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
10867 in grub_outb() calls.
10868 (serial_hw_init): Likewise.
10870 2007-11-05 Robert Millan <rmh@aybabtu.com>
10872 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
10873 spaces. Skip non-regular files.
10875 2007-11-05 Robert Millan <rmh@aybabtu.com>
10877 * kern/disk.c (grub_disk_firmware_fini)
10878 (grub_disk_firmware_is_tainted): New variables.
10880 * include/grub/disk.h (grub_disk_firmware_fini)
10881 (grub_disk_firmware_is_tainted): Likewise.
10883 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
10884 (grub_disk_biosdisk_fini): ... to here.
10885 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
10886 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
10887 is set. Register grub_disk_biosdisk_fini() in
10888 `grub_disk_firmware_fini'.
10890 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
10891 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
10892 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
10893 to finish existing firmware disk interface.
10895 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
10896 (ata_mod_SOURCES): New variable.
10897 (ata_mod_CFLAGS): Likewise.
10898 (ata_mod_LDFLAGS): Likewise.
10900 2007-11-05 Robert Millan <rmh@aybabtu.com>
10902 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
10903 (grub_ata_wait): Reimplement using grub_millisleep().
10905 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
10906 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
10908 2007-11-03 Marco Gerards <marco@gnu.org>
10910 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
10911 (CRTC_ADDR_PORT): New macro.
10912 (CRTC_DATA_PORT): Likewise.
10913 (CRTC_CURSOR): Likewise.
10914 (CRTC_CURSOR_ADDR_HIGH): Likewise.
10915 (CRTC_CURSOR_ADDR_LOW): Likewise.
10916 (update_cursor): New function.
10917 (grub_console_real_putchar): Call `update_cursor'.
10918 (grub_console_gotoxy): Likewise.
10919 (grub_console_cls): Set the default color when clearing the
10921 (grub_console_setcursor): Implemented.
10923 2007-11-03 Marco Gerards <marco@gnu.org>
10925 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
10927 (grub_ata_pio_write): Likewise.
10929 (grub_atapi_identify): Wait after issuing an ATA command.
10930 (grub_atapi_packet): Likewise.
10931 (grub_ata_identify): Likewise.
10932 (grub_ata_readwrite): Likewise.
10934 2007-11-03 Marco Gerards <marco@gnu.org>
10936 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
10937 (grub_ata_pio_write): Likewise.
10938 (grub_ata_readwrite): Use `grub_error', instead of
10939 returning `grub_errno'.
10941 2007-11-03 Marco Gerards <marco@gnu.org>
10943 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
10944 grub_ata_pio_write once for every single sector, instead of for
10947 2007-10-31 Robert Millan <rmh@aybabtu.com>
10949 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
10951 * conf/i386-linuxbios.rmk: New file.
10953 * kern/i386/pc/hardware.c: Likewise.
10954 * term/i386/pc/at_keyboard.c: Likewise.
10955 * term/i386/pc/vga_text.c: Likewise.
10957 * include/grub/i386/linuxbios/boot.h: Likewise.
10958 * include/grub/i386/linuxbios/console.h: Likewise.
10959 * include/grub/i386/linuxbios/init.h: Likewise.
10960 * include/grub/i386/linuxbios/kernel.h: Likewise.
10961 * include/grub/i386/linuxbios/loader.h: Likewise.
10962 * include/grub/i386/linuxbios/memory.h: Likewise.
10963 * include/grub/i386/linuxbios/serial.h: Likewise.
10964 * include/grub/i386/linuxbios/time.h: Likewise.
10966 * kern/i386/linuxbios/init.c: Likewise.
10967 * kern/i386/linuxbios/startup.S: Likewise.
10968 * kern/i386/linuxbios/table.c: Likewise.
10970 2007-10-31 Marco Gerards <marco@gnu.org>
10972 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
10973 (ata_mod_SOURCES): New variable.
10974 (ata_mod_CFLAGS): Likewise.
10975 (ata_mod_LDFLAGS): Likewise.
10977 * disk/ata.c: New file.
10979 * include/grub/disk.h (grub_disk_dev_id): Add
10980 `GRUB_DISK_DEV_ATA_ID'.
10982 2007-10-31 Robert Millan <rmh@aybabtu.com>
10984 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
10985 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
10987 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
10988 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
10990 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
10993 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
10995 2007-10-27 Robert Millan <rmh@aybabtu.com>
10997 * include/grub/types.h (ULONG_MAX): Define macro.
10999 2007-10-22 Robert Millan <rmh@aybabtu.com>
11001 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
11003 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
11005 2007-10-22 Robert Millan <rmh@aybabtu.com>
11007 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
11008 (pkgdata_MODULES): Add `biosdisk.mod'.
11009 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
11012 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
11013 (grub_biosdisk_init): Replace with ...
11014 (GRUB_MOD_INIT(biosdisk)): ... this.
11015 (grub_biosdisk_fini): Replace with ...
11016 (GRUB_MOD_FINI(biosdisk)): ... this.
11018 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
11019 (grub_machine_init): Remove call to grub_biosdisk_init().
11020 (grub_machine_fini): Remove call to grub_machine_fini().
11022 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
11024 2007-10-22 Robert Millan <rmh@aybabtu.com>
11026 * include/grub/time.h: New file.
11027 * include/grub/i386/time.h: Likewise.
11028 * include/grub/powerpc/time.h: Likewise.
11029 * include/grub/sparc64/time.h: Likewise.
11031 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
11033 (KERNEL_MACHINE_TIME_HEADER): ... this.
11034 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
11036 (KERNEL_MACHINE_TIME_HEADER): ... this.
11037 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
11039 (KERNEL_MACHINE_TIME_HEADER): ... this.
11041 * kern/i386/efi/init.c: Include `<grub/time.h>'.
11042 (grub_millisleep): New function.
11043 * kern/i386/pc/init.c: Include `<grub/time.h>'.
11044 (grub_millisleep): New function.
11045 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
11046 Remove `grub/machine/time.h' include.
11047 (grub_millisleep): New function.
11048 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
11049 Remove `grub/machine/time.h' include.
11050 (grub_millisleep): New function.
11052 * include/grub/misc.h (grub_div_roundup): New function.
11054 * kern/misc.c: Include `<grub/time.h>'.
11055 (grub_millisleep_generic): New function.
11057 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
11059 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
11061 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
11062 `machine/time.h'. Add `time.h'.
11063 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
11065 2007-10-21 Robert Millan <rmh@aybabtu.com>
11067 * include/grub/misc.h (grub_max): New function.
11069 2007-10-21 Robert Millan <rmh@aybabtu.com>
11071 * util/misc.c (grub_util_info): Call fflush() before returning.
11073 2007-10-20 Robert Millan <rmh@aybabtu.com>
11075 * genmk.rb (Image): Copy `extra_flags' from here ...
11076 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
11078 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
11079 to `argc' and `args' arguments.
11081 2007-10-17 Robert Millan <rmh@aybabtu.com>
11083 * kern/i386/loader.S: New file.
11085 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
11086 * kern/i386/loader.S (grub_linux_prot_size)... to here.
11087 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
11088 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
11089 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
11090 * kern/i386/loader.S (grub_linux_real_addr)... to here.
11091 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
11092 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
11093 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
11094 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
11095 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
11096 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
11097 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
11098 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
11100 * kern/i386/realmode.S: New file.
11102 * kern/i386/pc/startup.S (protstack): Moved from here ...
11103 * kern/i386/realmode.S (protstack)... to here.
11104 * kern/i386/pc/startup.S (gdt): Moved from here ...
11105 * kern/i386/realmode.S (gdt)... to here.
11106 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
11107 * kern/i386/realmode.S (prot_to_real)... to here.
11109 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
11110 `kern/i386/realmode.S'.
11112 2007-10-17 Robert Millan <rmh@aybabtu.com>
11114 * include/grub/i386/loader.h: New file.
11116 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
11117 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
11118 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
11119 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
11120 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
11121 * include/grub/i386/loader.h (grub_linux_prot_size)
11122 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
11123 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
11124 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
11125 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
11127 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
11129 2007-10-15 Robert Millan <rmh@aybabtu.com>
11131 * normal/misc.c (grub_normal_print_device_info): Do not probe for
11132 filesystem when dev->disk is unset.
11133 Do probe for filesystem even when dev->disk->has_partitions is set.
11134 In case a filesystem is found, always report it.
11135 In case it isn't, if dev->disk->has_partitions is set, report that
11136 a partition table was found instead of reporting that no filesystem
11137 could be identified.
11139 2007-10-12 Robert Millan <rmh@aybabtu.com>
11141 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
11142 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
11144 * include/grub/types.h (grub_host_to_target16): New macro.
11145 (grub_host_to_target32): Likewise.
11146 (grub_host_to_target64): Likewise.
11147 (grub_target_to_host16): Likewise.
11148 (grub_target_to_host32): Likewise.
11149 (grub_target_to_host64): Likewise.
11151 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
11152 Renamed from to ...
11153 (GRUB_MOD_ALIGN): ...this. Update all users.
11155 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
11156 grub_host_to_target32.
11157 Replace grub_be_to_cpu32 with grub_target_to_host32.
11158 (load_modules): Likewise.
11159 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
11160 Replace grub_be_to_cpu32 with grub_target_to_host32.
11161 Replace grub_cpu_to_be16 with grub_host_to_target16.
11162 Replace grub_cpu_to_be32 grub_host_to_target32.
11164 2007-10-12 Robert Millan <rmh@aybabtu.com>
11166 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
11167 * util/elf/grub-mkimage.c: ... here.
11169 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
11170 `util/powerpc/ieee1275/grub-mkimage.c'.
11172 2007-10-07 Robert Millan <rmh@aybabtu.com>
11174 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
11175 and make it easier to figure out.
11176 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
11177 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
11178 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
11179 leave us with less than HEAP_MIN_SIZE total heap.
11180 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
11182 2007-10-03 Robert Millan <rmh@aybabtu.com>
11184 * include/grub/i386/io.h: New file.
11185 * commands/i386/pc/play.c (inb): Removed.
11187 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
11189 * term/i386/pc/serial.c (inb): Removed.
11191 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
11193 * term/i386/pc/vga.c (inb): Removed.
11195 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
11198 2007-10-02 Robert Millan <rmh@aybabtu.com>
11200 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
11201 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11202 Reported by Marcin Kurek.
11204 2007-09-07 Robert Millan <rmh@aybabtu.com>
11206 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
11207 SmartFirmware version updates (as released by Sven Luther), and avoid
11208 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
11209 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
11212 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
11214 From Hitoshi Ozeki:
11215 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
11216 when merging two regions.
11218 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
11220 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
11221 * normal/completion.c (grub_normal_do_completion): Likewise.
11222 Reported by Hitoshi Ozeki.
11224 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
11226 Do not use devices at boot in chainloading.
11228 * loader/i386/pc/chainloader.c (boot_drive): New variable.
11229 (boot_part_addr): Likewise.
11230 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
11231 with BOOT_DRIVE and BOOT_PART_ADDR.
11232 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
11233 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
11235 2007-08-29 Robert Millan <rmh@aybabtu.com>
11237 Patch from Simon Peter <dn.tlp@gmx.net>:
11238 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
11239 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
11240 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
11241 util/i386/pc/grub-setup.c_DEPENDENCIES.
11242 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
11243 util/grub-probe.c_DEPENDENCIES.
11244 * conf/powerpc-ieee1275.rmk: Likewise.
11246 2007-08-28 Robert Millan <rmh@aybabtu.com>
11248 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
11249 to tell grub-mkdevicemap how to name devices.
11250 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
11253 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
11254 util/i386/get_disk_name.c.
11255 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
11256 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
11257 util/ieee1275/get_disk_name.c.
11259 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
11261 * DISTLIST: Add util/i386/get_disk_name.c and
11262 util/ieee1275/get_disk_name.c.
11264 * util/grub-mkdevicemap.c: Replace device naming logic with
11265 grub_util_get_disk_name() calls.
11267 2007-08-20 Robert Millan <rmh@aybabtu.com>
11269 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
11270 (so that it works for both plural and singular quantities).
11272 2007-08-05 Robert Millan <rmh@aybabtu.com>
11274 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
11275 so that [xz] isn't taken into account when determining order.
11277 2007-08-02 Marco Gerards <marco@gnu.org>
11279 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
11280 `include/multiboot2.h', `include/grub/elfload.h',
11281 `include/multiboot.h', `include/grub/multiboot.h',
11282 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
11283 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
11284 `kern/elf.c', `loader/multiboot_loader.c',
11285 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
11286 `loader/i386/pc/multiboot2.c',
11287 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
11288 `util/i386/pc/grub-mkrescue.in'. Remove
11289 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
11290 `include/grub/i386/pc/util/biosdisk.h' and
11291 `include/grub/powerpc/ieee1275/multiboot.h'.
11293 2007-08-02 Bean <bean123ch@gmail.com>
11295 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
11296 (ntfs_mod_SOURCES): New variable.
11297 (ntfs_mod_CFLAGS): Likewise.
11298 (ntfs_mod_LDFLAGS): Likewise.
11300 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
11301 (grub_probe_SOURCES): Likewise.
11302 (grub_emu_SOURCES): Likewise.
11304 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
11305 (grub_emu_SOURCES): Likewise.
11307 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
11308 (grub_emu_SOURCES): Likewise.
11310 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
11312 * fs/ntfs.c: New file.
11314 2007-08-02 Bean <bean123ch@gmail.com>
11316 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
11318 * file.h (grub_file): Likewise.
11320 * fshelp.h (grub_fshelp_read_file): Likewise.
11322 * util/i386/pc/grub-setup.c (setup): Likewise.
11323 (save_first_sector): Likewise.
11324 (save_blocklists): Likewise.
11326 * fs/affs.c (grub_affs_read_file): Likewise.
11328 * fs/ext2.c (grub_ext2_read_file): Likewise.
11330 * fs/fat.c (grub_fat_read_data): Likewise.
11332 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
11334 * fs/hfs.c (grub_hfs_read_file): Likewise.
11336 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
11338 * fs/jfs.c (grub_jfs_read_file): Likewise.
11340 * fs/minix.c (grub_minix_read_file): Likewise.
11342 * fs/sfs.c (grub_sfs_read_file): Likewise.
11344 * fs/ufs.c (grub_ufs_read_file): Likewise.
11346 * fs/xfs.c (grub_xfs_read_file): Likewise.
11348 * command/blocklist.c (read_blocklist): Likewise.
11349 (print_blocklist): Likewise.
11351 2007-08-02 Marco Gerards <marco@gnu.org>
11353 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
11356 * disk/host.c: New file.
11358 * util/hostfs.c: Likewise.
11360 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
11361 return `GRUB_ERR_BAD_FS'.
11362 * fs/sfs.c (grub_sfs_mount): Likewise.
11363 * fs/xfs.c (grub_xfs_mount): Likewise.
11365 * include/grub/disk.h (enum grub_disk_dev_id): Add
11366 `GRUB_DISK_DEVICE_HOST_ID'.
11368 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
11370 2007-07-24 Jerone Young <jerone@gmail.com>
11372 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
11373 modules for compilation.
11374 * conf/powerpc-ieee1275.rmk: Likewise.
11376 * include/multiboot.h: Move multiboot definitions to one file. Rename
11377 many definitions to not get grub specific.
11378 * include/multiboot2.h: Create header with multiboot 2 definitions.
11379 * include/grub/multiboot.h: Header for grub specific function
11380 prototypes and definitions.
11381 * include/grub/multiboot2.h: Likewise.
11382 * include/grub/multiboot_loader.h: Likewise.
11383 * include/grub/i386/pc/multiboot.h: Removed.
11384 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
11386 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
11387 and 2 to allow for one multiboot and module commands.
11388 * loader/multiboot2.c: Add multiboot2 functionality.
11389 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
11390 and definition names.
11391 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
11393 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
11394 ieee1275 specific multiboot2 code.
11396 * kern/i386/pc/startup.S: Change headers and definition names for
11397 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
11399 2007-07-22 Robert Millan <rmh@aybabtu.com>
11401 * geninitheader.sh: Process file specified in first parameter rather
11402 than hardcoding grub_modules_init.lst.
11403 * geninit.sh: Likewise. Also, construct header name dynamically rather
11404 than hardcoding grub_modules_init.h.
11406 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
11407 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
11408 grub_probe_init.[ch] and grub_setup_init.[ch].
11410 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
11411 grub_modules_init.h with grub_emu_init.h.
11412 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
11413 grub_probe_init.[ch] files.
11414 * conf/i386-efi.rmk: Likewise.
11415 * conf/i386-pc.rmk: Likewise.
11416 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
11417 grub_setup_init.[ch] files.
11419 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
11420 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
11421 to initialize modules rather than a list of hardcoded functions.
11422 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
11423 grub_init_all() to initialize modules rather than a list of hardcoded
11426 2007-07-22 Robert Millan <rmh@aybabtu.com>
11428 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
11429 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
11431 2007-07-22 Robert Millan <rmh@aybabtu.com>
11433 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
11434 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
11435 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
11436 flag when running on SmartFirmware.
11437 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
11438 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
11441 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11442 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
11443 rather than decreasing it.
11445 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
11446 there's not enough space to do it, fail in the same way as when it
11447 can't be done because there are no partitions.
11449 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
11450 when nvsetenv failed.
11452 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
11454 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
11455 because this rule is automatically generated.
11456 (grub-mkrescue): Removed for the same reason as above.
11458 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
11460 Migrate to GNU General Public License Version 3.
11462 * COPYING: Replaced with the plain text version of GPLv3.
11464 * config.guess: Updated from gnulib.
11465 * config.sub: Likewise.
11467 * geninit.sh: Output a GPLv3 copyright notice.
11468 * geninitheader.sh: Likewise.
11469 * genmodsrc.sh: Likewise.
11470 * gensymlist.sh.in: Likewise.
11472 * boot/i386/pc/boot.S: Upgraded to GPLv3.
11473 * boot/i386/pc/diskboot.S: Likewise.
11474 * boot/i386/pc/pxeboot.S: Likewise.
11475 * commands/blocklist.c: Likewise.
11476 * commands/boot.c: Likewise.
11477 * commands/cat.c: Likewise.
11478 * commands/cmp.c: Likewise.
11479 * commands/configfile.c: Likewise.
11480 * commands/echo.c: Likewise.
11481 * commands/help.c: Likewise.
11482 * commands/ls.c: Likewise.
11483 * commands/search.c: Likewise.
11484 * commands/terminal.c: Likewise.
11485 * commands/test.c: Likewise.
11486 * commands/videotest.c: Likewise.
11487 * commands/i386/cpuid.c: Likewise.
11488 * commands/i386/pc/halt.c: Likewise.
11489 * commands/i386/pc/play.c: Likewise.
11490 * commands/i386/pc/reboot.c: Likewise.
11491 * commands/i386/pc/vbeinfo.c: Likewise.
11492 * commands/i386/pc/vbetest.c: Likewise.
11493 * commands/ieee1275/halt.c: Likewise.
11494 * commands/ieee1275/reboot.c: Likewise.
11495 * commands/ieee1275/suspend.c: Likewise.
11496 * disk/loopback.c: Likewise.
11497 * disk/lvm.c: Likewise.
11498 * disk/raid.c: Likewise.
11499 * disk/efi/efidisk.c: Likewise.
11500 * disk/i386/pc/biosdisk.c: Likewise.
11501 * disk/ieee1275/ofdisk.c: Likewise.
11502 * font/manager.c: Likewise.
11503 * fs/affs.c: Likewise.
11504 * fs/ext2.c: Likewise.
11505 * fs/fat.c: Likewise.
11506 * fs/fshelp.c: Likewise.
11507 * fs/hfs.c: Likewise.
11508 * fs/hfsplus.c: Likewise.
11509 * fs/iso9660.c: Likewise.
11510 * fs/jfs.c: Likewise.
11511 * fs/minix.c: Likewise.
11512 * fs/sfs.c: Likewise.
11513 * fs/ufs.c: Likewise.
11514 * fs/xfs.c: Likewise.
11515 * hello/hello.c: Likewise.
11516 * include/grub/acorn_filecore.h: Likewise.
11517 * include/grub/arg.h: Likewise.
11518 * include/grub/bitmap.h: Likewise.
11519 * include/grub/boot.h: Likewise.
11520 * include/grub/cache.h: Likewise.
11521 * include/grub/device.h: Likewise.
11522 * include/grub/disk.h: Likewise.
11523 * include/grub/dl.h: Likewise.
11524 * include/grub/elfload.h: Likewise.
11525 * include/grub/env.h: Likewise.
11526 * include/grub/err.h: Likewise.
11527 * include/grub/file.h: Likewise.
11528 * include/grub/font.h: Likewise.
11529 * include/grub/fs.h: Likewise.
11530 * include/grub/fshelp.h: Likewise.
11531 * include/grub/gzio.h: Likewise.
11532 * include/grub/hfs.h: Likewise.
11533 * include/grub/kernel.h: Likewise.
11534 * include/grub/loader.h: Likewise.
11535 * include/grub/lvm.h: Likewise.
11536 * include/grub/misc.h: Likewise.
11537 * include/grub/mm.h: Likewise.
11538 * include/grub/net.h: Likewise.
11539 * include/grub/normal.h: Likewise.
11540 * include/grub/parser.h: Likewise.
11541 * include/grub/partition.h: Likewise.
11542 * include/grub/pc_partition.h: Likewise.
11543 * include/grub/raid.h: Likewise.
11544 * include/grub/rescue.h: Likewise.
11545 * include/grub/script.h: Likewise.
11546 * include/grub/setjmp.h: Likewise.
11547 * include/grub/symbol.h: Likewise.
11548 * include/grub/term.h: Likewise.
11549 * include/grub/terminfo.h: Likewise.
11550 * include/grub/tparm.h: Likewise.
11551 * include/grub/types.h: Likewise.
11552 * include/grub/video.h: Likewise.
11553 * include/grub/efi/api.h: Likewise.
11554 * include/grub/efi/chainloader.h: Likewise.
11555 * include/grub/efi/console.h: Likewise.
11556 * include/grub/efi/console_control.h: Likewise.
11557 * include/grub/efi/disk.h: Likewise.
11558 * include/grub/efi/efi.h: Likewise.
11559 * include/grub/efi/pe32.h: Likewise.
11560 * include/grub/efi/time.h: Likewise.
11561 * include/grub/i386/linux.h: Likewise.
11562 * include/grub/i386/setjmp.h: Likewise.
11563 * include/grub/i386/types.h: Likewise.
11564 * include/grub/i386/efi/kernel.h: Likewise.
11565 * include/grub/i386/efi/loader.h: Likewise.
11566 * include/grub/i386/efi/time.h: Likewise.
11567 * include/grub/i386/pc/biosdisk.h: Likewise.
11568 * include/grub/i386/pc/boot.h: Likewise.
11569 * include/grub/i386/pc/chainloader.h: Likewise.
11570 * include/grub/i386/pc/console.h: Likewise.
11571 * include/grub/i386/pc/init.h: Likewise.
11572 * include/grub/i386/pc/kernel.h: Likewise.
11573 * include/grub/i386/pc/loader.h: Likewise.
11574 * include/grub/i386/pc/memory.h: Likewise.
11575 * include/grub/i386/pc/multiboot.h: Likewise.
11576 * include/grub/i386/pc/serial.h: Likewise.
11577 * include/grub/i386/pc/time.h: Likewise.
11578 * include/grub/i386/pc/vbe.h: Likewise.
11579 * include/grub/i386/pc/vbeblit.h: Likewise.
11580 * include/grub/i386/pc/vbefill.h: Likewise.
11581 * include/grub/i386/pc/vbeutil.h: Likewise.
11582 * include/grub/i386/pc/vga.h: Likewise.
11583 * include/grub/ieee1275/ieee1275.h: Likewise.
11584 * include/grub/ieee1275/ofdisk.h: Likewise.
11585 * include/grub/powerpc/libgcc.h: Likewise.
11586 * include/grub/powerpc/setjmp.h: Likewise.
11587 * include/grub/powerpc/types.h: Likewise.
11588 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
11589 * include/grub/powerpc/ieee1275/console.h: Likewise.
11590 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
11591 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
11592 * include/grub/powerpc/ieee1275/loader.h: Likewise.
11593 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
11594 * include/grub/powerpc/ieee1275/time.h: Likewise.
11595 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
11596 * include/grub/sparc64/libgcc.h: Likewise.
11597 * include/grub/sparc64/setjmp.h: Likewise.
11598 * include/grub/sparc64/types.h: Likewise.
11599 * include/grub/sparc64/ieee1275/console.h: Likewise.
11600 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
11601 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
11602 * include/grub/sparc64/ieee1275/time.h: Likewise.
11603 * include/grub/util/biosdisk.h: Likewise.
11604 * include/grub/util/getroot.h: Likewise.
11605 * include/grub/util/lvm.h: Likewise.
11606 * include/grub/util/misc.h: Likewise.
11607 * include/grub/util/raid.h: Likewise.
11608 * include/grub/util/resolve.h: Likewise.
11609 * io/gzio.c: Likewise.
11610 * kern/device.c: Likewise.
11611 * kern/disk.c: Likewise.
11612 * kern/dl.c: Likewise.
11613 * kern/elf.c: Likewise.
11614 * kern/env.c: Likewise.
11615 * kern/err.c: Likewise.
11616 * kern/file.c: Likewise.
11617 * kern/fs.c: Likewise.
11618 * kern/loader.c: Likewise.
11619 * kern/main.c: Likewise.
11620 * kern/misc.c: Likewise.
11621 * kern/mm.c: Likewise.
11622 * kern/parser.c: Likewise.
11623 * kern/partition.c: Likewise.
11624 * kern/rescue.c: Likewise.
11625 * kern/term.c: Likewise.
11626 * kern/efi/efi.c: Likewise.
11627 * kern/efi/init.c: Likewise.
11628 * kern/efi/mm.c: Likewise.
11629 * kern/i386/dl.c: Likewise.
11630 * kern/i386/efi/init.c: Likewise.
11631 * kern/i386/efi/startup.S: Likewise.
11632 * kern/i386/pc/init.c: Likewise.
11633 * kern/i386/pc/lzo1x.S: Likewise.
11634 * kern/i386/pc/startup.S: Likewise.
11635 * kern/ieee1275/ieee1275.c: Likewise.
11636 * kern/powerpc/cache.S: Likewise.
11637 * kern/powerpc/dl.c: Likewise.
11638 * kern/powerpc/ieee1275/cmain.c: Likewise.
11639 * kern/powerpc/ieee1275/crt0.S: Likewise.
11640 * kern/powerpc/ieee1275/init.c: Likewise.
11641 * kern/powerpc/ieee1275/openfw.c: Likewise.
11642 * kern/sparc64/cache.S: Likewise.
11643 * kern/sparc64/dl.c: Likewise.
11644 * kern/sparc64/ieee1275/init.c: Likewise.
11645 * kern/sparc64/ieee1275/openfw.c: Likewise.
11646 * loader/efi/chainloader.c: Likewise.
11647 * loader/efi/chainloader_normal.c: Likewise.
11648 * loader/i386/efi/linux.c: Likewise.
11649 * loader/i386/efi/linux_normal.c: Likewise.
11650 * loader/i386/pc/chainloader.c: Likewise.
11651 * loader/i386/pc/chainloader_normal.c: Likewise.
11652 * loader/i386/pc/linux.c: Likewise.
11653 * loader/i386/pc/linux_normal.c: Likewise.
11654 * loader/i386/pc/multiboot.c: Likewise.
11655 * loader/i386/pc/multiboot_normal.c: Likewise.
11656 * loader/powerpc/ieee1275/linux.c: Likewise.
11657 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
11658 * normal/arg.c: Likewise.
11659 * normal/cmdline.c: Likewise.
11660 * normal/command.c: Likewise.
11661 * normal/completion.c: Likewise.
11662 * normal/execute.c: Likewise.
11663 * normal/function.c: Likewise.
11664 * normal/lexer.c: Likewise.
11665 * normal/main.c: Likewise.
11666 * normal/menu.c: Likewise.
11667 * normal/menu_entry.c: Likewise.
11668 * normal/misc.c: Likewise.
11669 * normal/parser.y: Likewise.
11670 * normal/script.c: Likewise.
11671 * normal/i386/setjmp.S: Likewise.
11672 * normal/powerpc/setjmp.S: Likewise.
11673 * normal/sparc64/setjmp.S: Likewise.
11674 * partmap/acorn.c: Likewise.
11675 * partmap/amiga.c: Likewise.
11676 * partmap/apple.c: Likewise.
11677 * partmap/gpt.c: Likewise.
11678 * partmap/pc.c: Likewise.
11679 * partmap/sun.c: Likewise.
11680 * term/gfxterm.c: Likewise.
11681 * term/terminfo.c: Likewise.
11682 * term/efi/console.c: Likewise.
11683 * term/i386/pc/console.c: Likewise.
11684 * term/i386/pc/serial.c: Likewise.
11685 * term/i386/pc/vesafb.c: Likewise.
11686 * term/i386/pc/vga.c: Likewise.
11687 * term/ieee1275/ofconsole.c: Likewise.
11688 * util/biosdisk.c: Likewise.
11689 * util/console.c: Likewise.
11690 * util/genmoddep.c: Likewise.
11691 * util/getroot.c: Likewise.
11692 * util/grub-emu.c: Likewise.
11693 * util/grub-mkdevicemap.c: Likewise.
11694 * util/grub-probe.c: Likewise.
11695 * util/lvm.c: Likewise.
11696 * util/misc.c: Likewise.
11697 * util/raid.c: Likewise.
11698 * util/resolve.c: Likewise.
11699 * util/update-grub.in: Likewise.
11700 * util/update-grub_lib.in: Likewise.
11701 * util/grub.d/00_header.in: Likewise.
11702 * util/grub.d/10_hurd.in: Likewise.
11703 * util/grub.d/10_linux.in: Likewise.
11704 * util/i386/efi/grub-install.in: Likewise.
11705 * util/i386/efi/grub-mkimage.c: Likewise.
11706 * util/i386/pc/grub-install.in: Likewise.
11707 * util/i386/pc/grub-mkimage.c: Likewise.
11708 * util/i386/pc/grub-mkrescue.in: Likewise.
11709 * util/i386/pc/grub-setup.c: Likewise.
11710 * util/i386/pc/misc.c: Likewise.
11711 * util/powerpc/ieee1275/grub-install.in: Likewise.
11712 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
11713 * util/powerpc/ieee1275/misc.c: Likewise.
11714 * video/bitmap.c: Likewise.
11715 * video/video.c: Likewise.
11716 * video/i386/pc/vbe.c: Likewise.
11717 * video/i386/pc/vbeblit.c: Likewise.
11718 * video/i386/pc/vbefill.c: Likewise.
11719 * video/i386/pc/vbeutil.c: Likewise.
11720 * video/readers/tga.c: Likewise.
11722 2007-07-02 Robert Millan <rmh@aybabtu.com>
11724 * conf/i386-efi.rmk: Replace obsolete reference to
11725 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
11726 with util/getroot.c.
11727 * conf/powerpc-ieee1275.rmk: Likewise.
11728 * conf/sparc64-ieee1275.rmk: Likewise.
11730 * util/grub-emu.c (main): Fix unchecked pointer handling.
11732 2007-07-02 Robert Millan <rmh@aybabtu.com>
11734 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
11735 invocation to fail, in order to support partition-less media.
11737 * util/i386/pc/grub-install.in: Likewise.
11739 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
11740 which fs or partmap modules are needed (akin to its sister scripts).
11742 Also use grub-probe to get rid of unportable /proc/mounts check.
11744 Print the same informational message that the other scripts do, before
11747 2007-06-23 Robert Millan <rmh@aybabtu.com>
11749 * util/update-grub_lib.in (font_path): New function. Determine whether
11750 a font file can be found and, if so, echo the GRUB path to it.
11752 * util/update-grub.in: Handle multiple terminals depending on user
11753 input, platform availability and font file presence. Propagate
11754 variables of our findings to /etc/grub.d/ children.
11756 * util/grub.d/00_header.in: Handle multiple terminals, based on
11757 environment setup by update-grub.
11759 2007-06-23 Robert Millan <rmh@aybabtu.com>
11761 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
11763 2007-06-21 Robert Millan <rmh@aybabtu.com>
11765 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
11766 indicate end of data section in kernel image.
11767 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
11768 GRUB_KERNEL_MACHINE_DATA_END.
11770 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
11772 * kern/i386/efi/startup.S: Likewise.
11774 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
11775 during image generation. Implement --prefix option to override this
11777 * util/i386/efi/grub-mkimage.c: Likewise.
11779 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
11780 code to make path relative to its root into a separate function.
11782 * util/i386/pc/grub-install.in: Use newly provided
11783 make_system_path_relative_to_its_root() to convert ${grubdir}, then
11784 pass the result to grub-install --prefix.
11786 2007-06-13 Robert Millan <rmh@aybabtu.com>
11788 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
11789 DEFAULT_DEVICE_MAP.
11790 * util/grub-emu.c: Use above definitions from misc.h instead of
11792 * util/grub-mkdevicemap.c: Likewise.
11793 * util/i386/pc/grub-setup.c: Likewise.
11794 * util/grub-probe.c: Likewise.
11795 (probe): Abort with grub_util_error() when either
11796 grub_guess_root_device or grub_util_get_grub_dev fails.
11798 2007-06-12 Robert Millan <rmh@aybabtu.com>
11800 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
11801 "pager" assignment.
11802 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
11804 * util/grub-probe.c (probe): Likewise for "drive_name".
11806 2007-06-11 Robert Millan <rmh@aybabtu.com>
11808 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
11809 not just the cdrom one.
11811 2007-06-11 Robert Millan <rmh@aybabtu.com>
11813 * util/i386/pc/grub-mkrescue.in: Add "set -e".
11814 Add --pkglibdir=DIR option to override pkglibdir.
11815 Mention --image-type=TYPE in help output.
11816 Fix --grub-mkimage (it was a no-op).
11817 Abort gracefully when no parameter is given.
11819 2007-06-11 Robert Millan <rmh@aybabtu.com>
11821 * util/i386/pc/grub-mkrescue.in: New file.
11822 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
11823 * Makefile.in: Handle bin_SCRIPTS.
11825 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
11827 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
11828 list of video modes.
11830 2007-06-06 Robert Millan <rmh@aybabtu.com>
11832 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
11833 file doesn't exist, or if it is in a filesystem grub can't read.
11835 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
11836 not abort if GRUB_DRIVE could not be defined. Rearrange generated
11837 header comment to fit in 80 columns when the variables are resolved.
11839 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
11840 could be identified by update-grub. Remove redundant check for
11841 unifont.pff existence (since convert_system_path_to_grub_path now
11844 2007-06-04 Robert Millan <rmh@aybabtu.com>
11846 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
11848 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
11850 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
11852 2007-06-04 Robert Millan <rmh@aybabtu.com>
11854 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
11856 * include/grub/partition.h: Declare grub_apple_partition_map_init and
11857 grub_apple_partition_map_fini.
11860 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
11861 to access >2 TiB disks).
11863 Print disk->total_sectors with %llu instead of %lu, since this
11864 variable is always 64-bit (prevents wrong disk size from being displayed
11865 on either >2 TiB disk or big-endian CPU).
11867 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
11868 into a generic case that supports all (sane) partition maps.
11870 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
11873 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
11874 and grub_apple_partition_map_fini() after that.
11876 2007-06-01 Robert Millan <rmh@aybabtu.com>
11878 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
11880 * util/grub.d/00_header.in: Only enable gfxterm when
11881 convert_system_path_to_grub_path() succeeds.
11883 2007-05-20 Robert Millan <rmh@aybabtu.com>
11885 * util/update-grub_lib.in: New file.
11886 * DISTLIST: Add update-grub_lib.in.
11887 * conf/common.rmk: Generate update-grub_lib and install it in
11889 * Makefile.in: Add install routine for $(lib_DATA).
11891 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
11892 function provided by update-grub_lib to support arbitrary paths of
11894 * util/update-grub.in: Use convert_system_path_to_grub_path() to
11895 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
11897 2007-05-19 Robert Millan <rmh@aybabtu.com>
11899 * commands/i386/cpuid.c: New module.
11900 * DISTLIST: Add it.
11901 * conf/i386-efi.rmk: Enable cpuid.mod.
11902 * conf/i386-pc.rmk: Likewise.
11904 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
11906 * kern/disk.c (grub_disk_read): Check return value of
11909 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
11911 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
11913 * disk/raid.c (grub_raid_open): Likewise.
11915 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
11917 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
11918 stack instead of on the heap.
11920 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
11921 before doing a read on it.
11923 * configure.ac: Only use -fno-stack-protector for the target
11926 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
11928 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
11929 __attribute_ ((unused)) to mode_type argument.
11931 * util/getroot.c (grub_guess_root_device): Fix #endif.
11933 * kern/misc.c (memcmp): Fix prototype.
11935 * include/grub/partition.h [GRUB_UTIL]
11936 (grub_gpt_partition_map_init): Add prototype.
11937 (grub_gpt_partition_map_fini): Likewise.
11939 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
11940 at the right place.
11942 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
11943 (grub_fat_read_data): Likewise.
11944 (grub_fat_find_dir): Likewise.
11946 * font/manager.c (find_glyph): Make table a const.
11947 (grub_font_get_glyph): Remove bitmap from if statement.
11949 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
11951 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
11952 code, first search for device in /dev/mapper, then in /dev.
11953 (grub_util_get_grub_dev): New function.
11954 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
11956 * util/grub-probe.c (probe): Remove check for RAID, call
11957 grub_util_get_grub_dev() instead of
11958 grub_util_biosdisk_get_grub_dev().
11959 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
11960 grub_util_biosdisk_get_grub_dev().
11961 * util/i386/pc/grub-setup.c (main): Likewise.
11963 2007-05-16 Robert Millan <rmh@aybabtu.com>
11965 * DISTLIST: Update for the latest changes.
11966 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
11967 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
11968 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
11969 grub/util/biosdisk.h.
11970 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
11971 grub/util/biosdisk.h.
11973 2007-05-16 Robert Millan <rmh@aybabtu.com>
11975 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
11977 2007-05-16 Robert Millan <rmh@aybabtu.com>
11979 * util/i386/efi/grub-install.in: New.
11980 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
11981 newly added grub-install.
11982 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
11984 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
11985 grub/util/biosdisk.h.
11986 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
11987 grub/util/biosdisk.h.
11989 2007-05-16 Robert Millan <rmh@aybabtu.com>
11991 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
11992 * include/grub/util/biosdisk.h: ... here.
11993 * util/i386/pc/biosdisk.c: Moved to ...
11994 * util/biosdisk.c: ... here.
11995 * util/i386/pc/getroot.c: Moved to ...
11996 * util/getroot.c: ... here.
11997 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
11998 * util/grub-mkdevicemap.c: ... here.
11999 * util/i386/pc/grub-probe.c: Moved to ...
12000 * util/grub-probe.c: ... here.
12002 2007-05-15 Robert Millan <rmh@aybabtu.com>
12004 * util/update-grub.in: Remove duplicated line in grub.cfg header
12007 2007-05-13 Robert Millan <rmh@aybabtu.com>
12009 * util/update-grub.in: Fix a few assumptions about the devices holding
12010 /, /boot and /boot/grub being the same.
12011 * util/grub.d/00_header.in: Likewise.
12012 * util/grub.d/10_hurd.in: Likewise.
12013 * util/grub.d/10_linux.in: Likewise.
12015 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
12016 patterns. Use that to define the `.old' suffix as older than `'.
12018 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
12020 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
12021 the grub.cfg header message.
12023 2007-05-11 Robert Millan <rmh@aybabtu.com>
12025 * util/update-grub.in: Create device.map if it doesn't already exist,
12026 before attempting to run grub-probe.
12027 Check for grub-probe and grub-mkdevicemap with the same code
12028 grub-install is using.
12031 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
12033 * Makefile.in: Add the datarootdir autoconf variable.
12035 2007-05-09 Robert Millan <rmh@aybabtu.com>
12037 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
12038 fail gracefully if dev->disk->partition == NULL.
12040 2007-05-07 Robert Millan <rmh@aybabtu.com>
12042 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
12043 determine partition map module.
12044 * util/i386/pc/grub-install.in: Use this feature to decide which
12045 partition module to load, instead of hardcoding pc and gpt.
12047 2007-05-07 Robert Millan <rmh@aybabtu.com>
12049 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
12050 source directory differs from build directory.
12052 2007-05-05 Robert Millan <rmh@aybabtu.com>
12054 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
12057 2007-05-05 Robert Millan <rmh@aybabtu.com>
12059 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
12061 2007-05-05 Robert Millan <rmh@aybabtu.com>
12063 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
12064 command-line arguments via ${GRUB_CMDLINE_LINUX}.
12066 2007-05-05 Robert Millan <rmh@aybabtu.com>
12068 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
12069 (grub_probe_SOURCES): Likewise.
12070 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
12071 GPT and initialize dos_part and bsd_part accordingly.
12072 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
12074 (main): Activate gpt module for use during partition identification,
12075 and deactivate it afterwards.
12076 * util/i386/pc/grub-install.in: Add gpt module to core.img.
12077 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
12078 partition identification, and deactivate it afterwards.
12080 2007-05-05 Robert Millan <rmh@aybabtu.com>
12082 * term/i386/pc/console.c (grub_console_fini): Call
12083 grub_term_set_current() before grub_term_unregister().
12085 2007-05-04 Robert Millan <rmh@aybabtu.com>
12087 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
12088 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
12089 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
12090 and update-grub_DATA.
12091 * conf/common.rmk: Build and install update-grub components.
12092 * conf/common.mk: Regenerate.
12093 * util/update-grub.in: New. Core of update-grub.
12094 * util/grub.d/00_header.in: New. Generates grub.cfg header.
12095 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
12096 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
12097 * util/grub.d/README: New. Document grub.d directory layout.
12099 2007-05-01 Robert Millan <rmh@aybabtu.com>
12101 * util/grub-emu.c: Move initialization functions
12102 grub_util_biosdisk_init() and grub_init_all() before
12103 grub_util_biosdisk_get_grub_dev(), which relies on them.
12105 2007-04-19 Robert Millan <rmh@aybabtu.com>
12107 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
12110 2007-04-18 Jerone Young <jerone@gmail.com>
12112 * kernel/elf.c: Add missing parenthesis for conditional statement
12115 2007-04-10 Jerone Young <jerone@gmail.com>
12117 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
12118 continue on and look for device node with real device name.
12120 2007-04-10 Jerone Young <jerone@gmail.com>
12122 * configure.ac: Add argument for autoconf to use transformation
12124 * Makefile.in: Add autoconf package transformation code.
12125 * util/i386/pc/grub-install.in: Likewise.
12126 * util/powerpc/ieee1275/grub-install.in: Likewise.
12128 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
12130 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
12131 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
12132 (EXT2_REVISION): Likewise.
12133 (EXT2_INODE_SIZE): Likewise.
12134 (struct grub_ext2_block_group): Added a missing member
12136 (grub_ext2_read_inode): Divide by the inode size in a superblock
12137 instead of 128 to obtain INODES_PER_BLOCK.
12138 Use the macro EXT2_INODE_SIZE instead of directly using
12139 SBLOCK->INODE_SIZE.
12141 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
12143 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
12144 superblock instead of the structure size to compute an
12145 offset. This fixes the problem that GRUB could not read a
12146 filesystem when inode size is different from 128-byte.
12148 2007-03-05 Marco Gerards <marco@gnu.org>
12150 * normal/main.c (read_config_file): When "menu" is not set, create
12151 an initial context.
12153 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
12155 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
12156 (HEAP_LIMIT): New macro.
12157 (grub_claim_heap): Claim memory up to `heaplimit'.
12159 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
12161 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
12162 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
12163 (_start): Likewise.
12164 (grub_arch_modules_addr): Return address after `_end'.
12165 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
12166 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
12167 (add_segments): Calculate `_end' from phdr size and location.
12168 (ALIGN_UP): Moved to ...
12169 * include/grub/misc.h: here.
12170 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
12172 (GRUB_IEEE1275_MODULE_BASE): Removed.
12174 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
12176 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
12179 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
12181 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
12183 (grub_elf64_load_hook_t): Likewise.
12184 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
12187 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
12189 * kern/mm.c: Update copyright.
12190 (grub_mm_debug): Correct syntax error.
12191 (grub_mm_dump_free): New function.
12192 (grub_debug_free): Call `grub_free'.
12193 * include/grub/mm.h: Update copyright.
12194 (grub_mm_dump_free): Add declaration.
12196 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
12198 * include/grub/ieee1275/ieee1275.h: Update copyright.
12199 * kern/powerpc/ieee1275/init.c: Likewise.
12200 * kern/powerpc/ieee1275/openfw.c: Likewise.
12202 * loader/powerpc/ieee1275/linux.c: Likewise.
12203 * include/grub/elfload.h: Likewise.
12204 * kern/elf.c: Likewise.
12205 (grub_elf32_load): Pass `base' and `size' parameters. Update all
12207 (grub_elf64_load): Likewise.
12208 (grub_elf32_load_segment): Move to a nested function.
12209 (grub_elf64_load_segment): Likewise.
12211 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
12213 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
12215 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
12216 (grub_heap_len): Likewise.
12217 (HEAP_SIZE): New macro.
12218 (grub_claim_heap): New function.
12219 (grub_machine_init): Don't claim heap directly. Call
12221 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
12222 (grub_available_iterate): New function.
12224 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
12226 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
12227 * configure.ac: Use it for testing the HOST and TARGET compilers.
12229 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
12231 * Makefile.in (enable_grub_emu): New variable.
12232 * configure.ac (--enable-grub-emu): New option.
12233 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
12234 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
12235 * conf/i386-pc.rmk: Likewise.
12236 * conf/powerpc-ieee1275.rmk: Likewise.
12237 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
12239 2006-12-12 Marco Gerards <marco@gnu.org>
12241 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
12243 * kern/env.c (grub_env_unset): Don't free the member `value' when
12244 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
12247 * normal/main.c (current_menu): Removed.
12248 (free_menu): Unset the `menu' environment variable.
12249 (grub_normal_menu_addentry): Make use of the environment variable
12250 `menu', instead of using the global `current_menu'. Allocate
12251 memory for the sourcecode of this entry.
12252 (read_config_file): New argument `nested', changed all callers.
12253 Only in the case of a new context, initialize a new menu. Set the
12254 `menu' environment variable.
12255 (grub_normal_execute): Don't set and unset the environment
12256 variable `menu' here anymore. Only free the menu when leaving the
12259 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
12262 2006-12-11 Marco Gerards <marco@gnu.org>
12264 * normal/menu_entry.c (run): Fix off by one bug so the last line
12265 is executed. Move the loader check to outside the loop.
12267 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
12269 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
12271 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
12273 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
12274 the number of sectors. Reported by Andrey Shuvikov
12275 <mr_hyro@yahoo.com>.
12277 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
12279 * kern/disk.c (grub_disk_read): When there is a read error, always
12280 try to read only the necessary data.
12282 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
12284 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
12286 [GRUB_UTIL] (grub_raid_fini): Likewise.
12287 [GRUB_UTIL] (grub_lvm_init): Likewise.
12288 [GRUB_UTIL] (grub_lvm_fini): Likewise.
12289 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
12290 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
12291 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
12292 and grub_raid_fini().
12294 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
12296 * include/grub/types.h (__unused): Rename to UNUSED.
12297 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
12298 (grub_elf64_size): Likewise.
12300 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
12302 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
12303 grub_error_push and grub_error_pop in the error-handling path.
12304 (grub_elf32_load_segment): Only call grub_file_read with non-zero
12307 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
12309 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
12310 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
12311 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12312 (kernel_elf_SOURCES): Likewise.
12313 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
12314 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
12315 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
12316 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
12317 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
12318 (elf_mod_SOURCES): New variable.
12319 (elf_mod_CFLAGS): Likewise.
12320 (elf_mod_LDFLAGS): Likewise.
12321 * include/grub/types.h (__unused): New macro.
12322 * include/grub/elfload.h: New file.
12323 * kern/elf.c: Likewise.
12324 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
12325 (ELF32_LOADMASK): New macro.
12326 (ELF64_LOADMASK): Likewise.
12327 (vmlinux): Removed.
12328 (grub_linux_load32): New function.
12329 (grub_linux_load64): Likewise.
12330 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
12331 Use grub_elf_t instead of grub_file_t.
12333 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
12335 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
12336 `catch_result' to struct set_color_args.
12338 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
12340 * normal/menu.c: Include grub/script.h.
12341 * normal/menu_entry.c: Likewise.
12342 * include/grub/normal.h: Do not include grub/script.h.
12344 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
12346 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
12348 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
12350 * kern/disk.c (grub_disk_open): Print debug messages when opening a
12352 (grub_disk_close): Print debug messages when closing a disk.
12353 (grub_disk_read): Print debug messages when disk read fails.
12354 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
12356 * kern/partition.c: Include misc.h.
12357 (grub_partition_iterate): Print debug messages when detecting
12360 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
12362 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
12364 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
12366 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
12368 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12369 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
12371 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
12373 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
12374 instead of sizeof(lv). Patch by Michael Guntsche.
12376 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
12378 * disk/lvm.c: Rename VGS to VG_LIST.
12379 (grub_lvm_iterate): Change VGS->LV to VG-LV.
12380 (grub_lvm_open): Likewise.
12381 Thanks to Michael Guntsche for finding this bug.
12383 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
12385 * configure.ac (AC_INIT): Bumped to 1.95.
12387 2006-10-14 Robert Millan <rmh@aybabtu.com>
12389 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
12390 with "/dev/.static/dev/md".
12392 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
12394 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
12395 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
12396 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
12397 DRIVE_NAME are always freed.
12399 * util/i386/pc/biosdisk.c (make_device_name): Add one into
12400 DOS_PART, as a DOS partition is counted from one instead of zero
12401 now. Reported by Robert Millan.
12403 2006-10-14 Robert Millan <rmh@aybabtu.com>
12405 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
12406 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
12407 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
12408 string returned by grub_guess_root_device.
12409 * util/i386/pc/grub-setup.c: Likewise.
12410 * util/i386/pc/grub-probefs.c: Likewise.
12412 * util/i386/pc/grub-probefs.c: Rename to ...
12413 * util/i386/pc/grub-probe.c: ... this.
12414 * DISTLIST: Remove grub-probefs, add grub-probe.
12415 * conf/i386-efi.rmk: Likewise.
12416 * conf/i386-pc.rmk: Likewise.
12417 * util/i386/pc/grub-install.in: Likewise.
12419 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
12420 choose which information we want to print.
12422 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
12424 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
12425 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
12426 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
12427 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
12428 video/readers/tga.c and video/i386/pc/vbeutil.c.
12430 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
12432 Added support for RAID and LVM.
12434 * disk/lvm.c: New file.
12435 * disk/raid.c: Likewise.
12436 * include/grub/lvm.h: Likewise.
12437 * include/grub/raid.h: Likewise.
12438 * include/grub/util/lvm.h: Likewise.
12439 * include/grub/util/raid.h: Likewise.
12440 * util/lvm.c: Likewise.
12441 * util/raid.c: Likewise.
12443 * include/grub/disk.h (grub_disk_dev_id): Add
12444 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
12445 (grub_disk_get_size): New prototype.
12446 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
12447 returns a partition.
12448 (grub_disk_get_size): New function.
12450 * kern/i386/pc/init.c (make_install_device): Copy the prefix
12451 verbatim if grub_install_dos_part is -2.
12453 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
12456 * util/i386/pc/grub-setup.c (setup): New argument
12457 MUST_EMBED. Force embedding of GRUB when the argument is
12458 true. Close FILE before returning.
12459 (main): Add support for RAID and LVM.
12461 * conf/common.rmk: Add RAID and LVM modules.
12462 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
12464 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
12466 * kern/misc.c (grub_strstr): New function.
12467 * include/grub/misc.h (grub_strstr): New prototype.
12469 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
12471 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
12473 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
12475 * kern/misc.c (grub_strtoull): Guess the base only if not
12478 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
12480 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
12483 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
12485 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
12487 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
12488 Remove `flags' argument. All callers changed.
12489 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
12490 (IEEE1275_IHANDLE_INVALID): New variable.
12491 (IEEE1275_CELL_INVALID): New variable.
12492 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12493 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
12494 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
12495 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
12496 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
12497 codes from Open Firmware. All callers updated.
12498 (grub_ieee1275_next_property): Directly return Open Firmware return
12500 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
12501 Standardize error checking from `grub_ieee1275_get_property'.
12502 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
12503 `devalias' to `aliases'. Correct comments. Consolidate error paths.
12505 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
12507 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
12508 `instance_to_package_args' to `instance_to_path_args'.
12510 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
12511 `grub_ieee1275_chosen'.
12513 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
12514 `grub_ieee1275_interpret'.
12516 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
12518 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
12520 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
12522 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
12523 (__cmpdi): Likewise.
12525 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
12526 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
12529 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
12531 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
12532 to type `grub_ssize_t'.
12533 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
12535 2006-09-22 Marco Gerards <marco@gnu.org>
12537 * normal/script.c (grub_script_create_cmdmenu): Skip leading
12540 2006-09-22 Marco Gerards <marco@gnu.org>
12542 * commands/echo.c: New file.
12544 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
12546 * conf/common.rmk (echo_mod_SOURCES): New variable.
12547 (echo_mod_CFLAGS): Likewise.
12548 (echo_mod_LDFLAGS): Likewise.
12550 2006-09-22 Marco Gerards <marco@gnu.org>
12552 * normal/main.c (get_line): Malloc memory instead of using
12553 preallocated memory. Removed the arguments `cmdline' and
12554 `max_len'. Updated all callers.
12556 2006-09-22 Marco Gerards <marco@gnu.org>
12558 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
12559 (normal_mod_DEPENDENCIES): Likewise.
12561 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
12562 (normal_mod_DEPENDENCIES): Likewise.
12564 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
12566 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
12568 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
12570 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
12571 (normal_mod_DEPENDENCIES): Likewise.
12572 * conf/i386-pc.mk: Regenerate.
12573 * conf/i386-efi.mk: Likewise
12574 * conf/common.mk: Likewise.
12575 * conf/powerpc-ieee1275.mk: Likewise.
12576 * conf/sparc64-ieee1275.mk: Likewise.
12578 2006-09-22 Robert Millan <rmh@aybabtu.com>
12580 Sync with i386 version.
12581 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
12582 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
12584 2006-09-21 Robert Millan <rmh@aybabtu.com>
12586 Import from GRUB Legacy (lib/device.c):
12587 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
12588 (init_device_map) [__linux__]: Add support for I2O devices.
12590 2006-09-14 Marco Gerards <marco@gnu.org>
12592 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
12595 2006-09-14 Robert Millan <rmh@aybabtu.com>
12597 * util/i386/pc/grub-install.in: Skip menu.lst when removing
12600 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
12602 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
12603 before adding it to device.map.
12605 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
12607 * genmk.rb: Let GCC generate dependencies the first time it
12608 compiles a file; using the -MD option.
12609 * conf/common.mk: Regenerate.
12610 * conf/i386-pc.mk: Likewise.
12611 * conf/i386-efi.mk: Likewise.
12612 * conf/powerpc-ieee1275.mk: Likewise.
12613 * conf/sparc64-ieee1275.mk: Likewise.
12615 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
12617 Move the prototypes of grub_setjmp and grub_longjmp to
12618 cpu/setjmp.h, so that each architecture may specify different
12621 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
12622 (grub_longjmp): Likewise.
12623 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
12624 (grub_longjmp): Likewise.
12625 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
12626 (grub_longjmp): Likewise.
12628 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
12629 [!GRUB_UTIL] (grub_longjmp): Removed.
12631 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
12633 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
12634 "color!" method does not return any value.
12636 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
12638 * include/grub/bitmap.h: New file.
12640 * include/grub/i386/pc/vbeutil.h: Likewise.
12642 * video/bitmap.c: Likewise.
12644 * video/readers/tga.c: Likewise.
12646 * video/i386/pc/vbeutil.c: Likewise.
12648 * commands/videotest.c: Code cleanup and updated to reflect to new
12651 * term/gfxterm.c: Likewise.
12653 * video/video.c: Likewise.
12655 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
12656 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
12657 (bitmap_mod_SOURCES): New entry.
12658 (bitmap_mod_CFLAGS): Likewise.
12659 (bitmap_mod_LDFLAGS): Likewise.
12660 (tga_mod_SOURCES): Likewise.
12661 (tga_mod_CFLAGS): Likewise.
12662 (tga_mod_LDFLAGS): Likewise.
12664 * include/grub/video.h (grub_video_blit_operators): New enum type.
12665 (grub_video_render_target): Changed as forward declaration and moved
12666 actual definition to be video driver specific.
12667 (grub_video_adapter.blit_bitmap): Added blitting operator.
12668 (grub_video_adapter.blit_render_target): Likewise.
12669 (grub_video_blit_bitmap): Likewise.
12670 (grub_video_blit_render_target): Likewise.
12672 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
12673 driver specific render target definition.
12674 (grub_video_vbe_map_rgba): Added driver internal helper.
12675 (grub_video_vbe_unmap_color): Updated to use
12676 grub_video_i386_vbeblit_info.
12677 (grub_video_vbe_get_video_ptr): Likewise.
12679 * include/grub/i386/pc/vbeblit.h
12680 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
12681 grub_video_i386_vbeblit_info.
12682 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
12683 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
12684 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
12685 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
12686 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
12687 (grub_video_i386_vbeblit_index_index): Likewise.
12688 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
12689 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
12690 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
12691 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
12693 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
12696 * video/i386/pc/vbeblit.c: Updated to reflect changes on
12697 include/grub/i386/pc/vbeblit.h.
12699 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
12700 Updated to use grub_video_i386_vbeblit_info.
12701 (grub_video_i386_vbefill_R8G8B8): Likewise.
12702 (grub_video_i386_vbefill_index): Likewise.
12703 (grub_video_i386_vbefill): Added generic filler.
12705 * video/i386/pc/vbefill.c: Updated to reflect changes on
12706 include/grub/i386/pc/vbefill.h.
12708 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
12709 grub_video_i386_vbeblit_info.
12710 (grub_video_vbe_unmap_color): Likewise.
12711 (grub_video_vbe_blit_glyph): Likewise.
12712 (grub_video_vbe_scroll): Likewise.
12713 (grub_video_vbe_draw_pixel): Removed function.
12714 (grub_video_vbe_get_pixel): Likewise.
12715 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
12716 updated code to use it.
12717 (common_blitter): Added common blitter for render target and bitmap.
12718 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
12719 (grub_video_vbe_blit_render_target): Likewise.
12721 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
12723 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
12724 is in text mode if there is no console control protocol instance
12727 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
12729 * include/grub/video.h: Code cleanup.
12731 * include/grub/i386/pc/vbe.h: Likewise.
12733 * video/i386/pc/vbe.c: Likewise.
12735 * video/i386/pc/vbeblit.c: Likewise.
12737 * video/i386/pc/vbefill.c: Likewise.
12739 * video/video.c: Likewise. Also added more comments.
12741 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
12743 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
12744 (struct grub_biosdisk_dap): Likewise.
12746 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
12747 linkage settings for all functions.
12749 2006-07-12 Marco Gerards <marco@gnu.org>
12751 * configure.ac (--enable-mm-debug): Fix typo.
12753 * genkernsyms.sh.in: Use proper quoting for `CC'.
12755 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
12757 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
12758 (normal_mod_ASFLAGS): Remove "-m32".
12760 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
12762 * util/misc.c: Include config.h.
12763 [!HAVE_MEMALIGN]: Do not include malloc.h.
12764 (grub_memalign): Use posix_memalign, if present. Then, use
12765 memalign, if present. Otherwise, emit an error.
12767 * util/grub-emu.c: Do not include malloc.h.
12769 * include/grub/util/misc.h: Include unistd.h. This is required for
12770 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
12771 D. Eades III <hde@foobar-qux.org>.
12773 * configure.ac (AC_GNU_SOURCE): Added.
12774 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
12777 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
12779 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
12780 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
12782 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
12784 * include/grub/types.h (grub_host_addr_t): Rename to
12785 grub_target_addr_t.
12786 (grub_host_off_t): Rename to grub_target_off_t.
12787 (grub_host_size_t): Rename to grub_target_size_t.
12788 (grub_host_ssize_t): Rename to grub_target_ssize_t.
12789 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
12791 * include/grub/kernel.h (struct grub_module_header): Change type
12792 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
12793 (grub_module_info): Likewise.
12795 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
12797 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
12798 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
12799 Velazquez <jesus.velazquez@gmail.com>.
12801 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
12803 Count partitions from 1 instead of 0 in the string representation
12804 of partitions. Still use 0-based internally.
12806 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
12807 (sun_partition_map_iterate): Use grub_partition_t instead of
12808 struct grub_partition *. Cast DESC->START_CYLINDER to
12809 grub_uint64_t after converting the endian.
12810 (sun_partition_map_probe): Subtract 1 for PARTNUM.
12811 (sun_partition_map_get_name): Add 1 to P->INDEX.
12813 * partmap/pc.c (grub_partition_parse): Subtract 1 for
12815 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
12817 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
12818 zero instead of one.
12819 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
12820 (gpt_partition_map_get_name): Add 1 into P->INDEX.
12822 * partmap/apple.c (apple_partition_map_iterate): Change the type
12823 of POS to unsigned.
12824 (apple_partition_map_probe): Subtract 1 for PARTNUM.
12825 (apple_partition_map_get_name): Add 1 into P->INDEX.
12827 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
12828 of POS to unsigned.
12829 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
12830 calculate the offset of a partition.
12831 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
12832 (amiga_partition_map_get_name): Add 1 into P->INDEX.
12834 * partmap/acorn.c (acorn_partition_map_find): Change the type of
12835 SECTOR to grub_disk_addr_t.
12836 (acorn_partition_map_iterate): Likewise.
12837 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
12838 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
12840 (acorn_partition_map_get_name): Add 1 into P->INDEX.
12842 * kern/i386/pc/init.c (make_install_device): Add 1 into
12843 GRUB_INSTALL_DOS_PART.
12845 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
12848 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
12850 Clean up the code to support 64-bit addressing in disks and
12851 files. This change is not enough for filesystems yet.
12853 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
12854 type of "start" to grub_uint64_t.
12855 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
12856 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
12857 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
12860 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
12861 to grub_disk_addr_t.
12863 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
12866 * partmap/pc.c (pc_partition_map_iterate): Likewise.
12868 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
12871 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
12873 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
12875 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
12877 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
12878 to grub_off_t, to detect an error from grub_file_seek.
12879 (grub_multiboot_load_elf32): Likewise.
12881 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
12882 maximum unsigned long value when an overflow is detected.
12883 (grub_strtoull): New function.
12884 (grub_divmod64): Likewise.
12885 (grub_lltoa): use grub_divmod64.
12887 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
12889 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
12890 the pointer to next character. Use grub_strtoull instead of
12892 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
12893 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
12896 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
12897 return value is signed.
12898 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
12899 test if OFFSET is less than zero, as OFFSET is unsigned now.
12901 * kern/disk.c (struct grub_disk_cache): Change the type of
12902 "sector" to grub_disk_addr_t.
12903 (grub_disk_cache_get_index): Change the type of SECTOR to
12904 grub_disk_addr_t. Calculate the hash with SECTOR casted to
12905 unsigned after shifting.
12906 (grub_disk_cache_invalidate): Change the type of SECTOR to
12908 (grub_disk_cache_unlock): Likewise.
12909 (grub_disk_cache_store): Likewise.
12910 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
12911 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
12912 grub_disk_addr_t and grub_uint64_t, respectively.
12913 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
12914 body, as the value of OFFSET is tweaked by
12915 grub_disk_check_range. Change the types of START_SECTOR, LEN and
12916 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
12918 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
12919 body, as the value of OFFSET is tweaked by
12920 grub_disk_check_range. Change the types of LEN and N to
12923 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
12924 and "saved_offset" to grub_off_t.
12925 (test_header): Cast BUF to char *.
12926 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
12928 (grub_gzio_read): Change the types of OFFSET and SIZE to
12929 grub_off_t and grub_size_t, respectively.
12931 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
12933 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
12934 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
12935 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
12936 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
12937 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
12939 * include/grub/types.h (grub_off_t): Unconditionally set to
12941 (grub_disk_addr_t): Changed to grub_uint64_t.
12943 * include/grub/partition.h (struct grub_partition): Change the
12944 types of "start", "len" and "offset" to grub_disk_addr_t,
12945 grub_uint64_t and grub_disk_addr_t, respectively.
12946 (grub_partition_get_start): Return grub_disk_addr_t.
12947 (grub_partition_get_len): Return grub_uint64_t.
12949 * include/grub/misc.h (grub_strtoull): New prototype.
12950 (grub_divmod64): Likewise.
12952 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
12953 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
12954 grub_off_t, respectively.
12955 All callers and references changed.
12957 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
12958 grub_size_t in "read".
12959 All callers and references changed.
12961 * include/grub/file.h (struct grub_file): Change the types of
12962 "offset" and "size" to grub_off_t and grub_off_t,
12963 respectively. Change the type of SECTOR to grub_disk_addr_t in
12965 (grub_file_read): Change the type of LEN to grub_size_t.
12966 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
12968 (grub_file_size): Return grub_off_t.
12969 (grub_file_tell): Likewise.
12970 All callers and references changed.
12972 * include/grub/disk.h (struct grub_disk_dev): Change the types of
12973 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
12975 (struct grub_disk): Change the type of "total_sectors" to
12976 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
12978 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
12979 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
12980 (grub_disk_write): Likewise.
12981 All callers and references changed.
12983 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
12984 char * for grub_strncmp to silence gcc.
12985 (grub_iso9660_mount): Likewise.
12986 (grub_iso9660_mount): Likewise.
12987 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
12989 (grub_iso9660_iterate_dir): Likewise.
12990 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
12992 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
12993 LEN to grub_disk_addr_t and grub_size_t, respectively.
12995 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12997 * fs/jfs.c (grub_jfs_read_file): Likewise.
12999 * fs/minix.c (grub_jfs_read_file): Likewise.
13001 * fs/sfs.c (grub_jfs_read_file): Likewise.
13003 * fs/ufs.c (grub_jfs_read_file): Likewise.
13005 * fs/xfs.c (grub_jfs_read_file): Likewise.
13007 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
13008 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
13011 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
13012 BLKNR to -1 instead of returning GRUB_ERRNO.
13013 (grub_ext2_read_file): Change the types of SECTOR and
13014 LEN to grub_disk_addr_t and grub_size_t, respectively.
13016 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
13017 LEN to grub_disk_addr_t and grub_size_t, respectively.
13019 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
13022 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
13023 string. Do not cast SECTOR explicitly.
13025 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
13026 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
13027 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
13028 grub_disk_addr_t and grub_size_t, respectively. If the sector is
13029 over 2TB and LBA mode is not supported, raise an error.
13030 (get_safe_sectors): New function.
13031 (grub_biosdisk_read): Use get_safe_sectors.
13032 (grub_biosdisk_write): Likewise.
13034 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
13035 (grub_efidisk_write): Likewise.
13037 * disk/loopback.c (delete_loopback): Cosmetic changes.
13038 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
13040 (grub_loopback_open): Likewise.
13041 (grub_loopback_read): Likewise. Also, change the type of POS to
13042 grub_off_t, and fix the usage of grub_memset.
13044 * commands/i386/pc/play.c: Include grub/machine/time.h.
13046 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
13049 * commands/configfile.c: Include grub/env.h.
13051 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
13052 GRUB_ERRNO directly instead. Change the type of POS to
13053 grub_off_t. Follow the coding standard.
13055 * commands/blocklist.c: Include grub/partition.h.
13056 (grub_cmd_blocklist): Return an error if the underlying device is
13057 not a disk. Take the starting sector of a partition into account,
13058 if a partition is used.
13060 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
13062 (lba_mode): Support 64-bit addresses.
13063 (chs_mode): Likewise.
13064 (copy_buffer): Adapted to the new offsets of a length field and a
13066 (blocklist_default_start): Allocate 64-bit space.
13068 * boot/i386/pc/boot.S (force_lba): Removed.
13069 (boot_drive): Moved to under KERNEL_SECTOR.
13070 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
13072 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
13074 (lba_mode): Refactored to support a 64-bit address. More size
13076 (setup_sectors): Likewise.
13078 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
13080 * DISTLIST: Added include/grub/i386/linux.h. Removed
13081 include/grub/i386/pc/linux.h
13083 * configure.ac (AC_INIT): Bumped to 1.94.
13085 * config.guess: Updated from gnulib.
13086 * config.sub: Likewise.
13087 * install-sh: Likewise.
13088 * mkinstalldirs: Likewise.
13090 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
13092 * conf/common.rmk (grub_modules_init.lst): Depended on
13093 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
13096 * genmk.rb (PModule::rule): Reverted the previous change.
13098 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
13100 * conf/common.rmk (grub_modules_init.lst): Depends on
13101 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
13102 that the target does not exist before producing.
13103 (grub_modules_init.h): Remove the target before generating.
13104 (grub_emu_init.c): Likewise.
13106 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
13108 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
13110 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
13111 for the target-specific tests. Make sure that we also have the
13112 up-to-date target variables for those tests.
13114 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
13116 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
13117 (PModule::rule): Likewise.
13119 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
13121 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
13122 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
13123 target-specific flags should be prefixed.
13124 (PModule::rule): Likewise.
13126 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
13128 * configure.ac (CMP): Check if cmp is available explicitly.
13130 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
13132 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
13133 (target_cpu): New variable.
13134 (pkglibdir): Use target_cpu instead of host_cpu.
13136 * util/i386/pc/grub-install.in (host_cpu): Removed.
13137 (target_cpu): New variable.
13138 (pkglibdir): Use target_cpu instead of host_cpu.
13140 * util/genmoddep.c: Removed.
13142 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
13143 instead of GRUB_HOST_SIZEOF_VOID_P.
13144 * kern/dl.c: Likewise.
13146 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
13148 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
13149 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
13150 (GRUB_TARGET_SIZEOF_LONG): ... this.
13151 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
13152 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
13153 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
13155 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
13156 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
13157 (GRUB_TARGET_SIZEOF_LONG): ... this.
13158 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
13159 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
13160 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
13162 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
13163 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
13164 (GRUB_TARGET_SIZEOF_LONG): ... this.
13165 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
13166 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
13168 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
13169 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
13170 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
13171 instead of GRUB_HOST_SIZEOF_LONG.
13172 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
13173 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
13174 GRUB_CPU_WORDS_BIGENDIAN.
13175 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
13176 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
13179 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
13180 (genmoddep_SOURCES): Likewise.
13181 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
13182 (genmoddep_SOURCES): Likewise.
13183 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
13184 (genmoddep_SOURCES): Likewise.
13185 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
13187 (genmoddep_SOURCES): Likewise.
13189 * genmoddep.awk: New file.
13191 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
13192 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
13193 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
13194 (PModule::rule): Likewise.
13195 (Program::rule): Likewise.
13196 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
13197 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
13200 * configure.ac: Rewritten intensively to use host and target
13201 instead of build and host, respectively.
13203 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
13204 (host_cpu): Removed.
13205 (target_cpu): New variable.
13206 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
13207 (BUILD_CC): Removed.
13208 (BUILD_CFLAGS): Likewise.
13209 (BUILD_CPPFLAGS): Likewise.
13210 (TARGET_CC): New variable.
13211 (TARGET_CFLAGS): Likewise.
13212 (TARGET_CPPFLAGS): Likewise.
13213 (TARGET_LDFLAGS): Likewise.
13215 (include): Use target_cpu instead of host_cpu.
13216 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
13218 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
13220 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
13222 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
13223 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
13224 field 'false' to 'exec_on_false'.
13225 (grub_script_create_cmdif): Renamed argument names to reflect above
13228 * normal/execute.c (grub_script_execute_cmdif): Likewise.
13230 * normal/script.c (grub_script_create_cmdif): Likewise.
13232 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
13234 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
13236 (grub_hfsplus_btree_recptr): Likewise.
13237 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
13238 FILEBLOCK both to pass a block number and store next block
13240 (grub_hfsplus_read_block): Rewritten heavily to support an extent
13241 overflow file correctly. Specify errors appropriately, because
13242 fshelp expects that GRUB_ERRNO is set when fails. Reuse
13243 grub_hfsplus_btree_recptr to get the pointer to a found key.
13244 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
13247 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
13249 (_linux_mod_SOURCES): New variable.
13250 (_linux_mod_CFLAGS): Likewise.
13251 (_linux_mod_LDFLAGS): Likewise.
13252 (linux_mod_SOURCES): Likewise.
13253 (linux_mod_CFLAGS): Likewise.
13254 (linux_mod_LDFLAGS): Likewise.
13256 * DISTLIST: Added loader/i386/efi/linux.c,
13257 loader/i386/efi/linux_normal.c and
13258 include/grub/i386/efi/loader.h.
13260 * loader/i386/efi/linux.c: New file.
13261 * loader/i386/efi/linux_normal.c: Likewise.
13262 * include/grub/i386/efi/loader.h: Likewise.
13264 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
13266 * commands/blocklist.c: New file.
13268 * DISTLIST: Added commands/blocklist.c.
13270 * term/efi/console.c (grub_console_highlight_color): Use a lighter
13271 color for the background, and a darker color for the foreground.
13272 (grub_console_checkkey): Return READ_KEY.
13273 (grub_console_cls): Set the background to
13274 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
13276 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
13278 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
13279 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
13281 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
13284 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
13285 BG. The spec is wrong again.
13287 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
13289 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
13291 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
13292 commands/blocklist.c.
13293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13295 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
13296 (blocklist_mod_SOURCES): New variable.
13297 (blocklist_mod_CFLAGS): Likewise.
13298 (blocklist_mod_LDFLAGS): Likewise.
13300 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
13302 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
13304 (lba_mode): Use %eax more intensively to reduce the code size.
13306 2006-05-20 Marco Gerards <marco@gnu.org>
13308 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
13310 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
13312 (script): Accept leading newlines.
13313 (newlines): New rule to describe 0 or more newlines.
13314 (commands): Accept `command' with trailing newline. Fixed the
13315 order in which arguments were passed to `grub_script_add_cmd'.
13316 Accept commands separated by newlines.
13317 (function): Changed to accept newlines.
13318 (menuentry) Rewritten.
13320 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
13321 front of the list, instead of to the end.
13323 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
13325 * util/i386/pc/grub-install.in (bindir): New variable.
13326 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
13327 Shaver <lbgwjl@gmail.com>.
13329 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
13331 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
13332 grub/machine/linux.h
13333 * loader/i386/pc/linux.c: Likewise.
13335 * include/grub/i386/pc/linux.h: Moved to ...
13336 * include/grub/i386/linux.h: ... here.
13338 * include/grub/i386/linux.h (struct linux_kernel_params): New
13341 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
13343 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
13345 (grub_video_vbe_blit_glyph): Likewise.
13346 (grub_video_vbe_blit_bitmap): Likewise.
13347 (grub_video_vbe_blit_render_target): Likewise.
13349 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
13351 * configure.ac (--with-platform): Properly quote the square
13354 2006-05-08 Marco Gerards <marco@gnu.org>
13356 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
13358 (kernel_elf_HEADERS): ...to this. Updated all users.
13359 (grubof_symlist.c): Renamed from this...
13360 (kernel_elf_symlist.c): ...to this. Updated all users.
13361 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
13362 (grubof_SOURCES): Renamed from this...
13363 (kernel_elf_SOURCES): ...to this.
13364 (grubof_HEADERS): Renamed from this...
13365 (kernel_elf_HEADERS): ...to this.
13366 (grubof_CFLAGS): Renamed from this...
13367 (kernel_elf_CFLAGS): ...to this.
13368 (grubof_ASFLAGS): Renamed from this...
13369 (kernel_elf_ASFLAGS): ...to this.
13370 (grubof_LDFLAGS): Renamed from this...
13371 (kernel_elf_LDFLAGS): ...to this.
13373 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
13375 (kernel_elf_HEADERS): ...to this. Updated all users.
13376 (grubof_symlist.c): Renamed from this...
13377 (kernel_elf_symlist.c): ...to this. Updated all users.
13378 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
13379 (grubof_SOURCES): Renamed from this...
13380 (kernel_elf_SOURCES): ...to this.
13381 (grubof_HEADERS): Renamed from this...
13382 (kernel_elf_HEADERS): ...to this.
13383 (grubof_CFLAGS): Renamed from this...
13384 (kernel_elf_CFLAGS): ...to this.
13385 (grubof_ASFLAGS): Renamed from this...
13386 (kernel_elf_ASFLAGS): ...to this.
13387 (grubof_LDFLAGS): Renamed from this...
13388 (kernel_elf_LDFLAGS): ...to this.
13390 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
13391 `kernel.elf' instead of `grubof'.
13393 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
13395 Add --with-platform to configure. Use pkglibdir instead of
13396 pkgdatadir. This is reported by Roger Leigh.
13398 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
13399 (host_vendor): Likewise.
13400 (host_os): Likewise.
13401 (pkgdatadir): Likewise.
13402 (platform): New variable.
13403 (pkglibdir): Likewise.
13404 Use PKGLIBDIR instead of PKGDATADIR.
13406 * util/i386/pc/grub-install.in (datadir): Removed.
13407 (host_vendor): Likewise.
13408 (host_os): Likewise.
13409 (pkgdatadir): Likewise.
13410 (platform): New variable.
13411 (pkglibdir): Likewise.
13412 Use PKGLIBDIR instead of PKGDATADIR.
13414 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
13415 instead of GRUB_DATADIR.
13417 * util/i386/pc/grub-mkimage.c (usage): Likewise.
13419 * util/i386/efi/grub-mkimage.c (usage): Likewise.
13422 * configure.ac (--with-platform): New option.
13423 Use PLATFORM instead of HOST_VENDOR to specify a platform.
13425 * Makefile.in: Include a makefile based on PLATFORM instead of
13427 (pkgdatadir): Not appended by the machine type.
13428 (pkglibdir): Appended by the machine type.
13429 (host_vendor): Removed.
13430 (platform): New variable.
13431 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
13432 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
13433 (uninstall): Likewise.
13435 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
13437 Use the environment context in the menu. Remove the commands
13438 "default" and "timeout", and use variables instead.
13440 * normal/menu.c: Include grub/env.h.
13441 (print_entry): Cast TITLE to silence gcc.
13442 (get_timeout): New function.
13443 (set_timeout): Likewise.
13444 (get_entry_number): Likewise.
13445 (run_menu): Use a default entry, a fallback entry and a timeout
13446 in the environment variables "default", "fallback" and
13447 "timeout". Also, tweak the default entry if it is not within the
13448 current menu entries.
13449 (grub_menu_run): Use a fallback entry in the environment variable
13452 * normal/main.c (read_config_file): Do not initialize
13453 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
13455 (grub_normal_execute): Use a data slot to store the menu.
13457 * include/grub/normal.h (struct grub_menu): Removed default_entry,
13458 fallback_entry and timeout.
13459 (struct grub_menu_list): Removed.
13460 (grub_menu_list_t): Likewise.
13461 (struct grub_context): Likewise.
13462 (grub_context_t): Likewise.
13463 (grub_context_get): Likewise.
13464 (grub_context_get_current_menu): Likewise.
13465 (grub_context_push_menu): Likewise.
13466 (grub_context_pop_menu): Likewise.
13467 (grub_default_init): Likewise.
13468 (grub_default_fini): Likewise.
13469 (grub_timeout_init): Likewise.
13470 (grub_timeout_fini): Likewise.
13472 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
13474 (normal_mod_SOURCES): Removed normal/context.c.
13476 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
13477 commands/default.c, commands/timeout.c and normal/context.c.
13478 (normal_mod_SOURCES): Removed normal/context.c.
13480 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
13481 commands/timeout.c and normal/context.c.
13482 (normal_mod_SOURCES): Removed normal/context.c.
13484 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
13485 commands/default.c, commands/timeout.c and normal/context.c.
13486 (normal_mod_SOURCES): Removed normal/context.c.
13488 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
13490 (default_mod_SOURCES): Removed.
13491 (default_mod_CFLAGS): Likewise.
13492 (default_mod_LDFLAGS): Likewise.
13493 (timeout_mod_SOURCES): Removed.
13494 (timeout_mod_CFLAGS): Likewise.
13495 (timeout_mod_LDFLAGS): Likewise.
13497 * DISTLIST: Removed commands/default.c, commands/timeout.c and
13500 * commands/default.c: Removed.
13501 * commands/timeout.c: Likewise.
13502 * normal/context.c: Likewise.
13504 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
13506 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
13508 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
13510 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
13511 "next" to "prev" for readability.
13512 (struct grub_env_sorted_var): New struct.
13513 (grub_env_context): Renamed to ...
13514 (initial_context): ... this.
13515 (grub_env_var_context): Renamed to ...
13516 (current_context): ... this.
13517 (grub_env_find): Look only at CURRENT_CONTEXT.
13518 (grub_env_context_open): Rewritten to copy exported variables from
13520 (grub_env_context_close): Rewritten according to the new
13521 scheme. Also, add an assertion to prevent the initial context from
13523 (grub_env_insert): Removed the code for the sorted list.
13524 (grub_env_remove): Likewise.
13525 (grub_env_export): Simply mark the variable with
13526 GRUB_ENV_VAR_GLOBAL.
13527 (grub_env_set): A cosmetic change for naming consistency.
13528 (grub_env_get): Likewise.
13529 (grub_env_unset): Likewise.
13530 (grub_env_iterate): Rewritten to sort variables within this
13532 (grub_register_variable_hook): Fixed for naming consistency. Call
13533 grub_env_find again, only if NAME is not found at the first time.
13534 (mangle_data_slot_name): New function.
13535 (grub_env_set_data_slot): Likewise.
13536 (grub_env_get_data_slot): Likewise.
13537 (grub_env_unset_data_slot): Likewise.
13539 * include/grub/env.h (grub_env_var_type): New enum.
13540 (GRUB_ENV_VAR_LOCAL): New constant.
13541 (GRUB_ENV_VAR_GLOBAL): Likewise.
13542 (GRUB_ENV_VAR_DATA): Likewise.
13543 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
13545 (grub_env_set): Replace VAR with NAME for consistency.
13546 (grub_register_variable_hook): Likewise.
13547 (grub_env_export): Specify the name of the argument.
13548 (grub_env_set_data_slot): New prototype.
13549 (grub_env_get_data_slot): Likewise.
13550 (grub_env_unset_data_slot): Likewise.
13552 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
13554 Extend the loader so that GRUB can accept a loader which comes
13555 back to GRUB when a loaded image exits. Also, this change adds
13556 support for a chainloader on EFI.
13558 * term/efi/console.c: Include grub/misc.h.
13559 (grub_console_checkkey): Display a scan code on the top for
13560 debugging. This will be removed once the EFI port gets stable.
13561 Correct the scan code mapping.
13563 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
13564 allocate memory from larger regions, in order to reduce the number
13565 of allocated regions. Otherwise, the MacOSX loader panics.
13566 (filter_memory_map): Avoid less than 1MB for compatibility with
13568 (add_memory_regions): Allocate from the tail of a region, if
13569 possible, to avoid allocating a region near to 1MB, for the MacOSX
13572 * kern/efi/init.c (grub_efi_set_prefix): Specify
13573 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
13575 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
13576 argument IMAGE_HANDLE and specify it to get a loaded image.
13577 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
13578 grub_efi_get_loaded_image.
13579 (grub_efi_get_filename): Divide the length by the size of
13581 (grub_efi_get_device_path): New function.
13582 (grub_efi_print_device_path): Print End Device Path nodes. Divide
13583 the length by the size of grub_efi_char16_t for a file path device
13586 * kern/loader.c (grub_loader_noreturn): New variable.
13587 (grub_loader_set): Accept a new argument NORETURN. Set
13588 GRUB_LOADER_NORETURN to NORETURN.
13589 All callers changed.
13590 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
13593 * include/grub/efi/efi.h (grub_efi_get_device_path): New
13595 (grub_efi_get_loaded_image): Take an argument to specify an image
13598 * include/grub/loader.h (grub_loader_set): Added one more argument
13601 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
13602 instead of grub_efi_open_protocol.
13603 (grub_efidisk_get_device_name): Likewise.
13604 (grub_efidisk_close): Print a newline.
13605 (grub_efidisk_get_device_handle): Fixed to use
13606 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
13607 GRUB_EFI_DEVICE_PATH_TYPE.
13609 * disk/efi/efidisk.c (device_path_guid): Moved to ...
13610 * kern/efi/efi.c (device_path_guid): ... here.
13612 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
13614 (kernel_mod_HEADERS): Added efi/disk.h.
13615 (_chain_mod_SOURCES): New variable.
13616 (_chain_mod_CFLAGS): Likewise.
13617 (_chain_mod_LDFLAGS): Likewise.
13618 (chain_mod_SOURCES): Likewise.
13619 (chain_mod_CFLAGS): Likewise.
13620 (chain_mod_LDFLAGS): Likewise.
13622 * DISTLIST: Added include/grub/efi/chainloader.h,
13623 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
13625 * include/grub/efi/chainloader.h: New file.
13626 * loader/efi/chainloader.c: Likewise.
13627 * loader/efi/chainloader_normal.c: Likewise.
13629 2006-04-30 Marco Gerards <marco@gnu.org>
13631 * commands/configfile.c (grub_cmd_source): New function.
13632 (GRUB_MOD_INIT): Register the commands `source' and `.'.
13633 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
13635 2006-04-30 Marco Gerards <marco@gnu.org>
13637 * normal/execute.c (grub_script_execute_cmd): Change the return
13638 type to `grub_err_t'. Correctly return the error.
13639 (grub_script_execute_cmdline): In case a command line is not a
13640 command or a function, try to interpret it as an assignment.
13642 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
13644 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
13645 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
13646 skip a node whose name is obviously invalid as UTF-16,
13647 i.e. contains a NUL character. Stop the iteration when the last
13648 directory entry is found. Instead of using the return value of
13649 grub_hfsplus_btree_iterate_node, store the value in RET and use
13650 it, because the iterator can be stopped by the last directory
13653 2006-04-30 Marco Gerards <marco@gnu.org>
13655 * include/grub/env.h (grub_env_export): New prototype. Reported
13656 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
13658 2006-04-30 Marco Gerards <marco@gnu.org>
13660 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
13661 size of the extents in a catalog file record.
13663 2006-04-29 Marco Gerards <marco@gnu.org>
13665 * commands/configfile.c (grub_cmd_configfile): Execute the
13666 configfile within its own context.
13668 * include/grub/env.h (grub_env_context_open): New prototype.
13669 (grub_env_context_close): Likewise.
13671 * kern/env.c (grub_env): Removed.
13672 (grub_env_sorted): Likewise.
13673 (grub_env_context): New variable.
13674 (grub_env_var_context): Likewise.
13675 (grub_env_find): Search both the active context and the global
13677 (grub_env_context_open): New function.
13678 (grub_env_context_close): Likewise.
13679 (grub_env_insert): Likewise.
13680 (grub_env_remove): Likewise.
13681 (grub_env_export): Likewise.
13682 (grub_env_set): Changed to use helper functions to avoid code
13684 (grub_env_iterate): Rewritten so both the current context and the
13685 global context are being used.
13687 * normal/command.c (export_command): New function.
13688 (grub_command_init): Register the `export' function.
13690 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
13692 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
13693 explicitly to suppress gcc's warnings.
13694 * fs/fat.c (grub_fat_find_dir): Likewise.
13695 (grub_fat_label): Likewise.
13696 * fs/xfs.c (grub_xfs_read_inode): Likewise.
13697 (grub_xfs_mount): Likewise.
13698 (grub_xfs_label): Likewise.
13699 * fs/affs.c (grub_affs_mount): Likewise.
13700 (grub_affs_label): Likewise.
13701 (grub_affs_iterate_dir): Likewise.
13702 * fs/sfs.c (grub_sfs_mount): Likewise.
13703 (grub_sfs_iterate_dir): Likewise.
13704 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
13705 * fs/hfs.c (grub_hfs_mount): Likewise.
13706 (grub_hfs_cmp_catkeys): Likewise.
13707 (grub_hfs_find_dir): Likewise.
13708 (grub_hfs_dir): Likewise.
13709 (grub_hfs_label): Likewise.
13710 * fs/jfs.c (grub_jfs_mount): Likewise.
13711 (grub_jfs_opendir): Likewise.
13712 (grub_jfs_getent): Likewise.
13713 (grub_jfs_lookup_symlink): Likewise.
13714 (grub_jfs_label): Likewise.
13715 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
13716 (grub_hfsplus_iterate_dir): Likewise.
13717 (grub_hfsplus_btree_iterate_node): Made static.
13719 * util/grub-emu.c (prefix): New variable.
13720 (grub_machine_set_prefix): New function.
13721 (main): Do not set the environment variable "prefix" here. Only
13722 set PREFIX, which is used later by grub_machine_set_prefix.
13724 * include/grub/video.h: Do not include grub/symbol.h.
13725 (grub_video_register): Not exported. This symbol is not defined in
13727 (grub_video_unregister): Likewise.
13728 (grub_video_iterate): Likewise.
13729 (grub_video_setup): Likewise.
13730 (grub_video_restore): Likewise.
13731 (grub_video_get_info): Likewise.
13732 (grub_video_get_blit_format): Likewise.
13733 (grub_video_set_palette): Likewise.
13734 (grub_video_get_palette): Likewise.
13735 (grub_video_set_viewport): Likewise.
13736 (grub_video_get_viewport): Likewise.
13737 (grub_video_map_color): Likewise.
13738 (grub_video_map_rgb): Likewise.
13739 (grub_video_map_rgba): Likewise.
13740 (grub_video_fill_rect): Likewise.
13741 (grub_video_blit_glyph): Likewise.
13742 (grub_video_blit_bitmap): Likewise.
13743 (grub_video_blit_render_target): Likewise.
13744 (grub_video_scroll): Likewise.
13745 (grub_video_swap_buffers): Likewise.
13746 (grub_video_create_render_target): Likewise.
13747 (grub_video_delete_render_target): Likewise.
13748 (grub_video_set_active_render_target): Likewise.
13750 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
13752 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
13754 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
13755 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
13756 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
13757 instead of $(srcdir)/genkernsyms.sh.
13759 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
13760 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
13761 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
13762 instead of $(srcdir)/genkernsyms.sh.
13764 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
13765 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
13766 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
13767 instead of $(srcdir)/genkernsyms.sh.
13769 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
13770 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
13771 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
13772 instead of $(srcdir)/genkernsyms.sh.
13774 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
13777 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
13779 (gensymlist.sh): New target.
13780 (genkernsyms.sh): Likewise.
13782 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
13783 genkernsyms.sh.in and gensymlist.sh.in.
13785 * genkernsyms.sh: Removed.
13786 * gensymlist.sh: Likewise.
13788 * genkernsyms.sh.in: New file.
13789 * gensymlist.sh.in: Likewise.
13791 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
13793 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
13794 clobber "prefix", since we may have already set it manually.
13796 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
13798 * kern/misc.c (abort): New alias for grub_abort.
13800 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
13802 A new machine-specific function "grub_machine_set_prefix" is
13803 defined. This is called after loading modules, so that a prefix
13804 initialization can use modules. Also, this change adds an
13805 intensive debugging feature for the memory manager via the
13806 configure option "--enable-mm-debug".
13808 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
13811 * kern/sparc64/ieee1275/init.c (abort): Removed.
13812 (grub_stop): Likewise.
13813 (grub_exit): New function.
13814 (grub_set_prefix): Renamed to ...
13815 (grub_machine_set_prefix): ... this.
13816 (grub_machine_init): Do not call grub_set_prefix.
13818 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
13819 (grub_machine_set_prefix): ... this.
13820 (grub_machine_init): Do not call grub_set_prefix.
13822 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
13823 (grub_machine_init): Do not set the prefix here.
13825 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
13827 * kern/efi/init.c: Include grub/mm.h.
13828 (grub_efi_set_prefix): New function.
13830 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
13831 (grub_efi_get_filename): New function.
13832 (grub_print_device_path): Renamed to ...
13833 (grub_efi_print_device_path): ... this.
13835 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
13836 [MM_DEBUG] (grub_realloc): Likewise.
13837 [MM_DEBUG] (grub_free): Likewise.
13838 [MM_DEBUG] (grub_memalign): Likewise.
13839 [MM_DEBUG] (grub_mm_debug): New variable.
13840 [MM_DEBUG] (grub_debug_malloc): New function.
13841 [MM_DEBUG] (grub_debug_free): New function.
13842 [MM_DEBUG] (grub_debug_realloc): New function.
13843 [MM_DEBUG] (grub_debug_memalign): New function.
13845 * kern/misc.c (grub_abort): Print a newline to distinguish
13848 * kern/main.c (grub_main): Call grub_machine_set_prefix and
13849 grub_set_root_dev after loading modules. This is necessary when
13850 setting a prefix depends on modules.
13852 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
13853 (grub_efi_print_device_path): ... this.
13854 (grub_efi_get_filename): New prototype.
13855 (grub_efi_set_prefix): Likewise.
13857 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
13859 (grub_efidisk_get_device_handle): New prototype.
13860 (grub_efidisk_get_device_name): Likewise.
13862 * include/grub/mm.h: Include config.h.
13863 (MM_DEBUG): Removed.
13864 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
13865 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
13866 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
13867 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
13868 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
13869 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
13870 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
13871 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
13872 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
13874 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
13876 * disk/efi/efidisk.c: Include grub/partition.h.
13877 (iterate_child_devices): New function.
13878 (add_device): First, compare only last device path nodes, so that
13879 devices are sorted by the types.
13880 (grub_efidisk_get_device_handle): New function.
13881 (grub_efidisk_get_device_name): Likewise.
13883 * configure.ac (--enable-mm-debug): New option to enable the
13884 memory manager debugging feature. This makes the binary much
13885 bigger, so is disabled by default.
13887 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
13889 Use grub_abort instead of grub_stop, and grub_exit must be
13890 define in each architecture now. Also, this change adds support
13893 * util/i386/pc/grub-probefs.c: Include grub/term.h.
13894 (grub_getkey): New function.
13895 (grub_term_get_current): Likewise.
13897 * util/i386/pc/grub-setup.c: Include grub/term.h.
13898 (grub_getkey): New function.
13899 (grub_term_get_current): Likewise.
13901 * util/misc.c (grub_stop): Renamed to ...
13902 (grub_exit): ... this.
13904 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
13905 (grub_exit): ... this.
13906 (grub_machine_init): Use grub_abort instead of abort.
13907 (grub_stop): Removed.
13909 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
13912 * kern/i386/pc/startup.S (grub_exit): New function.
13913 (cold_reboot): New label.
13915 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
13916 (grub_efi_init): Call grub_efidisk_init.
13917 (grub_efi_fini): Call grub_efidisk_fini.
13919 * kern/efi/efi.c: Include grub/mm.h.
13920 (grub_efi_console_control_guid): Renamed to ...
13921 (console_control_guid): ... this.
13922 (grub_efi_loaded_image_guid): Renamed to ...
13923 (loaded_image_guid): ... this.
13924 (grub_efi_locate_handle): New function.
13925 (grub_efi_open_protocol): Likewise.
13926 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
13927 GRUB_EFI_CONSOLE_CONTROL_GUID.
13928 (grub_efi_exit): Removed.
13929 (grub_stop): Likewise.
13930 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
13931 (grub_exit): New function.
13932 (grub_print_device_path): Likewise.
13934 * kern/rescue.c (grub_rescue_cmd_exit): New function.
13935 (grub_enter_rescue_mode): Register "exit".
13937 * kern/misc.c (grub_real_dprintf): A cosmetic change.
13938 (grub_abort): New function.
13940 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
13942 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
13944 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
13946 * include/grub/efi/efi.h (grub_efi_exit): Removed.
13947 (grub_print_device_path): New prototype.
13948 (grub_efi_locate_handle): Likewise.
13949 (grub_efi_open_protocol): Likewise.
13951 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
13952 * disk/efi/efidisk.c: Likewise.
13954 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
13956 * include/grub/efi/console_control.h
13957 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
13959 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
13960 last 8 bytes as an array.
13961 (GRUB_EFI_DISK_IO_GUID): New macro.
13962 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
13963 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
13964 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
13966 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
13967 (struct grub_efi_device_path): Rename the member "sub_type" to
13969 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
13970 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
13971 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
13972 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
13973 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
13974 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
13975 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
13976 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
13977 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
13978 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
13979 (struct grub_efi_pci_device_path): New structure.
13980 (grub_efi_pci_device_path_t): New type.
13981 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
13982 (struct grub_efi_pccard_device_path): New structure.
13983 (grub_efi_pccard_device_path_t): New type.
13984 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
13985 (struct grub_efi_memory_mapped_device_path): New structure.
13986 (grub_efi_memory_mapped_device_path_t): New type.
13987 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
13988 (struct grub_efi_vendor_device_path): New structure.
13989 (grub_efi_vendor_device_path_t): New type.
13990 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
13991 (struct grub_efi_controller_device_path): New structure.
13992 (grub_efi_controller_device_path_t): New type.
13993 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
13994 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
13995 (struct grub_efi_acpi_device_path): New structure.
13996 (grub_efi_acpi_device_path_t): New type.
13997 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
13998 (struct grub_efi_expanded_acpi_device_path): New structure.
13999 (grub_efi_expanded_acpi_device_path_t): New type.
14000 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
14001 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
14002 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
14003 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
14004 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
14005 (struct grub_efi_atapi_device_path): New structure.
14006 (grub_efi_atapi_device_path_t): New type.
14007 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
14008 (struct grub_efi_fibre_channel_device_path): New structure.
14009 (grub_efi_fibre_channel_device_path_t): New type.
14010 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
14011 (struct grub_efi_1394_device_path): New structure.
14012 (grub_efi_1394_device_path_t): New type.
14013 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
14014 (struct grub_efi_usb_device_path): New structure.
14015 (grub_efi_usb_device_path_t): New type.
14016 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
14017 (struct grub_efi_usb_class_device_path): New structure.
14018 (grub_efi_usb_class_device_path_t): New type.
14019 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
14020 (struct grub_efi_i2o_device_path): New structure.
14021 (grub_efi_i2o_device_path_t): New type.
14022 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
14023 (struct grub_efi_mac_address_device_path): New structure.
14024 (grub_efi_mac_address_device_path_t): New type.
14025 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
14026 (struct grub_efi_ipv4_device_path): New structure.
14027 (grub_efi_ipv4_device_path_t): New type.
14028 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
14029 (struct grub_efi_ipv6_device_path): New structure.
14030 (grub_efi_ipv6_device_path_t): New type.
14031 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
14032 (struct grub_efi_infiniband_device_path): New structure.
14033 (grub_efi_infiniband_device_path_t): New type.
14034 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
14035 (struct grub_efi_uart_device_path): New structure.
14036 (grub_efi_uart_device_path_t): New type.
14037 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
14038 (struct grub_efi_vendor_messaging_device_path): New structure.
14039 (grub_efi_vendor_messaging_device_path_t): New type.
14040 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
14041 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
14042 (struct grub_efi_hard_drive_device_path): New structure.
14043 (grub_efi_hard_drive_device_path_t): New type.
14044 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
14045 (struct grub_efi_cdrom_device_path): New structure.
14046 (grub_efi_cdrom_device_path_t): New type.
14047 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
14048 (struct grub_efi_vendor_media_device_path): New structure.
14049 (grub_efi_vendor_media_device_path_t): New type.
14050 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
14051 (struct grub_efi_file_path_device_path): New structure.
14052 (grub_efi_file_path_device_path_t): New type.
14053 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
14054 (struct grub_efi_protocol_device_path): New structure.
14055 (grub_efi_protocol_device_path_t): New type.
14056 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
14057 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
14058 (struct grub_efi_bios_device_path): New structure.
14059 (grub_efi_bios_device_path_t): New type.
14060 (struct grub_efi_disk_io): New structure.
14061 (grub_efi_disk_io_t): New type.
14062 (struct grub_efi_block_io_media): New structure.
14063 (grub_efi_block_io_media_t): New type.
14064 (struct grub_efi_block_io): New structure.
14065 (grub_efi_block_io_t): New type.
14067 * include/grub/misc.h (grub_stop): Removed.
14068 (grub_exit): New prototype.
14069 (grub_abort): Likewise.
14071 * include/grub/disk.h (enum grub_disk_dev_id): Added
14072 GRUB_DISK_DEVICE_EFIDISK_ID.
14074 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
14075 disk/efi/efidisk.c.
14076 (kernel_syms.lst): Remove the target if an error occurs.
14078 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
14080 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
14081 as it was simply too buggy.
14083 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
14085 * kern/misc.c (grub_lltoa): New function.
14086 (grub_vsprintf): Added support for the long long suffix,
14089 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
14091 * Makefile.in (LDFLAGS): Add variable.
14092 (LD): Remove variable.
14093 * configure.ac: Add -m32 to LDFLAGS.
14094 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
14095 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
14096 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
14097 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
14098 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
14100 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
14101 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
14102 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
14104 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
14106 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
14107 length for unknown glyph.
14109 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
14111 Add support for pre-loaded modules into the EFI port.
14113 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
14114 completely. Accept one more argument DIR. The caller has changed.
14116 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
14118 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
14119 (grub_efi_loaded_image_guid): New variable.
14120 (grub_efi_get_loaded_image): New function.
14121 (grub_arch_modules_addr): Likewise.
14123 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
14126 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
14127 (struct grub_efi_loaded_image): New structure.
14128 (grub_efi_loaded_image_t): New type.
14130 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
14132 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
14133 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
14134 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
14136 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
14138 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
14140 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
14142 * DISTLIST: Added include/grub/efi/console.h,
14143 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
14144 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
14146 * include/grub/efi/console.h: New file.
14147 * include/grub/efi/time.h: Likewise.
14148 * include/grub/i386/efi/kernel.h: Likewise.
14149 * kern/efi/init.c: Likewise.
14150 * kern/efi/mm.c: Likewise.
14151 * term/efi/console.c: Likewise.
14153 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
14154 (grub_stop): Removed.
14155 (grub_get_rtc): Likewise.
14156 (grub_machine_init): Simply call grub_efi_init.
14157 (grub_machine_fini): Call grub_efi_fini.
14159 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
14160 (grub_efi_output_string): Removed.
14161 (grub_efi_stall): New function.
14162 (grub_stop): Likewise.
14163 (grub_get_rtc): Likewise.
14165 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
14166 (grub_efi_stall): New prototype.
14167 (grub_efi_allocate_pages): Likewise.
14168 (grub_efi_free_pages): Likewise.
14169 (grub_efi_get_memory_map): Likewise.
14170 (grub_efi_mm_init): Likewise.
14171 (grub_efi_mm_fini): Likewise.
14172 (grub_efi_init): Likewise.
14173 (grub_efi_fini): Likewise.
14175 * include/grub/i386/efi/time.h: Do not include
14176 grub/symbol.h. Include grub/efi/time.h.
14177 (GRUB_TICKS_PER_SECOND): Removed.
14178 (grub_get_rtc): Likewise.
14180 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
14181 Added padding. The EFI spec is buggy.
14182 (GRUB_EFI_BLACK): New macro.
14183 (GRUB_EFI_BLUE): Likewise.
14184 (GRUB_EFI_GREEN): Likewise.
14185 (GRUB_EFI_CYAN): Likewise.
14186 (GRUB_EFI_RED): Likewise.
14187 (GRUB_EFI_MAGENTA): Likewise.
14188 (GRUB_EFI_BROWN): Likewise.
14189 (GRUB_EFI_LIGHTGRAY): Likewise.
14190 (GRUB_EFI_BRIGHT): Likewise.
14191 (GRUB_EFI_DARKGRAY): Likewise.
14192 (GRUB_EFI_LIGHTBLUE): Likewise.
14193 (GRUB_EFI_LIGHTGREEN): Likewise.
14194 (GRUB_EFI_LIGHTCYAN): Likewise.
14195 (GRUB_EFI_LIGHTRED): Likewise.
14196 (GRUB_EFI_LIGHTMAGENTA): Likewise.
14197 (GRUB_EFI_YELLOW): Likewise.
14198 (GRUB_EFI_WHITE): Likewise.
14199 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
14200 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
14201 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
14202 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
14203 (GRUB_EFI_BACKGROUND_RED): Likewise.
14204 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
14205 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
14206 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
14207 (GRUB_EFI_TEXT_ATTR): Likewise.
14209 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
14210 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
14211 (kernel_mod_HEADERS): Added efi/time.h.
14213 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
14215 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
14216 include/grub/efi/api.h, include/grub/efi/console_control.h,
14217 include/grub/efi/efi.h, include/grub/efi/pe32.h,
14218 include/grub/i386/efi/time.h, kern/efi/efi.c,
14219 kern/i386/efi/init.c, kern/i386/efi/startup.S,
14220 and util/i386/efi/grub-mkimage.c.
14222 * Makefile.in (RMKFILES): Added i386-efi.rmk.
14224 * genmk.rb (PModule#rule): Do not export symbols if
14225 #{prefix}_EXPORTS is set to "no".
14227 * conf/i386-efi.mk: New file.
14228 * conf/i386-efi.rmk: Likewise.
14229 * include/grub/efi/api.h: Likewise.
14230 * include/grub/efi/console_control.h: Likewise.
14231 * include/grub/efi/efi.h: Likewise.
14232 * include/grub/efi/pe32.h: Likewise.
14233 * include/grub/i386/efi/time.h: Likewise.
14234 * kern/efi/efi.c: Likewise.
14235 * kern/i386/efi/init.c: Likewise.
14236 * kern/i386/efi/startup.S: Likewise.
14237 * util/i386/efi/grub-mkimage.c: Likewise.
14239 2006-04-17 Marco Gerards <marco@gnu.org>
14241 * include/grub/script.h: Include <grub/parser.h> and
14242 "grub_script.tab.h".
14243 (struct grub_lexer_param): New struct.
14244 (struct grub_parser_param): Likewise.
14245 (grub_script_create_arglist): Pass the state in an argument.
14246 (grub_script_add_arglist): Likewise.
14247 (grub_script_create_cmdline): Likewise.
14248 (grub_script_create_cmdblock): Likewise.
14249 (grub_script_create_cmdif): Likewise.
14250 (grub_script_create_cmdmenu): Likewise.
14251 (grub_script_add_cmd): Likewise.
14252 (grub_script_arg_add): Likewise.
14253 (grub_script_lexer_ref): Likewise.
14254 (grub_script_lexer_deref): Likewise.
14255 (grub_script_lexer_record_start): Likewise.
14256 (grub_script_lexer_record_stop): Likewise.
14257 (grub_script_mem_record): Likewise.
14258 (grub_script_mem_record_stop): Likewise.
14259 (grub_script_malloc): Likewise.
14260 (grub_script_yylex): Likewise.
14261 (grub_script_yyparse): Likewise.
14262 (grub_script_yyerror): Likewise.
14263 (grub_script_yylex): Likewise.
14264 (grub_script_lexer_init): Return the state.
14266 * normal/lexer.c (grub_script_lexer_state): Removed variable.
14267 (grub_script_lexer_done): Likewise.
14268 (grub_script_lexer_getline): Likewise.
14269 (grub_script_lexer_refs): Likewise.
14270 (script): Likewise.
14271 (newscript): Likewise.
14272 (record): Likewise.
14273 (recording): Likewise.
14274 (recordpos): Likewise.
14275 (recordlen): Likewise.
14276 (grub_script_lexer_init): Return the state instead of setting
14278 (grub_script_lexer_ref): Use the newly added argument for state
14279 instead of globals.
14280 (grub_script_lexer_deref): Likewise.
14281 (grub_script_lexer_record_start): Likewise.
14282 (grub_script_lexer_record_stop): Likewise.
14283 (recordchar): Likewise.
14284 (nextchar): Likewise.
14285 (grub_script_yylex2): Likewise.
14286 (grub_script_yylex): Likewise.
14287 (grub_script_yyerror): Likewise.
14289 * normal/parser.y (func_mem): Removed variable.
14290 (menu_entry): Likewise.
14292 (%lex-param): New parser option.
14293 (%parse-param): Likewise.
14294 (script): Always return the AST.
14295 (argument): Pass the state around.
14296 (arguments): Likewise.
14297 (grubcmd): Likewise.
14298 (commands): Likewise.
14299 (function): Likewise.
14300 (menuentry): Likewise.
14301 (if_statement): Likewise.
14304 * normal/script.c (grub_script_memused): Removed variable.
14305 (grub_script_parsed): Likewise.
14306 (grub_script_malloc): Added a state argument. Use that instead of
14308 (grub_script_mem_record): Likewise.
14309 (grub_script_mem_record_stop): Likewise.
14310 (grub_script_arg_add): Likewise.
14311 (grub_script_add_arglist): Likewise.
14312 (grub_script_create_cmdline): Likewise.
14313 (grub_script_create_cmdif): Likewise.
14314 (grub_script_create_cmdmenu): Likewise.
14315 (grub_script_add_cmd): Likewise.
14316 (grub_script_parse): Setup the state before calling the parser.
14318 2006-04-16 Marco Gerards <marco@gnu.org>
14320 * normal/command.c (grub_command_init): Remove the title command.
14322 * normal/lexer.c (grub_script_yylex): Renamed from this...
14323 (grub_script_yylex2): ... to this.
14324 (grub_script_yylex): New function. Temporary
14325 introduced to filter some tokens.
14326 (grub_script_yyerror): Print a newline.
14328 * normal/main.c (read_config_file): Output information about the
14329 lines that contain errors. Wait for a key after all lines have
14330 been processed. Don't return an empty menu.
14332 * normal/parser.y (func_mem): Don't initialize.
14333 (menu_entry): Likewise.
14334 (err): New variable.
14335 (script): Don't return anything when an error was encountered.
14336 (ws, returns): Removed rules.
14337 (argument): Disabled concatenated variable support.
14338 (arguments): Remove explicit separators.
14339 (grubcmd): Likewise.
14340 (function): Likewise.
14341 (menuentry): Likewise.
14343 (commands): Likewise. Add error handling.
14345 * normal/script.c (grub_script_create_cmdline): If
14346 `grub_script_parsed' is 0, assume the parser encountered an error.
14348 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
14350 * configure.ac: Add support for EFI. Fix the typo
14351 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
14353 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
14355 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
14356 foreign multibyte characters should be shown correctly.
14358 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
14360 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
14362 (read_config_file): Made it to close file before returning.
14364 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
14366 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
14367 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
14368 video/i386/pc/vbefill.c.
14370 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
14371 video/i386/pc/vbefill.c.
14373 * include/grub/video.h (grub_video_blit_format): New enum.
14374 (grub_video_mode_info): Added new member blit_format.
14375 (grub_video_get_blit_format): New function prototype.
14377 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
14378 function prototype.
14379 (grub_video_vbe_map_rgb): Likewise.
14380 (grub_video_vbe_unmap_color): Likewise.
14382 * include/grub/i386/pc/vbeblit.h: New file.
14384 * include/grub/i386/pc/vbefill.h: New file.
14386 * video/video.c (grub_video_get_blit_format): New function.
14387 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
14388 (grub_video_vbe_map_rgb): Likewise.
14389 (grub_video_vbe_unmap_color): Likewise.
14391 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
14393 (grub_video_vbe_blit_render_target): Changed to use more optimized
14395 (grub_video_vbe_setup): Added detection for optimized settings.
14396 (grub_video_vbe_create_render_target): Likewise.
14398 * video/i386/pc/vbeblit.c: New file.
14400 * video/i386/pc/vbefill.c: New file.
14402 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
14404 * font/manager.c (grub_font_get_glyph): Removed font fixup from
14407 * util/unifont2pff.rb: ... and moved it to here. Improved argument
14408 parsing to support both hex and dec ranges. If filename was missing
14409 show usage information.
14411 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
14413 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
14414 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
14416 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
14417 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
14418 (video_mod_SOURCES): Added.
14419 (video_mod_CFLAGS): Likewise.
14420 (video_mod_LDFLAGS): Likewise.
14421 (gfxterm_mod_SOURCES): Likewise.
14422 (gfxterm_mod_CFLAGS): Likewise.
14423 (gfxterm_mod_LDFLAGS): Likewise.
14424 (videotest_mod_SOURCES): Likewise.
14425 (videotest_mod_CFLAGS): Likewise.
14426 (videotest_mod_LDFLAGS): Likewise.
14427 (vesafb_mod_SOURCES): Removed.
14428 (vesafb_mod_CFLAGS): Likewise.
14429 (vesafb_mod_LDFLAGS): Likewise.
14430 (vga_mod_SOURCES): Likewise.
14431 (vga_mod_CFLAGS): Likewise.
14432 (vga_mod_LDFLAGS): Likewise.
14434 * commands/videotest.c: New file.
14436 * font/manager.c (fill_with_default_glyph): Modified to use
14438 (grub_font_get_glyph): Likewise.
14439 (fontmanager): Renamed from this...
14440 (font_manager): ... to this.
14442 * include/grub/font.h (grub_font_glyph): Added new structure.
14443 (grub_font_get_glyph): Modified to use grub_font_glyph.
14445 * include/grub/misc.h (grub_abs): Added as inline function.
14447 * include/grub/video.h: New file.
14449 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
14450 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
14451 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
14452 (grub_vbe_get_controller_info): Renamed from this...
14453 (grub_vbe_bios_get_controller_info): ... to this.
14454 (grub_vbe_get_mode_info): Renamed from this...
14455 (grub_vbe_bios_get_mode_info): ... to this.
14456 (grub_vbe_set_mode): Renamed from this...
14457 (grub_vbe_bios_set_mode): ... to this.
14458 (grub_vbe_get_mode): Renamed from this...
14459 (grub_vbe_bios_get_mode): ... to this.
14460 (grub_vbe_set_memory_window): Renamed from this...
14461 (grub_vbe_bios_set_memory_window): ... to this.
14462 (grub_vbe_get_memory_window): Renamed from this...
14463 (grub_vbe_bios_get_memory_window): ... to this.
14464 (grub_vbe_set_scanline_length): Renamed from this...
14465 (grub_vbe_set_scanline_length): ... to this.
14466 (grub_vbe_get_scanline_length): Renamed from this...
14467 (grub_vbe_bios_get_scanline_length): ... to this.
14468 (grub_vbe_set_display_start): Renamed from this...
14469 (grub_vbe_bios_set_display_start): ... to this.
14470 (grub_vbe_get_display_start): Renamed from this...
14471 (grub_vbe_bios_get_display_start): ... to this.
14472 (grub_vbe_set_palette_data): Renamed from this...
14473 (grub_vbe_bios_set_palette_data): ... to this.
14474 (grub_vbe_set_pixel_rgb): Removed.
14475 (grub_vbe_set_pixel_index): Likewise.
14477 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
14479 (grub_vbe_bios_get_controller_info): ... to this.
14480 (grub_vbe_get_mode_info): Renamed from this...
14481 (grub_vbe_bios_get_mode_info): ... to this.
14482 (grub_vbe_set_mode): Renamed from this...
14483 (grub_vbe_bios_set_mode): ... to this.
14484 (grub_vbe_get_mode): Renamed from this...
14485 (grub_vbe_bios_get_mode): ... to this.
14486 (grub_vbe_set_memory_window): Renamed from this...
14487 (grub_vbe_bios_set_memory_window): ... to this.
14488 (grub_vbe_get_memory_window): Renamed from this...
14489 (grub_vbe_bios_get_memory_window): ... to this.
14490 (grub_vbe_set_scanline_length): Renamed from this...
14491 (grub_vbe_set_scanline_length): ... to this.
14492 (grub_vbe_get_scanline_length): Renamed from this...
14493 (grub_vbe_bios_get_scanline_length): ... to this.
14494 (grub_vbe_set_display_start): Renamed from this...
14495 (grub_vbe_bios_set_display_start): ... to this.
14496 (grub_vbe_get_display_start): Renamed from this...
14497 (grub_vbe_bios_get_display_start): ... to this.
14498 (grub_vbe_set_palette_data): Renamed from this...
14499 (grub_vbe_bios_set_palette_data): ... to this.
14500 (grub_vbe_bios_get_controller_info): Fixed problem with registers
14501 getting corrupted after calling it. Added more pushes and pops.
14502 (grub_vbe_bios_set_mode): Likewise.
14503 (grub_vbe_bios_get_mode): Likewise.
14504 (grub_vbe_bios_get_memory_window): Likewise.
14505 (grub_vbe_bios_set_scanline_length): Likewise.
14506 (grub_vbe_bios_get_scanline_length): Likewise.
14507 (grub_vbe_bios_get_display_start): Likewise.
14508 (grub_vbe_bios_set_palette_data): Likewise.
14510 * normal/cmdline.c (cl_set_pos): Refresh the screen.
14511 (cl_insert): Likewise.
14512 (cl_delete): Likewise.
14514 * term/gfxterm.c: New file.
14516 * term/i386/pc/vesafb.c: Removed file.
14518 * video/video.c: New file.
14520 * video/i386/pc/vbe.c (real2pm): Added new function.
14521 (grub_video_vbe_draw_pixel): Likewise.
14522 (grub_video_vbe_get_video_ptr): Likewise.
14523 (grub_video_vbe_get_pixel): Likewise
14524 (grub_video_vbe_init): Likewise.
14525 (grub_video_vbe_fini): Likewise.
14526 (grub_video_vbe_setup): Likewise.
14527 (grub_video_vbe_get_info): Likewise.
14528 (grub_video_vbe_set_palette): Likewise.
14529 (grub_video_vbe_get_palette): Likewise.
14530 (grub_video_vbe_set_viewport): Likewise.
14531 (grub_video_vbe_get_viewport): Likewise.
14532 (grub_video_vbe_map_color): Likewise.
14533 (grub_video_vbe_map_rgb): Likewise.
14534 (grub_video_vbe_map_rgba): Likewise.
14535 (grub_video_vbe_unmap_color): Likewise.
14536 (grub_video_vbe_fill_rect): Likewise.
14537 (grub_video_vbe_blit_glyph): Likewise.
14538 (grub_video_vbe_blit_bitmap): Likewise.
14539 (grub_video_vbe_blit_render_target): Likewise.
14540 (grub_video_vbe_scroll): Likewise.
14541 (grub_video_vbe_swap_buffers): Likewise.
14542 (grub_video_vbe_create_render_target): Likewise.
14543 (grub_video_vbe_delete_render_target): Likewise.
14544 (grub_video_vbe_set_active_render_target): Likewise.
14545 (grub_vbe_set_pixel_rgb): Remove function.
14546 (grub_vbe_set_pixel_index): Likewise.
14547 (index_color_mode): Remove static variable.
14548 (active_mode): Likewise.
14549 (framebuffer): Likewise.
14550 (bytes_per_scan_line): Likewise.
14551 (grub_video_vbe_adapter): Added new static variable.
14552 (framebuffer): Likewise.
14553 (render_target): Likewise.
14554 (initial_mode): Likewise.
14555 (mode_in_use): Likewise.
14556 (mode_list): Likewise.
14558 2006-03-10 Marco Gerards <marco@gnu.org>
14560 * configure.ac (AC_INIT): Bumped to 1.93.
14562 * DISTLIST: Added `include/grub/hfs.h'.
14564 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
14566 * boot/i386/pc/boot.S (general_error): Before looping, try INT
14567 18H, which might help the BIOS falling back to next boot media.
14569 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
14571 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
14572 Poe Chen <poe.poechen@gmail.com>.
14574 2006-01-17 Marco Gerards <marco@gnu.org>
14576 * include/grub/normal.h: Include <grub/script.h>.
14577 (grub_command_list): Removed struct.
14578 (grub_command_list_t): Removed type.
14579 (grub_menu_entry): Remove members `num' and `command_list'. Add
14580 members `commands' and `sourcecode'.
14581 * include/grub/script.h: Add inclusion guards.
14582 (grub_script_cmd_menuentry): New struct.
14583 (grub_script_execute_menuentry): New prototype.
14584 (grub_script_lexer_record_start): Likewise.
14585 (grub_script_lexer_record_stop): Likewise.
14586 * normal/execute.c (grub_script_execute_menuentry): New function.
14587 * normal/lexer.c (record, recording, recordpos, recordlen): New
14589 (grub_script_lexer_record_start): New function.
14590 (grub_script_lexer_record_stop): Likewise.
14591 (recordchar): Likewise.
14592 (nextchar): Likewise.
14593 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
14594 2048 as the buffer size. Add the tokens `menuentry' and `@'.
14595 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
14596 (current_menu): New variable.
14597 (free_menu): Mainly rewritten.
14598 (grub_normal_menu_addentry): New function.
14599 (read_config_file): Rewritten.
14600 * normal/menu.c (run_menu_entry): Mainly rewritten.
14601 * normal/menu_entry.c (make_screen): Rewritten the code to insert
14603 (run): Mainly rewritten.
14604 * normal/parser.y (menu_entry): New variable.
14605 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
14606 (menuentry): New rule.
14607 (command): Add `menuentry'.
14608 (if_statement): Allow additional returns before `fi'.
14609 * normal/script.c (grub_script_create_cmdmenu): New function.
14611 2006-01-03 Marco Gerards <marco@gnu.org>
14613 * INSTALL: GNU Bison is required.
14614 * configure.ac: Rewritten the test to detect Bison.
14615 * Makefile.in (YACC): New variable. Reported by Xun Sun
14616 <xun.sun.cn@gmail.com>.
14618 2006-01-03 Marco Gerards <marco@gnu.org>
14620 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
14621 the HFS+ filesystem to filesystem blocks.
14622 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
14623 GCC warning is silenced.
14625 2006-01-03 Marco Gerards <marco@gnu.org>
14627 * partmap/apple.c (apple_partition_map_iterate): Convert the data
14628 read from disk from big endian to host byte order.
14630 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
14632 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
14634 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
14635 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
14636 embedded HFS+ filesystem.
14637 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
14638 (grub_hfs_sblock): Move from here...
14639 * include/grub/hfs.h: To here... New file.
14640 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
14642 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
14644 (grub_hfsplus_volheader): Change type of member `magic' to
14646 (grub_hfsplus_data): Add new member `embedded_offset'.
14647 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
14649 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
14650 Calculate the offset.
14652 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
14654 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
14656 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
14658 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
14660 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
14661 ENV->NAME is NULL after allocating ENV->VALUE.
14663 2005-12-25 Marco Gerards <marco@gnu.org>
14665 * kern/env.c (grub_env_set): Rewritten the error handling code.
14667 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
14669 * geninit.sh: Made more robust, and more portable.
14671 2005-12-25 Marco Gerards <marco@gnu.org>
14673 Add support for Apple HFS+ filesystems.
14675 * fs/hfsplus.c: New file.
14677 * DISTLIST: Added `fs/hfsplus.c'.
14679 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
14680 (hfsplus_mod_SOURCES): New variable.
14681 (hfsplus_mod_CFLAGS): Likewise.
14682 (hfsplus_mod_LDFLAGS): Likewise.
14683 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
14684 (grub_setup_SOURCES): Likewise.
14685 (grub_mkdevicemap_SOURCES): Likewise.
14686 (grub_emu_SOURCES): Likewise.
14687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14689 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
14691 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
14693 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
14695 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
14696 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
14697 include/grub/parser.h, include/grub/script.h, kern/parser.c,
14698 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
14699 normal/lexer.c, normal/parser.y, normal/script.c, and
14701 Removed kern/sparc64/cache.c.
14703 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
14704 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
14707 * configure.ac (AC_INIT): Bumped to 1.92.
14709 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
14711 * kern/err.c (grub_error_push): Added new function to support error
14713 (grub_error_pop): Likewise.
14714 (grub_error_stack_items): New local variable to support error stacks.
14715 (grub_error_stack_pos): Likewise.
14716 (grub_error_stack_assert): Likewise.
14717 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
14719 (grub_print_error): Added support to print errors from error stack.
14721 * include/grub/err.h (grub_error_push): Added function prototype.
14722 (grub_error_pop): Likewise.
14724 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
14726 * configure.ac: Accept `powerpc64' as host_cpu.
14727 (amd64): Rename to `biarch32'.
14729 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
14730 non-cacheline-aligned addresses.
14732 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
14733 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
14734 if `size' is non-zero.
14736 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
14738 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
14739 and `cd' to make sure the filename is not prefixed with a
14741 (pkgdata_MODULES): Add `gpt.mod'.
14742 (gpt_mod_SOURCES): New variable.
14743 (gpt_mod_CFLAGS): Likewise.
14744 (gpt_mod_LDFLAGS): Likewise.
14746 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
14748 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
14751 * partmap/gpt.c: New file.
14753 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
14754 GPT partition map is detected.
14756 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
14758 * commands/i386/pc/play.c: New file.
14759 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
14760 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
14763 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
14765 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
14766 ((unused))' to silence gcc warning.
14768 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
14770 * configure.ac: Correct `AC_PROG_YACC' test.
14772 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
14774 * util/powerpc/ieee1275/grub-install.in: Run the mount point
14775 check before installing files.
14777 2005-11-22 Mike Small <smallm@panix.com>
14779 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
14780 number regex so multidigit numbers are recognized correctly.
14782 2005-11-22 Mike Small <smallm@panix.com>
14784 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
14785 debugging message before attempting to claim memory.
14786 (grub_rescue_cmd_initrd): Add a claim debugging message and try
14787 multiple addresses in case of failure.
14789 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
14791 * term/tparm.c (get_space): Remove empty `if' statement.
14793 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
14795 * kern/parser.c (check_varstate): Rename `state' to 's'.
14797 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
14799 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
14800 variable definitions to the beginning of each function. Sort stack
14802 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
14803 `buf' argument to `char *'.
14805 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
14807 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
14808 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
14809 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
14810 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
14811 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
14812 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
14813 configfile.mod, search.mod, gzio.mod and test.mod.
14814 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
14815 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
14816 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
14817 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
14818 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
14819 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
14820 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
14821 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
14822 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
14823 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
14824 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
14825 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
14826 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
14827 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
14828 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
14829 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
14830 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
14831 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
14832 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
14833 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
14834 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
14835 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
14836 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
14838 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
14840 (pkgdata_MODULES): Add test.mod.
14842 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
14844 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
14845 appending to variables with "+=".
14846 (PModule): Use full pathname to generate *.lst filenames.
14848 * Makefile.in: Fixed list rules moved from genmk.rb.
14849 (.DELETE_ON_ERROR): New special target.
14850 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
14852 * conf/i386-pc.rmk: Include conf/common.mk.
14853 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
14854 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
14855 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
14856 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
14857 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
14858 configfile.mod, search.mod, gzio.mod and test.mod.
14859 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
14860 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
14861 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
14862 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
14863 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
14864 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
14865 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
14866 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
14867 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
14868 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
14869 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
14870 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
14871 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
14872 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
14873 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
14874 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
14875 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
14876 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
14877 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
14878 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
14879 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
14880 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
14881 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
14883 * conf/common.rmk: ... to here. New file.
14885 * conf/common.mk: New file.
14887 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
14889 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
14890 (grub_script.tab.c): ... here.
14892 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
14893 (grub_script.tab.c): ... here.
14895 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
14896 (grub_script.tab.c): ... here.
14898 * normal/command.c (grub_command_find): Fixed a memory leak of
14899 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
14901 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
14903 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
14904 "@" which marks the start of a comment on ARM.
14905 (VARIABLE): Likewise.
14907 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
14909 Add support for Linux/ADFS partition tables.
14911 * partmap/acorn.c: New file.
14913 * include/grub/acorn_filecore.h: Likewise.
14915 * DISTLIST: Added `partmap/acorn.c' and
14916 `include/grub/acorn_filecore.h'.
14918 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
14920 (pkgdata_MODULES): Add `acorn.mod'.
14921 (acorn_mod_SOURCES): New variable.
14922 (acorn_mod_CFLAGS): Likewise.
14924 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
14926 (pkgdata_MODULES): Add `acorn.mod'.
14927 (acorn_mod_SOURCES): New variable.
14928 (acorn_mod_CFLAGS): Likewise.
14930 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
14931 (pkgdata_MODULES): Add `acorn.mod'.
14932 (acorn_mod_SOURCES): New variable.
14933 (acorn_mod_CFLAGS): Likewise.
14934 (acorn_mod_LDFLAGS): Likewise.
14936 * include/types.h (grub_disk_addr_t): New typedef.
14938 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
14940 * geninit.sh: New file.
14942 * geninitheader.sh: Likewise.
14944 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
14945 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
14946 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
14947 * commands/configfile.c (grub_configfile_init)
14948 (grub_configfile_fini): Likewise.
14949 * commands/default.c (grub_default_init, grub_default_fini):
14951 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
14952 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
14953 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
14954 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
14956 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
14957 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
14959 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
14960 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
14962 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
14964 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
14966 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
14967 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
14968 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
14969 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
14970 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
14971 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
14972 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
14973 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
14974 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
14975 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
14976 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
14977 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
14978 * partmap/amiga.c (grub_amiga_partition_map_init)
14979 (grub_amiga_partition_map_fini): Likewise.
14980 * partmap/apple.c (grub_apple_partition_map_init)
14981 (grub_apple_partition_map_fini): Likewise.
14982 * partmap/pc.c (grub_pc_partition_map_init)
14983 (grub_pc_partition_map_fini): Likewise.
14984 * partmap/sun.c (grub_sun_partition_map_init,
14985 grub_sun_partition_map_fini): Likewise.
14986 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
14989 * util/grub-emu.c: Include <grub_modules_init.h>.
14990 (main): Don't initialize and de-initialize any modules directly,
14991 use `grub_init_all' and `grub_fini_all' instead.
14993 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
14994 `grub_vesafb_mod_init'.
14995 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
14997 * term/i386/pc/vga.c (grub_vga_init): Renamed to
14998 `grub_vga_mod_init'. Updated all users.
14999 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
15001 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
15002 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
15005 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
15006 Generate a function to initialize the module in utilities.
15007 Updated all callers.
15008 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
15009 initialize the module in utilities. Updated all callers.
15011 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
15013 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
15014 escape sequence and a literal ^L to clear the screen.
15016 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
15017 when returning from Open Firmware.
15019 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
15021 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
15022 (grub_ofconsole_height): Likewise.
15023 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
15024 manually insert a '\n'.
15025 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
15026 `grub_ofconsole_height'. Return early if these are already set.
15028 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
15030 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
15031 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
15032 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
15033 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
15034 and `normal/script.c'.
15035 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
15036 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15037 (test_mod_SOURCES): New variable.
15038 (test_mod_CFLAGS): Likewise.
15039 (test_mod_LDFLAGS): Likewise.
15040 (pkgdata_MODULES): Add `test.mod'.
15041 (grub_script.tab.c): New rule.
15042 (grub_script.tab.h): Likewise.
15044 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
15046 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
15047 `commands/test.c', `normal/execute.c', `normal/lexer.c',
15048 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15049 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
15050 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15051 (test_mod_SOURCES): New variable.
15052 (test_mod_CFLAGS): Likewise.
15053 (pkgdata_MODULES): Add `test.mod'.
15054 (grub_script.tab.c): New rule.
15055 (grub_script.tab.h): Likewise.
15057 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
15059 Add initial scripting support.
15061 * commands/test.c: New file.
15062 * include/grub/script.h: Likewise.
15063 * normal/execute.c: Likewise.
15064 * normal/function.c: Likewise.
15065 * normal/lexer.c: Likewise.
15066 * normal/parser.y: Likewise.
15067 * normal/script.c: Likewise.
15069 * configure.ac: Add `AC_PROG_YACC' test.
15071 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
15072 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
15073 `normal/function.c' and `normal/script.c'.
15074 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
15075 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15076 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
15078 (pkgdata_MODULES): Add `test.mod'.
15079 (grub_script.tab.c): New rule.
15080 (grub_script.tab.h): Likewise.
15082 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
15084 * include/grub/normal.h (grub_test_init): New prototype.
15085 (grub_test_fini): Likewise.
15087 * normal/command.c: Include <grub/script.h>.
15088 (grub_command_execute): Rewritten.
15090 * util/grub-emu.c (main): Call `grub_test_init' and
15093 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
15095 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
15097 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
15098 there are no pending characters.
15100 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
15102 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
15103 `grub_strndup' to drop device arguments. Replace unnecessary
15104 `grub_strndup' with `grub_strdup'.
15106 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
15108 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
15109 `debug' environment variable has been set.
15111 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
15113 * Makefile.in (install-local): Use $(DATA).
15114 (uninstall): Likewise.
15115 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
15116 (sbin_UTILITIES): ... to here.
15117 (sbin_SCRIPTS): New variable.
15118 (grub_install_SOURCES): New variable.
15119 * util/powerpc/ieee1275/grub-install.in: New file.
15120 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
15122 (add_segments): Call `grub_util_get_path'.
15124 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
15126 From Timothy Baldwin:
15127 * commands/ls.c (grub_ls_list_files): Close FILE with
15129 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
15131 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
15133 * include/grub/parser.h: New file.
15135 * kern/parser.c: Likewise.
15137 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
15138 (grub_setup_SOURCES): Likewise.
15139 (grub_probefs_SOURCES): Likewise.
15140 (grub_emu_SOURCES): Likewise.
15141 (kernel_img_HEADERS): Add `parser.h'.
15143 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
15144 (grub_emu_SOURCES): Add `kern/parser.c'.
15145 (grubof_SOURCES): Likewise.
15147 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
15148 (grubof_SOURCES): Add `kern/parser.c'.
15150 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
15152 * kern/misc.c (grub_split_cmdline): Removed function.
15154 * kern/rescue.c: Include <grub/parser.h>.
15155 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
15156 of `grub_split_cmdline'.
15158 * normal/command.c: Include <grub/parser.h>.
15159 (grub_command_execute): Use `grub_parser_split_cmdline' instead
15160 of `grub_split_cmdline'.
15162 * normal/completion.c: Include <grub/parser.h>.
15163 (cmdline_state): New variable.
15164 (iterate_dir): End the filename with a quote depending on the
15165 command line state.
15166 (get_state): new function.
15167 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
15168 split the arguments and determine the current argument. When the
15169 argument string is not quoted, escape all spaces.
15171 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
15173 * normal/sparc64/setjmp.S: New file.
15175 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
15177 * include/grub/sparc64/libgcc.h: New file.
15178 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
15179 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
15180 normal/sparc64/setjmp.c.
15182 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
15184 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
15185 * kern/sparc64/cache.S: New file.
15186 * kern/sparc64/cache.c: Removed.
15187 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
15188 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
15190 (COMMON_LDFLAGS): Add -melf64_sparc.
15191 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
15192 (grubof_SOURCES): Use cache.S instead of cache.c.
15193 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
15194 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
15195 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
15197 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
15198 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
15199 (linux_mod_CFLAGS): Commented out.
15200 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
15201 out because module isn't built.
15202 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
15203 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
15204 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
15205 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
15206 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
15207 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
15208 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
15209 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
15210 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
15211 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
15212 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
15213 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
15214 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
15215 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
15217 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
15219 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
15220 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
15221 longer, because HFS should not be used on PC.
15223 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
15225 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
15226 consistently within the loop.
15228 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
15230 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
15231 directory can not be read.
15233 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
15235 * configure.ac (AC_INIT): Increase the version number to 1.91.
15237 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
15238 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
15239 term/i386/pc/serial.c.
15241 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
15243 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
15244 file size must be permitted.
15246 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
15247 between %ah and %al.
15249 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
15251 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
15253 Call the hook with a NUL-terminated filename.
15254 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
15257 * kern/term.c (cursor_state): New variable.
15258 (grub_term_set_current): Reset the cursor state on a new
15260 (grub_setcursor): Rewritten to use CURSOR_STATE.
15261 (grub_getcursor): New function.
15263 * include/grub/term.h (grub_getcursor): New prototype.
15265 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
15266 integers on ARM. Reported by Timothy Baldwin
15267 <T.E.Baldwin99@members.leeds.ac.uk>.
15269 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
15271 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
15273 (grub_sfs_dir): Likewise.
15275 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
15277 Add support for the SFS filesystem.
15279 * fs/sfs.c: New file.
15281 * DISTLIST: Added `fs/sfs.c'.
15283 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
15284 (grub_probefs_SOURCES): Likewise.
15285 (grub_emu_SOURCES): Likewise.
15286 (pkgdata_MODULES): Add `sfs.mod'.
15287 (sfs_mod_SOURCES): New variable.
15288 (sfs_mod_CFLAGS): Likewise.
15289 (sfs_mod_LDFLAGS): Likewise.
15291 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
15292 (pkgdata_MODULES): Add `sfs.mod'.
15293 (sfs_mod_SOURCES): New variable.
15294 (sfs_mod_CFLAGS): Likewise.
15296 * util/grub-emu.c (main): Call `grub_sfs_init' and
15299 * include/grub/fs.h (grub_sfs_init): New prototype.
15300 (grub_sfs_fini): Likewise.
15302 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
15304 Add support for the AFFS filesystem.
15306 * fs/affs.c: New file.
15308 * DISTLIST: Added `fs/affs.c'.
15310 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
15311 (grub_probefs_SOURCES): Likewise.
15312 (grub_emu_SOURCES): Likewise.
15313 (pkgdata_MODULES): Add `affs.mod'.
15314 (affs_mod_SOURCES): New variable.
15315 (affs_mod_CFLAGS): Likewise.
15316 (affs_mod_LDFLAGS): Likewise.
15318 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
15319 (pkgdata_MODULES): Add `affs.mod'.
15320 (affs_mod_SOURCES): New variable.
15321 (affs_mod_CFLAGS): Likewise.
15323 * util/grub-emu.c (main): Call `grub_affs_init' and
15326 * include/grub/fs.h (grub_affs_init): New prototype.
15327 (grub_affs_fini): Likewise.
15329 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
15331 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
15333 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
15335 * configure.ac: Accept `x86_64' as host_cpu. In that case add
15338 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
15341 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
15342 (COMMON_LDFLAGS): New variable.
15343 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
15344 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
15345 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
15346 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
15347 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
15348 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
15349 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
15350 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
15351 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
15352 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
15353 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
15354 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
15355 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
15356 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
15357 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
15359 (normal_mod_ASFLAGS): Add `-m32'.
15361 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
15362 (grub_host_size_t, grub_host_ssize_t): New types.
15363 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
15364 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
15365 `GRUB_HOST_SIZEOF_VOID_P'.
15367 * include/grub/kernel.h (struct grub_module_header): Type of
15368 member offset changed to `grub_host_off_t'. Type of member size
15369 changed to `grub_host_size_t'.
15370 (struct grub_module_info): Type of member offset changed to
15371 `grub_host_off_t'. Type of member size changed to
15372 `grub_host_size_t'.
15374 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
15376 Make GRUB's kernel compliant to Multiboot Specification.
15378 * kern/i386/pc/startup.S (multiboot_header): New label.
15379 (multiboot_entry): Likewise.
15380 (multiboot_trampoline): Likewise.
15382 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
15383 Increased to 0x4A0.
15385 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
15386 put parentheses after a question mark.
15387 [!GRUB_UTIL] (my_mod): New variable.
15389 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
15391 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
15393 Adds support for the XFS filesystem. Btrees are not supported
15396 * fs/xfs.c: New file.
15398 * DISTLIST: Added `fs/xfs.c'.
15400 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
15401 (grub_probefs_SOURCES): Likewise.
15402 (grub_emu_SOURCES): Likewise.
15403 (pkgdata_MODULES): Add `xfs.mod'.
15404 (xfs_mod_SOURCES): New variable.
15405 (xfs_mod_CFLAGS): Likewise.
15407 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
15408 (pkgdata_MODULES): Add `xfs.mod'.
15409 (xfs_mod_SOURCES): New variable.
15410 (xfs_mod_CFLAGS): Likewise.
15412 * util/grub-emu.c (main): Call `grub_xfs_init' and
15415 * include/grub/fs.h (grub_xfs_init): New prototype.
15416 (grub_xfs_fini): Likewise.
15419 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
15421 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
15422 color modes, allow greater than 16 colors to be configured as
15425 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
15427 * normal/completion.c (complete_arguments): Add the qualifier
15428 const into OPTIONS.
15430 From Omniflux <omniflux+lists@omniflux.com>:
15431 * include/grub/terminfo.h: New file.
15432 * include/grub/tparm.h: Likewise.
15433 * include/grub/i386/pc/serial.h: Likewise.
15434 * term/terminfo.c: Likewise.
15435 * term/tparm.c: Likewise.
15436 * term/i386/pc/serial.c: Likewise.
15437 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
15439 (terminfo_mod_SOURCES): New variable.
15440 (terminfo_mod_CFLAGS): Likewise.
15441 (serial_mod_SOURCES): Likewise.
15442 (serial_mod_CFLAGS): Likewise.
15444 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
15446 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
15447 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
15448 and kern/powerpc/ieee1275/cmain.c, respectively.
15450 * boot/powerpc/ieee1275/crt0.S: Moved to ...
15451 * kern/powerpc/ieee1275/crt0.S: ... here.
15453 * boot/powerpc/ieee1275/cmain.c: Moved to ...
15454 * kern/powerpc/ieee1275/cmain.c: ... here.
15456 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
15457 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
15458 instead of boot/powerpc/ieee1275/crt0.S and
15459 boot/powerpc/ieee1275/cmain.c, respectively.
15461 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
15462 sectors. It was not used anyway.
15464 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
15466 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
15467 `unused parameter' warning.
15469 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
15471 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
15473 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
15476 2005-08-28 Marco Gerards <metgerards@student.han.nl>
15478 * include/grub/normal.h (enum grub_completion_type): Added
15479 `GRUB_COMPLETION_TYPE_ARGUMENT'.
15481 * normal/cmdline.c (print_completion): Handle
15482 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
15483 * normal/menu_entry.c (store_completion): Likewise.
15485 * normal/completion.c (complete_arguments): New function.
15486 (grub_normal_do_completion): Call `complete_arguments' when the
15487 current words start with a dash.
15489 2005-08-27 Marco Gerards <metgerards@student.han.nl>
15491 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
15492 `gzio.mod' instead of `io.mod').
15494 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
15496 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
15497 (DISTDIRS): Added io and video.
15498 Rewrite the search routine to make an output consistently.
15500 * DISTLIST: Added conf/sparc64-ieee1275.mk,
15501 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
15502 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
15503 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
15504 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
15505 util/powerpc/ieee1275/misc.c.
15507 * include/grub/gzio.h: New file.
15508 * io/gzio.c: Likewise.
15510 * kern/file.c (grub_file_close): Call grub_device_close only if
15511 FILE->DEVICE is not NULL.
15513 * include/grub/mm.h [!NULL] (NULL): New macro.
15515 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
15517 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
15518 (pkgdata_MODULES): Added gzio.mod.
15519 (gzio_mod_SOURCES): New variable.
15520 (gzio_mod_CFLAGS): Likewise.
15522 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
15523 (pkgdata_MODULES): Added gzio.mod.
15524 (gzio_mod_SOURCES): New variable.
15525 (gzio_mod_CFLAGS): Likewise.
15527 * commands/cat.c: Include grub/gzio.h.
15528 (grub_cmd_cat): Use grub_gzfile_open instead of
15531 * commands/cmp.c: Include grub/gzio.h.
15532 (grub_cmd_cmp): Use grub_gzfile_open instead of
15535 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
15536 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
15538 (grub_rescue_cmd_module): Likewise.
15540 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
15542 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
15543 kern/sparc64/ieee1275/init.c because it contains _start.
15544 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
15546 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
15548 * configure.ac: Add support for sparc64 host with ieee1275
15550 * configure: Generated from configure.ac.
15551 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
15553 (grub_ofdisk_read): Likewise.
15554 (grub_ofdisk_open): Use %p to print pointer values, and cast the
15555 pointers as (void *) to remove a warning.
15556 (grub_ofdisk_close): Likewise.
15557 (grub_ofdisk_read): Likewise.
15558 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
15559 returns, so make it return void to remove a warning.
15560 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
15561 Corresponding prototype change.
15562 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
15563 values, and cast the pointers as (void *) to remove a warning.
15564 (grub_mm_dump): Likewise.
15565 * conf/sparc64-ieee1275.mk: New file.
15566 * conf/sparc64-ieee1275.rmk: Likewise.
15567 * include/grub/sparc64/setjmp.h: Likewise.
15568 * include/grub/sparc64/types.h: Likewise.
15569 * include/grub/sparc64/ieee1275/console.h: Likewise.
15570 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
15571 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
15572 * include/grub/sparc64/ieee1275/time.h: Likewise.
15573 * kern/sparc64/cache.c: Likewise.
15574 * kern/sparc64/dl.c: Likewise.
15575 * kern/sparc64/ieee1275/init.c: Likewise.
15576 * kern/sparc64/ieee1275/openfw.c: Likewise.
15578 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
15580 * util/console.c (grub_ncurses_putchar): If C is greater than
15581 0x7f, set C to a question mark.
15582 (grub_ncurses_getcharwidth): New function.
15583 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
15586 * normal/menu.c (print_entry): Made aware of Unicode. First,
15587 convert TITLE to UCS-4, and predict the cursor position by
15590 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
15592 * kern/misc.c (grub_utf16_to_utf8): Likewise.
15594 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
15596 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
15597 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
15600 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
15601 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
15602 grub_strcpy and grub_strlen. Take it into account that a space
15603 character is inserted as a delimiter.
15605 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
15607 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
15608 invalid magic in the error.
15610 * commands/search.c: New file.
15612 * util/grub-emu.c (main): Call grub_search_init and
15615 * kern/rescue.c (grub_rescue_print_disks): Removed.
15616 (grub_rescue_print_devices): New function.
15617 (grub_rescue_cmd_ls): Use grub_device_iterate with
15618 grub_rescue_print_devices instead of grub_disk_dev_iterate with
15619 grub_rescue_print_disks.
15621 * kern/partition.c (grub_partition_iterate): Return the result of
15622 PARTMAP->ITERATE instead of GRUB_ERRNO.
15624 * kern/device.c: Include grub/partition.h.
15625 (grub_device_iterate): New function.
15627 * include/grub/partition.h (grub_partition_iterate): Return int
15628 instead of grub_err_t.
15630 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
15632 [GRUB_UTIL] (grub_search_fini): Likewise.
15634 * include/grub/device.h (grub_device_iterate): New prototype.
15636 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
15638 (pkgdata_MODULES): Added search.mod.
15639 (search_mod_SOURCES): New variable.
15640 (search_mod_CFLAGS): Likewise.
15642 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
15643 (pkgdata_MODULES): Added search.mod.
15644 (search_mod_SOURCES): New variable.
15645 (search_mod_CFLAGS): Likewise.
15647 * commands/ls.c (grub_ls_list_disks): Renamed to ...
15648 (grub_ls_list_devices): ... this, and use grub_device_iterate.
15649 All callers changed.
15651 * DISTLIST: Added commands/search.c.
15653 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
15655 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
15657 (grub_getcharwidth): New function.
15659 * kern/misc.c (grub_utf8_to_ucs4): New function.
15661 * include/grub/term.h (struct grub_term): Added a new member
15663 (grub_getcharwidth): New prototype.
15665 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
15667 * term/i386/pc/console.c (map_char): New function. Segregated from
15668 grub_console_putchar.
15669 (grub_console_putchar): Use map_char.
15670 (grub_console_getcharwidth): New function.
15671 (grub_console_term): Specified grub_console_getcharwidth as
15674 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
15675 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
15677 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
15679 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
15680 on grub_strtoul completely.
15681 (write_char): Declare local variables in the beginning of the
15683 (grub_vesafb_getcharwidth): New function.
15684 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
15687 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
15689 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
15690 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
15691 commands/i386/pc/vbetest.c.
15693 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
15694 call grub_vbe_get_controller_info again, because the returned
15695 information is volatile.
15696 (grub_vbe_set_video_mode): Mostly rewritten.
15697 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
15698 grub_vbe_status_t correctly.
15699 (grub_vbe_get_video_mode_info): Likewise.
15700 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
15701 several if statements.
15703 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
15704 * commands/i386/pc/vbeinfo.c: ... this.
15706 * commands/i386/pc/vbe_test.c: Renamed to ...
15707 * commands/i386/pc/vbetest.c: ... this.
15709 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
15711 (grub_cmd_vbeinfo): ... this. Save video modes before
15712 iterating. Skip a video mode, if it is not available, not enough
15713 information is given or it is monochrome. Show the memory
15714 model. Leave the interpretation of MODEVAR to grub_strtoul
15716 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
15717 (GRUB_MOD_FINI): Likewise.
15719 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
15720 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
15721 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
15722 duplicated grub_env_get. Leave the interpretation of MODEVAR to
15723 grub_strtoul completely.
15724 (real2pm): Removed.
15725 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
15726 (GRUB_MOD_FINI): Likewise.
15728 * normal/misc.c: Include grub/mm.h.
15730 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
15731 vbe_list_modes with vbetest.mod and vbeinfo.mod.
15732 (vbe_list_modes_mod_SOURCES): Removed.
15733 (vbe_list_modes_mod_CFLAGS): Likewise.
15734 (vbe_test_mod_SOURCES): Likewise.
15735 (vbe_test_mod_CFLAGS): Likewise.
15736 (vbeinfo_mod_SOURCES): New variable.
15737 (vbeinfo_mod_CFLAGS): Likewise.
15738 (vbetest_mod_SOURCES): Likewise.
15739 (vbetest_mod_CFLAGS): Likewise.
15741 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
15743 * normal/misc.c: New file.
15745 * DISTLIST: Added normal/misc.c.
15747 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
15748 DISK to HOOK. Call HOOK with DISK.
15749 * partmap/apple.c (apple_partition_map_iterate): Likewise.
15750 * partmap/pc.c (pc_partition_map_iterate): Likewise.
15751 * partmap/sun.c (sun_partition_map_iterate): Likewise.
15753 * normal/menu_entry.c (struct screen): Added a new member
15754 "completion_shown".
15755 (completion_buffer): New global variable.
15756 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
15757 (store_completion): New function.
15758 (complete): Likewise.
15759 (clear_completions): Likewise.
15760 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
15761 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
15762 a tab, call complete.
15764 * normal/completion.c (disk_dev): Removed.
15765 (print_simple_completion): Likewise.
15766 (print_partition_completion): Likewise.
15767 (print_func): New global variable.
15768 (add_completion): Do not take the arguments WHAT or PRINT any
15769 longer. Added a new argument TYPE. Instead of printing directly,
15770 call PRINT_FUNC if not NULL.
15771 All callers changed.
15772 (complete_device): Use a local variable DEV instead of
15773 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
15774 (grub_normal_do_completion): Take a new argument HOOK. Do not
15775 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
15776 empty string, return NULL instead.
15777 All callers changed.
15779 * normal/cmdline.c (print_completion): New function.
15781 * kern/partition.c (grub_partition_iterate): Add an argument DISK
15783 All callers changed.
15785 * kern/disk.c (grub_print_partinfo): Removed.
15787 * include/grub/partition.h (struct grub_partition_map): Add a new
15788 argument DISK into HOOK of ITERATE.
15789 (grub_partition_iterate): Add a new argument DISK to HOOK.
15791 * include/grub/normal.h (enum grub_completion_type): New enum.
15792 (grub_completion_type_t): New type.
15793 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
15794 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
15795 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
15796 (GRUB_COMPLETION_TYPE_FILE): Likewise.
15797 (grub_normal_do_completion): Added a new argument HOOK.
15798 (grub_normal_print_device_info): New prototype.
15800 * include/grub/disk.h (grub_print_partinfo): Removed.
15802 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
15803 (normal_mod_SOURCES): Likewise.
15804 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15805 (normal_mod_SOURCES): Likewise.
15807 * commands/ls.c (grub_ls_list_disks): Use
15808 grub_normal_print_device_info instead of grub_print_partinfo. Free
15810 (grub_ls_list_files): Use grub_normal_print_device_info instead of
15811 duplicating the code.
15813 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
15815 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
15816 follow GCS more precisely.
15817 * commands/i386/pc/vbe_test.c: Likewise.
15818 * include/grub/i386/pc/vbe.h: Likewise.
15819 * term/i386/pc/vesafb.c: Likewise.
15820 * video/i386/pc/vbe.c: Likewise.
15822 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
15824 * DISTLIST: Added term/i386/pc/vesafb.c
15825 DISTLIST: Added video/i386/pc/vbe.c
15826 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
15827 DISTLIST: Added commands/i386/pc/vbe_test.c.
15828 * commands/i386/pc/vbe_list_modes.c: New file.
15829 * commands/i386/pc/vbe_test.c: Likewise.
15830 * term/i386/pc/vesafb.c: Likewise.
15831 * video/i386/pc/vbe.c: Likewise.
15832 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
15833 (grub_vbe_probe) Added prototype.
15834 (grub_vbe_set_video_mode) Likewise.
15835 (grub_vbe_get_video_mode) Likewise.
15836 (grub_vbe_get_video_mode_info) Likewise.
15837 (grub_vbe_set_pixel_rgb) Likewise.
15838 (grub_vbe_set_pixel_index) Likewise.
15839 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
15840 (pkgdata_MODULES): Added vesafb.mod.
15841 (pkgdata_MODULES): Added vbe_list_modes.mod.
15842 (pkgdata_MODULES): Added vbe_test.mod.
15843 (vbe_mod_SOURCES): Added.
15844 (vbe_mod_CFLAGS): Likewise.
15845 (vesafb_mod_SOURCES): Likewise.
15846 (vesafb_mod_CFLAGS): Likewise.
15847 (vbe_list_modes_mod_SOURCES): Likewise.
15848 (vbe_list_modes_mod_CFLAGS): Likewise.
15849 (vbe_test_mod_SOURCES): Likewise.
15850 (vbe_test_mod_CFLAGS): Likewise.
15852 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
15854 * normal/command.c (grub_command_execute): If INTERACTIVE is
15855 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
15856 CMDLINE. Disable the pager if INTERACTIVE is true.
15857 All callers are changed.
15859 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
15860 before reading a config file.
15861 * normal/main.c (read_config_file): Even if a command is not
15862 found, register it if it is within an entry.
15864 * util/grub-emu.c: Include sys/types.h and unistd.h.
15865 (options): Added --hold.
15866 (struct arguments): Added a new member "hold".
15867 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
15869 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
15870 cleared by a debugger, if it is not zero.
15872 * include/grub/normal.h (grub_command_execute): Add an argument
15875 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
15877 * DISTLIST: Added include/grub/i386/pc/vbe.h.
15879 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
15881 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
15882 program with another one, because the old one didn't detect a bug
15883 in gcc-3.4. Always use regparm 2, because the new test is still
15884 not enough for gcc-4.0. Someone must investigate a simple test
15885 case which detects a bug in gcc-4.0.
15887 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
15889 * DISTLIST: Added normal/completion.c.
15891 * normal/completion.c: New file.
15893 * term/i386/pc/console.c (grub_console_getwh): New function.
15894 (grub_console_term): Assign grub_console_getwh to getwh.
15896 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
15897 function is defined in normal/completion.c as
15898 grub_normal_do_completion.
15899 (grub_cmdline_get): Use grub_normal_do_completion instead of
15902 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
15903 returns non-zero, otherwise return 0.
15904 (grub_partition_iterate): First, probe the partition map. Then,
15905 call ITERATE only for this partition map.
15907 * kern/misc.c (grub_strncmp): Rewritten.
15909 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
15910 returns non-zero. Otherwise return 0.
15912 * include/grub/partition.h (grub_partition_map_iterate): Return
15913 int instead of void.
15915 * include/grub/normal.h (grub_normal_do_completion): New prototype.
15917 * include/grub/misc.h (grub_strncmp): Change the type of N to
15920 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
15923 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
15924 unsigned explicitly before comparing it with I.
15926 * kern/main.c (grub_env_write_root): Add the attribute unused into
15929 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
15930 normal/completion.c.
15931 (normal_mod_SOURCES): Likewise.
15932 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15933 (normal_mod_SOURCES): Likewise.
15935 * normal/command.c (grub_iterate_commands): If ITERATE returns
15936 non-zero, return one immediately.
15938 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
15940 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
15941 * kern/i386/pc/startup.S: Updated Global Descriptor table's
15943 (grub_vbe_get_controller_info): New function.
15944 (grub_vbe_get_mode_info): Likewise.
15945 (grub_vbe_set_mode): Likewise.
15946 (grub_vbe_get_mode): Likewise.
15947 (grub_vbe_set_memory_window): Likewise.
15948 (grub_vbe_get_memory_window): Likewise.
15949 (grub_vbe_set_scanline_length): Likewise.
15950 (grub_vbe_get_scanline_length): Likewise.
15951 (grub_vbe_set_display_start): Likewise.
15952 (grub_vbe_get_display_start): Likewise.
15953 (grub_vbe_set_palette_data): Likewise.
15954 * include/grub/i386/pc/vbe.h: New file.
15956 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
15958 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
15959 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
15960 * DISTLIST: Likewise.
15961 * kern/ieee1275/of.c: Moved to ...
15962 * kern/ieee1275/ieee1275.c: ... here.
15964 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
15966 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
15967 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
15968 Pass 0 as `end' parameter to grub_strtoul().
15970 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
15972 * include/grub/powerpc/ieee1275/console.h: Do not include
15973 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
15975 (grub_console_cur_color): Remove i386-specific prototype.
15976 (grub_console_real_putchar): Likewise.
15977 (grub_console_checkkey): Likewise.
15978 (grub_console_getkey): Likewise.
15979 (grub_console_getxy): Likewise.
15980 (grub_console_gotoxy): Likewise.
15981 (grub_console_cls): Likewise.
15982 (grub_console_setcursor): Likewise.
15983 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
15984 Include <grub/machine/console.h>.
15985 * term/ieee1275/ofconsole.c: Likewise.
15987 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
15989 * Makefile.in (LIBLZO): New variable.
15991 * configure.ac: Check for LZO version 2.
15993 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
15994 lzo/lzo1x.h instead of lzo1x.h.
15996 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
15999 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
16000 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
16002 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
16003 copying the data from PARTITION to P.
16005 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
16007 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
16008 negative, unload the module.
16010 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
16011 map is "pc_partition_map" but not "pc".
16012 (usage): Fix the description. The options are --boot-image and
16013 --core-image but not --boot-file or --core-file.
16014 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
16015 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
16018 * util/i386/pc/grub-install.in: Do not specify --boot-file or
16019 --core-file. Specify INSTALL_DEVICE as an argument.
16021 * util/console.c: Include config.h.
16022 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
16023 [HAVE_NCURSES_H]: Include ncurses.h.
16024 [HAVE_CURSES_H]: Include curses.h.
16025 [!A_NORMAL] (A_NORMAL): Defined as zero.
16026 [!A_STANDOUT] (A_STANDOUT): Likewise.
16028 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
16030 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
16032 * configure.ac: Check for curses libraries and headers.
16034 * Makefile.in (LIBCURSES): New variable.
16036 * genmk.rb (Script::rule): Set the executable bits.
16038 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
16039 name of the PC partition map is "pc_partition_map" but not "pc".
16041 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
16043 * util/i386/pc/grub-install.in (grub_probefs): New variable.
16044 (modules): Likewise.
16045 (usage): Added descriptions for --modules and --grub-probefs.
16046 Handle --modules and --grub-probefs. Save the arguments in MODULES
16047 and GRUB_PROBEFS, respectively.
16048 Auto-detect a filesystem module against GRUBDIR. If the result is
16049 empty and modules are not specified explicitly, abort the
16050 installation. Add the result to MODULES.
16052 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
16053 disk/powerpc/ieee1275/ofdisk.c,
16054 include/grub/powerpc/ieee1275/init.h and
16055 term/powerpc/ieee1275/ofconsole.c.
16056 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
16057 term/ieee1275/ofconsole.c.
16059 * include/grub/powerpc/ieee1275/console.h: Resurrected.
16061 * COPYING: Upgraded to the latest version. Only the address of the
16062 FSF office has changed.
16064 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
16066 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
16067 kern/ieee1275.c with kern/ieee1275/of.c.
16069 * kern/ieee1275.c: Moved to ...
16070 * kern/ieee1275/of.c: ... here.
16072 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
16074 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
16077 * config.guess: Updated to the latest version from gnulib.
16078 * config.sub: Likewise.
16079 * install.sh: Likewise.
16080 * mkinstalldirs: Likewise.
16082 * include/grub/console.h: Removed. This file is arch-specific. Do
16083 not put this in include/grub.
16085 * include/grub/i386/pc/console.h: Resurrected.
16087 * util/console.c: Include grub/machine/console.h instead of
16089 * util/grub-emu.c: Likewise.
16091 2005-08-04 Marco Gerards <metgerards@student.han.nl>
16093 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
16096 From Vincent Pelletier <subdino2004@yahoo.fr>
16097 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
16098 Redefined to use grub_getwh.
16099 (grub_term): New member named getwh.
16100 (grub_getwh): New prototype.
16101 * kern/term.c (grub_getwh): New function.
16102 * term/i386/pc/console.c (grub_console_getwh): New function.
16103 (grub_console_term): New member `getwh'.
16104 * term/i386/pc/vga.c (grub_vga_getwh): New function.
16105 (grub_vga_term): New member `getwh'.
16106 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
16108 (grub_ofconsole_getw): New function.
16109 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
16110 (grub_ofconsole_term): New field named getwh and new initial
16113 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
16115 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
16116 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
16117 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
16118 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
16119 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
16120 of <grub/machine/ieee1275.h>.
16121 * commands/ieee1275/reboot.c: Likewise.
16122 * boot/powerpc/ieee1275/ieee1275.c: Move ...
16123 * kern/ieee1275.c: ... to here. All users updated. Change all
16124 parameter structs to use new type `grub_ieee1275_cell_t'.
16125 * term/powerpc/ieee1275/ofconsole.c: Move ...
16126 * term/ieee1275/ofconsole.c: ... to here. All users updated.
16127 * disk/powerpc/ieee1275/ofdisk.c: Move ...
16128 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
16129 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
16131 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
16132 Remove unused prototypes. All users updated.
16133 * include/grub/powerpc/ieee1275/console.h: Removed.
16134 * include/grub/powerpc/ieee1275/ieee1275.h: Define
16135 `grub_ieee1275_cell_t'.
16136 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
16137 Cast comparisons with -1 to the correct type.
16138 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
16139 type to match `grub_ieee1275_entry_fn'.
16141 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
16143 * DISTLIST: Added util/i386/pc/grub-probefs.c.
16145 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
16146 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
16148 (grub_probefs_SOURCES): New variable.
16150 * util/i386/pc/grub-probefs.c: New file.
16152 * util/i386/pc/grub-setup.c (main): Call
16153 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
16154 grub_hfs_init and grub_jfs_init to initialize the system. Call
16155 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
16156 grub_pc_partition_map_fini to finish the system.
16158 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
16160 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
16162 (grub_multiboot_load_elf32): Likewise.
16163 (grub_multiboot_is_elf64): Likewise.
16164 (grub_multiboot_load_elf64): Likewise.
16165 (grub_multiboot_load_elf): Likewise.
16166 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
16167 an ELF32 or ELF64 file.
16168 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
16170 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
16171 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
16172 NULL before calling FS->LABEL.
16173 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
16174 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
16175 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
16176 before calling FS->LABEL.
16178 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
16180 * util/i386/pc/grub-install.in (datadir): New variable.
16182 (pkgdatadir): New variable.
16183 (pkglibdir): Removed.
16185 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
16187 * DISTLIST: Added util/i386/pc/grub-install.in.
16189 * util/i386/pc/grub-install.in: New file.
16191 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
16192 (grub_install_SOURCES): Likewise.
16194 * genmk.rb: Added support for scripts.
16195 (Script): New class.
16196 (scripts): New variable.
16198 * Makefile.in (install-local): Install sbin_SCRIPTS by
16200 (uninstall): Remove sbin_SCRIPTS.
16202 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
16203 device, try to get a GRUB device by
16204 grub_util_biosdisk_get_grub_dev.
16207 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
16208 description for --device-map.
16210 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
16212 Change the semantics of variable hooks. They now return strings
16213 instead of error values.
16215 * util/i386/pc/grub-setup.c: Include grub/env.h.
16216 (setup): Use grub_device_set_root instead of grub_env_set.
16218 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
16219 grub_env_get instead of grub_device_set_root and
16220 grub_device_get_root, respectively.
16222 * kern/main.c (grub_env_write_root): New function.
16223 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
16224 grub_env_set instead of grub_device_set_root.
16226 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
16228 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
16229 rather than calling ENV->WRITE_HOOK afterwards.
16230 (grub_env_get): Return the result of ENV->READ_HOOK rather than
16231 passing a pointer of a pointer.
16232 (grub_register_variable_hook): Change the types of "read_hook" and
16233 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
16235 Allocate the default empty string on the heap, because this string
16236 may be freed later.
16238 * kern/device.c: Include grub/env.h.
16239 (grub_device_set_root): Removed.
16240 (grub_device_get_root): Likewise.
16241 (grub_device_open): Use grub_env_get instead of
16242 grub_device_get_root.
16244 * include/grub/env.h (grub_env_read_hook_t): New type.
16245 (grub_env_write_hook_t): Likewise.
16246 (grub_env_var): Change the types of "read_hook" and "write_hook"
16247 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
16248 (grub_register_variable_hook): Likewise.
16250 * include/grub/device.h (grub_device_set_root): Removed.
16251 (grub_device_set_root): Likewise.
16253 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
16254 make sure that DIRNAME terminates with '/', so that
16255 grub_fat_find_dir will fail if PATH is not a directory.
16257 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
16259 Use the qualifier auto for print_files and print_files_long.
16260 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
16262 Put a newline only if there is no error.
16263 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
16266 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
16268 * kern/partition.c (grub_partition_probe): Initialize PART to
16269 NULL. Otherwise, when no partition map is registered, this returns
16272 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
16274 * partmap/apple.c (apple_partition_map_iterate): Check if POS
16275 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
16278 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
16280 * commands/ls.c (grub_ls_list_disks): Print the filesystem
16281 information on each device, if it does not have partitions. Print
16282 "Device" instead of "Disk", because this function is not specific
16285 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
16286 static to ensure that it is put on the memory rather than a
16289 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
16291 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
16292 (grub_cat_init): Likewise.
16293 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
16294 (options): Likewise.
16295 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
16296 (grub_configfile_init): Likewise.
16297 * font/manager.c (GRUB_MOD_INIT): Likewise.
16298 * commands/help.c (GRUB_MOD_INIT): Likewise.
16299 (grub_help_init): Likewise.
16300 * normal/command.c (grub_command_init): Likewise.
16301 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
16302 * disk/loopback.c (grub_loop_init): Likewise.
16303 (GRUB_MOD_INIT): Likewise.
16304 * commands/ls.c (grub_ls_init): Likewise.
16305 (GRUB_MOD_INIT): Likewise.
16306 (options): Likewise.
16307 * commands/boot.c (grub_boot_init): Likewise.
16308 (GRUB_MOD_INIT): Likewise.
16309 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
16310 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
16311 (GRUB_MOD_INIT): Likewise.
16312 * commands/cmp.c (grub_cmp_init): Likewise.
16313 (GRUB_MOD_INIT): Likewise.
16315 * normal/arg.c: Use <> instead of "" to include header files.
16316 (SHORT_ARG_HELP): New macro.
16317 (SHORT_ARG_USAGE): Likewise.
16318 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
16319 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
16321 (find_short): Check if C is 'h' or 'u' explicitly.
16322 (grub_arg_show_help): Use space characters instead of tabs. Treat
16323 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
16324 are shown with --help and --usage only if they are not used for
16325 the command itself.
16326 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
16329 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
16330 const into "longarg". Change the type of "shortarg" to int.
16332 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
16334 * boot/i386/pc/boot.S (boot_drive_check): New label.
16336 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
16339 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
16340 which do not pass a boot drive correctly. Copied from GRUB Legacy.
16342 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
16344 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
16345 When turning off Gate A20, skip the check and return immediately,
16346 because this is not fatal usually.
16348 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
16350 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
16351 be 0x7C00 instead of 0x8000.
16353 * boot/i386/pc/pxeboot.S: Rewritten.
16355 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
16357 (gate_a20_check_state): Read a byte from 0x108000. Invert the
16360 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
16362 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
16363 robustness. This routine now supports a BIOS call and System
16364 Control Port A to modify the gate A20.
16366 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16367 Increased to 0x440.
16369 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
16371 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
16372 device path and resulting ihandle.
16373 (grub_ofdisk_close): dprintf the ihandle being closed.
16374 (grub_ofdisk_read): dprintf function parameters.
16375 * kern/mm.c (grub_mm_init_region): Likewise.
16376 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
16377 (grub_linux_boot): dprintf the Linux entry point, initrd address and
16378 size, and boot arguments.
16379 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
16380 before loading into memory.
16381 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
16382 before loading into memory.
16384 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
16386 * kern/mm.c: Added much documentation.
16387 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
16388 8, set to 5 instead of 8.
16390 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
16392 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
16394 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
16395 (grub_mkdevicemap_SOURCES): New variable.
16397 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
16398 lib/device.c of GRUB Legacy.
16400 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
16402 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
16403 instead of PATH is NULL.
16405 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
16407 * commands/cmp.c (BUFFER_SIZE): New macro.
16408 (grub_cmd_cmp): Close the right file at the right time. Compare
16409 only data just read. Don't report files of different size as
16410 identical. Dynamically allocate buffers. Move variable
16411 declarations at the beginning of function.
16413 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
16415 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
16418 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
16420 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
16421 when backspace is pressed at beginning of line.
16423 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
16425 * DISTLIST: Added genfslist.sh.
16427 * normal/main.c (fs_module_list): New variable.
16428 (autoload_fs_module): New function.
16429 (read_fs_list): Likewise.
16430 (grub_normal_execute): Call read_fs_list.
16432 * kern/fs.c (grub_fs_autoload_hook): New variable.
16433 (grub_fs_probe): Added support for auto-loading.
16435 * include/grub/normal.h (struct grub_fs_module_list): New struct.
16436 (grub_fs_module_list_t): New type.
16438 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
16439 (grub_fs_autoload_hook): New prototype.
16441 * genfslist.sh: New file.
16443 * genmk.rb: Added a rule to generate a filesystem list.
16445 2005-06-30 Marco Gerards <metgerards@student.han.nl>
16447 * configure.ac: Fix the test for cross-compiling.
16449 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
16450 define GRUB_UTIL anymore.
16452 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
16453 so this function works on other systems than just big endian.
16454 (load_modules): Likewise.
16455 (add_segments): Likewise.
16457 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
16459 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
16460 contains `l' modifier, get a long from va_arg().
16462 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
16464 * kern/mm.c (grub_free): If the next free block which is being
16465 merged is the first free block, set the first block to the block
16467 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
16469 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
16471 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
16472 `grub_ieee1275_chosen'.
16474 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
16476 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
16477 (grub_ieee1275_chosen): New variable.
16478 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
16480 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
16481 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
16482 Rename first argument to `phandle' for consistency.
16483 (grub_ieee1275_get_property_length): Likewise.
16484 (grub_ieee1275_next_property): Likewise. Change type of first argument
16485 to grub_ieee1275_phandle_t.
16486 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
16487 Move export next to declaration.
16488 (grub_ieee1275_chosen): New variable.
16489 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
16490 Correct cosmetic typo.
16491 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
16492 `grub_ieee1275_chosen'.
16493 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
16494 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
16495 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
16496 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
16497 `grub_ieee1275_chosen'.
16499 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
16501 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
16503 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
16504 /chosen/bootargs as "variable=value" pairs.
16506 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
16508 * include/grub/misc.h (grub_dprintf): New macro.
16509 (grub_real_dprintf): New prototype.
16510 (grub_strword): Likewise.
16511 (grub_iswordseparator): Likewise.
16512 * kern/misc.c (grub_real_dprintf): New function.
16513 (grub_strword): Likewise.
16514 (grub_iswordseparator): Likewise.
16516 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
16518 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
16519 (roundup): Remove macro.
16520 (grub_ieee1275_flags): Make static.
16521 (grub_ieee1275_realmode): Remove.
16522 (grub_ieee1275_test_flag): New function.
16523 (grub_ieee1275_set_flag): Likewise.
16524 (find_options): Rename to `grub_ieee1275_find_options'; update
16525 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
16526 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
16527 (cmain): New prototype.
16528 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
16529 `grub_ieee1275_flags' directly.
16530 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
16531 machine/biosdisk.h.
16532 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
16533 Don't include grub/machine/init.h.
16534 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
16535 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
16537 (grub_ieee1275_realmode): Likewise.
16538 (grub_ieee1275_flag): New enum.
16539 (grub_ieee1275_test_flag): New prototype.
16540 (grub_ieee1275_set_flag): New prototype.
16541 * include/grub/powerpc/ieee1275/init.h: Remove file.
16542 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
16543 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
16544 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
16545 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
16547 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
16548 `grub_ieee1275_test_flag'.
16549 (grub_ieee1275_encode_devname): Likewise.
16551 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
16553 * include/grub/powerpc/ieee1275/ieee1275.h
16554 (grub_ieee1275_encode_devname): New prototype.
16555 (grub_ieee1275_get_filename): Likewise.
16556 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
16558 (grub_set_prefix): Likewise.
16559 (grub_machine_init): Call grub_set_prefix.
16560 * kern/powerpc/ieee1275/openfw.c: Fix typos.
16561 (grub_parse_type): New enum.
16562 (grub_ieee1275_get_devargs): New function.
16563 (grub_ieee1275_get_devname): Likewise.
16564 (grub_ieee1275_parse_args): Likewise.
16565 (grub_ieee1275_get_filename): Likewise.
16566 (grub_ieee1275_encode_devname): Likewise.
16568 2005-03-30 Marco Gerards <metgerards@student.han.nl>
16570 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
16571 `grub_loader_unset'.
16573 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
16575 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
16576 instead of grub_ieee1275_interpret.
16577 (grub_halt_init): New function.
16578 (grub_halt_fini): Likewise.
16579 (GRUB_MOD_INIT): Correct message grammar.
16580 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
16581 instead of grub_ieee1275_interpret.
16582 (grub_reboot_init): New function.
16583 (grub_reboot_fini): Likewise.
16584 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
16585 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
16586 util/i386/pc/misc.c with commands/ieee1275/halt.c,
16587 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
16588 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
16590 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
16592 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
16594 (grub_halt): Likewise.
16595 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
16596 (cmain): Remove __attribute__((unused)).
16597 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
16598 (grub_heap_len): Likewise.
16599 (grub_machine_fini): New function.
16600 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
16601 (grub_halt): Likewise.
16602 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
16604 * util/powerpc/ieee1275/misc.c: New file.
16606 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
16608 * DISTLIST: New file.
16609 * gendistlist.sh: Likewise.
16611 * Makefile.in (COMMON_DISTFILES): Removed.
16612 (BOOT_DISTFILES): Likewise.
16613 (CONF_DISTFILES): Likewise.
16614 (DISK_DISTFILES): Likewise.
16615 (FS_DISTFILES): Likewise.
16616 (INCLUDE_DISTFILES): Likewise.
16617 (KERN_DISTFILES): Likewise.
16618 (LOADER_DISTFILES): Likewise.
16619 (TERM_DISTFILES): Likewise.
16620 (UTIL_DISTFILES): Likewise.
16621 (DISTFILES): Likewise.
16622 (uninstall): Uninstall files in $(pkgdata_DATA).
16623 (DISTLIST): New target.
16624 (distdir): Use the contents of the file DISTLIST to get a list of
16627 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
16629 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
16630 descriptor. This is ported from GRUB Legacy.
16632 * gencmdlist.sh: Added an extra semicolon to make it work with
16633 old sed versions. Reported by Robert Bihlmeyer
16634 <robbe@orcus.priv.at>.
16636 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
16638 Automatic loading of commands is supported.
16640 * normal/main.c (read_command_list): New function.
16641 (grub_normal_execute): Call read_command_list.
16643 * normal/command.c (grub_register_command): Return zero or CMD.
16644 Allocate CMD->NAME from the heap.
16645 Initialize CMD->MODULE_NAME to zero.
16646 Find the same name as well. If the same command is found and it is
16647 a dummy command, overwrite members. If it is not a dummy command,
16649 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
16650 (grub_command_find): If a dummy command is found, load a module
16651 and retry to find a command only once.
16653 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
16654 make sure that each command is loaded.
16656 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
16658 (struct grub_command): Remove const from the member `name'.
16659 Add a new member `module_name'.
16660 (grub_register_command): Return grub_command_t.
16662 * commands/help.c (grub_cmd_help): Call grub_command_find to make
16663 sure that each command is loaded.
16665 * genmk.rb (PModule::rule): Specify a module name without the
16666 suffix ".mod" to gencmdlist.sh.
16668 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
16670 * gencmdlist.sh: New file.
16672 * genmk.rb (PModule::rule): Generate a rule for a command list.
16674 Generate command.lst from $(COMMANDFILES).
16676 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
16677 (DATA): Added $(pkgdata_DATA).
16678 (install-local): Install files in $(pkgdata_DATA).
16680 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
16682 * term/i386/pc/vga.c (debug_command): Removed.
16683 (GRUB_MOD_INIT): Do not register the command "debug".
16685 From Hollis Blanchard:
16686 * commands/configfile.c: New file.
16687 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
16688 commands/configfile.c.
16689 (pkgdata_MODULES): Added configfile.mod.
16690 (configfile_mod_SOURCES): New variable.
16691 (configfile_mod_CFLAGS): Likewise.
16692 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
16693 commands/configfile.c.
16694 (pkgdata_MODULES): Added configfile.mod.
16695 (configfile_mod_SOURCES): New variable.
16696 (configfile_mod_CFLAGS): Likewise.
16697 * util/grub-emu.c (main): Call grub_configfile_init and
16698 grub_configfile_fini.
16699 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
16701 [GRUB_UTIL] (grub_configfile_fini): Likewise.
16703 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
16705 * normal/arg.c (grub_arg_show_help): Do not show the bug report
16708 * commands/help.c (grub_cmd_help): Do not print newlines after
16709 the last command in print_command_help.
16711 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
16713 * commands/default.h: New file.
16714 * commands/timeout.h: Likewise.
16715 * normal/context.c: Likewise.
16717 * util/misc.c: Do not include sys/times.h.
16718 Include sys/time.h and grub/machine/time.h.
16719 (grub_get_rtc): Rewritten with gettimeofday.
16721 * util/grub-emu.c (main): Call grub_default_init and
16722 grub_timeout_init before grub_normal_init, and call
16723 grub_timeout_fini and grub_default_fini after grub_main.
16725 * util/console.c (grub_ncurses_checkkey): Return the read
16728 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
16731 * normal/main.c (read_config_file): Push MENU. If this fails,
16732 print an error and wait for a user input.
16733 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
16734 If a menu is empty or an error occurs, pop MENU.
16735 (grub_normal_execute): Pop and free MENU after grub_menu_run
16738 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
16740 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
16742 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
16744 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
16746 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
16749 * include/grub/normal.h (struct grub_menu_list): New struct.
16750 (grub_menu_list_t): New type.
16751 (struct grub_context): New struct.
16752 (grub_context_t): New type.
16753 (grub_register_command): Got rid of EXPORT_FUNC.
16754 (grub_unregister_command): Likewise.
16755 (grub_context_get): New prototype.
16756 (grub_context_get_current_menu): Likewise.
16757 (grub_context_push_menu): Likewise.
16758 (grub_context_pop_menu): Likewise.
16759 [GRUB_UTIL] (grub_default_init): Likewise.
16760 [GRUB_UTIL] (grub_default_fini): Likewise.
16761 [GRUB_UTIL] (grub_timeout_init): Likewise.
16762 [GRUB_UTIL] (grub_timeout_fini): Likewise.
16764 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
16765 commands/timeout.c and normal/context.c.
16766 (pkgdata_MODULES): Added default.mod and timeout.mod.
16767 (normal_mod_SOURCES): Added normal/context.c.
16768 (default_mod_SOURCES): New variable.
16769 (default_mod_CFLAGS): Likewise.
16770 (timeout_mod_SOURCES): Likewise.
16771 (timeout_mod_CFLAGS): Likewise.
16772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
16774 (pkgdata_MODULES): Added default.mod and timeout.mod.
16775 (normal_mod_SOURCES): Added normal/context.c.
16776 (default_mod_SOURCES): New variable.
16777 (default_mod_CFLAGS): Likewise.
16778 (timeout_mod_SOURCES): Likewise.
16779 (timeout_mod_CFLAGS): Likewise.
16781 * Makefile.in (all-local): Added $(MKFILES).
16783 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
16785 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
16786 (grub_emu_SOURCES): Likewise.
16787 (pkgdata_MODULES): Add `sun.mod'.
16788 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
16789 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16791 (pkgdata_MODULES): Add `sun.mod'.
16792 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
16793 * include/grub/partition.h (grub_sun_partition_map_init): New
16795 (grub_sun_partition_map_fini): Likewise.
16796 * partmap/sun.c: New file.
16797 * util/grub-emu.c (main): Initialize and de-initialize the sun
16798 partitionmap support.
16800 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
16802 This implements an Emacs-like menu entry editor.
16804 * normal/menu_entry.c: New file.
16806 * util/console.c (grub_ncurses_putchar): Translate some Unicode
16807 characters to ASCII.
16808 (saved_char): New variable.
16809 (grub_ncurses_checkkey): Rewritten completely.
16810 (grub_ncurses_getkey): Likewise.
16811 (grub_ncurses_init): Call raw instead of cbreak.
16813 * normal/menu.c (print_entry): Do not put a space.
16814 (init_page): Renamed to ...
16815 (grub_menu_init_page): ... this. All callers changed.
16816 (edit_menu_entry): Removed.
16817 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
16819 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
16821 * kern/misc.c (grub_vprintf): Call grub_refresh.
16823 * normal/menu.c (DISP_LEFT): Renamed to ...
16824 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
16825 * normal/menu.c (DISP_UP): Renamed to ...
16826 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
16827 * normal/menu.c (DISP_RIGHT): Renamed to ...
16828 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
16829 * normal/menu.c (DISP_DOWN): Renamed to ...
16830 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
16831 * normal/menu.c (DISP_HLINE): Renamed to ...
16832 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
16833 * normal/menu.c (DISP_VLINE): Renamed to ...
16834 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
16835 * normal/menu.c (DISP_UL): Renamed to ...
16836 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
16837 * normal/menu.c (DISP_UR): Renamed to ...
16838 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
16839 * normal/menu.c (DISP_LL): Renamed to ...
16840 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
16841 * normal/menu.c (DISP_LR): Renamed to ...
16842 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
16843 * normal/menu.c (TERM_WIDTH): Renamed to ...
16844 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
16845 * normal/menu.c (TERM_HEIGHT): Renamed to ...
16846 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
16847 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
16848 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
16849 * normal/menu.c (TERM_MARGIN): Renamed to ...
16850 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
16851 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
16852 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
16853 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
16854 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
16855 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
16856 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
16857 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
16858 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
16859 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
16860 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
16861 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
16862 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
16863 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
16864 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
16865 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
16866 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
16867 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
16868 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
16869 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
16870 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
16871 All callers changed.
16873 * include/grub/normal.h: New prototype.
16875 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
16876 normal/menu_entry.c.
16877 (normal_mod_SOURCES): Likewise.
16878 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16879 (normal_mod_SOURCES): Likewise.
16881 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
16883 * include/grub/normal.h (grub_halt_init): New prototype.
16884 (grub_halt_fini): Likewise.
16885 (grub_reboot_init): Likewise.
16886 (grub_reboot_fini): Likewise.
16888 * util/grub-emu.c: Include signal.h.
16889 (main_env): New global variable.
16890 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
16892 (grub_machine_fini): New function.
16893 (main): Call grub_halt_init and grub_reboot_init before
16894 grub_main, and grub_reboot_fini and grub_halt_fini after it.
16895 Call setjmp with MAIN_ENV to go back afterwards.
16896 Call grub_machine_fini right before return.
16898 * include/grub/util/misc.h: Include setjmp.h.
16899 (main_env): New prototype.
16901 * include/grub/kernel.h (grub_machine_fini): New prototype.
16902 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
16903 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
16905 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
16906 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
16907 * term/i386/pc/console.c (grub_console_fini): Likewise.
16909 * util/i386/pc/misc.c: New file.
16911 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
16912 util/i386/pc/misc.c, commands/i386/pc/halt.c and
16913 commands/i386/pc/reboot.c.
16915 2005-02-14 Guillem Jover <guillem@hadrons.org>
16917 * include/grub/dl.h (grub_dl_check_header): New prototype.
16918 (grub_arch_dl_check_header): Change return type to grub_err_t,
16919 remove size parameter and export function. Update all callers.
16920 * kern/dl.c (grub_dl_check_header): New function.
16921 (grub_dl_load_core): Use `grub_dl_check_header' instead of
16922 `grub_arch_dl_check_header'. Check ELF type. Check if sections
16923 are inside the core.
16924 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
16925 independent ELF header checks.
16926 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
16927 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
16928 `grub_dl_check_header' instead of explicit checks. Check for the
16930 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
16931 `grub_dl_check_header' instead of explicit checks. Remove arch
16932 specific ELF header checks.
16934 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
16937 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
16939 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
16940 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
16942 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
16944 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
16945 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
16946 (part_map_iterate): Clear `grub_errno' and return 0 if
16947 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
16948 * partmap/amiga.c (amiga_partition_map_iterate): Return
16949 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
16950 * partmap/apple.c (apple_partition_map_iterate): Likewise.
16952 2005-02-01 Guillem Jover <guillem@hadrons.org>
16954 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
16957 2005-01-31 Marco Gerards <metgerards@student.han.nl>
16959 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
16961 (grub_rescue_cmd_linux): New prototype.
16962 (grub_rescue_cmd_initrd): Likewise.
16963 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
16965 (grub_linux_release_mem): Release the memory for the initrd.
16966 (grub_load_linux): Renamed from this...
16967 (grub_rescue_cmd_linux): ...To this. Changed all callers.
16968 Changed `entry' not to be static. Loop over memory regions to
16969 find another one when the default fails.
16970 (grub_rescue_cmd_initrd): New function.
16971 (grub_linux_init): Remove function.
16972 (grub_linux_fini): Likewise.
16973 (GRUB_MOD_INIT): Register `initrd'.
16974 (GRUB_MOD_FINI): Unregister `initrd'.
16975 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
16977 (grub_linux_normal_fini): Likewise.
16978 (GRUB_MOD_INIT): Register `initrd'.
16979 (GRUB_MOD_FINI): Unregister `initrd'.
16981 2005-01-31 Marco Gerards <metgerards@student.han.nl>
16983 * commands/help.c: New file.
16984 * normal/arg.c (show_help): Renamed to...
16985 (grub_arg_show_help): ... this.
16986 * commands/i386/pc/halt.c: New file.
16987 * commands/i386/pc/reboot.c: Likewise.
16988 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
16989 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
16990 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
16991 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
16993 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16995 (pkgdata_MODULES): Add `help.mod'.
16996 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
16997 * grub/i386/pc/init.h (grub_reboot): New prototype.
16998 (grub_halt): Likewise.
16999 * include/grub/normal.h (grub_arg_show_help): New prototype.
17000 (grub_help_init): Likewise.
17001 (grub_help_fini): Likewise.
17002 * util/grub-emu.c (main): Initialize and deinitialize the help
17005 * normal/cmdline.c (grub_cmdline_get): Doc fix.
17007 * normal/command.c (grub_command_init): Fixed the description of
17008 the `set' and `unset' commands.
17010 2005-01-31 Marco Gerards <metgerards@student.han.nl>
17012 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
17014 * commands/ieee1275/halt.c: New file.
17015 * commands/ieee1275/reboot.c: Likewise.
17016 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
17017 `__attribute__ ((unused))'. Some GCS related fixed.
17018 (grub_suspend_init) [GRUB_UTIL]: Function removed.
17019 (grub_suspend_fini): Likewise.
17020 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
17022 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
17023 (halt_mod_CFLAGS): New variables.
17024 * include/grub/powerpc/ieee1275/ieee1275.h
17025 (grub_ieee1275_interpret): New prototype.
17027 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
17029 * include/grub/misc.h (memmove): New prototype.
17030 (memcpy): Likewise.
17032 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
17034 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
17035 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
17037 2005-01-22 Marco Gerards <metgerards@student.han.nl>
17039 * kern/misc.c (grub_strndup): Function rewritten.
17041 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
17043 * normal/menu.c (TERM_WIDTH): Macro redefined.
17044 (TERM_TOP_BORDER_Y): Likewise.
17045 (draw_border): Replaced while-loop by a for-loop. Make the number
17046 of lines consistent with the number of lines displayed in
17047 print_entries. Added a margin below the rectangle.
17048 (print_entry): Make the entry fit in the rectangle.
17049 (print_entries): Display the scroll arrows next to the right
17052 2005-01-21 Marco Gerards <metgerards@student.han.nl>
17054 * fs/minix.c (grub_minix_find_file): Reserve more space for
17055 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
17056 `grub_strncpy' to copy `path' into it.
17058 2005-01-21 Marco Gerards <metgerards@student.han.nl>
17060 Add the loopback device, a device via which files can be accessed
17063 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
17064 (pkgdata_MODULES): Add loopback.mod.
17065 (loopback_mod_SOURCES): New variable.
17066 (loopback_mod_CFLAGS): Likewise.
17067 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17069 (pkgdata_MODULES): Add loopback.mod.
17070 (loopback_mod_SOURCES): New variable.
17071 (loopback_mod_CFLAGS): Likewise.
17072 * disk/loopback.c: new file.
17073 * include/grub/normal.h (grub_loop_init): New prototype.
17074 (grub_loop_fini): New prototype.
17075 * util/grub-emu.c (main): Initialize and de-initialize loopback
17077 * include/grub/disk.h (grub_disk_dev_id): Add
17078 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
17080 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
17082 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
17084 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
17085 (suspend_mod_SOURCES): New variable.
17086 (suspend_mod_CFLAGS): Likewise.
17087 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
17089 * commands/ieee1275/suspend.c: New file.
17091 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17093 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
17094 ((unused))' to `__attribute__ ((used))'.
17095 (GRUB_MOD_FINI): Likewise.
17096 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
17097 * genmk.rb (PModule): Assign space to common symbols when linking
17100 2005-01-20 Marco Gerards <metgerards@student.han.nl>
17102 * include/grub/mm.h (grub_mm_init_region): Change the type of the
17103 `unsigned' arguments to `grub_size_t'.
17104 (grub_malloc): Likewise.
17105 (grub_realloc): Likewise.
17106 (grub_memalign): Likewise.
17107 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
17108 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
17109 * util/misc.c (grub_malloc): Likewise.
17110 (grub_realloc): Likewise.
17111 * kern/mm.c (get_header_from_pointer): Change the casts to
17112 `unsigned' into a cast to `grub_size_t'.
17114 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
17115 point to `currnode' when `currnode' is changed.
17117 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
17118 Schottelius <nico-linux@schottelius.org>.
17120 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
17122 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
17123 (note_path): Remove variable.
17124 (GRUB_IEEE1275_NOTE_NAME): New macro.
17125 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
17126 (grub_ieee1275_note_hdr): New structure.
17127 (grub_ieee1275_note_desc): Likewise.
17128 (grub_ieee1275_note): Likewise.
17129 (load_note): Remove `dir' argument. All callers updated. Remove
17130 `note_img' and `path'. Do not load a file from `note_path'.
17131 Initialize a struct grub_ieee1275_note and write that to `out'.
17132 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
17134 2005-01-05 Marco Gerards <metgerards@student.han.nl>
17136 * util/misc.c (grub_util_read_image): Revert last change. It
17137 called `grub_util_read_at', which seeks from the beginning of the
17140 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
17142 * TODO: Add note about endianness in grub-mkimage.
17143 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
17145 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
17146 (grub_mkimage_SOURCES): New target.
17147 * include/grub/kernel.h (grub_start_addr): Remove variable.
17148 (grub_end_addr): Likewise.
17149 (grub_total_module_size): Likewise.
17150 (grub_kernel_image_size): Likewise.
17151 (GRUB_MODULE_MAGIC): New constant.
17152 (grub_module_info): New structure.
17153 (grub_arch_modules_addr): New prototype.
17154 (grub_get_end_addr): Remove prototype.
17155 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
17156 * include/grub/powerpc/ieee1275/kernel.h: New file.
17157 * include/grub/util/misc.h (grub_util_get_fp_size): New
17159 (grub_util_read_at): Likewise.
17160 (grub_util_write_image_at): Likewise.
17161 * kern/main.c (grub_get_end_addr): Remove function.
17162 (grub_load_modules): Call grub_arch_modules_addr instead of using
17163 grub_end_addr. Look for a grub_module_info struct in memory. Use
17164 the grub_module_info fields instead of calling grub_get_end_addr
17165 as loop conditions. Move grub_add_unused_region code here.
17166 (grub_add_unused_region): Remove function.
17167 * kern/i386/pc/init.c: Include grub/cache.h.
17168 (grub_machine_init): Remove call to grub_get_end_addr. Remove
17169 one call to add_mem_region.
17170 (grub_arch_modules_addr): New function.
17171 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
17172 (grub_total_module_size): Likewise.
17173 Include grub/machine/kernel.h.
17174 (grub_arch_modules_addr): New function.
17175 * util/grub-emu.c (grub_end_addr): Remove variable.
17176 (grub_total_module_size): Likewise.
17177 (grub_arch_modules_addr): New function.
17178 * util/misc.c: Include unistd.h.
17179 (grub_util_get_fp_size): New function.
17180 (grub_util_read_at): Likewise.
17181 (grub_util_write_image_at): Likewise.
17182 (grub_util_read_image): Call grub_util_read_at.
17183 (grub_util_write_image): Call grub_util_write_image_at.
17184 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
17185 additional memory in kernel_img for a struct grub_module_info.
17186 Fill in that grub_module_info.
17187 * util/powerpc/ieee1275/grub-mkimage.c: New file.
17189 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
17191 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
17193 * include/grub/powerpc/ieee1275/ieee1275.h
17194 (grub_ieee1275_milliseconds): New prototype.
17195 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
17197 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
17198 grub_ieee1275_milliseconds.
17200 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
17202 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
17204 (find_options): New function.
17205 (cmain): Call find_options.
17206 * include/grub/powerpc/ieee1275/ieee1275.h
17207 (grub_ieee1275_realmode): New extern variable.
17208 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
17209 grub_map if grub_ieee1275_realmode is false.
17211 2004-12-29 Marco Gerards <metgerards@student.han.nl>
17213 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
17214 lines are inserted and make it work like readline. Reported by
17215 Vincent Pelletier <subdino2004@yahoo.fr>.
17217 2004-12-28 Marco Gerards <metgerards@student.han.nl>
17219 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
17221 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
17222 `kern/powerpc/cache.S'.
17224 2004-12-27 Marco Gerards <metgerards@student.han.nl>
17226 * genmk.rb: Handle the `Program' class in the main loop. Written
17227 by Johan Rydberg <jrydberg@gnu.org>.
17228 (Program): New class.
17229 (programs): New variable.
17230 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
17231 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
17232 instead of "grub/kernel.h". Include <grub/machine/init.h>.
17233 (help_arch): Function removed.
17234 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
17235 `powerpc/libgcc.h' and `loader.h'.
17236 (pkgdata_PROGRAMS): New variable.
17237 (sbin_UTILITIES): Variable removed.
17238 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
17239 (grubof_SOURCES): Variable re-defined so it only includes the
17240 core functionality.
17241 (grubof_CFLAGS): Remove `-DGRUBOF'.
17242 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
17243 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
17244 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
17245 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
17246 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
17247 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
17248 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
17249 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
17250 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
17251 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
17252 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
17253 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
17254 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
17255 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
17256 (pc_mod_CFLAGS): New variables.
17257 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
17258 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
17259 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
17260 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
17262 * include/grub/i386/pc/init.h (grub_os_area_addr)
17263 (rub_os_area_size): ... to here.
17264 * include/grub/powerpc/ieee1275/ieee1275.h
17265 (grub_ieee1275_entry_fn): Export symbol.
17266 * include/grub/powerpc/ieee1275/init.h: New file.
17267 * include/grub/powerpc/libgcc.h: Likewise.
17268 * include/grub/cache.h: Likewise.
17269 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
17270 <hollis@penguinppc.org>.
17271 * kern/dl.c: Include <grub/cache.h>.
17272 (grub_dl_flush_cache): New function.
17273 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
17275 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
17276 (grub_console_init): Removed prototypes.
17277 (grub_machine_init): Don't initialize the modules anymore.
17278 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
17280 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
17281 Macro undef removed.
17282 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
17283 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
17284 relocation `R_PPC_REL32'. Return an error when the relocation is
17286 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
17287 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
17288 * util/misc.c (grub_arch_sync_caches): Likewise.
17290 2004-12-19 Marco Gerards <metgerards@student.han.nl>
17292 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
17293 `symlist.c', add `grubof_symlist.c'.
17294 (symlist.c): Variable removed.
17295 (grubof_HEADERS): Variable added.
17296 (grubof_symlist.c): New target.
17297 (kernel_syms.lst): Use `grubof_HEADERS' instead of
17298 `kernel_img_HEADERS'.
17299 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
17300 * kern/powerpc/dl.c: New file.
17301 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
17303 (grub_arch_dl_relocate_symbols): Likewise.
17304 (grub_register_exported_symbols): Likewise.
17306 2004-12-13 Marco Gerards <metgerards@student.han.nl>
17308 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
17309 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
17310 to fail instead. Reported by Vincent Pelletier
17311 <subdino2004@yahoo.fr>.
17313 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
17314 it is not allocated. Reported by Vincent Pelletier
17315 <subdino2004@yahoo.fr>.
17317 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
17318 output so the output looks better.
17320 2004-12-04 Marco Gerards <metgerards@student.han.nl>
17322 Modulize the partition map support and add support for the amiga
17325 * commands/ls.c: Include <grub/partition.h> instead of
17326 <grub/machine/partition.h>.
17327 * kern/disk.c: Likewise.
17328 * kern/rescue.c: Likewise.
17329 * loader/i386/pc/chainloader.c: Likewise.
17330 * normal/cmdline.c: Likewise.
17331 * kern/powerpc/ieee1275/init.c: Likewise.
17332 (grub_machine_init): Call `grub_pc_partition_map_init',
17333 `grub_amiga_partition_map_init' and
17334 `grub_apple_partition_map_init'.
17335 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
17336 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
17337 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
17338 `partition.h' and `pc_partition.h'.
17339 (grub_setup_SOURCES): Remove
17340 `disk/i386/pc/partition.c'. Add `kern/partition.c',
17341 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
17342 (grub_emu_SOURCES): Likewise.
17343 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
17344 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
17345 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
17346 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
17347 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
17348 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
17349 (grubof_SOURCES): Likewise.
17350 * disk/i386/pc/partition.c: File removed.
17351 * disk/powerpc/ieee1275/partition.c: Likewise.
17352 * include/grub/powerpc/ieee1275/partition.h: Likewise.
17353 * include/grub/i386/pc/partition.h: Likewise.
17354 * kern/partition.c: New file.
17355 * partmap/amiga.c: Likewise.
17356 * partmap/apple.c: Likewise.
17357 * partmap/pc.c: Likewise.
17358 * include/grub/partition.h: Likewise..
17359 * include/grub/pc_partition.h: Likewise.
17360 * util/grub-emu.c: Include <grub/partition.h> instead of
17361 <grub/machine/partition.h>.
17362 (main): Call `grub_pc_partition_map_init',
17363 `grub_amiga_partition_map_init' and
17364 `grub_apple_partition_map_init' and deinitialize afterwards.
17365 * util/i386/pc/biosdisk.c: Include `#include
17366 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
17367 `<grub/machine/partition.h>'.
17368 * util/i386/pc/grub-setup.c: Likewise.
17369 * util/i386/pc/biosdisk.c: Likewise.
17370 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
17371 partition information in case of a PC partition.
17372 * util/i386/pc/grub-setup.c: Include `#include
17373 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
17374 `<grub/machine/partition.h>'.
17375 (setup): Only access the PC specific partition information in case
17378 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
17380 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
17381 (grub_longjmp): Likewise.
17382 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
17384 * normal/powerpc/setjmp.S: New file.
17385 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
17386 `normal/powerpc/setjmp.S'.
17387 (grubof_CFLAGS): Add `-DGRUBOF'.
17388 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
17389 [GRUB_UTIL && !GRUBOF].
17391 2004-11-16 Marco Gerards <metgerards@student.han.nl>
17393 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
17394 property named `name'. Correctly handle the error returned by
17395 `grub_ieee1275_finddevice' if a device can not be opened.
17397 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
17399 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
17400 `actual' for negativity.
17401 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
17404 2004-11-01 Marco Gerards <metgerards@student.han.nl>
17406 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
17407 (PAGE_OFFSET): New macro.
17408 (CRTC_ADDR_PORT): Likewise.
17409 (CRTC_DATA_PORT): Likewise.
17410 (START_ADDR_HIGH_REGISTER): Likewise.
17411 (START_ADDR_LOW_REGISTER): Likewise.
17412 (GRAPHICS_ADDR_PORT): Likewise.
17413 (GRAPHICS_DATA_PORT): Likewise.
17414 (READ_MAP_REGISTER): Likewise.
17415 (INPUT_STATUS1_REGISTER): Likewise.
17416 (INPUT_STATUS1_VERTR_BIT): Likewise.
17417 (page): New variable.
17418 (wait_vretrace): New function.
17419 (set_read_map): Likewise.
17420 (set_start_address): Likewise.
17421 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
17423 (check_vga_mem): Take the page into account.
17424 (write_char): Likewise.
17425 (write_cursor): Likewise.
17426 (scroll_up): Likewise. Copy the page to the page that is not
17427 shown and switch between both pages.
17428 (grub_vga_putchar): Fix off by one error.
17429 (grub_vga_cls): Wait for the vertical retrace. Take the page into
17432 2004-11-01 Marco Gerards <metgerards@student.han.nl>
17434 Add support for iso9660 (including rockridge).
17436 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
17437 (iso9660_mod_SOURCES): New variable.
17438 (iso9660_mod_CFLAGS): Likewise.
17439 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
17440 * include/grub/fs.h (grub_iso9660_init): New prototype.
17441 * util/grub-emu.c (main): Call `grub_iso9660_init'.
17442 * fs/iso9660.c: New file.
17444 * include/grub/misc.h (grub_strncat): New prototype.
17445 * kern/misc.c (grub_strncat): New function.
17447 * fs/hfs.c (grub_hfs_mount): Translate the error
17448 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
17449 * fs/jfs.c (grub_jfs_mount): Likewise.
17450 * fs/ufs.c (grub_ufs_mount): Likewise.
17452 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
17454 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
17455 which initialized BAT registers.
17456 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
17457 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
17459 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
17460 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
17462 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
17463 (grub_mapclaim): Likewise.
17464 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
17465 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
17468 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
17470 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
17471 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
17472 -ffreestanding and -msoft-float.
17474 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
17476 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
17477 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
17478 set in grub_ieee1275_flags.
17480 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
17482 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
17484 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
17485 grub_console_init first.
17486 Change the memory range used for grub_ieee1275_claim and
17487 grub_mm_init_region.
17488 Print an error message if the claim fails.
17489 Include <grub/misc.h>.
17491 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
17493 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
17494 Call grub_children_iterate for device nodes of type `scsi',
17496 (grub_ofdisk_open): Remove manual device alias resolution.
17497 Fix memory leak when device cannot be opened.
17498 * include/grub/powerpc/ieee1275/ieee1275.h
17499 (grub_children_iterate): New prototype.
17500 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
17502 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17503 Return -1 if args.size was -1.
17505 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
17507 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
17508 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
17509 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
17510 Open Firmware's memory for it; claim memory from _start to _end.
17511 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
17512 (_end): New extern.
17513 (_start): Zero BSS from __bss_start to _end.
17514 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
17516 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
17518 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
17520 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
17521 -1 if args.base was -1.
17523 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
17525 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
17526 escape sequence instead of a literal ^L. Also call
17527 grub_ofconsole_gotoxy.
17529 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
17531 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
17532 void * arguments to grub_addr_t. All callers updated. Also make
17533 the `result' argument optional.
17534 (grub_ieee1275_release): change void * arguments to grub_addr_t.
17535 All callers updated.
17537 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
17539 * commands/ls.c (grub_ls_list_files): Use the string following the
17540 initial ')', if present, as the filesystem path.
17541 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
17543 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
17545 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
17547 Make the source code of the menu interface more readable.
17549 * normal/menu.c: Include grub/mm.h.
17550 (TERM_WIDTH): New macro.
17551 (TERM_HEIGHT): Likewise.
17552 (TERM_INFO_HEIGHT): Likewise.
17553 (TERM_MARGIN): Likewise.
17554 (TERM_SCROLL_WIDTH): Likewise.
17555 (TERM_TOP_BORDER_Y): Likewise.
17556 (TERM_LEFT_BORDER_X): Likewise.
17557 (TERM_BORDER_WIDTH): Likewise.
17558 (TERM_MESSAGE_HEIGHT): Likewise.
17559 (TERM_BORDER_HEIGHT): Likewise.
17560 (TERM_NUM_ENTRIES): Likewise.
17561 (TERM_FIRST_ENTRY_Y): Likewise.
17562 (TERM_ENTRY_WIDTH): Likewise.
17563 (TERM_CURSOR_X): Likewise.
17564 (draw_border): Use macros instead of magic numbers.
17565 (print_entry): Likewise.
17566 (print_entries): Likewise.
17567 (run_menu): Likewise. Also, handle the key 'e'.
17568 (run_menu_entry): Ignore empty command lines.
17569 (print_message): Added a new argument EDIT. If EDIT is true,
17570 print a different message.
17571 (init_page): Likewise.
17572 (edit_menu_entry): New function. Not implemented yet.
17574 2004-09-17 Marco Gerards <metgerards@student.han.nl>
17576 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
17577 can be loaded from normal mode.
17579 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
17581 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
17582 (multiboot_mod_CFLAGS): New variables.
17583 * loader/i386/pc/linux_normal.c: New file.
17584 * loader/i386/pc/multiboot_normal.c: Likewise.
17586 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
17587 attribute `unused'.
17589 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
17590 `fdiro' to read the mode information from instead of `diro'.
17592 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
17593 looking up a symlink.
17595 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
17597 * normal/command.c (grub_command_execute): Don't parse the
17598 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
17599 flags of the command.
17601 * normal/menu.c (grub_menu_run): Fix typo.
17603 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
17605 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
17607 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
17608 `y + 1' instead of `y - 1'.
17610 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
17612 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
17614 From Hollis Blanchard <hollis@penguinppc.org>:
17615 * kern/misc.c (memmove): New alias for grub_memmove.
17616 (memcmp): New alias for grub_memcmp.
17617 (memset): New alias for grub_memset.
17618 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17619 Change "int handle" to "grub_ieee1275_phandle_t handle".
17620 * include/grub/powerpc/ieee1275/ieee1275.h
17621 (grub_ieee1275_get_property): Likewise.
17623 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
17625 Added normal mode command `chainloader' as module chain.mod, which
17626 depends on normal.mod and _chain.mod.
17628 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
17629 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
17630 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
17632 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
17633 but arguments parsing moved to ...
17634 (grub_chainloader_cmd): ... here. New function.
17635 * include/grub/i386/pc/chainloader.h: New file.
17636 * loader/i386/pc/chainloader_normal.c: Likewise.
17638 2004-09-11 Marco Gerards <metgerards@student.han.nl>
17640 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
17641 (grub_mkimage_LDFLAGS): Likewise.
17642 (grub_emu_SOURCES): Likewise.
17643 (kernel_img_HEADERS): Added fshelp.h.
17644 * fs/ext2.c: Include <grub/fshelp.h>.
17645 (FILETYPE_REG): New macro.
17646 (FILETYPE_INO_REG): Likewise.
17647 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
17649 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
17651 (grub_fshelp_node): New struct.
17652 (grub_ext2_data): Added member `diropen'. Changed member `inode'
17654 (grub_ext2_get_file_block): Removed function.
17655 (grub_ext2_read_block): New function.
17656 (grub_ext2_read_file): Replaced parameter `data' by `node'.
17657 This function was written.
17658 (grub_ext2_mount): Read the root inode. Create a diropen struct.
17659 (grub_ext2_find_file): Removed function.
17660 (grub_ext2_read_symlink): New function.
17661 (grub_ext2_iterate_dir): Likewise.
17662 (grub_ext2_open): Rewritten.
17663 (grub_ext2_dir): Rewritten.
17664 * include/grub/fshelp.h: New file.
17665 * fs/fshelp.c: Likewise.
17667 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
17669 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
17670 (print_message): Add a missing newline.
17671 (run_menu): Added timeout support.
17672 (run_menu_entry): New local function.
17673 (grub_menu_run): Added support for booting.
17675 * kern/loader.c (grub_loader_is_loaded): New function.
17677 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
17678 (grub_get_rtc): Exported.
17680 * include/grub/i386/pc/time.h: Include grub/symbol.h.
17681 (grub_get_rtc): Exported.
17683 * include/grub/normal.h (struct grub_command_list): Remove
17684 constant from the member `command'.
17686 * include/grub/loader.h (grub_loader_is_loaded): Declared.
17688 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
17690 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
17692 2004-08-28 Marco Gerards <metgerards@student.han.nl>
17694 Add support for the JFS filesystem.
17696 * fs/jfs.c: New file.
17697 * include/grub/fs.h (grub_jfs_init): New prototype.
17698 (grub_jfs_fini): New prototype.
17699 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
17700 (grub_emu_SOURCES): Likewise.
17701 (pkgdata_MODULES): Add jfs.mod.
17702 (jfs_mod_SOURCES): New variable.
17703 (jfs_mod_CFLAGS): Likewise.
17704 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
17705 (grubof_SOURCES): Likewise.
17706 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
17708 * fs/fat.c (grub_fat_find_dir): Convert the filename little
17709 endian to the host endian.
17710 (grub_fat_utf16_to_utf8): Move function from there...
17711 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
17712 the endianness of the source string anymore.
17713 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
17715 2004-08-24 Marco Gerards <metgerards@student.han.nl>
17717 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
17718 (grub_boot_fini) [GRUB_UTIL]: Likewise.
17719 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
17720 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
17722 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
17723 (grub_hfs_iterate_dir): Make the function static. Add prototypes
17724 for `node_found' and `it_dir'.
17725 (grub_hfs_dir): Add prototype for `dir_hook'.
17727 * fs/minix.c (grub_minix_get_file_block): Add prototype for
17728 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
17729 and `indir32' to silence a gcc warning.
17731 * include/grub/fs.h (grub_hfs_init): New prototype.
17732 (grub_hfs_fini): Likewise.
17735 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
17737 Each disk device has its own id now. This is useful to make use
17738 of multiple disk devices.
17740 * include/grub/disk.h (grub_disk_dev_id): New enum.
17741 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
17742 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
17744 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
17745 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
17747 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
17748 GRUB_DISK_DEVICE_OFDISK_ID as an id.
17750 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
17751 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
17753 * include/grub/disk.h (struct grub_disk_dev): Added a new member
17754 "id" which is used by the cache manager.
17756 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
17759 2004-08-18 Marco Gerards <metgerards@student.han.nl>
17761 * fs/hfs.c: New file.
17762 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
17763 (grub_emu_SOURCES): Likewise.
17764 (pkgdata_MODULES): Add hfs.mod.
17765 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
17766 (grubof_SOURCES): Likewise.
17767 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
17769 * include/grub/misc.h (grub_strncasecmp): Add prototype.
17770 * kern/misc.c (grub_strncasecmp): Add function.
17772 2004-08-14 Marco Gerards <metgerards@student.han.nl>
17774 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
17777 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
17778 (grub_ext2_dir): In case the directory entry type is unknown, read
17781 2004-08-02 Peter Bruin <pjbruin@dds.nl>
17783 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
17784 grub_load_linux instead of grub_rescue_cmd_linux as second
17785 argument of grub_rescue_register_command.
17787 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
17789 2004-07-27 Marco Gerards <metgerards@student.han.nl>
17791 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
17793 * commands/boot.c: Remove the check for `GRUB_UTIL'.
17794 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
17795 `loader/powerpc/ieee1275/linux.c',
17796 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
17797 * include/grub/powerpc/ieee1275/ieee1275.h
17798 (grub_ieee1275_release): New prototype.
17799 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
17800 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
17801 normal, boot, linux and linux_normal.
17802 * loader/powerpc/ieee1275/linux.c: New file.
17803 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
17805 2004-07-12 Marco Gerards <metgerards@student.han.nl>
17807 * normal/arg.c (grub_arg_parse): Correct error handling after
17808 reallocating the argumentlist (check if `argl' is not null instead
17809 of checking if `args' is not null).
17810 * kern/mm.c (grub_realloc): Return the same pointer when using the
17811 same region, instead of returning the header address.
17813 2004-07-11 Marco Gerards <metgerards@student.han.nl>
17815 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
17816 one block instead of two when looking for the initial partition.
17817 (grub_partition_probe): Initialize the local variable `p' with 0.
17818 Use base 10 for the grub_strtoul call.
17819 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
17820 need for one local variable.
17821 (grub_strtoul): Don't add the new value to `num', instead of that
17824 2004-07-11 Marco Gerards <metgerards@student.han.nl>
17826 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
17827 (pxeboot_img_SOURCES): New variable.
17828 (pxeboot_img_ASFLAGS): Likewise.
17829 (pxeboot_img_LDFLAGS): Likewise.
17830 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
17831 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
17832 <lode_leroy@hotmail.com>.
17834 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
17836 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
17837 there was no input.
17839 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
17841 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
17842 the history buffer logic.
17844 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
17846 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
17847 (FILETYPE_INO_SYMLINK): New macros.
17848 (grub_ext2_find_file): Check if the node is a directory using the
17849 inode stat information instead of using the filetype in the
17850 dirent. Exclude the first character of an absolute symlink.
17851 (grub_ext2_dir): Mask out the filetype part of the mode member of
17854 2004-05-24 Marco Gerards <metgerards@student.han.nl>
17856 Add support for UFS version 1 and 2. Add support for the minix
17857 filesystem version 1 and 2, both the variants with 14 and 30 long
17860 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
17862 (grub_emu_SOURCES): Likewise.
17863 (pkgdata_MODULES): Add ufs.mod and minix.mod.
17864 (ufs_mod_SOURCES): New variable.
17865 (ufs_mod_CFLAGS): Likewise.
17866 (minix_mod_SOURCES): Likewise.
17867 (minix_mod_CFLAGS): Likewise.
17868 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
17870 (grubof_SOURCES): Likewise.
17871 * fs/ufs.c: New file.
17872 * fs/minix.c: New file.
17873 * include/grub/fs.h (grub_ufs_init): New prototype.
17874 (grub_ufs_fini): Likewise.
17875 (grub_minix_init): Likewise.
17876 (grub_minix_fini): Likewise.
17877 * util/grub-emu.c (main): Initialize and deinitialize UFS and
17880 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
17882 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
17883 commands/ls.c, commands/terminal.c, commands/boot.c,
17884 commands/cmp.c and commands/cat.c.
17885 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
17887 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
17890 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
17892 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
17893 and grub_, respectively. Because the conversion is trivial and
17894 mechanical, I omit the details here. Please refer to the CVS
17895 if you need more information.
17897 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
17899 * include/pupa: Renamed to ...
17900 * include/grub: ... this.
17901 * util/i386/pc/pupa-mkimage.c: Renamed to ...
17902 * util/i386/pc/grub-mkimage.c: ... this.
17903 * util/i386/pc/pupa-setup.c: Renamed to ...
17904 * util/i386/pc/grub-setup.c: ... this.
17905 * util/pupa-emu.c: Renamed to ...
17906 * util/grub-emu.c: ... this.
17908 2004-03-29 Marco Gerards <metgerards@student.han.nl>
17910 Add support for the newworld apple macintosh (PPC). This has been
17911 tested on the powerbook 2000 only. It only adds support for
17912 generic ieee1275 functions, console and disk support. This should
17913 be easy to port to other architectures with support for Open
17916 * configure.ac: Accept the powerpc as host_cpu. In the case of
17917 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
17918 specific tests are only executed while building for the i386.
17919 Inverse test for crosscompile.
17920 * genmk.rb (Utility): Allow assembler files.
17921 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
17922 * conf/powerpc-ieee1275.rmk: New file.
17923 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
17924 * disk/powerpc/ieee1275/partition.c: Likewise.
17925 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
17926 * include/pupa/powerpc/ieee1275/console.h: Likewise.
17927 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
17928 * include/pupa/powerpc/ieee1275/time.h: Likewise.
17929 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
17930 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
17931 * include/pupa/powerpc/ieee1275/loader.h
17932 * include/pupa/powerpc/setjmp.h: Likewise.
17933 * include/pupa/powerpc/types.h: Likewise.
17934 * kern/powerpc/ieee1275/init.c: Likewise.
17935 * kern/powerpc/ieee1275/openfw.c: Likewise.
17936 * term/powerpc/ieee1275/ofconsole.c: Likewise.
17938 These files were written by Johan Rydberg
17939 (jrydberg@night.trouble.net) and I only modified them slightly.
17941 * boot/powerpc/ieee1275/cmain.c: New file.
17942 * boot/powerpc/ieee1275/crt0.S: Likewise.
17943 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
17944 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
17946 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
17948 * Makefile.in: Update copyright.
17949 * genmodsrc.sh: Likewise.
17950 * gensymlist.sh: Likewise.
17951 * term/i386/pc/vga.c: Indent correctly.
17953 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
17954 bugreporting address.
17955 * util/i386/pc/pupa-setup.c (usage): Likewise,
17956 (main): Call pupa_ext2_init and pupa_ext2_fini.
17958 * fs/fat.c (log2): Renamed to ...
17959 (fat_log2): ... this.
17960 All callers changed.
17961 * kern/misc.c (memcpy): Alias to pupa_memmove.
17962 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
17964 * util/console.c (pupa_ncurses_fini): Return 0.
17966 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
17967 Move fail label here.
17968 [__GNU__]: Don't warn when using stat.
17969 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
17970 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
17971 long int. Use strtol instead of strtoul.
17973 2004-03-14 Marco Gerards <metgerards@student.han.nl>
17975 * commands/boot.c: New file.
17976 * commands/cat.c: Likewise.
17977 * commands/cmp.c: Likewise.
17978 * commands/ls.c: Likewise.
17979 * commands/terminal.c: Likewise.
17980 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
17981 (pupa_register_command): Changed interface to match the new
17983 (pupa_command_execute): Changed (almost rewritten) so it uses
17984 pupa_split_command. Added support for setting variables using the
17986 (rescue_command): Changed to work with the new argument parser.
17987 (terminal_command): Moved from here to commands/terminal.c.
17988 (set_command): New function.
17989 (unset_command): New function.
17990 (insmod_command): New function.
17991 (rmmod_command): New function.
17992 (lsmod_command): New function.
17993 (pupa_command_init): Don't initialize the command terminal
17994 anymore. Initialize the commands set, unset, insmod, rmmod and
17996 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
17997 (kernel_img_HEADERS): Add arg.h and env.h.
17998 (pupa_mkimage_LDFLAGS): Add kern/env.c.
17999 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
18000 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
18002 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
18004 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
18005 (boot_mod_SOURCES): New variable.
18006 (terminal_mod_SOURCES): Likewise.
18007 (ls_mod_SOURCES): Likewise.
18008 (cmp_mod_SOURCES): Likewise.
18009 (cat_mod_SOURCES): Likewise.
18011 * normal/arg.c: New file.
18012 * kern/env.c: Likewise.
18013 * include/pupa/arg.h: Likewise.
18014 * include/pupa/env.h: Likewise.
18015 * font/manager.c (font_command): Changed to match argument parsing
18017 (PUPA_MOD_INIT): Likewise.
18018 * hello/hello.c (pupa_cmd_hello): Likewise.
18019 (PUPA_MOD_INIT): Likewise.
18020 * include/pupa/disk.h: Include <pupa/device.h>.
18021 (pupa_print_partinfo): New prototype.
18022 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
18023 (pupa_dl_get_prefix): Likewise.
18024 * include/pupa/misc.h: Include <pupa/err.h>.
18025 (pupa_isgraph): New prototype.
18026 (pupa_isdigit): Likewise.
18027 (pupa_split_cmdline): Likewise.
18028 * include/pupa/normal.h: Include <pupa/arg.h>.
18029 (pupa_command): Changed the prototype of the member `func' to
18030 match the argument parsing interface. Added member `options'.
18031 (pupa_register_command): Updated to match function.
18032 (pupa_arg_parse): New prototype.
18033 (pupa_hello_init) [PUPA_UTIL]: New prototype.
18034 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
18035 (pupa_ls_init) [PUPA_UTIL]: Likewise.
18036 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
18037 (pupa_cat_init) [PUPA_UTIL]: Likewise.
18038 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
18039 (pupa_boot_init) [PUPA_UTIL]: Likewise.
18040 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
18041 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
18042 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
18043 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
18044 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
18045 * kern/disk.c: Include <pupa/file.h>.
18046 (pupa_print_partinfo): New function.
18047 * kern/dl.c: Include <pupa/env.h>.
18048 (pupa_dl_dir): Variable removed.
18049 (pupa_dl_load): Use the environment variable `prefix' instead of
18050 the variable pupa_dl_dir.
18051 (pupa_dl_set_prefix): Function removed.
18052 (pupa_dl_get_prefix): Likewise.
18053 * kern/i386/pc/init.c: Include <pupa/env.h>.
18054 (pupa_machine_init): Use the environment variable `prefix' instead of
18055 using pupa_dl_set_prefix to set the prefix.
18056 * kern/main.c: Include <pupa/env.h>.
18057 (pupa_set_root_dev): Use the environment variable `prefix' instead of
18058 using pupa_dl_get_prefix to get the prefix.
18059 * kern/misc.c: Include <pupa/env.h>.
18060 (pupa_isdigit): New function.
18061 (pupa_isgraph): Likewise.
18062 (pupa_ftoa): Likewise.
18063 (pupa_vsprintf): Added support for printing values of the type
18064 `double'. Make it possible to format variable output when using
18065 formatting like `%1.2%f'.
18066 (pupa_split_cmdline): New function.
18067 * kern/rescue.c: Include <pupa/env.h>.
18068 (next_word): Removed function.
18069 (pupa_rescue_cmd_prefix): Likewise.
18070 (pupa_rescue_cmd_set): New function.
18071 (pupa_rescue_cmd_unset): New function.
18072 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
18073 split the command line instead of splitting it here. Added
18074 support for setting variables using the syntax `foo=bar'. Don't
18075 initialize the prefix command anymore. Initialized the set and
18077 * normal/cmdline.c: Include <pupa/env.h>.
18078 (pupa_tab_complete): Added prototypes for print_simple_completion,
18079 print_partition_completion, add_completion, iterate_commands,
18080 iterate_dev, iterate_part and iterate_dir. Moved code to print
18081 partition information from here to kern/disk.c.
18082 (pupa_cmdline_run): Don't check if the function exists anymore.
18083 * normal/main.c: Include <pupa/env.h>.
18084 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
18085 instead of using pupa_dl_get_prefix to get the prefix.
18086 * term/i386/pc/vga.c: Include <pupa/arg.h>.
18087 (check_vga_mem): Cast pointers to `void *' to silence a gcc
18089 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
18090 (pupa_vga_setcolor): Declare unused variables with `__attribute__
18091 ((unused))' to silence a gcc warning.
18092 (pupa_vga_setcolor): Likewise.
18093 (debug_command): Changed to match argument parsing
18095 * util/pupa-emu.c: Include <pupa/env.h>.
18096 (options): Added 0's for unused fields to silence a gcc warning.
18098 (main): Use the environment variable `prefix' instead of using
18099 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
18100 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
18103 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
18104 * util/misc.c: Include <malloc.h>.
18105 (pupa_malloc): Rewritten so errors are correctly reported.
18106 (pupa_realloc): Likewise.
18107 (pupa_memalign): Likewise.
18108 (pupa_mm_init_region): Declare unused variables with
18109 `__attribute__ ((unused))' to silence a gcc warning.
18110 * normal/i386/setjmp.S: Remove tab at the end of the file to
18111 silence a gcc warning.
18112 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
18113 variables with `__attribute__ ((unused))' to silence a gcc
18115 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
18116 local variable i unsigned to silence a gcc warning.
18118 * kern/term.c: Include <pupa/misc.h>.
18119 (pupa_more_lines): New variable.
18120 (pupa_more): Likewise.
18121 (pupa_putcode): When the pager is active pause at the end of every
18123 (pupa_set_more): New function.
18124 * include/pupa/term.h (pupa_set_more): New prototype.
18127 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
18129 Now this project is GRUB 2 rather than PUPA. The location of
18130 the CVS repository was moved to GRUB's.
18132 * configure.ac: Use bug-grub as the reporting address.
18133 Use GRUB instead of PUPA.
18134 Change the version number to 1.90.
18136 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
18138 * genkernsyms.sh: Updated copyright information.
18139 * genmk.rb: Likewise.
18140 * genmodsrc.sh: Likewise.
18141 * gensymlist.sh: Likewise.
18142 * boot/i386/pc/boot.S: Likewise.
18143 * boot/i386/pc/diskboot.S: Likewise.
18144 * disk/i386/pc/biosdisk.c: Likewise.
18145 * disk/i386/pc/partition.c: Likewise.
18146 * font/manager.c: Likewise.
18147 * fs/ext2.c: Likewise.
18148 * fs/fat.c: Likewise.
18149 * include/pupa/boot.h: Likewise.
18150 * include/pupa/device.h: Likewise.
18151 * include/pupa/disk.h: Likewise.
18152 * include/pupa/dl.h: Likewise.
18153 * include/pupa/elf.h: Likewise.
18154 * include/pupa/err.h: Likewise.
18155 * include/pupa/file.h: Likewise.
18156 * include/pupa/font.h: Likewise.
18157 * include/pupa/fs.h: Likewise.
18158 * include/pupa/kernel.h: Likewise.
18159 * include/pupa/loader.h: Likewise.
18160 * include/pupa/misc.h: Likewise.
18161 * include/pupa/mm.h: Likewise.
18162 * include/pupa/net.h: Likewise.
18163 * include/pupa/normal.h: Likewise.
18164 * include/pupa/rescue.h: Likewise.
18165 * include/pupa/setjmp.h: Likewise.
18166 * include/pupa/symbol.h: Likewise.
18167 * include/pupa/term.h: Likewise.
18168 * include/pupa/types.h: Likewise.
18169 * include/pupa/i386/setjmp.h: Likewise.
18170 * include/pupa/i386/types.h: Likewise.
18171 * include/pupa/i386/pc/biosdisk.h: Likewise.
18172 * include/pupa/i386/pc/boot.h: Likewise.
18173 * include/pupa/i386/pc/console.h: Likewise.
18174 * include/pupa/i386/pc/init.h: Likewise.
18175 * include/pupa/i386/pc/kernel.h: Likewise.
18176 * include/pupa/i386/pc/linux.h: Likewise.
18177 * include/pupa/i386/pc/loader.h: Likewise.
18178 * include/pupa/i386/pc/memory.h: Likewise.
18179 * include/pupa/i386/pc/multiboot.h: Likewise.
18180 * include/pupa/i386/pc/partition.h: Likewise.
18181 * include/pupa/i386/pc/time.h: Likewise.
18182 * include/pupa/i386/pc/vga.h: Likewise.
18183 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
18184 * include/pupa/util/getroot.h: Likewise.
18185 * include/pupa/util/misc.h: Likewise.
18186 * include/pupa/util/resolve.h: Likewise.
18187 * kern/device.c: Likewise.
18188 * kern/disk.c: Likewise.
18189 * kern/dl.c: Likewise.
18190 * kern/err.c: Likewise.
18191 * kern/file.c: Likewise.
18192 * kern/fs.c: Likewise.
18193 * kern/loader.c: Likewise.
18194 * kern/main.c: Likewise.
18195 * kern/misc.c: Likewise.
18196 * kern/mm.c: Likewise.
18197 * kern/rescue.c: Likewise.
18198 * kern/term.c: Likewise.
18199 * kern/i386/dl.c: Likewise.
18200 * kern/i386/pc/init.c: Likewise.
18201 * kern/i386/pc/lzo1x.S: Likewise.
18202 * kern/i386/pc/startup.S: Likewise.
18203 * loader/i386/pc/chainloader.c: Likewise.
18204 * loader/i386/pc/linux.c: Likewise.
18205 * loader/i386/pc/multiboot.c: Likewise.
18206 * normal/cmdline.c: Likewise.
18207 * normal/command.c: Likewise.
18208 * normal/main.c: Likewise.
18209 * normal/menu.c: Likewise.
18210 * normal/i386/setjmp.S: Likewise.
18211 * term/i386/pc/console.c: Likewise.
18212 * term/i386/pc/vga.c: Likewise.
18213 * util/console.c: Likewise.
18214 * util/genmoddep.c: Likewise.
18215 * util/misc.c: Likewise.
18216 * util/pupa-emu.c: Likewise.
18217 * util/resolve.c: Likewise.
18218 * util/unifont2pff.rb: Likewise.
18219 * util/i386/pc/biosdisk.c: Likewise.
18220 * util/i386/pc/getroot.c: Likewise.
18221 * util/i386/pc/pupa-mkimage.c: Likewise.
18222 * util/i386/pc/pupa-setup.c: Likewise.
18224 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
18226 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
18227 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
18228 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
18229 reading and reset it after reading.
18230 (pupa_ext2_close): Return PUPA_ERR_NONE.
18232 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
18234 (struct linux_kernel_header): Add kernel_version and
18236 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
18237 pupa_file_read succeeds.
18238 (pupa_rescue_cmd_initrd): Implement.
18240 2003-12-03 Marco Gerards <metgerards@student.han.nl>
18242 * fs/ext2.c (pupa_ext2_label): New function.
18243 (pupa_ext2_fs): Added label.
18244 * fs/fat.c (pupa_fat_label): New function.
18245 (pupa_fat_fs): Added label.
18246 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
18248 * kern/misc.c (pupa_strndup): New function.
18249 * include/pupa/misc.h (pupa_strndup): New prototype.
18251 * include/pupa/normal.h: Include <pupa/err.h>.
18252 (pupa_set_history): New prototype.
18253 (pupa_iterate_commands): New prototype.
18254 * normal/cmdline.c: Include <pupa/machine/partition.h>,
18255 <pupa/disk.h>, <pupa/file.h>.
18256 (hist_size): New variable.
18257 (hist_lines): Likewise.
18258 (hist_end): Likewise.
18259 (hist_used): Likewise.
18260 (pupa_set_history): New function.
18261 (pupa_history_get): Likewise.
18262 (pupa_history_add): Likewise.
18263 (pupa_history_replace): Likewise.
18264 (pupa_tab_complete): Likewise.
18265 (pupa_cmdline_run): Added tab completion and history buffer. Tab
18266 completion shows partitionnames while completing partitions, this
18267 feature was suggested by Jeff Bailey.
18268 * normal/command.c (pupa_iterate_commands): New function.
18269 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
18270 (pupa_normal_init): Initialize history buffer.
18271 (PUPA_MOD_INIT): Likewise.
18272 (pupa_normal_fini): Free the history buffer.
18273 (PUPA_MOD_FINI): Likewise.
18275 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
18278 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
18279 * configure.ac [i386]: Check for regparam bug.
18280 (NESTED_FUNC_ATTR) [! i386]: Defined.
18282 2003-11-17 Marco Gerards <metgerards@student.han.nl>
18284 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
18285 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
18286 (pupa_emu_SOURCES): New variable.
18287 (pupa_emu_LDFLAGS): Likewise.
18288 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
18289 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
18290 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
18291 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
18292 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
18293 (pupa_jmp_buf): New typedef.
18294 (pupa_setjmp) [PUPA_UTIL]: New macro.
18295 (pupa_longjmp) [PUPA_UTIL]: Likewise.
18296 * include/pupa/term.h (struct pupa_term): New member `refresh'.
18297 (pupa_refresh): New prototype.
18298 * include/pupa/util/getroot.h: New file.
18299 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
18301 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
18302 (pupa_rescue_cmd_cat): Likewise.
18303 (pupa_rescue_cmd_ls): Likewise.
18304 (pupa_rescue_cmd_testload): Likewise.
18305 (pupa_rescue_cmd_lsmod): Likewise.
18306 * normal/cmdline.c (pupa_cmdline_get): Likewise.
18307 * normal/menu.c (run_menu): Likewise.
18308 * kern/term.c (pupa_cls): Likewise.
18309 (pupa_refresh): New function.
18310 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
18311 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
18312 * util/console.c: New file.
18314 * util/i386/pc/getroot.c: New file.
18315 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
18316 (pupa_putchar): New function.
18317 (pupa_refresh): Likewise.
18318 (xgetcwd): Function moved to ...
18319 (strip_extra_slashes): Likewise.
18320 (get_prefix): Likewise.
18321 * util/i386/pc/getroot.c: ... here.
18322 (find_root_device): Function moved and renamed to...
18323 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
18324 Changed all callers.
18325 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
18327 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
18328 Changed all callers.
18329 * util/misc.c (pupa_memalign): New function.
18330 (pupa_mm_init_region): Likewise.
18331 (pupa_register_exported_symbols): Likewise.
18332 (pupa_putchar): Function removed.
18333 * util/pupa-emu.c: New file.
18335 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
18337 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
18338 (_multiboot_mod_SOURCES): New variable.
18339 (_multiboot_mod_CFLAGS): Likewise.
18340 * loader/i386/pc/multiboot.c: New file.
18341 * include/pupa/i386/pc/multiboot.h: Likewise.
18342 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
18343 (pupa_multiboot_real_boot): New function.
18344 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
18345 (pupa_multiboot_real_boot): New prototype.
18346 (pupa_rescue_cmd_multiboot): Likewise
18347 (pupa_rescue_cmd_module): Likewise.
18349 * kern/loader.c (pupa_loader_set): Continue when
18350 pupa_loader_unload_func() fails.
18351 (pupa_loader_unset): New function.
18352 * include/pupa/loader.h (pupa_loader_unset): New prototype.
18354 * kern/misc.c (pupa_stpcpy): New function.
18355 * include/pupa/misc.h (pupa_stpcpy): New prototype.
18357 2003-11-12 Marco Gerards <metgerards@student.han.nl>
18359 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
18360 for available extensions.
18362 * include/pupa/i386/pc/time.h: New file.
18363 * kern/disk.c: Include <pupa/machine/time.h>.
18364 (PUPA_CACHE_TIMEOUT): New macro.
18365 (pupa_last_time): New variable.
18366 (pupa_disk_open): Flush the cache when there was a timeout.
18367 (pupa_disk_close): Reset the timer.
18368 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
18370 * util/misc.c: Include <sys/times.h>
18371 (pupa_get_rtc): New function.
18373 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
18375 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
18377 (pupa_ext2_get_file_block): Use blocks member.
18379 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
18380 first block. Return -1 instead of pupa_errno on error.
18382 2003-10-27 Marco Gerards <metgerards@student.han.nl>
18384 * README: In the pupa-mkimage example use _chain instead of chain
18385 and ext2 instead of fat.
18386 * TODO: Replace ext2fs with jfs as an example. Add an item for
18387 adding journal playback for ext2fs.
18388 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
18389 (pkgdata_MODULES): Added ext2.mod.
18390 (ext2_mod_SOURCES): New variable.
18391 (ext2_mod_CFLAGS): Likewise.
18392 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
18393 * include/pupa/misc.h (pupa_strncpy): New prototype.
18394 (pupa_strcat): Likewise.
18395 (pupa_strncmp): Likewise.
18396 * kern/misc.c (pupa_strcat): Enable function.
18397 (pupa_strncpy): New function.
18398 (pupa_strncmp): Likewise.
18399 * fs/ext2.c: New file.
18401 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
18402 when the read failed before retrying.
18403 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
18404 (_FILE_OFFSET_BITS): Likewise.
18405 * configure.ac: Added AC_SYS_LARGEFILE.
18407 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
18409 * genmk.rb (PModule#rule): Make sure to get only symbol names
18410 from the output of nm.
18411 Reported by Robert Millan <zeratul2@wanadoo.es>.
18413 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
18415 I forgot to check in these changes for a long time. This adds
18416 incomplete support for VGA console, and this is still very
18417 buggy. Also, a lot of consideration is required for I18N,
18418 UNICODE, and VGA font issues. Therefore, assume that this is
18419 such that "better than nothing".
18421 * font/manager.c: New file.
18422 * include/pupa/font.h: Likewise.
18423 * include/pupa/i386/pc/vga.h: Likewise.
18424 * term/i386/pc/vga.c: Likewise.
18425 * util/unifont2pff.rb: Likewise.
18427 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
18428 (pkgdata_MODULES): Added vga.mod and font.mod.
18429 (vga_mod_SOURCES): New variables.
18430 (vga_mod_CFLAGS): Likewise.
18431 (font_mod_SOURCES): Likewise.
18432 (font_mod_CFLAGS): Likewise.
18434 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
18436 * include/pupa/term.h: Include pupa/err.h.
18437 (struct pupa_term): Added init and fini.
18438 Changed the argument of putchar to pupa_uint32_t.
18440 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
18441 (pupa_console_real_putchar): New prototype.
18442 (pupa_console_putchar): Removed.
18443 (pupa_console_checkkey): Exported.
18444 (pupa_console_getkey): Likewise.
18446 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
18449 * kern/term.c (pupa_term_set_current): Rewritten.
18450 (pupa_putchar): Likewise.
18451 (pupa_putcode): New function.
18453 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
18454 (pupa_console_real_putchar): ... this.
18455 (pupa_vga_set_mode): New function.
18456 (pupa_vga_get_font): Likewise.
18458 * normal/command.c: Include pupa/term.h.
18459 (terminal_command): New function.
18460 (pupa_command_init): Register the command "terminal".
18462 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
18463 (DISP_UP): Likewise.
18464 (DISP_RIGHT): Likewise.
18465 (DISP_DOWN): Likewise.
18466 (DISP_HLINE): Likewise.
18467 (DISP_VLINE): Likewise.
18468 (DISP_UL): Likewise.
18469 (DISP_UR): Likewise.
18470 (DISP_LL): Likewise.
18471 (DISP_LR): Likewise.
18473 * term/i386/pc/console.c (pupa_console_putchar): New function.
18475 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
18477 * util/resolve.c (pupa_util_resolve_dependencies): BUG
18478 FIX. Reverse the path_list.
18480 * include/pupa/normal.h: Export pupa_register_command and
18481 pupa_unregister_command.
18483 * hello/hello.c (pupa_cmd_hello): New module.
18484 * conf/i386-pc.rmk: Added hello.mod.
18486 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
18488 * kern/i386/pc/lzo1x.S: New file.
18490 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
18491 (compress_kernel): New variable.
18492 (generate_image): Heavily modified to support compressing a
18493 large part of the core image.
18495 * util/misc.c (pupa_util_read_image): Fix a file descriptor
18497 (pupa_util_load_image): New function.
18499 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
18500 (pupa_compressed_size): New variable.
18501 (codestart): Enable Gate A20 here.
18502 Decompress the compressed part of the core image.
18503 Rearrange the code to put functions and variables which are
18504 required for initialization in the non-compressed part.
18507 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
18510 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
18512 * include/pupa/i386/pc/kernel.h
18513 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
18514 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
18515 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
18516 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
18517 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
18519 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
18521 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
18522 (Utility#rule): Likewise.
18524 * configure.ac: Check if LZO is available.
18526 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
18528 * include/pupa/normal.h: New file.
18529 * include/pupa/setjmp.h: Likewise.
18530 * include/pupa/i386/setjmp.h: Likewise.
18531 * normal/cmdline.c: Likewise.
18532 * normal/command.c: Likewise.
18533 * normal/main.c: Likewise.
18534 * normal/menu.c: Likewise.
18535 * normal/i386/setjmp.S: Likewise.
18537 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
18538 (pupa_rescue_cmd_initrd): Likewise.
18540 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
18543 * kern/i386/pc/startup.S (translation_table): New variable.
18544 (translate_keycode): New function.
18545 (pupa_console_getkey): Call translate_keycode.
18547 * kern/rescue.c (attempt_normal_mode): New function.
18548 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
18549 it failed, print a message.
18551 * kern/mm.c (pupa_real_malloc): Print more information when a
18552 free magic is broken.
18553 (pupa_free): If the first free header is not free actually, set
18556 * kern/main.c (pupa_load_normal_mode): Just load the module
18558 (pupa_main): Don't print the message
18559 "Entering into rescue mode..." here.
18561 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
18563 (pupa_rescue_cmd_initrd): Likewise.
18564 (pupa_rescue_cmd_initrd): Likewise.
18566 * include/pupa/symbol.h (FUNCTION): Specify the type.
18567 (VARIABLE): Likewise.
18569 * include/pupa/err.h (pupa_err_t): Added
18570 PUPA_ERR_UNKNOWN_COMMAND.
18572 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
18573 (pupa_dl_get_prefix): Likewise.
18575 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
18576 Added _chain.mod and _linux.mod instead of chain.mod and
18578 (chain_mod_SOURCES): Renamed to ...
18579 (_chain_mod_SOURCES): ... this.
18580 (chain_mod_CFLAGS): Renamed to ...
18581 (_chain_mod_CFLAGS): ... this.
18582 (linux_mod_SOURCES): Renamed to ...
18583 (_linux_mod_SOURCES): ... this.
18584 (linux_mod_CFLAGS): Renamed to ...
18585 (_linux_mod_CFLAGS): ... this.
18586 (normal_mod_SOURCES): New variable.
18587 (normal_mod_CFLAGS): Likewise.
18588 (normal_mod_ASFLAGS): Likewise.
18590 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
18592 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
18595 * kern/dl.c (pupa_dl_ref): Refer depending modules
18597 (pupa_dl_unref): Unrefer depending modules recursively.
18598 Don't call pupa_dl_unload implicitly, because PUPA can crash if
18599 a module is unloaded before one depending on that module is
18601 (pupa_dl_unload): Unload depending modules explicitly,
18604 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
18606 * include/pupa/i386/pc/linux.h: New file.
18607 * loader/i386/pc/linux.c: Likewise.
18609 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
18611 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
18612 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
18613 of PUPA_CHAINLOADER_BOOT_SECTOR.
18615 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
18616 (pupa_linux_prot_size): New variable.
18617 (pupa_linux_tmp_addr): Likewise.
18618 (pupa_linux_real_addr): Likewise.
18619 (pupa_linux_boot_zimage): New function.
18620 (pupa_linux_boot_bzimage): Likewise.
18622 * kern/i386/pc/init.c (struct mem_region): New structure.
18623 (MAX_REGIONS): New macro.
18624 (mem_regions): New variable.
18625 (num_regions): Likewise.
18626 (pupa_os_area_addr): Likewise.
18627 (pupa_os_area_size): Likewise.
18628 (pupa_lower_mem): Likewise.
18629 (pupa_upper_mem): Likewise.
18630 (add_mem_region): New function.
18631 (compact_mem_regions): Likewise.
18632 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
18633 the size of the conventional memory and that of so-called upper
18634 memory (before the first memory hole).
18635 Instead of adding each found region to free memory, use
18636 add_mem_region and add them after removing overlaps.
18637 Also, add only 1/4 of the upper memory to free memory. The rest
18638 is used for loading OS images. Maybe this is ad hoc, but this
18639 makes it much easier to relocate OS images when booting.
18641 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
18642 (pupa_enter_rescue_mode): Don't register initrd and module.
18644 * kern/mm.c: Include pupa/dl.h.
18646 * kern/main.c: Include pupa/file.h and pupa/device.h.
18648 * kern/loader.c (pupa_loader_load_module_func): Removed.
18649 (pupa_loader_load_module): Likewise.
18651 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
18654 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
18655 (pupa_linux_tmp_addr): Likewise.
18656 (pupa_linux_real_addr): Likewise.
18657 (pupa_linux_boot_zimage): Likewise.
18658 (pupa_linux_boot_bzimage): Likewise.
18660 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
18661 (pupa_upper_mem): Likewise.
18662 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
18663 module is too dangerous.
18665 * include/pupa/loader.h (pupa_os_area_addr): Declared.
18666 (pupa_os_area_size): Likewise.
18667 (pupa_loader_set): Remove the first argument. Loader doesn't
18668 manage modules or initrd any longer.
18669 (pupa_loader_load_module): Removed.
18671 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
18672 (linux_mod_SOURCES): New variable.
18673 (linux_mod_CFLAGS): Likewise.
18675 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
18677 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
18678 the length of a blocklist correctly.
18680 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
18681 Use ioctl only if the OS file is a block device.
18682 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
18683 not very useful for normal files.
18685 * kern/main.c (pupa_set_root_dev): New function.
18686 (pupa_load_normal_mode): Likewise.
18687 (pupa_main): Call those above.
18689 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
18692 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
18694 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
18696 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
18697 (setup): Configure the installed partition information and the
18700 * loader/i386/pc/chainloader.c (my_mod): New variable.
18701 (pupa_chainloader_unload): New function.
18702 (pupa_rescue_cmd_chainloader): Refer itself.
18703 (PUPA_MOD_INIT): Save its own module in MY_MOD.
18705 * kern/i386/pc/startup.S (install_partition): Removed.
18706 (version_string): Likewise.
18707 (config_file): Likewise.
18708 (pupa_install_dos_part): New variable.
18709 (pupa_install_bsd_part): Likewise.
18710 (pupa_prefix): Likewise.
18711 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
18713 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
18715 (make_install_device): New function.
18716 (pupa_machine_init): Set the dl prefix.
18718 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
18719 (buf): Renamed to ...
18720 (linebuf): ... this.
18721 (pupa_rescue_cmd_prefix): New function.
18722 (pupa_rescue_cmd_insmod): Likewise.
18723 (pupa_rescue_cmd_rmmod): Likewise.
18724 (pupa_rescue_cmd_lsmod): Likewise.
18725 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
18728 * kern/mm.c (pupa_memalign): If failed even after invalidating
18729 disk caches, unload unneeded modules and retry.
18731 * kern/misc.c (pupa_memmove): New function.
18732 (pupa_memcpy): Removed.
18733 (pupa_strcpy): New function.
18734 (pupa_itoa): Made static.
18736 * kern/dl.c (pupa_dl_iterate): New function.
18737 (pupa_dl_ref): Likewise.
18738 (pupa_dl_unref): Likewise.
18739 (pupa_dl_unload): Return if succeeded or not.
18740 (pupa_dl_unload_unneeded): New function.
18741 (pupa_dl_unload_all): Likewise.
18742 (pupa_dl_init): Renamed to ...
18743 (pupa_dl_set_prefix): ... this.
18744 (pupa_dl_get_prefix): New function.
18746 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
18747 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
18748 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
18749 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
18750 (pupa_install_dos_part): Declared.
18751 (pupa_install_bsd_part): Likewise.
18752 (pupa_prefix): Likewise.
18753 (pupa_boot_drive): Likewise.
18755 * include/pupa/types.h: Fix a typo.
18757 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
18759 (pupa_memmove): Declared.
18760 (pupa_strcpy): Likewise.
18762 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
18763 pupa_mod_init takes one argument, its own module.
18764 (pupa_dl_unload_unneeded): Declared.
18765 (pupa_dl_unload_all): Likewise.
18766 (pupa_dl_ref): Likewise.
18767 (pupa_dl_unref): Likewise.
18768 (pupa_dl_iterate): Likewise.
18769 (pupa_dl_init): Renamed to ...
18770 (pupa_dl_set_prefix): ... this.
18771 (pupa_dl_get_prefix): Declared.
18773 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
18774 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
18776 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
18777 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
18779 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
18780 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
18782 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
18784 * util/i386/pc/pupa-setup.c (setup): Define the internal
18785 function find_first_partition_start at the top level, because GCC
18786 3.0.x cannot compile internal functions in deeper scopes
18788 (find_root_device): Use lstat instead of stat.
18789 Don't follow symbolic links.
18790 Fix the path-constructing code.
18792 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
18793 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
18794 by a BLKGETSIZE ioctl first, because block devices don't fill
18795 the member st_mode of the structure stat on Linux.
18796 [__linux__] (linux_find_partition): Use a temporary buffer
18797 REAL_DEV for the working space. Copy it to DEV before returning.
18798 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
18799 buffer cache consistent.
18800 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
18801 strncmp. The previous value was merely wrong.
18802 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
18804 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
18805 FAT size is 12. The previous value was merely wrong.
18807 * kern/main.c (pupa_main): Don't split the starting message from
18810 * kern/term.c (pupa_putchar): Put CR after LF instead of before
18811 LF, because BIOS goes crazy about character attributes in this
18814 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
18816 * include/i386/pc/util/biosdisk.h: New file.
18817 * util/i386/pc/biosdisk.c: Likewise.
18818 * util/i386/pc/pupa-setup.c: Likewise.
18820 * Makefile.in (INCLUDE_DISTFILES): Added
18821 include/pupa/i386/pc/util/biosdisk.h.
18822 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
18823 directory util/i386/pc.
18824 (install-local): Added a rule for sbin_UTILITIES.
18825 (uninstall): Likewise.
18827 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
18829 * util/misc.c (xrealloc): New function.
18830 (pupa_malloc): Likewise.
18831 (pupa_free): Likewise.
18832 (pupa_realloc): Likewise.
18833 (pupa_stop): Likewise.
18834 (pupa_putchar): Likewise.
18836 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
18838 * include/pupa/util/misc.h (xrealloc): Declared.
18840 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
18842 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
18843 (PUPA_BOOT_MACHINE_BPB_END): ... this.
18845 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
18846 [PUPA_UTIL] (pupa_fat_fini): Likewise.
18848 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
18849 way should be implemented.
18850 [PUPA_UTIL] (pupa_fat_fini): Likewise.
18852 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
18853 the size of NAME for safety.
18854 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
18857 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
18858 (pupa_setup_SOURCES): Likewise.
18860 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
18862 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
18864 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
18865 bunch of pushl's from pusha, because this destroys the return
18868 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
18870 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
18871 This means that any missing prototypes could be fatal. Also, you
18872 must take care when writing assembly code. See the comments at
18873 the beginning of startup.S, for more details.
18875 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
18876 compilation mechanism.
18877 (pupa_chainloader_real_boot): Likewise.
18878 (pupa_biosdisk_rw_int13_extensions): Likewise.
18879 (pupa_biosdisk_rw_standard): Likewise.
18880 (pupa_biosdisk_check_int13_extensions): Likewise.
18881 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
18882 (pupa_biosdisk_get_diskinfo_standard): Likewise.
18883 (pupa_get_memsize): Likewise.
18884 (pupa_get_mmap_entry): Likewise.
18885 (pupa_console_putchar): Likewise.
18886 (pupa_console_setcursor): Likewise.
18887 (pupa_getrtsecs): Use pushl instead of push.
18889 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
18890 memory instead of the stack for a mmap entry, because some
18891 BIOSes may ignore the maximum size and overflow.
18893 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
18895 * genmk.rb (PModule#rule): Compile automatically generated
18896 sources with module-specific CFLAGS as well as other sources.
18898 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
18900 * configure.ac: Check ld.
18901 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
18902 respectively, before checking endianness and sizes.
18904 * Makefile.in (LD): New variable.
18906 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
18908 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
18910 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
18912 * Changelog: New file.