1 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
3 * docs/grub.texi: Major overhaul. Remove all sections that are
4 specific to GRUB Legacy, or mostly composed of Legacy-specific
7 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9 * docs/version.texi: New file. Provides version information for
12 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14 * docs/grub.texi: Update CVS information to SVN.
15 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
17 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
19 * util/grub-mkconfig.in: Remove a wrong `fi'.
21 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
23 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
24 (grub_jfs_uuid): New function.
25 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
27 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29 * util/grub-mkconfig_lib.in (font_path): Move the functionality
31 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
32 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
34 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
37 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
40 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
41 not just "vmlinu[zx]".
43 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
46 * util/grub.d/10_linux.in (find_latest): Moved from here ...
47 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
50 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
52 * util/grub.d/10_freebsd.in: Use an absolute device path for
53 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
55 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
57 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
58 handling of multiple abstraction modules.
60 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
62 Fix a bug resulting in black screen when loading Linux using a
65 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
68 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
69 (grub_vbe_bios_getset_dac_palette_width): New function.
70 (grub_vbe_bios_get_dac_palette_width)
71 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
72 grub_vbe_bios_getset_dac_palette_width()).
74 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
75 check for return status.
76 (grub_vbe_get_video_mode_info): When getting information for a packed
77 mode (<= 8 bpp), obtain DAC palette width using
78 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
79 {red,green,blue}_mark_size.
81 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
83 * commands/search.c (options): Fix help output to match actual code.
85 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
87 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
90 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
92 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
95 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
97 Support Apple partition map with sector size different from 512 bytes.
99 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
100 (apple_partition_map_iterate): Respect 'aheader.blocksize'
101 and 'apart.partmap_size'.
103 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
104 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
108 * commands/i386/cpuid.c (options): New variable.
109 (grub_cmd_cpuid): Return real error.
110 (GRUB_MOD_INIT(cpuid)): Declare options.
112 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
114 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
117 2009-07-31 Bean <bean123ch@gmail.com>
119 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
121 (grub_fshelp_node): Move inode field to the end.
122 (grub_xfs_data): Remove inode field.
123 (grub_xfs_inode_block): Calculate inode size using sblock.
124 (grub_xfs_inode_offset): Likewise.
125 (grub_xfs_read_inode): Calculate inode size using sblock.
126 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
127 (grub_xfs_iterate_dir): Calculate inode size using sblock.
128 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
130 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
131 not accessible when data is null.
132 (grub_xfs_open): Likewise.
134 2009-07-31 Bean <bean123ch@gmail.com>
136 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
137 Don't change pv->disk if it's already set.
139 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
140 (grub_raid_register): ... here.
141 (grub_raid_rescan): Removed.
143 * include/grub/raid.h (grub_raid_rescan): Removed.
145 * util/grub-fstest.c: Remove include file <grub/raid.h>.
146 (fstest): Replace grub_raid_rescan with module fini function followed
149 * util/grub-probe.c: Add include file <grub/raid.h>.
150 (probe_raid_level): New function.
151 (probe): Detect abstraction by walking the disk device, support two
152 level of abstraction (LVM on RAID) when detecting partition map.
154 2009-07-31 Pavel Roskin <proski@gnu.org>
156 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
157 to grub_zalloc(), it was erroneous.
158 Reported by Bean <bean123ch@gmail.com>
160 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
162 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
163 embeding zone, not only the first one.
165 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
167 * term/gfxterm.c (clear_char): New function.
168 (grub_virtual_screen_setup): Use clear_char.
169 (scroll_up): Likewise.
170 (grub_virtual_screen_cls): Likewise.
172 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
174 * util/deviceiter.c (get_acceleraid_disk_name): New static
176 (grub_util_iterate_devices): Handle Accelraid devices.
177 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
179 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
181 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
182 separator for the suggested gfxpayload string (';' collides with the
183 parser and needs escaping).
185 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
187 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
188 Clear direction flag before jumping to OS.
189 (grub_multiboot2_real_boot): Likewise.
191 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
193 * util/i386/pc/grub-install: Fix parsing of --disk-module
196 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
198 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
201 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
203 * util/grub-mkconfig.in (package_version): New variable.
204 Use it do display the version.
206 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
208 * kern/file.c (grub_file_open): Revert to previous check with
211 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
213 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
214 from help line. It's out of sync with code.
216 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
218 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
219 entries on failed boot.
221 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
223 * kern/file.c (grub_file_open): Fix an error check.
225 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
227 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
228 partition map couldn't be identified.
230 2009-07-23 Pavel Roskin <proski@gnu.org>
232 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
233 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
234 case of little endian words becomes just an optimization.
235 Respect const modifier.
236 (md5_final): Use code that doesn't depend on endianess.
238 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
239 to avoid loss of upper bits if align is unsigned and shorter
242 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
246 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
247 (grub_ufs_uuid): New function.
248 (grub_ufs_fs): add .uuid
250 2009-07-21 Pavel Roskin <proski@gnu.org>
252 * kern/dl.c (grub_dl_check_header): Make static.
254 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
256 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
257 add drivemap for Vista. It breaks Windows 7.
259 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
261 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
264 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
268 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
269 (grub_fstest_SOURCES): Likewise.
270 (pkglib_MODULES): Add befs.mod.
271 (befs_mod_SOURCES): New variable.
272 (befs_mod_CFLAGS): Likewise.
273 (befs_mod_LDFLAGS): Likewise.
274 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
275 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
276 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
277 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
278 (grub_setup_SOURCES): Likewise.
279 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
280 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
281 (grub_setup_SOURCES): Likewise.
282 * fs/befs.c: New file.
283 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
284 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
285 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
286 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
287 (B_KEY_INDEX_ALIGN): New declaration.
288 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
289 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
290 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
291 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
292 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
293 (grub_afs_mount) [MODE_BFS]: Likewise.
294 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
295 (grub_afs_fs): Use GRUB_AFS_FSNAME
296 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
297 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
298 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
299 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
301 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
303 * util/getroot.c (find_root_device): Add support for MacOSX.
304 * util/hostdisk.c: Likewise.
306 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
308 * font/font.c (find_glyph): Check whether a font is present to avoid
311 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
313 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
315 2009-07-20 Pavel Roskin <proski@gnu.org>
317 * configure.ac: Trim excessively wordy excuses.
319 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
321 Add symlink, mtime and label support to AtheFS.
323 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
324 (grub_afs_iterate_dir): Handle symlinks.
325 (grub_afs_open): Use grub_afs_read_symlink.
326 (grub_afs_dir): Likewise.
328 (grub_afs_label): New function.
329 (grub_afs_fs): Add grub_afs_label.
330 (grub_afs_read_symlink): New function.
332 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
336 * fs/afs.c: Fix comments style.
337 (grub_afs_blockrun): Declare as packed.
338 (grub_afs_datastream): Likewise.
339 (grub_afs_bnode): Likewise.
340 (grub_afs_btree): Likewise.
341 (grub_afs_sblock): Likewise.
342 Declare `name' as char.
343 (grub_afs_inode): Declare as packed.
344 Change void *vnode to grub_uint32_t unused.
345 (grub_afs_iterate_dir): Check that key_size is positive.
346 (grub_afs_mount): Don't read superblock twice.
347 (grub_afs_dir): Don't free node in case of error,
348 grub_fshelp_find_file already handles this.
349 (grub_afs_open): Likewise.
351 2009-07-19 Pavel Roskin <proski@gnu.org>
353 * Makefile.in: Remove LIBLZO and enable_lzo.
354 * conf/i386-pc.rmk: Remove lzo support.
355 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
356 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
358 * kern/i386/pc/lzo1x.S: Remove.
359 * kern/i386/pc/startup.S: Remove lzo support.
360 * util/i386/pc/grub-mkimage.c: Likewise.
362 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
364 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
365 * fs/xfs.c (grub_xfs_dir): Likewise.
366 * fs/afs.c (grub_afs_dir): Likewise.
367 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
368 (grub_iso9660_open): Likewise.
369 * fs/jfs.c (grub_jfs_open): Likewise.
370 * fs/ext2.c (grub_ext2_dir): Likewise.
371 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
372 * script/sh/lexer.c (grub_script_yylex): Likewise.
374 2009-07-16 Pavel Roskin <proski@gnu.org>
376 * configure.ac: Never add "-c" to CFLAGS.
378 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
380 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
381 grub_cv_cc_efiemu should be used.
383 * configure.ac: Typo fixes.
385 * kern/mm.c (grub_zalloc): New function.
386 (grub_debug_zalloc): Likewise.
387 * include/grub/mm.h: Declare grub_zalloc() and
389 * util/misc.c (grub_zalloc): New function.
390 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
391 instead of grub_malloc(), remove unneeded initializations.
392 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
393 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
394 * commands/parttool.c (grub_cmd_parttool): Likewise.
395 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
396 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
397 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
398 * disk/usbms.c (grub_usbms_finddevs): Likewise.
399 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
400 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
401 (grub_cmd_efiemu_pnvram): Likewise.
402 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
403 * fs/iso9660.c (grub_iso9660_mount): Likewise.
404 (grub_iso9660_iterate_dir): Likewise.
405 * fs/jfs.c (grub_jfs_opendir): Likewise.
406 * fs/ntfs.c (list_file): Likewise.
407 (grub_ntfs_mount): Likewise.
408 * kern/disk.c (grub_disk_open): Likewise.
409 * kern/dl.c (grub_dl_load_core): Likewise.
410 * kern/elf.c (grub_elf_file): Likewise.
411 * kern/env.c (grub_env_context_open): Likewise.
412 (grub_env_set): Likewise.
413 (grub_env_set_data_slot): Likewise.
414 * kern/file.c (grub_file_open): Likewise.
415 * kern/fs.c (grub_fs_blocklist_open): Likewise.
416 * loader/i386/multiboot.c (grub_module): Likewise.
417 * loader/xnu.c (grub_xnu_create_key): Likewise.
418 (grub_xnu_create_value): Likewise.
419 * normal/main.c (grub_normal_add_menu_entry): Likewise.
420 (read_config_file): Likewise.
421 * normal/menu_entry.c (make_screen): Likewise.
422 * partmap/sun.c (sun_partition_map_iterate): Likewise.
423 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
424 * script/sh/script.c (grub_script_parse): Likewise.
425 * video/bitmap.c (grub_video_bitmap_create): Likewise.
426 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
427 * video/readers/png.c (grub_png_output_byte): Likewise.
428 (grub_video_reader_png): Likewise.
430 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
432 Enable all targets that can be built by default
434 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
435 grub-mkfont and grub-fstest if they can be built
437 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
439 Fix hang and segmentation fault in grub-emu-usb
441 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
442 * util/usb.c (grub_libusb_devices): likewise
443 (grub_libusb_init): rename to ...
444 (GRUB_MOD_INIT (libusb)):...this
445 (grub_libusb_fini): rename to ..
446 (GRUB_MOD_FINI (libusb)):...this
447 * disk/usbms.c (grub_usbms_transfer): fix retry logic
448 * include/grub/disk.h (grub_raid_init): removed, it's useless
449 (grub_raid_fini): likewise
450 (grub_lvm_init): likewise
451 (grub_lvm_fini): likewise
452 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
455 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
459 * Makefile.in (LIBUSB): new macro
460 * genmk.rb (Utility/print_tail): new method
461 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
462 (top level): call util.print_tail at the end.
464 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
466 Make FreeBSD accept zpool.cache
468 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
469 type is /boot/zfs/zpool.cache
471 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
475 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
476 correct wrong typedef
477 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
479 2009-07-15 Pavel Roskin <proski@gnu.org>
481 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
482 * kern/disk.c (struct grub_disk_cache): Likewise.
484 * commands/probe.c (options): Typo fix.
486 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
487 Increase to 0x5a to accommodate FAT32. Adjust other offsets
489 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
491 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
492 the end of "Error" to make the message more readable.
494 * boot/i386/pc/boot.S (kernel_segment): Remove.
495 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
498 * boot/i386/pc/boot.S (boot_version): Remove.
499 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
502 * include/grub/i386/pc/boot.h: Sort all offsets.
503 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
504 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
505 * boot/i386/pc/boot.S: Assert location of every offset listed in
506 include/grub/i386/pc/boot.h.
508 2009-07-13 Pavel Roskin <proski@gnu.org>
510 * include/grub/i386/coreboot/machine.h: Rename
511 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
512 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
513 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
515 * kern/dl.c: Force native word size to suppress warnings when
518 * kern/device.c (grub_device_iterate): Change struct part_ent to
519 hold the name, not a pointer to it. Use one grub_malloc() per
520 partition, not two. Free partition_name if grub_malloc() fails.
521 Set ents to NULL only before grub_partition_iterate() is called.
523 2009-07-11 Bean <bean123ch@gmail.com>
525 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
528 2009-07-10 Bean <bean123ch@gmail.com>
529 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
531 * kern/ieee1275/openfw.c (grub_children_iterate)
532 (grub_devalias_iterate): Fix size evaluation for property or path
533 strings, which was broken since r2132.
535 2009-07-07 Pavel Roskin <proski@gnu.org>
537 * commands/search.c (search_file): Merge into ...
538 (search_fs): ... this. Accept search type as argument.
539 (grub_cmd_search): Pass search type to search_fs().
541 * include/grub/util/console.h: New file.
542 * util/console.c: Use it instead of grub/machine/console.h.
543 * util/grub-emu.c: Likewise.
545 * lib/arg.c (find_long_option): Remove.
546 (find_long): Add `len' argument, make `s' const char *.
547 (grub_arg_parse): Parse long options in place, not in a
550 2009-07-06 Pavel Roskin <proski@gnu.org>
552 * commands/search.c (search_fs): Fix potential NULL pointer
555 * commands/search.c (search_fs): Replace QUID macro with quid_fn
558 2009-07-06 Daniel Mierswa <impulze@impulze.org>
560 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
563 2009-07-05 Pavel Roskin <proski@gnu.org>
565 * include/grub/i386/linux.h (struct linux_kernel_params):
566 Restore padding3, it's still needed.
568 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
570 * util/osdetect.lua: Likewise.
572 2009-07-05 Bean <bean123ch@gmail.com>
574 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
576 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
577 (grub_lua_getenv): Likewise.
578 (grub_lua_setenv): Likewise.
579 (save_errno): New function.
580 (push_result): Likewise.
581 (grub_lua_enum_device): Likewise.
582 (grub_lua_enum_file): Likewise.
583 (grub_lua_file_open): Likewise.
584 (grub_lua_file_close): Likewise.
585 (grub_lua_file_seek): Likewise.
586 (grub_lua_file_read): Likewise.
587 (grub_lua_file_getline): Likewise.
588 (grub_lua_file_getsize): Likewise.
589 (grub_lua_file_getpos): Likewise.
590 (grub_lua_file_eof): Likewise.
591 (grub_lua_file_exist): Likewise.
592 (grub_lua_add_menu): Likewise.
594 * script/lua/grub_lua.h (isupper): New inline function.
597 (isxdigit): Likewise.
598 (strcspn): Change to normal function.
599 (strpbkr): New function declaration.
602 * script/lua/grub_main.c (scan_str): New function.
607 * script/lua/linit.c (lualibs): Enable the string library.
609 * util/osdetect.lua: New file.
611 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
613 * include/grub/i386/linux.h (struct linux_kernel_params): Add
614 `capabilities' member.
616 2009-07-02 Pavel Roskin <proski@gnu.org>
618 * genparttoollist.sh: Add missing newline at the end.
620 2009-07-01 Pavel Roskin <proski@gnu.org>
622 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
624 * util/hostdisk.c (open_device): Remove `const' from
625 `sysctl_size', as sysctlbyname() can change it (in this case it
626 doesn't actually happen).
628 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
629 using signed long int constants.
631 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
632 constant to avoid a warning on FreeBSD.
634 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
637 * Makefile.in: Install include/grub/machine symlink.
639 * Makefile.in: When installing symlinks, use "cp -fR", which
640 works on FreeBSD and MacOSX.
641 From Yves Blusseau <cl7m42e02@sneakemail.com>
643 * kern/dl.c (grub_dl_resolve_symbol): Make static.
644 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
646 * util/misc.c: Move grub_reboot() and grub_halt() ...
647 * util/grub-emu.c: ... here. Make main_env static.
648 * include/grub/util/misc.h: Remove main_env.
650 * kern/mm.c: Use correct format to print size_t.
652 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
653 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
654 * kern/powerpc/dl.c: Likewise.
655 * kern/sparc64/dl.c: Likewise.
656 * kern/x86_64/dl.c: Likewise.
658 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
660 Fix grub-emu build on sparc64-ieee1275.
662 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
663 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
665 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
667 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
668 (grub_reboot, grub_halt): New functions.
670 * util/i386/pc/misc.c: Delete. Update all users.
671 * util/sparc64/ieee1275/misc.c: Likewise.
672 * util/powerpc/ieee1275/misc.c: Likewise.
674 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
676 * conf/i386.rmk (setjmp_mod_SOURCES)
677 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
678 * conf/common.rmk (setjmp_mod_SOURCES)
679 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
680 to use $(target_cpu).
681 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
682 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
683 * conf/powerpc-ieee1275.rmk: Likewise.
684 * conf/sparc64-ieee1275.rmk: Likewise.
686 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
687 $(target_cpu) for kern/$(target_cpu)/dl.c.
688 * conf/i386-efi.rmk: Likewise.
689 * conf/i386-ieee1275.rmk: Likewise.
690 * conf/x86_64-efi.rmk: Likewise.
691 * conf/i386-coreboot.rmk: Likewise.
692 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
693 $(target_cpu) for kern/$(target_cpu)/dl.c and for
694 kern/$(target_cpu)/cache.S.
695 * conf/sparc64-ieee1275.rmk: Likewise.
697 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
699 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
700 type to `grub_uint8_t', and adjust `padding9' accordingly.
702 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
704 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
706 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
707 assembly in final jump, using register constraints.
709 (grub_linux_boot): For text mode, initialize `have_vga' using
710 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
712 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
713 right before the final jump.
715 Set `video_mode' to 0x3.
717 Document initialization of `video_page', `video_mode' and
720 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
722 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
723 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
724 and set GRUB_LINUX_FLAG_QUIET appropriately.
726 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
728 Fix build on Debian / sparc.
730 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
732 2009-06-28 Pavel Roskin <proski@gnu.org>
734 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
737 * util/grub.d/10_linux.in: Match SUSE style initrd names.
739 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
741 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
744 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
748 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
749 file can't be opened. grub_file_open() is already supposed to set
750 grub_errno / grub_errmsg appropriately.
751 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
753 2009-06-27 Pavel Roskin <proski@gnu.org>
754 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
756 * include/grub/dl.h: Include grub/elf.h.
757 (struct grub_dl): Add symtab field.
758 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
759 GRUB_MODULES_MACHINE_READONLY.
760 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
761 of the header for read-only modules.
762 (grub_dl_unload): Free mod->symtab for read-only modules.
763 * kern/i386/dl.c: Use mod->symtab.
764 * kern/powerpc/dl.c: Likewise.
765 * kern/sparc64/dl.c: Likewise.
766 * kern/x86_64/dl.c: Likewise.
768 * conf/i386-qemu.rmk: New file.
769 * kern/i386/qemu/startup.S: Likewise.
770 * kern/i386/qemu/mmap.c: Likewise.
771 * boot/i386/qemu/boot.S: Likewise.
772 * include/grub/i386/qemu/time.h: Likewise.
773 * include/grub/i386/qemu/serial.h: Likewise.
774 * include/grub/i386/qemu/kernel.h: Likewise.
775 * include/grub/i386/qemu/console.h: Likewise.
776 * include/grub/i386/qemu/boot.h: Likewise.
777 * include/grub/i386/qemu/init.h: Likewise.
778 * include/grub/i386/qemu/machine.h: Likewise.
779 * include/grub/i386/qemu/loader.h: Likewise.
780 * include/grub/i386/qemu/memory.h: Likewise.
782 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
783 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
784 [qemu] (pkglib_IMAGES): Add `boot.img'.
785 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
786 [qemu] (boot_img_FORMAT): New variables.
787 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
788 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
789 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
790 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
791 [qemu] (kernel_img_FORMAT): New variables.
793 * configure.ac: Recognise `i386-qemu'.
795 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
796 (for no compression).
797 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
798 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
799 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
800 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
803 2009-06-27 Pavel Roskin <proski@gnu.org>
805 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
807 * efiemu/prepare32.c: Likewise.
808 * efiemu/prepare64.c: Likewise.
810 2009-06-26 Pavel Roskin <proski@gnu.org>
812 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
813 * include/grub/elf.h: Define symbols without "32" or "64" based
814 on GRUB_TARGET_WORDSIZE.
815 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
816 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
818 * efiemu/loadcore64.c: Likewise.
819 * loader/i386/bsd32.c: Likewise.
820 * loader/i386/bsd64.c: Likewise.
821 * kern/dl.c: Remove own ELF definitions.
822 * util/i386/efi/grub-mkimage.c: Likewise.
824 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
826 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
827 segment 0x0 unconditionally, because the reference generated by
828 GAS is an absolute address.
830 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
832 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
833 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
835 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
837 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
838 indexes. Check for -f explicitly.
839 (search_file): Improve error message.
840 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
842 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
844 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
845 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
847 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
849 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
850 * conf/i386-ieee1275.rmk: Likewise.
851 * conf/i386-coreboot.rmk: Likewise.
853 * kern/i386/pc/startup.S (grub_stop): Remove function.
854 * kern/i386/ieee1275/startup.S: Likewise.
855 * kern/i386/coreboot/startup.S: Likewise.
856 * kern/i386/misc.S (grub_stop): New function.
858 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
860 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
861 * kern/i386/realmode.S (real_to_prot): ... to here.
863 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
865 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
867 (kernel_elf_SOURCES): Rename to ...
868 (kernel_img_SOURCES): ... this.
869 (kernel_elf_HEADERS): Rename to ...
870 (kernel_img_HEADERS): ... this. Update all users.
871 (kernel_elf_ASFLAGS): Rename to ...
872 (kernel_img_ASFLAGS): ... this.
873 (kernel_elf_CFLAGS): Rename to ...
874 (kernel_img_CFLAGS): ... this.
875 (kernel_elf_LDFLAGS): Rename to ...
876 (kernel_img_LDFLAGS): ... this.
877 * conf/i386-coreboot.rmk: Likewise.
878 * conf/powerpc-ieee1275.rmk: Likewise.
880 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
883 2009-06-21 Pavel Roskin <proski@gnu.org>
885 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
886 to match nested functions.
887 * loader/sparc64/ieee1275/linux.c: Likewise.
889 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
891 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
893 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
896 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
898 Fix asm file handling on ELF, and remove workarounds.
900 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
901 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
902 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
903 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
905 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
909 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
910 and loader/i386/bsd64.c
911 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
912 (FREEBSD_MODTYPE_ELF_MODULE): New definition
913 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
914 (grub_freebsd_load_elfmodule32): New declaration
915 (grub_freebsd_load_elfmoduleobj64): Likewise
916 (grub_freebsd_load_elf_meta32): Likewise
917 (grub_freebsd_load_elf_meta64): Likewise
918 (grub_freebsd_add_meta): Likewise
919 (grub_freebsd_add_meta_module): Likewise
920 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
921 (grub_freebsd_add_meta_module): Likewise and move module-specific
922 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
923 (grub_cmd_freebsd): Add elf-kernel specific parts
924 based on grub_freebsd_add_meta_module
925 (grub_cmd_freebsd_module): Add type parsing moved from
926 grub_freebsd_add_meta_module
927 (grub_cmd_freebsd_module_elf): New function
928 (cmd_freebsd_module_elf): New variable
929 (GRUB_MOD_INIT): Register freebsd_module_elf
930 * loader/i386/bsd32.c: New file
931 * loader/i386/bsd64.c: Likewise
932 * loader/i386/bsdXX.c: Likewise
933 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
934 (grub_elf64_load): Likewise
935 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
937 (grub_elf64_load_hook_t): Likewise
939 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
941 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
943 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
944 don't write a menu entry for recovery mode.
946 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
948 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
949 after it's no longer needed.
951 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
953 * include/grub/i386/loader.h (grub_linux_prot_size)
954 (grub_linux_tmp_addr, grub_linux_real_addr)
955 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
957 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
958 common grub_util_info() call to ...
959 (generate_image): ... here.
960 Fix use of uninitialized memory, comparison of signed with
961 unsigned integers and memory leak.
962 Remove bogus module address message.
964 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
966 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
968 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
970 2009-06-19 Pavel Roskin <proski@gnu.org>
972 * configure.ac: Remove stray AC_MSG_CHECKING.
974 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
976 * disk/scsi.c (grub_scsi_open): use continue instead of big if
978 2009-06-18 Pavel Roskin <proski@gnu.org>
980 * conf/common.rmk: Add fs_file.mod.
981 * disk/fs_file.c: New file.
982 * include/grub/disk.h (enum grub_disk_dev_id): Add
983 GRUB_DISK_DEVICE_FILE_ID.
985 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
987 Fix build with Apple's toolchain. Part 2
989 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
992 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
994 Fix build with Apple's toolchain. Part 1
996 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
998 * configure.ac: remove a leftover AC_MSG_RESULT
999 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
1002 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1006 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
1007 (decomp_block): initialize ch
1008 use grub_memcpy instead of memcpy
1010 2009-06-17 Pavel Roskin <proski@gnu.org>
1012 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
1013 version, use declarations needed to use vga_text as the startup
1016 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
1017 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
1019 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
1020 and grub_at_keyboard_fini(), it's done on module load and
1023 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
1025 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
1026 file can't be found.
1027 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
1029 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1031 Fix newline handling
1033 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
1034 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
1035 (grub_script_yylex): don't segfault on unterminated script
1036 newline terminates command and variable
1038 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1040 avoid double grub_adjust_range call. Bug reported by David Simner
1042 * kern/disk.c (grub_disk_write): change to raw disk access before
1045 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
1047 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
1048 spaces, for the benefit of help2man.
1049 * util/i386/efi/grub-mkimage.c (usage): Likewise.
1051 2009-06-16 Pavel Roskin <proski@gnu.org>
1053 * kern/i386/halt.c: Include grub/machine/init.h.
1054 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
1056 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
1058 * util/grub.d/30_os-prober.in: Use ${root} in the generated
1061 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
1063 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
1066 2009-06-16 Pavel Roskin <proski@gnu.org>
1068 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
1069 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
1070 save %dx, we only need %dl and we never change it.
1071 * boot/i386/pc/cdboot.S: Don't set the root drive.
1072 * boot/i386/pc/pxeboot.S: Likewise.
1073 * include/grub/i386/pc/boot.h: Remove
1074 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
1075 GRUB_BOOT_MACHINE_DRIVE_CHECK.
1076 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
1077 * kern/i386/pc/init.c (make_install_device): Remove references
1079 * kern/i386/pc/startup.S: Likewise.
1080 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
1082 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1086 * commands/xnu_uuid.c: new file
1087 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
1088 (xnu_uuid_mod_SOURCES): new variable
1089 (xnu_uuid_mod_CFLAGS): likewise
1090 (xnu_uuid_mod_LDFLAGS): likewise
1091 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
1092 * conf/i386-ieee1275.rmk: likewise
1093 * conf/i386-pc.rmk: likewise
1094 * conf/powerpc-ieee1275.rmk: likewise
1095 * conf/sparc64-ieee1275.rmk: likewise
1096 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
1098 2009-06-16 Pavel Roskin <proski@gnu.org>
1100 * configure.ac: Avoid '==' in test command, it's not portable.
1102 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1106 * commands/probe.c: new file
1107 * conf/common.rmk (pkglib_MODULES): add probe.mod
1108 (probe_mod_SOURCES): new variable
1109 (probe_mod_CFLAGS): likewise
1110 (probe_mod_LDFLAGS): likewise
1111 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
1112 * conf/i386-ieee1275.rmk: likewise
1113 * conf/i386-pc.rmk: likewise
1114 * conf/powerpc-ieee1275.rmk: likewise
1115 * conf/sparc64-ieee1275.rmk: likewise
1117 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1119 Fix handling of string like \"hello\" and "a
1122 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
1123 (grub_script_yylex): fix parsing of quoting, escaping and newline
1125 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1127 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
1130 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
1132 * util/grub-mkconfig.in: Fix parsing of --output option.
1134 2009-06-12 Pavel Roskin <proski@gnu.org>
1136 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
1137 genmk.rb don't need to be generated or installed.
1139 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1141 * commands/i386/pc/drivemap_int13h.S: add more comments
1143 2009-06-11 Pavel Roskin <proski@gnu.org>
1145 * Makefile.in (uninstall): Uninstall manuals.
1147 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
1148 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
1149 and update-grub_lib in two places.
1150 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
1152 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
1155 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
1156 `entry_lo' to fix variable shadowing.
1158 2009-06-11 Christian Franke <franke@computer.org>
1160 * kern/misc.c (__enable_execute_stack): Add missing return type
1161 to prevent gcc warning.
1163 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
1165 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
1167 2009-06-11 Pavel Roskin <proski@gnu.org>
1169 * Makefile.in: Don't rely on any scripts being executable.
1170 Always use $(SHELL) to run shell scripts.
1172 * configure.ac: Always define ___main if using -nostdlib. This
1173 fixes tests on Cygwin.
1175 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
1179 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
1180 is in bytes and not in blocks
1182 2009-06-11 Pavel Roskin <proski@gnu.org>
1184 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
1187 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
1189 * util/grub.d/30_os-prober.in: Fix a comment. Source
1190 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
1191 to set the root device. Place drivemap command in the generated
1194 2009-06-11 Pavel Roskin <proski@gnu.org>
1196 * configure.ac: Remove host_m32. Issues with 64-bit utilities
1197 have long been resolved.
1199 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
1201 * util/grub.d/10_linux.in: Capitalise "Linux".
1203 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
1205 2009-06-11 Pavel Roskin <proski@gnu.org>
1207 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
1208 fix a gcc warning and ensure that the function won't ever exit.
1210 * kern/i386/ieee1275/init.c: Add missing prototype for
1213 * loader/ieee1275/multiboot2.c [__i386__]: Include
1214 grub/cpu/multiboot.h.
1216 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
1217 casts to short - they are not portable and cause warnings. Fix
1218 use of uninitialized values in input_buf. Use ARRAY_SIZE.
1220 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1224 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
1226 (grub_get_root_biosnumber_saved): new variable
1227 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
1228 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
1229 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
1230 %dx after the call if necessary
1231 * conf/common.rmk (pkglib_MODULES): remove boot.mod
1232 (boot_mod_SOURCES): remove
1233 (boot_mod_CFLAGS): remove
1234 (boot_mod_LDFLAGS): remove
1235 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
1236 (boot_mod_SOURCES): new variable
1237 (boot_mod_CFLAGS): likewise
1238 (boot_mod_LDFLAGS): likewise
1239 * conf/i386-efi.rmk: likewise
1240 * conf/i386-ieee1275.rmk: likewise
1241 * conf/i386-pc.rmk: likewise
1242 * conf/powerpc-ieee1275.rmk: likewise
1243 * conf/sparc64-ieee1275.rmk: likewise
1244 * conf/x86_64-efi.rmk: likewise
1245 * include/grub/i386/pc/biosnum.h: new file
1246 * lib/i386/pc/biosnum.c: likewise
1247 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
1248 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
1249 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
1251 2009-06-10 Pavel Roskin <proski@gnu.org>
1253 * io/gzio.c (test_header): Don't reuse one buffer for all data.
1254 Use separate variables. Read only the file size at the end, but
1255 not the checksum that we don't use.
1257 * kern/file.c (grub_file_read): Use void pointer for the buffer.
1260 * kern/ieee1275/openfw.c: Remove libc includes.
1261 * kern/ieee1275/cmain.c: Likewise.
1262 * include/grub/ieee1275/ieee1275.h: Likewise.
1264 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
1267 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
1269 * Makefile.in: Remove all trailing whitespace.
1270 * conf/i386-pc.rmk: Likewise.
1271 * conf/powerpc-ieee1275.rmk: Likewise.
1272 * conf/sparc64-ieee1275.rmk: Likewise.
1273 * docs/grub.texi: Likewise.
1274 * docs/texinfo.tex: Likewise.
1275 * disk/fs_uuid.c: Likewise.
1276 * disk/lvm.c: Likewise.
1277 * disk/scsi.c: Likewise.
1278 * disk/ata.c: Likewise.
1279 * disk/ieee1275/ofdisk.c: Likewise.
1280 * disk/i386/pc/biosdisk.c: Likewise.
1281 * disk/host.c: Likewise.
1282 * disk/raid.c: Likewise.
1283 * disk/efi/efidisk.c: Likewise.
1284 * disk/usbms.c: Likewise.
1285 * disk/memdisk.c: Likewise.
1286 * disk/loopback.c: Likewise.
1287 * kern/powerpc/dl.c: Likewise.
1288 * kern/device.c: Likewise.
1289 * kern/dl.c: Likewise.
1290 * kern/sparc64/dl.c: Likewise.
1291 * kern/ieee1275/ieee1275.c: Likewise.
1292 * kern/term.c: Likewise.
1293 * kern/fs.c: Likewise.
1294 * kern/i386/dl.c: Likewise.
1295 * kern/i386/pc/startup.S: Likewise.
1296 * kern/i386/pc/init.c: Likewise.
1297 * kern/i386/pc/mmap.c: Likewise.
1298 * kern/i386/pc/lzo1x.S: Likewise.
1299 * kern/i386/ieee1275/init.c: Likewise.
1300 * kern/i386/realmode.S: Likewise.
1301 * kern/i386/tsc.c: Likewise.
1302 * kern/partition.c: Likewise.
1303 * kern/corecmd.c: Likewise.
1304 * kern/file.c: Likewise.
1305 * kern/efi/efi.c: Likewise.
1306 * kern/efi/init.c: Likewise.
1307 * kern/efi/mm.c: Likewise.
1308 * kern/main.c: Likewise.
1309 * kern/err.c: Likewise.
1310 * kern/env.c: Likewise.
1311 * kern/disk.c: Likewise.
1312 * kern/generic/millisleep.c: Likewise.
1313 * kern/generic/rtc_get_time_ms.c: Likewise.
1314 * kern/misc.c: Likewise.
1315 * kern/parser.c: Likewise.
1316 * genmk.rb: Likewise.
1317 * configure.ac: Likewise.
1318 * boot/i386/pc/diskboot.S: Likewise.
1319 * boot/i386/pc/pxeboot.S: Likewise.
1320 * boot/i386/pc/boot.S: Likewise.
1321 * boot/i386/pc/lnxboot.S: Likewise.
1322 * boot/i386/pc/cdboot.S: Likewise.
1323 * parttool/pcpart.c: Likewise.
1324 * video/readers/tga.c: Likewise.
1325 * video/video.c: Likewise.
1326 * video/bitmap.c: Likewise.
1327 * lib/envblk.c: Likewise.
1328 * lib/i386/setjmp.S: Likewise.
1329 * fs/xfs.c: Likewise.
1330 * fs/afs.c: Likewise.
1331 * fs/fat.c: Likewise.
1332 * fs/ntfs.c: Likewise.
1333 * fs/udf.c: Likewise.
1334 * fs/affs.c: Likewise.
1335 * fs/iso9660.c: Likewise.
1336 * fs/hfs.c: Likewise.
1337 * fs/fshelp.c: Likewise.
1338 * fs/ext2.c: Likewise.
1339 * fs/jfs.c: Likewise.
1340 * fs/reiserfs.c: Likewise.
1341 * fs/hfsplus.c: Likewise.
1342 * fs/minix.c: Likewise.
1343 * fs/cpio.c: Likewise.
1344 * fs/sfs.c: Likewise.
1345 * fs/ufs.c: Likewise.
1346 * efiemu/prepare.c: Likewise.
1347 * efiemu/loadcore_common.c: Likewise.
1348 * efiemu/runtime/efiemu.sh: Likewise.
1349 * efiemu/runtime/efiemu.S: Likewise.
1350 * efiemu/runtime/efiemu.c: Likewise.
1351 * efiemu/pnvram.c: Likewise.
1352 * efiemu/main.c: Likewise.
1353 * efiemu/i386/pc/cfgtables.c: Likewise.
1354 * efiemu/i386/loadcore64.c: Likewise.
1355 * efiemu/i386/loadcore32.c: Likewise.
1356 * efiemu/loadcore.c: Likewise.
1357 * efiemu/symbols.c: Likewise.
1358 * efiemu/mm.c: Likewise.
1359 * include/grub/autoefi.h: Likewise.
1360 * include/grub/datetime.h: Likewise.
1361 * include/grub/term.h: Likewise.
1362 * include/grub/hfs.h: Likewise.
1363 * include/grub/lvm.h: Likewise.
1364 * include/grub/i386/tsc.h: Likewise.
1365 * include/grub/i386/linux.h: Likewise.
1366 * include/grub/i386/xnu.h: Likewise.
1367 * include/grub/i386/efiemu.h: Likewise.
1368 * include/grub/i386/pc/biosdisk.h: Likewise.
1369 * include/grub/i386/pc/memory.h: Likewise.
1370 * include/grub/i386/pc/vbe.h: Likewise.
1371 * include/grub/parttool.h: Likewise.
1372 * include/grub/video.h: Likewise.
1373 * include/grub/memory.h: Likewise.
1374 * include/grub/fs.h: Likewise.
1375 * include/grub/partition.h: Likewise.
1376 * include/grub/xnu.h: Likewise.
1377 * include/grub/efi/api.h: Likewise.
1378 * include/grub/efi/pe32.h: Likewise.
1379 * include/grub/efi/memory.h: Likewise.
1380 * include/grub/multiboot.h: Likewise.
1381 * include/grub/usbdesc.h: Likewise.
1382 * include/grub/multiboot2.h: Likewise.
1383 * include/grub/acpi.h: Likewise.
1384 * include/grub/efiemu/efiemu.h: Likewise.
1385 * include/grub/disk.h: Likewise.
1386 * include/grub/ieee1275/ieee1275.h: Likewise.
1387 * include/grub/net.h: Likewise.
1388 * include/grub/machoload.h: Likewise.
1389 * include/grub/macho.h: Likewise.
1390 * include/multiboot.h: Likewise.
1391 * genmoddep.awk: Likewise.
1392 * normal/main.c: Likewise.
1393 * normal/menu_entry.c: Likewise.
1394 * normal/menu_viewer.c: Likewise.
1395 * normal/completion.c: Likewise.
1396 * normal/cmdline.c: Likewise.
1397 * normal/misc.c: Likewise.
1398 * normal/datetime.c: Likewise.
1399 * bus/usb/usbtrans.c: Likewise.
1400 * bus/usb/ohci.c: Likewise.
1401 * bus/usb/uhci.c: Likewise.
1402 * bus/usb/usb.c: Likewise.
1403 * mmap/efi/mmap.c: Likewise.
1404 * mmap/i386/pc/mmap_helper.S: Likewise.
1405 * mmap/i386/pc/mmap.c: Likewise.
1406 * mmap/i386/mmap.c: Likewise.
1407 * mmap/i386/uppermem.c: Likewise.
1408 * mmap/mmap.c: Likewise.
1409 * commands/acpi.c: Likewise.
1410 * commands/echo.c: Likewise.
1411 * commands/blocklist.c: Likewise.
1412 * commands/loadenv.c: Likewise.
1413 * commands/usbtest.c: Likewise.
1414 * commands/boot.c: Likewise.
1415 * commands/parttool.c: Likewise.
1416 * commands/search.c: Likewise.
1417 * commands/cat.c: Likewise.
1418 * commands/i386/pc/play.c: Likewise.
1419 * commands/i386/pc/drivemap.c: Likewise.
1420 * commands/i386/pc/vbeinfo.c: Likewise.
1421 * commands/i386/pc/acpi.c: Likewise.
1422 * commands/i386/pc/vbetest.c: Likewise.
1423 * commands/ls.c: Likewise.
1424 * commands/cmp.c: Likewise.
1425 * commands/test.c: Likewise.
1426 * commands/efi/acpi.c: Likewise.
1427 * commands/gptsync.c: Likewise.
1428 * commands/help.c: Likewise.
1429 * partmap/amiga.c: Likewise.
1430 * partmap/apple.c: Likewise.
1431 * partmap/acorn.c: Likewise.
1432 * partmap/pc.c: Likewise.
1433 * partmap/sun.c: Likewise.
1434 * partmap/gpt.c: Likewise.
1435 * script/sh/lexer.c: Likewise.
1436 * script/sh/function.c: Likewise.
1437 * font/font.c: Likewise.
1438 * font/font_cmd.c: Likewise.
1439 * loader/powerpc/ieee1275/linux.c: Likewise.
1440 * loader/efi/chainloader.c: Likewise.
1441 * loader/multiboot_loader.c: Likewise.
1442 * loader/macho.c: Likewise.
1443 * loader/i386/multiboot.c: Likewise.
1444 * loader/i386/linux.c: Likewise.
1445 * loader/i386/pc/linux.c: Likewise.
1446 * loader/i386/pc/multiboot2.c: Likewise.
1447 * loader/i386/pc/chainloader.c: Likewise.
1448 * loader/i386/pc/xnu.c: Likewise.
1449 * loader/i386/bsd_trampoline.S: Likewise.
1450 * loader/i386/efi/linux.c: Likewise.
1451 * loader/i386/multiboot_elfxx.c: Likewise.
1452 * loader/i386/bsd_helper.S: Likewise.
1453 * loader/i386/bsd.c: Likewise.
1454 * loader/i386/linux_trampoline.S: Likewise.
1455 * loader/i386/xnu_helper.S: Likewise.
1456 * loader/i386/xnu.c: Likewise.
1457 * loader/i386/bsd_pagetable.c: Likewise.
1458 * loader/i386/multiboot_helper.S: Likewise.
1459 * loader/xnu.c: Likewise.
1460 * loader/xnu_resume.c: Likewise.
1461 * io/gzio.c: Likewise.
1462 * term/efi/console.c: Likewise.
1463 * term/terminfo.c: Likewise.
1464 * term/ieee1275/ofconsole.c: Likewise.
1465 * term/i386/pc/serial.c: Likewise.
1466 * term/i386/pc/vesafb.c: Likewise.
1467 * term/i386/pc/vga.c: Likewise.
1468 * term/usb_keyboard.c: Likewise.
1469 * term/gfxterm.c: Likewise.
1470 * aclocal.m4: Likewise.
1471 * util/lvm.c: Likewise.
1472 * util/grub.d/30_os-prober.in: Likewise.
1473 * util/grub.d/10_hurd.in: Likewise.
1474 * util/console.c: Likewise.
1475 * util/grub-macho2img.c: Likewise.
1476 * util/grub-probe.c: Likewise.
1477 * util/hostfs.c: Likewise.
1478 * util/i386/pc/grub-mkimage.c: Likewise.
1479 * util/i386/pc/grub-setup.c: Likewise.
1480 * util/i386/efi/grub-mkimage.c: Likewise.
1481 * util/grub-mkconfig.in: Likewise.
1482 * util/raid.c: Likewise.
1483 * util/resolve.c: Likewise.
1484 * util/grub-mkdevicemap.c: Likewise.
1485 * util/grub-emu.c: Likewise.
1486 * util/getroot.c: Likewise.
1487 * util/hostdisk.c: Likewise.
1488 * util/usb.c: Likewise.
1489 * util/grub-editenv.c: Likewise.
1490 * util/misc.c: Likewise.
1492 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
1494 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
1495 `genparttoollist.sh'.
1496 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
1497 Add `*.sh' to the list find searches for and change `mdate.sh'
1500 2009-06-10 Pavel Roskin <proski@gnu.org>
1502 * include/grub/multiboot2.h: Provide compatibility defines for
1504 * include/multiboot2.h: Include stdint.h only if needed, using
1506 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
1508 * loader/ieee1275/multiboot2.c: Likewise.
1509 * loader/multiboot2.c: Likewise.
1510 * loader/multiboot_loader.c: Likewise.
1512 * configure.ac: Use -nostdlib when probing for the target. It
1513 should not be required to have libc for the target.
1515 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
1516 they fail without libc headers for the target.
1517 * include/grub/powerpc/libgcc.h: Use weak attribute for all
1519 * include/grub/sparc64/libgcc.h: Likewise. Don't use
1520 preprocessor conditionals.
1522 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
1523 build system doesn't need to be aware of the tar.c internals.
1525 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
1527 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
1529 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
1531 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
1532 disk limit to 26 for IDE, Virtio, Xen and SCSI.
1534 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
1536 * util/i386/pc/grub-install.in: Change the error message if UUIDs
1537 aren't available if ata.mod gets used.
1539 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
1541 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
1542 initialising controller.
1543 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
1545 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
1547 * util/i386/pc/grub-install.in: Add a parameter --disk-module
1548 to choose between ata and biosdisk module on i386-pc.
1550 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
1552 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
1553 Subclass and Programming Interface fields in terms of the 3 byte
1554 Class Code register.
1555 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
1557 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
1558 interface is OHCI. Add grub_dprintf for symmetry with
1560 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
1561 interface is UHCI. Add interf variable for programming
1562 interface. Print interface with class/subclass.
1564 * bus/usb/ohci.c: Set interf with correct field.
1566 * bus/usb/uhci.c: Remove unneeded doubled lines.
1567 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
1568 Remove whitespace inside comment.
1570 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
1572 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
1573 as fallback an equivalent option without depth.
1575 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1577 Not fail if unable to retrieve C/H/S on LBA disks
1579 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
1580 if unable to retrieve C/H/S on LBA disks
1582 2009-06-08 Pavel Roskin <proski@gnu.org>
1584 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
1587 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
1589 * Makefile.in (uninstall): Remove all $lib_DATA files.
1591 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1593 Bugfix: install on partitionless device
1595 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
1598 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
1600 * Makefile.in (uninstall): Remove all $include_DATA files.
1602 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
1604 * commands/true.c: New file. Implement the true and false commands.
1605 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
1606 (true_mod_SOURCES): New variable.
1607 (true_mod_CFLAGS): Likewise.
1608 (true_mod_LDFLAGS): Likewise.
1610 2009-06-05 Colin D Bennett <colin@gibibit.com>
1612 Optimized font character lookup using binary search instead of linear
1613 search. Fonts now are required to have the character index ordered by
1616 * font/font.c (load_font_index): Verify that fonts have ordered
1618 (find_glyph): Use binary search instead of linear search to find a
1619 character in a font.
1621 2009-06-05 Michael Scherer <misc@mandriva.org>
1623 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
1624 uses case sensitive btree.
1625 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
1626 only for case insensitive filesystems.
1628 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1630 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
1631 * conf/common.rmk (search_mod_CFLAGS): likewise
1633 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1635 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
1636 compensate a compiler bug
1638 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1640 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
1643 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1645 Definitions for creating asm symbols with Apple's CC
1647 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
1648 [APPLE_CC] (VARIABLE): likewise
1650 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1652 Disable lnxboot.img when compiled
1655 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
1656 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
1657 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
1658 [! APPLE_CC] (CODE_LENG): skip
1659 [! APPLE_CC] (setup_sects): likewise
1660 [! APPLE_CC]: skip filling
1662 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1664 Address in trampolines based on 32-bit registers when compiled
1667 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
1669 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
1671 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1673 Avoid aliases when compiling with Apple's CC for PCBIOS machine
1675 * kern/misc.c [APPLE_CC] (memcpy): new function
1676 [APPLE_CC] (memmove): likewise
1677 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
1678 (memcpy): define alias conditionally on !APPLE_CC
1681 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
1682 APPLE_CC are defined
1683 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
1684 (grub_assert_fail): make prototype conditional
1686 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1688 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
1690 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
1692 (CLEANFILES): add grub-macho2img
1693 (grub_macho2img_SOURCES): new variable
1694 * kern/i386/pc/startup.S (bss_start): new variable
1696 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
1697 * util/grub-macho2img.c: new file
1699 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1701 Use objconv when compiling with Apple's CC
1703 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
1704 (efiemu64.o): likewise
1705 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
1706 when compiling with Apple's CC
1707 (efiemu64_s.o): likewise
1708 * configure.ac: check for objconv when compiling with Apple's CC
1709 * genmk.rb: use objconv for modules when compiled with Apple's CC
1711 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1713 Define segment as well as section when compiling with
1716 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
1717 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
1718 (efiemu_convert_pointer): likewise
1719 (efiemu_set_virtual_address_map): likewise
1720 (efiemu_convert_pointer): likewise
1721 (efiemu_getcrc32): likewise
1722 (init_crc32_table): likewise
1724 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
1725 (GRUB_MOD_DEP): likewise
1727 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1729 Allow a compilation without -mcmodel=large
1731 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
1732 when compiled without -mcmodel=large
1733 (filter_memory_map): remove memory post 4 GiB when compiled
1734 without -mcmodel=large
1735 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
1736 TARGET_CFLAGS when -mcmodel=large isn't supported
1738 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1740 Remove nested functions in efiemu core
1742 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
1744 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1746 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
1748 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
1750 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
1752 (grub_cpu_is_tsc_supported): likewise
1753 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
1755 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1757 Absolute addressing through constant with Apple's cc
1759 * kern/i386/pc/startup.S: Define necessary constants
1760 and address through it when using ABS with Apple's CC
1761 * boot/i386/pc/diskboot.S: likewise
1762 * boot/i386/pc/boot.S: likewise
1763 * boot/i386/pc/lnxboot.S: likewise
1764 * boot/i386/pc/cdboot.S: likewise
1765 * mmap/i386/pc/mmap_helper.S: likewise
1766 * commands/i386/pc/drivemap_int13h.S: likewise
1768 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1770 Check if compiler is apple cc
1772 * Makefile.in (ASFLAGS): new variable
1773 (TARGET_ASFLAGS): likewise
1774 (TARGET_MODULE_FORMAT): likewise
1775 (TARGET_APPLE_CC): likewise
1777 (TARGET_IMG_CFLAGS): likewise
1778 (TARGET_CPPFLAGS): add includedir
1779 * configure.ac: call grub_apple_cc and grub_apple_target_cc
1780 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
1781 Check for linker script only if compiler isn't Apple's CC
1782 (TARGET_MODULE_FORMAT): set
1783 (TARGET_APPLE_CC): likewise
1784 (TARGET_ASFLAGS): likewise
1786 Check for objcopy only if compiler isn't Apple's CC
1787 Check for BSS symbol only if compiler isn't Apple's CC
1788 * genmk.rb: adapt nm options if we use Apple's utils
1789 * aclocal.m4 (grub_apple_cc): new test
1790 (grub_apple_target_cc): likewise
1792 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1794 Simplify sed expressions and improve awk
1796 * Makefile.in (install-local): simplify sed expression
1797 * gencmdlist.sh: likewise
1798 * genmoddep.awk: avoid adding module as a dependency of itself
1800 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1802 Add missing start symbols
1804 * boot/i386/pc/boot.S: add start
1805 * boot/i386/pc/pxeboot.S: likewise
1807 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1809 Fix wrong assumptions with grub-mkimage on EFI
1811 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
1812 (relocate_addresses): consider both r_addend and value at offset
1813 (make_mods_section): zerofill modinfo and header
1814 (convert_elf): write prefix here
1816 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1818 Use .asciz instead of .string
1820 * i386/pc/diskboot.S: use .asciz instead of .string
1821 * i386/pc/boot.S: likewise
1822 * include/grub/dl.h (GRUB_MOD_DEP): likewise
1823 (GRUB_MOD_NAME): likewise
1825 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1829 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
1830 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
1831 (grub_video_setup): remove
1832 (grub_video_set_mode): new prototype
1833 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
1835 (linux_vesafb_res): compile only on PCBIOS
1836 (grub_linux_boot): support gfxpayload
1837 * loader/i386/pc/xnu.c (video_hook): new function
1838 (grub_xnu_set_video): support gfxpayload
1839 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
1840 (DEFAULT_VIDEO_HEIGHT): likewise
1841 (DEFAULT_VIDEO_FLAGS): likewise
1842 (DEFAULT_VIDEO_MODE): new definition
1843 (video_hook): new function
1844 (grub_gfxterm_init): use grub_video_set_mode
1845 * util/grub.d/30_os-prober.in: remove explicit modesetting before
1847 * video/video.c (grub_video_setup): removed
1848 (grub_video_set_mode): new function based on grub_gfxterm_init and
1851 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1853 Avoid calling biosdisk in drivemap
1855 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
1856 (revparse_biosdisk): likewise
1857 (list_mappings): derive name from id directly
1858 (grub_cmd_drivemap): use tryparse_diskstring
1860 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1864 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
1865 (grub_lexer_param): add tokenonhold
1866 (grub_script_create_cmdline): remove cmdline. All callers updated
1867 (grub_script_function_create): make functionname
1868 grub_script_arg. All callers updated
1869 (grub_script_execute_argument_to_string): new prototype
1870 * kern/parser.c (state_transitions): reorder
1871 (grub_parser_cmdline_state): fix a bug and make more compact
1872 * script/sh/execute.c (grub_script_execute_argument_to_string):
1874 (grub_script_execute_cmdline): use new format
1875 * script/sh/function.c (grub_script_function_create): make functionname
1876 grub_script_arg. All callers updated
1877 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
1878 (grub_script_yylex): remove
1879 (grub_script_yylex2): renamed to ...
1880 (grub_script_yylex): ...renamed
1881 parse the expressions like a${b}c
1882 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
1883 (GRUB_PARSER_TOKEN_VAR): remove
1884 (GRUB_PARSER_TOKEN_NAME): likewise
1885 ("if"): declare as typeless
1887 ("function"): likewise
1892 (argument): likewise
1893 (script): accept empty scripts and make exit on error
1894 (arguments): use GRUB_PARSER_TOKEN_ARG
1895 (function): likewise
1896 (command): move error handling to script
1897 (menuentry): move grub_script_lexer_ref before
1898 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
1899 argument. All callers updated
1901 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
1903 Prevent GRUB from probing floppies during boot.
1905 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
1906 * commands/search.c (options): Add --no-floppy.
1907 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
1908 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
1909 --no-floppy when searching for UUIDs.
1911 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
1913 Simplify the code duplication in commands/search.c.
1915 * commands/search.c (search_label, search_fs_uuid): Merge into ...
1916 (search_fs): ... this. Update all users.
1918 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
1920 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
1922 2009-05-28 Pavel Roskin <proski@gnu.org>
1924 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
1925 Remove the original symlink explicitly.
1927 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
1928 just one slash. That's how grub_fshelp_find_file() does it.
1930 2009-05-26 Pavel Roskin <proski@gnu.org>
1932 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
1935 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
1938 2009-05-25 Christian Franke <franke@computer.org>
1940 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
1942 (grub_atapi_identify): Add wait after drive select.
1943 (grub_ata_identify): Do more strict status register check before
1944 calling grub_atapi_identify (). Suppress error message if status
1945 register is 0x00 after command failure. Add status register
1946 check after PIO read to avoid bogus identify due to stuck DRQ.
1947 Thanks to Pavel Roskin for testing.
1948 (grub_device_initialize): Remove unsafe status register check.
1949 Thanks to 'phcoder' for problem report and patch.
1950 Prevent sign extension in debug message.
1952 2009-05-23 Colin D Bennett <colin@gibibit.com>
1954 Cleaned up `include/grub/normal.h'. Grouped prototypes by
1955 definition file, and functions defined in `normal/menu.c' have had
1956 their prototypes moved to `include/grub/menu.h' for consistency.
1958 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
1960 (grub_menu_get_entry): Likewise.
1961 (grub_menu_get_timeout): Likewise.
1962 (grub_menu_set_timeout): Likewise.
1963 (grub_menu_execute_entry): Likewise.
1964 (grub_menu_execute_with_fallback): Likewise.
1965 (grub_menu_entry_run): Likewise.
1967 * include/grub/normal.h: Re-ordered and grouped function
1968 prototypes by file that the function is defined in.
1969 (grub_menu_execute_callback): Removed; moved to menu.h.
1970 (grub_menu_get_entry): Likewise.
1971 (grub_menu_get_timeout): Likewise.
1972 (grub_menu_set_timeout): Likewise.
1973 (grub_menu_execute_entry): Likewise.
1974 (grub_menu_execute_with_fallback): Likewise.
1975 (grub_menu_entry_run): Likewise.
1976 (grub_menu_addentry): Renamed from this ...
1977 (grub_normal_add_menu_entry): ... to this.
1979 * normal/main.c (grub_menu_addentry): Renamed from this ...
1980 (grub_normal_add_menu_entry): ... to this.
1982 * script/sh/execute.c (grub_script_execute_menuentry): Update
1983 reference to renamed grub_menu_addentry function.
1985 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
1987 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
1989 2009-05-22 Pavel Roskin <proski@gnu.org>
1991 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
1992 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
1993 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
1994 compiling for the i386 targets, but not for the utilities.
1996 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
1998 (grub_root_drive): Likewise.
1999 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
2001 (grub_root_drive): Change size to byte.
2002 (grub_start_addr): Remove.
2003 (grub_end_addr): Likewise.
2004 (grub_apm_bios_info): Likewise.
2006 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
2008 * normal/i386: Remove.
2009 * normal/powerpc: Likewise.
2010 * normal/sparc64: Likewise.
2011 * normal/x86_64: Likewise.
2013 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
2015 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
2016 * loader/i386/linux_trampoline.S: Fix indentation
2017 * loader/i386/xnu_helper.S: Likewise
2019 2009-05-18 Colin D Bennett <colin@gibibit.com>
2021 Display error messages when parsing a Lua statement fails.
2022 Previously, executing a syntactically invalid statement like
2023 ")foo" or "bar;" would silently fail.
2025 * script/lua/grub_main.c (handle_lua_error): New function.
2026 (grub_lua_parse_line): Improved reporting of Lua parser and
2029 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2031 Remove -Werror which causes build to fail on some systems
2033 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
2034 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
2035 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
2037 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2039 trampoline for linux on 64-bit platform
2041 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
2042 loader/i386/efi/linux_trampoline.S
2043 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
2045 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
2047 * loader/i386/linux_trampoline.S: moved here
2048 * loader/i386/efi/linux.c (allocate_pages): reserve space for
2050 (jumpvector): removed
2051 (grub_linux_trampoline_start): new declaration
2052 (grub_linux_trampoline_end): likewise
2053 (grub_linux_boot): use trampoline when on 64-bit platform
2054 * loader/i386/linux.c: likewise
2056 2009-05-16 Pavel Roskin <proski@gnu.org>
2058 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
2059 const to avoid a warning.
2060 (grub_lua_setenv): Likewise.
2061 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
2062 lmsg to fix a warning.
2064 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
2066 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
2067 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2068 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
2069 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2070 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
2071 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2072 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
2073 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2075 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
2077 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
2079 2009-05-16 Bean <bean123ch@gmail.com>
2081 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
2082 (lua_mod_SOURCES): New variable.
2083 (lua_mod_CFLAGS): Likewise.
2084 (lua_mod_LDFLAGS): Likewise.
2086 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
2087 (setjmp_mod_SOURCES): New variable.
2088 (setjmp_mod_CFLAGS): Likewise.
2089 (setjmp_LDFLAGS): Likewise.
2091 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
2092 (setjmp_mod_SOURCES): New variable.
2093 (setjmp_mod_CFLAGS): Likewise.
2094 (setjmp_LDFLAGS): Likewise.
2096 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
2097 (setjmp_mod_SOURCES): New variable.
2098 (setjmp_mod_CFLAGS): Likewise.
2099 (setjmp_LDFLAGS): Likewise.
2101 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
2102 (setjmp_mod_SOURCES): New variable.
2103 (setjmp_mod_CFLAGS): Likewise.
2104 (setjmp_LDFLAGS): Likewise.
2106 * normal/i386/setjmp.S: Moved from here ...
2107 * lib/i386/setjmp.S: ... Moved here
2108 * normal/x86_64/setjmp.S: Moved from here ...
2109 * lib/x86_64/setjmp.S: ... Moved here
2110 * normal/powerpc/setjmp.S: Moved from here ...
2111 * lib/powerpc/setjmp.S: ... Moved here
2112 * normal/sparc64/setjmp.S: Moved from here ...
2113 * lib/sparc64/setjmp.S: ... Moved here
2115 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
2116 returns_twice in mingw.
2118 * script/lua/grub_lib.c: New file.
2119 * script/lua/grub_lib.h: Likewise.
2120 * script/lua/grub_lua.h: Likewise.
2121 * script/lua/grub_main.c: Likewise.
2122 * script/lua/lapi.c: Likewise.
2123 * script/lua/lapi.h: Likewise.
2124 * script/lua/lauxlib.c: Likewise.
2125 * script/lua/lauxlib.h: Likewise.
2126 * script/lua/lbaselib.c: Likewise.
2127 * script/lua/lcode.c: Likewise.
2128 * script/lua/lcode.h: Likewise.
2129 * script/lua/ldblib.c: Likewise.
2130 * script/lua/ldebug.c: Likewise.
2131 * script/lua/ldebug.h: Likewise.
2132 * script/lua/ldo.c: Likewise.
2133 * script/lua/ldo.h: Likewise.
2134 * script/lua/ldump.c: Likewise.
2135 * script/lua/lfunc.c: Likewise.
2136 * script/lua/lfunc.h: Likewise.
2137 * script/lua/lgc.c: Likewise.
2138 * script/lua/lgc.h: Likewise.
2139 * script/lua/linit.c: Likewise.
2140 * script/lua/liolib.c: Likewise.
2141 * script/lua/llex.c: Likewise.
2142 * script/lua/llex.h: Likewise.
2143 * script/lua/llimits.h: Likewise.
2144 * script/lua/lmathlib.c: Likewise.
2145 * script/lua/lmem.c: Likewise.
2146 * script/lua/lmem.h: Likewise.
2147 * script/lua/loadlib.c: Likewise.
2148 * script/lua/lobject.c: Likewise.
2149 * script/lua/lobject.h: Likewise.
2150 * script/lua/lopcodes.c: Likewise.
2151 * script/lua/lopcodes.h: Likewise.
2152 * script/lua/loslib.c: Likewise.
2153 * script/lua/lparser.c: Likewise.
2154 * script/lua/lparser.h: Likewise.
2155 * script/lua/lstate.c: Likewise.
2156 * script/lua/lstate.h: Likewise.
2157 * script/lua/lstring.c: Likewise.
2158 * script/lua/lstring.h: Likewise.
2159 * script/lua/lstrlib.c: Likewise.
2160 * script/lua/ltable.c: Likewise.
2161 * script/lua/ltable.h: Likewise.
2162 * script/lua/ltablib.c: Likewise.
2163 * script/lua/ltm.c: Likewise.
2164 * script/lua/ltm.h: Likewise.
2165 * script/lua/lua.h: Likewise.
2166 * script/lua/luaconf.h: Likewise.
2167 * script/lua/lualib.h: Likewise.
2168 * script/lua/lundump.c: Likewise.
2169 * script/lua/lundump.h: Likewise.
2170 * script/lua/lvm.c: Likewise.
2171 * script/lua/lvm.h: Likewise.
2172 * script/lua/lzio.c: Likewise.
2173 * script/lua/lzio.h: Likewise.
2175 2009-05-16 Bean <bean123ch@gmail.com>
2177 * include/grub/kernel.h (grub_module_header_types): Add type
2180 * kern/main.c (grub_load_config): New function.
2181 (grub_main): Call grub_load_config to read boot config.
2183 * grub-mkimage (generate_image): New parameter config_path.
2184 (options): New option --config.
2185 (main): Parse --config option, and pass it to generate_image.
2187 2009-05-14 Christian Franke <franke@computer.org>
2189 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
2190 This fixes build on Cygwin.
2192 2009-05-14 Pavel Roskin <proski@gnu.org>
2194 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
2195 jump. This saves two bytes, so the typical case of 2 swapped
2196 drives would fit 32 bytes.
2198 2009-05-13 Pavel Roskin <proski@gnu.org>
2200 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
2201 grub_uint32_t to avoid a warning.
2203 * loader/i386/linux.c (allocate_pages): When assigning
2204 real_mode_mem, cast through grub_size_t to fix a warning. The
2205 code already makes sure that the value would fit a pointer.
2206 (grub_linux_setup_video): Cast render_target->data to
2207 grub_size_t to fix a warning.
2209 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
2211 * commands/i386/pc/drivemap.c: New file - implement drivemap
2213 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
2214 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
2216 2009-05-13 Pavel Roskin <proski@gnu.org>
2218 * util/i386/pc/grub-setup.c (setup): Remove unused variable
2219 embedding_area_exists.
2221 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
2223 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
2224 it easier to understand / work with.
2225 Improve warning messages for cases where there's no embedding area,
2226 or when it is too small (or core.img too large).
2228 2009-05-13 Pavel Roskin <proski@gnu.org>
2230 * loader/i386/pc/multiboot2.c: Add necessary includes for
2231 grub_multiboot2_real_boot().
2233 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
2234 PX record is always little-endian. We only need the lower 2
2237 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
2238 facilitate code reuse.
2239 (grub_cpio_mount): Use "struct head", not a char buffer. This
2240 fixes a warning reported by gcc 4.4.
2242 * kernel/disk.c (grub_disk_read): Use void pointer for the
2244 (grub_disk_write): Use const void pointer for the buffer.
2245 Adjust all callers. Remove unnecessary casts.
2247 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
2249 * util/i386/pc/grub-install.in: Update copyright year.
2251 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2255 * commands/gptsync.c: new file
2256 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
2257 (gptsync_mod_SOURCES): new variable
2258 (gptsync_mod_CFLAGS): likewise
2259 (gptsync_mod_LDFLAGS): likewise
2260 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2262 (GRUB_PC_PARTITION_TYPE_HFS): likewise
2263 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
2264 * conf/i386-ieee1275.rmk: likewise
2265 * conf/i386-pc.rmk: likewise
2266 * conf/powerpc-ieee1275.rmk: likewise
2268 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2272 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
2273 (grub_dl_ref): likewise
2275 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
2277 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
2278 split in two functions (one for msdos and one for gpt).
2280 2009-05-08 Pavel Roskin <proski@gnu.org>
2282 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
2285 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
2286 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
2287 Initialize them with -1. Add sanity check for bad1. Eliminate
2290 2009-05-08 David S. Miller <davem@davemloft.net>
2292 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
2294 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
2296 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
2299 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
2301 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
2302 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
2304 2009-05-05 David S. Miller <davem@davemloft.net>
2306 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
2308 2009-05-05 Pavel Roskin <proski@gnu.org>
2310 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
2311 of grub_dl_ref() and grub_dl_unref().
2312 * commands/parttool.c: Remove preprocessor conditionals around
2313 grub_dl_ref() and grub_dl_unref().
2314 * fs/affs.c: Likewise.
2315 * fs/afs.c: Likewise.
2316 * fs/cpio.c: Likewise.
2317 * fs/ext2.c: Likewise.
2318 * fs/fat.c: Likewise.
2319 * fs/hfs.c: Likewise.
2320 * fs/hfsplus.c: Likewise.
2321 * fs/iso9660.c: Likewise.
2322 * fs/jfs.c: Likewise.
2323 * fs/minix.c: Likewise.
2324 * fs/ntfs.c: Likewise.
2325 * fs/reiserfs.c: Likewise.
2326 * fs/sfs.c: Likewise.
2327 * fs/udf.c: Likewise.
2328 * fs/ufs.c: Likewise.
2329 * fs/xfs.c: Likewise.
2330 * include/grub/dl.h: Likewise.
2331 * loader/xnu.c: Likewise.
2333 2009-05-04 Pavel Roskin <proski@gnu.org>
2335 * commands/acpi.c: Remove unused variable my_mod.
2336 * partmap/amiga.c: Likewise.
2337 * partmap/apple.c: Likewise.
2338 * partmap/gpt.c: Likewise.
2339 * partmap/pc.c: Likewise.
2340 * partmap/sun.c: Likewise.
2341 * term/gfxterm.c: Likewise.
2342 * term/i386/pc/vesafb.c: Likewise.
2343 * term/i386/pc/vga.c: Likewise.
2345 2009-05-04 David S. Miller <davem@davemloft.net>
2347 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
2348 pointer args to grub_ieee1275_get_property().
2350 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
2352 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
2353 devices, and do not traverse down under controller nodes.
2355 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
2356 (grub_ofdisk_open): Use it to un-escape "," characters.
2357 * kern/disk.c (find_part_sep): New.
2358 (grub_disk_open): Use it to find the first non-escaped ','
2359 character in the disk name.
2360 * util/ieee1275/devicemap.c (escape_of_path): New.
2361 (grub_util_emit_devicemap_entry): Use it.
2362 * util/sparc64/ieee1275/grub-install.in: Update script to
2363 strip partition specifiers properly by not triggering on
2364 '\' escaped ',' characters.
2366 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
2368 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
2370 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
2372 (linux_vesafb_modes): Add a lot of additional modes to the list (based
2373 on documentation from Wikipedia).
2375 2009-05-04 Pavel Roskin <proski@gnu.org>
2377 * disk/ata.c: Spelling fixes.
2378 * disk/raid.c: Likewise.
2379 * disk/usbms.c: Likewise.
2380 * disk/dmraid_nvidia.c: Likewise.
2381 * kern/ieee1275/openfw.c: Likewise.
2382 * kern/ieee1275/init.c: Likewise.
2383 * kern/ieee1275/cmain.c: Likewise.
2384 * boot/i386/pc/cdboot.S: Likewise.
2385 * video/readers/png.c: Likewise.
2386 * video/i386/pc/vbe.c: Likewise.
2387 * fs/udf.c: Likewise.
2388 * fs/hfs.c: Likewise.
2389 * fs/reiserfs.c: Likewise.
2390 * efiemu/runtime/efiemu.c: Likewise.
2391 * efiemu/main.c: Likewise.
2392 * efiemu/mm.c: Likewise.
2393 * include/grub/elf.h: Likewise.
2394 * include/grub/xnu.h: Likewise.
2395 * include/grub/usbdesc.h: Likewise.
2396 * include/grub/usb.h: Likewise.
2397 * include/grub/script_sh.h: Likewise.
2398 * include/grub/lib/LzmaEnc.h: Likewise.
2399 * include/grub/efiemu/efiemu.h: Likewise.
2400 * include/grub/command.h: Likewise.
2401 * normal/menu.c: Likewise.
2402 * normal/main.c: Likewise.
2403 * normal/datetime.c: Likewise.
2404 * bus/usb/uhci.c: Likewise.
2405 * mmap/i386/uppermem.c: Likewise.
2406 * mmap/mmap.c: Likewise.
2407 * commands/acpi.c: Likewise.
2408 * commands/test.c: Likewise.
2409 * partmap/apple.c: Likewise.
2410 * font/font.c: Likewise.
2411 * loader/sparc64/ieee1275/linux.c: Likewise.
2412 * loader/macho.c: Likewise.
2413 * loader/i386/bsd_trampoline.S: Likewise.
2414 * loader/i386/bsd.c: Likewise.
2415 * loader/xnu.c: Likewise.
2416 * term/i386/pc/vesafb.c: Likewise.
2417 * term/usb_keyboard.c: Likewise.
2418 * util/resolve.c: Likewise.
2419 * util/getroot.c: Likewise.
2421 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
2423 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
2425 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
2427 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
2430 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
2432 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
2433 parameter only available on BIOS.
2435 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2437 Removed wrong semicolon in declaration
2439 * grub/misc.h (grub_dprintf): remove semicolon
2441 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
2443 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
2444 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
2445 is done by grub_cmd_linux() now).
2446 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
2447 restore video to text mode.
2448 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
2449 indicates lack of "vga=" parameter. "vga=0" is mapped to
2450 `GRUB_LINUX_VID_MODE_NORMAL'.
2452 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
2454 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
2455 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
2456 and `normal/script.c'. Add `kern/rescue_reader.c',
2457 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
2458 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
2459 `grub_script.tab.c'.
2461 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2462 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
2463 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2464 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
2465 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2467 * Makefile.in: Remove duplicated 2008 in Copyright line.
2469 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
2471 * util/misc.c (grub_util_warn): New function. Emits a warning
2473 * include/grub/util/misc.h (grub_util_warn): New declaration.
2475 * util/i386/pc/grub-install.in: Understand --force and pass it down
2478 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
2480 (setup): Improve error messages and add warnings when requested to
2481 install in odd layouts. Refuse to install using blocklists unless
2484 2009-05-04 martin f. krafft <madduck@madduck.net>
2486 * disk/raid.c (grub_raid_scan_device): Improve debug message.
2488 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2490 Updated copyright year
2492 * fs/hfsplus.c: updated copyright year
2494 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2498 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
2499 in the space previously used by unused3
2500 (grub_hfsplus_uuid): new function
2501 (grub_hfsplus_fs): added uuid field
2503 2009-05-03 Pavel Roskin <proski@gnu.org>
2505 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
2506 suppress warnings. It's no longer needed.
2507 * disk/host.c: Likewise.
2508 * disk/ata_pthru.c: Likewise.
2509 * disk/loopback.c: Likewise.
2510 * hook/datehook.c: Likewise.
2511 * parttool/pcpart.c: Likewise.
2512 * fs/i386/pc/pxe.c: Likewise.
2513 * fs/ntfscomp.c: Likewise.
2514 * efiemu/main.c: Likewise.
2515 * mmap/mmap.c: Likewise.
2516 * commands/crc.c: Likewise.
2517 * commands/hexdump.c: Likewise.
2518 * commands/hdparm.c: Likewise.
2519 * commands/acpi.c: Likewise.
2520 * commands/echo.c: Likewise.
2521 * commands/minicmd.c: Likewise.
2522 * commands/blocklist.c: Likewise.
2523 * commands/memrw.c: Likewise.
2524 * commands/loadenv.c: Likewise.
2525 * commands/usbtest.c: Likewise.
2526 * commands/lsmmap.c: Likewise.
2527 * commands/boot.c: Likewise.
2528 * commands/parttool.c: Likewise.
2529 * commands/configfile.c: Likewise.
2530 * commands/search.c: Likewise.
2531 * commands/ieee1275/suspend.c: Likewise.
2532 * commands/cat.c: Likewise.
2533 * commands/i386/pc/pxecmd.c: Likewise.
2534 * commands/i386/pc/play.c: Likewise.
2535 * commands/i386/pc/halt.c: Likewise.
2536 * commands/i386/pc/vbeinfo.c: Likewise.
2537 * commands/i386/pc/vbetest.c: Likewise.
2538 * commands/lspci.c: Likewise.
2539 * commands/date.c: Likewise.
2540 * commands/handler.c: Likewise.
2541 * commands/ls.c: Likewise.
2542 * commands/test.c: Likewise.
2543 * commands/cmp.c: Likewise.
2544 * commands/efi/loadbios.c: Likewise.
2545 * commands/efi/fixvideo.c: Likewise.
2546 * commands/halt.c: Likewise.
2547 * commands/help.c: Likewise.
2548 * commands/reboot.c: Likewise.
2549 * hello/hello.c: Likewise.
2550 * script/sh/main.c: Likewise.
2551 * loader/xnu.c: Likewise.
2552 * term/terminfo.c: Likewise.
2553 * term/i386/pc/serial.c: Likewise.
2554 * term/usb_keyboard.c: Likewise.
2556 2009-05-03 David S. Miller <davem@davemloft.net>
2558 * normal/menu.c: Include grub/parser.h
2560 2009-05-03 Pavel Roskin <proski@gnu.org>
2562 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
2564 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
2565 Suggested by Javier MartÃn <lordhabbit@gmail.com>
2567 * util/i386/pc/grub-mkrescue.in: Allow for the case when
2568 efiemu??.o doesn't exist.
2569 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
2572 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
2574 FreeBSD 64-bit support
2576 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
2577 and loader/i386/bsd_trampoline.S
2578 (bsd_mod_ASFLAGS): new variable
2579 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
2580 (FREEBSD_MODTYPE_KERNEL64): likewise
2581 (grub_bsd64_trampoline_start): likewise
2582 (grub_bsd64_trampoline_end): likewise
2583 (grub_bsd64_trampoline_selfjump): likewise
2584 (grub_bsd64_trampoline_gdt): likewise
2585 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
2586 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
2587 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
2588 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
2589 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
2591 * loader/i386/bsd_pagetable.c: new file
2592 * loader/i386/bsd_trampoline.S: likewise
2593 * loader/i386/bsd.c (ALIGN_QWORD): new macro
2594 (ALIGN_VAR): likewise
2595 (entry_hi): new variable
2596 (kern_end_mdofs): likewise
2597 (is_64bit): likewise
2598 (grub_freebsd_add_meta): use ALIGN_VAR
2599 (grub_e820_mmap): new declaration
2600 (grub_freebsd_add_mmap): new function
2601 (grub_freebsd_add_meta_module): support 64 bit kernels
2602 (grub_freebsd_list_modules): use ALIGN_VAR
2603 (gdt_descriptor): new declaration
2604 (grub_freebsd_boot): support 64 bit kernels
2605 (grub_bsd_elf64_hook): new function
2606 (grub_bsd_load_elf): support elf64
2608 2009-05-03 Bean <bean123ch@gmail.com>
2610 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
2611 after we get the result of if statement.
2613 2009-05-03 Bean <bean123ch@gmail.com>
2615 * Makefile.in (enable_efiemu): New variable.
2617 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
2619 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
2621 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
2622 path, add -mno-red-zone option.
2623 (efiemu64_s.o): Likewise.
2624 (efiemu64.o): Use macro $^ for source file.
2626 * configure.ac (--enable-efiemu): New option.
2628 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2632 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
2633 (pkglib_MODULES): add xnu.mod
2634 (xnu_mod_SOURCES): new variable
2635 (xnu_mod_CFLAGS): likewise
2636 (xnu_mod_LDFLAGS): likewise
2637 (xnu_mod_ASFLAGS): likewise
2638 * conf/i386-pc.rmk: likewise
2639 * conf/x86_64-efi.rmk: likewise
2640 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
2642 * include/grub/i386/macho.h: new file
2643 * include/grub/i386/xnu.h: likewise
2644 * include/grub/macho.h: likewise
2645 * include/grub/machoload.h: likewise
2646 * include/grub/x86_64/macho.h: likewise
2647 * include/grub/x86_64/xnu.h: likewise
2648 * include/grub/xnu.h: likewise
2649 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
2650 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
2651 * loader/i386/efi/xnu.c: new file
2652 * loader/i386/pc/xnu.c: likewise
2653 * loader/i386/xnu.c: likewise
2654 * loader/i386/xnu_helper.S: likewise
2655 * loader/macho.c: likewise
2656 * loader/xnu.c: likewise
2657 * loader/xnu_resume.c: likewise
2658 * util/grub-dumpdevtree: likewise
2659 * include/grub/i386/pit.h: include grub/err.h
2660 (grub_pit_wait): export
2661 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
2663 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2667 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
2668 _linux_efi, linux_efi.
2669 new files in grub-emu
2670 new targets efiemu32.o and efiemu64.o
2671 * loader/linux_normal_efiemu.c: likewise
2672 * loader/i386/efi/linux.c: added preliminary efiemu support
2673 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
2675 * include/grub/autoefi.h: new file
2676 * include/grub/i386/efiemu.h: likewise
2677 * include/grub/i386/pc/efiemu.h: likewise
2678 * include/grub/efi/api.h: add LL suffix when necessary
2679 new definitions relating to tables
2680 * include/grub/efiemu/efiemu.h: new file
2681 * include/grub/efiemu/runtime.h: likewise
2682 * efiemu/prepare.c: likewise
2683 * efiemu/loadcore_common.c: likewise
2684 * efiemu/loadcore64.c: likewise
2685 * efiemu/runtime/efiemu.sh: likewise
2686 * efiemu/runtime/efiemu.S: likewise
2687 * efiemu/runtime/efiemu.c: likewise
2688 * efiemu/runtime/config.h: likewise
2689 * efiemu/prepare32.c: likewise
2690 * efiemu/main.c: likewise
2691 * efiemu/modules/pnvram.c: likewise
2692 * efiemu/modules/i386: likewise
2693 * efiemu/modules/i386/pc: likewise
2694 * efiemu/modules/acpi.c: likewise
2695 * efiemu/i386/pc/cfgtables.c: likewise
2696 * efiemu/i386/loadcore64.c: likewise
2697 * efiemu/i386/loadcore32.c: likewise
2698 * efiemu/prepare64.c: likewise
2699 * efiemu/loadcore.c: likewise
2700 * efiemu/symbols.c: likewise
2701 * efiemu/mm.c: likewise
2702 * efiemu/loadcore32.c: likewise
2704 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2708 * commands/acpi.c: new file
2709 * commands/i386/pc/acpi.c: likewise
2710 * commands/efi/acpi.c: likewise
2711 * include/grub/acpi.h: likewise
2712 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
2713 (acpi_mod_SOURCES): new variable
2714 (acpi_mod_CFLAGS): likewise
2715 (acpi_mod_LDFLAGS): likewise
2716 * conf/i386-efi.rmk: likewise
2717 * conf/x86_64-efi.rmk: likewise
2719 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2721 Missing part from mmap patch
2723 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
2724 (grub_mmap_unregister)
2725 (grub_mmap_free_and_unregister): use grub_mmap_register
2727 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2731 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
2732 * loader/i386/linux.c (find_mmap_size): likewise
2733 (allocate_pages): likewise
2734 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
2735 (grub_fill_multiboot_mmap): likewise
2736 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
2737 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
2738 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
2739 (OPENBSD_MMAP_RESERVED): likewise
2740 * include/grub/i386/pc/memory.h: include grub/memory.h
2741 (grub_lower_mem): removed
2742 (grub_upper_mem): likewise
2743 (GRUB_MACHINE_MEMORY_ACPI): new definition
2744 (GRUB_MACHINE_MEMORY_NVS): likewise
2745 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
2746 (GRUB_MACHINE_MEMORY_HOLE): likewise
2747 (grub_machine_mmap_register): likewise
2748 (grub_machine_mmap_unregister): likewise
2749 (grub_machine_get_upper): likewise
2750 (grub_machine_get_lower): likewise
2751 (grub_machine_get_post64): likewise
2752 * include/grub/i386/efi/memory.h: new file
2753 * include/grub/x86_64/efi/memory.h: likewise
2754 * include/grub/efi/memory.h: likewise
2755 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
2756 (mmap_mod_SOURCES): new variable
2757 (mmap_mod_LDFLAGS): likewise
2758 (mmap_mod_ASFLAGS): likewise
2759 * conf/i386-coreboot.rmk: likewise
2760 * conf/i386-ieee1275.rmk: likewise
2761 * conf/i386-efi.rmk: likewise
2762 * conf/x86_64-efi.rmk: likewise
2763 * include/grub/types.h (UINT_TO_PTR): new macro
2764 (PTR_TO_UINT32): likewise
2765 (PTR_TO_UINT64): likewise
2766 * include/grub/memory.h: new file
2767 * mmap/i386/pc/mmap.c: likewise
2768 * mmap/i386/pc/mmap_helper.S: likewise
2769 * mmap/i386/uppermem.c: likewise
2770 * mmap/mmap.c: likewise
2771 * mmap/efi/mmap.c: likewise
2772 * kern/i386/coreboot/init.c (grub_machine_init): don't use
2774 * kern/i386/pc/init.c (grub_lower_mem): removed variable
2775 (grub_upper_mem): likewise
2776 (grub_machine_init): don't use grub_upper_mem,
2777 make grub_lower_mem local
2778 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
2779 grub_mmap_iterate and grub_mmap_get_upper
2780 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
2782 2009-05-02 Bean <bean123ch@gmail.com>
2784 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
2786 (pkglib_MODULES): Add normal.mod and sh.mod.
2787 (normal_SOURCES): New variable.
2788 (normal_mod_CFLAGS): Likewise.
2789 (normal_mod_LDFLAGS): Likewise.
2790 (sh_mod_SOURCES): Likewise.
2791 (sh_mod_CFLAGS): Likewise.
2792 (sh_mod_LDFLAGS): Likewise.
2794 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
2795 script/sh/lexer.c_DEPENDENCIES.
2796 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
2797 kern/rescue_reader.c and kern/rescue_parser.c.
2798 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
2799 (grub_emu_SOURCES): Change source files.
2800 (pkglib_MODULES): Remove normal.mod.
2801 (normal_SOURCES): Removed.
2802 (normal_mod_CFLAGS): Likewise.
2803 (normal_mod_LDFLAGS): Likewise.
2804 * conf/i386-coreboot.rmk: Likewise.
2805 * conf/i386-efi.rmk: Likewise.
2806 * conf/i386-ieee1276.rmk: Likewise.
2807 * conf/powerpc-ieee1275.rmk: Likewise.
2808 * conf/sparc64-ieee1275.rmk: Likewise.
2809 * conf/x86_64-efi.rmk: Likewise.
2811 * include/grub/command.h (grub_command_execute): New inline function.
2813 * include/grub/menu.h (grub_menu_entry): Removed commands field.
2815 * include/grub/normal.h: Remove <grub/setjmp.h>.
2816 (grub_fs_module_list): Moved to normal/autofs.c.
2817 (grub_exit_env): Removed.
2818 (grub_command_execute): Likewise.
2819 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
2821 (read_command_list): New function declaration.
2822 (read_fs_list): Likewise.
2824 * include/parser.h: Include <grub/reader.h>.
2825 (grub_parser_split_cmdline): Change type of getline parameter.
2826 (grub_parser): New structure.
2827 (grub_parser_class): New variable.
2828 (grub_parser_execute): New function declaration.
2829 (grub_register_rescue_parser): Likewise.
2830 (grub_parser_register): New inline function.
2831 (grub_parser_unregister): Likewise.
2832 (grub_parser_get_current): Likewise.
2833 (grub_parser_set_current): Likewise.
2835 * include/grub/reader.h: New file.
2836 * kern/reader.c: Likewise.
2837 * kern/rescue_parser.c: Likewise.
2838 * kern/rescue_reader.c: Likewise.
2839 * normal/autofs.c: Likewise.
2840 * normal/dyncmd.c: Likewise.
2842 * include/grub/rescue.h: Removed.
2843 * normal/command.h: Likewise.
2845 * include/grub/script.h: Moved to ...
2846 * include/grub/script_sh.h: ... Moved here.
2847 * normal/execute.c: Moved to ...
2848 * script/sh/execute.c: ... Moved here.
2849 * normal/function.c: Moved to ...
2850 * script/sh/function.c: ... Moved here.
2851 * normal/lexer.c: Moved to ...
2852 * script/sh/lexer.c: ... Moved here.
2853 * normal/parser.y: Moved to ...
2854 * script/sh/parser.y: ... Moved here.
2855 * normal/script.c: Moved to ...
2856 * script/sh/script.c: ... Moved here.
2858 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
2860 (grub_exit_env): Removed.
2861 (fs_module_list): Moved to normal/autofs.c.
2862 (grub_file_getline): Don't handle comment here.
2863 (free_menu): Skip removed field entry->commands.
2864 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
2866 (read_config_file): Removed nested parameter, change getline function.
2867 (grub_enter_normal_mode): Removed.
2868 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
2869 (read_command_list): Likewise.
2870 (autoload_fs_module): Moved to normal/autofs.c.
2871 (read_fs_list): Likewise.
2872 (reader_nested): New variable.
2873 (grub_normal_execute): Run parser.sh to switch to sh parser.
2874 (grub_cmd_rescue): Removed.
2875 (cmd_normal): Removed.
2876 (grub_cmd_normal): Unregister itself at the beginning. Don't register
2878 (grub_cmdline_run): New function.
2879 (grub_normal_reader_init): Likewise.
2880 (grub_normal_read_line): Likewise.
2881 (grub_env_write_pager): Likewise.
2882 (cmdline): New variable.
2883 (grub_normal_reader): Likewise.
2884 (GRUB_MOD_INIT): Register normal reader and set as current, register
2885 pager hook, register normal command with grub_register_command_prio,
2886 so that it won't show up in command.lst.
2887 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
2888 grub_fs_autoload_hook.
2890 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
2891 (grub_menu_execute_entry): Replace grub_script_execute with
2892 grub_parser_execute, change parameter to grub_command_execute.
2894 * normal/menu_text.c: Remove <grub/script.h>.
2896 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
2897 and <grub/parser.h>.
2898 (run): Change editor_getline to use new parser interface. Change
2899 parameter to grub_command_execute.
2901 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
2902 <grub/reader.h> and <grub/parser.h>.
2903 (grub_load_normal_mode): Execute normal command.
2904 (grub_main): Call grub_register_core_commands,
2905 grub_register_rescue_parser and grub_register_rescue_reader, use
2906 grub_reader_loop to enter input loop.
2908 * kern/parser.c (grub_parser_split_cmdline): Change type of
2910 (grub_parser_class): New variable.
2911 (grub_parser_execute): New function.
2913 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
2914 * loader/multiboot2.c: Likewise.
2915 * loader/sparc64/ieee1275/linux.c: Likewise.
2917 * util/grub-emu.c (read_command_list): New dummy function.
2919 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
2921 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
2922 count to 16 for CCISS and IDA.
2924 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
2926 * normal/menu_text.c (grub_wait_after_message): Print a newline
2927 after waiting for user input.
2929 * loader/i386/linux.c: Include `<grub/normal.h>'.
2930 (grub_cmd_linux): Improve the error message about `ask' mode, by
2931 waiting for user input so it's not missed (we can do this, since
2932 user requested interaction).
2934 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2936 Added missing lst to grub-mkrescue
2938 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
2939 and ${input_dir}/parttool.lst
2941 2009-04-30 David S. Miller <davem@davemloft.net>
2943 * util/hostdisk.c (device_is_wholedisk): New function.
2944 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
2945 zero only if device_is_wholedisk() returns true.
2947 * util/hostdisk.c (convert_system_partition_to_system_disk):
2948 Handle virtual disk devices named /dev/vdiskX as found on sparc
2951 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
2952 lettered partition specifier is found, convert to numbered.
2954 2009-04-29 David S. Miller <davem@davemloft.net>
2956 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
2957 * include/grub/sparc64/ieee1275/memory.h: Likewise.
2959 * normal/command.c: Add missing newline at end of file.
2961 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
2963 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
2964 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
2965 grub_ofdisk_read): Likewise, and deal similarly with the fact that
2966 ihandles have a 32-bit type but need to be stored in a "void *".
2968 2009-04-28 Pavel Roskin <proski@gnu.org>
2970 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
2971 not disk. Adjust all dependencies.
2972 (grub_fs_uuid_close): Use grub_device_close(), not
2975 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
2976 parent's partition, don't copy it by reference, as it gets freed
2979 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2981 Preboot hooks support
2983 * commands/boot.c (struct grub_preboot_t): new declaration
2984 (preboots_head): new variable
2985 (preboots_tail): likewise
2986 (grub_loader_register_preboot_hook): new function
2987 (grub_loader_unregister_preboot_hook): likewise
2988 (grub_loader_set): launch preboot hooks
2989 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
2990 (grub_loader_register_preboot_hook): new declaration
2991 (grub_loader_unregister_preboot_hook): likewise
2993 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2997 * disk/scsi.c (grub_scsi_open): added missing cast when
2998 calling grub_dprintf
3000 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3002 Bug and warning fixes
3004 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
3006 * commands/test.c (test_parse): fixed bug with file tests and corrected
3007 declaration of find_file
3009 2009-04-26 Pavel Roskin <proski@gnu.org>
3011 * Makefile.in: Don't install empty manual pages if help2man is
3012 missing. Use help2man option for output, not shell redirection.
3014 2009-04-26 David S. Miller <davem@davemloft.net>
3016 * util/grub-mkdevicemap.c (make_device_map): Add missing
3017 NESTED_FUNC_ATTR to process_device().
3019 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3023 * commands/test.c: rewritten to use bash-like test
3025 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3027 Parttool autoloading and improvements
3029 * Makefile.in (pkglib_DATA): add parttool.lst
3030 (parttool.lst): new target
3031 * genmk.rb: generate parttool-*
3032 (CLEANFILES): add #{parttool}
3033 (PARTTOOLFILES): new variable
3034 * genparttoollist.sh: new file
3035 * parttool/pcpart.c (grub_pcpart_boot): more feedback
3036 (grub_pcpart_type): likewise
3037 * commands/parttool.c (helpmsg): new variable
3038 (grub_cmd_parttool): output help if not enough arguments are supplied
3040 (GRUB_MOD_INIT(parttool)): use helpmsg
3042 2009-04-24 David S. Miller <davem@davemloft.net>
3044 Avoiding opening same device multiple times in device iterator.
3046 * kern/device.c: (grub_device_iterate): Define struct part_ent,
3047 and use it to build a list of partitions in iterate_disk() and
3048 iterate_partition().
3050 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
3053 * disk/ieee1275/nand.c (grub_nand_iterate): Return
3054 grub_devalias_iterate() result instead of unconditional 0.
3055 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
3056 Also, capture hook return value, either directly or via
3057 grub_children_iterate(), and propagate to caller.
3058 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
3059 grub_children_iterate): Return value is now 'int' instead of
3061 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
3062 like a proper iterator, stopping when hooks return non-zero.
3063 (grub_devalias_iterate): Likewise.
3065 2009-04-23 David S. Miller <davem@davemloft.net>
3067 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
3069 2009-04-22 David S. Miller <davem@davemloft.net>
3071 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
3072 is larger than address_cells, use that value for address_cells too.
3074 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
3075 IEEE1275_MAX_PATH_LEN): Define.
3076 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
3077 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
3078 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
3079 'devtype'. Explicitly NULL terminate devalias expansion.
3081 * util/sparc64/ieee1275/misc.c: New file.
3082 * util/sparc64/ieee1275/grub-setup.c: New file.
3083 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
3084 * util/sparc64/ieee1275/grub-mkimage.c: New file.
3085 * util/sparc64/ieee1275/grub-install.in: New file.
3086 * util/ieee1275/ofpath.c: New file.
3087 * util/ieee1275/devicemap.c: New file.
3088 * util/devicemap.c: New file.
3089 * util/deviceiter.c: New file.
3090 * kern/sparc64/ieee1275/init.c: New file.
3091 * include/grub/util/ofpath.h: New file.
3092 * include/grub/util/deviceiter.h: New file.
3093 * util/grub-mkdevicemap.c: Include deviceiter.h.
3094 Implement using grub_util_emit_devicemap_entry and
3095 grub_util_iterate_devices.
3096 * conf/i386-corebook.rmk: Build util/deviceiter.c and
3097 util/devicemap.c into grub-mkdevicemap
3098 * conf/i386-efi.rmk: Likewise.
3099 * conf/i386-ieee1275.rmk: Likewise.
3100 * conf/i386-pc.rmk: Likewise.
3101 * conf/powerpc-ieee1275.rmk: Likewise.
3102 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
3103 images and installation utilities. Build kernel as image
3104 instead of as elf binary. Use common rules as much as possible.
3106 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3108 Correct GPT definition
3110 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
3113 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
3115 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
3117 2009-04-19 David S. Miller <davem@davemloft.net>
3119 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
3120 (grub_rescue_cmd_linux): Rename to...
3121 (grub_cmd_linux): and fix prototype.
3122 (grub_rescue_cmd_initrd): Rename to...
3123 (grub_cmd_initrd): and fix prototype.
3124 (cmd_linux, cmd_initrd): New.
3125 (GRUB_MOD_INIT(linux)): Use grub_register_command().
3126 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
3128 2009-04-17 Pavel Roskin <proski@gnu.org>
3130 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
3132 (grub_ohci_transfer): Likewise.
3134 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
3136 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
3137 return without a value. Fix inconsistent indentation.
3139 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
3140 match struct grub_fs.
3142 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
3143 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
3144 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3145 * commands/lspci.c (grub_lspci_iter): Likewise.
3147 2009-04-16 Bean <bean123ch@gmail.com>
3149 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
3152 2009-04-15 Pavel Roskin <proski@gnu.org>
3154 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
3155 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
3156 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
3159 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
3161 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
3162 that no multiple data or metadata areas are supported and `Unknown
3165 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3167 Move loader out of the kernel
3169 * kern/loader.c: moved to ...
3170 * commands/boot.c: ... moved here
3171 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
3172 * commands/boot.c (grub_cmd_boot): moved here. All users updated
3173 * include/grub/kernel.h (grub_machine_fini): export
3174 * include/grub/loader.h (grub_loader_is_loaded): update declaration
3175 (grub_loader_set): likewise
3176 (grub_loader_unset): likewise
3177 (grub_loader_boot): likewise
3178 * conf/common.rmk: new module boot.mod
3179 (pkglib_MODULES): add boot.mod
3180 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
3181 (grub_emu_SOURCES): likewise
3182 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
3183 (grub_emu_SOURCES): likewise
3184 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
3185 (grub_emu_SOURCES): likewise
3186 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
3187 (grub_emu_SOURCES): likewise
3188 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
3189 (grub_emu_SOURCES): likewise
3190 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
3191 (grub_emu_SOURCES): likewise
3192 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
3193 (grub_emu_SOURCES): likewise
3195 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3197 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
3199 * kern/misc.c (grub_itoa): Removed function
3200 (grub_ltoa): likewise
3201 (grub_vsprintf): use grub_lltoa
3203 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3207 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
3208 * conf/i386-coreboot.rmk: likewise
3209 * conf/i386-ieee1275.rmk: likewise
3210 * conf/powerpc-ieee1275.rmk: likewise
3212 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
3214 * INSTALL: Add that `./autogen.sh' needs to be run before
3217 2009-04-14 Bean <bean123ch@gmail.com>
3219 * Makefile.in (pkglib_DATA): Add handler.lst.
3220 (handler.lst): New rule.
3222 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
3223 * conf/i386-coreboot.rmk: Likewise.
3224 * conf/i386-ieee1275.rmk: Likewise.
3225 * conf/i386-efi.rmk: Likewise.
3226 * conf/x86_64-efi.rmk: Likewise.
3227 * conf/powerpc-ieee1275.rmk: Likewise.
3228 * conf/sparc64-ieee1275.rmk: Likewise.
3230 * genhandlerlist.sh: New file.
3232 * genmk.rb: Add rules to generate handler.lst.
3234 * include/grub/normal.h (grub_file_getline): New function definition.
3235 (read_handler_list): Likewise.
3236 (free_handler_list): Likewise.
3238 * include/grub/term.h (grub_term_register_input): Add name parameter
3239 for auto generation of handler.lst.
3240 (grub_term_register_output): Likewise.
3242 * normal/handler.c: New file.
3244 * normal/main.c (get_line): Renamed to grub_file_getline.
3245 (read_config_file): Use the newly renamed grub_file_getline.
3246 (read_command_list): Likewise.
3247 (read_fs_list): Likewise.
3248 (grub_normal_execute): Call read_handler_list to parse handler.lst.
3249 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
3251 * term/efi/console.c (grub_console_init): Add name parameter for auto
3252 generation of handler.lst.
3253 * term/gfxterm.c: Likewise.
3254 * term/i386/pc/at_keyboard.c: Likewise.
3255 * term/i386/pc/console.c: Likewise.
3256 * term/i386/pc/serial.c: Likewise.
3257 * term/i386/pc/vesafb.c: Likewise.
3258 * term/i386/pc/vga.c: Likewise.
3259 * term/i386/pc/vga_text.c: Likewise.
3260 * term/ieee1275/ofconsole.c: Likewise.
3261 * term/usb_keyboard.c: Likewise.
3263 2009-04-14 Bean <bean123ch@gmail.com>
3265 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
3266 properly with null character.
3268 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
3270 * configure: Remove.
3271 * config.h.in: Likewise.
3272 * stamp-h.in: Likewise.
3273 * DISTLIST: Likewise.
3274 * conf/common.mk: Likewise.
3275 * conf/i386-coreboot.mk: Likewise.
3276 * conf/i386-efi.mk: Likewise.
3277 * conf/i386-ieee1275.mk: Likewise.
3278 * conf/i386.mk: Likewise.
3279 * conf/i386-pc.mk: Likewise.
3280 * conf/powerpc-ieee1275.mk: Likewise.
3281 * conf/sparc64-ieee1275.mk: Likewise.
3282 * conf/x86_64-efi.mk: Likewise.
3284 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
3287 2009-04-14 John Stanley <jpsinthemix@verizon.net>
3288 David S. Miller <davem@davemloft.net>
3290 * util/hostdisk.c (make_device_name): Fix buffer length
3293 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
3295 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
3296 <sys/param.h> and <sys/sysctl.h>.
3297 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
3298 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
3299 opening the device and reset them afterwards.
3301 2009-04-13 Pavel Roskin <proski@gnu.org>
3303 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
3304 Reported by John Stanley <jpsinthemix@verizon.net>
3306 2009-04-13 Robert Millan <rmh@aybabtu.com>
3308 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
3309 that name for menuentries when appropriate.
3311 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
3313 * util/grub.d/10_freebsd.in: Add a missing `fi'.
3315 2009-04-13 Robert Millan <rmh@aybabtu.com>
3317 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
3318 to Linux, simply abort telling the user it's no longer supported.
3320 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
3322 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
3323 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
3324 `freebsd_loadenv' only when devices.hints exist.
3326 2009-04-13 Pavel Roskin <proski@gnu.org>
3328 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
3330 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
3332 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
3334 (grub_drive): Likewise.
3336 2009-04-13 David S. Miller <davem@davemloft.net>
3338 * kern/sparc64/ieee1275/ieee1275.c: New file.
3339 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
3340 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
3341 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
3342 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
3343 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
3344 grub_ieee1275_alloc_physmem): Declare new exported functions.
3346 * include/grub/sparc64/ieee1275/loader.h: New file.
3347 * include/grub/sparc64/ieee1275/memory.h: Likewise.
3348 * include/grub/sparc64/kernel.h: Likewise.
3349 * loader/sparc64/ieee1275/linux.c: Likewise.
3351 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
3352 (grub_fstest_SOURCES): Likewise.
3354 * util/hostdisk.c (make_device_name): Do not make any assumptions
3355 about the length of drive names.
3357 * kern/dl.c (grub_dl_load_file): Close file immediately when
3358 we are done using it.
3360 2009-04-12 David S. Miller <davem@davemloft.net>
3362 * kern/misc.c (grub_ltoa): Fix cast when handling negative
3363 values. Noticed by Pavel Roskin.
3365 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
3368 * genmk.rb: Add more flexible image type specification, also
3369 pass --strip-unneeded to objcopy.
3370 * conf/i386-pc.rmk: Use *_FORMAT.
3371 * conf/i386-pc.mk: Rebuilt.
3373 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
3374 (OFDISK_HASH_SZ): Define.
3375 (ofdisk_hash): New hash table.
3376 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
3377 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
3378 instead of device phandle which is not unique.
3380 * kern/sparc64/ieee1275/init.c: Delete, replace with...
3381 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
3382 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
3383 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
3384 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
3385 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
3386 GRUB_KERNEL_MACHINE_DATA_END): Define.
3387 (grub_kernel_image_size, grub_total_module_size): Declare.
3389 2009-04-12 Pavel Roskin <proski@gnu.org>
3391 * configure.ac: Change the logic when we check for target tools.
3392 Do it when the target is specified and it's different from the
3393 specified value of the host.
3395 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
3397 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
3398 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
3399 GNU/kFreeBSD. Check if a device is a character device. Use
3400 DIOCGMEDIASIZE to get the size.
3401 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
3402 support for GNU/kFreeBSD.
3403 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
3404 is a character device instead of a block device. Add support for
3405 FreeBSD device names.
3407 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
3408 is a character device instead of a block device.
3410 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
3411 is a character device instead of a block device.
3413 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
3415 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
3416 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
3417 FreeBSD. Check if a device is a character device. Use
3418 DIOCGMEDIASIZE to get the size.
3419 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
3420 support for FreeBSD.
3421 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
3422 is a character device instead of a block device. Add support for
3423 FreeBSD device names.
3425 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
3426 a character device instead of a block device.
3427 (grub_util_check_char_device): New function.
3429 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
3430 a character device instead of a block device.
3432 * include/grub/util/getroot.h (grub_util_check_char_device): New
3435 2009-04-11 David S. Miller <davem@davemloft.net>
3437 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
3439 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
3440 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
3441 function, if present.
3442 (__bswapdi2): Likewise.
3444 * include/grub/sparc64/ieee1275/boot.h: New file.
3445 * boot/sparc64/ieee1275/boot.S: Likewise.
3446 * boot/sparc64/ieee1275/diskboot.S: Likewise.
3448 * kern/misc.c (grub_ltoa): New function.
3449 (grub_vsprintf): Use it to format 'long' integers.
3451 2009-04-10 David S. Miller <davem@davemloft.net>
3453 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
3454 slots are of type grub_ieee1275_cell_t.
3455 (grub_nand_read): Likewise.
3456 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
3457 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
3458 macros are used to compare values in arg/ret block of the call.
3459 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
3460 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
3461 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
3462 grub_ieee1275_instance_to_path, grub_ieee1275_write,
3463 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
3464 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
3465 grub_ieee1275_close, grub_ieee1275_set_property,
3466 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
3467 grub_ieee1275_cell_t.
3468 * kern/ieee1275/openfw.c (grub_map): Likewise.
3469 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
3470 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
3472 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
3473 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
3474 (grub_devalias_iterate): Likewise.
3476 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3480 * fs/ufs.c (INODE_NBLOCKS): new definition
3481 (struct grub_ufs_dirent): added fields for non-BSD dirents
3482 (grub_ufs_get_file_block): fixed double indirect handling
3483 (grub_ufs_lookup_symlink): use more robust way to determine whether
3485 (grub_ufs_find_file): support for non-BSD dirents
3486 (grub_ufs_dir): support for non-BSD dirents
3488 2009-04-10 Bean <bean123ch@gnail.com>
3490 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
3491 attribute, otherwise the size would be wrong for i386 platform.
3493 * include/grub/pci.h (grub_pci_read_word): New inline function.
3494 (grub_pci_read_byte): Likewise.
3495 (grub_pci_write): Likewise.
3496 (grub_pci_write_word): Likewise.
3497 (grub_pci_write_byte): Likewise.
3499 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
3501 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
3502 (find_framebuf): Scan pci to locate the frame buffer address.
3504 * commands/efi/fixvideo.c: New file.
3506 * commands/efi/loadbios.c: Likewise.
3508 * commands/memrw.c: Likewise.
3510 * util/grub-dumpbios.in: Likewise.
3512 * conf/common.rmk (grub-dumpbios): New utility.
3513 (pkglib_MODULES): New module memrw.mod.
3514 (memrw_mod_SOURCE): New macro.
3515 (memrw_mod_CFLAGS): Likewise.
3516 (memrw_mod_LDFLAGS): Likewise.
3518 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
3520 (loadbios_mod_SOURCE): New macro.
3521 (loadbios_mod_CFLAGS): Likewise.
3522 (loadbios_mod_LDFLAGS): Likewise.
3523 (fixvideo_mod_SOURCE): Likewise.
3524 (fixvideo_mod_CFLAGS): Likewise.
3525 (fixvideo_mod_LDFLAGS): Likewise.
3527 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
3529 (loadbios_mod_SOURCE): New macro.
3530 (loadbios_mod_CFLAGS): Likewise.
3531 (loadbios_mod_LDFLAGS): Likewise.
3532 (fixvideo_mod_SOURCE): Likewise.
3533 (fixvideo_mod_CFLAGS): Likewise.
3534 (fixvideo_mod_LDFLAGS): Likewise.
3536 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
3538 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
3540 2009-04-07 David S. Miller <davem@davemloft.net>
3542 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
3543 support for R_SPARC_OLO10 relocations. Fix compile warning for
3544 R_SPARC_WDISP30 case.
3545 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
3547 2009-04-06 Pavel Roskin <proski@gnu.org>
3549 * include/grub/misc.h (ARRAY_SIZE): New macro.
3550 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
3552 * loader/i386/linux.c (allocate_pages): Use free_pages().
3553 (grub_linux_unload): Don't use free_pages().
3554 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
3555 wrong index. Treat all other modes as text modes.
3556 (grub_cmd_linux): Initialize vid_mode unconditionally to
3557 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
3559 * commands/help.c (print_command_help): Use cmd->prio, not
3560 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
3562 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3566 * parttool/pcpart.c: new file
3567 * commands/parttool.c: likewise
3568 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
3569 (parttool_mod_SOURCES): new variable
3570 (parttool_mod_CFLAGS): likewise
3571 (parttool_mod_LDFLAGS): likewise
3572 (pcpart_mod_SOURCES): likewise
3573 (pcpart_mod_CFLAGS): likewise
3574 (pcpart_mod_LDFLAGS): likewise
3575 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
3576 and parttool/pcpart.c
3577 * conf/i386-efi.rmk: likewise
3578 * conf/i386-ieee1275.rmk: likewise
3579 * conf/i386-pc.rmk: likewise
3580 * conf/powerpc-ieee1275.rmk: likewise
3581 * conf/sparc64-ieee1275.rmk: likewise
3582 * conf/x86_64-ieee1275.rmk: likewise
3584 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3586 Support for mtime and further expandability of dir command
3588 * include/grub/lib/datetime.h: moved to ...
3589 * include/grub/datetime.h: ... moved here and added
3590 declaration of grub_unixtime2datetime. All users updated
3591 * include/grub/fs.h: new syntax for dir and mtime functions in
3593 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
3594 and GRUB_FSHELP_FLAGS_MASK
3595 * commands/ls.c (grub_ls_list_files): Write mtime in long format
3596 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
3597 (grub_ext2_mtime): new function
3598 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
3599 (grub_hfsplus_mtime): new function
3600 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
3601 (GRUB_UFS_ATTR_FILE): likewise
3602 (GRUB_UFS_ATTR_LNK): likewise
3603 (struct grub_ufs_sblock): new fields mtime
3604 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
3606 (grub_ufs_dir): mtime support
3607 (grub_ufs_mtime): new function
3608 * fs/affs.c (grub_affs_dir): use new dir syntax
3609 * fs/afs.c (grub_afs_dir): likewise
3610 * fs/cpio.c (grub_cpio_dir): likewise
3611 * fs/fat.c (grub_fat_find_dir): likewise
3612 * fs/hfs.c (grub_hfs_dir): likewise
3613 * fs/iso9660.c (grub_iso9660_dir): likewise
3614 * fs/jfs.c (grub_jfs_dir): likewise
3615 * fs/minix.c (grub_minix_dir): likewise
3616 * fs/ntfs.c (grub_ntfs_dir): likewise
3617 * fs/reiserfs.c (grub_reiserfs_dir): likewise
3618 * fs/sfs.c (grub_sfs_dir): likewise
3619 * fs/xfs.c (grub_xfs_dir): likewise
3620 * util/hostfs.c (grub_hostfs_dir): likewise
3621 * lib/datetime.c: moved to ...
3622 * normal/datetime.c: ... moved here
3623 (grub_unixtime2datetime): new function
3624 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
3625 * normal/completion.c (iterate_dir): use new dir syntax
3626 * normal/misc.c (grub_normal_print_device_info): tell the
3627 last modification time of a volume
3628 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
3629 * conf/common.rmk: added lib/datetime.c to ls.mod
3630 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
3631 (normal_mod_SOURCES): likewise
3632 (datetime_mod_SOURCES): Removed lib/datetime.c
3633 * conf/i386-efi.rmk: likewise
3634 * conf/i386-ieee1275.rmk: likewise
3635 * conf/i386-pc.rmk: likewise
3636 * conf/powerpc-ieee1275.rmk: likewise
3637 * conf/sparc64-ieee1275.rmk: likewise
3638 * conf/x86_64-efi.rmk: likewise
3640 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3642 Trim trailing spaces in FAT label and support mtools-like labels
3644 * fs/fat.c (grub_fat_iterate_dir): New function based
3645 on grub_fat_find_dir
3646 (grub_fat_find_dir): use grub_fat_iterate_dir
3647 (grub_fat_label): likewise
3649 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3651 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
3653 remove extraneous kernel_elf_HEADERS
3655 2009-04-04 Bean <bean123ch@gnail.com>
3657 * include/grub/util/misc.h: Add dummy function fsync for mingw.
3659 * util/misc.c: Likewise.
3661 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
3663 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
3664 instead of grub_printf.
3666 2009-04-03 Robert Millan <rmh@aybabtu.com>
3668 * loader/i386/linux.c (grub_linux_setup_video): Fill
3669 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
3670 values from `mode info' structure instead of hardcoded
3673 2009-04-01 Pavel Roskin <proski@gnu.org>
3675 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
3677 * genmk.rb: Likewise.
3678 * configure.ac: Likewise.
3680 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
3682 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
3683 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
3685 2009-04-01 David S. Miller <davem@davemloft.net>
3687 * normal/sparc64/setjmp.S: Fix setjmp implementation.
3688 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
3689 (grub_setjmp): Mark with 'returns_twice' attribute.
3690 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
3691 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
3692 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
3694 2009-04-01 Robert Millan <rmh@aybabtu.com>
3696 Reapply fix from 2008-07-28 which was accidentally reverted; also
3697 perform the same fix to a similar check in same function.
3699 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
3700 with the same number are found, just use issue a warning with
3701 grub_dprintf(), as this error has been reported to be non-fatal.
3703 2009-03-31 Pavel Roskin <proski@gnu.org>
3705 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
3706 for cross-compilation.
3708 2009-03-30 Robert Millan <rmh@aybabtu.com>
3710 Fix i386-ieee1275 build.
3712 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
3715 2009-03-30 Pavel Roskin <proski@gnu.org>
3717 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
3718 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
3719 zero-terminated, rely only on the strlen value. Fix comparison
3720 of strings differing in length.
3722 2009-03-30 Robert Millan <rmh@aybabtu.com>
3724 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
3725 checking for abi version. Improve error messages on BIOS to notify
3726 user about `linux16' command.
3728 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3732 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
3733 in case of collision
3734 * disk/scsi.c (grub_scsi_open): free scsi in case of error
3736 2009-03-29 Robert Millan <rmh@aybabtu.com>
3738 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
3739 set `vid_mode' accordingly.
3740 (grub_linux_boot): Process `vid_mode' and set video mode.
3742 2009-03-29 Robert Millan <rmh@aybabtu.com>
3744 * util/grub.d/10_linux.in (linux_entry): New function.
3745 Factorize generation of Linux boot entries.
3747 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
3749 Make the format of Environment Block plain text. The boot loader
3750 part is not tested well yet.
3752 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
3755 (usage): Remove "info" and "clear". Add "unset". Update the
3756 description of "set", as this does not delete variables any
3758 (create_envblk_file): Complete rewrite.
3759 (open_envblk_file): Likewise.
3760 (cmd_info): Removed.
3761 (cmd_list): Likewise.
3762 (cmd_set): Likewise.
3763 (cmd_clear): Likewise.
3764 (list_variables): New function.
3765 (write_envblk): Likewise.
3766 (set_variables): Likewise.
3767 (unset_variables): Likewise.
3768 (main): Complete rewrite.
3770 * commands/loadenv.c (buffer): Removed.
3772 (open_envblk_file): New function.
3773 (read_envblk_file): Complete rewrite.
3774 (grub_cmd_load_env): Likewise.
3775 (grub_cmd_list_env): Likewise.
3776 (struct blocklist): New struct.
3777 (free_blocklists): New function.
3778 (check_blocklists): Likewise.
3779 (write_blocklists): Likewise.
3780 (grub_cmd_save_env): Complete rewrite.
3782 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
3783 a plain text signature.
3784 (GRUB_ENVBLK_MAXLEN): Removed.
3785 (struct grub_envblk): Complete rewrite.
3786 (grub_envblk_find): Removed.
3787 (grub_envblk_insert): Likewise.
3788 (grub_envblk_open): New prototype.
3789 (grub_envblk_set): Likewise.
3790 (grub_envblk_delete): Put const to VALUE.
3791 (grub_envblk_iterate): Put const to NAME and VALUE.
3792 (grub_envblk_close): New prototype.
3793 (grub_envblk_buffer): New inline function.
3794 (grub_envblk_size): Likewise.
3796 * lib/envblk.c: Include grub/mm.h.
3797 (grub_env_find): Removed.
3798 (grub_envblk_open): New function.
3799 (grub_envblk_close): Likewise.
3800 (escaped_value_len): Likewise.
3801 (find_next_line): Likewise.
3802 (grub_envblk_insert): Removed.
3803 (grub_envblk_set): New function.
3804 (grub_envblk_delete): Complete rewrite.
3805 (grub_envblk_iterate): Likewise.
3807 2009-03-28 Robert Millan <rmh@aybabtu.com>
3809 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
3810 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
3811 variables. Use 16-bit loader.
3812 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
3814 * kern/i386/loader.S (grub_linux_boot): Rename to ...
3815 (grub_linux16_boot): ... this. Update all users.
3816 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
3817 (grub_linux_boot): ... this. Update all users.
3819 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
3820 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
3821 commands to `linux16' and `initrd16'.
3822 (GRUB_MOD_FINI(linux)): Rename to ...
3823 (GRUB_MOD_FINI(linux16)): ... this.
3825 2009-03-24 Pavel Roskin <proski@gnu.org>
3827 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
3828 not just for compilation.
3830 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3832 Move multiboot helper out of kernel
3834 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
3835 `loader/i386/multiboot_helper.S'.
3836 * conf/i386-coreboot.rmk: Likewise
3837 * conf/i386-ieee1275.rmk: Likewise
3839 * kern/i386/loader.S: Move multiboot helpers from here...
3840 * loader/i386/multiboot_helper.S: ...moved here
3841 * include/grub/i386/loader.h: Move declarations of multiboot
3842 helpers from here...
3843 * include/grub/i386/multiboot.h: ...moved here
3844 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
3846 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
3848 * kern/env.c (grub_env_context_open): Added an argument to specify
3849 whether a new context inherits exported variables from current
3850 one. This is useful when making a sandbox to interpret a config
3852 All callers updated.
3854 * include/grub/env.h (grub_env_context_open): Updated the prototype.
3856 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
3858 * kern/env.c (grub_env_context_close): Fix memory leaks.
3860 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
3862 * normal/main.c (grub_normal_execute): Added an argument
3863 BATCH to specify if an interactive interface should be provided
3864 after reading a config file.
3865 All callers updated.
3866 (read_command_list): Prevent being executed twice.
3867 (read_fs_list): Likewise.
3869 * include/grub/normal.h (grub_normal_execute): Updated the
3872 2009-03-22 Pavel Roskin <proski@gno.org>
3874 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
3876 * kern/i386/pc/startup.S: Likewise.
3877 * kern/i386/efi/startup.S: Likewise.
3878 * kern/i386/ieee1275/startup.S: Likewise.
3879 * kern/i386/coreboot/startup.S: Likewise.
3880 * kern/x86_64/efi/startup.S: Likewise.
3882 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
3883 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
3884 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
3886 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
3888 Bugfixes in multiboot for bugs uncovered by solaris kernel.
3890 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
3892 Use vaddr of correct segment for entry_point.
3894 2009-03-21 Bean <bean123ch@gmail.com>
3896 * commands/blocklist.c: Add include file <grub/command.h>, remove
3897 <grub/normal.h> and <grub/arg.h>.
3898 (grub_cmd_blocklist): Use the new command interface.
3899 (GRUB_MOD_INIT): Likewise.
3900 (GRUB_MOD_FINI): Likewise.
3901 * commands/boot.c: Likewise.
3902 * commands/cat.c: Likewise.
3903 * commands/cmp.c: Likewise.
3904 * commands/configfile.c: Likewise.
3905 * commands/crc.c: Likewise.
3906 * commands/echo.c: Likewise.
3907 * commands/halt.c: Likewise.
3908 * commands/handler.c: Likewise.
3909 * commands/hdparm.c: Likewise.
3910 * commands/help.c: Likewise.
3911 * commands/hexdump.c: Likewise.
3912 * commands/loadenv.c: Likewise.
3913 * commands/ls.c: Likewise.
3914 * commands/lsmmap.c: Likewise.
3915 * commands/lspci.c: Likewise.
3916 * commands/loadenv.c: Likewise.
3917 * commands/read.c: Likewise.
3918 * commands/reboot.c: Likewise.
3919 * commands/search.c: Likewise.
3920 * commands/sleep.c: Likewise.
3921 * commands/test.c: Likewise.
3922 * commands/usbtest.c: Likewise.
3923 * commands/videotest.c: Likewise.
3924 * commands/i386/cpuid.c: Likewise.
3925 * commands/i386/pc/halt.c: Likewise.
3926 * commands/i386/pc/play.c: Likewise.
3927 * commands/i386/pc/pxecmd.c: Likewise.
3928 * commands/i386/pc/vbeinfo.c: Likewise.
3929 * commands/i386/pc/vbetest.c: Likewise.
3930 * commands/ieee1275/suspend.c: Likewise.
3931 * disk/loopback.c: Likewise.
3932 * font/font_cmd.c: Likewise.
3933 * hello/hello.c: Likewise.
3934 * loader/efi/appleloader.c: Likewise.
3935 * loader/efi/chainloader.c: Likewise.
3936 * loader/i386/bsd.c: Likewise.
3937 * loader/i386/efi/linux.c: Likewise.
3938 * loader/i386/ieee1275/linux.c: Likewise.
3939 * loader/i386/linux.c: Likewise.
3940 * loader/i386/pc/chainloader.c: Likewise.
3941 * loader/i386/pc/linux.c: Likewise.
3942 * loader/powerpc/ieee1275/linux.c: Likewise.
3943 * loader/multiboot_loader.c: Likewise.
3944 * term/gfxterm.c: Likewise.
3945 * term/i386/pc/serial.c: Likewise.
3946 * term/terminfo.c: Likewise.
3948 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
3949 * term/i386/pc/vga.c: Likewise.
3950 * video/readers/jpeg.c: Likewise.
3951 * video/readers/png.c: Likewise.
3952 * video/readers/tga.c: Likewise.
3954 * util/grub-fstest (cmd_loopback): Removed.
3955 (cmd_blocklist): Likewise.
3957 (grub_register_command): Likewise.
3958 (grub_unregister_command): Likewise.
3959 (execute_command): Use grub_command_find to locate command and execute
3962 * include/grub/efi/chainloader.h: Removed.
3963 * loader/efi/chainloader_normal.c: Likewise.
3964 * loader/i386/bsd_normal.c: Likewise.
3965 * loader/i386/pc/chainloader_normal.c: Likewise.
3966 * loader/i386/pc/multiboot_normal.c: Likewise.
3967 * loader/linux_normal.c: Likewise.
3968 * loader/multiboot_loader_normal.c: Likewise.
3969 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
3971 * gencmdlist.sh: Scan new registration command grub_register_extcmd
3972 and grub_register_command_p1.
3974 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
3975 kern/command.c, lib/arg.c and commands/extcmd.c.
3976 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
3977 (minicmd_mod_SOURCES): New variable.
3978 (minicmd_mod_CFLAGS): Likewise.
3979 (minicmd_mod_LDFLAGS): Likewise.
3980 (extcmd_mod_SOURCES): Likewise.
3981 (extcmd_mod_CFLAGS): Likewise.
3982 (extcmd_mod_LDFLAGS): Likewise.
3983 (boot_mod_SOURCES): Removed.
3984 (boot_mod_CFLAGS): Likewise.
3985 (boot_mod_LDFLAGS): Likewise.
3987 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
3989 (kernel_img_HEADERS): Add command.h.
3990 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
3991 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
3993 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
3994 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
3995 remove the corresponding normal mode command.
3996 (normal_mod_SOURCES): Remove normal/arg.c.
3997 * conf/i386-coreboot.rmk: Likewise.
3998 * conf/i386-efi.rmk: Likewise.
3999 * conf/i386-ieee1275.rmk: Likewise.
4000 * conf/powerpc-ieee1275.rmk: Likewise.
4001 * conf/x86_64-efi.rmk: Likewise.
4003 * include/grub/arg.h: Move from here ...
4004 * include/grub/lib/arg.h: ... to here.
4006 * normal/arg.c: Move from here ...
4007 * lib/arg.c: ... to here.
4009 * commands/extcmd.c: New file.
4010 * commands/minicmd.c: Likewise.
4011 * include/grub/command.h: Likewise.
4012 * include/grub/extcmd.h: Likewise.
4013 * kern/command.c: Likewise.
4014 * kern/corecmd.c: Likewise.
4016 * kern/list.c (grub_list_iterate): Return int instead of void.
4017 (grub_list_insert): New function.
4018 (grub_prio_list_insert): Likewise.
4020 * kern/rescue.c (grub_rescue_command): Removed.
4021 (grub_rescue_command_list): Likewise.
4022 (grub_rescue_register_command): Likewise.
4023 (grub_rescue_unregister_command): Likewise.
4024 (grub_rescue_cmd_boot): Move to minicmd.c
4025 (grub_rescue_cmd_help): Likewise.
4026 (grub_rescue_cmd_info): Likewise.
4027 (grub_rescue_cmd_boot): Likewise.
4028 (grub_rescue_cmd_testload): Likewise.
4029 (grub_rescue_cmd_dump): Likewise.
4030 (grub_rescue_cmd_rmmod): Likewise.
4031 (grub_rescue_cmd_lsmod): Likewise.
4032 (grub_rescue_cmd_exit): Likewise.
4033 (grub_rescue_print_devices): Moved to corecmd.c.
4034 (grub_rescue_print_files): Likewise.
4035 (grub_rescue_cmd_ls): Likewise.
4036 (grub_rescue_cmd_insmod): Likewise.
4037 (grub_rescue_cmd_set): Likewise.
4038 (grub_rescue_cmd_unset): Likewise.
4039 (attempt_normal_mode): Use grub_command_find to get normal module.
4040 (grub_enter_rescue_mode): Use grub_register_core_commands to register
4041 commands, remove grub_rescue_register_command calls.
4043 * normal/command.c (grub_register_command): Removed.
4044 (grub_unregister_command): Likewise.
4045 (grub_command_find): Likewise.
4046 (grub_iterate_commands): Likewise.
4047 (rescue_command): Likewise.
4048 (export_command): Moved to corecmd.c.
4049 (set_command): Removed.
4050 (unset_command): Likewise.
4051 (insmod_command): Likewise.
4052 (rmmod_command): Likewise.
4053 (lsmod_command): Likewise.
4054 (grub_command_init): Likewise.
4056 * normal/completion.c (iterate_command): Use cmd->prio to check for
4058 (complete_arguments): Use grub_extcmd_t structure to find options.
4059 (grub_normal_do_completion): Change function grub_iterate_commands to
4060 grub_command_iterate.
4062 * normal/execute.c (grub_script_execute_cmd): No need to parse
4065 * normal/main.c (grub_dyncmd_dispatcher): New function.
4066 (read_command_list): Register unload commands as dyncmd.
4067 (grub_cmd_normal): Use new command interface, register rescue,
4068 unregister normal at entry, register normal, unregister rescue at exit.
4070 * include/grub/list.h (grub_list_test_t): New type.
4071 (grub_list_iterate): Return int instead of void.
4072 (grub_list_insert): New function.
4073 (GRUB_AS_NAMED_LIST_P): New macro.
4074 (GRUB_AS_PRIO_LIST): Likewise.
4075 (GRUB_AS_PRIO_LIST_P): Likewise.
4076 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
4077 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
4078 (grub_prio_list): New structure.
4079 (grub_prio_list_insert): New function.
4080 (grub_prio_list_remove): New inline function.
4082 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
4083 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
4084 (GRUB_COMMAND_FLAG_MENU): Likewise.
4085 (GRUB_COMMAND_FLAG_BOTH): Likewise.
4086 (GRUB_COMMAND_FLAG_TITLE): Likewise.
4087 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
4088 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
4089 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
4090 (grub_command): Likewise.
4091 (grub_register_command): Likewise.
4092 (grub_command_find): Likewise.
4093 (grub_iterate_commands): Likewise.
4094 (grub_command_init): Likewise.
4095 (grub_arg_parse): Likewise.
4096 (grub_arg_show_help): Likewise.
4098 * include/grub/rescue.h (grub_rescue_register_command): Removed.
4099 (grub_rescue_unregister_command): Likewise.
4101 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
4102 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
4103 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
4105 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
4106 grub_rescue_cmd_initrd.
4107 * include/grub/i386/loader.h: Likewise.
4108 * include/grub/x86_64/loader.h: Likewise.
4110 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
4112 2009-03-21 Bean <bean123ch@gmail.com>
4114 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
4115 instead of stat in mingw environment.
4117 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
4119 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
4121 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
4124 2009-03-21 Bean <bean123ch@gmail.com>
4126 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
4129 2009-03-18 Michel Dänzer <michel@daenzer.net>
4131 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
4132 checking inode flags for EXT4_EXTENTS_FLAG.
4134 2009-03-18 Robert Millan <rmh@aybabtu.com>
4136 * loader/i386/linux.c: Include `<grub/video.h>' and
4137 `<grub/i386/pc/vbe.h>'..
4138 (grub_linux_setup_video): New function. Loosely based on the EFI one.
4139 (grub_linux32_boot): Attempt to configure video settings with
4140 grub_linux_setup_video().
4141 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
4142 to avoid grub_console_fini() which would step out of graphical mode
4145 2009-03-14 Robert Millan <rmh@aybabtu.com>
4147 Fix build on powerpc.
4148 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
4150 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
4152 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
4153 background image command.
4155 2009-03-12 Colin D Bennett <colin@gibibit.com>
4157 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
4158 (grub_gfxterm_putchar): Extract pairs of identical calls to
4159 draw_cursor out of conditional blocks.
4161 2009-03-11 Pavel Roskin <proski@gnu.org>
4163 * fs/hfs.c (grub_hfs_strncasecmp): New function.
4164 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
4166 2009-03-11 Robert Millan <rmh@aybabtu.com>
4168 * loader/i386/multiboot_elfxx.c
4169 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
4171 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
4173 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
4176 2009-03-11 Robert Millan <rmh@aybabtu.com>
4178 * loader/i386/multiboot.c (code_size): New variable.
4179 (grub_multiboot): Define offsets by adding to `code_size' rather
4180 than subtracting from `grub_multiboot_payload_size'. Provide
4181 4-byte alignment to MBI and others by increasing
4182 `boot_loader_name_length' appropriately.
4184 * loader/i386/multiboot_elfxx.c
4185 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
4187 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
4189 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
4192 2009-03-08 Robert Millan <rmh@aybabtu.com>
4194 Make loader/i386/linux.c usable on i386-pc again.
4196 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
4198 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
4201 2009-03-07 Bean <bean123ch@gmail.com>
4203 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
4206 2009-03-06 Robert Millan <rmh@aybabtu.com>
4208 Fix display issue on terminals with screen size other than 80x25
4209 (e.g. gfxterm with resolution higher than 640x480).
4211 * normal/main.c (grub_normal_init_page): Display title text in a
4212 position relative to the center of the terminal instead of relying
4213 on a hardcoded offset.
4215 2009-03-04 Robert Millan <rmh@aybabtu.com>
4217 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
4220 * Makefile.in (host_kernel): New variable.
4221 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
4222 scripts instead of just the windows one.
4223 * configure.ac: Initialize and AC_SUBST `host_kernel'.
4225 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
4227 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
4229 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
4230 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4231 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
4232 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4233 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4234 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4236 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
4238 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
4239 or if there's no space for the disk label and print the partition number on a
4242 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
4244 * util/misc.c: Include <time.h>.
4245 (grub_millisleep): New function.
4247 2009-03-04 Bean <bean123ch@gmail.com>
4249 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
4250 another option -mno-red-zone.
4252 * commands/handler.c: Change module description.
4254 * kern/handler.c: Add missing space at the end of description line.
4256 * kern/list.c: Likewise.
4258 2009-03-03 Robert Millan <rmh@aybabtu.com>
4260 Move more components to the relocation area, and fix mbi pointer
4261 handling to use the destination rather than the origin (thanks to
4262 Vladimir Serbinenko for spotting).
4264 * loader/i386/multiboot.c (mbi_dest): New variable.
4265 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
4266 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
4269 2009-03-01 Bean <bean123ch@gmail.com>
4271 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
4272 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
4273 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
4274 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
4276 * loader/i386/efi/linux.c (acpi_guid): New variable.
4277 (acpi_guid): Likewise.
4278 (EBDA_SEG_ADDR): New constant.
4279 (LOW_MEM_ADDR): Likewise.
4280 (FAKE_EBDA_SEG): Likewise.
4281 (fake_bios_data): New function.
4282 (grub_linux_boot): Call fake_bios_data.
4284 2009-03-01 Bean <bean123ch@gmail.com>
4286 * commands/terminal.c: Removed.
4288 * commands/handler.c: New file.
4290 * include/grub/list.h: Likewise.
4292 * include/grub/handler.h: Likewise.
4294 * kern/list.c: Likewise.
4296 * kern/handler.c: Likewise.
4298 * kern/term.h: Include header file <grub/handler.h>.
4299 (grub_term_input): Move next field to the beginning.
4300 (grub_term_output): Likewise.
4301 (grub_term_input_class): New variable.
4302 (grub_term_output_class): Likewise.
4303 (grub_term_register_input): Changed to inline function.
4304 (grub_term_register_output): Likewise.
4305 (grub_term_unregister_input): Likewise.
4306 (grub_term_unregister_output): Likewise.
4307 (grub_term_set_current_input): Likewise.
4308 (grub_term_set_current_output): Likewise.
4309 (grub_term_get_current_input): Likewise.
4310 (grub_term_get_current_output): Likewise.
4311 (grub_term_iterate_input): Removed.
4312 (grub_term_iterate_output): Likewise.
4314 * kern/term.c (grub_term_list_input): Removed.
4315 (grub_term_list_output): Likewise.
4316 (grub_term_input_class): New variable.
4317 (grub_term_output_class): Likewise.
4318 (grub_cur_term_input): Change variable as macro.
4319 (grub_cur_term_output): Likewise.
4320 (grub_term_register_input): Removed.
4321 (grub_term_register_output): Likewise.
4322 (grub_term_unregister_input): Likewise.
4323 (grub_term_unregister_output): Likewise.
4324 (grub_term_set_current_input): Likewise.
4325 (grub_term_set_current_output): Likewise.
4326 (grub_term_iterate_input): Likewise.
4327 (grub_term_iterate_output): Likewise.
4328 (grub_term_get_current_input): Likewise.
4329 (grub_term_get_current_output): Likewise.
4331 * util/grub-editenv.c: Include header file <grub/handler.h>.
4332 (grub_term_get_current_input): Removed.
4333 (grub_term_get_current_output): Likewise.
4334 (grub_term_input_class): New variable.
4335 (grub_term_output_class): Likewise.
4337 * util/grub-fstest.c (grub_term_get_current_input): Removed.
4338 (grub_term_get_current_output): Likewise.
4339 (grub_term_input_class): New variable.
4340 (grub_term_output_class): Likewise.
4342 * util/grub-probe.c (grub_term_get_current_input): Removed.
4343 (grub_term_get_current_output): Likewise.
4344 (grub_term_input_class): New variable.
4345 (grub_term_output_class): Likewise.
4347 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
4348 (grub_term_get_current_output): Likewise.
4349 (grub_term_input_class): New variable.
4350 (grub_term_output_class): Likewise.
4352 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
4353 (terminal_mod_SOURCES): Likewise.
4354 (terminal_mod_CFLAGS): Likewise.
4355 (terminal_mod_LDFLAGS): Likewise.
4357 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
4359 (kernel_img_SOURCES): Add list.c and handler.c.
4360 (kernel_img_HEADERS): Add list.h and handler.h.
4362 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
4364 (kernel_mod_SOURCES): Add list.c and handler.c.
4365 (kernel_mod_HEADERS): Add list.h and handler.h.
4367 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
4369 (kernel_elf_SOURCES): Add list.c and handler.c.
4370 (kernel_elf_HEADERS): Add list.h and handler.h.
4372 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
4374 (kernel_elf_SOURCES): Add list.c and handler.c.
4375 (kernel_elf_HEADERS): Add list.h and handler.h.
4377 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
4379 (kernel_mod_SOURCES): Add list.c and handler.c.
4380 (kernel_mod_HEADERS): Add list.h and handler.h.
4382 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
4384 (kernel_elf_SOURCES): Add list.c and handler.c.
4385 (kernel_elf_HEADERS): Add list.h and handler.h.
4387 2009-02-27 Robert Millan <rmh@aybabtu.com>
4389 Factorize elf32 / elf64 code in Multiboot loader. This will
4390 prevent it from getting out of sync again.
4392 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
4393 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
4394 grub_multiboot_load_elf64): Move from here ...
4395 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
4396 grub_multiboot_load_elf): ... to here (new file).
4398 2009-02-27 Robert Millan <rmh@aybabtu.com>
4400 * util/grub.d/10_linux.in: Rename "single-user mode" to
4403 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4405 Don't leak in SCSI code.
4406 * disk/scsi.c (grub_scsi_close): free `scsi'.
4408 2009-02-27 Robert Millan <rmh@aybabtu.com>
4410 * loader/i386/pc/multiboot.c: Move from here ...
4411 * loader/i386/multiboot.c: ... to here. Update all users.
4413 2009-02-27 Robert Millan <rmh@aybabtu.com>
4415 Patch from Alexandre Bique <bique.alexandre@gmail.com>
4416 * util/i386/pc/grub-setup.c (setup): Fix directory path.
4418 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
4420 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
4423 2009-02-27 Robert Millan <rmh@aybabtu.com>
4425 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
4426 `0x' qualifier as 0 when base is specified as parameter).
4428 2009-02-24 Bean <bean123ch@gmail.com>
4430 * configure.ac: Check for -mcmodel=large in x86_64 target.
4432 * include/grub/efi/api.h (efi_call_10): New macro.
4433 (efi_wrap_10): New function.
4435 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
4436 (GRUB_PE32_REL_BASED_HIGH): Likewise.
4437 (GRUB_PE32_REL_BASED_LOW): Likewise.
4438 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
4439 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
4440 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
4441 (GRUB_PE32_REL_BASED_SECTION): Likewise.
4442 (GRUB_PE32_REL_BASED_REL): Likewise.
4443 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
4444 (GRUB_PE32_REL_BASED_DIR64): Likewise.
4445 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
4447 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
4450 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
4451 (efi_wrap_10): New function.
4453 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
4455 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
4456 MB/MBP model (NV chipset).
4457 (devdata_devs): Add devpath_5 to the list.
4459 * load/i386/efi/linux.c (video_base): Remove variable.
4460 (RGB_MASK): New macro.
4461 (RGB_MAGIC): Likewise.
4462 (LINE_MIN): Likewise.
4463 (LINE_MAX): Likewise.
4464 (FBTEST_STEP): Likewise.
4465 (FBTEST_COUNT): Likewise.
4466 (fb_list): New variable.
4467 (grub_find_video_card): Remove function.
4468 (find_framebuf): New function.
4469 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
4472 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
4475 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
4477 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
4479 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
4482 2009-02-22 Robert Millan <rmh@aybabtu.com>
4484 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
4485 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
4486 in our relocation, instead of using it directly from heap. Also
4487 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
4489 2009-02-21 Robert Millan <rmh@aybabtu.com>
4491 Implement USB keyboard support (based on patch by Marco Gerards)
4493 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
4494 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
4495 (usb_keyboard_mod_LDFLAGS): New variables.
4497 * term/usb_keyboard.c: New file.
4499 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
4501 Corrected wrong declaration
4503 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
4505 2009-02-14 Christian Franke <franke@computer.org>
4507 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
4508 (grub_lspci_iter): Print class code and programming interface byte.
4510 2009-02-14 Christian Franke <franke@computer.org>
4512 * gendistlist.sh: Ignore `.svn' directories.
4514 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
4516 * fs/fat.c: Add 2009 to Copyright line.
4518 2009-02-14 Christian Franke <franke@computer.org>
4520 * commands/hdparm.c: New file. Provides `hdparm' command
4521 which sends ATA commands via grub_disk_ata_pass_through ().
4523 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
4525 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
4526 and <grub/cpu/io.h> to include/grub/ata.h.
4527 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
4528 (GRUB_CDROM_SECTOR_SIZE): Remove.
4529 (GRUB_ATA_*): Move to include/grub/ata.h.
4530 (GRUB_ATAPI_*): Likewise.
4531 (enum grub_ata_commands): Likewise.
4532 (enum grub_ata_timeout_milliseconds): Likewise.
4533 (struct grub_ata_device): Likewise.
4534 (grub_ata_regset): Likewise.
4535 (grub_ata_regget): Likewise.
4536 (grub_ata_regset2): Likewise.
4537 (grub_ata_regget2): Likewise.
4538 (grub_ata_check_ready): Likewise.
4539 (grub_ata_wait_not_busy): Remove static, exported in
4541 (grub_ata_wait_drq): Likewise.
4542 (grub_ata_pio_read): Likewise.
4544 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
4545 function for hdparm.mod.
4547 * include/grub/ata.h: New file, contains declarations from
4549 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
4551 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
4552 (grub_disk_ata_pass_through): New exported variable.
4554 * kern/disk.c (grub_disk_ata_pass_through): New variable.
4556 2009-02-13 Colin D Bennett <colin@gibibit.com>
4558 Support multiple fallback entries, and provide an API to support
4559 executing default+fallback menu entries. Renamed the `terminal' menu
4562 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
4563 variable declaration.
4564 (grub_menu_execute_callback): New structure declaration.
4565 (grub_menu_execute_callback_t): New typedef.
4566 (grub_menu_execute_with_fallback): New function declaration.
4567 (grub_menu_get_entry): Likewise.
4568 (grub_menu_get_timeout): Likewise.
4569 (grub_menu_set_timeout): Likewise.
4571 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
4573 * normal/menu.c (grub_wait_after_message): Moved to
4574 `normal/menu_text.c'.
4575 (draw_border): Likewise.
4576 (print_message): Likewise.
4577 (print_entry): Likewise.
4578 (print_entries): Likewise.
4579 (grub_menu_init_page): Likewise.
4580 (get_entry_number): Likewise.
4581 (print_timeout): Likewise.
4582 (run_menu): Likewise.
4583 (grub_menu_execute_entry): Likewise.
4584 (show_text_menu): Likewise.
4585 (get_and_remove_first_entry_number): New function.
4586 (grub_menu_execute_with_fallback): Likewise.
4587 (get_entry): Renamed to ...
4588 (grub_menu_get_entry): .. this and made it global.
4589 (get_timeout): Renamed to ...
4590 (grub_menu_get_timeout): ... this and made it global.
4591 (set_timeout): Renamed to ...
4592 (grub_menu_set_timeout): ... this and made it global.
4593 (grub_normal_terminal_menu_viewer): Renamed to ...
4594 (grub_normal_text_menu_viewer): ... this.
4596 * normal/menu_text.c: New file. Extracted text-menu-specific code
4599 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
4600 (normal_mod_SOURCES): Likewise.
4602 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
4603 (normal_mod_SOURCES): Likewise.
4605 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4606 (normal_mod_SOURCES): Likewise.
4608 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
4609 (normal_mod_SOURCES): Likewise.
4611 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4612 (normal_mod_SOURCES): Likewise.
4614 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4615 (normal_mod_SOURCES): Likewise.
4617 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4618 (normal_mod_SOURCES): Likewise.
4620 2009-02-11 Robert Millan <rmh@aybabtu.com>
4622 * util/grub.d/00_header.in: Update old reference to `font' command.
4624 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
4626 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
4628 Based on patch from Javier MartÃn.
4630 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
4632 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
4633 to avoid false positives with FAT.
4634 (grub_fstest_SOURCES): Likewise.
4635 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
4636 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4637 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4638 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
4639 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4640 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4642 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
4644 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
4645 bpb.version_specific.fat12_or_fat16.fstype and
4646 bpb.version_specific.fat32.fstype.
4648 2009-02-08 Robert Millan <rmh@aybabtu.com>
4650 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
4652 2009-02-08 Robert Millan <rmh@aybabtu.com>
4654 * Makefile.in (host_os, host_cpu): New variables.
4655 (target_os): Remove. Update all users.
4657 2009-02-08 Marco Gerards <marco@gnu.org>
4659 * Makefile.in (enable_grub_emu_usb): New variable.
4660 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
4661 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
4662 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
4663 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
4664 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
4665 `usbtest.mod' and `usbms.mod'.
4666 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
4667 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
4668 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
4669 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
4670 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
4673 * disk/usbms.c: New file.
4675 * include/grub/usb.h: Likewise.
4677 * include/grub/usbtrans.h: Likewise.
4679 * include/grub/usbdesc.h: Likewise.
4681 * bus/usb/usbtrans.c: Likewise.
4683 * bus/usb/ohci.c: Likewise.
4685 * bus/usb/uhci.c: Likewise.
4687 * bus/usb/usbhub.c: Likewise.
4689 * bus/usb/usb.c: Likewise.
4691 * commands/usbtest.c: Likewise.
4693 * util/usb.c: Likewise.
4695 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
4697 * configure.ac: Test for libusb presence.
4699 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
4701 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
4703 * kern/mm.c: Add more comments.
4705 2009-02-08 Robert Millan <rmh@aybabtu.com>
4707 Patch from Javier MartÃn.
4708 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
4709 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
4711 2009-02-08 Robert Millan <rmh@aybabtu.com>
4713 * fs/cpio.c: Split tar functionality to ...
4714 * fs/tar.c: ... here (new file). Update all users.
4716 2009-02-07 Robert Millan <rmh@aybabtu.com>
4718 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
4719 backward-incompatible features.
4721 Based on patch from Javier MartÃn, with some adjustments.
4723 2009-02-07 Michael Scherer <misc@mandriva.org>
4725 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
4727 2009-02-07 Robert Millan <rmh@aybabtu.com>
4729 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
4730 position of `disk/lvm.c' to ensure grub_init_all() always picks it
4731 after the RAID stuff.
4733 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
4735 Fixes problem when running vbetest command as reported by
4736 Vladimir Serbinenko <phcoder@gmail.com>.
4738 * (grub_vbe_set_video_mode): Fixed problem with text modes.
4740 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
4742 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
4743 /dev/md/NpN style mdraid devices.
4745 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
4747 * util/unifont2pff.rb: Remove.
4749 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
4751 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
4754 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
4756 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
4757 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
4758 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4759 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
4760 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4761 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4762 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4764 2009-02-02 Christian Franke <franke@computer.org>
4766 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
4768 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
4770 * INSTALL: Note that we now require at least autoconf 2.59 and
4771 that LZO is optional.
4773 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
4775 Base on patch on bug #24154 created by Tomas Tintera
4778 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
4780 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
4782 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
4783 <bero@arklinux.org>.
4785 * normal/parser.y (script_init): Add missing semicolon.
4787 2009-01-31 Colin D Bennett <colin@gibibit.com>
4789 * normal/main.c: Add include to grub/menu_viewer.h.
4790 (free_menu_entry_classes): Added.
4791 (grub_normal_menu_addentry): Added class property handling.
4792 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
4793 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
4795 * normal/menu_viewer.c: New file.
4797 * normal/menu.c (run_menu_entry): Renamed to ...
4798 (grub_menu_execute_entry): ... this and made it as global.
4799 (grub_menu_run): Renamed to ...
4800 (show_text_menu): ... this and made it local.
4801 (show_text_menu): Adapt to new function names.
4802 (grub_normal_terminal_menu_viewer): New global variable.
4804 * include/grub/menu.h: New file.
4806 * include/grub/menu_viewer.h: New file.
4808 * include/grub/normal.h: Added include to grub/menu.h.
4809 (grub_menu_entry): Moved to include/grub/menu.h.
4810 (grub_menu_entry_t): Likewise.
4811 (grub_menu): Likewise.
4812 (grub_menu_t): Likewise.
4813 (grub_normal_terminal_menu_viewer): Added.
4814 (grub_menu_execute_entry): Likewise.
4815 (grub_menu_run): Removed.
4817 * DISTLIST: Added include/grub/menu.h.
4818 Added include/grub/menu_viewer.h.
4819 Added normal/menu_viewer.c.
4821 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
4823 * normal/execute.c (grub_script_execute_menuentry): Changed to use
4824 arglist for menutitle arguments.
4826 * normal/main.c (grub_normal_menu_addentry): Likewise.
4828 * normal/parser.y (menuentry): Likewise.
4830 * normal/script.c (grub_script_create_cmdmenu): Likewise.
4832 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
4833 (grub_script_create_cmdmenu): Likewise.
4835 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
4837 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
4840 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
4842 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
4844 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
4846 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
4848 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
4850 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
4852 2009-01-30 Christian Franke <franke@computer.org>
4854 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
4855 in option help text.
4857 2009-01-27 Pavel Roskin <proski@gnu.org>
4859 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
4861 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
4863 * commands/lsmmap.c: Add include to grub/machine/memory.h.
4865 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
4867 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
4868 unregister function.
4870 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
4872 * disk/scsi.c (grub_scsi_read): Fix sign problem.
4874 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
4876 * util/grub-mkfont.c (usage): Fix typo.
4878 * util/elf/grub-mkimage.c (load_modules): Fix warning.
4880 2009-01-26 Daniel Mierswa <impulze@impulze.org>
4882 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
4884 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
4886 * kern/misc.c (grub_strcasecmp): New function.
4887 (grub_strcasecmp): Use grub_size_t instead of int for length.
4889 * include/grub/misc.h: Update function prototypes.
4891 2009-01-26 Robert Millan <rmh@aybabtu.com>
4893 * configure.ac: Fix cross-compilation check.
4895 2009-01-22 Christian Franke <franke@computer.org>
4897 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
4898 (precision) digit string. Allow `.format2' without `format1' (width).
4899 Limit input chars for `%s' output to `format2' if specified. This is
4900 compatible with standard printf ().
4902 2009-01-22 Christian Franke <franke@computer.org>
4904 * disk/ata.c (grub_ata_wait_status): Replace by ...
4905 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
4906 other status bits may be invalid while BSY is asserted.
4907 (grub_ata_check_ready): New function.
4908 (grub_ata_cmd): Removed.
4909 (grub_ata_wait_drq): New function.
4910 (grub_ata_strncpy): Remove inline.
4911 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
4912 and error check now done by grub_ata_wait_drq ().
4913 (grub_ata_pio_write): Likewise.
4914 (grub_atapi_identify): Set DEV before check for !BSY. Use
4915 grub_ata_wait_drq () to wait for data.
4916 (grub_ata_device_initialize): Add status register check to
4917 detect missing SATA slave devices. Add debug messages.
4918 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
4919 (grub_atapi_packet): Set DEV before check for !BSY. Replace
4920 transfer loop by grub_ata_pio_write ().
4921 (grub_ata_identify): Set DEV before check for !BSY. Use
4922 grub_ata_wait_drq () to wait for data.
4923 (grub_ata_setaddress): Set DEV before check for !BSY.
4924 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
4925 read/write in one loop. Fix invalid command on write. Fix incomplete
4926 command on (size % batch) == 0. Add missing error check after write of
4927 last block. Add debug messages.
4928 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
4930 2009-01-19 Christian Franke <franke@computer.org>
4932 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
4933 (GRUB_ATAPI_IREASON_*): Likewise.
4934 (grub_ata_pio_write): Fix timeout error return.
4935 (grub_atapi_identify): Add grub_ata_wait () after cmd.
4936 (grub_atapi_wait_drq): New function.
4937 (grub_atapi_packet): New parameter `size'.
4938 Use grub_atapi_wait_drq () and direct write instead of
4939 grub_ata_pio_write ().
4940 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
4941 reads the number of bytes requested by the device for each DRQ
4943 (grub_atapi_write): Remove old implementation, return not
4944 implemented instead.
4946 2009-01-19 Christian Franke <franke@computer.org>
4948 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
4949 of 512 to calculate data size.
4950 (grub_scsi_read12): Likewise.
4951 (grub_scsi_write10): Likewise.
4952 (grub_scsi_write12): Likewise.
4953 (grub_scsi_read): Adjust size according to blocksize.
4954 Add checks for invalid blocksize and unaligned transfer.
4956 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
4958 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
4960 * term/gfxterm.c (write_char): Fix background rendering for wide
4963 2009-01-19 Robert Millan <rmh@aybabtu.com>
4965 * config.guess: Update to latest version from config git.
4966 * config.sub: Likewise.
4968 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
4970 * Makefile.in: Change font compilation to use new grub-mkfont instead
4973 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
4974 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
4975 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
4976 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
4977 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
4978 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
4979 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
4980 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
4981 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
4983 2009-01-16 Christian Franke <franke@computer.org>
4985 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
4986 (enum grub_ata_timeout_milliseconds): New enum.
4987 (grub_ata_wait_status): Add parameter milliseconds.
4988 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
4989 recovery from timed-out commands.
4990 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
4991 return grub_errno instead of REG_ERROR.
4992 (grub_ata_pio_write): Add parameter milliseconds.
4993 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
4994 Pass milliseconds to grub_ata_wait_status () and
4995 grub_ata_pio_read ().
4996 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
4997 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
4998 grub_ata_wait_status (). Fix IDENTIFY timeout check.
4999 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
5000 It is not suitable for device detection, because DEV bit is ignored,
5001 the command may run too long, and not all devices set the signature
5003 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
5004 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
5005 Fix device selection, DEV bit must be set first to address the registers
5006 of the correct device.
5007 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
5008 grub_ata_pio_read/write ().
5009 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
5010 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
5012 2009-01-13 Carles Pina i Estany <carles@pina.cat>
5014 * util/grub-editenv.c (main): Use fseeko(), not fseek().
5016 2009-01-13 Bean <bean123ch@gmail.com>
5018 * util/grub-mkfont.c (write_font): forget to remove some debug code.
5020 2009-01-13 Bean <bean123ch@gmail.com>
5022 * Makefile.in: (enable_grub_mkfont): New variable.
5023 (freetype_cflags): Likewise.
5024 (freetype_libs): Likewise.
5026 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
5027 (grub_mkfont_SOURCES): New variable.
5028 (grub_mkfont_CFLAGS): Likewise.
5029 (grub_mkfont_LDFLAGS): Likewise.
5031 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
5032 library if `--enable-grub-mkfont' is requested.
5033 (enable_grub_mkfont): New variable.
5034 (freetype_cflags): Likewise.
5035 (freetype_libs): Likewise.
5037 * util/grub-mkfont.c: New file.
5039 2009-01-12 Christian Franke <franke@computer.org>
5041 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
5042 mode check. Fix setting of compat_use[].
5044 2009-01-10 Robert Millan <rmh@aybabtu.com>
5046 Update a few copyright years which we forgot to do in 2008 (only for
5047 files whose changes made in 2008 were copyright-significant)
5049 * Makefile.in: Add 2008 to Copyright line.
5050 * disk/ieee1275/ofdisk.c: Likewise.
5051 * disk/efi/efidisk.c: Likewise.
5052 * kern/dl.c: Likewise.
5053 * kern/sparc64/ieee1275/init.c: Likewise.
5054 * kern/mm.c: Likewise.
5055 * kern/efi/mm.c: Likewise.
5056 * boot/i386/pc/boot.S: Likewise.
5057 * genfslist.sh: Likewise.
5058 * fs/iso9660.c: Likewise.
5059 * fs/hfs.c: Likewise.
5060 * fs/jfs.c: Likewise.
5061 * fs/minix.c: Likewise.
5062 * fs/ufs.c: Likewise.
5063 * gensymlist.sh.in: Likewise.
5064 * genkernsyms.sh.in: Likewise.
5065 * include/grub/misc.h: Likewise.
5066 * include/grub/types.h: Likewise.
5067 * include/grub/symbol.h: Likewise.
5068 * include/grub/elf.h: Likewise.
5069 * include/grub/kernel.h: Likewise.
5070 * include/grub/disk.h: Likewise.
5071 * include/grub/dl.h: Likewise.
5072 * include/grub/i386/linux.h: Likewise.
5073 * include/grub/i386/pc/biosdisk.h: Likewise.
5074 * include/grub/efi/api.h: Likewise.
5075 * include/grub/efi/pe32.h: Likewise.
5076 * include/grub/util/misc.h: Likewise.
5077 * normal/execute.c: Likewise.
5078 * normal/arg.c: Likewise.
5079 * normal/completion.c: Likewise.
5080 * normal/lexer.c: Likewise.
5081 * normal/parser.y: Likewise.
5082 * normal/misc.c: Likewise.
5083 * commands/i386/pc/vbeinfo.c: Likewise.
5084 * commands/hexdump.c: Likewise.
5085 * commands/terminal.c: Likewise.
5086 * commands/ls.c: Likewise.
5087 * commands/help.c: Likewise.
5088 * partmap/pc.c: Likewise.
5089 * loader/efi/chainloader.c: Likewise.
5090 * loader/multiboot_loader.c: Likewise.
5091 * loader/i386/pc/multiboot2.c: Likewise.
5092 * term/efi/console.c: Likewise.
5093 * term/i386/pc/serial.c: Likewise.
5094 * util/lvm.c: Likewise.
5095 * util/console.c: Likewise.
5096 * util/i386/efi/grub-mkimage.c: Likewise.
5097 * util/raid.c: Likewise.
5099 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
5101 * commands/videotest.c: Removed include to grub/machine/memory.h.
5103 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
5104 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
5105 (video_mod_SOURCES): Removed.
5106 (video_mod_CFLAGS): Likewise.
5107 (video_mod_LDFLAGS): Likewise.
5108 (gfxterm_mod_SOURCES): Likewise.
5109 (gfxterm_mod_CFLAGS): Likewise.
5110 (gfxterm_mod_LDFLAGS): Likewise.
5111 (videotest_mod_SOURCES): Likewise.
5112 (videotest_mod_CFLAGS): Likewise.
5113 (videotest_mod_LDFLAGS): Likewise.
5114 (bitmap_mod_SOURCES): Likewise.
5115 (bitmap_mod_CFLAGS): Likewise.
5116 (bitmap_mod_LDFLAGS): Likewise.
5117 (tga_mod_SOURCES): Likewise.
5118 (tga_mod_CFLAGS): Likewise.
5119 (tga_mod_LDFLAGS): Likewise.
5120 (jpeg_mod_SOURCES): Likewise.
5121 (jpeg_mod_CFLAGS): Likewise.
5122 (jpeg_mod_LDFLAGS): Likewise.
5123 (png_mod_SOURCES): Likewise.
5124 (png_mod_CFLAGS): Likewise.
5125 (png_mod_LDFLAGS): Likewise.
5127 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
5128 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
5129 (video_mod_SOURCES): Added.
5130 (video_mod_CFLAGS): Likewise.
5131 (video_mod_LDFLAGS): Likewise.
5132 (videotest_mod_SOURCES): Likewise.
5133 (videotest_mod_CFLAGS): Likewise.
5134 (videotest_mod_LDFLAGS): Likewise.
5135 (bitmap_mod_SOURCES): Likewise.
5136 (bitmap_mod_CFLAGS): Likewise.
5137 (bitmap_mod_LDFLAGS): Likewise.
5138 (tga_mod_SOURCES): Likewise.
5139 (tga_mod_CFLAGS): Likewise.
5140 (tga_mod_LDFLAGS): Likewise.
5141 (jpeg_mod_SOURCES): Likewise.
5142 (jpeg_mod_CFLAGS): Likewise.
5143 (jpeg_mod_LDFLAGS): Likewise.
5144 (png_mod_SOURCES): Likewise.
5145 (png_mod_CFLAGS): Likewise.
5146 (png_mod_LDFLAGS): Likewise.
5147 (gfxterm_mod_SOURCES): Likewise.
5148 (gfxterm_mod_CFLAGS): Likewise.
5149 (gfxterm_mod_LDFLAGS): Likewise.
5151 * term/gfxterm.c: Removed include to grub/machine/memory.h,
5152 grub/machine/console.h.
5154 2009-01-04 Jerone Young <jerone@gmail.com>
5156 Make on screen instructions clearer
5158 Based on patch created by Jidanni <jidanni@jidanni.org>
5160 * normal/menu.c: print clearer instructions on the screen
5162 2009-01-02 Colin D Bennett <colin@gibibit.com>
5166 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
5167 build system and fixed gfxterm.c to work with different sized fonts.
5169 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
5171 * configure: Re-generated.
5173 * DISTLIST: Removed font/manager.c.
5175 Added font/font_cmd.c.
5177 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
5180 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
5182 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
5184 * kern/term.c: Changed users of grub_utf8_to_ucs4.
5186 * normal/menu.c: Likewise.
5188 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
5189 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
5191 * include/grub/font.h: Replaced with new file.
5193 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
5194 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
5195 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
5196 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
5197 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
5198 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
5199 fg_red, fg_green, fg_blue, fg_alpha.
5200 (grub_video_adapter): Removed blit_glyph.
5201 (grub_video_blit_glyph): Removed.
5203 * font/manager.c: Removed file.
5205 * font/font.c: New file.
5207 * font/font_cmd.c: Likewise.
5209 * video/video.c (grub_video_blit_glyph): Removed.
5211 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
5212 (grub_video_vbe_map_rgba): Likewise.
5213 (grub_video_vbe_unmap_color_int): Likewise.
5214 (grub_video_vbe_blit_glyph): Removed.
5215 (grub_video_vbe_adapter): Removed blit_glyph.
5217 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
5218 (get_pixel): Likewise.
5219 (set_pixel): Likewise.
5221 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
5223 * term/gfxterm.c: Adapted to new font engine.
5225 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
5227 * term/i386/pc/vga.c: Likewise.
5229 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
5231 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
5233 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
5235 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
5237 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
5239 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
5241 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
5243 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
5245 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
5247 * util/grub.d/00_header.in: Changed to use new loadfont command.
5249 * util/grub-mkconfig_lib.in: Changed font extension.
5251 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
5253 * util/getroot.c (grub_util_get_grub_dev): Add support for
5254 /dev/md/dNNpNN style partitionable mdraid devices.
5256 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
5258 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
5259 at a time limit of the PXE TFTP API correctly.
5260 (grub_pxefs_close): Likewise.
5262 2008-11-29 Robert Millan <rmh@aybabtu.com>
5264 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
5265 grub_ata_device_initialize() calls.
5267 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
5269 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
5271 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
5273 2008-11-28 Robert Millan <rmh@aybabtu.com>
5275 Fix build on powerpc-ieee1275. Based on patch created by
5276 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
5277 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
5278 `kern/ieee1275/mmap.c'.
5279 * include/grub/powerpc/ieee1275/memory.h: New file.
5281 Provide grub-install on coreboot.
5282 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
5283 (grub_install_SOURCES): New variable.
5284 * util/i386/pc/grub-install.in: Add a few condition checks to make it
5287 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
5289 * util/grub-fstest.c (grub_term_get_current_input): Change return type
5290 to `grub_term_input_t'.
5291 (grub_term_get_current_output): Change return type to
5292 `grub_term_output_t'.
5294 2008-11-22 Robert Millan <rmh@aybabtu.com>
5296 Fix breakage on coreboot due to declaration mismatch.
5297 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
5298 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
5299 grub_vga_text_cls().
5301 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
5302 comments. Avoid copying one more byte than necessary (just in case).
5304 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
5305 to 0x200000 (avoids trouble with some OFW implementations, and matches
5306 with the one in Yaboot).
5307 Reported by Manoel Abranches
5309 2008-11-20 Robert Millan <rmh@aybabtu.com>
5311 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
5312 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
5314 * util/grub-mkconfig_lib.in (grub_warn): New function.
5315 (convert_system_path_to_grub_path): Use grub_warn() when issuing
5316 warnings, to obtain consistent formatting.
5317 * util/grub.d/00_header.in: Likewise.
5318 * util/update-grub_lib.in: Likewise.
5320 * loader/i386/linux.c (allocate_pages): Fix a warning.
5321 Move comment text to `#error' stanza.
5323 Harmonize ieee1275's grub_available_iterate() with the generic
5324 grub_machine_mmap_iterate() interface (fixes a recently-introduced
5325 build problem on i386-ieee1275):
5326 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
5327 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
5328 parameter `type'. Update all users of this function.
5329 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
5330 `kern/ieee1275/mmap.c'.
5331 * kern/ieee1275/init.c
5332 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
5334 (grub_machine_mmap_iterate): ... this.
5335 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
5336 return type to `grub_err_t'. Update all implementations of this
5338 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
5341 Add `lsmmap' command (lists firmware-provided memory map):
5342 * commands/lsmmap.c: New file.
5343 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
5344 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
5346 * conf/powerpc-ieee1275.rmk: Likewise.
5347 * conf/i386-coreboot.rmk: Likewise.
5348 * conf/i386-ieee1275.rmk: Likewise.
5350 2008-11-19 Robert Millan <rmh@aybabtu.com>
5352 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
5353 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
5354 constraints to initrd allocation (based on code from
5355 loader/i386/pc/linux.c). Without them, initrd was allocated too high
5356 for Linux to find it.
5358 2008-11-14 Robert Millan <rmh@aybabtu.com>
5360 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
5361 order to cope with duplicate slashes.
5363 2008-11-14 Robert Millan <rmh@aybabtu.com>
5365 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
5366 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
5367 don't want to mess with lower memory, because it is used in the Linux
5370 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
5371 an appropriate place in lower memory, between 0x10000 and 0x90000,
5372 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
5373 is in our heap (probably as a result of it being corrupted during
5374 decompression). Add #error instance with comment to explain why this
5375 loader isn't currently usable on PC/BIOS.
5377 2008-11-14 Robert Millan <rmh@aybabtu.com>
5379 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
5380 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
5382 2008-11-12 Robert Millan <rmh@aybabtu.com>
5384 Make loader/i386/linux.c buildable on i386-pc (although disabled).
5386 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
5387 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
5389 * include/grub/i386/pc/memory.h: ... to here.
5391 2008-11-12 Robert Millan <rmh@aybabtu.com>
5393 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
5396 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
5397 (grub_console_cur_color, grub_console_real_putchar)
5398 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
5399 (grub_console_setcolorstate, grub_console_setcolor)
5400 (grub_console_getcolor): Move from here ...
5401 * include/grub/i386/vga_common.h: ... to here (new file).
5403 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
5404 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
5406 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
5407 `<grub/i386/vga_common.h>'.
5409 2008-11-12 Robert Millan <rmh@aybabtu.com>
5411 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
5412 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
5413 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
5415 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
5416 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
5418 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
5419 grub_console_init() with call to grub_vga_text_init().
5420 (grub_machine_fini): Replace call to
5421 grub_console_fini() with call to grub_vga_text_fini() and
5422 grub_at_keyboard_fini().
5424 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
5425 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
5426 (grub_console_setcolorstate, grub_console_setcolor)
5427 (grub_console_getcolor): New function prototypes.
5429 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
5430 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
5431 (grub_vga_text_setcursor): Static-ize.
5432 (grub_vga_text_term): New structure.
5433 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
5435 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
5436 (grub_console_cur_color, grub_console_standard_color)
5437 (grub_console_normal_color, grub_console_highlight_color)
5438 (map_char, grub_console_putchar, grub_console_getcharwidth)
5439 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
5440 (grub_console_getcolor): Move from here ...
5441 * term/i386/vga_common.c: ... to here (same function names).
5443 2008-11-12 Robert Millan <rmh@aybabtu.com>
5445 Use newly-added Multiboot support in coreboot.
5447 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
5448 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
5450 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
5451 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
5452 (codestart): Store the MBI in `startup_multiboot_info' when we're
5453 being loaded using Multiboot.
5455 * kern/i386/coreboot/init.c (grub_machine_init): Move
5456 grub_at_keyboard_init() call to beginning of function (useful for
5457 debugging). Call grub_machine_mmap_init() before attempting to use
5458 grub_machine_mmap_iterate().
5459 (grub_lower_mem, grub_upper_mem): Move from here ...
5460 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
5463 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
5466 2008-11-12 Robert Millan <rmh@aybabtu.com>
5468 Fix a regression introduced by the at_keyboard.mod split. Because
5469 some terminals are default on some platforms and non-default on
5470 others, the first terminal being registered determines which is
5471 going to be default.
5473 * kern/term.c (grub_term_register_input): If this is the first
5474 terminal being registered, set it as the current one.
5475 (grub_term_register_output): Likewise.
5477 * term/efi/console.c (grub_console_init): Do not call
5478 grub_term_set_current_output() or grub_term_set_current_input().
5479 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
5480 * term/i386/pc/console.c (grub_console_init): Likewise.
5481 (grub_console_fini): Do not call grub_term_set_current_input()
5482 (but leave grub_term_set_current_output() to restore text mode).
5484 2008-11-10 Robert Millan <rmh@aybabtu.com>
5486 * util/grub.d/00_header.in: Add backward compatibility check for
5487 versions of terminal.mod that don't understand `terminal_input' or
5490 2008-11-09 Robert Millan <rmh@aybabtu.com>
5492 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
5493 `terminal_input' / `terminal_output', not `terminal'.
5495 2008-11-08 Robert Millan <rmh@aybabtu.com>
5497 * Makefile.in (include_DATA): Fix srcdir=. assumption.
5498 (DISTCLEANFILES): Add `build_env.mk'.
5500 2008-11-08 Robert Millan <rmh@aybabtu.com>
5502 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
5503 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
5504 members. Update all users.
5505 * util/console.c (grub_ncurses_term): Split in ...
5506 (grub_ncurses_term_input): ... this, and ...
5507 (grub_ncurses_term_output): ... this. Update all users.
5508 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
5510 2008-11-08 Robert Millan <rmh@aybabtu.com>
5512 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
5513 (PKGDATA): Add $(pkgdata_SRCDIR).
5514 (pkglib_BUILDDIR): New variable.
5515 (pkgdata_SRCDIR): New variable.
5516 (build_env.mk): New target.
5517 (include_DATA): New variable.
5518 (install-local): Install $(include_DATA) files in $(includedir).
5520 2008-11-07 Pavel Roskin <proski@gnu.org>
5522 * gendistlist.sh: Use C locale for sorting to ensure consistent
5523 output on all systems.
5525 * util/grub.d/00_header.in: Remove incorrect space before
5528 2008-11-07 Robert Millan <rmh@aybabtu.com>
5530 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
5532 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
5533 * loader/multiboot_loader.c (find_multi_boot2_header): New function
5534 (based on find_multi_boot1_header).
5535 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
5536 using find_multi_boot2_header(), and abort if neither Multiboot or
5537 Multiboot headers were found.
5539 2008-11-07 Robert Millan <rmh@aybabtu.com>
5541 Modularize at_keyboard.mod:
5543 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
5544 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
5545 (at_keyboard_mod_LDFLAGS): New variables.
5547 Actual terminal split:
5549 * include/grub/term.h (struct grub_term): Split in ...
5550 (struct grub_term_input): ... this, and ...
5551 (struct grub_term_output): ... this. Update all users.
5552 (grub_term_set_current): Split in ...
5553 (grub_term_set_current_input): ... this, and ...
5554 (grub_term_set_current_output): ... this.
5555 (grub_term_get_current): Split in ...
5556 (grub_term_get_current_input): ... this, and ...
5557 (grub_term_get_current_output): ... this.
5558 (grub_term_register): Split in ...
5559 (grub_term_register_input): ... this, and ...
5560 (grub_term_register_output): ... this.
5561 (grub_term_unregister): Split in ...
5562 (grub_term_unregister_input): ... this, and ...
5563 (grub_term_unregister_output): ... this.
5564 (grub_term_iterate): Split in ...
5565 (grub_term_iterate_input): ... this, and ...
5566 (grub_term_iterate_output): ... this.
5568 * kern/term.c (grub_term_list): Split in ...
5569 (grub_term_list_input): ... this, and ...
5570 (grub_term_list_output): ... this. Update all users.
5571 (grub_cur_term): Split in ...
5572 (grub_cur_term_input): ... this, and ...
5573 (grub_cur_term_output): ... this. Update all users.
5574 (grub_term_set_current): Split in ...
5575 (grub_term_set_current_input): ... this, and ...
5576 (grub_term_set_current_output): ... this.
5577 (grub_term_get_current): Split in ...
5578 (grub_term_get_current_input): ... this, and ...
5579 (grub_term_get_current_output): ... this.
5580 (grub_term_register): Split in ...
5581 (grub_term_register_input): ... this, and ...
5582 (grub_term_register_output): ... this.
5583 (grub_term_unregister): Split in ...
5584 (grub_term_unregister_input): ... this, and ...
5585 (grub_term_unregister_output): ... this.
5586 (grub_term_iterate): Split in ...
5587 (grub_term_iterate_input): ... this, and ...
5588 (grub_term_iterate_output): ... this.
5590 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
5591 a check for input and one for output (and only attempt to get keys
5592 from user when input works).
5594 * util/grub-probe.c (grub_term_get_current): Split in ...
5595 (grub_term_get_current_input): ... this, and ...
5596 (grub_term_get_current_output): ... this.
5597 * util/grub-fstest.c: Likewise.
5598 * util/i386/pc/grub-setup.c: Likewise.
5599 * util/grub-editenv.c: Likewise.
5601 Portability adjustments:
5603 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
5604 `term/i386/pc/at_keyboard.c'.
5605 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
5606 grub_keyboard_controller_init() (now handled by terminal .init).
5607 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
5608 grub_at_keyboard_init().
5609 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
5610 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
5611 at_keyboard.mod via input terminal interface).
5612 * include/grub/i386/coreboot/console.h: Convert into a stub for
5613 `<grub/i386/pc/console.h>'.
5615 Migrate full terminals to new API:
5617 * term/efi/console.c (grub_console_term): Split into ...
5618 (grub_console_term_input): ... this, and ...
5619 (grub_console_term_output): ... this. Update all users.
5620 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
5621 (grub_ofconsole_init): Split into ...
5622 (grub_ofconsole_init_input): ... this, and ...
5623 (grub_ofconsole_init_output): ... this.
5624 (grub_ofconsole_term): Split into ...
5625 (grub_ofconsole_term_input): ... this, and ...
5626 (grub_ofconsole_term_output): ... this. Update all users.
5627 * term/i386/pc/serial.c (grub_serial_term): Split into ...
5628 (grub_serial_term_input): ... this, and ...
5629 (grub_serial_term_output): ... this. Update all users.
5630 * term/i386/pc/console.c (grub_console_term): Split into ...
5631 (grub_console_term_input): ... this, and ...
5632 (grub_console_term_output): ... this. Update all users.
5633 (grub_console_term_input): Only enable it on PC/BIOS platform.
5634 (grub_console_init): Remove grub_keyboard_controller_init() call.
5636 Migrate input terminals to new API:
5638 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
5639 `i386' and `i386/pc' to enable build on x86_64 (this driver is
5640 i386-specific anyway).
5641 (grub_console_checkkey): Rename to ...
5642 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
5644 (grub_keyboard_controller_orig): New variable.
5645 (grub_console_getkey): Rename to ...
5646 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
5648 (grub_keyboard_controller_init): Static-ize. Save original
5649 controller value so that it can be restored ...
5650 (grub_keyboard_controller_fini): ... here (new function).
5651 (grub_at_keyboard_term): New structure.
5652 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
5655 Migrate output terminals to new API:
5657 * term/i386/pc/vga.c (grub_vga_term): Change type to
5658 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
5659 members. Update all users.
5660 * term/gfxterm.c (grub_video_term): Change type to
5661 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
5662 members. Update all users.
5663 * include/grub/i386/pc/console.h (grub_console_checkkey)
5664 (grub_console_getkey): Do not export (no longer needed by gfxterm,
5667 Migrate `terminal' command and userland tools to new API:
5669 * commands/terminal.c (grub_cmd_terminal): Split into ...
5670 (grub_cmd_terminal_input): ... this, and ...
5671 (grub_cmd_terminal_output): ... this.
5672 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
5673 `terminal_input' and `terminal_output'.
5674 * util/grub.d/00_header.in: Adjust `terminal' calls to new
5675 `terminal_input' / `terminal_output' API.
5676 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
5677 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
5678 provided ${GRUB_TERMINAL}, convert it).
5680 2008-11-04 Robert Millan <rmh@aybabtu.com>
5682 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
5684 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
5686 2008-11-03 Bean <bean123ch@gmail.com>
5688 * kern/elf.c (grub_elf32_load): Revert to previous code.
5689 (grub_elf64_load): Likewise.
5691 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
5693 2008-11-01 Robert Millan <rmh@aybabtu.com>
5695 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
5696 (TARGET_CPPFLAGS): Likewise.
5697 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
5699 2008-11-01 Carles Pina i Estany <carles@pina.cat>
5701 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
5703 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
5705 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
5706 addition of objects until the code is not going to be able to fail.
5708 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
5710 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
5711 (add a missing NULL check, and correct them by moving the pointer
5712 operations after the actual check).
5714 2008-10-29 Robert Millan <rmh@aybabtu.com>
5716 * util/i386/pc/grub-install.in: Handle empty string as output from
5717 make_system_path_relative_to_its_root().
5719 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
5721 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
5722 circular metadata worst case scenario. If the metadata is circular
5723 then copy the wrap in place.
5724 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
5725 project lib/format_text/layout.h
5726 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
5728 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
5730 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
5732 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
5734 * util/update-grub_lib.in: Mention filename in warning message.
5736 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
5738 * NEWS: Update for rename of update-grub to grub-mkconfig.
5740 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
5742 * util/update-grub_lib.in: Copy to ...
5743 * util/grub-mkconfig_lib.in: ... this. Update all users.
5744 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
5745 * util/update-grub.in: Rename to ...
5746 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
5747 option. Add `--output' option to allow users to specify the generated
5748 configuration file. Default to stdout.
5749 (update_grub_dir): Rename to ...
5750 (grub_mkconfig_dir): ... this.
5751 (grub_cfg): Default to an empty string.
5752 * conf/common.rmk (update-grub): Rename to ...
5753 (grub-mkconfig): ... this.
5754 (update-grub_lib): Copy to ...
5755 (grub-mkconfig_lib): ... this.
5756 (update-grub_SCRIPTS): Copy to ...
5757 (grub-mkconfig_SCRIPTS): ... this. Update all users.
5758 (update-grub_DATA): Rename to ...
5759 (grub-mkconfig_DATA): ... this.
5761 2008-09-28 Robert Millan <rmh@aybabtu.com>
5763 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
5764 to `modified'. Add the real `created' field.
5765 (grub_iso9660_uuid): Use `modified' rather than `created' for
5766 constructing the UUID.
5768 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
5770 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
5771 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
5773 2008-09-28 Bean <bean123ch@gmail.com>
5775 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
5776 Thanks to Christian Franke for finding this bug.
5778 2008-09-25 Robert Millan <rmh@aybabtu.com>
5780 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
5781 instances of grub_util_get_disk_name() (see previous commit).
5783 2008-09-25 Robert Millan <rmh@aybabtu.com>
5785 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
5786 `util/i386/get_disk_name.c'.
5787 * conf/i386-efi.rmk: Likewise.
5788 * conf/x86_64-efi.rmk: Likewise.
5789 * conf/i386-coreboot.rmk: Likewise.
5790 * conf/i386-ieee1275.rmk: Likewise.
5791 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
5792 `util/ieee1275/get_disk_name.c'.
5793 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
5794 * util/ieee1275/get_disk_name.c: Remove file.
5795 * util/i386/get_disk_name.c: Remove file.
5796 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
5797 "hd%d" for device.map entries, rather than using
5798 grub_util_get_disk_name().
5800 2008-09-24 Carles Pina i Estany <carles@pina.cat>
5802 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
5804 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
5806 2008-09-24 Carles Pina i Estany <carles@pina.cat>
5808 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
5810 (GRUB_TERM_PPAGE): Changed to 0x4900.
5812 2008-09-24 Robert Millan <rmh@aybabtu.com>
5814 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
5815 macros (they were i386-pc specific).
5816 * include/grub/sparc64/ieee1275/console.h: Likewise.
5817 * include/grub/efi/console.h: Likewise.
5819 2008-09-22 Bean <bean123ch@gmail.com>
5821 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
5822 resident and in attribute list.
5824 * include/grub/ntfs.h (BMP_LEN): Removed.
5826 2008-09-22 Bean <bean123ch@gmail.com>
5828 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
5829 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
5831 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
5832 error occurs, as grub_disk_open will call grub_disk_close, which will
5833 call p->close (scsi).
5835 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
5837 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
5838 (AC_PREREQ): Bumped to 2.59.
5839 (AC_TRY_COMPILE): Replace obsolete macro with ...
5840 (AC_COMPILE_IFELSE): ... this.
5841 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
5842 (AC_LINK_IFELSE): ... this.
5844 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
5846 * autogen.sh: Add a call to `gendistlist.sh'.
5848 2008-09-19 Christian Franke <franke@computer.org>
5850 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
5851 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
5852 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
5853 Export __enable_execute_stack() to modules.
5854 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
5857 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
5859 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
5862 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
5864 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
5865 #include <grub/util/hostdisk.h>.
5867 2008-09-08 Robert Millan <rmh@aybabtu.com>
5869 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
5870 segments when their filesz is zero (grub_file_read() interprets
5871 zero-size as "read until EOF", which results in memory corruption).
5872 Use `lowest_segment' rather than 0 for calculating the current
5873 segment load address.
5875 2008-09-08 Robert Millan <rmh@aybabtu.com>
5877 * util/hostdisk.c (open_device): Replace a grub_util_info() call
5878 with grub_dprintf("hostdisk", ...), as it was so verbose that it
5879 clobbered useful information.
5881 2008-09-08 Robert Millan <rmh@aybabtu.com>
5883 * include/grub/util/biosdisk.h: Move to ...
5884 * include/grub/util/hostdisk.h: ... here. Update all users.
5885 * util/biosdisk.c: Move to ...
5886 * util/hostdisk.c: ... here. Update all users.
5888 2008-09-07 Robert Millan <rmh@aybabtu.com>
5890 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
5892 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
5893 and length can be stored directly in the `mbi->mmap_addr' and
5894 `mbi->mmap_length' struct fields.
5896 2008-09-07 Robert Millan <rmh@aybabtu.com>
5898 * conf/i386.rmk: New file. Provides declaration for building
5900 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
5901 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
5903 Include `conf/i386.mk'.
5904 * conf/i386-efi.rmk: Likewise.
5905 * conf/x86_64-efi.rmk: Likewise.
5906 * conf/i386-coreboot.rmk: Likewise.
5907 * conf/i386-ieee1275.rmk: Likewise.
5909 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
5911 Based on patch created by Colin D Bennett <colin@gibibit.com>.
5912 Adds optimization support for BGR based modes.
5914 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
5915 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
5916 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
5917 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
5918 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
5919 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
5920 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
5921 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
5922 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
5923 (grub_video_i386_vbeblit_index_index): Likewise.
5924 (grub_video_i386_vbeblit_replace_directN): Added.
5925 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
5926 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
5927 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
5928 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
5929 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
5930 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
5931 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
5932 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
5933 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
5934 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
5935 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
5936 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
5937 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
5939 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
5940 (grub_video_i386_vbefill_R8G8B8): Likewise.
5941 (grub_video_i386_vbefill_index): Likewise.
5942 (grub_video_i386_vbefill_direct32): Added.
5943 (grub_video_i386_vbefill_direct24): Likewise.
5944 (grub_video_i386_vbefill_direct16): Likewise.
5945 (grub_video_i386_vbefill_direct8): Likewise.
5947 * include/grub/video.h (grub_video_blit_format): Removed
5948 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
5949 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
5950 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
5951 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
5952 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
5954 * video/video.c (grub_video_get_blit_format): Updated to use new
5955 blit formats. Added handling for 16 bit color modes.
5957 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
5959 (common_blitter): Updated to use new blitters.
5961 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
5963 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
5964 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
5965 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
5966 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
5967 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
5968 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
5969 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
5970 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
5971 (grub_video_i386_vbeblit_index_index): Likewise.
5972 (grub_video_i386_vbeblit_replace_directN): Added.
5973 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
5974 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
5975 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
5976 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
5977 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
5978 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
5979 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
5980 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
5981 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
5982 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
5983 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
5984 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
5985 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
5987 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
5988 (grub_video_i386_vbefill_R8G8B8): Likewise.
5989 (grub_video_i386_vbefill_index): Likewise.
5990 (grub_video_i386_vbefill_direct32): Added.
5991 (grub_video_i386_vbefill_direct24): Likewise.
5992 (grub_video_i386_vbefill_direct16): Likewise.
5993 (grub_video_i386_vbefill_direct8): Likewise.
5995 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
5998 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
6001 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
6004 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
6007 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
6009 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
6012 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
6014 * fs/iso9660.c (grub_iso9660_date): New structure.
6015 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
6016 (grub_iso9660_uuid): New function.
6018 2008-09-05 Bean <bean123ch@gmail.com>
6020 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
6022 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
6023 insensitive bit for names in Win32 and Win32 & DOS namespace.
6025 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
6027 * include/grub/types.h (LONG_MAX): Likewise.
6029 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
6031 * util/getroot.c: Include <config.h>.
6032 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
6033 add support for /dev/md/N devices and handle LVM double dash escaping.
6035 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
6037 * config.guess: Update to latest version from config git.
6038 * config.sub: Likewise.
6040 2008-09-03 Robert Millan <rmh@aybabtu.com>
6042 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
6043 `disk->total_sectors'.
6045 2008-09-01 Colin D Bennett <colin@gibibit.com>
6047 * include/grub/normal.h: Fixed incorrect comment for
6048 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
6050 2008-09-01 Colin D Bennett <colin@gibibit.com>
6052 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
6053 values with defines.
6055 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
6056 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
6057 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
6058 (GRUB_VBE_MODEATTR_COLOR): Likewise.
6059 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
6060 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
6061 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
6062 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
6063 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
6064 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
6065 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
6066 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
6067 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
6068 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
6069 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
6070 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
6071 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
6072 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
6073 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
6075 2008-08-31 Robert Millan <rmh@aybabtu.com>
6077 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
6079 (grub_multiboot): Fix a few warnings.
6081 2008-08-31 Robert Millan <rmh@aybabtu.com>
6083 * loader/i386/pc/multiboot.c: Update comment not to say that
6084 boot_device support is unimplemented.
6086 2008-08-31 Robert Millan <rmh@aybabtu.com>
6088 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
6089 or memory map support are unimplemented.
6091 2008-08-31 Colin D Bennett <colin@gibibit.com>
6093 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
6095 2008-08-31 Colin D Bennett <colin@gibibit.com>
6097 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
6098 total video memory in 'vbeinfo' output; show color format details for
6101 2008-08-30 Pavel Roskin <proski@gnu.org>
6103 * util/genmoddep.c: Remove for real this time.
6104 * DISTLIST: Remove util/genmoddep.c.
6106 2008-08-30 Robert Millan <rmh@aybabtu.com>
6108 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
6109 as required by Multiboot spec (it was already 4-byte aligned, but
6112 2008-08-29 Pavel Roskin <proski@gnu.org>
6114 * kern/powerpc/ieee1275/crt0.S: Rename to ...
6115 * kern/powerpc/ieee1275/startup.S: ... this.
6116 * conf/powerpc-ieee1275.rmk: Adjust for the above.
6117 * DISTLIST: Likewise.
6119 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
6120 grub/cpu/kernel.h. Add start label for consistency with other
6121 platforms. Add grub_prefix immediately after start. Add jump
6122 to the code after grub_prefix.
6123 * include/grub/powerpc/kernel.h: Provide valid values for
6124 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
6126 2008-08-29 Bean <bean123ch@gmail.com>
6128 * configure.ac: Change host_os to cygwin for mingw.
6129 (asprintf): New check for function.
6131 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
6132 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
6134 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
6135 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6136 sync, sleep and grub_util_get_disk_size for mingw.
6138 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
6139 to get size in mingw.
6140 (open_device): Use flag O_BINARY if it's defined.
6141 (find_root_device): Add dummy code for mingw.
6143 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
6144 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
6145 (get_scsi_disk_name): Return 0 for mingw.
6147 * util/hostfs.c: #include <grub/util/misc.h>.
6148 (grub_hostfs_open): Use "rb" flag to open file, use
6149 grub_util_get_disk_size to get disk size for mingw.
6151 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
6152 (asprintf): New function if HAVE_ASPRINTF is not set.
6153 (sync): New function for mingw.
6155 (grub_util_get_disk_size): Likewise.
6157 2008-08-28 Pavel Roskin <proski@gnu.org>
6159 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6162 2008-08-28 Robert Millan <rmh@aybabtu.com>
6164 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
6166 2008-08-28 Robert Millan <rmh@aybabtu.com>
6168 Change find_grub_drive() syntax so it doesn't prevent it from
6169 detecting NULL names as errors.
6171 * util/biosdisk.c (find_grub_drive): Move free slot search code
6173 (find_free_slot): ... to here.
6174 (read_device_map): Use find_free_slot() to search for free slots.
6176 2008-08-27 Marco Gerards <marco@gnu.org>
6178 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
6179 (scsi_mod_SOURCES): New variable.
6180 (scsi_mod_CFLAGS): Likewise
6181 (scsi_mod_LDFLAGS): Likewise.
6183 * disk/scsi.c: New file.
6185 * include/grub/scsi.h: Likewise.
6187 * include/grub/scsicmd.h: Likewise.
6189 * disk/ata.c: Include <grub/scsi.h>.
6190 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
6192 (grub_ata_iterate): Skip ATAPI devices.
6193 (grub_ata_open): Only handle ATAPI devices.
6194 (struct grub_atapi_read): Removed.
6195 (grub_atapi_readsector): Likewise.
6196 (grub_ata_read): No longer handle ATAPI devices.
6197 (grub_ata_write): Likewise.
6198 (grub_atapi_iterate): New function.
6199 (grub_atapi_read): Likewise.
6200 (grub_atapi_write): Likewise.
6201 (grub_atapi_open): Likewise.
6202 (grub_atapi_close): Likewise.
6203 (grub_atapi_dev): New variable.
6204 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
6205 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
6207 * include/grub/disk.h (enum grub_disk_dev_id): Add
6208 `GRUB_DISK_DEVICE_SCSI_ID'.
6210 2008-08-26 Robert Millan <rmh@aybabtu.com>
6212 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
6213 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
6216 2008-08-23 Bean <bean123ch@gmail.com>
6218 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
6219 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
6220 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
6221 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
6223 (raid5rec_mod_SOURCES): New macro.
6224 (raid5rec_mod_CFLAGS): Likewise.
6225 (raid5rec_mod_LDFLAGS): Likewise.
6226 (raid6rec_mod_SOURCES): Likewise.
6227 (raid6rec_mod_CFLAGS): Likewise.
6228 (raid6rec_mod_LDFLAGS): Likewise.
6229 (mdraid_mod_SOURCES): Likewise.
6230 (mdraid_mod_CFLAGS): Likewise.
6231 (mdraid_mod_LDFLAGS): Likewise.
6232 (dm_nv_mod_SOURCES): Likewise.
6233 (dm_nv_mod_CFLAGS): Likewise.
6234 (dm_nv_mod_LDFLAGS): Likewise.
6236 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
6237 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
6238 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
6240 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
6241 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
6243 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6245 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6247 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6249 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6251 * disk/raid5_recover.c: New file.
6253 * disk/raid6_recover.c: Likewise.
6255 * disk/mdraid_linux.c: Likewise.
6257 * disk/dmraid_nvidia.c: Likewise.
6259 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
6262 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
6263 calculate the size of raid device.
6264 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
6265 different layout of raid5.
6266 (grub_raid_scan_device): Remove code specific to mdraid.
6267 (grub_raid_list): New variable.
6268 (free_array): New function.
6269 (grub_raid_register): Likewise.
6270 (grub_raid_unregister): Likewise.
6271 (grub_raid_rescan): Likewise.
6272 (GRUB_MOD_INIT): Don't iterate device here.
6273 (GRUB_MOD_FINI): Use free_array to release resource.
6275 * include/grub/raid.h: Remove macro and structure specific to mdraid.
6276 (grub_raid5_recover_func_t): New function variable type.
6277 (grub_raid6_recover_func_t): Likewise.
6278 (grub_raid5_recover_func): New variable.
6279 (grub_raid6_recover_func): Likewise.
6280 (grub_raid_register): New function.
6281 (grub_raid_unregister): Likewise.
6282 (grub_raid_rescan): Likewise.
6283 (grub_raid_block_xor): Likewise.
6285 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
6286 (CMD_CRC): New macro.
6288 (read_file): Handle device as well as file.
6289 (cmd_crc): New function.
6290 (fstest): Handle multiple disks.
6291 (options): Remove part, raw and long, add root and diskcount.
6292 (usage): Add crc, remove -p, -r, -l, add -r and -c.
6293 (main): Find the first non option entry and ignore subsequent options,
6294 add handling for the new options, support multiple disks.
6296 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
6298 2008-08-23 Bean <bean123ch@gmail.com>
6300 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
6302 * genfslist.sh: Ignore kernel.mod.
6304 * genpartmaplist.sh: Likewise.
6306 2008-08-23 Robert Millan <rmh@aybabtu.com>
6308 * util/getroot.c (find_root_device): Skip anything that starts with
6309 a dot, not just directories. This avoids things like /dev/.tmp.md0.
6311 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
6313 * util/update-grub.in (GRUB_GFXMODE): Export variable.
6314 * util/grub.d/00_header.in: Allow the administrator to change default
6315 gfxmode via ${GRUB_GFXMODE}.
6317 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
6319 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
6321 2008-08-21 Robert Millan <rmh@aybabtu.com>
6323 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
6325 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
6326 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
6328 2008-08-20 Carles Pina i Estany <carles@pina.cat>
6330 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
6331 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
6333 2008-08-19 Robert Millan <rmh@aybabtu.com>
6335 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
6336 (struct grub_virtual_screen): Remove `cursor_color'.
6337 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
6339 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
6341 2008-08-18 Robert Millan <rmh@aybabtu.com>
6343 Unify (identical) linux_normal.c files.
6344 * loader/i386/efi/linux_normal.c: Move from here ...
6345 * loader/linux_normal.c: ... to here. Update all users.
6346 * loader/i386/pc/linux_normal.c: Delete. Update all users.
6347 * loader/i386/ieee1275/linux_normal.c: Likewise.
6349 2008-08-18 Robert Millan <rmh@aybabtu.com>
6351 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
6352 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
6353 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
6354 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
6355 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
6357 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
6358 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
6359 (GRUB_LINUX_CL_END_OFFSET): ... to here.
6360 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
6361 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
6362 (GRUB_EFI_CL_END_OFFSET): Rename to ...
6363 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
6364 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
6365 Initialize `params->video_cursor_x' and `params->video_cursor_y'
6366 portably using grub_getxy().
6367 Replace `-EFI' with `-bzImage' in boot message.
6369 2008-08-17 Robert Millan <rmh@aybabtu.com>
6371 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
6373 2008-08-17 Robert Millan <rmh@aybabtu.com>
6375 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
6377 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
6378 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
6379 (grub_machine_mmap_iterate): New function declaration.
6380 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
6382 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
6385 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
6386 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
6387 Move e820 parsing from here ...
6388 * kern/i386/pc/mmap.c: New file.
6389 (grub_machine_mmap_iterate): ... to here.
6391 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
6392 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
6393 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
6394 (grub_available_iterate): Redeclare to return `void', and redeclare
6395 its hook to use grub_uint64_t as addr and size parameters, and rename
6397 (grub_machine_mmap_iterate): ... this. Update all users.
6399 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
6400 to make it more readable. Rename to ...
6401 (grub_machine_mmap_iterate): ... this.
6403 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
6404 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
6405 (grub_multiboot): Allocate an extra region after the payload, and fill
6406 it with a Multiboot memory map. Adjust a.out loader to calculate size
6407 with the extra space.
6408 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
6409 with the extra space.
6411 2008-08-17 Carles Pina i Estany <carles@pina.cat>
6413 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
6415 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
6417 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
6418 mdate-sh to the list `find' searches for.
6419 * DISTLIST: Regenerated.
6421 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
6423 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
6424 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
6425 genmoddep.awk, gensymlist.sh.in.
6426 (DISTDIRS): Add bus, docs, hook, lib.
6427 * DISTLIST: Regenerated.
6428 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
6430 2008-08-16 Robert Millan <rmh@aybabtu.com>
6432 * disk/raid.c (grub_raid_init): Handle/report errors set by
6433 grub_device_iterate().
6434 * disk/lvm.c (grub_lvm_init): Likewise.
6436 2008-08-15 Bean <bean123ch@gmail.com>
6438 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6440 (datetime_mod_SOURCES): New macro.
6441 (datetime_mod_CFLAGS): Likewise.
6442 (datetime_mod_LDFLAGS): Likewise.
6443 (date_mod_SOURCES): Likewise.
6444 (date_mod_CFLAGS): Likewise.
6445 (date_mod_LDFLAGS): Likewise.
6446 (datehook_mod_SOURCES): Likewise.
6447 (datehook_mod_CFLAGS): Likewise.
6448 (datehook_mod_LDFLAGS): Likewise.
6450 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6452 (datetime_mod_SOURCES): New macro.
6453 (datetime_mod_CFLAGS): Likewise.
6454 (datetime_mod_LDFLAGS): Likewise.
6455 (date_mod_SOURCES): Likewise.
6456 (date_mod_CFLAGS): Likewise.
6457 (date_mod_LDFLAGS): Likewise.
6458 (datehook_mod_SOURCES): Likewise.
6459 (datehook_mod_CFLAGS): Likewise.
6460 (datehook_mod_LDFLAGS): Likewise.
6462 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6464 (datetime_mod_SOURCES): New macro.
6465 (datetime_mod_CFLAGS): Likewise.
6466 (datetime_mod_LDFLAGS): Likewise.
6467 (date_mod_SOURCES): Likewise.
6468 (date_mod_CFLAGS): Likewise.
6469 (date_mod_LDFLAGS): Likewise.
6470 (datehook_mod_SOURCES): Likewise.
6471 (datehook_mod_CFLAGS): Likewise.
6472 (datehook_mod_LDFLAGS): Likewise.
6474 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6476 (datetime_mod_SOURCES): New macro.
6477 (datetime_mod_CFLAGS): Likewise.
6478 (datetime_mod_LDFLAGS): Likewise.
6479 (date_mod_SOURCES): Likewise.
6480 (date_mod_CFLAGS): Likewise.
6481 (date_mod_LDFLAGS): Likewise.
6482 (datehook_mod_SOURCES): Likewise.
6483 (datehook_mod_CFLAGS): Likewise.
6484 (datehook_mod_LDFLAGS): Likewise.
6486 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
6488 (datetime_mod_SOURCES): New macro.
6489 (datetime_mod_CFLAGS): Likewise.
6490 (datetime_mod_LDFLAGS): Likewise.
6491 (date_mod_SOURCES): Likewise.
6492 (date_mod_CFLAGS): Likewise.
6493 (date_mod_LDFLAGS): Likewise.
6494 (datehook_mod_SOURCES): Likewise.
6495 (datehook_mod_CFLAGS): Likewise.
6496 (datehook_mod_LDFLAGS): Likewise.
6498 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
6500 * commands/date.c: New file.
6502 * hook/datehook.c: Likewise.
6504 * include/grub/lib/datetime.h: Likewise.
6506 * include/grub/i386/cmos.h: Likewise.
6508 * lib/datetime.c: Likewise.
6510 * lib/i386/datetime.c: Likewise.
6512 * lib/efi/datetime.c: Likewise.
6514 2008-08-14 Robert Millan <rmh@aybabtu.com>
6516 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
6517 (grub_mkelfimage_SOURCES): New variable.
6518 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
6520 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
6521 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
6522 * conf/powerpc-ieee1275.rmk: Likewise.
6523 * conf/i386-ieee1275.rmk: Likewise.
6525 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
6526 * kern/i386/coreboot/init.c: Likewise.
6528 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
6529 with `<grub/cpu/kernel.h>'.
6530 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
6532 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
6533 * kern/i386/coreboot/startup.S: Likewise.
6535 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
6536 (GRUB_MOD_GAP): Remove.
6537 * include/grub/powerpc/kernel.h: New file.
6538 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
6539 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
6540 * include/grub/i386/kernel.h: New file.
6541 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
6542 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
6543 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
6545 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
6547 Use --directory when invoking grub_mkimage.
6549 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
6550 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
6551 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
6552 and GRUB_KERNEL_CPU_PREFIX.
6554 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
6556 * include/grub/err.h (grub_err_printf): New function prototype.
6557 * util/misc.c (grub_err_printf): New function.
6558 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
6560 * kern/err.c (grub_print_error): Use grub_err_printf.
6562 2008-08-13 Robert Millan <rmh@aybabtu.com>
6564 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
6566 2008-08-13 Robert Millan <rmh@aybabtu.com>
6568 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
6571 2008-08-12 Robert Millan <rmh@aybabtu.com>
6573 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
6574 of the relocation code from here ...
6575 (grub_multiboot): ... to here.
6576 (forward_relocator, backward_relocator): Move from here ...
6577 * kern/i386/loader.S (grub_multiboot_forward_relocator)
6578 (grub_multiboot_backward_relocator): ... to here.
6579 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
6580 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
6581 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
6582 (grub_multiboot_forward_relocator_end)
6583 (grub_multiboot_backward_relocator)
6584 (grub_multiboot_backward_relocator_end): New variables.
6586 2008-08-12 Bean <bean123ch@gmail.com>
6588 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
6590 2008-08-11 Robert Millan <rmh@aybabtu.com>
6592 * kern/i386/linuxbios/startup.S: Move from here ...
6593 * kern/i386/coreboot/startup.S: ... to here.
6595 * kern/i386/linuxbios/init.c: Move from here ...
6596 * kern/i386/coreboot/init.c: ... to here.
6598 * kern/i386/linuxbios/table.c: Move from here ...
6599 * kern/i386/coreboot/mmap.c: ... to here.
6601 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
6603 2008-08-11 Robert Millan <rmh@aybabtu.com>
6605 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
6606 errors. Leave it to the upper layer to handle them.
6608 2008-08-09 Christian Franke <franke@computer.org>
6610 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
6611 * conf/common.rmk: Install `grub-pe2elf' only if requested.
6612 Install `grub.d/10_windows' only on Cygwin.
6613 * configure.ac: Add subst of `target_os'.
6614 Check `target_os' also before setting TARGET_OBJ2ELF.
6615 Add `--enable-grub-pe2elf'.
6617 2008-08-08 Robert Millan <rmh@aybabtu.com>
6619 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
6620 (grub_last_time): Change type to grub_uint64_t.
6621 (grub_disk_open): Migrate code from to using grub_get_time_ms().
6622 (grub_disk_close): Likewise.
6624 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
6625 (run_menu): Migrate code from to using grub_get_time_ms().
6627 * util/misc.c (grub_get_time_ms): New function.
6629 2008-08-08 Marco Gerards <marco@gnu.org>
6631 * disk/ata.c (grub_ata_regget): Change return type to
6633 (grub_ata_regget2): Likewise.
6634 (grub_ata_wait_status): New function.
6635 (grub_ata_wait_busy): Removed function, updated all users to use
6636 `grub_ata_wait_status'.
6637 (grub_ata_wait_drq): Likewise.
6638 (grub_ata_cmd): New function.
6639 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
6641 (grub_ata_pio_write): Add error handling.
6642 (grub_atapi_identify): Likewise.
6643 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
6645 (grub_ata_identify): Use `grub_ata_cmd' and improve error
6646 handling. Actually use the detected registers. Reorder the
6647 detection logic such that it is easier to read.
6648 (grub_ata_pciinit): Do not assign the same ID to each controller.
6649 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
6651 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
6653 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
6655 2008-08-08 Marco Gerards <marco@gnu.org>
6659 2008-08-07 Bean <bean123ch@gmail.com>
6661 * include/grub/x86_64/pci.h: New file.
6663 2008-08-07 Christian Franke <franke@computer.org>
6665 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
6666 (TIMER2_GATE): Likewise.
6667 (grub_pit_wait): Add enable/disable of the timer2 gate
6668 bit of port 0x61. This fixes a possible infinite loop.
6670 2008-08-07 Bean <bean123ch@gmail.com>
6672 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
6673 kern/i386/tsc.c and kern/i386/pit.c.
6675 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
6678 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
6681 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
6683 2008-08-07 Bean <bean123ch@gmail.com>
6685 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
6687 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
6689 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
6690 multiple inclusion. Add #include <grub/types.h>.
6692 2008-08-06 Christian Franke <franke@computer.org>
6694 * conf/common.rmk: Build and install `10_windows'.
6695 * util/grub.d/10_windows.in: New script.
6697 2008-08-06 Pavel Roskin <proski@gnu.org>
6699 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
6701 2008-08-06 Robert Millan <rmh@aybabtu.com>
6703 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
6704 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
6706 2008-08-06 Bean <bean123ch@gmail.com>
6708 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
6709 (grub_pxefs_fs_int): Remove dummy definition.
6710 (grub_pxefs_open): Use data->block_size to store the current block
6712 (grub_pxefs_read): Use block size stored in data->block_size. As the
6713 value of grub_pxe_blksize can be changed after the file is opened.
6715 2008-08-06 Bean <bean123ch@gmail.com>
6717 * fs/i386/pc/pxe.c (curr_file): new variable.
6718 (grub_pxefs_open): Simply the handling of pxe file system. Don't
6719 require the dummy internal file system anymore.
6720 (grub_pxefs_read): Removed.
6721 (grub_pxefs_close): Likewise.
6722 (grub_pxefs_fs_int): Likewise.
6723 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
6724 connection when we switch file.
6725 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
6727 2008-08-06 Robert Millan <rmh@aybabtu.com>
6729 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
6731 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
6732 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
6734 * kern/i386/halt.c: New file.
6735 * kern/i386/reboot.c: Likewise.
6736 * include/grub/i386/reboot.h: Likewise.
6737 * include/grub/i386/halt.h: Likewise.
6739 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
6740 Include `<grub/cpu/halt.h>'.
6741 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
6742 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
6744 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
6745 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
6746 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
6747 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
6748 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
6749 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
6751 * include/grub/i386/at_keyboard.h: ... to here.
6753 2008-08-05 Robert Millan <rmh@aybabtu.com>
6755 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
6756 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
6757 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
6758 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
6759 `kern/generic/millisleep.c'.
6761 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
6762 instead of grub_get_rtc().
6763 (grub_tsc_init): Initialize `tsc_boot_time'.
6765 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
6766 (grub_machine_init): Use grub_tsc_init() rather than
6767 installing an RTC-based handler via grub_install_get_time_ms().
6769 * kern/i386/pit.c: New file.
6770 * include/grub/i386/pit.h: Likewise.
6772 2008-08-05 Bean <bean123ch@gmail.com>
6774 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
6776 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
6777 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
6778 (pxe_mod_SOURCES): New macro.
6779 (pxe_mod_CFLAGS): Likewise.
6780 (pxe_mod_LDFLAGS): Likewise.
6781 (pxecmd_mod_SOURCES): Likewise.
6782 (pxecmd_mod_CFLAGS): Likewise.
6783 (pxecmd_mod_LDFLAGS): Likewise.
6785 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
6786 (grub_pxe_call): Likewise.
6788 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
6790 * commands/i386/pc/pxecmd.c: New file.
6792 * fs/i386/pc/pxe.c: Likewise.
6794 * include/grub/i386/pc/pxe.h: Likewise.
6796 2008-08-05 Bean <bean123ch@gmail.com>
6798 * util/console.c (grub_console_cur_color): New variable.
6799 (grub_console_standard_color): Likewise.
6800 (grub_console_normal_color): Likewise.
6801 (grub_console_highlight_color): Likewise.
6802 (color_map): Likewise.
6803 (use_color): Likewise.
6804 (NUM_COLORS): New macro.
6805 (grub_ncurses_setcolorstate): Handle color properly.
6806 (grub_ncurses_setcolor): Don't change color here, just remember the
6807 settings, color will be set in grub_ncurses_setcolorstate.
6808 (grub_ncurses_getcolor): New function.
6809 (grub_ncurses_init): Initialize color pairs.
6810 (grub_ncurses_term): New member grub_ncurses_getcolor.
6812 2008-08-05 Colin D Bennett <colin@gibibit.com>
6814 High resolution timer support. Implemented for x86 CPUs using TSC.
6815 Extracted generic grub_millisleep() so it's linked in only as needed.
6816 This requires a Pentium compatible CPU; if the RDTSC instruction is
6817 not supported, then it falls back on the generic grub_get_time_ms()
6818 implementation that uses the machine's RTC.
6820 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
6821 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
6822 `kern/generic/millisleep.c'.
6824 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
6825 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
6827 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
6828 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
6830 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
6832 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6833 `kern/generic/millisleep.c'.
6835 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
6837 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
6839 * kern/generic/rtc_get_time_ms.c: New file.
6841 * kern/generic/millisleep.c: New file.
6843 * kern/misc.c: Don't include
6844 <kern/time.h> anymore.
6845 (grub_millisleep_generic): Removed.
6847 * commands/sleep.c (grub_interruptible_millisleep): Uses
6848 grub_get_time_ms() instead of grub_get_rtc().
6850 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
6852 (grub_cpu_is_cpuid_supported): New inline function.
6853 (grub_cpu_is_tsc_supported): New inline function.
6854 (grub_tsc_init): New function prototype.
6855 (grub_tsc_get_time_ms): New function prototype.
6857 * kern/i386/tsc.c (grub_get_time_ms): New file.
6859 * include/grub/time.h: Include <grub/types.h.
6860 (grub_millisleep_generic): Removed.
6861 (grub_get_time_ms): New prototype.
6862 (grub_install_get_time_ms): New prototype.
6863 (grub_rtc_get_time_ms): New prototype.
6865 * kern/time.c (grub_get_time_ms): New function.
6866 (grub_install_get_time_ms): New function.
6868 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
6869 <grub/time.h> anymore.
6870 (grub_millisleep): Removed.
6871 (grub_machine_init): Call grub_tsc_init.
6873 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
6874 get_time_ms() implementation.
6876 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
6877 (ieee1275_get_time_ms): New function.
6878 (grub_machine_init): Install get_time_ms() implementation.
6880 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
6881 (grub_machine_init): Call grub_tsc_init().
6882 (grub_millisleep): Removed.
6884 * kern/ieee1275/init.c (grub_millisleep): Removed.
6885 (grub_machine_init): Install ieee1275_get_time_ms()
6887 (ieee1275_get_time_ms): New function.
6888 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
6891 2008-08-05 Marco Gerards <marco@gnu.org>
6893 * disk/ata.c: Include <grub/pci.h>.
6894 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
6895 (grub_ata_initialize): Rewritten.
6896 (grub_ata_device_initialize): New function.
6898 2008-08-04 Pavel Roskin <proski@gnu.org>
6900 * kern/main.c: Include grub/mm.h.
6902 2008-08-04 Robert Millan <rmh@aybabtu.com>
6904 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
6905 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
6906 corruption problem).
6908 2008-08-04 Robert Millan <rmh@aybabtu.com>
6910 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
6911 warnings introduced in my last commit.
6913 2008-08-03 Robert Millan <rmh@aybabtu.com>
6915 Make PCI available on all i386 architectures.
6917 * include/grub/i386/pc/pci.h: Move from here ...
6918 * include/grub/i386/pci.h: ... to here.
6920 * include/grub/i386/pc/pci.h: Remove.
6921 * include/grub/i386/efi/pci.h: Remove.
6922 * include/grub/x86_64/efi/pci.h: Remove.
6924 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
6927 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
6928 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
6929 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
6931 * conf/i386-ieee1275.rmk: Likewise.
6933 2008-08-03 Robert Millan <rmh@aybabtu.com>
6935 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
6936 (grub_console_setcursor): Make it possible to set cursor off.
6938 2008-08-03 Robert Millan <rmh@aybabtu.com>
6940 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
6941 of modules instead of assuming which platform provides what.
6942 * util/update-grub.in: Likewise.
6944 2008-08-03 Robert Millan <rmh@aybabtu.com>
6946 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
6947 instead of `grub_install_dos_part' to determine whether a drive needs
6948 to be prepended to prefix (`grub_install_dos_part' is not reliable,
6949 because it can be overridden when loading GRUB via Multiboot).
6951 2008-08-02 Robert Millan <rmh@aybabtu.com>
6953 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
6955 2008-08-02 Robert Millan <rmh@aybabtu.com>
6957 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
6958 of informational grub_dprintf() calls.
6960 2008-08-02 Robert Millan <rmh@aybabtu.com>
6962 * disk/memdisk.c (memdisk_size): Don't initialize.
6963 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
6965 * include/grub/i386/pc/kernel.h
6966 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
6967 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
6968 (grub_memdisk_image_size, grub_arch_memdisk_addr)
6969 (grub_arch_memdisk_size): Remove.
6971 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
6972 field (was only used to transfer a constant). Add `type' field to
6973 support multiple module types.
6974 (grub_module_iterate): New function.
6976 * kern/device.c (grub_device_open): Do not hide error messages
6977 when grub_disk_open() fails. Use grub_print_error() instead.
6979 * kern/i386/pc/init.c (grub_arch_modules_addr)
6980 (grub_arch_memdisk_size): Remove functions.
6981 (grub_arch_modules_addr): Return the module address in high memory
6982 (now that it isn't copied anymore).
6984 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
6985 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
6986 decompression routine (grub_total_module_size already includes that
6987 now). Don't copy modules back to low memory.
6989 * kern/main.c: Include `<grub/mm.h>'.
6990 (grub_load_modules): Split out (and use) ...
6991 (grub_module_iterate): ... this function, which iterates through
6992 module objects and runs a hook.
6993 Comment out grub_mm_init_region() call, as it would cause non-ELF
6994 modules to be overwritten.
6996 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
6997 the memdisk image in its own region, make it part of the module list.
6998 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
6999 (main): Parse --memdisk|-m option, and pass user-provided path as
7000 parameter to generate_image().
7001 (add_segments): Pass `memdisk_path' down to load_modules().
7002 (load_modules): Embed memdisk image in module section when requested.
7003 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
7004 `header.type' instead of `header.offset'.
7006 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
7007 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
7008 (memdisk_mod_LDFLAGS): New variables.
7009 * conf/i386-coreboot.rmk: Likewise.
7010 * conf/i386-ieee1275.rmk: Likewise.
7012 2008-08-02 Robert Millan <rmh@aybabtu.com>
7014 * loader/i386/pc/multiboot.c (playground, forward_relocator)
7015 (backward_relocator): New variables. Used to allocate and relocate
7016 the payload, respectively.
7017 (grub_multiboot_load_elf32): Load into heap instead of requested
7018 address, install the appropriate relocator code in each bound of
7019 the payload, and set the entry point such that
7020 grub_multiboot_real_boot() will jump to one of them.
7022 * kern/i386/loader.S (grub_multiboot_payload_size)
7023 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
7024 (grub_multiboot_payload_entry_offset): New variables.
7025 (grub_multiboot_real_boot): Set cpu context to what the relocator
7026 expects, and jump to the relocator instead of the payload.
7028 * include/grub/i386/loader.h (grub_multiboot_payload_size)
7029 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
7030 (grub_multiboot_payload_entry_offset): Export.
7032 2008-08-01 Bean <bean123ch@gmail.com>
7034 * normal/menu_entry.c (editor_getline): Don't return the original
7035 string as result, as it will be released by lexer once it has done
7038 2008-08-01 Robert Millan <rmh@aybabtu.com>
7040 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
7041 within menuentries, not before them.
7042 util/grub.d/10_hurd.in: Likewise.
7044 2008-08-01 Bean <bean123ch@gmail.com>
7046 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
7047 (bufio_mod_SOURCES): New macro.
7048 (bufio_mod_CFLAGS): Likewise.
7049 (bufio_mod_LDFLAGS): Likewise.
7051 * include/grub/bufio.h: New file.
7053 * io/bufio.c: Likewise.
7055 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
7056 (grub_video_reader_png): Use grub_buffile_open to open file.
7058 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
7059 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
7061 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
7062 (grub_video_reader_tga): Use grub_buffile_open to open file.
7064 * font/manager.c: Include <grub/bufio.h>.
7065 (add_font): Use grub_buffile_open to open file.
7067 2008-07-31 Robert Millan <rmh@aybabtu.com>
7069 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
7070 ELF segments, use a macro for arbitrarily accessing any of them instead
7071 of preparing a pointer that allows access to one at a time.
7072 (grub_multiboot_load_elf64): Likewise.
7074 2008-07-31 Bean <bean123ch@gmail.com>
7076 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
7077 GRUB_KERNEL_MACHINE_DATA_END.
7079 2008-07-30 Robert Millan <rmh@aybabtu.com>
7081 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
7082 Increase from 0x50 to 0x60.
7083 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
7084 use UUIDs to identify the root drive for them. If that's not
7086 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
7087 check, for cross-disk installs.
7089 2008-07-30 Robert Millan <rmh@aybabtu.com>
7091 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
7092 is non-empty, use it to set the `prefix' environment variable instead
7093 of the usual approach.
7094 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
7095 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
7096 environment variable instead of dummy make_install_device().
7098 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
7099 (start): Insert a data section, with `grub_prefix' variable.
7100 * kern/i386/linuxbios/startup.S: Likewise.
7102 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
7103 New variable reference.
7104 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
7105 New macro. Defines offset of `grub_prefix' within startup.S (relative
7107 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
7108 section within startup.S (relative to `start').
7109 * include/grub/i386/coreboot/kernel.h: Likewise.
7111 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
7112 Overwrite grub_prefix with its contents, at the beginning of the
7114 (main): Understand -p|--prefix.
7116 2008-07-30 Robert Millan <rmh@aybabtu.com>
7118 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
7120 2008-07-30 Robert Millan <rmh@aybabtu.com>
7122 * term/i386/pc/vga_text.c (grub_console_cls): Use
7123 grub_console_gotoxy() to go back to beginning of the screen.
7124 Found by Patrick Georgi <patrick.georgi@coresystems.de>
7126 2008-07-29 Christian Franke <franke@computer.org>
7128 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
7129 Add conversion of emulated mount points on Cygwin.
7131 2008-07-29 Christian Franke <franke@computer.org>
7133 * util/update-grub.in: Add a check for admin
7135 Remove old `grub.cfg.new' before creation.
7136 Add `-f' to `mv' to handle the different filesystem
7137 semantics of Windows.
7139 2008-07-29 Bean <bean123ch@gmail.com>
7141 * normal/main.c (get_line): Fix buffer overflow bug.
7143 2008-07-28 Robert Millan <rmh@aybabtu.com>
7145 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
7146 (struct grub_apple_header): New struct. Describes the layout of
7148 (apple_partition_map_iterate): Check the header magic as well as the
7149 partition magic (which was already being checked).
7151 2008-07-28 Pavel Roskin <proski@gnu.org>
7153 * genmk.rb: Add a warning to the beginning of the output that
7154 it's a generated file and should not be edited.
7156 2008-07-28 Robert Millan <rmh@aybabtu.com>
7158 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
7159 with the same number are found, just use issue a warning with
7160 grub_dprintf(), as this error has been reported to be non-fatal.
7162 2008-07-27 Robert Millan <rmh@aybabtu.com>
7164 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
7167 2008-07-27 Bean <bean123ch@gmail.com>
7169 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
7170 (grub_fat_find_dir): Ignore case when comparing filename.
7172 2008-07-27 Bean <bean123ch@gmail.com>
7174 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
7175 smallino, as it's more descriptive, and i8count can be confused with
7176 the other field count.
7177 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
7180 2008-07-27 Bean <bean123ch@gmail.com>
7182 * commands/crc.c: New file.
7184 * lib/crc.c: Likewise.
7186 * include/grub/lib/crc.h: Likewise.
7188 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
7190 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
7191 (hexdump): Move this function to ...
7193 * lib/hexdump.c: ... here.
7195 * include/grub/hexdump.h: Renamed to ...
7197 * include/grub/lib/hexdump.h: ... this.
7199 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
7201 * util/grub-editenv.c: Likewise.
7203 * include/envblk.h: Renamed to ...
7205 * include/lib/envblk.h: ... this.
7207 * util/envblk.c: Renamed to ...
7209 * lib/envblk.c: ... this.
7211 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
7213 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
7214 (pkglib_MODULES): Add crc.mod.
7215 (hexdump_mod_SOURCES): Add lib/hexdump.c.
7216 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
7217 (crc_mod_SOURCES): New macro.
7218 (crc_mod_CFLAGS): Likewise.
7219 (crc_mod_LDFLAGS): Likewise.
7221 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
7223 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7225 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
7227 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7229 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7231 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
7233 * commands/help.c: Include <grub/term.h>.
7234 (TERM_WIDTH): Removed. Updated all users.
7236 2008-07-27 Pavel Roskin <proski@gnu.org>
7238 * util/getroot.c (find_root_device): Rephrase a comment to avoid
7239 spurious warnings about a comment within a comment.
7241 2008-07-25 Robert Millan <rmh@aybabtu.com>
7243 * util/getroot.c (find_root_device): Skip devices that match
7244 /dev/dm-[0-9]. This lets the real device be found for any type of
7245 abstraction (LVM, EVMS, RAID..).
7246 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
7247 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
7248 device is found first, find_root_device() will now skip it.
7250 2008-07-24 Pavel Roskin <proski@gnu.org>
7252 * include/grub/types.h: Use __builtin_bswap32() and
7253 __builtin_bswap64() with gcc 4.3 and newer.
7255 2008-07-24 Christian Franke <franke@computer.org>
7257 * util/i386/pc/grub-install.in: If `--debug' is specified,
7258 pass `--verbose' to grub-setup.
7259 Abort script if make_system_path_relative_to_its_root() fails.
7261 2008-07-24 Bean <bean123ch@gmail.com>
7263 * configure.ac: Fixed a bug caused by the previous cygwin patch,
7264 variable `target_platform' should be `platform'.
7266 2008-07-24 Bean <bean123ch@gmail.com>
7268 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
7269 (grub_png_init_fixed_block): New function.
7270 (grub_png_decode_image_data): Handle fixed huffman code compression.
7272 2008-07-24 Bean <bean123ch@gmail.com>
7274 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
7275 (grub_pe2elf_SOURCES): New macro.
7276 (CLEANFILES): Add grub-pe2elf.
7278 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
7279 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
7280 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
7281 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
7282 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
7283 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
7284 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
7285 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
7286 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
7287 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
7288 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
7289 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
7290 (GRUB_PE32_DT_FUNCTION): Likewise.
7291 (GRUB_PE32_REL_I386_DIR32): Likewise.
7292 (GRUB_PE32_REL_I386_REL32): Likewise.
7293 (grub_pe32_symbol): New structure.
7294 (grub_pe32_reloc): Likewise.
7296 * util/grub-pe2elf.c: New file.
7298 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
7299 start symbol in non pc platform.
7301 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
7303 The following patches are from Christian Franke.
7305 * include/grub/dl.h: Remove .previous, gas supports this only
7308 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
7309 Remove .type, gas supports this only for ELF format.
7311 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
7312 nullbytes in symbol table. This fixes an infinite loop if table is
7315 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
7316 TARGET_IMG_LDFLAGS and EXEEXT.
7318 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
7319 TARGET_IMG_LDFLAGS_AC.
7320 (grub_CHECK_STACK_ARG_PROBE): New function.
7322 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
7324 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
7326 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
7327 to set TARGET_IMG_LD* accordingly.
7328 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
7329 Add call to grub_CHECK_STACK_ARG_PROBE.
7330 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
7332 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
7334 * genmk.rb: Add EXEEXT to CLEANFILES.
7336 2008-07-23 Robert Millan <rmh@aybabtu.com>
7338 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
7339 define the codes for arrows and lines used for the menu).
7340 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
7343 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
7344 fonts, because the latter are too slow.
7346 2008-07-21 Bean <bean123ch@gmail.com>
7348 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
7349 a20. Run keyboard test last, as it will cause macbook to halt.
7351 2008-07-18 Pavel Roskin <proski@gnu.org>
7353 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
7354 load foreign architecture modules correctly anyway. Keep
7355 support for loading host architecture modules, whether we
7356 compile them or not.
7358 2008-07-17 Pavel Roskin <proski@gnu.org>
7360 * configure.ac: Use -m32 or -m64 regardless of whether we had to
7361 change target_cpu. The compiler default can mismatch target_cpu
7364 * disk/efi/efidisk.c: Fix format warnings on x86_64.
7365 * kern/efi/efi.c: Likewise.
7367 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
7368 target compiler is functional.
7369 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
7372 * configure.ac: Default to efi platform for x86_64-apple. Allow
7373 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
7374 adjustments from the rest, only do them if target is not
7375 explicitly given. Merge other adjustments with the final sanity
7376 check. Remove an extraneous check for supported CPU. Be
7377 specific which CPU and which platform is not supported.
7379 * configure.ac: Default to pc platform for x86_64.
7381 2008-07-17 Robert Millan <rmh@aybabtu.com>
7383 Partial LinuxBIOS -> Coreboot rename.
7385 * conf/i386-linuxbios.rmk: Renamed to ...
7386 * conf/i386-coreboot.rmk: ... this.
7387 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
7388 * configure.ac: Accept "coreboot" as input platform (but maintain
7389 compatibility with "linuxbios").
7390 * include/grub/i386/linuxbios: Renamed to ...
7391 * include/grub/i386/coreboot: ... this.
7393 2008-07-17 Bean <bean123ch@gmail.com>
7395 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
7396 (appleldr_mod_SOURCE): New variable.
7397 (appleldr_mod_CFLAGS): Likewise.
7398 (appleldr_mod_LDFLAGS): Likewise.
7399 (pci_mod_SOURCES): Likewise.
7400 (pci_mod_CFLAGS): Likewise.
7401 (pci_mod_LDFLAGS): Likewise.
7402 (lspci_mod_SOURCES): Likewise.
7403 (lspci_mod_CFLAGS): Likewise.
7404 (lspci_mod_LDFLAGS): Likewise.
7406 * conf/x86_64-efi.rmk: New file.
7408 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
7410 (grub_efidisk_write): Likewise.
7412 * include/efi/api.h (efi_call_0): New macro.
7413 (efi_call_1): Likewise.
7414 (efi_call_2): Likewise.
7415 (efi_call_3): Likewise.
7416 (efi_call_4): Likewise.
7417 (efi_call_5): Likewise.
7418 (efi_call_6): Likewise.
7420 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
7421 grub_rescue_cmd_chainloader.
7423 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
7424 (grub_pe32_optional_header): Change some fields based on i386 or
7426 (GRUB_PE32_PE32_MAGIC): Likewise.
7428 * include/grub/efi/uga_draw.h: New file.
7430 * include/grub/elf.h (STN_ABS): New constant.
7431 (R_X86_64_NONE): Relocation constant for x86_64.
7432 (R_X86_64_64): Likewise.
7433 (R_X86_64_PC32): Likewise.
7434 (R_X86_64_GOT32): Likewise.
7435 (R_X86_64_PLT32): Likewise.
7436 (R_X86_64_COPY): Likewise.
7437 (R_X86_64_GLOB_DAT): Likewise.
7438 (R_X86_64_JUMP_SLOT): Likewise.
7439 (R_X86_64_RELATIVE): Likewise.
7440 (R_X86_64_GOTPCREL): Likewise.
7441 (R_X86_64_32): Likewise.
7442 (R_X86_64_32S): Likewise.
7443 (R_X86_64_16): Likewise.
7444 (R_X86_64_PC16): Likewise.
7445 (R_X86_64_8): Likewise.
7446 (R_X86_64_PC8): Likewise.
7448 * include/grub/i386/efi/pci.h: New file.
7450 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
7451 Change it value based on platform.
7452 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
7453 (GRUB_E820_RAM): Likewise.
7454 (GRUB_E820_RESERVED): Likewise.
7455 (GRUB_E820_ACPI): Likewise.
7456 (GRUB_E820_NVS): Likewise.
7457 (GRUB_E820_EXEC_CODE): Likewise.
7458 (GRUB_E820_MAX_ENTRY): Likewise.
7459 (grub_e820_mmap): New structure.
7460 (linux_kernel_header): Change the efi field according to different
7461 kernel version, also field from linux_kernel_header.
7463 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
7465 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
7466 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
7467 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
7468 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
7469 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
7470 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
7471 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
7472 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
7473 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
7474 (GRUB_PCI_ADDR_IO_MASK): Likewise.
7476 * include/grub/x86_64/efi/kernel.h: New file.
7478 * include/grub/x86_64/efi/loader.h: Likewise.
7480 * include/grub/x86_64/efi/machine.h: Likewise.
7482 * include/grub/x86_64/efi/pci.h: Likewise.
7484 * include/grub/x86_64/efi/time.h: Likewise.
7486 * include/grub/x86_64/linux.h: Likewise.
7488 * include/grub/x86_64/setjmp.h: Likewise.
7490 * include/grub/x86_64/time.h: Likewise.
7492 * include/grub/x86_64/types.h: Likewise.
7494 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
7495 GRUB_TARGET_SIZEOF_VOID_P.
7497 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
7498 (grub_efi_locate_handle): Likewise.
7499 (grub_efi_open_protocol): Likewise.
7500 (grub_efi_set_text_mode): Likewise.
7501 (grub_efi_stall): Likewise.
7502 (grub_exit): Likewise.
7503 (grub_reboot): Likewise.
7504 (grub_halt): Likewise.
7505 (grub_efi_exit_boot_services): Likewise.
7506 (grub_get_rtc): Likewise.
7508 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
7509 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
7510 (grub_efi_allocate_pages): Wrap efi calls.
7511 (grub_efi_free_pages): Wrap efi calls.
7512 (grub_efi_get_memory_map): Wrap efi calls.
7514 * kern/x86_64/dl.c: New file.
7516 * kern/x86_64/efi/callwrap.S: Likewise.
7518 * kern/x86_64/efi/startup.S: Likewise.
7520 * loader/efi/appleloader.c: Likewise.
7522 * loader/efi/chainloader.c (cmdline): New variable.
7523 (grub_chainloader_unload): Wrap efi calls.
7524 (grub_chainloader_boot): Likewise.
7525 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
7528 * loader/efi/chainloader_normal.c (chainloader_command):
7529 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
7532 * loader/i386/efi/linux.c (allocate_pages): Change allocation
7534 (grub_e820_add_region): New function.
7535 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
7537 (grub_find_video_card): New function.
7538 (grub_linux_setup_video): New function.
7539 (grub_rescue_cmd_linux): Probe for video information.
7541 * normal/x86_64/setjmp.S: New file.
7543 * term/efi/console.c (map_char): New function.
7544 (grub_console_putchar): Map unicode char.
7545 (grub_console_checkkey): Wrap efi calls.
7546 (grub_console_getkey): Likewise.
7547 (grub_console_getwh): Likewise.
7548 (grub_console_gotoxy): Likewise.
7549 (grub_console_cls): Likewise.
7550 (grub_console_setcolorstate): Likewise.
7551 (grub_console_setcursor): Likewise.
7553 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
7555 2008-07-16 Pavel Roskin <proski@gnu.org>
7557 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
7560 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
7561 pointer, not an integer. This fixes a warning and prevents
7562 precision loss on 64-bit systems.
7563 (relocate_addresses): Remove unneeded cast.
7565 2008-07-15 Pavel Roskin <proski@gnu.org>
7567 * kern/i386/ieee1275/init.c: Include grub/cache.h.
7569 * term/ieee1275/ofconsole.c: Disable code unused on i386.
7571 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
7572 Fix comparison between signed and unsigned.
7574 * include/grub/i386/ieee1275/console.h: Declare
7575 grub_console_init() and grub_console_fini().
7577 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
7578 It's empty and unused.
7580 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
7581 beginning to avoid warnings with some compilers.
7583 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
7584 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
7586 2008-07-14 Pavel Roskin <proski@gnu.org>
7588 * kern/env.c (grub_register_variable_hook): Don't copy empty
7589 string, it leaks memory. Pass "" to grub_env_set(), it should
7590 handle constant strings.
7592 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
7593 * commands/cmp.c (grub_cmd_cmp): Likewise.
7594 * kern/dl.c (grub_dl_flush_cache): Likewise.
7595 (grub_dl_load_core): Likewise.
7596 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
7597 (grub_elf64_load_phdrs): Likewise.
7599 2008-07-13 Pavel Roskin <proski@gnu.org>
7601 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
7602 between signed and unsigned.
7603 (LzmaEnc_Finish): Fix warning about an unused parameter.
7605 2008-07-13 Bean <bean123ch@gmail.com>
7607 * Makefile.in (enable_lzo): New rule.
7609 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
7611 * configure.ac (ENABLE_LZO): New option --enable-lzo.
7613 * boot/i386/pc/lnxboot.S: #include <config.h>.
7615 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
7616 its value according to the compression algorithm used, lzo or lzma.
7618 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
7619 compression algorithm according to configure macro.
7621 * kern/i386/pc/startup.S (codestart): Likewise.
7623 * kern/i386/pc/lzma_decode.S: New file.
7625 * include/grub/lib/LzFind.h: Likewise.
7627 * include/grub/lib/LzHash.h: Likewise.
7629 * include/grub/lib/LzmaDec.h: Likewise.
7631 * include/grub/lib/LzmaEnc.h: Likewise.
7633 * include/grub/lib/LzmaTypes.h: Likewise.
7635 * lib/LzFind.c: Likewise.
7637 * lib/LzmaDec.c: Likewise.
7639 * lib/LzmaEnc.c: Likewise.
7641 2008-07-13 Bean <bean123ch@gmail.com>
7643 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
7644 (grub_ext4_extent_header): New structure.
7645 (grub_ext4_extent): Likewise.
7646 (grub_ext4_extent_idx): Likewise.
7647 (grub_ext4_find_leaf): New function.
7648 (grub_ext2_read_block): Handle extents.
7650 2008-07-12 Robert Millan <rmh@aybabtu.com>
7652 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
7654 2008-07-11 Robert Millan <rmh@aybabtu.com>
7656 * util/grub.d/40_custom.in: New file. Example on how to add custom
7657 entries to /etc/grub.d.
7658 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
7659 40_custom (implicitly, by merging all the grub.d rules).
7661 2008-07-11 Pavel Roskin <proski@gnu.org>
7663 * commands/read.c (grub_getline): Fix invalid memory access.
7664 Don't add newline to the variable value.
7666 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
7667 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
7668 (serial_hw_get_port): Check validity of the port number.
7669 (grub_cmd_serial): Check return value of serial_hw_get_port().
7671 2008-07-07 Pavel Roskin <proski@gnu.org>
7673 * boot/i386/pc/diskboot.S (notification_string): Replace
7674 "Loading kernel" with just "loading". This is shorter, less
7675 confusing and saves a few bytes for possible future changes.
7677 2008-07-05 Pavel Roskin <proski@gnu.org>
7679 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
7680 size for ATAPI devices, they are undefined. Output sector
7681 number in decimal form.
7683 * disk/ata.c: Use named constants for status bits.
7685 2008-07-04 Pavel Roskin <proski@gnu.org>
7687 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
7688 grub_addr_t before casting it to the void pointer to fix a
7689 warning. Non-addressable regions are discarded earlier.
7690 (grub_arch_modules_addr): Cast _end to grub_addr_t.
7691 * kern/i386/linuxbios/table.c: Include grub/misc.h.
7692 (check_signature): Don't shadow table_header.
7693 (grub_linuxbios_table_iterate): Cast numeric constants to
7694 grub_linuxbios_table_header_t.
7695 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
7698 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
7701 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
7702 pointer, which can cause warnings. Support 64-bit addresses.
7704 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
7705 of sizeof(long). This fixes PowerPC image generation on x86_64.
7707 2008-07-04 Robert Millan <rmh@aybabtu.com>
7709 This fixes a performance issue when pc & gpt partmap iterators
7710 didn't abort iteration even after our hook found what it was
7711 looking for (often causing expensive probes of non-existent drives).
7713 Some callers relied on previous buggy behaviour, since they would
7714 raise an error when their own hooks caused early abortion of its
7717 * kern/device.c (grub_device_open): Improve error message.
7718 * disk/lvm.c (grub_lvm_open): Likewise.
7719 * disk/raid.c (grub_raid_open): Likewise.
7721 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
7722 when hook requests it, independently of grub_errno.
7723 (pc_partition_map_probe): Do not fail when find_func() caused
7724 early abortion of pc_partition_map_iterate().
7726 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
7727 when hook requests it, independently of grub_errno.
7728 (gpt_partition_map_probe): Do not fail when find_func() caused
7729 early abortion of gpt_partition_map_iterate().
7731 * kern/partition.c (grub_partition_iterate): Abort parent iteration
7732 when hook requests it, independently of grub_errno. Do not fail when
7733 part_map_iterate_hook() caused early abortion of p->iterate().
7735 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
7736 when grub_partition_iterate() returned with non-zero.
7738 2008-07-03 Pavel Roskin <proski@gnu.org>
7740 * disk/ata.c (grub_ata_pio_write): Check status before writing,
7741 like we do in grub_ata_pio_read().
7742 (grub_ata_readwrite): Always write individual sectors. Fix the
7743 sector count for the remainder.
7744 (grub_ata_write): Enable writing to ATA devices. Correctly
7745 report error for ATAPI devices.
7747 2008-07-02 Pavel Roskin <proski@gnu.org>
7749 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
7752 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
7753 for every read sector, we already increment it for the whole
7754 batch. This fixes reading more than 256 sectors at once.
7756 * util/grub-editenv.c (cmd_info): Cast argument to long
7757 explicitly. ptrdiff_t reduces to int on i386.
7759 * util/grub-editenv.c (main): Be specific which parameter is
7762 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
7763 (memdisk): Make memdisk_orig_addr a pointer.
7765 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
7766 for file offsets, use grub_off_t instead. Fix printf format
7769 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
7770 there. Real unexpected warnings should not drown in the noise
7771 about known problems.
7773 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
7774 grub_disk_addr_t for memory addresses.
7776 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
7777 explicitly to fix a warning.
7779 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
7781 * Makefile.in (MODULE_LDFLAGS): New variable.
7782 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
7783 the linker accepts --build-id=none.
7784 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
7786 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
7788 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
7789 those in Linux XFS code. Provide a way to access 64-bit parent
7791 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
7792 the end of struct grub_xfs_dir_header.
7794 2008-07-02 Bean <bean123ch@gmail.com>
7796 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
7797 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
7798 and GRUB_IEEE1275_FLAG_NO_ANSI.
7800 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
7801 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
7802 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
7804 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
7805 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
7807 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
7808 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
7810 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
7811 esc sequence on non ANSI terminal.
7812 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
7814 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
7817 2008-07-02 Bean <bean123ch@gmail.com>
7819 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
7820 (grub_editenv_SOURCES): New variable.
7821 (pkglib_MODULES): Add loadenv.mod.
7822 (loadenv_mod_SOURCES): New variable.
7823 (loadenv_mod_CFLAGS): Likewise.
7824 (loadenv_mod_LDFLAGS): Likewise.
7826 * include/grub/envblk.h: New file.
7828 * util/envblk.c: New file.
7830 * util/grub-editenv.c: New file.
7832 * commands/loadenv.c: New file.
7834 2008-07-01 Pavel Roskin <proski@gnu.org>
7836 * include/multiboot2.h (struct multiboot_tag_module): Use char,
7837 not unsigned char. This fixes warnings and is consistent with
7840 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
7842 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
7844 * term/tparm.c (analyze): Always set *popcount.
7846 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
7847 cast to fix a warning.
7849 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
7850 cast to suppress a warning.
7852 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
7853 grub_fshelp_read_file() expects.
7855 * fs/fat.c: Fix UUID calculation on big-endian systems. We
7856 write uuid as a 32-bit value in CPU byte order, so declare and
7859 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
7860 long if the format specifier expects it.
7861 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
7862 * partmap/pc.c (pc_partition_map_iterate): Likewise.
7863 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
7864 long to fix a warning.
7865 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
7866 grub_dprintf() arguments to fix warnings.
7868 2008-06-30 Pavel Roskin <proski@gnu.org>
7870 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
7871 install_bsd_part immediately before core.img is embedded or
7872 modified on disk. This fixes core.img verification if core.img
7875 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
7876 core_path to calculate the blocklist.
7877 Patch from Javier MartÃn <lordhabbit@gmail.com>
7879 2008-06-29 Robert Millan <rmh@aybabtu.com>
7881 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
7882 block to disk block.
7883 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
7884 Patch from Niels Böhm <bitbucket@arcor.de>
7886 2008-06-29 Robert Millan <rmh@aybabtu.com>
7888 * util/update-grub_lib.in (font_path): Search for fonts in
7889 /boot/grub first, which is more likely to be readable (we aren't
7890 deciding where fonts live, just looking for them).
7892 2008-06-26 Pavel Roskin <proski@gnu.org>
7894 * util/biosdisk.c (read_device_map): Don't leave dead map
7895 entries for devices failing stat() check.
7897 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
7898 core_path_dev for the core.img path on the target device.
7900 2008-06-26 Robert Millan <rmh@aybabtu.com>
7902 * disk/fs_uuid.c: New file.
7903 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
7904 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
7905 (fs_uuid_mod_LDFLAGS): New variables.
7906 * include/grub/disk.h (grub_disk_dev_id): Add
7907 `GRUB_DISK_DEVICE_UUID_ID'.
7908 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
7909 implement iterate().
7911 2008-06-26 Robert Millan <rmh@aybabtu.com>
7913 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
7914 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
7915 Linux image includes no initrd.
7917 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
7919 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
7920 call to resolve the core image location that effectively appended the
7923 2008-06-21 Robert Millan <rmh@aybabtu.com>
7925 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
7928 * util/grub.d/10_hurd.in: ... to here ...
7929 * util/grub.d/10_linux.in: ... and here.
7931 2008-06-19 Robert Millan <rmh@aybabtu.com>
7933 * kern/main.c (grub_main): Export `prefix' variable immediately
7934 after it has been set by grub_machine_set_prefix().
7936 2008-06-19 Robert Millan <rmh@aybabtu.com>
7938 * commands/search.c (search_label, search_fs_uuid, search_file): Print
7939 search result when not saving to variable, not the other way around.
7940 When saving to variable, abort iteration as soon as a match is found.
7942 2008-06-19 Robert Millan <rmh@aybabtu.com>
7944 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
7945 check for partition that provides /boot/grub. Its logic is flawed,
7946 as it prevents prepare_grub_to_access_device() from being called
7949 2008-06-19 Robert Millan <rmh@aybabtu.com>
7951 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
7952 "insmod" command directly when abstraction modules are needed,
7953 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
7954 since it had already been processed).
7956 2008-06-19 Pavel Roskin <proski@gnu.org>
7958 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
7959 changed. This is needed in case GRUB_LIBDIR changes.
7960 * conf/i386-ieee1275.rmk: Likewise.
7961 * conf/i386-linuxbios.rmk: Likewise.
7962 * conf/i386-pc.rmk: Likewise.
7963 * conf/powerpc-ieee1275.rmk: Likewise.
7965 2008-06-18 Pavel Roskin <proski@gnu.org>
7967 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
7968 kernel_elf_symlist.c to symlist.c for consistency with other
7969 architectures. Update all users.
7970 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
7972 2008-06-18 Robert Millan <rmh@aybabtu.com>
7974 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
7977 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
7978 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
7979 a RAID device, run setup() for all members independently on whether
7980 LVM abstraction is being used.
7981 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
7982 If grub-mkimage has set `*install_dos_part == -2', don't override this
7984 Perform *install_dos_part adjustments independently on whether
7985 we're embedding or not.
7986 Clarify error message when image is too big for embedding.
7987 Remove duplicate *install_dos_part stanza.
7989 2008-06-17 Robert Millan <rmh@aybabtu.com>
7991 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
7992 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
7994 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
7995 values in grub_ofconsole_normal_color and
7996 grub_ofconsole_highlight_color (they're not directly related to
7997 background and foreground).
7998 (grub_ofconsole_setcolorstate): Extract background and foreground
7999 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
8001 2008-06-17 Robert Millan <rmh@aybabtu.com>
8003 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
8004 /boot/grub for the check in last commit, not /boot (they could be
8005 different partitions).
8007 2008-06-16 Robert Millan <rmh@aybabtu.com>
8009 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
8010 asked to setup access for the same partition that provides /boot,
8011 don't bother using UUIDs since our root already has the value we
8014 2008-06-16 Robert Millan <rmh@aybabtu.com>
8016 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
8018 Patch from Sven Mueller <sven@debian.org>.
8020 2008-06-16 Robert Millan <rmh@aybabtu.com>
8022 * util/update-grub.in: Check for $EUID instead of $UID.
8023 Reported by Vincent Zweije.
8025 2008-06-16 Bean <bean123ch@gmail.com>
8027 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
8028 (grub_ext2_read_block): Likewise.
8029 (grub_ext2_read_inode): Likewise.
8030 (grub_ext2_mount): Likewise.
8031 (grub_ext2_close): Likewise.
8032 (grub_ext3_get_journal): Removed.
8034 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
8035 (grub_reiserfs_read_symlink): Likewise.
8036 (grub_reiserfs_mount): Likewise.
8037 (grub_reiserfs_open): Likewise.
8038 (grub_reiserfs_read): Likewise.
8039 (grub_reiserfs_close): Likewise.
8040 (grub_reiserfs_get_journal): Removed.
8042 * fs/fshelp.c (grub_fshelp_read): Removed.
8043 (grub_fshelp_map_block): Likewise.
8045 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
8046 (grub_fshelp_journal): Likewise.
8047 (grub_fshelp_read): Likewise.
8048 (grub_fshelp_map_block): Likewise.
8050 2008-06-16 Pavel Roskin <proski@gnu.org>
8052 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
8053 floating point anymore.
8054 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
8056 2008-06-15 Pavel Roskin <proski@gnu.org>
8058 * commands/ls.c (grub_ls_list_files): Use integer calculations
8059 for human readable format, avoid floating point use.
8060 * kern/misc.c (grub_ftoa): Remove.
8061 (grub_vsprintf): Remove floating point support.
8063 2008-06-15 Robert Millan <rmh@aybabtu.com>
8065 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
8067 Reported by Max Vozeler.
8069 2008-06-15 Robert Millan <rmh@aybabtu.com>
8071 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
8072 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
8074 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
8075 the beginning of the prefix.
8077 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
8078 It is assumed that if we have a memdisk, grub-mkimage has set
8079 grub_prefix to include the "(memdisk)" drive in it.
8081 2008-06-15 Robert Millan <rmh@aybabtu.com>
8083 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
8084 Initialize keyboard controller after registering the terminal, so that
8085 grub_printf() can be called from grub_keyboard_controller_init().
8087 2008-06-15 Robert Millan <rmh@aybabtu.com>
8089 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
8090 extent-btree which is written as big endian on disk.
8091 Reported by Alain Greppin <al@chilibi.org>.
8093 2008-06-14 Robert Millan <rmh@aybabtu.com>
8095 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
8096 * util/i386/pc/grub-install.in (modules): Likewise.
8098 2008-06-13 Pavel Roskin <proski@gnu.org>
8100 * commands/ls.c (grub_ls_list_files): Fix format warnings.
8102 2008-06-13 Bean <bean123ch@gmail.com>
8104 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
8106 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
8108 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
8109 to indicate sparse block.
8111 2008-06-12 Pavel Roskin <proski@gnu.org>
8113 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
8114 number, grub_fshelp_read() does it for us.
8116 * fs/fshelp.c (grub_fshelp_read): New function. Implement
8117 linear disk read with journal translation.
8118 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
8119 * include/grub/fshelp.h: Declare grub_fshelp_read().
8121 2008-06-09 Pavel Roskin <proski@gnu.org>
8123 * fs/minix.c (grub_minix_mount): Handle error reading
8126 2008-06-08 Robert Millan <rmh@aybabtu.com>
8128 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
8129 don't append the RAID prefix afterwards.
8130 Reported by Clint Adams.
8132 2008-06-08 Robert Millan <rmh@aybabtu.com>
8134 Based on description from Pavel:
8135 * kern/disk.c (grub_disk_check_range): Rename to ...
8136 (grub_disk_adjust_range): ... this. Add a comment explaining the
8137 tasks performed by this function.
8139 2008-06-08 Robert Millan <rmh@aybabtu.com>
8141 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
8142 `num_serial' (for consistency with other variables).
8143 (struct grub_ntfs_data): Add `uuid' member.
8144 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
8145 (grub_ntfs_uuid): New function.
8146 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
8148 2008-06-07 Pavel Roskin <proski@gnu.org>
8150 * util/biosdisk.c (open_device): Revert last change to the
8151 function, it broke installation. The sector needs to be
8152 different dependent on which device is opened.
8154 2008-06-06 Robert Millan <rmh@aybabtu.com>
8156 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
8157 rest of GRUB, and breakage doesn't happen if its value were modified.
8159 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
8160 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
8161 a constant (same value).
8162 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
8163 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
8165 2008-06-06 Robert Millan <rmh@aybabtu.com>
8167 * util/biosdisk.c (open_device): Do not modify sector offset when
8168 accessing a partition. kern/disk.c already handles this for us.
8170 2008-06-06 Robert Millan <rmh@aybabtu.com>
8172 * util/grub-emu.c (grub_machine_init): Move code in this function from
8174 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
8175 segfault in case grub_printf() is called).
8177 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
8178 grub_probe. Update all users not to explicitly add it again.
8179 (grub_device): New variable; contains corresponding device for grubdir.
8180 (fs_module, partmap_module, devabstraction_module): Pass
8181 `--device ${grub_device}' to grub_probe to avoid traversing /dev
8184 2008-06-05 Robert Millan <rmh@aybabtu.com>
8186 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
8187 is found, print it (same layout as with labels).
8189 2008-06-04 Robert Millan <rmh@aybabtu.com>
8191 * util/biosdisk.c (get_drive): Rename to ...
8192 (find_grub_drive): ... this. Update all users.
8194 (get_os_disk): Rename to ...
8195 (convert_system_partition_to_system_disk): ... this. Update all users.
8197 (find_drive): Rename to ...
8198 (find_system_device): ... this. Update all users.
8200 2008-06-04 Robert Millan <rmh@aybabtu.com>
8202 * util/biosdisk.c (get_os_disk): Handle IDA devices.
8203 * util/grub-mkdevicemap.c (get_mmc_disk_name)
8204 (make_device_map): Likewise.
8206 2008-06-01 Robert Millan <rmh@aybabtu.com>
8208 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
8209 before dereferencing it.
8211 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
8212 union with fat12/fat16-specific ones. Add some new fields, including
8213 `num_serial' for both versions.
8214 (struct grub_fat_data): Add `uuid' member.
8215 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
8216 names. Initialize `data->uuid' using `num_serial'.
8217 (grub_fat_uuid): New function.
8218 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
8220 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
8221 (grub_reiserfs_uuid): New function.
8222 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
8225 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
8226 (grub_xfs_uuid): New function.
8227 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
8229 2008-06-01 Robert Millan <rmh@aybabtu.com>
8231 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
8232 code that is backward compatible with pre-uuid search command.
8234 2008-05-31 Robert Millan <rmh@aybabtu.com>
8236 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
8237 floppies after everything else, to ensure floppy drive isn't accessed
8238 unnecessarily (patch from Bean).
8240 2008-05-31 Robert Millan <rmh@aybabtu.com>
8242 * commands/search.c (search_label, search_fs_uuid, search_file): Do
8243 not print device names when we were asked to set a variable.
8245 2008-05-31 Robert Millan <rmh@aybabtu.com>
8247 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
8248 using "cursor-on" and "cursor-off" commands (understood at least by
8249 the Open Firmware flavour on OLPC).
8251 2008-05-31 Michael Gorven <michael@gorven.za.net>
8253 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
8254 on and off sequences.
8256 2008-05-31 Robert Millan <rmh@aybabtu.com>
8258 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
8259 * util/update-grub.in: Likewise.
8261 2008-05-30 Pavel Roskin <proski@gnu.org>
8263 * util/biosdisk.c (linux_find_partition): Simplify logic and
8264 make the code more universal. Keep special processing for
8265 devfs, but use a simple rule for all other devices. If the
8266 device ends with a number, append 'p' and the partition number.
8267 Otherwise, append only the partition number.
8269 2008-05-30 Robert Millan <rmh@aybabtu.com>
8271 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
8272 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
8273 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
8274 the `root' parameter to Linux.
8276 2008-05-30 Robert Millan <rmh@aybabtu.com>
8278 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
8279 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
8280 --fs_uuid with --fs-uuid.
8281 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
8282 all filesystems support them).
8284 2008-05-30 Robert Millan <rmh@aybabtu.com>
8286 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
8287 grub_printf() flags, since we're printing in units of 2 bytes.
8289 2008-05-30 Robert Millan <rmh@aybabtu.com>
8291 * util/grub.d/00_header.in: Remove obsolete comment referencing
8292 convert_system_path_to_grub_path().
8293 * util/update-grub.in: Likewise.
8294 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
8295 (convert_system_path_to_grub_path): Add a warning message explaining
8296 that this function is deprecated. Rely on is_path_readable_by_grub()
8297 for the readability checks.
8298 (font_path): Use is_path_readable_by_grub() for the readability
8299 check rather than convert_system_path_to_grub_path().
8301 2008-05-30 Robert Millan <rmh@aybabtu.com>
8303 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
8304 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
8305 converting it first.
8306 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
8307 grub.cfg for access to font file, and afterwards call it again to set
8310 2008-05-30 Robert Millan <rmh@aybabtu.com>
8312 * commands/search.c (options): Add --fs_uuid option.
8313 (search_fs_uuid): New function.
8314 (grub_cmd_search): Fix --set argument passing.
8315 Use search_fs_uuid() when requested via --fs_uuid.
8316 (grub_search_init): Update help message.
8317 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
8318 and redeclare it as an array of 16-bit words.
8319 (grub_ext2_uuid): New function.
8320 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
8321 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
8322 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
8323 (GRUB_DEVICE_BOOT_UUID): New variables.
8324 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
8325 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
8327 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
8328 just assume `root' variable has the right value.
8329 * util/grub.d/10_linux.in: Likewise.
8330 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
8332 (main): Recognise `-t fs_uuid' argument.
8334 2008-05-30 Robert Millan <rmh@aybabtu.com>
8336 * util/biosdisk.c (map): Redefine structure to hold information
8337 about GRUB drive name.
8338 (get_drive): Reimplement without assuming (and verifying) BIOS-like
8340 (call_hook): Remove.
8341 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
8342 member. Assume drive has partitions.
8343 (grub_util_biosdisk_open): Access device names via `.device' struct
8345 (open_device): Likewise.
8346 (find_drive): Likewise.
8347 (read_device_map): Adjust map[] usage to match the new struct
8348 definition. Don't check for duplicates (still possible, but not cheap
8350 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
8351 (make_device_name): Remove assumption of BIOS-like drive names.
8353 2008-05-30 Pavel Roskin <proski@gnu.org>
8355 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
8356 compiling execute.c doesn't need grub_script.tab.h anymore.
8357 (normal/command.c_DEPENDENCIES): Likewise.
8358 (normal/function.c_DEPENDENCIES): Likewise.
8359 * conf/i386-ieee1275.rmk: Likewise.
8360 * conf/i386-linuxbios.rmk: Likewise.
8361 * conf/i386-pc.rmk: Likewise.
8362 * conf/powerpc-ieee1275.rmk: Likewise.
8363 * conf/sparc64-ieee1275.rmk: Likewise.
8365 2008-05-29 Pavel Roskin <proski@gnu.org>
8367 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
8368 when scanning metadata for volume group name.
8370 * include/grub/script.h: Don't include grub_script.tab.h. It's
8371 a generated file, which may only be included from the files with
8372 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
8373 use union YYSTYPE, as the later allows forward declaration.
8374 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
8376 2008-05-29 Robert Millan <rmh@aybabtu.com>
8378 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
8379 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
8380 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
8381 (grub_console_checkkey): Add grub_dprintf() call to report unknown
8384 2008-05-29 Robert Millan <rmh@aybabtu.com>
8386 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
8387 control key combinations.
8389 2008-05-29 Robert Millan <rmh@aybabtu.com>
8391 * util/powerpc/ieee1275/grub-install.in: Move from here ...
8392 * util/ieee1275/grub-install.in: ... to here.
8393 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
8394 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
8395 (grub_install_SOURCES): Likewise.
8397 2008-05-29 Robert Millan <rmh@aybabtu.com>
8399 * fs/affs.c: Update copyright year.
8400 * fs/ext2.c: Likewise.
8401 * fs/fshelp.c: Likewise.
8402 * fs/hfsplus.c: Likewise.
8403 * fs/ntfs.c: Likewise.
8404 * fs/xfs.c: Likewise.
8405 * include/grub/fshelp.h: Likewise.
8406 * util/grub-mkdevicemap.c: Likewise.
8408 2008-05-28 Robert Millan <rmh@aybabtu.com>
8410 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
8411 might need to be fatfs to support some firmware implementations
8414 2008-05-28 Robert Millan <rmh@aybabtu.com>
8416 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
8418 * util/grub-mkdevicemap.c (get_mmc_disk_name)
8419 (make_device_map): Likewise.
8421 2008-05-20 Bean <bean123ch@gmail.com>
8423 * fs/fshelp.c (grub_fshelp_map_block): New function.
8424 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
8425 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
8427 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
8428 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
8429 (grub_fshelp_journal): New structure.
8430 (grub_fshelp_map_block): New function prototype.
8431 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
8432 (grub_fshelp_map_block): Likewise.
8434 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
8435 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
8436 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
8437 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
8438 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
8439 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
8440 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
8441 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
8442 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
8443 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
8444 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
8445 (grub_ext2_sblock): New members for journal support.
8446 (grub_ext3_journal_header): New structure.
8447 (grub_ext3_journal_revoke_header): Likewise.
8448 (grub_ext3_journal_block_tag): Likewise.
8449 (grub_ext3_journal_sblock): Likewise.
8450 (grub_fshelp_node): New members logfile and journal.
8451 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
8452 grub_fshelp_map_block to get real block number.
8453 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
8455 (grub_ext2_read_inode): Likewise.
8456 (grub_ext3_get_journal): New function.
8457 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
8458 (grub_ext2_close): Release memory used by journal.
8460 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
8461 (REISERFS_MAGIC_DESC_BLOCK): New macro.
8462 (grub_reiserfs_transaction_header): Renamed to
8463 grub_reiserfs_description_block, replace field data with real_blocks.
8464 (grub_reiserfs_commit_block): New structure.
8465 (grub_reiserfs_data): New member journal.
8466 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
8468 (grub_reiserfs_read_symlink): Likewise.
8469 (grub_reiserfs_iterate_dir): Likewise.
8470 (grub_reiserfs_open): Likewise.
8471 (grub_reiserfs_read): Likewise.
8472 (grub_reiserfs_get_journal): New function.
8473 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
8474 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
8475 using grub_reiserfs_get_journal.
8476 (grub_reiserfs_close): Release memory used by journal.
8478 * fs/affs.c (grub_affs_read_block): Change block type to
8479 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
8481 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
8483 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
8485 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
8487 * fs/udf.c (grub_udf_read_block): Change block type to
8488 grub_disk_addr_t. Use type cast to avoid warning.
8490 * fs/xfs.c (grub_xfs_read_block): Likewise.
8492 2008-05-16 Christian Franke <franke@computer.org>
8494 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
8495 to ensure that break with ESC will always work.
8496 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
8497 Remove ESC from keyboard queue.
8499 2008-05-16 Christian Franke <franke@computer.org>
8501 * util/biosdisk.c: [__CYGWIN__] Add includes.
8502 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
8503 (get_os_disk): Move variable declarations to OS specific
8504 parts to avoid warning.
8505 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
8506 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
8507 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
8509 * util/getroot.c: [__CYGWIN__] Add includes.
8510 (strip_extra_slashes): Fix "/" case.
8511 [__CYGWIN__] (get_win32_path): New function.
8512 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
8513 [__CYGWIN__] (find_root_device): Disable.
8514 [__CYGWIN__] (get_bootsec_serial): New function.
8515 [__CYGWIN__] (find_cygwin_root_device): Likewise.
8516 [__linux__] (grub_guess_root_device): Add early returns to simplify
8518 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
8519 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
8520 check for Linux only.
8522 2008-05-15 Bean <bean123ch@gmail.com>
8524 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
8525 keyboard hang problem in apple's intel mac.
8527 2008-05-09 Robert Millan <rmh@aybabtu.com>
8529 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
8531 * util/grub-mkdevicemap.c (get_virtio_disk_name)
8532 (make_device_map): Likewise.
8533 Reported by Aurelien Jarno <aurel32@debian.org>
8535 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
8537 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
8538 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
8539 (make_device_map): Output entries for xvd type disks.
8541 2008-05-07 Robert Millan <rmh@aybabtu.com>
8543 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
8545 * util/grub-mkdevicemap.c (get_cciss_disk_name)
8546 (make_device_map): Likewise.
8547 Reported by Roland Dreier <rdreier@cisco.com>
8549 2008-05-07 Robert Millan <rmh@aybabtu.com>
8551 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
8552 grub_strstr() call. Correct a few mistakes in failure path handling.
8554 2008-05-06 Robert Millan <rmh@aybabtu.com>
8556 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
8557 Do not print a trailing slash (therefore, the root directory is an
8559 (convert_system_path_to_grub_path): Do not remove trailing slash
8560 from make_system_path_relative_to_its_root() output.
8562 * util/i386/pc/grub-install.in: Add trailing slash to output from
8563 make_system_path_relative_to_its_root().
8565 2008-05-06 Robert Millan <rmh@aybabtu.com>
8567 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
8568 ensures that output lines aren't intermangled with those sent to
8569 stderr (via grub_util_info()).
8570 * util/grub-probe.c (grub_refresh): Likewise.
8571 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
8573 2008-05-05 Christian Franke <franke@computer.org>
8575 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
8576 Add Cygwin device names.
8577 (get_ide_disk_name) [__CYGWIN__]: Likewise.
8578 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
8579 (check_device): Return error instead of success on empty name.
8580 (make_device_map): Move label inside linux specific code to
8581 prevent compiler warning.
8583 2008-04-30 Robert Millan <rmh@aybabtu.com>
8585 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
8586 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
8588 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
8590 2008-04-29 Robert Millan <rmh@aybabtu.com>
8592 * docs/grub.cfg: New file (example GRUB configuration).
8594 2008-04-26 Robert Millan <rmh@aybabtu.com>
8596 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
8597 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
8598 and `disk/ieee1275/nand.c'.
8600 2008-04-25 Bean <bean123ch@gmail.com>
8602 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
8605 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
8606 change the buffer size to 4096 for cdrom device.
8608 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
8610 (_linux_mod_SOURCES): New variable.
8611 (_linux_mod_CFLAGS): Likewise.
8612 (_linux_mod_LDFLAGS): Likewise.
8613 (linux_mod_SOURCES): Likewise.
8614 (linux_mod_CFLAGS): Likewise.
8615 (linux_mod_LDFLAGS): Likewise.
8616 (nand_mod_SOURCES): Likewise.
8617 (nand_mod_CFLAGS): Likewise.
8618 (nand_mod_LDFLAGS): Likewise.
8620 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
8621 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
8622 type property. (nand device in olpc don't have this property)
8624 * include/grub/disk.h (grub_disk_dev_id): New macro
8625 GRUB_DISK_DEVICE_NAND_ID.
8627 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
8629 (grub_rescue_cmd_initrd): Likewise.
8631 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
8632 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
8633 ofw_cif_handler and ofw_idt, adjust padding number.
8635 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
8636 GRUB_MACHINE_IEEE1275 is defined.
8638 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
8639 Use NESTED_FUNC_ATTR attribute on the hook parameter.
8641 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
8642 on nested function heap_init.
8643 (grub_upper_mem): New variable for i386-ieee1275.
8644 (grub_get_extended_memory): New function for i386-ieee1275.
8645 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
8647 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
8648 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
8651 * loader/i386/ieee1275/linux.c: New file.
8653 * loader/i386/ieee1275/linux_normal.c: New file.
8655 * disk/ieee1275/nand.c: New file.
8657 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
8659 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
8661 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
8663 2008-04-18 Robert Millan <rmh@aybabtu.com>
8665 Restructures early code path on ieee1275 to unify grub_main() as
8666 the first C function that is executed in every platform.
8668 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
8669 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
8671 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
8672 * kern/ieee1275/cmain.c (cmain): Rename to ...
8673 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
8674 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
8677 2008-04-18 Robert Millan <rmh@aybabtu.com>
8679 * util/update-grub.in: Fix syntax error when setting
8680 `GRUB_PRELOAD_MODULES'.
8681 Reported by Stephane Chazelas <stephane@artesyncp.com>
8683 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
8685 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
8686 section into account, newer toolchains generate unique build ids
8687 * configure.ac: remove the test for --build-id=none acceptance,
8688 we want build ids to be preserved
8689 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
8690 far from other sections don't cause the raw binary images grow
8693 2008-04-15 Robert Millan <rmh@aybabtu.com>
8695 * disk/lvm.c: Update copyright year.
8696 * kern/misc.c: Likewise.
8698 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
8700 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
8701 there is no memory left for physical volume name.
8703 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
8705 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
8706 volume name mapping to support bigger than 9 character names properly.
8708 2008-04-13 Robert Millan <rmh@aybabtu.com>
8710 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
8711 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
8713 2008-04-13 Christian Franke <franke@computer.org>
8715 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
8716 to create a floppy emulation boot CD when non emulation mode
8718 Enable Joliet CD filesystem extension.
8720 2008-04-13 Robert Millan <rmh@aybabtu.com>
8722 * kern/misc.c (grub_strncat): Fix off-by-one error.
8723 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
8725 * kern/env.c (grub_env_context_close): Clear current context, not
8727 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
8729 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
8731 2008-04-13 Robert Millan <rmh@aybabtu.com>
8733 Improve robustness when handling LVM.
8735 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
8736 (and leave `*p' unmodified).
8737 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
8739 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
8740 iterating through it.
8741 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
8743 (grub_lvm_scan_device): Check the return value (and fail gracefully
8744 when due) on each grub_lvm_getvalue() or grub_strstr() call.
8745 Don't assume `vg->pvs != NULL' when iterating through it.
8747 2008-04-13 Robert Millan <rmh@aybabtu.com>
8749 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
8750 * genmk.rb (partmap): New variable.
8751 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
8752 (#{partmap}): New target rule.
8753 * genpartmaplist.sh: New file.
8754 * Makefile.in (pkglib_DATA): Add partmap.lst.
8755 (partmap.lst): New target rule.
8756 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
8757 modules (including all partition maps), instead of preloading them.
8759 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
8761 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
8762 `linux-boot-prober' (if installed) to detect other operating
8763 systems which are installed on the computer and add them to
8765 * conf/common.rmk: Build and install 30_os-prober.
8767 2008-04-12 Robert Millan <rmh@aybabtu.com>
8769 * kern/powerpc/ieee1275/init.c: Move from here ...
8770 * kern/ieee1275/init.c: ... to here. Update all users.
8772 * kern/powerpc/ieee1275/cmain.c: Move from here ...
8773 * kern/ieee1275/cmain.c: ... to here. Update all users.
8775 * kern/powerpc/ieee1275/openfw.c: Move from here ...
8776 * kern/ieee1275/openfw.c: ... to here. Update all users.
8778 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
8779 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
8781 2008-04-10 Pavel Roskin <proski@gnu.org>
8783 * configure.ac: Always use "_cv_" in cache variables for
8784 compatibility with Autoconf 2.62.
8786 2008-04-07 Robert Millan <rmh@aybabtu.com>
8788 Revert grub/machine/init.h addition by Pavel (since it breaks on
8789 i386-ieee1275 and others):
8790 * util/i386/pc/misc.c: Remove grub/machine/init.h.
8791 * util/powerpc/ieee1275/misc.c: Likewise.
8793 2008-04-07 Robert Millan <rmh@aybabtu.com>
8795 * util/grub-probe.c (probe): Improve error message.
8797 2008-04-07 Robert Millan <rmh@aybabtu.com>
8799 * util/biosdisk.c (read_device_map): Skip devices that don't exist
8800 (this prevents the presence of a bogus entry from ruining the whole
8803 2008-04-06 Pavel Roskin <proski@gnu.org>
8805 * util/biosdisk.c: Include grub/util/biosdisk.h.
8806 * util/grub-fstest.c (execute_command): Make static.
8807 * util/grub-mkdevicemap.c (check_device): Likewise.
8808 * util/i386/pc/misc.c: Include grub/machine/init.h.
8809 * util/powerpc/ieee1275/misc.c: Likewise.
8810 * util/lvm.c: Include grub/util/lvm.h.
8811 * util/misc.c: Include grub/kernel.h, grub/misc.h and
8813 * util/raid.c: Include grub/util/raid.h.
8814 (grub_util_getdiskname): Make static.
8816 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
8817 grub_hostfs_fini(), as they are called from grub_init_all() and
8818 grub_fini_all() respectively. This fixes an infinite loop in
8819 grub-fstest due to double registration of hostfs.
8820 Reported by Christian Franke <Christian.Franke@t-online.de>
8822 2008-04-05 Pavel Roskin <proski@gnu.org>
8824 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
8825 all 8 functions. Otherwise, probe function 0 only.
8827 2008-04-04 Pavel Roskin <proski@gnu.org>
8829 * commands/lspci.c (grub_lspci_iter): Print the bus number
8832 * commands/lspci.c (grub_pci_classes): Fix typos.
8833 (grub_lspci_iter): Don't print func twice. Print vendor ID
8834 before device ID, as it's normally done.
8836 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
8837 Fix signedness warnings.
8838 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
8840 * util/ieee1275/get_disk_name.c: Include config.h so that
8841 _GNU_SOURCE is defined and getline() is declared. Mark an
8842 unused argument as such. Fix a signedness warning.
8844 2008-04-02 Pavel Roskin <proski@gnu.org>
8846 * genkernsyms.sh.in: Use more robust assignments for CC and
8847 srcdir. Quote srcdir.
8848 * gensymlist.sh.in: Likewise. Assert at the compile time that
8849 the symbol table is not empty.
8851 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
8852 * fs/cpio.c (grub_cpio_read): Likewise.
8854 2008-04-01 Pavel Roskin <proski@gnu.org>
8856 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
8857 * disk/host.c (grub_host_open): Likewise.
8858 * disk/loopback.c (grub_loopback_open): Likewise.
8859 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
8860 disk->id as in disk/host.c, not a multi-character constant.
8862 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
8863 later is obsolete, potentially dangerous and sets a bad example.
8864 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
8865 * util/misc.c (grub_util_get_image_size): Likewise.
8867 * disk/loopback.c (options): Improve help for "--partitions".
8869 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
8870 options to align them with the short options, e.g. "echo -e".
8872 2008-03-31 Bean <bean123ch@gmail.com>
8874 * video/reader/png.c (grub_png_data): New member is_16bit and
8876 (grub_png_decode_image_header): Detect 16 bit png image.
8877 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
8878 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
8879 (grub_video_reader_png): Release memory occupied by image_data.
8881 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
8883 (grub_nfs_mount): Skip the test for sector per cluster.
8885 * include/grub/ntfs.h (MAX_SPC): Removed.
8887 2008-03-31 Bean <bean123ch@gmail.com>
8889 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
8890 (grub_probe_SOURCES): Add fs/afs.c.
8891 (grub_fstest_SOURCES): Likewise.
8892 (afs_mod_SOURCES): New variable.
8893 (afs_mod_CFLAGS): Likewise.
8894 (afs_mod_LDFLAGS): Likewise.
8896 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
8897 (grub_emu_SOURCES): Likewise.
8899 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8901 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8903 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
8905 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8907 * fs/afs.c: New file.
8909 2008-03-30 Pavel Roskin <proski@gnu.org>
8911 * disk/host.c: Include grub/misc.h to fix a warning.
8912 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
8913 warnings about implicit declarations.
8915 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
8917 * include/grub/i386/loader.h: Change declaration of
8918 grub_linux_boot() to match what grub_loader_set() expects.
8919 * util/getroot.c (grub_guess_root_device): Return const char* to
8921 * util/grub-probe.c (probe): Fix a warning about uninitialized
8922 abstraction_name variable.
8923 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
8924 second argument as unused to fix a warning.
8926 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
8927 missing grub_error() call.
8929 * util/update-grub_lib.in: Define datarootdir, since Autoconf
8930 2.60 and newer uses it to define datadir.
8932 * commands/sleep.c: Fix warning about implicit declaration.
8933 * disk/memdisk.c: Likewise.
8934 * loader/aout.c: Likewise.
8935 * loader/i386/bsd_normal.c: Likewise.
8936 * util/grub-probe.c: Likewise.
8938 * commands/i386/cpuid.c (has_longmode): Make static.
8939 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
8940 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
8942 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
8943 GDT. This is more robust, as %ds can change.
8944 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
8945 calling real_to_prot().
8946 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
8948 2008-03-28 Pavel Roskin <proski@gnu.org>
8950 * kern/i386/pc/startup.S: Assert that uncompressed functions
8951 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
8952 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
8953 code, as they push parts of the code (error handlers) beyond
8954 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
8955 code as correctness and size.
8957 2008-03-28 Pavel Roskin <proski@gnu.org>
8959 * kern/i386/pc/startup.S
8960 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
8961 data block address to the real mode, keep offset minimal. This
8962 works around a bug in AWARD BIOS on old Athlon systems, which
8963 makes CD detection hang.
8965 2008-03-26 Pavel Roskin <proski@gnu.org>
8967 * normal/color.c (grub_parse_color_name_pair): Make `name' a
8969 * include/grub/normal.h: Add grub_parse_color_name_pair()
8972 2008-03-24 Bean <bean123ch@gmail.com>
8974 * disk/i386/pc/biosdisk.c (cd_start): Removed.
8975 (cd_count): Removed.
8976 (cd_drive): New variable.
8977 (grub_biosdisk_get_drive): Don't check for (cdN) device.
8978 (grub_biosdisk_call_hook): Likewise.
8979 (grub_biosdisk_iterate): Change cdrom detection method.
8980 (grub_biosdisk_open): Replace cd_start with cd_drive.
8981 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
8982 detect cdrom device.
8984 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
8986 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
8987 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
8988 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
8989 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
8990 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
8991 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
8992 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
8993 (grub_biosdisk_cdrp): New structure.
8994 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
8996 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
8998 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
9001 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
9004 2008-03-20 Robert Millan <rmh@aybabtu.com>
9006 Remove 2 TiB limit in ata.mod.
9007 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
9008 (grub_ata_dumpinfo): Print sector count with 0x%llx.
9009 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
9010 grub_uint64_t instead of grub_uint32_t.
9012 2008-03-05 Bean <bean123ch@gmail.com>
9014 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
9015 (grub_multiboot): Set boot device.
9017 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
9019 2008-03-02 Bean <bean123ch@gmail.com>
9021 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
9024 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
9026 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
9029 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
9032 * docs/fdl.texi: New file.
9034 * docs/mdate-sh: New file. Copied from gnulib.
9035 * docs/texinfo.tex: Likewise.
9037 * config.guess: Updated from gnulib.
9038 * install-sh: Likewise.
9040 2008-02-28 Robert Millan <rmh@aybabtu.com>
9042 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
9043 (aout_mod_SOURCES): New variable.
9044 (aout_mod_CFLAGS): Likewise.
9045 (aout_mod_LDFLAGS): Likewise.
9047 * conf/i386-ieee1275.rmk: Likewise.
9049 2008-02-28 Robert Millan <rmh@aybabtu.com>
9051 * util/update-grub.in: Reorganise terminal validity check. Accept
9052 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
9053 Based on suggestion by Franklin PIAT.
9055 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
9057 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
9059 * util/getroot.c (grub_util_check_block_device): New function that
9060 returns the given argument if it is a block device and returns NULL else.
9061 * util/grub-probe.c (argument_is_device): New variable.
9062 (probe): Promote device_name from a variable to an argument. Receive
9063 device_name from grub_util_check_block_device() if path is NULL and from
9064 grub_guess_root_device() else. Do not free() device_name anymore.
9065 (options): Introduce new parameter '-d, --device'.
9066 (main): Add description of the new parameter to the help screen.
9067 Rename path variable to argument. Set argument_is_device if the '-d'
9068 option is given. Pass argument to probe() depending on
9071 2008-02-24 Bean <bean123ch@gmail.com>
9073 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
9074 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
9075 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
9076 (GRUB_ISO9660_VOLDESC_PART): Likewise.
9077 (GRUB_ISO9660_VOLDESC_END): Likewise.
9078 (grub_iso9660_primary_voldesc): New member escape.
9079 (grub_iso9660_data): New member joliet.
9080 (grub_iso9660_convert_string): New function.
9081 (grub_iso9660_mount): Detect joliet extension.
9082 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
9083 (grub_iso9660_iso9660_label): Likewise.
9085 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
9086 (grub_setup_SOURCES): Add fs/udf.c.
9087 (grub_fstest_SOURCES): Likewise.
9088 (udf_mod_SOURCES): New variable.
9089 (udf_mod_CFLAGS): Likewise.
9090 (udf_mod_LDFLAGS): Likewise.
9092 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
9093 (grub_emu_SOURCES): Likewise.
9095 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9097 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9099 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
9101 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9103 * fs/udf.c: New file.
9105 2008-02-24 Robert Millan <rmh@aybabtu.com>
9107 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
9108 (normal/lexer.c_DEPENDENCIES): New variables.
9109 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
9110 (normal/lexer.c_DEPENDENCIES): Likewise.
9111 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
9112 (normal/lexer.c_DEPENDENCIES): Likewise.
9113 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
9114 (normal/lexer.c_DEPENDENCIES): Likewise.
9115 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
9116 (normal/lexer.c_DEPENDENCIES): Likewise.
9117 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
9118 (normal/lexer.c_DEPENDENCIES): Likewise.
9120 2008-02-23 Robert Millan <rmh@aybabtu.com>
9122 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
9123 since they were intended to be in hex. This didn't break previously
9124 because of a bug in gpt_partition_map_iterate() (see below).
9126 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
9127 when checking the validity of GPT header.
9128 Remove `partno', since it always provides the same information as `i'.
9130 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
9132 * include/grub/efi/time.h: Fix a wrong comment.
9134 2008-02-19 Pavel Roskin <proski@gnu.org>
9136 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
9139 2008-02-19 Bean <bean123ch@gmail.com>
9141 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
9142 (aout_mod_SOURCES): New variable.
9143 (aout_mod_CFLAGS): Likewise.
9144 (aout_mod_LDFLAGS): Likewise.
9145 (_bsd_mod_SOURCES): New variable.
9146 (_bsd_mod_CFLAGS): Likewise.
9147 (_bsd_mod_LDFLAGS): Likewise.
9148 (bsd_mod_SOURCES): New variable.
9149 (bsd_mod_CFLAGS): Likewise.
9150 (bsd_mod_LDFLAGS): Likewise.
9152 * include/grub/aout.h: New file.
9154 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
9156 * include/grub/i386/bsd.h: New file.
9158 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
9161 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
9162 function is called, so that it's possible to change it inside the hook.
9163 (grub_elf64_load): Likewise.
9164 (grub_elf_file): Don't close the file if elf header is not found.
9165 (grub_elf_close): Close the file if grub_elf_file fails (The new
9166 grub_elf_file won't close it).
9167 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
9168 (grub_elf64_size): Likewise.
9170 * kern/i386/loader.S (grub_unix_real_boot): New function.
9172 * loader/aout.c: New file.
9174 * loader/i386/bsd.c: New file.
9176 * loader/i386/bsd_normal.c: New file.
9178 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
9180 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
9181 can test other formats.
9183 2008-02-19 Robert Millan <rmh@aybabtu.com>
9185 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
9186 (grub_gpt_partition_type_empty): Redefine with macro from
9187 `<grub/gpt_partition.h>'.
9188 (gpt_partition_map_iterate): Adjust partition type comparison.
9190 Export `entry' as partmap-specific `part.data' struct.
9191 (grub_gpt_header, grub_gpt_partentry): Move from here ...
9193 * include/grub/gpt_partition.h (grub_gpt_header)
9194 (grub_gpt_partentry): ... to here (new file).
9196 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
9198 (grub_gpt_partition_type_bios_boot): New const variable, defined
9199 with macro from `<grub/gpt_partition.h>'.
9201 (setup): Replace `first_start' with `embed_region', which keeps
9202 track of the embed region (and is partmap-agnostic).
9204 Replace find_first_partition_start() with find_usable_region(),
9205 which finds a usable region for embedding using partmap-specific
9206 knowledge (supports PC/MSDOS and GPT).
9208 Fix all assumptions that the embed region start at sector 1, using
9209 `embed_region.start' from now on. Similarly, use `embed_region.end'
9210 rather than `first_start' to calculate available size.
9212 In grub_util_info() message, replace "into after the MBR" with an
9213 indication of the specific sector our embed region starts at.
9215 2008-02-19 Robert Millan <rmh@aybabtu.com>
9217 * DISTLIST: Replace `commands/ieee1275/halt.c' and
9218 `commands/ieee1275/reboot.c' with `commands/halt.c' and
9219 `commands/reboot.c'.
9220 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
9221 (halt_mod_SOURCES): Likewise.
9222 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
9223 (halt_mod_SOURCES): Likewise.
9225 2008-02-17 Christian Franke <franke@computer.org>
9227 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
9229 2008-02-17 Robert Millan <rmh@aybabtu.com>
9231 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
9232 set `first_start' to 0 for non-PC/MSDOS partition maps.
9234 2008-02-16 Robert Millan <rmh@aybabtu.com>
9236 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
9237 do not assume partition map is PC/MSDOS before performing checks that
9238 are specific to that layout.
9240 2008-02-13 Robert Millan <rmh@aybabtu.com>
9242 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
9243 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
9244 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
9246 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
9248 * configure.ac: Only a cosmetic change on the handling of
9249 -fno-stack-protector.
9251 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
9253 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
9254 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
9256 (grub_install_SOURCES): Add halt.mod and reboot.mod.
9257 (halt_mod_SOURCES): New variable.
9258 (halt_mod_CFLAGS): Likewise.
9259 (halt_mod_LDFLAGS): Likewise.
9260 (reboot_mod_SOURCES): Likewise.
9261 (reboot_mod_CFLAGS): Likewise.
9262 (reboot_mod_LDFLAGS): Likewise.
9264 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
9265 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
9267 (halt_mod_SOURCES): Likewise.
9268 (reboot_mod_SOURCES): Likewise.
9270 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
9271 commands/i386/pc/reboot.c by commands/reboot.c.
9272 (reboot_mod_SOURCES): Likewise.
9274 * commands/i386/pc/reboot.c: merge this file ...
9276 * commands/ieee1275/reboot.c: ... and this file ...
9278 * commands/reboot.c: ... to this file.
9279 Add some precompiler directive to include the correct header for
9282 * commands/ieee1275/halt.c: move this file ...
9284 * commands/halt.c: ... to here.
9285 Add some precompiler directive to include the correct header for
9288 * include/grub/efi/efi.h (grub_reboot): New function declaration.
9289 (grub_halt): Likewise.
9291 * kern/efi/efi.c (grub_reboot): New function.
9292 (grub_halt): Likewise.
9294 2008-02-12 Robert Millan <rmh@aybabtu.com>
9296 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
9297 /dev (like it is done for /dev/mapper). This doesn't provide support
9298 for EVMS, but at least it is now easy to identify the problem when it
9301 2008-02-11 Robert Millan <rmh@aybabtu.com>
9303 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
9304 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
9305 comparing it with -1, not 0.
9307 2008-02-10 Robert Millan <rmh@aybabtu.com>
9309 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
9311 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9312 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
9314 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
9315 `disk/lvm.c' to the end of the list.
9316 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
9317 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9319 2008-02-10 Robert Millan <rmh@aybabtu.com>
9321 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
9322 grub_print_error() instead. This will let user know why we're entering
9324 Based on suggestions from Sam Morris.
9326 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
9328 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
9329 on remaining N args, instead of "--" arg N times.
9331 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
9333 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
9334 (fill_with_default_glyph): Changed to use unknown_glyph for fill
9335 pattern for unknown glyphs.
9337 2008-02-09 Robert Millan <rmh@aybabtu.com>
9339 * configure.ac: Probe for `help2man'.
9340 * Makefile.in (builddir): New variable.
9341 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
9342 or otherwise add a few flags/options to it.
9343 (install-local): For every executable utility or script that is
9344 installed, invoke $(HELP2MAN) to install a manpage based on --help
9347 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
9348 that it doesn't prevent --help from working in build tree.
9350 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
9351 with `bug-grub@gnu.org'.
9352 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
9353 * util/update-grub.in (usage): New function.
9354 Implement proper argument check, with support for --help and --version
9355 (as well as existing -y).
9357 2008-02-09 Christian Franke <franke@computer.org>
9359 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
9360 avoid overwriting previous output.
9361 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
9363 2008-02-09 Robert Millan <rmh@aybabtu.com>
9365 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
9368 2008-02-09 Robert Millan <rmh@aybabtu.com>
9370 * commands/sleep.c: New file.
9371 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
9372 (sleep_mod_SOURCES): New variable.
9373 (sleep_mod_CFLAGS): Likewise.
9374 (sleep_mod_LDFLAGS): Likewise.
9376 2008-02-09 Robert Millan <rmh@aybabtu.com>
9378 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
9379 situations in which we can deduce the RAID size and the superblock
9382 2008-02-09 Robert Millan <rmh@aybabtu.com>
9384 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
9385 and return a grub_diskmemberlist_t composed of LVM physical volumes.
9386 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
9388 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
9389 and return a grub_diskmemberlist_t composed of physical array members.
9390 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
9392 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
9394 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
9395 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
9396 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
9398 * util/grub-probe.c (probe): Move partmap probing code from here ...
9399 (probe_partmap): ... to here.
9400 (probe): Use probe_partmap() once for the disk we're probing, and
9401 additionally, when such disk contains a memberlist() struct member,
9402 once for each disk that is contained in the structure returned by
9405 2008-02-09 Robert Millan <rmh@aybabtu.com>
9407 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
9408 environment variable to 'all' in order to obtain debug output from
9410 * util/i386/pc/grub-setup.c (main): Likewise.
9412 2008-02-08 Robert Millan <rmh@aybabtu.com>
9414 * disk/raid.c (grub_raid_scan_device): Check for
9415 `array->device[sb.this_disk.number]' rather than for
9416 `array->device[sb.this_disk.number]->name', since the latter is not
9417 guaranteed to be accessible.
9419 2008-02-08 Robert Millan <rmh@aybabtu.com>
9421 * disk/raid.c: Update copyright.
9422 * fs/cpio.c: Likewise.
9423 * include/grub/raid.h: Likewise.
9424 * loader/i386/pc/multiboot.c: Likewise.
9425 * util/hostfs.c: Likewise.
9427 2008-02-08 Robert Millan <rmh@aybabtu.com>
9429 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
9430 to a grub_disk_t array.
9431 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
9433 (grub_raid_scan_device): Replace `device[x].name' accesses with
9434 `device[x]->name'. Simplify initialization of `array->device[x]'.
9436 2008-02-08 Robert Millan <rmh@aybabtu.com>
9438 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
9439 grub_dprintf() calls.
9440 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
9443 2008-02-07 Christian Franke <franke@computer.org>
9445 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
9446 instead of fseek and ftell to support large files.
9447 (grub_hostfs_read): Likewise.
9449 2008-02-07 Robert Millan <rmh@aybabtu.com>
9451 Patch from Jeroen Dekkers.
9452 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
9453 failure, since successfully reading all array members might not be
9456 2008-02-06 Robert Millan <rmh@aybabtu.com>
9458 * util/grub-probe.c (probe): Simplify partmap probing (with the
9459 assumption that the first word up to the underscore equals to
9462 2008-02-06 Christian Franke <franke@computer.org>
9464 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
9465 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
9466 last block of a cpio or tar stream.
9467 Check for "TRAILER!!!" instead of any empty data
9468 block to detect last block of a cpio stream.
9469 (grub_cpio_dir): Fix constness of variable np.
9470 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
9471 cpio or tar trailer is detected. This fixes a crash
9472 on open of a non existing file.
9474 2008-02-05 Bean <bean123ch@gmail.com>
9476 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
9478 (grub_multiboot_load_elf64): Likewise.
9479 (grub_multiboot): Initialize mbi structure.
9481 * util/grub-fstest.c: Don't include unused header file script.h.
9483 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
9485 (grub_fstest_SOURCES): Likewise.
9487 2008-02-05 Robert Millan <rmh@aybabtu.com>
9489 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
9490 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
9491 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
9492 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
9494 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
9495 (translation_table): Replace hardcoded values with macros
9496 provided by `<grub/term.h>'.
9498 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
9499 (keyboard_map): Correct/add a few values, with macros provided
9501 (keyboard_map_shift): Zero values that don't differ from their
9502 `keyboard_map' equivalents.
9503 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
9504 Discard the second scan code that is always sent by Caps lock.
9505 Only use `keyboard_map_shift' when it provides a non-zero value,
9506 otherwise fallback to `keyboard_map'.
9508 2008-02-04 Bean <bean123ch@gmail.com>
9510 * Makefile.in (enable_grub_fstest): New variable.
9512 * conf/common.rmk (grub_fstest_init.lst): New rule.
9513 (grub_fstest_init.h): Likewise.
9514 (grub_fstest_init.c): Likewise.
9515 (util/grub-fstest.c_DEPENDENCIES): New variable.
9516 (grub_fstest_SOURCES): Likewise.
9518 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
9520 * util/grub-fstest.c: New file.
9522 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
9524 Make grub-setup handle a separate root device.
9526 * util/i386/pc/grub-setup.c (setup): Always open the root device,
9527 so that the root device can be compared with the destination
9529 When embedding the core image, if the root and destination devices
9530 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
9532 When not embedding, set ROOT_DRIVE to 0xFF.
9534 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
9536 Add support for having a grub directory in a different drive. This
9537 is still only the data handling part.
9539 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
9540 (codestart): Save %dh in GRUB_ROOT_DRIVE.
9541 (grub_root_drive): New variable.
9543 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
9544 instead of GRUB_BOOT_DRIVE to construct a device name. Set
9545 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
9548 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
9550 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
9552 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
9554 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
9555 is bogus, because PXE booting does not specify any drive
9558 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
9559 am not sure if this is really correct.
9561 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
9562 is always identical to the boot drive when booting from a CD.
9564 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
9566 (root_drive): New variable.
9567 (real_start): Unconditionally set %dh to ROOT_DRIVE.
9568 (setup_sectors): Push %dx right after popping it, because %dh will
9570 (copy_buffer): Restore %dx.
9572 2008-02-03 Robert Millan <rmh@aybabtu.com>
9574 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
9575 use `cdboot.img' for cdrom images.
9577 2008-02-03 Robert Millan <rmh@aybabtu.com>
9579 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
9580 only setup gfxterm when `font' command has succeeded.
9582 2008-02-03 Robert Millan <rmh@aybabtu.com>
9584 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
9585 (grub_rescue_cmd_multiboot_loader)
9586 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
9588 2008-02-03 Pavel Roskin <proski@gnu.org>
9590 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
9591 %edx and %esi from stack only after grub_gate_a20() is called.
9592 grub_gate_a20() clobbers %edx.
9594 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
9596 * configure.ac (AC_INIT): Bumped to 1.96.
9598 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
9599 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
9600 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
9601 video/readers/png.c.
9603 2008-02-03 Bean <bean123ch@gmail.com>
9605 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
9606 (cdboot_img_SOURCES): New variable.
9607 (cdboot_img_ASFLAGS): New variable.
9608 (cdboot_img_LDFLAGS): New variable.
9610 * boot/i386/pc/cdboot.S: New file.
9612 * disk/i386/pc/biosdisk.c (cd_start): New variable.
9613 (cd_count): Likewise.
9614 (grub_biosdisk_get_drive): Add support for cd device.
9615 (grub_biosdisk_call_hook): Likewise.
9616 (grub_biosdisk_iterate): Likewise.
9617 (grub_biosdisk_open): Likewise.
9618 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
9619 (grub_biosdisk_rw): Support reading from cd device.
9620 (GRUB_MOD_INIT): Iterate cd devices.
9622 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
9623 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
9624 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
9626 * kern/i386/pc/init.c (make_install_device): Check for cd device.
9628 2008-02-02 Robert Millan <rmh@aybabtu.com>
9630 * commands/read.c: New file.
9631 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
9632 (read_mod_SOURCES): New variable.
9633 (read_mod_CFLAGS): Likewise.
9634 (read_mod_LDFLAGS): Likewise.
9636 2008-02-02 Robert Millan <rmh@aybabtu.com>
9638 * normal/main.c (grub_normal_execute): Check for `menu->size' when
9639 determining whether menu has to be displayed.
9641 2008-02-02 Marco Gerards <marco@gnu.org>
9643 * bus/pci.c: New file.
9645 * include/grub/pci.h: Likewise.
9647 * include/grub/i386/pc/pci.h: Likewise.
9649 * commands/lspci.c: Likewise.
9651 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
9653 (pci_mod_SOURCES): New variable.
9654 (pci_mod_CFLAGS): Likewise.
9655 (pci_mod_LDFLAGS): Likewise.
9656 (lspci_mod_SOURCES): Likewise.
9657 (lspci_mod_CFLAGS): Likewise.
9658 (lspci_mod_LDFLAGS): Likewise.
9660 2008-02-02 Bean <bean123ch@gmail.com>
9662 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
9663 (grub_ufs_get_file_block): Fix indirect block calculation problem.
9665 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
9666 (grub_xfs_btree_node): New structure.
9667 (grub_xfs_btree_root): New structure.
9668 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
9669 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
9670 (GRUB_XFS_EXTENT_BLOCK): Likewise.
9671 (GRUB_XFS_EXTENT_SIZE): Likewise.
9672 (grub_xfs_read_block): Support btree format type.
9673 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
9674 Use directory block as basic unit.
9676 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
9678 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
9679 __attribute__ ((__regparm__ (1))).
9681 2008-02-01 Robert Millan <rmh@aybabtu.com>
9683 Correct a mistake in previous commit.
9685 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
9687 (normal/command.c_DEPENDENCIES): New variable.
9689 2008-02-01 Robert Millan <rmh@aybabtu.com>
9691 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
9693 (normal/command.c_DEPENDENCIES): New variable.
9694 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
9695 * conf/i386-ieee1275.rmk: Likewise.
9696 * conf/i386-linuxbios.rmk: Likewise.
9697 * conf/i386-pc.rmk: Likewise.
9698 * conf/sparc64-ieee1275.rmk: Likewise.
9699 * conf/powerpc-ieee1275.rmk: Likewise.
9700 (grub_emu_SOURCES): Add `fs/fshelp.c'.
9702 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
9704 2008-02-01 Robert Millan <rmh@aybabtu.com>
9706 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
9707 call at beginning of function.
9709 2008-01-31 Pavel Roskin <proski@gnu.org>
9711 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
9712 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
9713 (grub_mkrescue_SOURCES): Likewise.
9714 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
9716 2008-01-30 Robert Millan <rmh@aybabtu.com>
9718 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
9719 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
9720 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
9721 (grub_probe_SOURCES): ... to here.
9723 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
9724 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
9725 * conf/i386-ieee1275.rmk: Likewise.
9726 * conf/i386-linuxbios.rmk: Likewise.
9727 * conf/powerpc-ieee1275.rmk: Likewise.
9729 2008-01-30 Tristan Gingold <gingold@free.fr>
9731 * kern/rescue.c: Silently accept empty lines.
9733 2008-01-29 Bean <bean123ch@gmail.com>
9735 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
9736 (real_code_2): Code cleanup and change comment style.
9737 (move_memory): Avoid using 32-bit address mode.
9739 2008-01-29 Bean <bean123ch@gmail.com>
9741 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
9742 (png_mod_SOURCES): New variable.
9743 (png_mod_CFLAGS): Likewise.
9744 (png_mod_LDFLAGS): Likewise.
9746 * video/readers/png.c: New file.
9748 2008-01-28 Robert Millan <rmh@aybabtu.com>
9750 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
9751 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
9752 `ifndef GRUB_MOD_GAP' hack.
9753 * util/elf/grub-mkimage.c (add_segments): Likewise.
9755 2008-01-27 Robert Millan <rmh@aybabtu.com>
9757 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
9758 `GRUB_MOD_GAP' for platforms in which it's not defined.
9759 * util/elf/grub-mkimage.c (add_segments): Likewise.
9761 2008-01-27 Robert Millan <rmh@aybabtu.com>
9763 Get grub-emu to build again (including parallel builds).
9765 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
9767 (util/grub-emu.c_DEPENDENCIES): ... this, ...
9768 (normal/execute.c_DEPENDENCIES): ... this, ...
9769 (grub-emu_DEPENDENCIES): ... and this.
9771 * conf/i386-efi.rmk: Likewise.
9772 * conf/i386-linuxbios.rmk: Likewise.
9773 * conf/i386-ieee1275.rmk: Likewise.
9774 * conf/powerpc-ieee1275.rmk: Likewise.
9775 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
9777 2008-01-27 Robert Millan <rmh@aybabtu.com>
9779 * NEWS: Add a few items.
9781 2008-01-27 Robert Millan <rmh@aybabtu.com>
9783 Fix parallel builds with grub-emu. Based on earlier commit for
9784 grub-probe and grub-setup.
9786 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9787 (util/grub-emu.c_DEPENDENCIES): ... this.
9788 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9789 (util/grub-emu.c_DEPENDENCIES): ... this.
9790 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9791 (util/grub-emu.c_DEPENDENCIES): ... this.
9792 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9793 (util/grub-emu.c_DEPENDENCIES): ... this.
9794 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
9795 (util/grub-emu.c_DEPENDENCIES): ... this.
9797 2008-01-27 Pavel Roskin <proski@gnu.org>
9799 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
9800 to create a gap between _end and the modules added to the image
9801 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
9802 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
9803 * util/elf/grub-mkimage.c (add_segments): Likewise.
9805 2008-01-26 Pavel Roskin <proski@gnu.org>
9807 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
9808 just return an error.
9810 2008-01-26 Bean <bean123ch@gmail.com>
9812 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
9813 (grub_reiserfs_get_item): Save offset of the next item.
9814 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
9816 2008-01-25 Robert Millan <rmh@aybabtu.com>
9818 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
9819 make all filesystem sources appear together (possibly fixing omissions
9821 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9822 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9823 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
9824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9826 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
9828 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
9829 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
9830 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
9831 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
9833 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
9834 (probe): Add a sanity check to make sure of our ability to read
9835 requested files when probing for filesystem type.
9837 * genmk.rb: Update copyright year (2007).
9839 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
9840 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
9841 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
9842 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
9843 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
9844 : Remove function prototypes.
9846 2008-01-25 Robert Millan <rmh@aybabtu.com>
9848 Revert my previous commits (based on wrong assumption of how grub_errno
9851 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
9852 * kern/file.c (grub_file_open): Likewise.
9854 2008-01-24 Pavel Roskin <proski@gnu.org>
9856 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
9857 that hang if GRUB tries to setup colors.
9858 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
9859 colors for firmwares that don't support it.
9860 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
9861 Recognize Open Hack'Ware, set flags to work around its
9864 2008-01-24 Robert Millan <rmh@aybabtu.com>
9866 * kern/file.c (grub_file_open): Do not account previous failures of
9867 unrelated functions when grub_errno is checked for.
9868 Reported by Oleg Strikov.
9870 2008-01-24 Bean <bean123ch@gmail.com>
9872 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
9873 (grub_ufs_sblock): New member volume name.
9874 (grub_ufs_find_file): Fix string copy bug.
9875 (grub_ufs_label): Implement this function properly.
9877 * fs/hfs.c (grub_hfs_cnid_type): New enum.
9878 (grub_hfs_iterate_records): Use the correct file number for extents
9879 and catalog file. Fix problem in next index calculation.
9880 (grub_hfs_find_node): Replace recursive function call with loop.
9881 (grub_hfs_iterate_dir): Replace recursive function call with loop.
9883 2008-01-23 Robert Millan <rmh@aybabtu.com>
9885 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
9886 `<grub/symbol.h>' and `<grub/multiboot.h>'.
9887 (grub_multiboot2_real_boot): New function prototype.
9889 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
9890 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
9892 * kern/i386/ieee1275/init.c (grub_os_area_addr)
9893 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
9895 2008-01-23 Robert Millan <rmh@aybabtu.com>
9897 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
9898 #ifdef'ed out grub_printf().
9900 2008-01-23 Robert Millan <rmh@aybabtu.com>
9902 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
9903 grub_dprintf calls, since they make "debug=all" mode unusable.
9904 (grub_console_checkkey): Likewise.
9906 2008-01-23 Robert Millan <rmh@aybabtu.com>
9908 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
9909 `term/i386/pc/at_keyboard.c'.
9910 (pkglib_MODULES): Add `serial.mod'.
9911 (serial_mod_SOURCES): New variable.
9912 (serial_mod_CFLAGS): Likewise.
9913 (serial_mod_LDFLAGS): Likewise.
9915 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
9916 `<grub/powerpc/ieee1275/console.h>'.
9917 (grub_keyboard_controller_init): New function prototype.
9918 (grub_console_checkkey): Likewise.
9919 (grub_console_getkey): Likewise.
9921 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
9924 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
9925 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
9927 2008-01-23 Robert Millan <rmh@aybabtu.com>
9929 * kern/i386/pc/init.c (make_install_device): When memdisk image is
9930 present, "(memdisk)/boot/grub" becomes the default prefix.
9932 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
9933 a memdisk tarball with all the modules. Add --overlay=DIR option that
9934 allows users to overlay additional files into the image.
9936 2008-01-23 Robert Millan <rmh@aybabtu.com>
9938 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
9939 and `machine/memory.h'.
9940 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
9941 (_multiboot_mod_SOURCES): New variable.
9942 (_multiboot_mod_CFLAGS): Likewise.
9943 (_multiboot_mod_LDFLAGS): Likewise.
9944 (multiboot_mod_SOURCES): Likewise.
9945 (multiboot_mod_CFLAGS): Likewise.
9946 (multiboot_mod_LDFLAGS): Likewise.
9948 * include/grub/i386/ieee1275/loader.h: New file.
9950 * include/grub/i386/ieee1275/machine.h: Likewise.
9952 * include/grub/i386/ieee1275/memory.h: Likewise.
9954 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
9955 variable declaration.
9956 (grub_os_area_size): Likewise.
9958 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
9959 (grub_lower_mem, grub_upper_mem): New variables.
9960 (grub_stop_floppy): New function (just to make
9961 grub_multiboot2_real_boot() happy).
9963 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
9964 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
9965 (grub_stop): New function.
9966 Include `"../realmode.S"' and `"../loader.S"'.
9968 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
9969 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
9971 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
9972 rely on grub_multiboot2_real_boot() for final boot.
9974 2008-01-22 Robert Millan <rmh@aybabtu.com>
9976 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
9977 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
9978 device that doesn't look like an SD card.
9979 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
9980 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
9981 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
9982 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
9985 2008-01-22 Robert Millan <rmh@aybabtu.com>
9987 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
9988 avoid claiming over our own code.
9990 2008-01-22 Bean <bean123ch@gmail.com>
9992 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
9993 (jpeg_mod_SOURCES): New variable.
9994 (jpeg_mod_CFLAGS): Likewise.
9995 (jpeg_mod_LDFLAGS): Likewise.
9997 * video/readers/jpeg.c : New file.
9999 2008-01-22 Bean <bean123ch@gmail.com>
10001 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
10002 there are no more items.
10004 2008-01-21 Robert Millan <rmh@aybabtu.com>
10006 * kern/mm.c (grub_mm_init_region): Improve debug message.
10008 2008-01-21 Robert Millan <rmh@aybabtu.com>
10010 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
10011 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
10013 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
10015 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
10016 Indicates start of upper memory.
10017 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
10018 (generate_image): Abort when image size is big enough to corrupt
10021 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
10022 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
10023 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
10024 instead of hardcoding 0xA0000.
10025 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
10026 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
10027 instead of hardcoding 0xA0000.
10029 2008-01-21 Robert Millan <rmh@aybabtu.com>
10031 * disk/memdisk.c (memdisk_size): New variable.
10032 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
10034 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
10035 image to dynamic memory.
10036 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
10037 `memdisk_size'. Free memdisk block.
10039 2008-01-21 Robert Millan <rmh@aybabtu.com>
10041 Fix detection of very small filesystems (like tar).
10043 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
10044 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
10045 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
10046 a problem with this disk).
10048 2008-01-21 Robert Millan <rmh@aybabtu.com>
10050 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
10051 on grub_biosdisk_rw_standard() error.
10053 2008-01-21 Robert Millan <rmh@aybabtu.com>
10055 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
10057 * kern/elf.c: Likewise.
10058 * kern/ieee1275/ieee1275.c: Likewise.
10059 * kern/powerpc/ieee1275/openfw.c: Likewise.
10060 * term/ieee1275/ofconsole.c: Likewise.
10062 2008-01-21 Robert Millan <rmh@aybabtu.com>
10064 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
10066 * include/grub/kernel.h (grub_arch_memdisk_addr)
10067 (grub_arch_memdisk_size): Moved from here ...
10069 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
10070 (grub_arch_memdisk_size): ... to here.
10072 2008-01-21 Robert Millan <rmh@aybabtu.com>
10074 Mostly based on bugfix from Bean.
10076 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
10077 attribute with hook() parameter.
10078 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
10080 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
10081 attribute with hook() parameter.
10082 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
10085 2008-01-21 Robert Millan <rmh@aybabtu.com>
10087 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
10088 (pkglib_MODULES): Add `memdisk.mod'.
10089 (memdisk_mod_SOURCES): New variable.
10090 (memdisk_mod_CFLAGS): Likewise.
10091 (memdisk_mod_LDFLAGS): Likewise.
10093 * disk/memdisk.c: New file.
10095 * include/grub/disk.h (grub_disk_dev_id): Add
10096 `GRUB_DISK_DEVICE_MEMDISK_ID'.
10098 * include/grub/i386/pc/kernel.h
10099 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
10100 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
10101 (grub_kernel_image_size): New variable declaration.
10102 (grub_total_module_size): Likewise.
10103 (grub_memdisk_image_size): Likewise.
10105 * include/grub/i386/pc/memory.h
10106 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
10108 * include/grub/kernel.h: Include `<grub/symbol.h>'.
10109 (grub_arch_memdisk_addr): New variable declaration.
10110 (grub_arch_memdisk_size): Likewise.
10112 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
10113 (grub_arch_memdisk_size): Likewise.
10115 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
10116 (codestart): Replace hardcoded `0x100000' with
10117 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
10119 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
10120 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
10121 not NULL, append the contents of the file it refers to, at the end of
10122 the compressed kernel image. Initialize `grub_memdisk_image_size'
10123 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
10124 (options): Add "memdisk"|'m' option.
10125 (main): Parse --memdisk|-m option, and pass user-provided path as
10126 parameter to generate_image().
10128 2008-01-20 Robert Millan <rmh@aybabtu.com>
10130 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
10131 grub_dprintf() calls from here ...
10132 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
10134 2008-01-20 Robert Millan <rmh@aybabtu.com>
10136 Fix detection of "real mode" when /options/real-mode? doesn't exist.
10138 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
10140 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
10141 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
10142 `GRUB_IEEE1275_FLAG_REAL_MODE'.
10143 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
10145 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
10146 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
10148 2008-01-19 Robert Millan <rmh@aybabtu.com>
10150 Get rid of confusing function (superseded by
10151 `grub_ieee1275_get_integer_property')
10152 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
10154 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
10156 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
10157 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
10158 in native endianness from grub_ieee1275_get_integer_property().
10160 2008-01-19 Robert Millan <rmh@aybabtu.com>
10162 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
10163 command after "shut-down", since implementations differ on which
10164 the command for halt is.
10166 2008-01-19 Robert Millan <rmh@aybabtu.com>
10168 * include/grub/i386/linuxbios/console.h: Add header protection.
10169 (grub_keyboard_controller_init): New function prototype.
10170 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
10171 (KEYBOARD_COMMAND_READ): Likewise.
10172 (KEYBOARD_COMMAND_WRITE): Likewise.
10173 (KEYBOARD_SCANCODE_SET1): Likewise.
10174 (grub_keyboard_controller_write): New function.
10175 (grub_keyboard_controller_read): Likewise.
10176 (grub_keyboard_controller_init): Likewise.
10178 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
10179 (grub_console_init): On coreboot/LinuxBIOS, call
10180 grub_keyboard_controller_init().
10182 2008-01-19 Robert Millan <rmh@aybabtu.com>
10184 PowerPC changes provided by Pavel Roskin.
10186 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
10187 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
10188 don't rely on cmain() doing it.
10189 * kern/i386/ieee1275/startup.S (_start): Store %eax in
10190 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
10192 2008-01-16 Robert Millan <rmh@aybabtu.com>
10194 * include/grub/i386/linuxbios/memory.h
10195 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
10196 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
10197 receive `table_header' as argument. Instead, probe for it in the
10198 known memory ranges where it can be present.
10199 (grub_available_iterate): Do not pass a fixed `table_header' address
10200 to grub_linuxbios_table_iterate().
10202 2008-01-15 Robert Millan <rmh@aybabtu.com>
10204 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
10205 * conf/i386-ieee1275.rmk: New file.
10206 * include/grub/i386/ieee1275/console.h: Likewise.
10207 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
10208 * include/grub/i386/ieee1275/kernel.h: Likewise.
10209 * include/grub/i386/ieee1275/time.h: Likewise.
10210 * kern/i386/ieee1275/init.c: Likewise.
10211 * kern/i386/ieee1275/startup.S: Likewise.
10213 2008-01-15 Robert Millan <rmh@aybabtu.com>
10215 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
10216 when pointers are 32-bit (but still do set it to one when they are
10219 2008-01-15 Robert Millan <rmh@aybabtu.com>
10221 * include/grub/ieee1275/ieee1275.h
10222 (grub_ieee1275_get_integer_property): New function prototype.
10224 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
10225 (grub_ieee1275_get_integer_property): New function. Wraps around
10226 grub_ieee1275_get_property() to handle endianness.
10228 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
10229 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
10231 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
10232 (grub_map): Likewise.
10233 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
10235 2008-01-15 Bean <bean123ch@gmail.com>
10237 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
10238 (grub_script_execute_cmdline): Reset grub_errno.
10240 * normal/main.c (read_config_file): Reset grub_errno.
10242 * normal/parse.y (script_init): New.
10243 (script): Move function and menuentry here.
10245 (command): Add delimiter at the end of command.
10246 (commands): Adjust to match the new command.
10247 (commandblock): Remove grub_script_lexer_record_start.
10248 (menuentry): Add grub_script_lexer_record_start, use the new commands.
10249 (if): Use the new commands.
10251 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
10253 2008-01-15 Robert Millan <rmh@aybabtu.com>
10255 * normal/menu.c (run_menu): Move timeout message from here ...
10256 (print_timeout): ... to here.
10257 (run_menu): Use print_timeout() once during initial draw to print
10258 the whole message, and again in every clock tick to update only
10259 the number of seconds.
10261 2008-01-15 Robert Millan <rmh@aybabtu.com>
10263 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
10264 actual size of `available' from grub_ieee1275_get_property(), and
10265 restrict parsing to that bound.
10267 2008-01-15 Christian Franke <franke@computer.org>
10269 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
10270 (argp_program_version): Remove variable.
10271 (argp_program_bug_address): Likewise.
10272 (options): Convert from struct argp_option to struct option.
10273 (struct arguments): Remove.
10274 (parse_opt): Remove.
10275 (usage): New function.
10276 (main): Replace struct args members by simple variables.
10277 Replace argp_parse() by getopt_long().
10278 Add switch to evaluate options.
10279 Add missing "(...)" around root_dev in prefix string.
10281 2008-01-14 Robert Millan <rmh@aybabtu.com>
10283 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
10284 for grub_ieee1275_exit(), in order to improve portability.
10286 2008-01-14 Robert Millan <rmh@aybabtu.com>
10288 * util/grub.d/10_linux.in (prefix): Define.
10289 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
10291 2008-01-13 Pavel Roskin <proski@gnu.org>
10293 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
10294 grub_errno if no errors have been detected.
10296 2008-01-12 Robert Millan <rmh@aybabtu.com>
10298 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
10299 (grub_util_get_dev_abstraction): New function prototype.
10301 * util/getroot.c: Include `<grub/util/getroot.h>'
10302 (grub_util_get_grub_dev): Move detection of abstraction type to ...
10303 (grub_util_get_dev_abstraction): ... here (new function).
10305 * util/grub-probe.c: Convert PRINT_* to an enum. Add
10306 `PRINT_ABSTRACTION'.
10307 (probe): Probe for abstraction type when requested.
10308 (main): Understand `--target=abstraction'.
10310 * util/i386/efi/grub-install.in: Add abstraction module to core
10311 image when it is found to be necessary.
10312 * util/i386/pc/grub-install.in: Likewise.
10313 * util/powerpc/ieee1275/grub-install.in: Likewise.
10315 * util/update-grub_lib.in (font_path): Return system path without
10316 converting to GRUB path.
10317 * util/update-grub.in: Convert system path returned by font_path()
10318 to a GRUB path. Use `grub-probe -t abstraction' to determine what
10319 abstraction module is needed for loading fonts (if any). Export
10320 that as `GRUB_PRELOAD_MODULES'.
10321 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
10324 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
10326 Remove some unused code from reiserfs.
10328 * fs/reiserfs.c (struct grub_reiserfs_key)
10329 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
10330 (struct grub_reiserfs_node_body): Removed.
10331 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
10333 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
10335 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
10337 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
10339 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
10341 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
10343 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
10344 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
10345 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
10347 2008-01-10 Robert Millan <rmh@aybabtu.com>
10349 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
10350 Determines if a file is garbage left by packaging systems, etc.
10351 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
10352 for processing /etc/grub.d scripts.
10353 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
10354 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
10355 as a condition for processing Linux images.
10357 2008-01-10 Pavel Roskin <proski@gnu.org>
10359 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
10360 to compile reiserfs.c on PowerPC.
10362 2008-01-10 Robert Millan <rmh@aybabtu.com>
10364 * kern/device.c (grub_device_iterate): Do not abort device iteration
10365 when one of the devices cannot be opened.
10366 * kern/disk.c (grub_disk_open): Do not account previous failures of
10367 unrelated functions when grub_errno is checked for.
10369 2008-01-08 Robert Millan <rmh@aybabtu.com>
10371 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
10372 `! grub_linux_is_bzimage', change order of address comparison to make
10373 it more intuitive, and improve "too big zImage" error message.
10375 2008-01-08 Robert Millan <rmh@aybabtu.com>
10377 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
10378 `$(update-grub_DATA)'.
10379 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
10382 2008-01-07 Robert Millan <rmh@aybabtu.com>
10384 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
10385 which instruction is modified by grub-setup during installation
10386 (since it wasn't obvious by only looking at this file).
10388 2008-01-07 Robert Millan <rmh@aybabtu.com>
10390 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
10391 listing actual TODO items.
10393 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
10395 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
10397 (grub_reiserfs_get_key_offset): Likewise.
10398 (grub_reiserfs_set_key_offset): Likewise.
10399 (grub_reiserfs_set_key_type): Likewise.
10400 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
10402 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
10403 better to remove the bitfield version completely.
10405 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
10407 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
10408 allocated from the heap, due to the fshelp implementation.
10409 (grub_reiserfs_dir): Free NODE, due to the same reason.
10411 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
10413 Mostly from Vincent Pelletier:
10415 * fs/reiserfs.c: New file.
10417 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
10418 (reiserfs_mod_SOURCES): New variable.
10419 (reiserfs_mod_CFLAGS): Likewise.
10420 (reiserfs_mod_LDFLAGS): Likewise.
10422 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
10423 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
10424 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
10427 2008-01-06 Robert Millan <rmh@aybabtu.com>
10429 * normal/color.c: Remove `<grub/env.h>'.
10431 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
10433 * include/grub/normal.h: Include <grub/env.h>.
10435 2008-01-05 Robert Millan <rmh@aybabtu.com>
10437 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
10438 usage example with `(hd0,1)'.
10439 Reported by Samuel Thibault.
10441 2008-01-05 Robert Millan <rmh@aybabtu.com>
10443 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
10444 (grub_linux_boot_zimage): Rename to ...
10445 (grub_linux_boot): ... this.
10446 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
10447 (grub_linux_boot_zimage): Conditionalize zImage copy.
10449 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
10450 (grub_linux_boot_bzimage): Remove prototype.
10451 (grub_linux_boot_zimage): Rename to ...
10452 (grub_linux_boot): ... this.
10454 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
10455 (grub_linux_boot): Remove function.
10457 2008-01-05 Robert Millan <rmh@aybabtu.com>
10459 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
10460 (grub_env_write_color_highlight): Likewise.
10461 (grub_wait_after_message): Likewise.
10463 * normal/color.c: New file.
10465 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
10466 (normal_mod_DEPENDENCIES): Likewise.
10468 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
10469 (normal_mod_DEPENDENCIES): Likewise.
10471 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
10472 (normal_mod_DEPENDENCIES): Likewise.
10474 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
10475 (normal_mod_DEPENDENCIES): Likewise.
10477 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
10478 for waiting after a message is printed.
10479 * normal/main.c (read_config_file): Likewise.
10480 (grub_normal_init): Register grub_env_write_color_normal() and
10481 grub_env_write_color_highlight() hooks. Mark `color_normal' and
10482 `color_highlight' variables as global.
10484 * normal/menu.c (grub_wait_after_message): New function.
10485 (grub_color_menu_normal): New variable. Replaces ...
10486 (GRUB_COLOR_MENU_NORMAL): ... this macro.
10487 (grub_color_menu_highlight): New variable. Replaces ...
10488 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
10489 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
10490 `GRUB_TERM_COLOR_STANDARD'.
10491 (print_message): Use `grub_setcolorstate' to reload colors. Rename
10492 `normal_code' and `highlight_code' to `old_color_normal' and
10493 `old_color_highlight', respectively.
10494 (grub_menu_init_page): Update colors when drawing the menu, based on
10495 `menu_color_normal' and `menu_color_highlight' variables.
10496 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
10497 a message is printed.
10499 2008-01-05 Robert Millan <rmh@aybabtu.com>
10501 * kern/env.c (grub_env_context_open): Propagate hooks for global
10502 variables to new context.
10504 * kern/main.c (grub_set_root_dev): Export `root' variable.
10506 2008-01-05 Robert Millan <rmh@aybabtu.com>
10508 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
10509 discs unconditionally, since udev and others have options to provide
10512 2008-01-05 Robert Millan <rmh@aybabtu.com>
10514 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
10516 2008-01-04 Christian Franke <franke@computer.org>
10518 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
10521 2008-01-03 Pavel Roskin <proski@gnu.org>
10523 * kern/i386/linuxbios/init.c: Put "void" to all function
10524 declarations with no arguments.
10525 * kern/powerpc/ieee1275/init.c: Likewise.
10526 * term/i386/pc/at_keyboard.c: Likewise.
10527 * term/i386/pc/vga_text.c: Likewise.
10528 * util/grub-mkdevicemap.c: Likewise.
10530 2008-01-02 Robert Millan <rmh@aybabtu.com>
10532 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
10533 message when loaded image is out of bounds.
10534 (grub_multiboot_load_elf64): Likewise.
10536 2008-01-02 Pavel Roskin <proski@gnu.org>
10538 * util/grub.d/10_linux.in: Try version without ".old" when
10539 looking for initrd. It's better to use initrd from the newer
10540 kernel of the same version than no initrd at all.
10542 2008-01-01 Robert Millan <rmh@aybabtu.com>
10544 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
10546 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
10548 * include/grub/video.h: Added grub_video_unmap_color and
10549 grub_video_get_active_render_target.
10550 (grub_video_adapter): Added unmap_color and get_active_render_target.
10552 * video/video.c: Added grub_video_unmap_color and
10553 grub_video_get_active_render_target.
10554 (grub_video_get_info): Changed method to accept NULL pointer as an
10555 argument to allow detection of active video adapter.
10557 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
10558 grub_video_vbe_unmap_color_int.
10559 Added grub_video_vbe_unmap_color and
10560 grub_video_vbe_get_active_render_target.
10561 (grub_video_vbe_adapter): Added unmap_color and
10562 get_active_render_target.
10564 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
10565 with grub_video_vbe_unmap_color_int.
10567 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
10568 (DEFAULT_NORMAL_COLOR): Likewise.
10569 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
10570 (DEFAULT_FG_COLOR): Removed.
10571 (DEFAULT_BG_COLOR): Likewise.
10572 (DEFAULT_CURSOR_COLOR): Changed value.
10573 (grub_virtual_screen): Added standard_color_setting,
10574 normal_color_setting, highlight_color_setting and term_color.
10575 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
10576 (bitmap_width): Added.
10577 (bitmap_height): Likewise.
10578 (bitmap): Likewise.
10579 (set_term_color): Likewise.
10580 (grub_virtual_screen_setup): Changed to use new terminal coloring
10582 (grub_gfxterm_init): Added init for bitmap.
10583 (grub_gfxterm_fini): Added destroy for bitmap.
10584 (redraw_screen_rect): Updated to use background bitmap and new
10586 (scroll_up): Added optimization for case when there is no bitmap.
10587 (grub_gfxterm_cls): Fixed to use correct background color.
10588 (grub_virtual_screen_setcolorstate): Changed to use new terminal
10590 (grub_virtual_screen_setcolor): Likewise.
10591 (grub_virtual_screen_getcolor): Added.
10592 (grub_gfxterm_background_image_cmd): Likewise.
10593 (grub_video_term): Added setcolor and getcolor.
10594 (MOD_INIT): Added registration of background_image command.
10595 (MOD_TERM): Added unregistration for background_image command.
10597 2007-12-30 Pavel Roskin <proski@gnu.org>
10599 * loader/multiboot_loader.c: Fix multiboot command
10600 unregistration. Fix all typos in the word "multiboot".
10602 2007-12-29 Pavel Roskin <proski@gnu.org>
10604 * util/grub.d/10_linux.in: Refactor search for initrd. Add
10605 support for initrd names used in Fedora.
10607 2007-12-26 Bean <bean123ch@gmail.com>
10609 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
10610 (cpio_mod_SOURCES): New variable.
10611 (cpio_mod_CFLAGS): Likewise.
10612 (cpio_mod_LDFLAGS): Likewise.
10614 * fs/cpio.c: New file.
10616 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
10618 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10620 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10622 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10624 2007-12-25 Robert Millan <rmh@aybabtu.com>
10626 * include/grub/term.h (struct grub_term): Add `getcolor' function.
10627 (grub_getcolor): New function.
10629 * kern/term.c (grub_getcolor): New function.
10630 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
10631 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
10632 (print_entry): Set normal and highlight colors to
10633 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
10634 respectively, before printing and restore them to old
10636 (grub_menu_init_page): Likewise. Fill an additional colored space
10637 that would otherwise be left blank.
10639 * term/efi/console.c (grub_console_getcolor): New function.
10640 (struct grub_console_term.getcolor): New variable.
10641 * term/i386/pc/console.c (grub_console_getcolor): New function.
10642 (struct grub_console_term.getcolor): New variable.
10643 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
10644 (struct grub_console_term.getcolor): New variable.
10646 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
10647 (struct grub_console_term.setcolor): Remove variable.
10648 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
10649 (struct grub_console_term.setcolor): Remove variable.
10650 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
10651 (struct grub_console_term.setcolor): Remove variable.
10652 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
10653 (struct grub_console_term.setcolor): Remove variable.
10655 2007-12-25 Robert Millan <rmh@aybabtu.com>
10657 * configure.ac: Search for possible unifont.hex locations, and
10658 define UNIFONT_HEX if found.
10660 * Makefile.in (UNIFONT_HEX): Define variable.
10661 (DATA): Rename to ...
10662 (PKGLIB): ... this. Update all users.
10663 (PKGDATA): New variable.
10664 (pkgdata_IMAGES): Rename to ...
10665 (pkglib_IMAGES): ... this. Update all users.
10666 (pkgdata_MODULES): Rename to ...
10667 (pkglib_MODULES): ... this. Update all users.
10668 (pkgdata_PROGRAMS): Rename to ...
10669 (pkglib_PROGRAMS): ... this. Update all users.
10670 (pkgdata_DATA): Rename to ...
10671 (pkglib_DATA): ... this. Update all users.
10672 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
10673 (unicode.pff, ascii.pff): New rules.
10674 (all-local): Add `$(PKGDATA)' dependency.
10675 (install-local): Process `$(PKGDATA)'.
10677 * util/update-grub_lib.in (font_path): Search for *.pff files in
10678 a few more locations, including `${pkgdata}'.
10680 2007-12-23 Robert Millan <rmh@aybabtu.com>
10682 Patch from Bean <bean123ch@gmail.com>:
10683 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
10686 2007-12-21 Bean <bean123ch@gmail.com>
10688 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
10689 (ntfscomp_mod_SOURCES): New variable.
10690 (ntfscomp_mod_CFLAGS): Likewise.
10691 (ntfscomp_mod_LDFLAGS): Likewise.
10693 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
10694 (grub_probe_SOURCES): Likewise.
10695 (grub_emu_SOURCES): Likewise.
10697 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
10698 (grub_emu_SOURCES): Likewise.
10700 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
10701 (grub_emu_SOURCES): Likewise.
10703 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
10704 (grub_emu_SOURCES): Likewise.
10706 * fs/ntfs.c (grub_ntfscomp_func): New variable.
10707 (read_run_list): Renamed to grub_ntfs_read_run_list.
10708 (decomp_nextvcn): Moved to ntfscomp.c.
10709 (decomp_getch): Likewise.
10710 (decomp_get16): Likewise.
10711 (decomp_block): Likewise.
10712 (read_block): Likewise.
10713 (read_data): Partially moved to ntfscomp.c.
10714 (fixup): Change unsigned to grub_uint16_t.
10715 (read_mft): Change unsigned long to grub_uint32_t.
10716 (read_attr): Likewise.
10717 (read_data): Likewise.
10718 (read_run_data): Likewise.
10719 (read_run_list): Likewise.
10720 (read_mft): Likewise.
10722 * fs/ntfscomp.c: New file.
10724 * include/grub/ntfs.h: New file.
10726 2007-12-16 Robert Millan <rmh@aybabtu.com>
10728 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
10729 IDE disk check, since Linux is known to support 20 IDE disks.
10730 Reported by Colin Watson.
10732 2007-12-15 Bean <bean123ch@gmail.com>
10734 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
10735 (lnxboot_img_SOURCES): New variable.
10736 (lnxboot_img_ASFLAGS): Likewise.
10737 (lnxboot_img_LDFLAGS): Likewise.
10739 * boot/i386/pc/lnxboot.S: New file.
10741 2007-11-24 Pavel Roskin <proski@gnu.org>
10743 * configure.ac: Test if '--build-id=none' is supported by the
10744 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
10745 objcopy to generate incorrect binary files (binutils
10746 2.17.50.0.18-1 as shipped by Fedora 8).
10747 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
10748 linking, so that build ID doesn't break the test.
10750 2007-11-24 Pavel Roskin <proski@gnu.org>
10752 * include/grub/i386/time.h: use "void" in the argument list
10753 of grub_cpu_idle().
10754 * include/grub/powerpc/time.h: Likewise.
10755 * include/grub/sparc64/time.h: Likewise.
10757 2007-11-18 Christian Franke <franke@computer.org>
10759 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
10760 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
10761 This fixes the problem that function keys did not work in grub-emu.
10763 2007-11-18 Christian Franke <franke@computer.org>
10765 * disk/host.c (grub_host_open): Remove attribute unused from
10766 name parameter. Add check for "host". This fixes the problem
10767 that grub-emu does not find partitions.
10769 2007-11-18 Christian Franke <franke@computer.org>
10771 * util/hostfs.c (is_dir): New function.
10772 (grub_hostfs_dir): Handle missing dirent.d_type case.
10773 (grub_hostfs_read): Add missing fseek().
10774 (grub_hostfs_label): Clear label pointer. This fixes a crash
10775 of grub-emu on "ls (host)".
10777 2007-11-18 Christian Franke <franke@computer.org>
10779 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
10780 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
10781 to 64 bit boundary by default.
10783 2007-11-18 Bean <bean123ch@gmail.com>
10785 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
10786 (hexdump_mod_SOURCES): New variable.
10787 (hexdump_mod_CFLAGS): Likewise.
10788 (hexdump_mod_LDFLAGS): Likewise.
10790 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
10792 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
10794 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
10796 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
10798 * include/grub/hexdump.h: New file.
10800 * commands/hexdump.c: New file.
10802 2007-11-10 Robert Millan <rmh@aybabtu.com>
10804 * commands/i386/pc/play.c (beep_off): Switch order of arguments
10805 in grub_outb() calls.
10806 (beep_on): Likewise.
10808 2007-11-10 Christian Franke <franke@computer.org>
10810 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
10811 (grub_menu_run): Likewise.
10813 2007-11-10 Robert Millan <rmh@aybabtu.com>
10815 * include/grub/i386/efi/machine.h: New file.
10816 * include/grub/i386/linuxbios/machine.h: Likewise.
10817 * include/grub/i386/pc/machine.h: Likewise.
10818 * include/grub/powerpc/ieee1275/machine.h: Likewise.
10819 * include/grub/sparc64/ieee1275/machine.h: Likewise.
10821 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
10822 (serial_hw_io_addr): New variable.
10823 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
10824 instead of `(unsigned short *) 0x400'.
10826 2007-11-10 Bean <bean123ch@gmail.com>
10828 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
10830 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
10832 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
10833 (vga_mod_SOURCES): Added.
10834 (vga_mod_CFLAGS): Likewise.
10835 (vga_mod_LDFLAGS): Likewise.
10837 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
10839 (set_map_mask): Likewise.
10840 (set_read_map): Likewise.
10841 (set_read_address): Likewise.
10842 (vga_font): Removed variable.
10843 (get_vga_glyph): Removed function.
10844 (invalidate_char): Likewise.
10845 (write_char): Changed to use grub_font_get_glyph() for font
10847 (grub_vga_putchar): Likewise.
10848 (grub_vga_getcharwidth): Likewise.
10850 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
10852 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
10854 (pxeboot_img_LDFLAGS): Likewise.
10855 (diskboot_img_LDFLAGS): Likewise.
10856 (kernel_img_LDFLAGS): Likewise.
10858 2007-11-06 Robert Millan <rmh@aybabtu.com>
10860 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
10861 in grub_outb() calls.
10862 (serial_hw_init): Likewise.
10864 2007-11-05 Robert Millan <rmh@aybabtu.com>
10866 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
10867 spaces. Skip non-regular files.
10869 2007-11-05 Robert Millan <rmh@aybabtu.com>
10871 * kern/disk.c (grub_disk_firmware_fini)
10872 (grub_disk_firmware_is_tainted): New variables.
10874 * include/grub/disk.h (grub_disk_firmware_fini)
10875 (grub_disk_firmware_is_tainted): Likewise.
10877 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
10878 (grub_disk_biosdisk_fini): ... to here.
10879 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
10880 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
10881 is set. Register grub_disk_biosdisk_fini() in
10882 `grub_disk_firmware_fini'.
10884 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
10885 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
10886 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
10887 to finish existing firmware disk interface.
10889 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
10890 (ata_mod_SOURCES): New variable.
10891 (ata_mod_CFLAGS): Likewise.
10892 (ata_mod_LDFLAGS): Likewise.
10894 2007-11-05 Robert Millan <rmh@aybabtu.com>
10896 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
10897 (grub_ata_wait): Reimplement using grub_millisleep().
10899 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
10900 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
10902 2007-11-03 Marco Gerards <marco@gnu.org>
10904 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
10905 (CRTC_ADDR_PORT): New macro.
10906 (CRTC_DATA_PORT): Likewise.
10907 (CRTC_CURSOR): Likewise.
10908 (CRTC_CURSOR_ADDR_HIGH): Likewise.
10909 (CRTC_CURSOR_ADDR_LOW): Likewise.
10910 (update_cursor): New function.
10911 (grub_console_real_putchar): Call `update_cursor'.
10912 (grub_console_gotoxy): Likewise.
10913 (grub_console_cls): Set the default color when clearing the
10915 (grub_console_setcursor): Implemented.
10917 2007-11-03 Marco Gerards <marco@gnu.org>
10919 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
10921 (grub_ata_pio_write): Likewise.
10923 (grub_atapi_identify): Wait after issuing an ATA command.
10924 (grub_atapi_packet): Likewise.
10925 (grub_ata_identify): Likewise.
10926 (grub_ata_readwrite): Likewise.
10928 2007-11-03 Marco Gerards <marco@gnu.org>
10930 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
10931 (grub_ata_pio_write): Likewise.
10932 (grub_ata_readwrite): Use `grub_error', instead of
10933 returning `grub_errno'.
10935 2007-11-03 Marco Gerards <marco@gnu.org>
10937 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
10938 grub_ata_pio_write once for every single sector, instead of for
10941 2007-10-31 Robert Millan <rmh@aybabtu.com>
10943 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
10945 * conf/i386-linuxbios.rmk: New file.
10947 * kern/i386/pc/hardware.c: Likewise.
10948 * term/i386/pc/at_keyboard.c: Likewise.
10949 * term/i386/pc/vga_text.c: Likewise.
10951 * include/grub/i386/linuxbios/boot.h: Likewise.
10952 * include/grub/i386/linuxbios/console.h: Likewise.
10953 * include/grub/i386/linuxbios/init.h: Likewise.
10954 * include/grub/i386/linuxbios/kernel.h: Likewise.
10955 * include/grub/i386/linuxbios/loader.h: Likewise.
10956 * include/grub/i386/linuxbios/memory.h: Likewise.
10957 * include/grub/i386/linuxbios/serial.h: Likewise.
10958 * include/grub/i386/linuxbios/time.h: Likewise.
10960 * kern/i386/linuxbios/init.c: Likewise.
10961 * kern/i386/linuxbios/startup.S: Likewise.
10962 * kern/i386/linuxbios/table.c: Likewise.
10964 2007-10-31 Marco Gerards <marco@gnu.org>
10966 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
10967 (ata_mod_SOURCES): New variable.
10968 (ata_mod_CFLAGS): Likewise.
10969 (ata_mod_LDFLAGS): Likewise.
10971 * disk/ata.c: New file.
10973 * include/grub/disk.h (grub_disk_dev_id): Add
10974 `GRUB_DISK_DEV_ATA_ID'.
10976 2007-10-31 Robert Millan <rmh@aybabtu.com>
10978 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
10979 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
10981 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
10982 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
10984 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
10987 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
10989 2007-10-27 Robert Millan <rmh@aybabtu.com>
10991 * include/grub/types.h (ULONG_MAX): Define macro.
10993 2007-10-22 Robert Millan <rmh@aybabtu.com>
10995 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
10997 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
10999 2007-10-22 Robert Millan <rmh@aybabtu.com>
11001 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
11002 (pkgdata_MODULES): Add `biosdisk.mod'.
11003 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
11006 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
11007 (grub_biosdisk_init): Replace with ...
11008 (GRUB_MOD_INIT(biosdisk)): ... this.
11009 (grub_biosdisk_fini): Replace with ...
11010 (GRUB_MOD_FINI(biosdisk)): ... this.
11012 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
11013 (grub_machine_init): Remove call to grub_biosdisk_init().
11014 (grub_machine_fini): Remove call to grub_machine_fini().
11016 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
11018 2007-10-22 Robert Millan <rmh@aybabtu.com>
11020 * include/grub/time.h: New file.
11021 * include/grub/i386/time.h: Likewise.
11022 * include/grub/powerpc/time.h: Likewise.
11023 * include/grub/sparc64/time.h: Likewise.
11025 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
11027 (KERNEL_MACHINE_TIME_HEADER): ... this.
11028 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
11030 (KERNEL_MACHINE_TIME_HEADER): ... this.
11031 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
11033 (KERNEL_MACHINE_TIME_HEADER): ... this.
11035 * kern/i386/efi/init.c: Include `<grub/time.h>'.
11036 (grub_millisleep): New function.
11037 * kern/i386/pc/init.c: Include `<grub/time.h>'.
11038 (grub_millisleep): New function.
11039 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
11040 Remove `grub/machine/time.h' include.
11041 (grub_millisleep): New function.
11042 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
11043 Remove `grub/machine/time.h' include.
11044 (grub_millisleep): New function.
11046 * include/grub/misc.h (grub_div_roundup): New function.
11048 * kern/misc.c: Include `<grub/time.h>'.
11049 (grub_millisleep_generic): New function.
11051 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
11053 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
11055 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
11056 `machine/time.h'. Add `time.h'.
11057 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
11059 2007-10-21 Robert Millan <rmh@aybabtu.com>
11061 * include/grub/misc.h (grub_max): New function.
11063 2007-10-21 Robert Millan <rmh@aybabtu.com>
11065 * util/misc.c (grub_util_info): Call fflush() before returning.
11067 2007-10-20 Robert Millan <rmh@aybabtu.com>
11069 * genmk.rb (Image): Copy `extra_flags' from here ...
11070 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
11072 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
11073 to `argc' and `args' arguments.
11075 2007-10-17 Robert Millan <rmh@aybabtu.com>
11077 * kern/i386/loader.S: New file.
11079 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
11080 * kern/i386/loader.S (grub_linux_prot_size)... to here.
11081 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
11082 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
11083 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
11084 * kern/i386/loader.S (grub_linux_real_addr)... to here.
11085 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
11086 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
11087 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
11088 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
11089 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
11090 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
11091 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
11092 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
11094 * kern/i386/realmode.S: New file.
11096 * kern/i386/pc/startup.S (protstack): Moved from here ...
11097 * kern/i386/realmode.S (protstack)... to here.
11098 * kern/i386/pc/startup.S (gdt): Moved from here ...
11099 * kern/i386/realmode.S (gdt)... to here.
11100 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
11101 * kern/i386/realmode.S (prot_to_real)... to here.
11103 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
11104 `kern/i386/realmode.S'.
11106 2007-10-17 Robert Millan <rmh@aybabtu.com>
11108 * include/grub/i386/loader.h: New file.
11110 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
11111 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
11112 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
11113 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
11114 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
11115 * include/grub/i386/loader.h (grub_linux_prot_size)
11116 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
11117 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
11118 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
11119 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
11121 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
11123 2007-10-15 Robert Millan <rmh@aybabtu.com>
11125 * normal/misc.c (grub_normal_print_device_info): Do not probe for
11126 filesystem when dev->disk is unset.
11127 Do probe for filesystem even when dev->disk->has_partitions is set.
11128 In case a filesystem is found, always report it.
11129 In case it isn't, if dev->disk->has_partitions is set, report that
11130 a partition table was found instead of reporting that no filesystem
11131 could be identified.
11133 2007-10-12 Robert Millan <rmh@aybabtu.com>
11135 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
11136 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
11138 * include/grub/types.h (grub_host_to_target16): New macro.
11139 (grub_host_to_target32): Likewise.
11140 (grub_host_to_target64): Likewise.
11141 (grub_target_to_host16): Likewise.
11142 (grub_target_to_host32): Likewise.
11143 (grub_target_to_host64): Likewise.
11145 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
11146 Renamed from to ...
11147 (GRUB_MOD_ALIGN): ...this. Update all users.
11149 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
11150 grub_host_to_target32.
11151 Replace grub_be_to_cpu32 with grub_target_to_host32.
11152 (load_modules): Likewise.
11153 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
11154 Replace grub_be_to_cpu32 with grub_target_to_host32.
11155 Replace grub_cpu_to_be16 with grub_host_to_target16.
11156 Replace grub_cpu_to_be32 grub_host_to_target32.
11158 2007-10-12 Robert Millan <rmh@aybabtu.com>
11160 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
11161 * util/elf/grub-mkimage.c: ... here.
11163 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
11164 `util/powerpc/ieee1275/grub-mkimage.c'.
11166 2007-10-07 Robert Millan <rmh@aybabtu.com>
11168 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
11169 and make it easier to figure out.
11170 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
11171 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
11172 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
11173 leave us with less than HEAP_MIN_SIZE total heap.
11174 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
11176 2007-10-03 Robert Millan <rmh@aybabtu.com>
11178 * include/grub/i386/io.h: New file.
11179 * commands/i386/pc/play.c (inb): Removed.
11181 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
11183 * term/i386/pc/serial.c (inb): Removed.
11185 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
11187 * term/i386/pc/vga.c (inb): Removed.
11189 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
11192 2007-10-02 Robert Millan <rmh@aybabtu.com>
11194 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
11195 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11196 Reported by Marcin Kurek.
11198 2007-09-07 Robert Millan <rmh@aybabtu.com>
11200 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
11201 SmartFirmware version updates (as released by Sven Luther), and avoid
11202 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
11203 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
11206 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
11208 From Hitoshi Ozeki:
11209 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
11210 when merging two regions.
11212 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
11214 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
11215 * normal/completion.c (grub_normal_do_completion): Likewise.
11216 Reported by Hitoshi Ozeki.
11218 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
11220 Do not use devices at boot in chainloading.
11222 * loader/i386/pc/chainloader.c (boot_drive): New variable.
11223 (boot_part_addr): Likewise.
11224 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
11225 with BOOT_DRIVE and BOOT_PART_ADDR.
11226 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
11227 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
11229 2007-08-29 Robert Millan <rmh@aybabtu.com>
11231 Patch from Simon Peter <dn.tlp@gmx.net>:
11232 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
11233 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
11234 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
11235 util/i386/pc/grub-setup.c_DEPENDENCIES.
11236 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
11237 util/grub-probe.c_DEPENDENCIES.
11238 * conf/powerpc-ieee1275.rmk: Likewise.
11240 2007-08-28 Robert Millan <rmh@aybabtu.com>
11242 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
11243 to tell grub-mkdevicemap how to name devices.
11244 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
11247 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
11248 util/i386/get_disk_name.c.
11249 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
11250 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
11251 util/ieee1275/get_disk_name.c.
11253 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
11255 * DISTLIST: Add util/i386/get_disk_name.c and
11256 util/ieee1275/get_disk_name.c.
11258 * util/grub-mkdevicemap.c: Replace device naming logic with
11259 grub_util_get_disk_name() calls.
11261 2007-08-20 Robert Millan <rmh@aybabtu.com>
11263 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
11264 (so that it works for both plural and singular quantities).
11266 2007-08-05 Robert Millan <rmh@aybabtu.com>
11268 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
11269 so that [xz] isn't taken into account when determining order.
11271 2007-08-02 Marco Gerards <marco@gnu.org>
11273 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
11274 `include/multiboot2.h', `include/grub/elfload.h',
11275 `include/multiboot.h', `include/grub/multiboot.h',
11276 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
11277 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
11278 `kern/elf.c', `loader/multiboot_loader.c',
11279 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
11280 `loader/i386/pc/multiboot2.c',
11281 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
11282 `util/i386/pc/grub-mkrescue.in'. Remove
11283 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
11284 `include/grub/i386/pc/util/biosdisk.h' and
11285 `include/grub/powerpc/ieee1275/multiboot.h'.
11287 2007-08-02 Bean <bean123ch@gmail.com>
11289 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
11290 (ntfs_mod_SOURCES): New variable.
11291 (ntfs_mod_CFLAGS): Likewise.
11292 (ntfs_mod_LDFLAGS): Likewise.
11294 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
11295 (grub_probe_SOURCES): Likewise.
11296 (grub_emu_SOURCES): Likewise.
11298 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
11299 (grub_emu_SOURCES): Likewise.
11301 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
11302 (grub_emu_SOURCES): Likewise.
11304 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
11306 * fs/ntfs.c: New file.
11308 2007-08-02 Bean <bean123ch@gmail.com>
11310 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
11312 * file.h (grub_file): Likewise.
11314 * fshelp.h (grub_fshelp_read_file): Likewise.
11316 * util/i386/pc/grub-setup.c (setup): Likewise.
11317 (save_first_sector): Likewise.
11318 (save_blocklists): Likewise.
11320 * fs/affs.c (grub_affs_read_file): Likewise.
11322 * fs/ext2.c (grub_ext2_read_file): Likewise.
11324 * fs/fat.c (grub_fat_read_data): Likewise.
11326 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
11328 * fs/hfs.c (grub_hfs_read_file): Likewise.
11330 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
11332 * fs/jfs.c (grub_jfs_read_file): Likewise.
11334 * fs/minix.c (grub_minix_read_file): Likewise.
11336 * fs/sfs.c (grub_sfs_read_file): Likewise.
11338 * fs/ufs.c (grub_ufs_read_file): Likewise.
11340 * fs/xfs.c (grub_xfs_read_file): Likewise.
11342 * command/blocklist.c (read_blocklist): Likewise.
11343 (print_blocklist): Likewise.
11345 2007-08-02 Marco Gerards <marco@gnu.org>
11347 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
11350 * disk/host.c: New file.
11352 * util/hostfs.c: Likewise.
11354 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
11355 return `GRUB_ERR_BAD_FS'.
11356 * fs/sfs.c (grub_sfs_mount): Likewise.
11357 * fs/xfs.c (grub_xfs_mount): Likewise.
11359 * include/grub/disk.h (enum grub_disk_dev_id): Add
11360 `GRUB_DISK_DEVICE_HOST_ID'.
11362 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
11364 2007-07-24 Jerone Young <jerone@gmail.com>
11366 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
11367 modules for compilation.
11368 * conf/powerpc-ieee1275.rmk: Likewise.
11370 * include/multiboot.h: Move multiboot definitions to one file. Rename
11371 many definitions to not get grub specific.
11372 * include/multiboot2.h: Create header with multiboot 2 definitions.
11373 * include/grub/multiboot.h: Header for grub specific function
11374 prototypes and definitions.
11375 * include/grub/multiboot2.h: Likewise.
11376 * include/grub/multiboot_loader.h: Likewise.
11377 * include/grub/i386/pc/multiboot.h: Removed.
11378 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
11380 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
11381 and 2 to allow for one multiboot and module commands.
11382 * loader/multiboot2.c: Add multiboot2 functionality.
11383 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
11384 and definition names.
11385 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
11387 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
11388 ieee1275 specific multiboot2 code.
11390 * kern/i386/pc/startup.S: Change headers and definition names for
11391 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
11393 2007-07-22 Robert Millan <rmh@aybabtu.com>
11395 * geninitheader.sh: Process file specified in first parameter rather
11396 than hardcoding grub_modules_init.lst.
11397 * geninit.sh: Likewise. Also, construct header name dynamically rather
11398 than hardcoding grub_modules_init.h.
11400 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
11401 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
11402 grub_probe_init.[ch] and grub_setup_init.[ch].
11404 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
11405 grub_modules_init.h with grub_emu_init.h.
11406 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
11407 grub_probe_init.[ch] files.
11408 * conf/i386-efi.rmk: Likewise.
11409 * conf/i386-pc.rmk: Likewise.
11410 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
11411 grub_setup_init.[ch] files.
11413 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
11414 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
11415 to initialize modules rather than a list of hardcoded functions.
11416 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
11417 grub_init_all() to initialize modules rather than a list of hardcoded
11420 2007-07-22 Robert Millan <rmh@aybabtu.com>
11422 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
11423 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
11425 2007-07-22 Robert Millan <rmh@aybabtu.com>
11427 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
11428 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
11429 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
11430 flag when running on SmartFirmware.
11431 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
11432 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
11435 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11436 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
11437 rather than decreasing it.
11439 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
11440 there's not enough space to do it, fail in the same way as when it
11441 can't be done because there are no partitions.
11443 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
11444 when nvsetenv failed.
11446 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
11448 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
11449 because this rule is automatically generated.
11450 (grub-mkrescue): Removed for the same reason as above.
11452 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
11454 Migrate to GNU General Public License Version 3.
11456 * COPYING: Replaced with the plain text version of GPLv3.
11458 * config.guess: Updated from gnulib.
11459 * config.sub: Likewise.
11461 * geninit.sh: Output a GPLv3 copyright notice.
11462 * geninitheader.sh: Likewise.
11463 * genmodsrc.sh: Likewise.
11464 * gensymlist.sh.in: Likewise.
11466 * boot/i386/pc/boot.S: Upgraded to GPLv3.
11467 * boot/i386/pc/diskboot.S: Likewise.
11468 * boot/i386/pc/pxeboot.S: Likewise.
11469 * commands/blocklist.c: Likewise.
11470 * commands/boot.c: Likewise.
11471 * commands/cat.c: Likewise.
11472 * commands/cmp.c: Likewise.
11473 * commands/configfile.c: Likewise.
11474 * commands/echo.c: Likewise.
11475 * commands/help.c: Likewise.
11476 * commands/ls.c: Likewise.
11477 * commands/search.c: Likewise.
11478 * commands/terminal.c: Likewise.
11479 * commands/test.c: Likewise.
11480 * commands/videotest.c: Likewise.
11481 * commands/i386/cpuid.c: Likewise.
11482 * commands/i386/pc/halt.c: Likewise.
11483 * commands/i386/pc/play.c: Likewise.
11484 * commands/i386/pc/reboot.c: Likewise.
11485 * commands/i386/pc/vbeinfo.c: Likewise.
11486 * commands/i386/pc/vbetest.c: Likewise.
11487 * commands/ieee1275/halt.c: Likewise.
11488 * commands/ieee1275/reboot.c: Likewise.
11489 * commands/ieee1275/suspend.c: Likewise.
11490 * disk/loopback.c: Likewise.
11491 * disk/lvm.c: Likewise.
11492 * disk/raid.c: Likewise.
11493 * disk/efi/efidisk.c: Likewise.
11494 * disk/i386/pc/biosdisk.c: Likewise.
11495 * disk/ieee1275/ofdisk.c: Likewise.
11496 * font/manager.c: Likewise.
11497 * fs/affs.c: Likewise.
11498 * fs/ext2.c: Likewise.
11499 * fs/fat.c: Likewise.
11500 * fs/fshelp.c: Likewise.
11501 * fs/hfs.c: Likewise.
11502 * fs/hfsplus.c: Likewise.
11503 * fs/iso9660.c: Likewise.
11504 * fs/jfs.c: Likewise.
11505 * fs/minix.c: Likewise.
11506 * fs/sfs.c: Likewise.
11507 * fs/ufs.c: Likewise.
11508 * fs/xfs.c: Likewise.
11509 * hello/hello.c: Likewise.
11510 * include/grub/acorn_filecore.h: Likewise.
11511 * include/grub/arg.h: Likewise.
11512 * include/grub/bitmap.h: Likewise.
11513 * include/grub/boot.h: Likewise.
11514 * include/grub/cache.h: Likewise.
11515 * include/grub/device.h: Likewise.
11516 * include/grub/disk.h: Likewise.
11517 * include/grub/dl.h: Likewise.
11518 * include/grub/elfload.h: Likewise.
11519 * include/grub/env.h: Likewise.
11520 * include/grub/err.h: Likewise.
11521 * include/grub/file.h: Likewise.
11522 * include/grub/font.h: Likewise.
11523 * include/grub/fs.h: Likewise.
11524 * include/grub/fshelp.h: Likewise.
11525 * include/grub/gzio.h: Likewise.
11526 * include/grub/hfs.h: Likewise.
11527 * include/grub/kernel.h: Likewise.
11528 * include/grub/loader.h: Likewise.
11529 * include/grub/lvm.h: Likewise.
11530 * include/grub/misc.h: Likewise.
11531 * include/grub/mm.h: Likewise.
11532 * include/grub/net.h: Likewise.
11533 * include/grub/normal.h: Likewise.
11534 * include/grub/parser.h: Likewise.
11535 * include/grub/partition.h: Likewise.
11536 * include/grub/pc_partition.h: Likewise.
11537 * include/grub/raid.h: Likewise.
11538 * include/grub/rescue.h: Likewise.
11539 * include/grub/script.h: Likewise.
11540 * include/grub/setjmp.h: Likewise.
11541 * include/grub/symbol.h: Likewise.
11542 * include/grub/term.h: Likewise.
11543 * include/grub/terminfo.h: Likewise.
11544 * include/grub/tparm.h: Likewise.
11545 * include/grub/types.h: Likewise.
11546 * include/grub/video.h: Likewise.
11547 * include/grub/efi/api.h: Likewise.
11548 * include/grub/efi/chainloader.h: Likewise.
11549 * include/grub/efi/console.h: Likewise.
11550 * include/grub/efi/console_control.h: Likewise.
11551 * include/grub/efi/disk.h: Likewise.
11552 * include/grub/efi/efi.h: Likewise.
11553 * include/grub/efi/pe32.h: Likewise.
11554 * include/grub/efi/time.h: Likewise.
11555 * include/grub/i386/linux.h: Likewise.
11556 * include/grub/i386/setjmp.h: Likewise.
11557 * include/grub/i386/types.h: Likewise.
11558 * include/grub/i386/efi/kernel.h: Likewise.
11559 * include/grub/i386/efi/loader.h: Likewise.
11560 * include/grub/i386/efi/time.h: Likewise.
11561 * include/grub/i386/pc/biosdisk.h: Likewise.
11562 * include/grub/i386/pc/boot.h: Likewise.
11563 * include/grub/i386/pc/chainloader.h: Likewise.
11564 * include/grub/i386/pc/console.h: Likewise.
11565 * include/grub/i386/pc/init.h: Likewise.
11566 * include/grub/i386/pc/kernel.h: Likewise.
11567 * include/grub/i386/pc/loader.h: Likewise.
11568 * include/grub/i386/pc/memory.h: Likewise.
11569 * include/grub/i386/pc/multiboot.h: Likewise.
11570 * include/grub/i386/pc/serial.h: Likewise.
11571 * include/grub/i386/pc/time.h: Likewise.
11572 * include/grub/i386/pc/vbe.h: Likewise.
11573 * include/grub/i386/pc/vbeblit.h: Likewise.
11574 * include/grub/i386/pc/vbefill.h: Likewise.
11575 * include/grub/i386/pc/vbeutil.h: Likewise.
11576 * include/grub/i386/pc/vga.h: Likewise.
11577 * include/grub/ieee1275/ieee1275.h: Likewise.
11578 * include/grub/ieee1275/ofdisk.h: Likewise.
11579 * include/grub/powerpc/libgcc.h: Likewise.
11580 * include/grub/powerpc/setjmp.h: Likewise.
11581 * include/grub/powerpc/types.h: Likewise.
11582 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
11583 * include/grub/powerpc/ieee1275/console.h: Likewise.
11584 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
11585 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
11586 * include/grub/powerpc/ieee1275/loader.h: Likewise.
11587 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
11588 * include/grub/powerpc/ieee1275/time.h: Likewise.
11589 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
11590 * include/grub/sparc64/libgcc.h: Likewise.
11591 * include/grub/sparc64/setjmp.h: Likewise.
11592 * include/grub/sparc64/types.h: Likewise.
11593 * include/grub/sparc64/ieee1275/console.h: Likewise.
11594 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
11595 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
11596 * include/grub/sparc64/ieee1275/time.h: Likewise.
11597 * include/grub/util/biosdisk.h: Likewise.
11598 * include/grub/util/getroot.h: Likewise.
11599 * include/grub/util/lvm.h: Likewise.
11600 * include/grub/util/misc.h: Likewise.
11601 * include/grub/util/raid.h: Likewise.
11602 * include/grub/util/resolve.h: Likewise.
11603 * io/gzio.c: Likewise.
11604 * kern/device.c: Likewise.
11605 * kern/disk.c: Likewise.
11606 * kern/dl.c: Likewise.
11607 * kern/elf.c: Likewise.
11608 * kern/env.c: Likewise.
11609 * kern/err.c: Likewise.
11610 * kern/file.c: Likewise.
11611 * kern/fs.c: Likewise.
11612 * kern/loader.c: Likewise.
11613 * kern/main.c: Likewise.
11614 * kern/misc.c: Likewise.
11615 * kern/mm.c: Likewise.
11616 * kern/parser.c: Likewise.
11617 * kern/partition.c: Likewise.
11618 * kern/rescue.c: Likewise.
11619 * kern/term.c: Likewise.
11620 * kern/efi/efi.c: Likewise.
11621 * kern/efi/init.c: Likewise.
11622 * kern/efi/mm.c: Likewise.
11623 * kern/i386/dl.c: Likewise.
11624 * kern/i386/efi/init.c: Likewise.
11625 * kern/i386/efi/startup.S: Likewise.
11626 * kern/i386/pc/init.c: Likewise.
11627 * kern/i386/pc/lzo1x.S: Likewise.
11628 * kern/i386/pc/startup.S: Likewise.
11629 * kern/ieee1275/ieee1275.c: Likewise.
11630 * kern/powerpc/cache.S: Likewise.
11631 * kern/powerpc/dl.c: Likewise.
11632 * kern/powerpc/ieee1275/cmain.c: Likewise.
11633 * kern/powerpc/ieee1275/crt0.S: Likewise.
11634 * kern/powerpc/ieee1275/init.c: Likewise.
11635 * kern/powerpc/ieee1275/openfw.c: Likewise.
11636 * kern/sparc64/cache.S: Likewise.
11637 * kern/sparc64/dl.c: Likewise.
11638 * kern/sparc64/ieee1275/init.c: Likewise.
11639 * kern/sparc64/ieee1275/openfw.c: Likewise.
11640 * loader/efi/chainloader.c: Likewise.
11641 * loader/efi/chainloader_normal.c: Likewise.
11642 * loader/i386/efi/linux.c: Likewise.
11643 * loader/i386/efi/linux_normal.c: Likewise.
11644 * loader/i386/pc/chainloader.c: Likewise.
11645 * loader/i386/pc/chainloader_normal.c: Likewise.
11646 * loader/i386/pc/linux.c: Likewise.
11647 * loader/i386/pc/linux_normal.c: Likewise.
11648 * loader/i386/pc/multiboot.c: Likewise.
11649 * loader/i386/pc/multiboot_normal.c: Likewise.
11650 * loader/powerpc/ieee1275/linux.c: Likewise.
11651 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
11652 * normal/arg.c: Likewise.
11653 * normal/cmdline.c: Likewise.
11654 * normal/command.c: Likewise.
11655 * normal/completion.c: Likewise.
11656 * normal/execute.c: Likewise.
11657 * normal/function.c: Likewise.
11658 * normal/lexer.c: Likewise.
11659 * normal/main.c: Likewise.
11660 * normal/menu.c: Likewise.
11661 * normal/menu_entry.c: Likewise.
11662 * normal/misc.c: Likewise.
11663 * normal/parser.y: Likewise.
11664 * normal/script.c: Likewise.
11665 * normal/i386/setjmp.S: Likewise.
11666 * normal/powerpc/setjmp.S: Likewise.
11667 * normal/sparc64/setjmp.S: Likewise.
11668 * partmap/acorn.c: Likewise.
11669 * partmap/amiga.c: Likewise.
11670 * partmap/apple.c: Likewise.
11671 * partmap/gpt.c: Likewise.
11672 * partmap/pc.c: Likewise.
11673 * partmap/sun.c: Likewise.
11674 * term/gfxterm.c: Likewise.
11675 * term/terminfo.c: Likewise.
11676 * term/efi/console.c: Likewise.
11677 * term/i386/pc/console.c: Likewise.
11678 * term/i386/pc/serial.c: Likewise.
11679 * term/i386/pc/vesafb.c: Likewise.
11680 * term/i386/pc/vga.c: Likewise.
11681 * term/ieee1275/ofconsole.c: Likewise.
11682 * util/biosdisk.c: Likewise.
11683 * util/console.c: Likewise.
11684 * util/genmoddep.c: Likewise.
11685 * util/getroot.c: Likewise.
11686 * util/grub-emu.c: Likewise.
11687 * util/grub-mkdevicemap.c: Likewise.
11688 * util/grub-probe.c: Likewise.
11689 * util/lvm.c: Likewise.
11690 * util/misc.c: Likewise.
11691 * util/raid.c: Likewise.
11692 * util/resolve.c: Likewise.
11693 * util/update-grub.in: Likewise.
11694 * util/update-grub_lib.in: Likewise.
11695 * util/grub.d/00_header.in: Likewise.
11696 * util/grub.d/10_hurd.in: Likewise.
11697 * util/grub.d/10_linux.in: Likewise.
11698 * util/i386/efi/grub-install.in: Likewise.
11699 * util/i386/efi/grub-mkimage.c: Likewise.
11700 * util/i386/pc/grub-install.in: Likewise.
11701 * util/i386/pc/grub-mkimage.c: Likewise.
11702 * util/i386/pc/grub-mkrescue.in: Likewise.
11703 * util/i386/pc/grub-setup.c: Likewise.
11704 * util/i386/pc/misc.c: Likewise.
11705 * util/powerpc/ieee1275/grub-install.in: Likewise.
11706 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
11707 * util/powerpc/ieee1275/misc.c: Likewise.
11708 * video/bitmap.c: Likewise.
11709 * video/video.c: Likewise.
11710 * video/i386/pc/vbe.c: Likewise.
11711 * video/i386/pc/vbeblit.c: Likewise.
11712 * video/i386/pc/vbefill.c: Likewise.
11713 * video/i386/pc/vbeutil.c: Likewise.
11714 * video/readers/tga.c: Likewise.
11716 2007-07-02 Robert Millan <rmh@aybabtu.com>
11718 * conf/i386-efi.rmk: Replace obsolete reference to
11719 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
11720 with util/getroot.c.
11721 * conf/powerpc-ieee1275.rmk: Likewise.
11722 * conf/sparc64-ieee1275.rmk: Likewise.
11724 * util/grub-emu.c (main): Fix unchecked pointer handling.
11726 2007-07-02 Robert Millan <rmh@aybabtu.com>
11728 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
11729 invocation to fail, in order to support partition-less media.
11731 * util/i386/pc/grub-install.in: Likewise.
11733 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
11734 which fs or partmap modules are needed (akin to its sister scripts).
11736 Also use grub-probe to get rid of unportable /proc/mounts check.
11738 Print the same informational message that the other scripts do, before
11741 2007-06-23 Robert Millan <rmh@aybabtu.com>
11743 * util/update-grub_lib.in (font_path): New function. Determine whether
11744 a font file can be found and, if so, echo the GRUB path to it.
11746 * util/update-grub.in: Handle multiple terminals depending on user
11747 input, platform availability and font file presence. Propagate
11748 variables of our findings to /etc/grub.d/ children.
11750 * util/grub.d/00_header.in: Handle multiple terminals, based on
11751 environment setup by update-grub.
11753 2007-06-23 Robert Millan <rmh@aybabtu.com>
11755 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
11757 2007-06-21 Robert Millan <rmh@aybabtu.com>
11759 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
11760 indicate end of data section in kernel image.
11761 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
11762 GRUB_KERNEL_MACHINE_DATA_END.
11764 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
11766 * kern/i386/efi/startup.S: Likewise.
11768 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
11769 during image generation. Implement --prefix option to override this
11771 * util/i386/efi/grub-mkimage.c: Likewise.
11773 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
11774 code to make path relative to its root into a separate function.
11776 * util/i386/pc/grub-install.in: Use newly provided
11777 make_system_path_relative_to_its_root() to convert ${grubdir}, then
11778 pass the result to grub-install --prefix.
11780 2007-06-13 Robert Millan <rmh@aybabtu.com>
11782 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
11783 DEFAULT_DEVICE_MAP.
11784 * util/grub-emu.c: Use above definitions from misc.h instead of
11786 * util/grub-mkdevicemap.c: Likewise.
11787 * util/i386/pc/grub-setup.c: Likewise.
11788 * util/grub-probe.c: Likewise.
11789 (probe): Abort with grub_util_error() when either
11790 grub_guess_root_device or grub_util_get_grub_dev fails.
11792 2007-06-12 Robert Millan <rmh@aybabtu.com>
11794 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
11795 "pager" assignment.
11796 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
11798 * util/grub-probe.c (probe): Likewise for "drive_name".
11800 2007-06-11 Robert Millan <rmh@aybabtu.com>
11802 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
11803 not just the cdrom one.
11805 2007-06-11 Robert Millan <rmh@aybabtu.com>
11807 * util/i386/pc/grub-mkrescue.in: Add "set -e".
11808 Add --pkglibdir=DIR option to override pkglibdir.
11809 Mention --image-type=TYPE in help output.
11810 Fix --grub-mkimage (it was a no-op).
11811 Abort gracefully when no parameter is given.
11813 2007-06-11 Robert Millan <rmh@aybabtu.com>
11815 * util/i386/pc/grub-mkrescue.in: New file.
11816 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
11817 * Makefile.in: Handle bin_SCRIPTS.
11819 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
11821 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
11822 list of video modes.
11824 2007-06-06 Robert Millan <rmh@aybabtu.com>
11826 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
11827 file doesn't exist, or if it is in a filesystem grub can't read.
11829 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
11830 not abort if GRUB_DRIVE could not be defined. Rearrange generated
11831 header comment to fit in 80 columns when the variables are resolved.
11833 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
11834 could be identified by update-grub. Remove redundant check for
11835 unifont.pff existence (since convert_system_path_to_grub_path now
11838 2007-06-04 Robert Millan <rmh@aybabtu.com>
11840 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
11842 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
11844 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
11846 2007-06-04 Robert Millan <rmh@aybabtu.com>
11848 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
11850 * include/grub/partition.h: Declare grub_apple_partition_map_init and
11851 grub_apple_partition_map_fini.
11854 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
11855 to access >2 TiB disks).
11857 Print disk->total_sectors with %llu instead of %lu, since this
11858 variable is always 64-bit (prevents wrong disk size from being displayed
11859 on either >2 TiB disk or big-endian CPU).
11861 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
11862 into a generic case that supports all (sane) partition maps.
11864 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
11867 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
11868 and grub_apple_partition_map_fini() after that.
11870 2007-06-01 Robert Millan <rmh@aybabtu.com>
11872 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
11874 * util/grub.d/00_header.in: Only enable gfxterm when
11875 convert_system_path_to_grub_path() succeeds.
11877 2007-05-20 Robert Millan <rmh@aybabtu.com>
11879 * util/update-grub_lib.in: New file.
11880 * DISTLIST: Add update-grub_lib.in.
11881 * conf/common.rmk: Generate update-grub_lib and install it in
11883 * Makefile.in: Add install routine for $(lib_DATA).
11885 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
11886 function provided by update-grub_lib to support arbitrary paths of
11888 * util/update-grub.in: Use convert_system_path_to_grub_path() to
11889 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
11891 2007-05-19 Robert Millan <rmh@aybabtu.com>
11893 * commands/i386/cpuid.c: New module.
11894 * DISTLIST: Add it.
11895 * conf/i386-efi.rmk: Enable cpuid.mod.
11896 * conf/i386-pc.rmk: Likewise.
11898 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
11900 * kern/disk.c (grub_disk_read): Check return value of
11903 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
11905 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
11907 * disk/raid.c (grub_raid_open): Likewise.
11909 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
11911 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
11912 stack instead of on the heap.
11914 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
11915 before doing a read on it.
11917 * configure.ac: Only use -fno-stack-protector for the target
11920 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
11922 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
11923 __attribute_ ((unused)) to mode_type argument.
11925 * util/getroot.c (grub_guess_root_device): Fix #endif.
11927 * kern/misc.c (memcmp): Fix prototype.
11929 * include/grub/partition.h [GRUB_UTIL]
11930 (grub_gpt_partition_map_init): Add prototype.
11931 (grub_gpt_partition_map_fini): Likewise.
11933 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
11934 at the right place.
11936 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
11937 (grub_fat_read_data): Likewise.
11938 (grub_fat_find_dir): Likewise.
11940 * font/manager.c (find_glyph): Make table a const.
11941 (grub_font_get_glyph): Remove bitmap from if statement.
11943 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
11945 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
11946 code, first search for device in /dev/mapper, then in /dev.
11947 (grub_util_get_grub_dev): New function.
11948 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
11950 * util/grub-probe.c (probe): Remove check for RAID, call
11951 grub_util_get_grub_dev() instead of
11952 grub_util_biosdisk_get_grub_dev().
11953 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
11954 grub_util_biosdisk_get_grub_dev().
11955 * util/i386/pc/grub-setup.c (main): Likewise.
11957 2007-05-16 Robert Millan <rmh@aybabtu.com>
11959 * DISTLIST: Update for the latest changes.
11960 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
11961 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
11962 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
11963 grub/util/biosdisk.h.
11964 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
11965 grub/util/biosdisk.h.
11967 2007-05-16 Robert Millan <rmh@aybabtu.com>
11969 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
11971 2007-05-16 Robert Millan <rmh@aybabtu.com>
11973 * util/i386/efi/grub-install.in: New.
11974 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
11975 newly added grub-install.
11976 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
11978 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
11979 grub/util/biosdisk.h.
11980 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
11981 grub/util/biosdisk.h.
11983 2007-05-16 Robert Millan <rmh@aybabtu.com>
11985 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
11986 * include/grub/util/biosdisk.h: ... here.
11987 * util/i386/pc/biosdisk.c: Moved to ...
11988 * util/biosdisk.c: ... here.
11989 * util/i386/pc/getroot.c: Moved to ...
11990 * util/getroot.c: ... here.
11991 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
11992 * util/grub-mkdevicemap.c: ... here.
11993 * util/i386/pc/grub-probe.c: Moved to ...
11994 * util/grub-probe.c: ... here.
11996 2007-05-15 Robert Millan <rmh@aybabtu.com>
11998 * util/update-grub.in: Remove duplicated line in grub.cfg header
12001 2007-05-13 Robert Millan <rmh@aybabtu.com>
12003 * util/update-grub.in: Fix a few assumptions about the devices holding
12004 /, /boot and /boot/grub being the same.
12005 * util/grub.d/00_header.in: Likewise.
12006 * util/grub.d/10_hurd.in: Likewise.
12007 * util/grub.d/10_linux.in: Likewise.
12009 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
12010 patterns. Use that to define the `.old' suffix as older than `'.
12012 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
12014 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
12015 the grub.cfg header message.
12017 2007-05-11 Robert Millan <rmh@aybabtu.com>
12019 * util/update-grub.in: Create device.map if it doesn't already exist,
12020 before attempting to run grub-probe.
12021 Check for grub-probe and grub-mkdevicemap with the same code
12022 grub-install is using.
12025 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
12027 * Makefile.in: Add the datarootdir autoconf variable.
12029 2007-05-09 Robert Millan <rmh@aybabtu.com>
12031 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
12032 fail gracefully if dev->disk->partition == NULL.
12034 2007-05-07 Robert Millan <rmh@aybabtu.com>
12036 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
12037 determine partition map module.
12038 * util/i386/pc/grub-install.in: Use this feature to decide which
12039 partition module to load, instead of hardcoding pc and gpt.
12041 2007-05-07 Robert Millan <rmh@aybabtu.com>
12043 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
12044 source directory differs from build directory.
12046 2007-05-05 Robert Millan <rmh@aybabtu.com>
12048 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
12051 2007-05-05 Robert Millan <rmh@aybabtu.com>
12053 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
12055 2007-05-05 Robert Millan <rmh@aybabtu.com>
12057 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
12058 command-line arguments via ${GRUB_CMDLINE_LINUX}.
12060 2007-05-05 Robert Millan <rmh@aybabtu.com>
12062 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
12063 (grub_probe_SOURCES): Likewise.
12064 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
12065 GPT and initialize dos_part and bsd_part accordingly.
12066 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
12068 (main): Activate gpt module for use during partition identification,
12069 and deactivate it afterwards.
12070 * util/i386/pc/grub-install.in: Add gpt module to core.img.
12071 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
12072 partition identification, and deactivate it afterwards.
12074 2007-05-05 Robert Millan <rmh@aybabtu.com>
12076 * term/i386/pc/console.c (grub_console_fini): Call
12077 grub_term_set_current() before grub_term_unregister().
12079 2007-05-04 Robert Millan <rmh@aybabtu.com>
12081 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
12082 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
12083 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
12084 and update-grub_DATA.
12085 * conf/common.rmk: Build and install update-grub components.
12086 * conf/common.mk: Regenerate.
12087 * util/update-grub.in: New. Core of update-grub.
12088 * util/grub.d/00_header.in: New. Generates grub.cfg header.
12089 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
12090 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
12091 * util/grub.d/README: New. Document grub.d directory layout.
12093 2007-05-01 Robert Millan <rmh@aybabtu.com>
12095 * util/grub-emu.c: Move initialization functions
12096 grub_util_biosdisk_init() and grub_init_all() before
12097 grub_util_biosdisk_get_grub_dev(), which relies on them.
12099 2007-04-19 Robert Millan <rmh@aybabtu.com>
12101 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
12104 2007-04-18 Jerone Young <jerone@gmail.com>
12106 * kernel/elf.c: Add missing parenthesis for conditional statement
12109 2007-04-10 Jerone Young <jerone@gmail.com>
12111 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
12112 continue on and look for device node with real device name.
12114 2007-04-10 Jerone Young <jerone@gmail.com>
12116 * configure.ac: Add argument for autoconf to use transformation
12118 * Makefile.in: Add autoconf package transformation code.
12119 * util/i386/pc/grub-install.in: Likewise.
12120 * util/powerpc/ieee1275/grub-install.in: Likewise.
12122 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
12124 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
12125 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
12126 (EXT2_REVISION): Likewise.
12127 (EXT2_INODE_SIZE): Likewise.
12128 (struct grub_ext2_block_group): Added a missing member
12130 (grub_ext2_read_inode): Divide by the inode size in a superblock
12131 instead of 128 to obtain INODES_PER_BLOCK.
12132 Use the macro EXT2_INODE_SIZE instead of directly using
12133 SBLOCK->INODE_SIZE.
12135 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
12137 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
12138 superblock instead of the structure size to compute an
12139 offset. This fixes the problem that GRUB could not read a
12140 filesystem when inode size is different from 128-byte.
12142 2007-03-05 Marco Gerards <marco@gnu.org>
12144 * normal/main.c (read_config_file): When "menu" is not set, create
12145 an initial context.
12147 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
12149 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
12150 (HEAP_LIMIT): New macro.
12151 (grub_claim_heap): Claim memory up to `heaplimit'.
12153 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
12155 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
12156 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
12157 (_start): Likewise.
12158 (grub_arch_modules_addr): Return address after `_end'.
12159 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
12160 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
12161 (add_segments): Calculate `_end' from phdr size and location.
12162 (ALIGN_UP): Moved to ...
12163 * include/grub/misc.h: here.
12164 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
12166 (GRUB_IEEE1275_MODULE_BASE): Removed.
12168 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
12170 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
12173 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
12175 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
12177 (grub_elf64_load_hook_t): Likewise.
12178 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
12181 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
12183 * kern/mm.c: Update copyright.
12184 (grub_mm_debug): Correct syntax error.
12185 (grub_mm_dump_free): New function.
12186 (grub_debug_free): Call `grub_free'.
12187 * include/grub/mm.h: Update copyright.
12188 (grub_mm_dump_free): Add declaration.
12190 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
12192 * include/grub/ieee1275/ieee1275.h: Update copyright.
12193 * kern/powerpc/ieee1275/init.c: Likewise.
12194 * kern/powerpc/ieee1275/openfw.c: Likewise.
12196 * loader/powerpc/ieee1275/linux.c: Likewise.
12197 * include/grub/elfload.h: Likewise.
12198 * kern/elf.c: Likewise.
12199 (grub_elf32_load): Pass `base' and `size' parameters. Update all
12201 (grub_elf64_load): Likewise.
12202 (grub_elf32_load_segment): Move to a nested function.
12203 (grub_elf64_load_segment): Likewise.
12205 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
12207 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
12209 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
12210 (grub_heap_len): Likewise.
12211 (HEAP_SIZE): New macro.
12212 (grub_claim_heap): New function.
12213 (grub_machine_init): Don't claim heap directly. Call
12215 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
12216 (grub_available_iterate): New function.
12218 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
12220 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
12221 * configure.ac: Use it for testing the HOST and TARGET compilers.
12223 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
12225 * Makefile.in (enable_grub_emu): New variable.
12226 * configure.ac (--enable-grub-emu): New option.
12227 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
12228 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
12229 * conf/i386-pc.rmk: Likewise.
12230 * conf/powerpc-ieee1275.rmk: Likewise.
12231 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
12233 2006-12-12 Marco Gerards <marco@gnu.org>
12235 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
12237 * kern/env.c (grub_env_unset): Don't free the member `value' when
12238 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
12241 * normal/main.c (current_menu): Removed.
12242 (free_menu): Unset the `menu' environment variable.
12243 (grub_normal_menu_addentry): Make use of the environment variable
12244 `menu', instead of using the global `current_menu'. Allocate
12245 memory for the sourcecode of this entry.
12246 (read_config_file): New argument `nested', changed all callers.
12247 Only in the case of a new context, initialize a new menu. Set the
12248 `menu' environment variable.
12249 (grub_normal_execute): Don't set and unset the environment
12250 variable `menu' here anymore. Only free the menu when leaving the
12253 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
12256 2006-12-11 Marco Gerards <marco@gnu.org>
12258 * normal/menu_entry.c (run): Fix off by one bug so the last line
12259 is executed. Move the loader check to outside the loop.
12261 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
12263 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
12265 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
12267 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
12268 the number of sectors. Reported by Andrey Shuvikov
12269 <mr_hyro@yahoo.com>.
12271 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
12273 * kern/disk.c (grub_disk_read): When there is a read error, always
12274 try to read only the necessary data.
12276 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
12278 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
12280 [GRUB_UTIL] (grub_raid_fini): Likewise.
12281 [GRUB_UTIL] (grub_lvm_init): Likewise.
12282 [GRUB_UTIL] (grub_lvm_fini): Likewise.
12283 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
12284 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
12285 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
12286 and grub_raid_fini().
12288 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
12290 * include/grub/types.h (__unused): Rename to UNUSED.
12291 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
12292 (grub_elf64_size): Likewise.
12294 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
12296 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
12297 grub_error_push and grub_error_pop in the error-handling path.
12298 (grub_elf32_load_segment): Only call grub_file_read with non-zero
12301 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
12303 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
12304 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
12305 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12306 (kernel_elf_SOURCES): Likewise.
12307 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
12308 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
12309 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
12310 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
12311 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
12312 (elf_mod_SOURCES): New variable.
12313 (elf_mod_CFLAGS): Likewise.
12314 (elf_mod_LDFLAGS): Likewise.
12315 * include/grub/types.h (__unused): New macro.
12316 * include/grub/elfload.h: New file.
12317 * kern/elf.c: Likewise.
12318 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
12319 (ELF32_LOADMASK): New macro.
12320 (ELF64_LOADMASK): Likewise.
12321 (vmlinux): Removed.
12322 (grub_linux_load32): New function.
12323 (grub_linux_load64): Likewise.
12324 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
12325 Use grub_elf_t instead of grub_file_t.
12327 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
12329 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
12330 `catch_result' to struct set_color_args.
12332 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
12334 * normal/menu.c: Include grub/script.h.
12335 * normal/menu_entry.c: Likewise.
12336 * include/grub/normal.h: Do not include grub/script.h.
12338 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
12340 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
12342 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
12344 * kern/disk.c (grub_disk_open): Print debug messages when opening a
12346 (grub_disk_close): Print debug messages when closing a disk.
12347 (grub_disk_read): Print debug messages when disk read fails.
12348 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
12350 * kern/partition.c: Include misc.h.
12351 (grub_partition_iterate): Print debug messages when detecting
12354 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
12356 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
12358 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
12360 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
12362 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12363 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
12365 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
12367 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
12368 instead of sizeof(lv). Patch by Michael Guntsche.
12370 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
12372 * disk/lvm.c: Rename VGS to VG_LIST.
12373 (grub_lvm_iterate): Change VGS->LV to VG-LV.
12374 (grub_lvm_open): Likewise.
12375 Thanks to Michael Guntsche for finding this bug.
12377 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
12379 * configure.ac (AC_INIT): Bumped to 1.95.
12381 2006-10-14 Robert Millan <rmh@aybabtu.com>
12383 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
12384 with "/dev/.static/dev/md".
12386 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
12388 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
12389 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
12390 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
12391 DRIVE_NAME are always freed.
12393 * util/i386/pc/biosdisk.c (make_device_name): Add one into
12394 DOS_PART, as a DOS partition is counted from one instead of zero
12395 now. Reported by Robert Millan.
12397 2006-10-14 Robert Millan <rmh@aybabtu.com>
12399 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
12400 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
12401 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
12402 string returned by grub_guess_root_device.
12403 * util/i386/pc/grub-setup.c: Likewise.
12404 * util/i386/pc/grub-probefs.c: Likewise.
12406 * util/i386/pc/grub-probefs.c: Rename to ...
12407 * util/i386/pc/grub-probe.c: ... this.
12408 * DISTLIST: Remove grub-probefs, add grub-probe.
12409 * conf/i386-efi.rmk: Likewise.
12410 * conf/i386-pc.rmk: Likewise.
12411 * util/i386/pc/grub-install.in: Likewise.
12413 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
12414 choose which information we want to print.
12416 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
12418 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
12419 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
12420 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
12421 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
12422 video/readers/tga.c and video/i386/pc/vbeutil.c.
12424 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
12426 Added support for RAID and LVM.
12428 * disk/lvm.c: New file.
12429 * disk/raid.c: Likewise.
12430 * include/grub/lvm.h: Likewise.
12431 * include/grub/raid.h: Likewise.
12432 * include/grub/util/lvm.h: Likewise.
12433 * include/grub/util/raid.h: Likewise.
12434 * util/lvm.c: Likewise.
12435 * util/raid.c: Likewise.
12437 * include/grub/disk.h (grub_disk_dev_id): Add
12438 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
12439 (grub_disk_get_size): New prototype.
12440 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
12441 returns a partition.
12442 (grub_disk_get_size): New function.
12444 * kern/i386/pc/init.c (make_install_device): Copy the prefix
12445 verbatim if grub_install_dos_part is -2.
12447 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
12450 * util/i386/pc/grub-setup.c (setup): New argument
12451 MUST_EMBED. Force embedding of GRUB when the argument is
12452 true. Close FILE before returning.
12453 (main): Add support for RAID and LVM.
12455 * conf/common.rmk: Add RAID and LVM modules.
12456 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
12458 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
12460 * kern/misc.c (grub_strstr): New function.
12461 * include/grub/misc.h (grub_strstr): New prototype.
12463 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
12465 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
12467 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
12469 * kern/misc.c (grub_strtoull): Guess the base only if not
12472 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
12474 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
12477 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
12479 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
12481 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
12482 Remove `flags' argument. All callers changed.
12483 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
12484 (IEEE1275_IHANDLE_INVALID): New variable.
12485 (IEEE1275_CELL_INVALID): New variable.
12486 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12487 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
12488 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
12489 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
12490 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
12491 codes from Open Firmware. All callers updated.
12492 (grub_ieee1275_next_property): Directly return Open Firmware return
12494 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
12495 Standardize error checking from `grub_ieee1275_get_property'.
12496 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
12497 `devalias' to `aliases'. Correct comments. Consolidate error paths.
12499 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
12501 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
12502 `instance_to_package_args' to `instance_to_path_args'.
12504 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
12505 `grub_ieee1275_chosen'.
12507 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
12508 `grub_ieee1275_interpret'.
12510 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
12512 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
12514 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
12516 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
12517 (__cmpdi): Likewise.
12519 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
12520 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
12523 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
12525 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
12526 to type `grub_ssize_t'.
12527 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
12529 2006-09-22 Marco Gerards <marco@gnu.org>
12531 * normal/script.c (grub_script_create_cmdmenu): Skip leading
12534 2006-09-22 Marco Gerards <marco@gnu.org>
12536 * commands/echo.c: New file.
12538 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
12540 * conf/common.rmk (echo_mod_SOURCES): New variable.
12541 (echo_mod_CFLAGS): Likewise.
12542 (echo_mod_LDFLAGS): Likewise.
12544 2006-09-22 Marco Gerards <marco@gnu.org>
12546 * normal/main.c (get_line): Malloc memory instead of using
12547 preallocated memory. Removed the arguments `cmdline' and
12548 `max_len'. Updated all callers.
12550 2006-09-22 Marco Gerards <marco@gnu.org>
12552 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
12553 (normal_mod_DEPENDENCIES): Likewise.
12555 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
12556 (normal_mod_DEPENDENCIES): Likewise.
12558 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
12560 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
12562 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
12564 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
12565 (normal_mod_DEPENDENCIES): Likewise.
12566 * conf/i386-pc.mk: Regenerate.
12567 * conf/i386-efi.mk: Likewise
12568 * conf/common.mk: Likewise.
12569 * conf/powerpc-ieee1275.mk: Likewise.
12570 * conf/sparc64-ieee1275.mk: Likewise.
12572 2006-09-22 Robert Millan <rmh@aybabtu.com>
12574 Sync with i386 version.
12575 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
12576 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
12578 2006-09-21 Robert Millan <rmh@aybabtu.com>
12580 Import from GRUB Legacy (lib/device.c):
12581 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
12582 (init_device_map) [__linux__]: Add support for I2O devices.
12584 2006-09-14 Marco Gerards <marco@gnu.org>
12586 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
12589 2006-09-14 Robert Millan <rmh@aybabtu.com>
12591 * util/i386/pc/grub-install.in: Skip menu.lst when removing
12594 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
12596 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
12597 before adding it to device.map.
12599 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
12601 * genmk.rb: Let GCC generate dependencies the first time it
12602 compiles a file; using the -MD option.
12603 * conf/common.mk: Regenerate.
12604 * conf/i386-pc.mk: Likewise.
12605 * conf/i386-efi.mk: Likewise.
12606 * conf/powerpc-ieee1275.mk: Likewise.
12607 * conf/sparc64-ieee1275.mk: Likewise.
12609 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
12611 Move the prototypes of grub_setjmp and grub_longjmp to
12612 cpu/setjmp.h, so that each architecture may specify different
12615 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
12616 (grub_longjmp): Likewise.
12617 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
12618 (grub_longjmp): Likewise.
12619 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
12620 (grub_longjmp): Likewise.
12622 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
12623 [!GRUB_UTIL] (grub_longjmp): Removed.
12625 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
12627 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
12628 "color!" method does not return any value.
12630 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
12632 * include/grub/bitmap.h: New file.
12634 * include/grub/i386/pc/vbeutil.h: Likewise.
12636 * video/bitmap.c: Likewise.
12638 * video/readers/tga.c: Likewise.
12640 * video/i386/pc/vbeutil.c: Likewise.
12642 * commands/videotest.c: Code cleanup and updated to reflect to new
12645 * term/gfxterm.c: Likewise.
12647 * video/video.c: Likewise.
12649 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
12650 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
12651 (bitmap_mod_SOURCES): New entry.
12652 (bitmap_mod_CFLAGS): Likewise.
12653 (bitmap_mod_LDFLAGS): Likewise.
12654 (tga_mod_SOURCES): Likewise.
12655 (tga_mod_CFLAGS): Likewise.
12656 (tga_mod_LDFLAGS): Likewise.
12658 * include/grub/video.h (grub_video_blit_operators): New enum type.
12659 (grub_video_render_target): Changed as forward declaration and moved
12660 actual definition to be video driver specific.
12661 (grub_video_adapter.blit_bitmap): Added blitting operator.
12662 (grub_video_adapter.blit_render_target): Likewise.
12663 (grub_video_blit_bitmap): Likewise.
12664 (grub_video_blit_render_target): Likewise.
12666 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
12667 driver specific render target definition.
12668 (grub_video_vbe_map_rgba): Added driver internal helper.
12669 (grub_video_vbe_unmap_color): Updated to use
12670 grub_video_i386_vbeblit_info.
12671 (grub_video_vbe_get_video_ptr): Likewise.
12673 * include/grub/i386/pc/vbeblit.h
12674 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
12675 grub_video_i386_vbeblit_info.
12676 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
12677 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
12678 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
12679 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
12680 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
12681 (grub_video_i386_vbeblit_index_index): Likewise.
12682 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
12683 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
12684 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
12685 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
12687 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
12690 * video/i386/pc/vbeblit.c: Updated to reflect changes on
12691 include/grub/i386/pc/vbeblit.h.
12693 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
12694 Updated to use grub_video_i386_vbeblit_info.
12695 (grub_video_i386_vbefill_R8G8B8): Likewise.
12696 (grub_video_i386_vbefill_index): Likewise.
12697 (grub_video_i386_vbefill): Added generic filler.
12699 * video/i386/pc/vbefill.c: Updated to reflect changes on
12700 include/grub/i386/pc/vbefill.h.
12702 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
12703 grub_video_i386_vbeblit_info.
12704 (grub_video_vbe_unmap_color): Likewise.
12705 (grub_video_vbe_blit_glyph): Likewise.
12706 (grub_video_vbe_scroll): Likewise.
12707 (grub_video_vbe_draw_pixel): Removed function.
12708 (grub_video_vbe_get_pixel): Likewise.
12709 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
12710 updated code to use it.
12711 (common_blitter): Added common blitter for render target and bitmap.
12712 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
12713 (grub_video_vbe_blit_render_target): Likewise.
12715 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
12717 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
12718 is in text mode if there is no console control protocol instance
12721 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
12723 * include/grub/video.h: Code cleanup.
12725 * include/grub/i386/pc/vbe.h: Likewise.
12727 * video/i386/pc/vbe.c: Likewise.
12729 * video/i386/pc/vbeblit.c: Likewise.
12731 * video/i386/pc/vbefill.c: Likewise.
12733 * video/video.c: Likewise. Also added more comments.
12735 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
12737 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
12738 (struct grub_biosdisk_dap): Likewise.
12740 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
12741 linkage settings for all functions.
12743 2006-07-12 Marco Gerards <marco@gnu.org>
12745 * configure.ac (--enable-mm-debug): Fix typo.
12747 * genkernsyms.sh.in: Use proper quoting for `CC'.
12749 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
12751 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
12752 (normal_mod_ASFLAGS): Remove "-m32".
12754 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
12756 * util/misc.c: Include config.h.
12757 [!HAVE_MEMALIGN]: Do not include malloc.h.
12758 (grub_memalign): Use posix_memalign, if present. Then, use
12759 memalign, if present. Otherwise, emit an error.
12761 * util/grub-emu.c: Do not include malloc.h.
12763 * include/grub/util/misc.h: Include unistd.h. This is required for
12764 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
12765 D. Eades III <hde@foobar-qux.org>.
12767 * configure.ac (AC_GNU_SOURCE): Added.
12768 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
12771 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
12773 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
12774 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
12776 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
12778 * include/grub/types.h (grub_host_addr_t): Rename to
12779 grub_target_addr_t.
12780 (grub_host_off_t): Rename to grub_target_off_t.
12781 (grub_host_size_t): Rename to grub_target_size_t.
12782 (grub_host_ssize_t): Rename to grub_target_ssize_t.
12783 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
12785 * include/grub/kernel.h (struct grub_module_header): Change type
12786 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
12787 (grub_module_info): Likewise.
12789 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
12791 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
12792 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
12793 Velazquez <jesus.velazquez@gmail.com>.
12795 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
12797 Count partitions from 1 instead of 0 in the string representation
12798 of partitions. Still use 0-based internally.
12800 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
12801 (sun_partition_map_iterate): Use grub_partition_t instead of
12802 struct grub_partition *. Cast DESC->START_CYLINDER to
12803 grub_uint64_t after converting the endian.
12804 (sun_partition_map_probe): Subtract 1 for PARTNUM.
12805 (sun_partition_map_get_name): Add 1 to P->INDEX.
12807 * partmap/pc.c (grub_partition_parse): Subtract 1 for
12809 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
12811 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
12812 zero instead of one.
12813 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
12814 (gpt_partition_map_get_name): Add 1 into P->INDEX.
12816 * partmap/apple.c (apple_partition_map_iterate): Change the type
12817 of POS to unsigned.
12818 (apple_partition_map_probe): Subtract 1 for PARTNUM.
12819 (apple_partition_map_get_name): Add 1 into P->INDEX.
12821 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
12822 of POS to unsigned.
12823 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
12824 calculate the offset of a partition.
12825 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
12826 (amiga_partition_map_get_name): Add 1 into P->INDEX.
12828 * partmap/acorn.c (acorn_partition_map_find): Change the type of
12829 SECTOR to grub_disk_addr_t.
12830 (acorn_partition_map_iterate): Likewise.
12831 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
12832 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
12834 (acorn_partition_map_get_name): Add 1 into P->INDEX.
12836 * kern/i386/pc/init.c (make_install_device): Add 1 into
12837 GRUB_INSTALL_DOS_PART.
12839 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
12842 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
12844 Clean up the code to support 64-bit addressing in disks and
12845 files. This change is not enough for filesystems yet.
12847 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
12848 type of "start" to grub_uint64_t.
12849 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
12850 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
12851 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
12854 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
12855 to grub_disk_addr_t.
12857 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
12860 * partmap/pc.c (pc_partition_map_iterate): Likewise.
12862 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
12865 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
12867 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
12869 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
12871 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
12872 to grub_off_t, to detect an error from grub_file_seek.
12873 (grub_multiboot_load_elf32): Likewise.
12875 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
12876 maximum unsigned long value when an overflow is detected.
12877 (grub_strtoull): New function.
12878 (grub_divmod64): Likewise.
12879 (grub_lltoa): use grub_divmod64.
12881 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
12883 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
12884 the pointer to next character. Use grub_strtoull instead of
12886 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
12887 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
12890 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
12891 return value is signed.
12892 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
12893 test if OFFSET is less than zero, as OFFSET is unsigned now.
12895 * kern/disk.c (struct grub_disk_cache): Change the type of
12896 "sector" to grub_disk_addr_t.
12897 (grub_disk_cache_get_index): Change the type of SECTOR to
12898 grub_disk_addr_t. Calculate the hash with SECTOR casted to
12899 unsigned after shifting.
12900 (grub_disk_cache_invalidate): Change the type of SECTOR to
12902 (grub_disk_cache_unlock): Likewise.
12903 (grub_disk_cache_store): Likewise.
12904 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
12905 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
12906 grub_disk_addr_t and grub_uint64_t, respectively.
12907 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
12908 body, as the value of OFFSET is tweaked by
12909 grub_disk_check_range. Change the types of START_SECTOR, LEN and
12910 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
12912 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
12913 body, as the value of OFFSET is tweaked by
12914 grub_disk_check_range. Change the types of LEN and N to
12917 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
12918 and "saved_offset" to grub_off_t.
12919 (test_header): Cast BUF to char *.
12920 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
12922 (grub_gzio_read): Change the types of OFFSET and SIZE to
12923 grub_off_t and grub_size_t, respectively.
12925 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
12927 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
12928 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
12929 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
12930 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
12931 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
12933 * include/grub/types.h (grub_off_t): Unconditionally set to
12935 (grub_disk_addr_t): Changed to grub_uint64_t.
12937 * include/grub/partition.h (struct grub_partition): Change the
12938 types of "start", "len" and "offset" to grub_disk_addr_t,
12939 grub_uint64_t and grub_disk_addr_t, respectively.
12940 (grub_partition_get_start): Return grub_disk_addr_t.
12941 (grub_partition_get_len): Return grub_uint64_t.
12943 * include/grub/misc.h (grub_strtoull): New prototype.
12944 (grub_divmod64): Likewise.
12946 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
12947 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
12948 grub_off_t, respectively.
12949 All callers and references changed.
12951 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
12952 grub_size_t in "read".
12953 All callers and references changed.
12955 * include/grub/file.h (struct grub_file): Change the types of
12956 "offset" and "size" to grub_off_t and grub_off_t,
12957 respectively. Change the type of SECTOR to grub_disk_addr_t in
12959 (grub_file_read): Change the type of LEN to grub_size_t.
12960 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
12962 (grub_file_size): Return grub_off_t.
12963 (grub_file_tell): Likewise.
12964 All callers and references changed.
12966 * include/grub/disk.h (struct grub_disk_dev): Change the types of
12967 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
12969 (struct grub_disk): Change the type of "total_sectors" to
12970 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
12972 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
12973 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
12974 (grub_disk_write): Likewise.
12975 All callers and references changed.
12977 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
12978 char * for grub_strncmp to silence gcc.
12979 (grub_iso9660_mount): Likewise.
12980 (grub_iso9660_mount): Likewise.
12981 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
12983 (grub_iso9660_iterate_dir): Likewise.
12984 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
12986 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
12987 LEN to grub_disk_addr_t and grub_size_t, respectively.
12989 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12991 * fs/jfs.c (grub_jfs_read_file): Likewise.
12993 * fs/minix.c (grub_jfs_read_file): Likewise.
12995 * fs/sfs.c (grub_jfs_read_file): Likewise.
12997 * fs/ufs.c (grub_jfs_read_file): Likewise.
12999 * fs/xfs.c (grub_jfs_read_file): Likewise.
13001 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
13002 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
13005 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
13006 BLKNR to -1 instead of returning GRUB_ERRNO.
13007 (grub_ext2_read_file): Change the types of SECTOR and
13008 LEN to grub_disk_addr_t and grub_size_t, respectively.
13010 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
13011 LEN to grub_disk_addr_t and grub_size_t, respectively.
13013 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
13016 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
13017 string. Do not cast SECTOR explicitly.
13019 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
13020 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
13021 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
13022 grub_disk_addr_t and grub_size_t, respectively. If the sector is
13023 over 2TB and LBA mode is not supported, raise an error.
13024 (get_safe_sectors): New function.
13025 (grub_biosdisk_read): Use get_safe_sectors.
13026 (grub_biosdisk_write): Likewise.
13028 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
13029 (grub_efidisk_write): Likewise.
13031 * disk/loopback.c (delete_loopback): Cosmetic changes.
13032 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
13034 (grub_loopback_open): Likewise.
13035 (grub_loopback_read): Likewise. Also, change the type of POS to
13036 grub_off_t, and fix the usage of grub_memset.
13038 * commands/i386/pc/play.c: Include grub/machine/time.h.
13040 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
13043 * commands/configfile.c: Include grub/env.h.
13045 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
13046 GRUB_ERRNO directly instead. Change the type of POS to
13047 grub_off_t. Follow the coding standard.
13049 * commands/blocklist.c: Include grub/partition.h.
13050 (grub_cmd_blocklist): Return an error if the underlying device is
13051 not a disk. Take the starting sector of a partition into account,
13052 if a partition is used.
13054 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
13056 (lba_mode): Support 64-bit addresses.
13057 (chs_mode): Likewise.
13058 (copy_buffer): Adapted to the new offsets of a length field and a
13060 (blocklist_default_start): Allocate 64-bit space.
13062 * boot/i386/pc/boot.S (force_lba): Removed.
13063 (boot_drive): Moved to under KERNEL_SECTOR.
13064 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
13066 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
13068 (lba_mode): Refactored to support a 64-bit address. More size
13070 (setup_sectors): Likewise.
13072 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
13074 * DISTLIST: Added include/grub/i386/linux.h. Removed
13075 include/grub/i386/pc/linux.h
13077 * configure.ac (AC_INIT): Bumped to 1.94.
13079 * config.guess: Updated from gnulib.
13080 * config.sub: Likewise.
13081 * install-sh: Likewise.
13082 * mkinstalldirs: Likewise.
13084 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
13086 * conf/common.rmk (grub_modules_init.lst): Depended on
13087 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
13090 * genmk.rb (PModule::rule): Reverted the previous change.
13092 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
13094 * conf/common.rmk (grub_modules_init.lst): Depends on
13095 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
13096 that the target does not exist before producing.
13097 (grub_modules_init.h): Remove the target before generating.
13098 (grub_emu_init.c): Likewise.
13100 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
13102 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
13104 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
13105 for the target-specific tests. Make sure that we also have the
13106 up-to-date target variables for those tests.
13108 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
13110 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
13111 (PModule::rule): Likewise.
13113 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
13115 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
13116 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
13117 target-specific flags should be prefixed.
13118 (PModule::rule): Likewise.
13120 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
13122 * configure.ac (CMP): Check if cmp is available explicitly.
13124 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
13126 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
13127 (target_cpu): New variable.
13128 (pkglibdir): Use target_cpu instead of host_cpu.
13130 * util/i386/pc/grub-install.in (host_cpu): Removed.
13131 (target_cpu): New variable.
13132 (pkglibdir): Use target_cpu instead of host_cpu.
13134 * util/genmoddep.c: Removed.
13136 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
13137 instead of GRUB_HOST_SIZEOF_VOID_P.
13138 * kern/dl.c: Likewise.
13140 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
13142 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
13143 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
13144 (GRUB_TARGET_SIZEOF_LONG): ... this.
13145 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
13146 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
13147 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
13149 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
13150 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
13151 (GRUB_TARGET_SIZEOF_LONG): ... this.
13152 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
13153 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
13154 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
13156 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
13157 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
13158 (GRUB_TARGET_SIZEOF_LONG): ... this.
13159 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
13160 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
13162 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
13163 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
13164 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
13165 instead of GRUB_HOST_SIZEOF_LONG.
13166 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
13167 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
13168 GRUB_CPU_WORDS_BIGENDIAN.
13169 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
13170 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
13173 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
13174 (genmoddep_SOURCES): Likewise.
13175 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
13176 (genmoddep_SOURCES): Likewise.
13177 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
13178 (genmoddep_SOURCES): Likewise.
13179 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
13181 (genmoddep_SOURCES): Likewise.
13183 * genmoddep.awk: New file.
13185 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
13186 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
13187 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
13188 (PModule::rule): Likewise.
13189 (Program::rule): Likewise.
13190 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
13191 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
13194 * configure.ac: Rewritten intensively to use host and target
13195 instead of build and host, respectively.
13197 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
13198 (host_cpu): Removed.
13199 (target_cpu): New variable.
13200 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
13201 (BUILD_CC): Removed.
13202 (BUILD_CFLAGS): Likewise.
13203 (BUILD_CPPFLAGS): Likewise.
13204 (TARGET_CC): New variable.
13205 (TARGET_CFLAGS): Likewise.
13206 (TARGET_CPPFLAGS): Likewise.
13207 (TARGET_LDFLAGS): Likewise.
13209 (include): Use target_cpu instead of host_cpu.
13210 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
13212 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
13214 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
13216 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
13217 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
13218 field 'false' to 'exec_on_false'.
13219 (grub_script_create_cmdif): Renamed argument names to reflect above
13222 * normal/execute.c (grub_script_execute_cmdif): Likewise.
13224 * normal/script.c (grub_script_create_cmdif): Likewise.
13226 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
13228 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
13230 (grub_hfsplus_btree_recptr): Likewise.
13231 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
13232 FILEBLOCK both to pass a block number and store next block
13234 (grub_hfsplus_read_block): Rewritten heavily to support an extent
13235 overflow file correctly. Specify errors appropriately, because
13236 fshelp expects that GRUB_ERRNO is set when fails. Reuse
13237 grub_hfsplus_btree_recptr to get the pointer to a found key.
13238 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
13241 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
13243 (_linux_mod_SOURCES): New variable.
13244 (_linux_mod_CFLAGS): Likewise.
13245 (_linux_mod_LDFLAGS): Likewise.
13246 (linux_mod_SOURCES): Likewise.
13247 (linux_mod_CFLAGS): Likewise.
13248 (linux_mod_LDFLAGS): Likewise.
13250 * DISTLIST: Added loader/i386/efi/linux.c,
13251 loader/i386/efi/linux_normal.c and
13252 include/grub/i386/efi/loader.h.
13254 * loader/i386/efi/linux.c: New file.
13255 * loader/i386/efi/linux_normal.c: Likewise.
13256 * include/grub/i386/efi/loader.h: Likewise.
13258 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
13260 * commands/blocklist.c: New file.
13262 * DISTLIST: Added commands/blocklist.c.
13264 * term/efi/console.c (grub_console_highlight_color): Use a lighter
13265 color for the background, and a darker color for the foreground.
13266 (grub_console_checkkey): Return READ_KEY.
13267 (grub_console_cls): Set the background to
13268 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
13270 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
13272 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
13273 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
13275 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
13278 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
13279 BG. The spec is wrong again.
13281 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
13283 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
13285 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
13286 commands/blocklist.c.
13287 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13289 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
13290 (blocklist_mod_SOURCES): New variable.
13291 (blocklist_mod_CFLAGS): Likewise.
13292 (blocklist_mod_LDFLAGS): Likewise.
13294 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
13296 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
13298 (lba_mode): Use %eax more intensively to reduce the code size.
13300 2006-05-20 Marco Gerards <marco@gnu.org>
13302 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
13304 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
13306 (script): Accept leading newlines.
13307 (newlines): New rule to describe 0 or more newlines.
13308 (commands): Accept `command' with trailing newline. Fixed the
13309 order in which arguments were passed to `grub_script_add_cmd'.
13310 Accept commands separated by newlines.
13311 (function): Changed to accept newlines.
13312 (menuentry) Rewritten.
13314 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
13315 front of the list, instead of to the end.
13317 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
13319 * util/i386/pc/grub-install.in (bindir): New variable.
13320 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
13321 Shaver <lbgwjl@gmail.com>.
13323 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
13325 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
13326 grub/machine/linux.h
13327 * loader/i386/pc/linux.c: Likewise.
13329 * include/grub/i386/pc/linux.h: Moved to ...
13330 * include/grub/i386/linux.h: ... here.
13332 * include/grub/i386/linux.h (struct linux_kernel_params): New
13335 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
13337 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
13339 (grub_video_vbe_blit_glyph): Likewise.
13340 (grub_video_vbe_blit_bitmap): Likewise.
13341 (grub_video_vbe_blit_render_target): Likewise.
13343 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
13345 * configure.ac (--with-platform): Properly quote the square
13348 2006-05-08 Marco Gerards <marco@gnu.org>
13350 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
13352 (kernel_elf_HEADERS): ...to this. Updated all users.
13353 (grubof_symlist.c): Renamed from this...
13354 (kernel_elf_symlist.c): ...to this. Updated all users.
13355 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
13356 (grubof_SOURCES): Renamed from this...
13357 (kernel_elf_SOURCES): ...to this.
13358 (grubof_HEADERS): Renamed from this...
13359 (kernel_elf_HEADERS): ...to this.
13360 (grubof_CFLAGS): Renamed from this...
13361 (kernel_elf_CFLAGS): ...to this.
13362 (grubof_ASFLAGS): Renamed from this...
13363 (kernel_elf_ASFLAGS): ...to this.
13364 (grubof_LDFLAGS): Renamed from this...
13365 (kernel_elf_LDFLAGS): ...to this.
13367 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
13369 (kernel_elf_HEADERS): ...to this. Updated all users.
13370 (grubof_symlist.c): Renamed from this...
13371 (kernel_elf_symlist.c): ...to this. Updated all users.
13372 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
13373 (grubof_SOURCES): Renamed from this...
13374 (kernel_elf_SOURCES): ...to this.
13375 (grubof_HEADERS): Renamed from this...
13376 (kernel_elf_HEADERS): ...to this.
13377 (grubof_CFLAGS): Renamed from this...
13378 (kernel_elf_CFLAGS): ...to this.
13379 (grubof_ASFLAGS): Renamed from this...
13380 (kernel_elf_ASFLAGS): ...to this.
13381 (grubof_LDFLAGS): Renamed from this...
13382 (kernel_elf_LDFLAGS): ...to this.
13384 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
13385 `kernel.elf' instead of `grubof'.
13387 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
13389 Add --with-platform to configure. Use pkglibdir instead of
13390 pkgdatadir. This is reported by Roger Leigh.
13392 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
13393 (host_vendor): Likewise.
13394 (host_os): Likewise.
13395 (pkgdatadir): Likewise.
13396 (platform): New variable.
13397 (pkglibdir): Likewise.
13398 Use PKGLIBDIR instead of PKGDATADIR.
13400 * util/i386/pc/grub-install.in (datadir): Removed.
13401 (host_vendor): Likewise.
13402 (host_os): Likewise.
13403 (pkgdatadir): Likewise.
13404 (platform): New variable.
13405 (pkglibdir): Likewise.
13406 Use PKGLIBDIR instead of PKGDATADIR.
13408 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
13409 instead of GRUB_DATADIR.
13411 * util/i386/pc/grub-mkimage.c (usage): Likewise.
13413 * util/i386/efi/grub-mkimage.c (usage): Likewise.
13416 * configure.ac (--with-platform): New option.
13417 Use PLATFORM instead of HOST_VENDOR to specify a platform.
13419 * Makefile.in: Include a makefile based on PLATFORM instead of
13421 (pkgdatadir): Not appended by the machine type.
13422 (pkglibdir): Appended by the machine type.
13423 (host_vendor): Removed.
13424 (platform): New variable.
13425 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
13426 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
13427 (uninstall): Likewise.
13429 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
13431 Use the environment context in the menu. Remove the commands
13432 "default" and "timeout", and use variables instead.
13434 * normal/menu.c: Include grub/env.h.
13435 (print_entry): Cast TITLE to silence gcc.
13436 (get_timeout): New function.
13437 (set_timeout): Likewise.
13438 (get_entry_number): Likewise.
13439 (run_menu): Use a default entry, a fallback entry and a timeout
13440 in the environment variables "default", "fallback" and
13441 "timeout". Also, tweak the default entry if it is not within the
13442 current menu entries.
13443 (grub_menu_run): Use a fallback entry in the environment variable
13446 * normal/main.c (read_config_file): Do not initialize
13447 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
13449 (grub_normal_execute): Use a data slot to store the menu.
13451 * include/grub/normal.h (struct grub_menu): Removed default_entry,
13452 fallback_entry and timeout.
13453 (struct grub_menu_list): Removed.
13454 (grub_menu_list_t): Likewise.
13455 (struct grub_context): Likewise.
13456 (grub_context_t): Likewise.
13457 (grub_context_get): Likewise.
13458 (grub_context_get_current_menu): Likewise.
13459 (grub_context_push_menu): Likewise.
13460 (grub_context_pop_menu): Likewise.
13461 (grub_default_init): Likewise.
13462 (grub_default_fini): Likewise.
13463 (grub_timeout_init): Likewise.
13464 (grub_timeout_fini): Likewise.
13466 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
13468 (normal_mod_SOURCES): Removed normal/context.c.
13470 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
13471 commands/default.c, commands/timeout.c and normal/context.c.
13472 (normal_mod_SOURCES): Removed normal/context.c.
13474 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
13475 commands/timeout.c and normal/context.c.
13476 (normal_mod_SOURCES): Removed normal/context.c.
13478 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
13479 commands/default.c, commands/timeout.c and normal/context.c.
13480 (normal_mod_SOURCES): Removed normal/context.c.
13482 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
13484 (default_mod_SOURCES): Removed.
13485 (default_mod_CFLAGS): Likewise.
13486 (default_mod_LDFLAGS): Likewise.
13487 (timeout_mod_SOURCES): Removed.
13488 (timeout_mod_CFLAGS): Likewise.
13489 (timeout_mod_LDFLAGS): Likewise.
13491 * DISTLIST: Removed commands/default.c, commands/timeout.c and
13494 * commands/default.c: Removed.
13495 * commands/timeout.c: Likewise.
13496 * normal/context.c: Likewise.
13498 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
13500 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
13502 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
13504 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
13505 "next" to "prev" for readability.
13506 (struct grub_env_sorted_var): New struct.
13507 (grub_env_context): Renamed to ...
13508 (initial_context): ... this.
13509 (grub_env_var_context): Renamed to ...
13510 (current_context): ... this.
13511 (grub_env_find): Look only at CURRENT_CONTEXT.
13512 (grub_env_context_open): Rewritten to copy exported variables from
13514 (grub_env_context_close): Rewritten according to the new
13515 scheme. Also, add an assertion to prevent the initial context from
13517 (grub_env_insert): Removed the code for the sorted list.
13518 (grub_env_remove): Likewise.
13519 (grub_env_export): Simply mark the variable with
13520 GRUB_ENV_VAR_GLOBAL.
13521 (grub_env_set): A cosmetic change for naming consistency.
13522 (grub_env_get): Likewise.
13523 (grub_env_unset): Likewise.
13524 (grub_env_iterate): Rewritten to sort variables within this
13526 (grub_register_variable_hook): Fixed for naming consistency. Call
13527 grub_env_find again, only if NAME is not found at the first time.
13528 (mangle_data_slot_name): New function.
13529 (grub_env_set_data_slot): Likewise.
13530 (grub_env_get_data_slot): Likewise.
13531 (grub_env_unset_data_slot): Likewise.
13533 * include/grub/env.h (grub_env_var_type): New enum.
13534 (GRUB_ENV_VAR_LOCAL): New constant.
13535 (GRUB_ENV_VAR_GLOBAL): Likewise.
13536 (GRUB_ENV_VAR_DATA): Likewise.
13537 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
13539 (grub_env_set): Replace VAR with NAME for consistency.
13540 (grub_register_variable_hook): Likewise.
13541 (grub_env_export): Specify the name of the argument.
13542 (grub_env_set_data_slot): New prototype.
13543 (grub_env_get_data_slot): Likewise.
13544 (grub_env_unset_data_slot): Likewise.
13546 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
13548 Extend the loader so that GRUB can accept a loader which comes
13549 back to GRUB when a loaded image exits. Also, this change adds
13550 support for a chainloader on EFI.
13552 * term/efi/console.c: Include grub/misc.h.
13553 (grub_console_checkkey): Display a scan code on the top for
13554 debugging. This will be removed once the EFI port gets stable.
13555 Correct the scan code mapping.
13557 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
13558 allocate memory from larger regions, in order to reduce the number
13559 of allocated regions. Otherwise, the MacOSX loader panics.
13560 (filter_memory_map): Avoid less than 1MB for compatibility with
13562 (add_memory_regions): Allocate from the tail of a region, if
13563 possible, to avoid allocating a region near to 1MB, for the MacOSX
13566 * kern/efi/init.c (grub_efi_set_prefix): Specify
13567 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
13569 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
13570 argument IMAGE_HANDLE and specify it to get a loaded image.
13571 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
13572 grub_efi_get_loaded_image.
13573 (grub_efi_get_filename): Divide the length by the size of
13575 (grub_efi_get_device_path): New function.
13576 (grub_efi_print_device_path): Print End Device Path nodes. Divide
13577 the length by the size of grub_efi_char16_t for a file path device
13580 * kern/loader.c (grub_loader_noreturn): New variable.
13581 (grub_loader_set): Accept a new argument NORETURN. Set
13582 GRUB_LOADER_NORETURN to NORETURN.
13583 All callers changed.
13584 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
13587 * include/grub/efi/efi.h (grub_efi_get_device_path): New
13589 (grub_efi_get_loaded_image): Take an argument to specify an image
13592 * include/grub/loader.h (grub_loader_set): Added one more argument
13595 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
13596 instead of grub_efi_open_protocol.
13597 (grub_efidisk_get_device_name): Likewise.
13598 (grub_efidisk_close): Print a newline.
13599 (grub_efidisk_get_device_handle): Fixed to use
13600 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
13601 GRUB_EFI_DEVICE_PATH_TYPE.
13603 * disk/efi/efidisk.c (device_path_guid): Moved to ...
13604 * kern/efi/efi.c (device_path_guid): ... here.
13606 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
13608 (kernel_mod_HEADERS): Added efi/disk.h.
13609 (_chain_mod_SOURCES): New variable.
13610 (_chain_mod_CFLAGS): Likewise.
13611 (_chain_mod_LDFLAGS): Likewise.
13612 (chain_mod_SOURCES): Likewise.
13613 (chain_mod_CFLAGS): Likewise.
13614 (chain_mod_LDFLAGS): Likewise.
13616 * DISTLIST: Added include/grub/efi/chainloader.h,
13617 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
13619 * include/grub/efi/chainloader.h: New file.
13620 * loader/efi/chainloader.c: Likewise.
13621 * loader/efi/chainloader_normal.c: Likewise.
13623 2006-04-30 Marco Gerards <marco@gnu.org>
13625 * commands/configfile.c (grub_cmd_source): New function.
13626 (GRUB_MOD_INIT): Register the commands `source' and `.'.
13627 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
13629 2006-04-30 Marco Gerards <marco@gnu.org>
13631 * normal/execute.c (grub_script_execute_cmd): Change the return
13632 type to `grub_err_t'. Correctly return the error.
13633 (grub_script_execute_cmdline): In case a command line is not a
13634 command or a function, try to interpret it as an assignment.
13636 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
13638 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
13639 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
13640 skip a node whose name is obviously invalid as UTF-16,
13641 i.e. contains a NUL character. Stop the iteration when the last
13642 directory entry is found. Instead of using the return value of
13643 grub_hfsplus_btree_iterate_node, store the value in RET and use
13644 it, because the iterator can be stopped by the last directory
13647 2006-04-30 Marco Gerards <marco@gnu.org>
13649 * include/grub/env.h (grub_env_export): New prototype. Reported
13650 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
13652 2006-04-30 Marco Gerards <marco@gnu.org>
13654 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
13655 size of the extents in a catalog file record.
13657 2006-04-29 Marco Gerards <marco@gnu.org>
13659 * commands/configfile.c (grub_cmd_configfile): Execute the
13660 configfile within its own context.
13662 * include/grub/env.h (grub_env_context_open): New prototype.
13663 (grub_env_context_close): Likewise.
13665 * kern/env.c (grub_env): Removed.
13666 (grub_env_sorted): Likewise.
13667 (grub_env_context): New variable.
13668 (grub_env_var_context): Likewise.
13669 (grub_env_find): Search both the active context and the global
13671 (grub_env_context_open): New function.
13672 (grub_env_context_close): Likewise.
13673 (grub_env_insert): Likewise.
13674 (grub_env_remove): Likewise.
13675 (grub_env_export): Likewise.
13676 (grub_env_set): Changed to use helper functions to avoid code
13678 (grub_env_iterate): Rewritten so both the current context and the
13679 global context are being used.
13681 * normal/command.c (export_command): New function.
13682 (grub_command_init): Register the `export' function.
13684 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
13686 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
13687 explicitly to suppress gcc's warnings.
13688 * fs/fat.c (grub_fat_find_dir): Likewise.
13689 (grub_fat_label): Likewise.
13690 * fs/xfs.c (grub_xfs_read_inode): Likewise.
13691 (grub_xfs_mount): Likewise.
13692 (grub_xfs_label): Likewise.
13693 * fs/affs.c (grub_affs_mount): Likewise.
13694 (grub_affs_label): Likewise.
13695 (grub_affs_iterate_dir): Likewise.
13696 * fs/sfs.c (grub_sfs_mount): Likewise.
13697 (grub_sfs_iterate_dir): Likewise.
13698 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
13699 * fs/hfs.c (grub_hfs_mount): Likewise.
13700 (grub_hfs_cmp_catkeys): Likewise.
13701 (grub_hfs_find_dir): Likewise.
13702 (grub_hfs_dir): Likewise.
13703 (grub_hfs_label): Likewise.
13704 * fs/jfs.c (grub_jfs_mount): Likewise.
13705 (grub_jfs_opendir): Likewise.
13706 (grub_jfs_getent): Likewise.
13707 (grub_jfs_lookup_symlink): Likewise.
13708 (grub_jfs_label): Likewise.
13709 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
13710 (grub_hfsplus_iterate_dir): Likewise.
13711 (grub_hfsplus_btree_iterate_node): Made static.
13713 * util/grub-emu.c (prefix): New variable.
13714 (grub_machine_set_prefix): New function.
13715 (main): Do not set the environment variable "prefix" here. Only
13716 set PREFIX, which is used later by grub_machine_set_prefix.
13718 * include/grub/video.h: Do not include grub/symbol.h.
13719 (grub_video_register): Not exported. This symbol is not defined in
13721 (grub_video_unregister): Likewise.
13722 (grub_video_iterate): Likewise.
13723 (grub_video_setup): Likewise.
13724 (grub_video_restore): Likewise.
13725 (grub_video_get_info): Likewise.
13726 (grub_video_get_blit_format): Likewise.
13727 (grub_video_set_palette): Likewise.
13728 (grub_video_get_palette): Likewise.
13729 (grub_video_set_viewport): Likewise.
13730 (grub_video_get_viewport): Likewise.
13731 (grub_video_map_color): Likewise.
13732 (grub_video_map_rgb): Likewise.
13733 (grub_video_map_rgba): Likewise.
13734 (grub_video_fill_rect): Likewise.
13735 (grub_video_blit_glyph): Likewise.
13736 (grub_video_blit_bitmap): Likewise.
13737 (grub_video_blit_render_target): Likewise.
13738 (grub_video_scroll): Likewise.
13739 (grub_video_swap_buffers): Likewise.
13740 (grub_video_create_render_target): Likewise.
13741 (grub_video_delete_render_target): Likewise.
13742 (grub_video_set_active_render_target): Likewise.
13744 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
13746 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
13748 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
13749 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
13750 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
13751 instead of $(srcdir)/genkernsyms.sh.
13753 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
13754 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
13755 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
13756 instead of $(srcdir)/genkernsyms.sh.
13758 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
13759 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
13760 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
13761 instead of $(srcdir)/genkernsyms.sh.
13763 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
13764 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
13765 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
13766 instead of $(srcdir)/genkernsyms.sh.
13768 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
13771 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
13773 (gensymlist.sh): New target.
13774 (genkernsyms.sh): Likewise.
13776 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
13777 genkernsyms.sh.in and gensymlist.sh.in.
13779 * genkernsyms.sh: Removed.
13780 * gensymlist.sh: Likewise.
13782 * genkernsyms.sh.in: New file.
13783 * gensymlist.sh.in: Likewise.
13785 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
13787 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
13788 clobber "prefix", since we may have already set it manually.
13790 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
13792 * kern/misc.c (abort): New alias for grub_abort.
13794 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
13796 A new machine-specific function "grub_machine_set_prefix" is
13797 defined. This is called after loading modules, so that a prefix
13798 initialization can use modules. Also, this change adds an
13799 intensive debugging feature for the memory manager via the
13800 configure option "--enable-mm-debug".
13802 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
13805 * kern/sparc64/ieee1275/init.c (abort): Removed.
13806 (grub_stop): Likewise.
13807 (grub_exit): New function.
13808 (grub_set_prefix): Renamed to ...
13809 (grub_machine_set_prefix): ... this.
13810 (grub_machine_init): Do not call grub_set_prefix.
13812 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
13813 (grub_machine_set_prefix): ... this.
13814 (grub_machine_init): Do not call grub_set_prefix.
13816 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
13817 (grub_machine_init): Do not set the prefix here.
13819 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
13821 * kern/efi/init.c: Include grub/mm.h.
13822 (grub_efi_set_prefix): New function.
13824 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
13825 (grub_efi_get_filename): New function.
13826 (grub_print_device_path): Renamed to ...
13827 (grub_efi_print_device_path): ... this.
13829 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
13830 [MM_DEBUG] (grub_realloc): Likewise.
13831 [MM_DEBUG] (grub_free): Likewise.
13832 [MM_DEBUG] (grub_memalign): Likewise.
13833 [MM_DEBUG] (grub_mm_debug): New variable.
13834 [MM_DEBUG] (grub_debug_malloc): New function.
13835 [MM_DEBUG] (grub_debug_free): New function.
13836 [MM_DEBUG] (grub_debug_realloc): New function.
13837 [MM_DEBUG] (grub_debug_memalign): New function.
13839 * kern/misc.c (grub_abort): Print a newline to distinguish
13842 * kern/main.c (grub_main): Call grub_machine_set_prefix and
13843 grub_set_root_dev after loading modules. This is necessary when
13844 setting a prefix depends on modules.
13846 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
13847 (grub_efi_print_device_path): ... this.
13848 (grub_efi_get_filename): New prototype.
13849 (grub_efi_set_prefix): Likewise.
13851 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
13853 (grub_efidisk_get_device_handle): New prototype.
13854 (grub_efidisk_get_device_name): Likewise.
13856 * include/grub/mm.h: Include config.h.
13857 (MM_DEBUG): Removed.
13858 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
13859 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
13860 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
13861 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
13862 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
13863 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
13864 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
13865 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
13866 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
13868 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
13870 * disk/efi/efidisk.c: Include grub/partition.h.
13871 (iterate_child_devices): New function.
13872 (add_device): First, compare only last device path nodes, so that
13873 devices are sorted by the types.
13874 (grub_efidisk_get_device_handle): New function.
13875 (grub_efidisk_get_device_name): Likewise.
13877 * configure.ac (--enable-mm-debug): New option to enable the
13878 memory manager debugging feature. This makes the binary much
13879 bigger, so is disabled by default.
13881 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
13883 Use grub_abort instead of grub_stop, and grub_exit must be
13884 define in each architecture now. Also, this change adds support
13887 * util/i386/pc/grub-probefs.c: Include grub/term.h.
13888 (grub_getkey): New function.
13889 (grub_term_get_current): Likewise.
13891 * util/i386/pc/grub-setup.c: Include grub/term.h.
13892 (grub_getkey): New function.
13893 (grub_term_get_current): Likewise.
13895 * util/misc.c (grub_stop): Renamed to ...
13896 (grub_exit): ... this.
13898 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
13899 (grub_exit): ... this.
13900 (grub_machine_init): Use grub_abort instead of abort.
13901 (grub_stop): Removed.
13903 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
13906 * kern/i386/pc/startup.S (grub_exit): New function.
13907 (cold_reboot): New label.
13909 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
13910 (grub_efi_init): Call grub_efidisk_init.
13911 (grub_efi_fini): Call grub_efidisk_fini.
13913 * kern/efi/efi.c: Include grub/mm.h.
13914 (grub_efi_console_control_guid): Renamed to ...
13915 (console_control_guid): ... this.
13916 (grub_efi_loaded_image_guid): Renamed to ...
13917 (loaded_image_guid): ... this.
13918 (grub_efi_locate_handle): New function.
13919 (grub_efi_open_protocol): Likewise.
13920 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
13921 GRUB_EFI_CONSOLE_CONTROL_GUID.
13922 (grub_efi_exit): Removed.
13923 (grub_stop): Likewise.
13924 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
13925 (grub_exit): New function.
13926 (grub_print_device_path): Likewise.
13928 * kern/rescue.c (grub_rescue_cmd_exit): New function.
13929 (grub_enter_rescue_mode): Register "exit".
13931 * kern/misc.c (grub_real_dprintf): A cosmetic change.
13932 (grub_abort): New function.
13934 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
13936 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
13938 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
13940 * include/grub/efi/efi.h (grub_efi_exit): Removed.
13941 (grub_print_device_path): New prototype.
13942 (grub_efi_locate_handle): Likewise.
13943 (grub_efi_open_protocol): Likewise.
13945 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
13946 * disk/efi/efidisk.c: Likewise.
13948 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
13950 * include/grub/efi/console_control.h
13951 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
13953 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
13954 last 8 bytes as an array.
13955 (GRUB_EFI_DISK_IO_GUID): New macro.
13956 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
13957 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
13958 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
13960 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
13961 (struct grub_efi_device_path): Rename the member "sub_type" to
13963 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
13964 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
13965 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
13966 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
13967 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
13968 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
13969 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
13970 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
13971 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
13972 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
13973 (struct grub_efi_pci_device_path): New structure.
13974 (grub_efi_pci_device_path_t): New type.
13975 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
13976 (struct grub_efi_pccard_device_path): New structure.
13977 (grub_efi_pccard_device_path_t): New type.
13978 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
13979 (struct grub_efi_memory_mapped_device_path): New structure.
13980 (grub_efi_memory_mapped_device_path_t): New type.
13981 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
13982 (struct grub_efi_vendor_device_path): New structure.
13983 (grub_efi_vendor_device_path_t): New type.
13984 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
13985 (struct grub_efi_controller_device_path): New structure.
13986 (grub_efi_controller_device_path_t): New type.
13987 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
13988 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
13989 (struct grub_efi_acpi_device_path): New structure.
13990 (grub_efi_acpi_device_path_t): New type.
13991 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
13992 (struct grub_efi_expanded_acpi_device_path): New structure.
13993 (grub_efi_expanded_acpi_device_path_t): New type.
13994 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
13995 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
13996 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
13997 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
13998 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
13999 (struct grub_efi_atapi_device_path): New structure.
14000 (grub_efi_atapi_device_path_t): New type.
14001 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
14002 (struct grub_efi_fibre_channel_device_path): New structure.
14003 (grub_efi_fibre_channel_device_path_t): New type.
14004 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
14005 (struct grub_efi_1394_device_path): New structure.
14006 (grub_efi_1394_device_path_t): New type.
14007 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
14008 (struct grub_efi_usb_device_path): New structure.
14009 (grub_efi_usb_device_path_t): New type.
14010 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
14011 (struct grub_efi_usb_class_device_path): New structure.
14012 (grub_efi_usb_class_device_path_t): New type.
14013 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
14014 (struct grub_efi_i2o_device_path): New structure.
14015 (grub_efi_i2o_device_path_t): New type.
14016 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
14017 (struct grub_efi_mac_address_device_path): New structure.
14018 (grub_efi_mac_address_device_path_t): New type.
14019 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
14020 (struct grub_efi_ipv4_device_path): New structure.
14021 (grub_efi_ipv4_device_path_t): New type.
14022 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
14023 (struct grub_efi_ipv6_device_path): New structure.
14024 (grub_efi_ipv6_device_path_t): New type.
14025 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
14026 (struct grub_efi_infiniband_device_path): New structure.
14027 (grub_efi_infiniband_device_path_t): New type.
14028 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
14029 (struct grub_efi_uart_device_path): New structure.
14030 (grub_efi_uart_device_path_t): New type.
14031 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
14032 (struct grub_efi_vendor_messaging_device_path): New structure.
14033 (grub_efi_vendor_messaging_device_path_t): New type.
14034 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
14035 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
14036 (struct grub_efi_hard_drive_device_path): New structure.
14037 (grub_efi_hard_drive_device_path_t): New type.
14038 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
14039 (struct grub_efi_cdrom_device_path): New structure.
14040 (grub_efi_cdrom_device_path_t): New type.
14041 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
14042 (struct grub_efi_vendor_media_device_path): New structure.
14043 (grub_efi_vendor_media_device_path_t): New type.
14044 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
14045 (struct grub_efi_file_path_device_path): New structure.
14046 (grub_efi_file_path_device_path_t): New type.
14047 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
14048 (struct grub_efi_protocol_device_path): New structure.
14049 (grub_efi_protocol_device_path_t): New type.
14050 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
14051 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
14052 (struct grub_efi_bios_device_path): New structure.
14053 (grub_efi_bios_device_path_t): New type.
14054 (struct grub_efi_disk_io): New structure.
14055 (grub_efi_disk_io_t): New type.
14056 (struct grub_efi_block_io_media): New structure.
14057 (grub_efi_block_io_media_t): New type.
14058 (struct grub_efi_block_io): New structure.
14059 (grub_efi_block_io_t): New type.
14061 * include/grub/misc.h (grub_stop): Removed.
14062 (grub_exit): New prototype.
14063 (grub_abort): Likewise.
14065 * include/grub/disk.h (enum grub_disk_dev_id): Added
14066 GRUB_DISK_DEVICE_EFIDISK_ID.
14068 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
14069 disk/efi/efidisk.c.
14070 (kernel_syms.lst): Remove the target if an error occurs.
14072 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
14074 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
14075 as it was simply too buggy.
14077 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
14079 * kern/misc.c (grub_lltoa): New function.
14080 (grub_vsprintf): Added support for the long long suffix,
14083 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
14085 * Makefile.in (LDFLAGS): Add variable.
14086 (LD): Remove variable.
14087 * configure.ac: Add -m32 to LDFLAGS.
14088 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
14089 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
14090 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
14091 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
14092 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
14094 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
14095 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
14096 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
14098 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
14100 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
14101 length for unknown glyph.
14103 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
14105 Add support for pre-loaded modules into the EFI port.
14107 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
14108 completely. Accept one more argument DIR. The caller has changed.
14110 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
14112 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
14113 (grub_efi_loaded_image_guid): New variable.
14114 (grub_efi_get_loaded_image): New function.
14115 (grub_arch_modules_addr): Likewise.
14117 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
14120 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
14121 (struct grub_efi_loaded_image): New structure.
14122 (grub_efi_loaded_image_t): New type.
14124 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
14126 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
14127 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
14128 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
14130 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
14132 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
14134 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
14136 * DISTLIST: Added include/grub/efi/console.h,
14137 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
14138 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
14140 * include/grub/efi/console.h: New file.
14141 * include/grub/efi/time.h: Likewise.
14142 * include/grub/i386/efi/kernel.h: Likewise.
14143 * kern/efi/init.c: Likewise.
14144 * kern/efi/mm.c: Likewise.
14145 * term/efi/console.c: Likewise.
14147 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
14148 (grub_stop): Removed.
14149 (grub_get_rtc): Likewise.
14150 (grub_machine_init): Simply call grub_efi_init.
14151 (grub_machine_fini): Call grub_efi_fini.
14153 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
14154 (grub_efi_output_string): Removed.
14155 (grub_efi_stall): New function.
14156 (grub_stop): Likewise.
14157 (grub_get_rtc): Likewise.
14159 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
14160 (grub_efi_stall): New prototype.
14161 (grub_efi_allocate_pages): Likewise.
14162 (grub_efi_free_pages): Likewise.
14163 (grub_efi_get_memory_map): Likewise.
14164 (grub_efi_mm_init): Likewise.
14165 (grub_efi_mm_fini): Likewise.
14166 (grub_efi_init): Likewise.
14167 (grub_efi_fini): Likewise.
14169 * include/grub/i386/efi/time.h: Do not include
14170 grub/symbol.h. Include grub/efi/time.h.
14171 (GRUB_TICKS_PER_SECOND): Removed.
14172 (grub_get_rtc): Likewise.
14174 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
14175 Added padding. The EFI spec is buggy.
14176 (GRUB_EFI_BLACK): New macro.
14177 (GRUB_EFI_BLUE): Likewise.
14178 (GRUB_EFI_GREEN): Likewise.
14179 (GRUB_EFI_CYAN): Likewise.
14180 (GRUB_EFI_RED): Likewise.
14181 (GRUB_EFI_MAGENTA): Likewise.
14182 (GRUB_EFI_BROWN): Likewise.
14183 (GRUB_EFI_LIGHTGRAY): Likewise.
14184 (GRUB_EFI_BRIGHT): Likewise.
14185 (GRUB_EFI_DARKGRAY): Likewise.
14186 (GRUB_EFI_LIGHTBLUE): Likewise.
14187 (GRUB_EFI_LIGHTGREEN): Likewise.
14188 (GRUB_EFI_LIGHTCYAN): Likewise.
14189 (GRUB_EFI_LIGHTRED): Likewise.
14190 (GRUB_EFI_LIGHTMAGENTA): Likewise.
14191 (GRUB_EFI_YELLOW): Likewise.
14192 (GRUB_EFI_WHITE): Likewise.
14193 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
14194 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
14195 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
14196 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
14197 (GRUB_EFI_BACKGROUND_RED): Likewise.
14198 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
14199 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
14200 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
14201 (GRUB_EFI_TEXT_ATTR): Likewise.
14203 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
14204 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
14205 (kernel_mod_HEADERS): Added efi/time.h.
14207 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
14209 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
14210 include/grub/efi/api.h, include/grub/efi/console_control.h,
14211 include/grub/efi/efi.h, include/grub/efi/pe32.h,
14212 include/grub/i386/efi/time.h, kern/efi/efi.c,
14213 kern/i386/efi/init.c, kern/i386/efi/startup.S,
14214 and util/i386/efi/grub-mkimage.c.
14216 * Makefile.in (RMKFILES): Added i386-efi.rmk.
14218 * genmk.rb (PModule#rule): Do not export symbols if
14219 #{prefix}_EXPORTS is set to "no".
14221 * conf/i386-efi.mk: New file.
14222 * conf/i386-efi.rmk: Likewise.
14223 * include/grub/efi/api.h: Likewise.
14224 * include/grub/efi/console_control.h: Likewise.
14225 * include/grub/efi/efi.h: Likewise.
14226 * include/grub/efi/pe32.h: Likewise.
14227 * include/grub/i386/efi/time.h: Likewise.
14228 * kern/efi/efi.c: Likewise.
14229 * kern/i386/efi/init.c: Likewise.
14230 * kern/i386/efi/startup.S: Likewise.
14231 * util/i386/efi/grub-mkimage.c: Likewise.
14233 2006-04-17 Marco Gerards <marco@gnu.org>
14235 * include/grub/script.h: Include <grub/parser.h> and
14236 "grub_script.tab.h".
14237 (struct grub_lexer_param): New struct.
14238 (struct grub_parser_param): Likewise.
14239 (grub_script_create_arglist): Pass the state in an argument.
14240 (grub_script_add_arglist): Likewise.
14241 (grub_script_create_cmdline): Likewise.
14242 (grub_script_create_cmdblock): Likewise.
14243 (grub_script_create_cmdif): Likewise.
14244 (grub_script_create_cmdmenu): Likewise.
14245 (grub_script_add_cmd): Likewise.
14246 (grub_script_arg_add): Likewise.
14247 (grub_script_lexer_ref): Likewise.
14248 (grub_script_lexer_deref): Likewise.
14249 (grub_script_lexer_record_start): Likewise.
14250 (grub_script_lexer_record_stop): Likewise.
14251 (grub_script_mem_record): Likewise.
14252 (grub_script_mem_record_stop): Likewise.
14253 (grub_script_malloc): Likewise.
14254 (grub_script_yylex): Likewise.
14255 (grub_script_yyparse): Likewise.
14256 (grub_script_yyerror): Likewise.
14257 (grub_script_yylex): Likewise.
14258 (grub_script_lexer_init): Return the state.
14260 * normal/lexer.c (grub_script_lexer_state): Removed variable.
14261 (grub_script_lexer_done): Likewise.
14262 (grub_script_lexer_getline): Likewise.
14263 (grub_script_lexer_refs): Likewise.
14264 (script): Likewise.
14265 (newscript): Likewise.
14266 (record): Likewise.
14267 (recording): Likewise.
14268 (recordpos): Likewise.
14269 (recordlen): Likewise.
14270 (grub_script_lexer_init): Return the state instead of setting
14272 (grub_script_lexer_ref): Use the newly added argument for state
14273 instead of globals.
14274 (grub_script_lexer_deref): Likewise.
14275 (grub_script_lexer_record_start): Likewise.
14276 (grub_script_lexer_record_stop): Likewise.
14277 (recordchar): Likewise.
14278 (nextchar): Likewise.
14279 (grub_script_yylex2): Likewise.
14280 (grub_script_yylex): Likewise.
14281 (grub_script_yyerror): Likewise.
14283 * normal/parser.y (func_mem): Removed variable.
14284 (menu_entry): Likewise.
14286 (%lex-param): New parser option.
14287 (%parse-param): Likewise.
14288 (script): Always return the AST.
14289 (argument): Pass the state around.
14290 (arguments): Likewise.
14291 (grubcmd): Likewise.
14292 (commands): Likewise.
14293 (function): Likewise.
14294 (menuentry): Likewise.
14295 (if_statement): Likewise.
14298 * normal/script.c (grub_script_memused): Removed variable.
14299 (grub_script_parsed): Likewise.
14300 (grub_script_malloc): Added a state argument. Use that instead of
14302 (grub_script_mem_record): Likewise.
14303 (grub_script_mem_record_stop): Likewise.
14304 (grub_script_arg_add): Likewise.
14305 (grub_script_add_arglist): Likewise.
14306 (grub_script_create_cmdline): Likewise.
14307 (grub_script_create_cmdif): Likewise.
14308 (grub_script_create_cmdmenu): Likewise.
14309 (grub_script_add_cmd): Likewise.
14310 (grub_script_parse): Setup the state before calling the parser.
14312 2006-04-16 Marco Gerards <marco@gnu.org>
14314 * normal/command.c (grub_command_init): Remove the title command.
14316 * normal/lexer.c (grub_script_yylex): Renamed from this...
14317 (grub_script_yylex2): ... to this.
14318 (grub_script_yylex): New function. Temporary
14319 introduced to filter some tokens.
14320 (grub_script_yyerror): Print a newline.
14322 * normal/main.c (read_config_file): Output information about the
14323 lines that contain errors. Wait for a key after all lines have
14324 been processed. Don't return an empty menu.
14326 * normal/parser.y (func_mem): Don't initialize.
14327 (menu_entry): Likewise.
14328 (err): New variable.
14329 (script): Don't return anything when an error was encountered.
14330 (ws, returns): Removed rules.
14331 (argument): Disabled concatenated variable support.
14332 (arguments): Remove explicit separators.
14333 (grubcmd): Likewise.
14334 (function): Likewise.
14335 (menuentry): Likewise.
14337 (commands): Likewise. Add error handling.
14339 * normal/script.c (grub_script_create_cmdline): If
14340 `grub_script_parsed' is 0, assume the parser encountered an error.
14342 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
14344 * configure.ac: Add support for EFI. Fix the typo
14345 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
14347 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
14349 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
14350 foreign multibyte characters should be shown correctly.
14352 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
14354 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
14356 (read_config_file): Made it to close file before returning.
14358 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
14360 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
14361 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
14362 video/i386/pc/vbefill.c.
14364 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
14365 video/i386/pc/vbefill.c.
14367 * include/grub/video.h (grub_video_blit_format): New enum.
14368 (grub_video_mode_info): Added new member blit_format.
14369 (grub_video_get_blit_format): New function prototype.
14371 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
14372 function prototype.
14373 (grub_video_vbe_map_rgb): Likewise.
14374 (grub_video_vbe_unmap_color): Likewise.
14376 * include/grub/i386/pc/vbeblit.h: New file.
14378 * include/grub/i386/pc/vbefill.h: New file.
14380 * video/video.c (grub_video_get_blit_format): New function.
14381 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
14382 (grub_video_vbe_map_rgb): Likewise.
14383 (grub_video_vbe_unmap_color): Likewise.
14385 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
14387 (grub_video_vbe_blit_render_target): Changed to use more optimized
14389 (grub_video_vbe_setup): Added detection for optimized settings.
14390 (grub_video_vbe_create_render_target): Likewise.
14392 * video/i386/pc/vbeblit.c: New file.
14394 * video/i386/pc/vbefill.c: New file.
14396 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
14398 * font/manager.c (grub_font_get_glyph): Removed font fixup from
14401 * util/unifont2pff.rb: ... and moved it to here. Improved argument
14402 parsing to support both hex and dec ranges. If filename was missing
14403 show usage information.
14405 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
14407 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
14408 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
14410 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
14411 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
14412 (video_mod_SOURCES): Added.
14413 (video_mod_CFLAGS): Likewise.
14414 (video_mod_LDFLAGS): Likewise.
14415 (gfxterm_mod_SOURCES): Likewise.
14416 (gfxterm_mod_CFLAGS): Likewise.
14417 (gfxterm_mod_LDFLAGS): Likewise.
14418 (videotest_mod_SOURCES): Likewise.
14419 (videotest_mod_CFLAGS): Likewise.
14420 (videotest_mod_LDFLAGS): Likewise.
14421 (vesafb_mod_SOURCES): Removed.
14422 (vesafb_mod_CFLAGS): Likewise.
14423 (vesafb_mod_LDFLAGS): Likewise.
14424 (vga_mod_SOURCES): Likewise.
14425 (vga_mod_CFLAGS): Likewise.
14426 (vga_mod_LDFLAGS): Likewise.
14428 * commands/videotest.c: New file.
14430 * font/manager.c (fill_with_default_glyph): Modified to use
14432 (grub_font_get_glyph): Likewise.
14433 (fontmanager): Renamed from this...
14434 (font_manager): ... to this.
14436 * include/grub/font.h (grub_font_glyph): Added new structure.
14437 (grub_font_get_glyph): Modified to use grub_font_glyph.
14439 * include/grub/misc.h (grub_abs): Added as inline function.
14441 * include/grub/video.h: New file.
14443 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
14444 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
14445 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
14446 (grub_vbe_get_controller_info): Renamed from this...
14447 (grub_vbe_bios_get_controller_info): ... to this.
14448 (grub_vbe_get_mode_info): Renamed from this...
14449 (grub_vbe_bios_get_mode_info): ... to this.
14450 (grub_vbe_set_mode): Renamed from this...
14451 (grub_vbe_bios_set_mode): ... to this.
14452 (grub_vbe_get_mode): Renamed from this...
14453 (grub_vbe_bios_get_mode): ... to this.
14454 (grub_vbe_set_memory_window): Renamed from this...
14455 (grub_vbe_bios_set_memory_window): ... to this.
14456 (grub_vbe_get_memory_window): Renamed from this...
14457 (grub_vbe_bios_get_memory_window): ... to this.
14458 (grub_vbe_set_scanline_length): Renamed from this...
14459 (grub_vbe_set_scanline_length): ... to this.
14460 (grub_vbe_get_scanline_length): Renamed from this...
14461 (grub_vbe_bios_get_scanline_length): ... to this.
14462 (grub_vbe_set_display_start): Renamed from this...
14463 (grub_vbe_bios_set_display_start): ... to this.
14464 (grub_vbe_get_display_start): Renamed from this...
14465 (grub_vbe_bios_get_display_start): ... to this.
14466 (grub_vbe_set_palette_data): Renamed from this...
14467 (grub_vbe_bios_set_palette_data): ... to this.
14468 (grub_vbe_set_pixel_rgb): Removed.
14469 (grub_vbe_set_pixel_index): Likewise.
14471 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
14473 (grub_vbe_bios_get_controller_info): ... to this.
14474 (grub_vbe_get_mode_info): Renamed from this...
14475 (grub_vbe_bios_get_mode_info): ... to this.
14476 (grub_vbe_set_mode): Renamed from this...
14477 (grub_vbe_bios_set_mode): ... to this.
14478 (grub_vbe_get_mode): Renamed from this...
14479 (grub_vbe_bios_get_mode): ... to this.
14480 (grub_vbe_set_memory_window): Renamed from this...
14481 (grub_vbe_bios_set_memory_window): ... to this.
14482 (grub_vbe_get_memory_window): Renamed from this...
14483 (grub_vbe_bios_get_memory_window): ... to this.
14484 (grub_vbe_set_scanline_length): Renamed from this...
14485 (grub_vbe_set_scanline_length): ... to this.
14486 (grub_vbe_get_scanline_length): Renamed from this...
14487 (grub_vbe_bios_get_scanline_length): ... to this.
14488 (grub_vbe_set_display_start): Renamed from this...
14489 (grub_vbe_bios_set_display_start): ... to this.
14490 (grub_vbe_get_display_start): Renamed from this...
14491 (grub_vbe_bios_get_display_start): ... to this.
14492 (grub_vbe_set_palette_data): Renamed from this...
14493 (grub_vbe_bios_set_palette_data): ... to this.
14494 (grub_vbe_bios_get_controller_info): Fixed problem with registers
14495 getting corrupted after calling it. Added more pushes and pops.
14496 (grub_vbe_bios_set_mode): Likewise.
14497 (grub_vbe_bios_get_mode): Likewise.
14498 (grub_vbe_bios_get_memory_window): Likewise.
14499 (grub_vbe_bios_set_scanline_length): Likewise.
14500 (grub_vbe_bios_get_scanline_length): Likewise.
14501 (grub_vbe_bios_get_display_start): Likewise.
14502 (grub_vbe_bios_set_palette_data): Likewise.
14504 * normal/cmdline.c (cl_set_pos): Refresh the screen.
14505 (cl_insert): Likewise.
14506 (cl_delete): Likewise.
14508 * term/gfxterm.c: New file.
14510 * term/i386/pc/vesafb.c: Removed file.
14512 * video/video.c: New file.
14514 * video/i386/pc/vbe.c (real2pm): Added new function.
14515 (grub_video_vbe_draw_pixel): Likewise.
14516 (grub_video_vbe_get_video_ptr): Likewise.
14517 (grub_video_vbe_get_pixel): Likewise
14518 (grub_video_vbe_init): Likewise.
14519 (grub_video_vbe_fini): Likewise.
14520 (grub_video_vbe_setup): Likewise.
14521 (grub_video_vbe_get_info): Likewise.
14522 (grub_video_vbe_set_palette): Likewise.
14523 (grub_video_vbe_get_palette): Likewise.
14524 (grub_video_vbe_set_viewport): Likewise.
14525 (grub_video_vbe_get_viewport): Likewise.
14526 (grub_video_vbe_map_color): Likewise.
14527 (grub_video_vbe_map_rgb): Likewise.
14528 (grub_video_vbe_map_rgba): Likewise.
14529 (grub_video_vbe_unmap_color): Likewise.
14530 (grub_video_vbe_fill_rect): Likewise.
14531 (grub_video_vbe_blit_glyph): Likewise.
14532 (grub_video_vbe_blit_bitmap): Likewise.
14533 (grub_video_vbe_blit_render_target): Likewise.
14534 (grub_video_vbe_scroll): Likewise.
14535 (grub_video_vbe_swap_buffers): Likewise.
14536 (grub_video_vbe_create_render_target): Likewise.
14537 (grub_video_vbe_delete_render_target): Likewise.
14538 (grub_video_vbe_set_active_render_target): Likewise.
14539 (grub_vbe_set_pixel_rgb): Remove function.
14540 (grub_vbe_set_pixel_index): Likewise.
14541 (index_color_mode): Remove static variable.
14542 (active_mode): Likewise.
14543 (framebuffer): Likewise.
14544 (bytes_per_scan_line): Likewise.
14545 (grub_video_vbe_adapter): Added new static variable.
14546 (framebuffer): Likewise.
14547 (render_target): Likewise.
14548 (initial_mode): Likewise.
14549 (mode_in_use): Likewise.
14550 (mode_list): Likewise.
14552 2006-03-10 Marco Gerards <marco@gnu.org>
14554 * configure.ac (AC_INIT): Bumped to 1.93.
14556 * DISTLIST: Added `include/grub/hfs.h'.
14558 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
14560 * boot/i386/pc/boot.S (general_error): Before looping, try INT
14561 18H, which might help the BIOS falling back to next boot media.
14563 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
14565 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
14566 Poe Chen <poe.poechen@gmail.com>.
14568 2006-01-17 Marco Gerards <marco@gnu.org>
14570 * include/grub/normal.h: Include <grub/script.h>.
14571 (grub_command_list): Removed struct.
14572 (grub_command_list_t): Removed type.
14573 (grub_menu_entry): Remove members `num' and `command_list'. Add
14574 members `commands' and `sourcecode'.
14575 * include/grub/script.h: Add inclusion guards.
14576 (grub_script_cmd_menuentry): New struct.
14577 (grub_script_execute_menuentry): New prototype.
14578 (grub_script_lexer_record_start): Likewise.
14579 (grub_script_lexer_record_stop): Likewise.
14580 * normal/execute.c (grub_script_execute_menuentry): New function.
14581 * normal/lexer.c (record, recording, recordpos, recordlen): New
14583 (grub_script_lexer_record_start): New function.
14584 (grub_script_lexer_record_stop): Likewise.
14585 (recordchar): Likewise.
14586 (nextchar): Likewise.
14587 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
14588 2048 as the buffer size. Add the tokens `menuentry' and `@'.
14589 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
14590 (current_menu): New variable.
14591 (free_menu): Mainly rewritten.
14592 (grub_normal_menu_addentry): New function.
14593 (read_config_file): Rewritten.
14594 * normal/menu.c (run_menu_entry): Mainly rewritten.
14595 * normal/menu_entry.c (make_screen): Rewritten the code to insert
14597 (run): Mainly rewritten.
14598 * normal/parser.y (menu_entry): New variable.
14599 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
14600 (menuentry): New rule.
14601 (command): Add `menuentry'.
14602 (if_statement): Allow additional returns before `fi'.
14603 * normal/script.c (grub_script_create_cmdmenu): New function.
14605 2006-01-03 Marco Gerards <marco@gnu.org>
14607 * INSTALL: GNU Bison is required.
14608 * configure.ac: Rewritten the test to detect Bison.
14609 * Makefile.in (YACC): New variable. Reported by Xun Sun
14610 <xun.sun.cn@gmail.com>.
14612 2006-01-03 Marco Gerards <marco@gnu.org>
14614 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
14615 the HFS+ filesystem to filesystem blocks.
14616 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
14617 GCC warning is silenced.
14619 2006-01-03 Marco Gerards <marco@gnu.org>
14621 * partmap/apple.c (apple_partition_map_iterate): Convert the data
14622 read from disk from big endian to host byte order.
14624 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
14626 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
14628 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
14629 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
14630 embedded HFS+ filesystem.
14631 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
14632 (grub_hfs_sblock): Move from here...
14633 * include/grub/hfs.h: To here... New file.
14634 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
14636 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
14638 (grub_hfsplus_volheader): Change type of member `magic' to
14640 (grub_hfsplus_data): Add new member `embedded_offset'.
14641 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
14643 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
14644 Calculate the offset.
14646 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
14648 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
14650 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
14652 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
14654 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
14655 ENV->NAME is NULL after allocating ENV->VALUE.
14657 2005-12-25 Marco Gerards <marco@gnu.org>
14659 * kern/env.c (grub_env_set): Rewritten the error handling code.
14661 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
14663 * geninit.sh: Made more robust, and more portable.
14665 2005-12-25 Marco Gerards <marco@gnu.org>
14667 Add support for Apple HFS+ filesystems.
14669 * fs/hfsplus.c: New file.
14671 * DISTLIST: Added `fs/hfsplus.c'.
14673 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
14674 (hfsplus_mod_SOURCES): New variable.
14675 (hfsplus_mod_CFLAGS): Likewise.
14676 (hfsplus_mod_LDFLAGS): Likewise.
14677 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
14678 (grub_setup_SOURCES): Likewise.
14679 (grub_mkdevicemap_SOURCES): Likewise.
14680 (grub_emu_SOURCES): Likewise.
14681 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14683 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
14685 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
14687 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
14689 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
14690 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
14691 include/grub/parser.h, include/grub/script.h, kern/parser.c,
14692 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
14693 normal/lexer.c, normal/parser.y, normal/script.c, and
14695 Removed kern/sparc64/cache.c.
14697 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
14698 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
14701 * configure.ac (AC_INIT): Bumped to 1.92.
14703 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
14705 * kern/err.c (grub_error_push): Added new function to support error
14707 (grub_error_pop): Likewise.
14708 (grub_error_stack_items): New local variable to support error stacks.
14709 (grub_error_stack_pos): Likewise.
14710 (grub_error_stack_assert): Likewise.
14711 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
14713 (grub_print_error): Added support to print errors from error stack.
14715 * include/grub/err.h (grub_error_push): Added function prototype.
14716 (grub_error_pop): Likewise.
14718 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
14720 * configure.ac: Accept `powerpc64' as host_cpu.
14721 (amd64): Rename to `biarch32'.
14723 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
14724 non-cacheline-aligned addresses.
14726 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
14727 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
14728 if `size' is non-zero.
14730 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
14732 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
14733 and `cd' to make sure the filename is not prefixed with a
14735 (pkgdata_MODULES): Add `gpt.mod'.
14736 (gpt_mod_SOURCES): New variable.
14737 (gpt_mod_CFLAGS): Likewise.
14738 (gpt_mod_LDFLAGS): Likewise.
14740 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
14742 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
14745 * partmap/gpt.c: New file.
14747 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
14748 GPT partition map is detected.
14750 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
14752 * commands/i386/pc/play.c: New file.
14753 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
14754 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
14757 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
14759 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
14760 ((unused))' to silence gcc warning.
14762 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
14764 * configure.ac: Correct `AC_PROG_YACC' test.
14766 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
14768 * util/powerpc/ieee1275/grub-install.in: Run the mount point
14769 check before installing files.
14771 2005-11-22 Mike Small <smallm@panix.com>
14773 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
14774 number regex so multidigit numbers are recognized correctly.
14776 2005-11-22 Mike Small <smallm@panix.com>
14778 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
14779 debugging message before attempting to claim memory.
14780 (grub_rescue_cmd_initrd): Add a claim debugging message and try
14781 multiple addresses in case of failure.
14783 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
14785 * term/tparm.c (get_space): Remove empty `if' statement.
14787 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
14789 * kern/parser.c (check_varstate): Rename `state' to 's'.
14791 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
14793 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
14794 variable definitions to the beginning of each function. Sort stack
14796 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
14797 `buf' argument to `char *'.
14799 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
14801 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
14802 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
14803 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
14804 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
14805 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
14806 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
14807 configfile.mod, search.mod, gzio.mod and test.mod.
14808 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
14809 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
14810 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
14811 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
14812 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
14813 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
14814 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
14815 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
14816 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
14817 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
14818 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
14819 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
14820 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
14821 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
14822 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
14823 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
14824 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
14825 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
14826 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
14827 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
14828 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
14829 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
14830 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
14832 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
14834 (pkgdata_MODULES): Add test.mod.
14836 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
14838 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
14839 appending to variables with "+=".
14840 (PModule): Use full pathname to generate *.lst filenames.
14842 * Makefile.in: Fixed list rules moved from genmk.rb.
14843 (.DELETE_ON_ERROR): New special target.
14844 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
14846 * conf/i386-pc.rmk: Include conf/common.mk.
14847 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
14848 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
14849 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
14850 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
14851 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
14852 configfile.mod, search.mod, gzio.mod and test.mod.
14853 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
14854 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
14855 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
14856 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
14857 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
14858 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
14859 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
14860 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
14861 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
14862 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
14863 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
14864 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
14865 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
14866 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
14867 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
14868 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
14869 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
14870 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
14871 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
14872 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
14873 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
14874 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
14875 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
14877 * conf/common.rmk: ... to here. New file.
14879 * conf/common.mk: New file.
14881 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
14883 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
14884 (grub_script.tab.c): ... here.
14886 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
14887 (grub_script.tab.c): ... here.
14889 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
14890 (grub_script.tab.c): ... here.
14892 * normal/command.c (grub_command_find): Fixed a memory leak of
14893 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
14895 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
14897 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
14898 "@" which marks the start of a comment on ARM.
14899 (VARIABLE): Likewise.
14901 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
14903 Add support for Linux/ADFS partition tables.
14905 * partmap/acorn.c: New file.
14907 * include/grub/acorn_filecore.h: Likewise.
14909 * DISTLIST: Added `partmap/acorn.c' and
14910 `include/grub/acorn_filecore.h'.
14912 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
14914 (pkgdata_MODULES): Add `acorn.mod'.
14915 (acorn_mod_SOURCES): New variable.
14916 (acorn_mod_CFLAGS): Likewise.
14918 * conf/sparc64-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/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
14925 (pkgdata_MODULES): Add `acorn.mod'.
14926 (acorn_mod_SOURCES): New variable.
14927 (acorn_mod_CFLAGS): Likewise.
14928 (acorn_mod_LDFLAGS): Likewise.
14930 * include/types.h (grub_disk_addr_t): New typedef.
14932 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
14934 * geninit.sh: New file.
14936 * geninitheader.sh: Likewise.
14938 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
14939 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
14940 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
14941 * commands/configfile.c (grub_configfile_init)
14942 (grub_configfile_fini): Likewise.
14943 * commands/default.c (grub_default_init, grub_default_fini):
14945 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
14946 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
14947 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
14948 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
14950 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
14951 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
14953 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
14954 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
14956 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
14958 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
14960 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
14961 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
14962 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
14963 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
14964 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
14965 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
14966 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
14967 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
14968 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
14969 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
14970 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
14971 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
14972 * partmap/amiga.c (grub_amiga_partition_map_init)
14973 (grub_amiga_partition_map_fini): Likewise.
14974 * partmap/apple.c (grub_apple_partition_map_init)
14975 (grub_apple_partition_map_fini): Likewise.
14976 * partmap/pc.c (grub_pc_partition_map_init)
14977 (grub_pc_partition_map_fini): Likewise.
14978 * partmap/sun.c (grub_sun_partition_map_init,
14979 grub_sun_partition_map_fini): Likewise.
14980 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
14983 * util/grub-emu.c: Include <grub_modules_init.h>.
14984 (main): Don't initialize and de-initialize any modules directly,
14985 use `grub_init_all' and `grub_fini_all' instead.
14987 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
14988 `grub_vesafb_mod_init'.
14989 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
14991 * term/i386/pc/vga.c (grub_vga_init): Renamed to
14992 `grub_vga_mod_init'. Updated all users.
14993 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
14995 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
14996 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
14999 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
15000 Generate a function to initialize the module in utilities.
15001 Updated all callers.
15002 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
15003 initialize the module in utilities. Updated all callers.
15005 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
15007 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
15008 escape sequence and a literal ^L to clear the screen.
15010 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
15011 when returning from Open Firmware.
15013 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
15015 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
15016 (grub_ofconsole_height): Likewise.
15017 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
15018 manually insert a '\n'.
15019 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
15020 `grub_ofconsole_height'. Return early if these are already set.
15022 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
15024 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
15025 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
15026 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
15027 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
15028 and `normal/script.c'.
15029 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
15030 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15031 (test_mod_SOURCES): New variable.
15032 (test_mod_CFLAGS): Likewise.
15033 (test_mod_LDFLAGS): Likewise.
15034 (pkgdata_MODULES): Add `test.mod'.
15035 (grub_script.tab.c): New rule.
15036 (grub_script.tab.h): Likewise.
15038 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
15040 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
15041 `commands/test.c', `normal/execute.c', `normal/lexer.c',
15042 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15043 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
15044 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15045 (test_mod_SOURCES): New variable.
15046 (test_mod_CFLAGS): Likewise.
15047 (pkgdata_MODULES): Add `test.mod'.
15048 (grub_script.tab.c): New rule.
15049 (grub_script.tab.h): Likewise.
15051 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
15053 Add initial scripting support.
15055 * commands/test.c: New file.
15056 * include/grub/script.h: Likewise.
15057 * normal/execute.c: Likewise.
15058 * normal/function.c: Likewise.
15059 * normal/lexer.c: Likewise.
15060 * normal/parser.y: Likewise.
15061 * normal/script.c: Likewise.
15063 * configure.ac: Add `AC_PROG_YACC' test.
15065 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
15066 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
15067 `normal/function.c' and `normal/script.c'.
15068 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
15069 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15070 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
15072 (pkgdata_MODULES): Add `test.mod'.
15073 (grub_script.tab.c): New rule.
15074 (grub_script.tab.h): Likewise.
15076 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
15078 * include/grub/normal.h (grub_test_init): New prototype.
15079 (grub_test_fini): Likewise.
15081 * normal/command.c: Include <grub/script.h>.
15082 (grub_command_execute): Rewritten.
15084 * util/grub-emu.c (main): Call `grub_test_init' and
15087 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
15089 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
15091 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
15092 there are no pending characters.
15094 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
15096 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
15097 `grub_strndup' to drop device arguments. Replace unnecessary
15098 `grub_strndup' with `grub_strdup'.
15100 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
15102 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
15103 `debug' environment variable has been set.
15105 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
15107 * Makefile.in (install-local): Use $(DATA).
15108 (uninstall): Likewise.
15109 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
15110 (sbin_UTILITIES): ... to here.
15111 (sbin_SCRIPTS): New variable.
15112 (grub_install_SOURCES): New variable.
15113 * util/powerpc/ieee1275/grub-install.in: New file.
15114 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
15116 (add_segments): Call `grub_util_get_path'.
15118 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
15120 From Timothy Baldwin:
15121 * commands/ls.c (grub_ls_list_files): Close FILE with
15123 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
15125 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
15127 * include/grub/parser.h: New file.
15129 * kern/parser.c: Likewise.
15131 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
15132 (grub_setup_SOURCES): Likewise.
15133 (grub_probefs_SOURCES): Likewise.
15134 (grub_emu_SOURCES): Likewise.
15135 (kernel_img_HEADERS): Add `parser.h'.
15137 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
15138 (grub_emu_SOURCES): Add `kern/parser.c'.
15139 (grubof_SOURCES): Likewise.
15141 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
15142 (grubof_SOURCES): Add `kern/parser.c'.
15144 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
15146 * kern/misc.c (grub_split_cmdline): Removed function.
15148 * kern/rescue.c: Include <grub/parser.h>.
15149 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
15150 of `grub_split_cmdline'.
15152 * normal/command.c: Include <grub/parser.h>.
15153 (grub_command_execute): Use `grub_parser_split_cmdline' instead
15154 of `grub_split_cmdline'.
15156 * normal/completion.c: Include <grub/parser.h>.
15157 (cmdline_state): New variable.
15158 (iterate_dir): End the filename with a quote depending on the
15159 command line state.
15160 (get_state): new function.
15161 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
15162 split the arguments and determine the current argument. When the
15163 argument string is not quoted, escape all spaces.
15165 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
15167 * normal/sparc64/setjmp.S: New file.
15169 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
15171 * include/grub/sparc64/libgcc.h: New file.
15172 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
15173 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
15174 normal/sparc64/setjmp.c.
15176 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
15178 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
15179 * kern/sparc64/cache.S: New file.
15180 * kern/sparc64/cache.c: Removed.
15181 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
15182 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
15184 (COMMON_LDFLAGS): Add -melf64_sparc.
15185 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
15186 (grubof_SOURCES): Use cache.S instead of cache.c.
15187 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
15188 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
15189 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
15191 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
15192 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
15193 (linux_mod_CFLAGS): Commented out.
15194 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
15195 out because module isn't built.
15196 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
15197 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
15198 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
15199 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
15200 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
15201 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
15202 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
15203 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
15204 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
15205 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
15206 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
15207 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
15208 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
15209 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
15211 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
15213 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
15214 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
15215 longer, because HFS should not be used on PC.
15217 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
15219 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
15220 consistently within the loop.
15222 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
15224 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
15225 directory can not be read.
15227 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
15229 * configure.ac (AC_INIT): Increase the version number to 1.91.
15231 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
15232 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
15233 term/i386/pc/serial.c.
15235 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
15237 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
15238 file size must be permitted.
15240 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
15241 between %ah and %al.
15243 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
15245 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
15247 Call the hook with a NUL-terminated filename.
15248 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
15251 * kern/term.c (cursor_state): New variable.
15252 (grub_term_set_current): Reset the cursor state on a new
15254 (grub_setcursor): Rewritten to use CURSOR_STATE.
15255 (grub_getcursor): New function.
15257 * include/grub/term.h (grub_getcursor): New prototype.
15259 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
15260 integers on ARM. Reported by Timothy Baldwin
15261 <T.E.Baldwin99@members.leeds.ac.uk>.
15263 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
15265 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
15267 (grub_sfs_dir): Likewise.
15269 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
15271 Add support for the SFS filesystem.
15273 * fs/sfs.c: New file.
15275 * DISTLIST: Added `fs/sfs.c'.
15277 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
15278 (grub_probefs_SOURCES): Likewise.
15279 (grub_emu_SOURCES): Likewise.
15280 (pkgdata_MODULES): Add `sfs.mod'.
15281 (sfs_mod_SOURCES): New variable.
15282 (sfs_mod_CFLAGS): Likewise.
15283 (sfs_mod_LDFLAGS): Likewise.
15285 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
15286 (pkgdata_MODULES): Add `sfs.mod'.
15287 (sfs_mod_SOURCES): New variable.
15288 (sfs_mod_CFLAGS): Likewise.
15290 * util/grub-emu.c (main): Call `grub_sfs_init' and
15293 * include/grub/fs.h (grub_sfs_init): New prototype.
15294 (grub_sfs_fini): Likewise.
15296 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
15298 Add support for the AFFS filesystem.
15300 * fs/affs.c: New file.
15302 * DISTLIST: Added `fs/affs.c'.
15304 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
15305 (grub_probefs_SOURCES): Likewise.
15306 (grub_emu_SOURCES): Likewise.
15307 (pkgdata_MODULES): Add `affs.mod'.
15308 (affs_mod_SOURCES): New variable.
15309 (affs_mod_CFLAGS): Likewise.
15310 (affs_mod_LDFLAGS): Likewise.
15312 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
15313 (pkgdata_MODULES): Add `affs.mod'.
15314 (affs_mod_SOURCES): New variable.
15315 (affs_mod_CFLAGS): Likewise.
15317 * util/grub-emu.c (main): Call `grub_affs_init' and
15320 * include/grub/fs.h (grub_affs_init): New prototype.
15321 (grub_affs_fini): Likewise.
15323 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
15325 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
15327 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
15329 * configure.ac: Accept `x86_64' as host_cpu. In that case add
15332 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
15335 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
15336 (COMMON_LDFLAGS): New variable.
15337 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
15338 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
15339 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
15340 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
15341 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
15342 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
15343 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
15344 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
15345 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
15346 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
15347 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
15348 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
15349 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
15350 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
15351 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
15353 (normal_mod_ASFLAGS): Add `-m32'.
15355 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
15356 (grub_host_size_t, grub_host_ssize_t): New types.
15357 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
15358 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
15359 `GRUB_HOST_SIZEOF_VOID_P'.
15361 * include/grub/kernel.h (struct grub_module_header): Type of
15362 member offset changed to `grub_host_off_t'. Type of member size
15363 changed to `grub_host_size_t'.
15364 (struct grub_module_info): Type of member offset changed to
15365 `grub_host_off_t'. Type of member size changed to
15366 `grub_host_size_t'.
15368 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
15370 Make GRUB's kernel compliant to Multiboot Specification.
15372 * kern/i386/pc/startup.S (multiboot_header): New label.
15373 (multiboot_entry): Likewise.
15374 (multiboot_trampoline): Likewise.
15376 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
15377 Increased to 0x4A0.
15379 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
15380 put parentheses after a question mark.
15381 [!GRUB_UTIL] (my_mod): New variable.
15383 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
15385 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
15387 Adds support for the XFS filesystem. Btrees are not supported
15390 * fs/xfs.c: New file.
15392 * DISTLIST: Added `fs/xfs.c'.
15394 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
15395 (grub_probefs_SOURCES): Likewise.
15396 (grub_emu_SOURCES): Likewise.
15397 (pkgdata_MODULES): Add `xfs.mod'.
15398 (xfs_mod_SOURCES): New variable.
15399 (xfs_mod_CFLAGS): Likewise.
15401 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
15402 (pkgdata_MODULES): Add `xfs.mod'.
15403 (xfs_mod_SOURCES): New variable.
15404 (xfs_mod_CFLAGS): Likewise.
15406 * util/grub-emu.c (main): Call `grub_xfs_init' and
15409 * include/grub/fs.h (grub_xfs_init): New prototype.
15410 (grub_xfs_fini): Likewise.
15413 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
15415 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
15416 color modes, allow greater than 16 colors to be configured as
15419 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
15421 * normal/completion.c (complete_arguments): Add the qualifier
15422 const into OPTIONS.
15424 From Omniflux <omniflux+lists@omniflux.com>:
15425 * include/grub/terminfo.h: New file.
15426 * include/grub/tparm.h: Likewise.
15427 * include/grub/i386/pc/serial.h: Likewise.
15428 * term/terminfo.c: Likewise.
15429 * term/tparm.c: Likewise.
15430 * term/i386/pc/serial.c: Likewise.
15431 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
15433 (terminfo_mod_SOURCES): New variable.
15434 (terminfo_mod_CFLAGS): Likewise.
15435 (serial_mod_SOURCES): Likewise.
15436 (serial_mod_CFLAGS): Likewise.
15438 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
15440 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
15441 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
15442 and kern/powerpc/ieee1275/cmain.c, respectively.
15444 * boot/powerpc/ieee1275/crt0.S: Moved to ...
15445 * kern/powerpc/ieee1275/crt0.S: ... here.
15447 * boot/powerpc/ieee1275/cmain.c: Moved to ...
15448 * kern/powerpc/ieee1275/cmain.c: ... here.
15450 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
15451 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
15452 instead of boot/powerpc/ieee1275/crt0.S and
15453 boot/powerpc/ieee1275/cmain.c, respectively.
15455 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
15456 sectors. It was not used anyway.
15458 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
15460 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
15461 `unused parameter' warning.
15463 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
15465 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
15467 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
15470 2005-08-28 Marco Gerards <metgerards@student.han.nl>
15472 * include/grub/normal.h (enum grub_completion_type): Added
15473 `GRUB_COMPLETION_TYPE_ARGUMENT'.
15475 * normal/cmdline.c (print_completion): Handle
15476 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
15477 * normal/menu_entry.c (store_completion): Likewise.
15479 * normal/completion.c (complete_arguments): New function.
15480 (grub_normal_do_completion): Call `complete_arguments' when the
15481 current words start with a dash.
15483 2005-08-27 Marco Gerards <metgerards@student.han.nl>
15485 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
15486 `gzio.mod' instead of `io.mod').
15488 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
15490 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
15491 (DISTDIRS): Added io and video.
15492 Rewrite the search routine to make an output consistently.
15494 * DISTLIST: Added conf/sparc64-ieee1275.mk,
15495 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
15496 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
15497 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
15498 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
15499 util/powerpc/ieee1275/misc.c.
15501 * include/grub/gzio.h: New file.
15502 * io/gzio.c: Likewise.
15504 * kern/file.c (grub_file_close): Call grub_device_close only if
15505 FILE->DEVICE is not NULL.
15507 * include/grub/mm.h [!NULL] (NULL): New macro.
15509 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
15511 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
15512 (pkgdata_MODULES): Added gzio.mod.
15513 (gzio_mod_SOURCES): New variable.
15514 (gzio_mod_CFLAGS): Likewise.
15516 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
15517 (pkgdata_MODULES): Added gzio.mod.
15518 (gzio_mod_SOURCES): New variable.
15519 (gzio_mod_CFLAGS): Likewise.
15521 * commands/cat.c: Include grub/gzio.h.
15522 (grub_cmd_cat): Use grub_gzfile_open instead of
15525 * commands/cmp.c: Include grub/gzio.h.
15526 (grub_cmd_cmp): Use grub_gzfile_open instead of
15529 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
15530 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
15532 (grub_rescue_cmd_module): Likewise.
15534 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
15536 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
15537 kern/sparc64/ieee1275/init.c because it contains _start.
15538 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
15540 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
15542 * configure.ac: Add support for sparc64 host with ieee1275
15544 * configure: Generated from configure.ac.
15545 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
15547 (grub_ofdisk_read): Likewise.
15548 (grub_ofdisk_open): Use %p to print pointer values, and cast the
15549 pointers as (void *) to remove a warning.
15550 (grub_ofdisk_close): Likewise.
15551 (grub_ofdisk_read): Likewise.
15552 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
15553 returns, so make it return void to remove a warning.
15554 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
15555 Corresponding prototype change.
15556 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
15557 values, and cast the pointers as (void *) to remove a warning.
15558 (grub_mm_dump): Likewise.
15559 * conf/sparc64-ieee1275.mk: New file.
15560 * conf/sparc64-ieee1275.rmk: Likewise.
15561 * include/grub/sparc64/setjmp.h: Likewise.
15562 * include/grub/sparc64/types.h: Likewise.
15563 * include/grub/sparc64/ieee1275/console.h: Likewise.
15564 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
15565 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
15566 * include/grub/sparc64/ieee1275/time.h: Likewise.
15567 * kern/sparc64/cache.c: Likewise.
15568 * kern/sparc64/dl.c: Likewise.
15569 * kern/sparc64/ieee1275/init.c: Likewise.
15570 * kern/sparc64/ieee1275/openfw.c: Likewise.
15572 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
15574 * util/console.c (grub_ncurses_putchar): If C is greater than
15575 0x7f, set C to a question mark.
15576 (grub_ncurses_getcharwidth): New function.
15577 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
15580 * normal/menu.c (print_entry): Made aware of Unicode. First,
15581 convert TITLE to UCS-4, and predict the cursor position by
15584 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
15586 * kern/misc.c (grub_utf16_to_utf8): Likewise.
15588 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
15590 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
15591 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
15594 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
15595 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
15596 grub_strcpy and grub_strlen. Take it into account that a space
15597 character is inserted as a delimiter.
15599 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
15601 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
15602 invalid magic in the error.
15604 * commands/search.c: New file.
15606 * util/grub-emu.c (main): Call grub_search_init and
15609 * kern/rescue.c (grub_rescue_print_disks): Removed.
15610 (grub_rescue_print_devices): New function.
15611 (grub_rescue_cmd_ls): Use grub_device_iterate with
15612 grub_rescue_print_devices instead of grub_disk_dev_iterate with
15613 grub_rescue_print_disks.
15615 * kern/partition.c (grub_partition_iterate): Return the result of
15616 PARTMAP->ITERATE instead of GRUB_ERRNO.
15618 * kern/device.c: Include grub/partition.h.
15619 (grub_device_iterate): New function.
15621 * include/grub/partition.h (grub_partition_iterate): Return int
15622 instead of grub_err_t.
15624 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
15626 [GRUB_UTIL] (grub_search_fini): Likewise.
15628 * include/grub/device.h (grub_device_iterate): New prototype.
15630 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
15632 (pkgdata_MODULES): Added search.mod.
15633 (search_mod_SOURCES): New variable.
15634 (search_mod_CFLAGS): Likewise.
15636 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
15637 (pkgdata_MODULES): Added search.mod.
15638 (search_mod_SOURCES): New variable.
15639 (search_mod_CFLAGS): Likewise.
15641 * commands/ls.c (grub_ls_list_disks): Renamed to ...
15642 (grub_ls_list_devices): ... this, and use grub_device_iterate.
15643 All callers changed.
15645 * DISTLIST: Added commands/search.c.
15647 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
15649 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
15651 (grub_getcharwidth): New function.
15653 * kern/misc.c (grub_utf8_to_ucs4): New function.
15655 * include/grub/term.h (struct grub_term): Added a new member
15657 (grub_getcharwidth): New prototype.
15659 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
15661 * term/i386/pc/console.c (map_char): New function. Segregated from
15662 grub_console_putchar.
15663 (grub_console_putchar): Use map_char.
15664 (grub_console_getcharwidth): New function.
15665 (grub_console_term): Specified grub_console_getcharwidth as
15668 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
15669 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
15671 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
15673 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
15674 on grub_strtoul completely.
15675 (write_char): Declare local variables in the beginning of the
15677 (grub_vesafb_getcharwidth): New function.
15678 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
15681 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
15683 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
15684 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
15685 commands/i386/pc/vbetest.c.
15687 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
15688 call grub_vbe_get_controller_info again, because the returned
15689 information is volatile.
15690 (grub_vbe_set_video_mode): Mostly rewritten.
15691 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
15692 grub_vbe_status_t correctly.
15693 (grub_vbe_get_video_mode_info): Likewise.
15694 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
15695 several if statements.
15697 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
15698 * commands/i386/pc/vbeinfo.c: ... this.
15700 * commands/i386/pc/vbe_test.c: Renamed to ...
15701 * commands/i386/pc/vbetest.c: ... this.
15703 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
15705 (grub_cmd_vbeinfo): ... this. Save video modes before
15706 iterating. Skip a video mode, if it is not available, not enough
15707 information is given or it is monochrome. Show the memory
15708 model. Leave the interpretation of MODEVAR to grub_strtoul
15710 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
15711 (GRUB_MOD_FINI): Likewise.
15713 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
15714 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
15715 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
15716 duplicated grub_env_get. Leave the interpretation of MODEVAR to
15717 grub_strtoul completely.
15718 (real2pm): Removed.
15719 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
15720 (GRUB_MOD_FINI): Likewise.
15722 * normal/misc.c: Include grub/mm.h.
15724 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
15725 vbe_list_modes with vbetest.mod and vbeinfo.mod.
15726 (vbe_list_modes_mod_SOURCES): Removed.
15727 (vbe_list_modes_mod_CFLAGS): Likewise.
15728 (vbe_test_mod_SOURCES): Likewise.
15729 (vbe_test_mod_CFLAGS): Likewise.
15730 (vbeinfo_mod_SOURCES): New variable.
15731 (vbeinfo_mod_CFLAGS): Likewise.
15732 (vbetest_mod_SOURCES): Likewise.
15733 (vbetest_mod_CFLAGS): Likewise.
15735 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
15737 * normal/misc.c: New file.
15739 * DISTLIST: Added normal/misc.c.
15741 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
15742 DISK to HOOK. Call HOOK with DISK.
15743 * partmap/apple.c (apple_partition_map_iterate): Likewise.
15744 * partmap/pc.c (pc_partition_map_iterate): Likewise.
15745 * partmap/sun.c (sun_partition_map_iterate): Likewise.
15747 * normal/menu_entry.c (struct screen): Added a new member
15748 "completion_shown".
15749 (completion_buffer): New global variable.
15750 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
15751 (store_completion): New function.
15752 (complete): Likewise.
15753 (clear_completions): Likewise.
15754 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
15755 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
15756 a tab, call complete.
15758 * normal/completion.c (disk_dev): Removed.
15759 (print_simple_completion): Likewise.
15760 (print_partition_completion): Likewise.
15761 (print_func): New global variable.
15762 (add_completion): Do not take the arguments WHAT or PRINT any
15763 longer. Added a new argument TYPE. Instead of printing directly,
15764 call PRINT_FUNC if not NULL.
15765 All callers changed.
15766 (complete_device): Use a local variable DEV instead of
15767 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
15768 (grub_normal_do_completion): Take a new argument HOOK. Do not
15769 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
15770 empty string, return NULL instead.
15771 All callers changed.
15773 * normal/cmdline.c (print_completion): New function.
15775 * kern/partition.c (grub_partition_iterate): Add an argument DISK
15777 All callers changed.
15779 * kern/disk.c (grub_print_partinfo): Removed.
15781 * include/grub/partition.h (struct grub_partition_map): Add a new
15782 argument DISK into HOOK of ITERATE.
15783 (grub_partition_iterate): Add a new argument DISK to HOOK.
15785 * include/grub/normal.h (enum grub_completion_type): New enum.
15786 (grub_completion_type_t): New type.
15787 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
15788 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
15789 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
15790 (GRUB_COMPLETION_TYPE_FILE): Likewise.
15791 (grub_normal_do_completion): Added a new argument HOOK.
15792 (grub_normal_print_device_info): New prototype.
15794 * include/grub/disk.h (grub_print_partinfo): Removed.
15796 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
15797 (normal_mod_SOURCES): Likewise.
15798 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15799 (normal_mod_SOURCES): Likewise.
15801 * commands/ls.c (grub_ls_list_disks): Use
15802 grub_normal_print_device_info instead of grub_print_partinfo. Free
15804 (grub_ls_list_files): Use grub_normal_print_device_info instead of
15805 duplicating the code.
15807 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
15809 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
15810 follow GCS more precisely.
15811 * commands/i386/pc/vbe_test.c: Likewise.
15812 * include/grub/i386/pc/vbe.h: Likewise.
15813 * term/i386/pc/vesafb.c: Likewise.
15814 * video/i386/pc/vbe.c: Likewise.
15816 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
15818 * DISTLIST: Added term/i386/pc/vesafb.c
15819 DISTLIST: Added video/i386/pc/vbe.c
15820 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
15821 DISTLIST: Added commands/i386/pc/vbe_test.c.
15822 * commands/i386/pc/vbe_list_modes.c: New file.
15823 * commands/i386/pc/vbe_test.c: Likewise.
15824 * term/i386/pc/vesafb.c: Likewise.
15825 * video/i386/pc/vbe.c: Likewise.
15826 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
15827 (grub_vbe_probe) Added prototype.
15828 (grub_vbe_set_video_mode) Likewise.
15829 (grub_vbe_get_video_mode) Likewise.
15830 (grub_vbe_get_video_mode_info) Likewise.
15831 (grub_vbe_set_pixel_rgb) Likewise.
15832 (grub_vbe_set_pixel_index) Likewise.
15833 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
15834 (pkgdata_MODULES): Added vesafb.mod.
15835 (pkgdata_MODULES): Added vbe_list_modes.mod.
15836 (pkgdata_MODULES): Added vbe_test.mod.
15837 (vbe_mod_SOURCES): Added.
15838 (vbe_mod_CFLAGS): Likewise.
15839 (vesafb_mod_SOURCES): Likewise.
15840 (vesafb_mod_CFLAGS): Likewise.
15841 (vbe_list_modes_mod_SOURCES): Likewise.
15842 (vbe_list_modes_mod_CFLAGS): Likewise.
15843 (vbe_test_mod_SOURCES): Likewise.
15844 (vbe_test_mod_CFLAGS): Likewise.
15846 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
15848 * normal/command.c (grub_command_execute): If INTERACTIVE is
15849 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
15850 CMDLINE. Disable the pager if INTERACTIVE is true.
15851 All callers are changed.
15853 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
15854 before reading a config file.
15855 * normal/main.c (read_config_file): Even if a command is not
15856 found, register it if it is within an entry.
15858 * util/grub-emu.c: Include sys/types.h and unistd.h.
15859 (options): Added --hold.
15860 (struct arguments): Added a new member "hold".
15861 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
15863 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
15864 cleared by a debugger, if it is not zero.
15866 * include/grub/normal.h (grub_command_execute): Add an argument
15869 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
15871 * DISTLIST: Added include/grub/i386/pc/vbe.h.
15873 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
15875 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
15876 program with another one, because the old one didn't detect a bug
15877 in gcc-3.4. Always use regparm 2, because the new test is still
15878 not enough for gcc-4.0. Someone must investigate a simple test
15879 case which detects a bug in gcc-4.0.
15881 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
15883 * DISTLIST: Added normal/completion.c.
15885 * normal/completion.c: New file.
15887 * term/i386/pc/console.c (grub_console_getwh): New function.
15888 (grub_console_term): Assign grub_console_getwh to getwh.
15890 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
15891 function is defined in normal/completion.c as
15892 grub_normal_do_completion.
15893 (grub_cmdline_get): Use grub_normal_do_completion instead of
15896 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
15897 returns non-zero, otherwise return 0.
15898 (grub_partition_iterate): First, probe the partition map. Then,
15899 call ITERATE only for this partition map.
15901 * kern/misc.c (grub_strncmp): Rewritten.
15903 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
15904 returns non-zero. Otherwise return 0.
15906 * include/grub/partition.h (grub_partition_map_iterate): Return
15907 int instead of void.
15909 * include/grub/normal.h (grub_normal_do_completion): New prototype.
15911 * include/grub/misc.h (grub_strncmp): Change the type of N to
15914 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
15917 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
15918 unsigned explicitly before comparing it with I.
15920 * kern/main.c (grub_env_write_root): Add the attribute unused into
15923 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
15924 normal/completion.c.
15925 (normal_mod_SOURCES): Likewise.
15926 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15927 (normal_mod_SOURCES): Likewise.
15929 * normal/command.c (grub_iterate_commands): If ITERATE returns
15930 non-zero, return one immediately.
15932 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
15934 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
15935 * kern/i386/pc/startup.S: Updated Global Descriptor table's
15937 (grub_vbe_get_controller_info): New function.
15938 (grub_vbe_get_mode_info): Likewise.
15939 (grub_vbe_set_mode): Likewise.
15940 (grub_vbe_get_mode): Likewise.
15941 (grub_vbe_set_memory_window): Likewise.
15942 (grub_vbe_get_memory_window): Likewise.
15943 (grub_vbe_set_scanline_length): Likewise.
15944 (grub_vbe_get_scanline_length): Likewise.
15945 (grub_vbe_set_display_start): Likewise.
15946 (grub_vbe_get_display_start): Likewise.
15947 (grub_vbe_set_palette_data): Likewise.
15948 * include/grub/i386/pc/vbe.h: New file.
15950 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
15952 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
15953 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
15954 * DISTLIST: Likewise.
15955 * kern/ieee1275/of.c: Moved to ...
15956 * kern/ieee1275/ieee1275.c: ... here.
15958 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
15960 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
15961 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
15962 Pass 0 as `end' parameter to grub_strtoul().
15964 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
15966 * include/grub/powerpc/ieee1275/console.h: Do not include
15967 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
15969 (grub_console_cur_color): Remove i386-specific prototype.
15970 (grub_console_real_putchar): Likewise.
15971 (grub_console_checkkey): Likewise.
15972 (grub_console_getkey): Likewise.
15973 (grub_console_getxy): Likewise.
15974 (grub_console_gotoxy): Likewise.
15975 (grub_console_cls): Likewise.
15976 (grub_console_setcursor): Likewise.
15977 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
15978 Include <grub/machine/console.h>.
15979 * term/ieee1275/ofconsole.c: Likewise.
15981 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
15983 * Makefile.in (LIBLZO): New variable.
15985 * configure.ac: Check for LZO version 2.
15987 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
15988 lzo/lzo1x.h instead of lzo1x.h.
15990 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
15993 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
15994 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
15996 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
15997 copying the data from PARTITION to P.
15999 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
16001 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
16002 negative, unload the module.
16004 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
16005 map is "pc_partition_map" but not "pc".
16006 (usage): Fix the description. The options are --boot-image and
16007 --core-image but not --boot-file or --core-file.
16008 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
16009 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
16012 * util/i386/pc/grub-install.in: Do not specify --boot-file or
16013 --core-file. Specify INSTALL_DEVICE as an argument.
16015 * util/console.c: Include config.h.
16016 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
16017 [HAVE_NCURSES_H]: Include ncurses.h.
16018 [HAVE_CURSES_H]: Include curses.h.
16019 [!A_NORMAL] (A_NORMAL): Defined as zero.
16020 [!A_STANDOUT] (A_STANDOUT): Likewise.
16022 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
16024 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
16026 * configure.ac: Check for curses libraries and headers.
16028 * Makefile.in (LIBCURSES): New variable.
16030 * genmk.rb (Script::rule): Set the executable bits.
16032 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
16033 name of the PC partition map is "pc_partition_map" but not "pc".
16035 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
16037 * util/i386/pc/grub-install.in (grub_probefs): New variable.
16038 (modules): Likewise.
16039 (usage): Added descriptions for --modules and --grub-probefs.
16040 Handle --modules and --grub-probefs. Save the arguments in MODULES
16041 and GRUB_PROBEFS, respectively.
16042 Auto-detect a filesystem module against GRUBDIR. If the result is
16043 empty and modules are not specified explicitly, abort the
16044 installation. Add the result to MODULES.
16046 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
16047 disk/powerpc/ieee1275/ofdisk.c,
16048 include/grub/powerpc/ieee1275/init.h and
16049 term/powerpc/ieee1275/ofconsole.c.
16050 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
16051 term/ieee1275/ofconsole.c.
16053 * include/grub/powerpc/ieee1275/console.h: Resurrected.
16055 * COPYING: Upgraded to the latest version. Only the address of the
16056 FSF office has changed.
16058 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
16060 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
16061 kern/ieee1275.c with kern/ieee1275/of.c.
16063 * kern/ieee1275.c: Moved to ...
16064 * kern/ieee1275/of.c: ... here.
16066 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
16068 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
16071 * config.guess: Updated to the latest version from gnulib.
16072 * config.sub: Likewise.
16073 * install.sh: Likewise.
16074 * mkinstalldirs: Likewise.
16076 * include/grub/console.h: Removed. This file is arch-specific. Do
16077 not put this in include/grub.
16079 * include/grub/i386/pc/console.h: Resurrected.
16081 * util/console.c: Include grub/machine/console.h instead of
16083 * util/grub-emu.c: Likewise.
16085 2005-08-04 Marco Gerards <metgerards@student.han.nl>
16087 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
16090 From Vincent Pelletier <subdino2004@yahoo.fr>
16091 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
16092 Redefined to use grub_getwh.
16093 (grub_term): New member named getwh.
16094 (grub_getwh): New prototype.
16095 * kern/term.c (grub_getwh): New function.
16096 * term/i386/pc/console.c (grub_console_getwh): New function.
16097 (grub_console_term): New member `getwh'.
16098 * term/i386/pc/vga.c (grub_vga_getwh): New function.
16099 (grub_vga_term): New member `getwh'.
16100 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
16102 (grub_ofconsole_getw): New function.
16103 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
16104 (grub_ofconsole_term): New field named getwh and new initial
16107 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
16109 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
16110 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
16111 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
16112 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
16113 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
16114 of <grub/machine/ieee1275.h>.
16115 * commands/ieee1275/reboot.c: Likewise.
16116 * boot/powerpc/ieee1275/ieee1275.c: Move ...
16117 * kern/ieee1275.c: ... to here. All users updated. Change all
16118 parameter structs to use new type `grub_ieee1275_cell_t'.
16119 * term/powerpc/ieee1275/ofconsole.c: Move ...
16120 * term/ieee1275/ofconsole.c: ... to here. All users updated.
16121 * disk/powerpc/ieee1275/ofdisk.c: Move ...
16122 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
16123 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
16125 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
16126 Remove unused prototypes. All users updated.
16127 * include/grub/powerpc/ieee1275/console.h: Removed.
16128 * include/grub/powerpc/ieee1275/ieee1275.h: Define
16129 `grub_ieee1275_cell_t'.
16130 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
16131 Cast comparisons with -1 to the correct type.
16132 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
16133 type to match `grub_ieee1275_entry_fn'.
16135 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
16137 * DISTLIST: Added util/i386/pc/grub-probefs.c.
16139 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
16140 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
16142 (grub_probefs_SOURCES): New variable.
16144 * util/i386/pc/grub-probefs.c: New file.
16146 * util/i386/pc/grub-setup.c (main): Call
16147 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
16148 grub_hfs_init and grub_jfs_init to initialize the system. Call
16149 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
16150 grub_pc_partition_map_fini to finish the system.
16152 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
16154 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
16156 (grub_multiboot_load_elf32): Likewise.
16157 (grub_multiboot_is_elf64): Likewise.
16158 (grub_multiboot_load_elf64): Likewise.
16159 (grub_multiboot_load_elf): Likewise.
16160 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
16161 an ELF32 or ELF64 file.
16162 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
16164 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
16165 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
16166 NULL before calling FS->LABEL.
16167 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
16168 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
16169 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
16170 before calling FS->LABEL.
16172 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
16174 * util/i386/pc/grub-install.in (datadir): New variable.
16176 (pkgdatadir): New variable.
16177 (pkglibdir): Removed.
16179 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
16181 * DISTLIST: Added util/i386/pc/grub-install.in.
16183 * util/i386/pc/grub-install.in: New file.
16185 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
16186 (grub_install_SOURCES): Likewise.
16188 * genmk.rb: Added support for scripts.
16189 (Script): New class.
16190 (scripts): New variable.
16192 * Makefile.in (install-local): Install sbin_SCRIPTS by
16194 (uninstall): Remove sbin_SCRIPTS.
16196 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
16197 device, try to get a GRUB device by
16198 grub_util_biosdisk_get_grub_dev.
16201 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
16202 description for --device-map.
16204 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
16206 Change the semantics of variable hooks. They now return strings
16207 instead of error values.
16209 * util/i386/pc/grub-setup.c: Include grub/env.h.
16210 (setup): Use grub_device_set_root instead of grub_env_set.
16212 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
16213 grub_env_get instead of grub_device_set_root and
16214 grub_device_get_root, respectively.
16216 * kern/main.c (grub_env_write_root): New function.
16217 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
16218 grub_env_set instead of grub_device_set_root.
16220 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
16222 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
16223 rather than calling ENV->WRITE_HOOK afterwards.
16224 (grub_env_get): Return the result of ENV->READ_HOOK rather than
16225 passing a pointer of a pointer.
16226 (grub_register_variable_hook): Change the types of "read_hook" and
16227 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
16229 Allocate the default empty string on the heap, because this string
16230 may be freed later.
16232 * kern/device.c: Include grub/env.h.
16233 (grub_device_set_root): Removed.
16234 (grub_device_get_root): Likewise.
16235 (grub_device_open): Use grub_env_get instead of
16236 grub_device_get_root.
16238 * include/grub/env.h (grub_env_read_hook_t): New type.
16239 (grub_env_write_hook_t): Likewise.
16240 (grub_env_var): Change the types of "read_hook" and "write_hook"
16241 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
16242 (grub_register_variable_hook): Likewise.
16244 * include/grub/device.h (grub_device_set_root): Removed.
16245 (grub_device_set_root): Likewise.
16247 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
16248 make sure that DIRNAME terminates with '/', so that
16249 grub_fat_find_dir will fail if PATH is not a directory.
16251 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
16253 Use the qualifier auto for print_files and print_files_long.
16254 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
16256 Put a newline only if there is no error.
16257 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
16260 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
16262 * kern/partition.c (grub_partition_probe): Initialize PART to
16263 NULL. Otherwise, when no partition map is registered, this returns
16266 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
16268 * partmap/apple.c (apple_partition_map_iterate): Check if POS
16269 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
16272 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
16274 * commands/ls.c (grub_ls_list_disks): Print the filesystem
16275 information on each device, if it does not have partitions. Print
16276 "Device" instead of "Disk", because this function is not specific
16279 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
16280 static to ensure that it is put on the memory rather than a
16283 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
16285 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
16286 (grub_cat_init): Likewise.
16287 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
16288 (options): Likewise.
16289 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
16290 (grub_configfile_init): Likewise.
16291 * font/manager.c (GRUB_MOD_INIT): Likewise.
16292 * commands/help.c (GRUB_MOD_INIT): Likewise.
16293 (grub_help_init): Likewise.
16294 * normal/command.c (grub_command_init): Likewise.
16295 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
16296 * disk/loopback.c (grub_loop_init): Likewise.
16297 (GRUB_MOD_INIT): Likewise.
16298 * commands/ls.c (grub_ls_init): Likewise.
16299 (GRUB_MOD_INIT): Likewise.
16300 (options): Likewise.
16301 * commands/boot.c (grub_boot_init): Likewise.
16302 (GRUB_MOD_INIT): Likewise.
16303 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
16304 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
16305 (GRUB_MOD_INIT): Likewise.
16306 * commands/cmp.c (grub_cmp_init): Likewise.
16307 (GRUB_MOD_INIT): Likewise.
16309 * normal/arg.c: Use <> instead of "" to include header files.
16310 (SHORT_ARG_HELP): New macro.
16311 (SHORT_ARG_USAGE): Likewise.
16312 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
16313 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
16315 (find_short): Check if C is 'h' or 'u' explicitly.
16316 (grub_arg_show_help): Use space characters instead of tabs. Treat
16317 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
16318 are shown with --help and --usage only if they are not used for
16319 the command itself.
16320 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
16323 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
16324 const into "longarg". Change the type of "shortarg" to int.
16326 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
16328 * boot/i386/pc/boot.S (boot_drive_check): New label.
16330 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
16333 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
16334 which do not pass a boot drive correctly. Copied from GRUB Legacy.
16336 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
16338 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
16339 When turning off Gate A20, skip the check and return immediately,
16340 because this is not fatal usually.
16342 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
16344 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
16345 be 0x7C00 instead of 0x8000.
16347 * boot/i386/pc/pxeboot.S: Rewritten.
16349 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
16351 (gate_a20_check_state): Read a byte from 0x108000. Invert the
16354 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
16356 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
16357 robustness. This routine now supports a BIOS call and System
16358 Control Port A to modify the gate A20.
16360 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16361 Increased to 0x440.
16363 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
16365 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
16366 device path and resulting ihandle.
16367 (grub_ofdisk_close): dprintf the ihandle being closed.
16368 (grub_ofdisk_read): dprintf function parameters.
16369 * kern/mm.c (grub_mm_init_region): Likewise.
16370 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
16371 (grub_linux_boot): dprintf the Linux entry point, initrd address and
16372 size, and boot arguments.
16373 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
16374 before loading into memory.
16375 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
16376 before loading into memory.
16378 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
16380 * kern/mm.c: Added much documentation.
16381 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
16382 8, set to 5 instead of 8.
16384 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
16386 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
16388 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
16389 (grub_mkdevicemap_SOURCES): New variable.
16391 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
16392 lib/device.c of GRUB Legacy.
16394 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
16396 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
16397 instead of PATH is NULL.
16399 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
16401 * commands/cmp.c (BUFFER_SIZE): New macro.
16402 (grub_cmd_cmp): Close the right file at the right time. Compare
16403 only data just read. Don't report files of different size as
16404 identical. Dynamically allocate buffers. Move variable
16405 declarations at the beginning of function.
16407 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
16409 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
16412 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
16414 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
16415 when backspace is pressed at beginning of line.
16417 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
16419 * DISTLIST: Added genfslist.sh.
16421 * normal/main.c (fs_module_list): New variable.
16422 (autoload_fs_module): New function.
16423 (read_fs_list): Likewise.
16424 (grub_normal_execute): Call read_fs_list.
16426 * kern/fs.c (grub_fs_autoload_hook): New variable.
16427 (grub_fs_probe): Added support for auto-loading.
16429 * include/grub/normal.h (struct grub_fs_module_list): New struct.
16430 (grub_fs_module_list_t): New type.
16432 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
16433 (grub_fs_autoload_hook): New prototype.
16435 * genfslist.sh: New file.
16437 * genmk.rb: Added a rule to generate a filesystem list.
16439 2005-06-30 Marco Gerards <metgerards@student.han.nl>
16441 * configure.ac: Fix the test for cross-compiling.
16443 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
16444 define GRUB_UTIL anymore.
16446 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
16447 so this function works on other systems than just big endian.
16448 (load_modules): Likewise.
16449 (add_segments): Likewise.
16451 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
16453 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
16454 contains `l' modifier, get a long from va_arg().
16456 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
16458 * kern/mm.c (grub_free): If the next free block which is being
16459 merged is the first free block, set the first block to the block
16461 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
16463 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
16465 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
16466 `grub_ieee1275_chosen'.
16468 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
16470 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
16471 (grub_ieee1275_chosen): New variable.
16472 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
16474 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
16475 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
16476 Rename first argument to `phandle' for consistency.
16477 (grub_ieee1275_get_property_length): Likewise.
16478 (grub_ieee1275_next_property): Likewise. Change type of first argument
16479 to grub_ieee1275_phandle_t.
16480 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
16481 Move export next to declaration.
16482 (grub_ieee1275_chosen): New variable.
16483 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
16484 Correct cosmetic typo.
16485 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
16486 `grub_ieee1275_chosen'.
16487 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
16488 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
16489 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
16490 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
16491 `grub_ieee1275_chosen'.
16493 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
16495 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
16497 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
16498 /chosen/bootargs as "variable=value" pairs.
16500 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
16502 * include/grub/misc.h (grub_dprintf): New macro.
16503 (grub_real_dprintf): New prototype.
16504 (grub_strword): Likewise.
16505 (grub_iswordseparator): Likewise.
16506 * kern/misc.c (grub_real_dprintf): New function.
16507 (grub_strword): Likewise.
16508 (grub_iswordseparator): Likewise.
16510 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
16512 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
16513 (roundup): Remove macro.
16514 (grub_ieee1275_flags): Make static.
16515 (grub_ieee1275_realmode): Remove.
16516 (grub_ieee1275_test_flag): New function.
16517 (grub_ieee1275_set_flag): Likewise.
16518 (find_options): Rename to `grub_ieee1275_find_options'; update
16519 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
16520 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
16521 (cmain): New prototype.
16522 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
16523 `grub_ieee1275_flags' directly.
16524 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
16525 machine/biosdisk.h.
16526 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
16527 Don't include grub/machine/init.h.
16528 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
16529 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
16531 (grub_ieee1275_realmode): Likewise.
16532 (grub_ieee1275_flag): New enum.
16533 (grub_ieee1275_test_flag): New prototype.
16534 (grub_ieee1275_set_flag): New prototype.
16535 * include/grub/powerpc/ieee1275/init.h: Remove file.
16536 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
16537 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
16538 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
16539 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
16541 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
16542 `grub_ieee1275_test_flag'.
16543 (grub_ieee1275_encode_devname): Likewise.
16545 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
16547 * include/grub/powerpc/ieee1275/ieee1275.h
16548 (grub_ieee1275_encode_devname): New prototype.
16549 (grub_ieee1275_get_filename): Likewise.
16550 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
16552 (grub_set_prefix): Likewise.
16553 (grub_machine_init): Call grub_set_prefix.
16554 * kern/powerpc/ieee1275/openfw.c: Fix typos.
16555 (grub_parse_type): New enum.
16556 (grub_ieee1275_get_devargs): New function.
16557 (grub_ieee1275_get_devname): Likewise.
16558 (grub_ieee1275_parse_args): Likewise.
16559 (grub_ieee1275_get_filename): Likewise.
16560 (grub_ieee1275_encode_devname): Likewise.
16562 2005-03-30 Marco Gerards <metgerards@student.han.nl>
16564 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
16565 `grub_loader_unset'.
16567 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
16569 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
16570 instead of grub_ieee1275_interpret.
16571 (grub_halt_init): New function.
16572 (grub_halt_fini): Likewise.
16573 (GRUB_MOD_INIT): Correct message grammar.
16574 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
16575 instead of grub_ieee1275_interpret.
16576 (grub_reboot_init): New function.
16577 (grub_reboot_fini): Likewise.
16578 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
16579 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
16580 util/i386/pc/misc.c with commands/ieee1275/halt.c,
16581 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
16582 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
16584 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
16586 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
16588 (grub_halt): Likewise.
16589 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
16590 (cmain): Remove __attribute__((unused)).
16591 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
16592 (grub_heap_len): Likewise.
16593 (grub_machine_fini): New function.
16594 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
16595 (grub_halt): Likewise.
16596 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
16598 * util/powerpc/ieee1275/misc.c: New file.
16600 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
16602 * DISTLIST: New file.
16603 * gendistlist.sh: Likewise.
16605 * Makefile.in (COMMON_DISTFILES): Removed.
16606 (BOOT_DISTFILES): Likewise.
16607 (CONF_DISTFILES): Likewise.
16608 (DISK_DISTFILES): Likewise.
16609 (FS_DISTFILES): Likewise.
16610 (INCLUDE_DISTFILES): Likewise.
16611 (KERN_DISTFILES): Likewise.
16612 (LOADER_DISTFILES): Likewise.
16613 (TERM_DISTFILES): Likewise.
16614 (UTIL_DISTFILES): Likewise.
16615 (DISTFILES): Likewise.
16616 (uninstall): Uninstall files in $(pkgdata_DATA).
16617 (DISTLIST): New target.
16618 (distdir): Use the contents of the file DISTLIST to get a list of
16621 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
16623 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
16624 descriptor. This is ported from GRUB Legacy.
16626 * gencmdlist.sh: Added an extra semicolon to make it work with
16627 old sed versions. Reported by Robert Bihlmeyer
16628 <robbe@orcus.priv.at>.
16630 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
16632 Automatic loading of commands is supported.
16634 * normal/main.c (read_command_list): New function.
16635 (grub_normal_execute): Call read_command_list.
16637 * normal/command.c (grub_register_command): Return zero or CMD.
16638 Allocate CMD->NAME from the heap.
16639 Initialize CMD->MODULE_NAME to zero.
16640 Find the same name as well. If the same command is found and it is
16641 a dummy command, overwrite members. If it is not a dummy command,
16643 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
16644 (grub_command_find): If a dummy command is found, load a module
16645 and retry to find a command only once.
16647 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
16648 make sure that each command is loaded.
16650 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
16652 (struct grub_command): Remove const from the member `name'.
16653 Add a new member `module_name'.
16654 (grub_register_command): Return grub_command_t.
16656 * commands/help.c (grub_cmd_help): Call grub_command_find to make
16657 sure that each command is loaded.
16659 * genmk.rb (PModule::rule): Specify a module name without the
16660 suffix ".mod" to gencmdlist.sh.
16662 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
16664 * gencmdlist.sh: New file.
16666 * genmk.rb (PModule::rule): Generate a rule for a command list.
16668 Generate command.lst from $(COMMANDFILES).
16670 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
16671 (DATA): Added $(pkgdata_DATA).
16672 (install-local): Install files in $(pkgdata_DATA).
16674 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
16676 * term/i386/pc/vga.c (debug_command): Removed.
16677 (GRUB_MOD_INIT): Do not register the command "debug".
16679 From Hollis Blanchard:
16680 * commands/configfile.c: New file.
16681 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
16682 commands/configfile.c.
16683 (pkgdata_MODULES): Added configfile.mod.
16684 (configfile_mod_SOURCES): New variable.
16685 (configfile_mod_CFLAGS): Likewise.
16686 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
16687 commands/configfile.c.
16688 (pkgdata_MODULES): Added configfile.mod.
16689 (configfile_mod_SOURCES): New variable.
16690 (configfile_mod_CFLAGS): Likewise.
16691 * util/grub-emu.c (main): Call grub_configfile_init and
16692 grub_configfile_fini.
16693 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
16695 [GRUB_UTIL] (grub_configfile_fini): Likewise.
16697 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
16699 * normal/arg.c (grub_arg_show_help): Do not show the bug report
16702 * commands/help.c (grub_cmd_help): Do not print newlines after
16703 the last command in print_command_help.
16705 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
16707 * commands/default.h: New file.
16708 * commands/timeout.h: Likewise.
16709 * normal/context.c: Likewise.
16711 * util/misc.c: Do not include sys/times.h.
16712 Include sys/time.h and grub/machine/time.h.
16713 (grub_get_rtc): Rewritten with gettimeofday.
16715 * util/grub-emu.c (main): Call grub_default_init and
16716 grub_timeout_init before grub_normal_init, and call
16717 grub_timeout_fini and grub_default_fini after grub_main.
16719 * util/console.c (grub_ncurses_checkkey): Return the read
16722 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
16725 * normal/main.c (read_config_file): Push MENU. If this fails,
16726 print an error and wait for a user input.
16727 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
16728 If a menu is empty or an error occurs, pop MENU.
16729 (grub_normal_execute): Pop and free MENU after grub_menu_run
16732 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
16734 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
16736 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
16738 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
16740 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
16743 * include/grub/normal.h (struct grub_menu_list): New struct.
16744 (grub_menu_list_t): New type.
16745 (struct grub_context): New struct.
16746 (grub_context_t): New type.
16747 (grub_register_command): Got rid of EXPORT_FUNC.
16748 (grub_unregister_command): Likewise.
16749 (grub_context_get): New prototype.
16750 (grub_context_get_current_menu): Likewise.
16751 (grub_context_push_menu): Likewise.
16752 (grub_context_pop_menu): Likewise.
16753 [GRUB_UTIL] (grub_default_init): Likewise.
16754 [GRUB_UTIL] (grub_default_fini): Likewise.
16755 [GRUB_UTIL] (grub_timeout_init): Likewise.
16756 [GRUB_UTIL] (grub_timeout_fini): Likewise.
16758 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
16759 commands/timeout.c and normal/context.c.
16760 (pkgdata_MODULES): Added default.mod and timeout.mod.
16761 (normal_mod_SOURCES): Added normal/context.c.
16762 (default_mod_SOURCES): New variable.
16763 (default_mod_CFLAGS): Likewise.
16764 (timeout_mod_SOURCES): Likewise.
16765 (timeout_mod_CFLAGS): Likewise.
16766 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
16768 (pkgdata_MODULES): Added default.mod and timeout.mod.
16769 (normal_mod_SOURCES): Added normal/context.c.
16770 (default_mod_SOURCES): New variable.
16771 (default_mod_CFLAGS): Likewise.
16772 (timeout_mod_SOURCES): Likewise.
16773 (timeout_mod_CFLAGS): Likewise.
16775 * Makefile.in (all-local): Added $(MKFILES).
16777 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
16779 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
16780 (grub_emu_SOURCES): Likewise.
16781 (pkgdata_MODULES): Add `sun.mod'.
16782 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
16783 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16785 (pkgdata_MODULES): Add `sun.mod'.
16786 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
16787 * include/grub/partition.h (grub_sun_partition_map_init): New
16789 (grub_sun_partition_map_fini): Likewise.
16790 * partmap/sun.c: New file.
16791 * util/grub-emu.c (main): Initialize and de-initialize the sun
16792 partitionmap support.
16794 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
16796 This implements an Emacs-like menu entry editor.
16798 * normal/menu_entry.c: New file.
16800 * util/console.c (grub_ncurses_putchar): Translate some Unicode
16801 characters to ASCII.
16802 (saved_char): New variable.
16803 (grub_ncurses_checkkey): Rewritten completely.
16804 (grub_ncurses_getkey): Likewise.
16805 (grub_ncurses_init): Call raw instead of cbreak.
16807 * normal/menu.c (print_entry): Do not put a space.
16808 (init_page): Renamed to ...
16809 (grub_menu_init_page): ... this. All callers changed.
16810 (edit_menu_entry): Removed.
16811 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
16813 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
16815 * kern/misc.c (grub_vprintf): Call grub_refresh.
16817 * normal/menu.c (DISP_LEFT): Renamed to ...
16818 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
16819 * normal/menu.c (DISP_UP): Renamed to ...
16820 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
16821 * normal/menu.c (DISP_RIGHT): Renamed to ...
16822 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
16823 * normal/menu.c (DISP_DOWN): Renamed to ...
16824 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
16825 * normal/menu.c (DISP_HLINE): Renamed to ...
16826 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
16827 * normal/menu.c (DISP_VLINE): Renamed to ...
16828 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
16829 * normal/menu.c (DISP_UL): Renamed to ...
16830 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
16831 * normal/menu.c (DISP_UR): Renamed to ...
16832 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
16833 * normal/menu.c (DISP_LL): Renamed to ...
16834 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
16835 * normal/menu.c (DISP_LR): Renamed to ...
16836 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
16837 * normal/menu.c (TERM_WIDTH): Renamed to ...
16838 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
16839 * normal/menu.c (TERM_HEIGHT): Renamed to ...
16840 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
16841 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
16842 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
16843 * normal/menu.c (TERM_MARGIN): Renamed to ...
16844 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
16845 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
16846 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
16847 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
16848 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
16849 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
16850 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
16851 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
16852 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
16853 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
16854 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
16855 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
16856 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
16857 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
16858 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
16859 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
16860 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
16861 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
16862 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
16863 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
16864 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
16865 All callers changed.
16867 * include/grub/normal.h: New prototype.
16869 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
16870 normal/menu_entry.c.
16871 (normal_mod_SOURCES): Likewise.
16872 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16873 (normal_mod_SOURCES): Likewise.
16875 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
16877 * include/grub/normal.h (grub_halt_init): New prototype.
16878 (grub_halt_fini): Likewise.
16879 (grub_reboot_init): Likewise.
16880 (grub_reboot_fini): Likewise.
16882 * util/grub-emu.c: Include signal.h.
16883 (main_env): New global variable.
16884 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
16886 (grub_machine_fini): New function.
16887 (main): Call grub_halt_init and grub_reboot_init before
16888 grub_main, and grub_reboot_fini and grub_halt_fini after it.
16889 Call setjmp with MAIN_ENV to go back afterwards.
16890 Call grub_machine_fini right before return.
16892 * include/grub/util/misc.h: Include setjmp.h.
16893 (main_env): New prototype.
16895 * include/grub/kernel.h (grub_machine_fini): New prototype.
16896 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
16897 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
16899 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
16900 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
16901 * term/i386/pc/console.c (grub_console_fini): Likewise.
16903 * util/i386/pc/misc.c: New file.
16905 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
16906 util/i386/pc/misc.c, commands/i386/pc/halt.c and
16907 commands/i386/pc/reboot.c.
16909 2005-02-14 Guillem Jover <guillem@hadrons.org>
16911 * include/grub/dl.h (grub_dl_check_header): New prototype.
16912 (grub_arch_dl_check_header): Change return type to grub_err_t,
16913 remove size parameter and export function. Update all callers.
16914 * kern/dl.c (grub_dl_check_header): New function.
16915 (grub_dl_load_core): Use `grub_dl_check_header' instead of
16916 `grub_arch_dl_check_header'. Check ELF type. Check if sections
16917 are inside the core.
16918 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
16919 independent ELF header checks.
16920 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
16921 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
16922 `grub_dl_check_header' instead of explicit checks. Check for the
16924 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
16925 `grub_dl_check_header' instead of explicit checks. Remove arch
16926 specific ELF header checks.
16928 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
16931 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
16933 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
16934 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
16936 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
16938 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
16939 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
16940 (part_map_iterate): Clear `grub_errno' and return 0 if
16941 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
16942 * partmap/amiga.c (amiga_partition_map_iterate): Return
16943 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
16944 * partmap/apple.c (apple_partition_map_iterate): Likewise.
16946 2005-02-01 Guillem Jover <guillem@hadrons.org>
16948 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
16951 2005-01-31 Marco Gerards <metgerards@student.han.nl>
16953 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
16955 (grub_rescue_cmd_linux): New prototype.
16956 (grub_rescue_cmd_initrd): Likewise.
16957 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
16959 (grub_linux_release_mem): Release the memory for the initrd.
16960 (grub_load_linux): Renamed from this...
16961 (grub_rescue_cmd_linux): ...To this. Changed all callers.
16962 Changed `entry' not to be static. Loop over memory regions to
16963 find another one when the default fails.
16964 (grub_rescue_cmd_initrd): New function.
16965 (grub_linux_init): Remove function.
16966 (grub_linux_fini): Likewise.
16967 (GRUB_MOD_INIT): Register `initrd'.
16968 (GRUB_MOD_FINI): Unregister `initrd'.
16969 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
16971 (grub_linux_normal_fini): Likewise.
16972 (GRUB_MOD_INIT): Register `initrd'.
16973 (GRUB_MOD_FINI): Unregister `initrd'.
16975 2005-01-31 Marco Gerards <metgerards@student.han.nl>
16977 * commands/help.c: New file.
16978 * normal/arg.c (show_help): Renamed to...
16979 (grub_arg_show_help): ... this.
16980 * commands/i386/pc/halt.c: New file.
16981 * commands/i386/pc/reboot.c: Likewise.
16982 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
16983 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
16984 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
16985 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
16987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16989 (pkgdata_MODULES): Add `help.mod'.
16990 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
16991 * grub/i386/pc/init.h (grub_reboot): New prototype.
16992 (grub_halt): Likewise.
16993 * include/grub/normal.h (grub_arg_show_help): New prototype.
16994 (grub_help_init): Likewise.
16995 (grub_help_fini): Likewise.
16996 * util/grub-emu.c (main): Initialize and deinitialize the help
16999 * normal/cmdline.c (grub_cmdline_get): Doc fix.
17001 * normal/command.c (grub_command_init): Fixed the description of
17002 the `set' and `unset' commands.
17004 2005-01-31 Marco Gerards <metgerards@student.han.nl>
17006 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
17008 * commands/ieee1275/halt.c: New file.
17009 * commands/ieee1275/reboot.c: Likewise.
17010 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
17011 `__attribute__ ((unused))'. Some GCS related fixed.
17012 (grub_suspend_init) [GRUB_UTIL]: Function removed.
17013 (grub_suspend_fini): Likewise.
17014 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
17016 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
17017 (halt_mod_CFLAGS): New variables.
17018 * include/grub/powerpc/ieee1275/ieee1275.h
17019 (grub_ieee1275_interpret): New prototype.
17021 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
17023 * include/grub/misc.h (memmove): New prototype.
17024 (memcpy): Likewise.
17026 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
17028 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
17029 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
17031 2005-01-22 Marco Gerards <metgerards@student.han.nl>
17033 * kern/misc.c (grub_strndup): Function rewritten.
17035 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
17037 * normal/menu.c (TERM_WIDTH): Macro redefined.
17038 (TERM_TOP_BORDER_Y): Likewise.
17039 (draw_border): Replaced while-loop by a for-loop. Make the number
17040 of lines consistent with the number of lines displayed in
17041 print_entries. Added a margin below the rectangle.
17042 (print_entry): Make the entry fit in the rectangle.
17043 (print_entries): Display the scroll arrows next to the right
17046 2005-01-21 Marco Gerards <metgerards@student.han.nl>
17048 * fs/minix.c (grub_minix_find_file): Reserve more space for
17049 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
17050 `grub_strncpy' to copy `path' into it.
17052 2005-01-21 Marco Gerards <metgerards@student.han.nl>
17054 Add the loopback device, a device via which files can be accessed
17057 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
17058 (pkgdata_MODULES): Add loopback.mod.
17059 (loopback_mod_SOURCES): New variable.
17060 (loopback_mod_CFLAGS): Likewise.
17061 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17063 (pkgdata_MODULES): Add loopback.mod.
17064 (loopback_mod_SOURCES): New variable.
17065 (loopback_mod_CFLAGS): Likewise.
17066 * disk/loopback.c: new file.
17067 * include/grub/normal.h (grub_loop_init): New prototype.
17068 (grub_loop_fini): New prototype.
17069 * util/grub-emu.c (main): Initialize and de-initialize loopback
17071 * include/grub/disk.h (grub_disk_dev_id): Add
17072 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
17074 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
17076 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
17078 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
17079 (suspend_mod_SOURCES): New variable.
17080 (suspend_mod_CFLAGS): Likewise.
17081 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
17083 * commands/ieee1275/suspend.c: New file.
17085 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17087 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
17088 ((unused))' to `__attribute__ ((used))'.
17089 (GRUB_MOD_FINI): Likewise.
17090 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
17091 * genmk.rb (PModule): Assign space to common symbols when linking
17094 2005-01-20 Marco Gerards <metgerards@student.han.nl>
17096 * include/grub/mm.h (grub_mm_init_region): Change the type of the
17097 `unsigned' arguments to `grub_size_t'.
17098 (grub_malloc): Likewise.
17099 (grub_realloc): Likewise.
17100 (grub_memalign): Likewise.
17101 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
17102 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
17103 * util/misc.c (grub_malloc): Likewise.
17104 (grub_realloc): Likewise.
17105 * kern/mm.c (get_header_from_pointer): Change the casts to
17106 `unsigned' into a cast to `grub_size_t'.
17108 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
17109 point to `currnode' when `currnode' is changed.
17111 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
17112 Schottelius <nico-linux@schottelius.org>.
17114 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
17116 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
17117 (note_path): Remove variable.
17118 (GRUB_IEEE1275_NOTE_NAME): New macro.
17119 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
17120 (grub_ieee1275_note_hdr): New structure.
17121 (grub_ieee1275_note_desc): Likewise.
17122 (grub_ieee1275_note): Likewise.
17123 (load_note): Remove `dir' argument. All callers updated. Remove
17124 `note_img' and `path'. Do not load a file from `note_path'.
17125 Initialize a struct grub_ieee1275_note and write that to `out'.
17126 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
17128 2005-01-05 Marco Gerards <metgerards@student.han.nl>
17130 * util/misc.c (grub_util_read_image): Revert last change. It
17131 called `grub_util_read_at', which seeks from the beginning of the
17134 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
17136 * TODO: Add note about endianness in grub-mkimage.
17137 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
17139 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
17140 (grub_mkimage_SOURCES): New target.
17141 * include/grub/kernel.h (grub_start_addr): Remove variable.
17142 (grub_end_addr): Likewise.
17143 (grub_total_module_size): Likewise.
17144 (grub_kernel_image_size): Likewise.
17145 (GRUB_MODULE_MAGIC): New constant.
17146 (grub_module_info): New structure.
17147 (grub_arch_modules_addr): New prototype.
17148 (grub_get_end_addr): Remove prototype.
17149 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
17150 * include/grub/powerpc/ieee1275/kernel.h: New file.
17151 * include/grub/util/misc.h (grub_util_get_fp_size): New
17153 (grub_util_read_at): Likewise.
17154 (grub_util_write_image_at): Likewise.
17155 * kern/main.c (grub_get_end_addr): Remove function.
17156 (grub_load_modules): Call grub_arch_modules_addr instead of using
17157 grub_end_addr. Look for a grub_module_info struct in memory. Use
17158 the grub_module_info fields instead of calling grub_get_end_addr
17159 as loop conditions. Move grub_add_unused_region code here.
17160 (grub_add_unused_region): Remove function.
17161 * kern/i386/pc/init.c: Include grub/cache.h.
17162 (grub_machine_init): Remove call to grub_get_end_addr. Remove
17163 one call to add_mem_region.
17164 (grub_arch_modules_addr): New function.
17165 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
17166 (grub_total_module_size): Likewise.
17167 Include grub/machine/kernel.h.
17168 (grub_arch_modules_addr): New function.
17169 * util/grub-emu.c (grub_end_addr): Remove variable.
17170 (grub_total_module_size): Likewise.
17171 (grub_arch_modules_addr): New function.
17172 * util/misc.c: Include unistd.h.
17173 (grub_util_get_fp_size): New function.
17174 (grub_util_read_at): Likewise.
17175 (grub_util_write_image_at): Likewise.
17176 (grub_util_read_image): Call grub_util_read_at.
17177 (grub_util_write_image): Call grub_util_write_image_at.
17178 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
17179 additional memory in kernel_img for a struct grub_module_info.
17180 Fill in that grub_module_info.
17181 * util/powerpc/ieee1275/grub-mkimage.c: New file.
17183 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
17185 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
17187 * include/grub/powerpc/ieee1275/ieee1275.h
17188 (grub_ieee1275_milliseconds): New prototype.
17189 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
17191 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
17192 grub_ieee1275_milliseconds.
17194 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
17196 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
17198 (find_options): New function.
17199 (cmain): Call find_options.
17200 * include/grub/powerpc/ieee1275/ieee1275.h
17201 (grub_ieee1275_realmode): New extern variable.
17202 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
17203 grub_map if grub_ieee1275_realmode is false.
17205 2004-12-29 Marco Gerards <metgerards@student.han.nl>
17207 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
17208 lines are inserted and make it work like readline. Reported by
17209 Vincent Pelletier <subdino2004@yahoo.fr>.
17211 2004-12-28 Marco Gerards <metgerards@student.han.nl>
17213 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
17215 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
17216 `kern/powerpc/cache.S'.
17218 2004-12-27 Marco Gerards <metgerards@student.han.nl>
17220 * genmk.rb: Handle the `Program' class in the main loop. Written
17221 by Johan Rydberg <jrydberg@gnu.org>.
17222 (Program): New class.
17223 (programs): New variable.
17224 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
17225 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
17226 instead of "grub/kernel.h". Include <grub/machine/init.h>.
17227 (help_arch): Function removed.
17228 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
17229 `powerpc/libgcc.h' and `loader.h'.
17230 (pkgdata_PROGRAMS): New variable.
17231 (sbin_UTILITIES): Variable removed.
17232 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
17233 (grubof_SOURCES): Variable re-defined so it only includes the
17234 core functionality.
17235 (grubof_CFLAGS): Remove `-DGRUBOF'.
17236 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
17237 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
17238 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
17239 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
17240 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
17241 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
17242 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
17243 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
17244 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
17245 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
17246 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
17247 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
17248 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
17249 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
17250 (pc_mod_CFLAGS): New variables.
17251 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
17252 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
17253 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
17254 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
17256 * include/grub/i386/pc/init.h (grub_os_area_addr)
17257 (rub_os_area_size): ... to here.
17258 * include/grub/powerpc/ieee1275/ieee1275.h
17259 (grub_ieee1275_entry_fn): Export symbol.
17260 * include/grub/powerpc/ieee1275/init.h: New file.
17261 * include/grub/powerpc/libgcc.h: Likewise.
17262 * include/grub/cache.h: Likewise.
17263 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
17264 <hollis@penguinppc.org>.
17265 * kern/dl.c: Include <grub/cache.h>.
17266 (grub_dl_flush_cache): New function.
17267 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
17269 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
17270 (grub_console_init): Removed prototypes.
17271 (grub_machine_init): Don't initialize the modules anymore.
17272 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
17274 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
17275 Macro undef removed.
17276 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
17277 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
17278 relocation `R_PPC_REL32'. Return an error when the relocation is
17280 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
17281 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
17282 * util/misc.c (grub_arch_sync_caches): Likewise.
17284 2004-12-19 Marco Gerards <metgerards@student.han.nl>
17286 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
17287 `symlist.c', add `grubof_symlist.c'.
17288 (symlist.c): Variable removed.
17289 (grubof_HEADERS): Variable added.
17290 (grubof_symlist.c): New target.
17291 (kernel_syms.lst): Use `grubof_HEADERS' instead of
17292 `kernel_img_HEADERS'.
17293 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
17294 * kern/powerpc/dl.c: New file.
17295 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
17297 (grub_arch_dl_relocate_symbols): Likewise.
17298 (grub_register_exported_symbols): Likewise.
17300 2004-12-13 Marco Gerards <metgerards@student.han.nl>
17302 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
17303 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
17304 to fail instead. Reported by Vincent Pelletier
17305 <subdino2004@yahoo.fr>.
17307 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
17308 it is not allocated. Reported by Vincent Pelletier
17309 <subdino2004@yahoo.fr>.
17311 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
17312 output so the output looks better.
17314 2004-12-04 Marco Gerards <metgerards@student.han.nl>
17316 Modulize the partition map support and add support for the amiga
17319 * commands/ls.c: Include <grub/partition.h> instead of
17320 <grub/machine/partition.h>.
17321 * kern/disk.c: Likewise.
17322 * kern/rescue.c: Likewise.
17323 * loader/i386/pc/chainloader.c: Likewise.
17324 * normal/cmdline.c: Likewise.
17325 * kern/powerpc/ieee1275/init.c: Likewise.
17326 (grub_machine_init): Call `grub_pc_partition_map_init',
17327 `grub_amiga_partition_map_init' and
17328 `grub_apple_partition_map_init'.
17329 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
17330 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
17331 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
17332 `partition.h' and `pc_partition.h'.
17333 (grub_setup_SOURCES): Remove
17334 `disk/i386/pc/partition.c'. Add `kern/partition.c',
17335 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
17336 (grub_emu_SOURCES): Likewise.
17337 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
17338 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
17339 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
17340 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
17341 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
17342 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
17343 (grubof_SOURCES): Likewise.
17344 * disk/i386/pc/partition.c: File removed.
17345 * disk/powerpc/ieee1275/partition.c: Likewise.
17346 * include/grub/powerpc/ieee1275/partition.h: Likewise.
17347 * include/grub/i386/pc/partition.h: Likewise.
17348 * kern/partition.c: New file.
17349 * partmap/amiga.c: Likewise.
17350 * partmap/apple.c: Likewise.
17351 * partmap/pc.c: Likewise.
17352 * include/grub/partition.h: Likewise..
17353 * include/grub/pc_partition.h: Likewise.
17354 * util/grub-emu.c: Include <grub/partition.h> instead of
17355 <grub/machine/partition.h>.
17356 (main): Call `grub_pc_partition_map_init',
17357 `grub_amiga_partition_map_init' and
17358 `grub_apple_partition_map_init' and deinitialize afterwards.
17359 * util/i386/pc/biosdisk.c: Include `#include
17360 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
17361 `<grub/machine/partition.h>'.
17362 * util/i386/pc/grub-setup.c: Likewise.
17363 * util/i386/pc/biosdisk.c: Likewise.
17364 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
17365 partition information in case of a PC partition.
17366 * util/i386/pc/grub-setup.c: Include `#include
17367 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
17368 `<grub/machine/partition.h>'.
17369 (setup): Only access the PC specific partition information in case
17372 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
17374 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
17375 (grub_longjmp): Likewise.
17376 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
17378 * normal/powerpc/setjmp.S: New file.
17379 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
17380 `normal/powerpc/setjmp.S'.
17381 (grubof_CFLAGS): Add `-DGRUBOF'.
17382 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
17383 [GRUB_UTIL && !GRUBOF].
17385 2004-11-16 Marco Gerards <metgerards@student.han.nl>
17387 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
17388 property named `name'. Correctly handle the error returned by
17389 `grub_ieee1275_finddevice' if a device can not be opened.
17391 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
17393 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
17394 `actual' for negativity.
17395 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
17398 2004-11-01 Marco Gerards <metgerards@student.han.nl>
17400 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
17401 (PAGE_OFFSET): New macro.
17402 (CRTC_ADDR_PORT): Likewise.
17403 (CRTC_DATA_PORT): Likewise.
17404 (START_ADDR_HIGH_REGISTER): Likewise.
17405 (START_ADDR_LOW_REGISTER): Likewise.
17406 (GRAPHICS_ADDR_PORT): Likewise.
17407 (GRAPHICS_DATA_PORT): Likewise.
17408 (READ_MAP_REGISTER): Likewise.
17409 (INPUT_STATUS1_REGISTER): Likewise.
17410 (INPUT_STATUS1_VERTR_BIT): Likewise.
17411 (page): New variable.
17412 (wait_vretrace): New function.
17413 (set_read_map): Likewise.
17414 (set_start_address): Likewise.
17415 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
17417 (check_vga_mem): Take the page into account.
17418 (write_char): Likewise.
17419 (write_cursor): Likewise.
17420 (scroll_up): Likewise. Copy the page to the page that is not
17421 shown and switch between both pages.
17422 (grub_vga_putchar): Fix off by one error.
17423 (grub_vga_cls): Wait for the vertical retrace. Take the page into
17426 2004-11-01 Marco Gerards <metgerards@student.han.nl>
17428 Add support for iso9660 (including rockridge).
17430 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
17431 (iso9660_mod_SOURCES): New variable.
17432 (iso9660_mod_CFLAGS): Likewise.
17433 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
17434 * include/grub/fs.h (grub_iso9660_init): New prototype.
17435 * util/grub-emu.c (main): Call `grub_iso9660_init'.
17436 * fs/iso9660.c: New file.
17438 * include/grub/misc.h (grub_strncat): New prototype.
17439 * kern/misc.c (grub_strncat): New function.
17441 * fs/hfs.c (grub_hfs_mount): Translate the error
17442 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
17443 * fs/jfs.c (grub_jfs_mount): Likewise.
17444 * fs/ufs.c (grub_ufs_mount): Likewise.
17446 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
17448 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
17449 which initialized BAT registers.
17450 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
17451 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
17453 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
17454 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
17456 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
17457 (grub_mapclaim): Likewise.
17458 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
17459 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
17462 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
17464 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
17465 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
17466 -ffreestanding and -msoft-float.
17468 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
17470 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
17471 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
17472 set in grub_ieee1275_flags.
17474 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
17476 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
17478 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
17479 grub_console_init first.
17480 Change the memory range used for grub_ieee1275_claim and
17481 grub_mm_init_region.
17482 Print an error message if the claim fails.
17483 Include <grub/misc.h>.
17485 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
17487 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
17488 Call grub_children_iterate for device nodes of type `scsi',
17490 (grub_ofdisk_open): Remove manual device alias resolution.
17491 Fix memory leak when device cannot be opened.
17492 * include/grub/powerpc/ieee1275/ieee1275.h
17493 (grub_children_iterate): New prototype.
17494 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
17496 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17497 Return -1 if args.size was -1.
17499 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
17501 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
17502 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
17503 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
17504 Open Firmware's memory for it; claim memory from _start to _end.
17505 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
17506 (_end): New extern.
17507 (_start): Zero BSS from __bss_start to _end.
17508 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
17510 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
17512 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
17514 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
17515 -1 if args.base was -1.
17517 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
17519 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
17520 escape sequence instead of a literal ^L. Also call
17521 grub_ofconsole_gotoxy.
17523 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
17525 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
17526 void * arguments to grub_addr_t. All callers updated. Also make
17527 the `result' argument optional.
17528 (grub_ieee1275_release): change void * arguments to grub_addr_t.
17529 All callers updated.
17531 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
17533 * commands/ls.c (grub_ls_list_files): Use the string following the
17534 initial ')', if present, as the filesystem path.
17535 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
17537 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
17539 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
17541 Make the source code of the menu interface more readable.
17543 * normal/menu.c: Include grub/mm.h.
17544 (TERM_WIDTH): New macro.
17545 (TERM_HEIGHT): Likewise.
17546 (TERM_INFO_HEIGHT): Likewise.
17547 (TERM_MARGIN): Likewise.
17548 (TERM_SCROLL_WIDTH): Likewise.
17549 (TERM_TOP_BORDER_Y): Likewise.
17550 (TERM_LEFT_BORDER_X): Likewise.
17551 (TERM_BORDER_WIDTH): Likewise.
17552 (TERM_MESSAGE_HEIGHT): Likewise.
17553 (TERM_BORDER_HEIGHT): Likewise.
17554 (TERM_NUM_ENTRIES): Likewise.
17555 (TERM_FIRST_ENTRY_Y): Likewise.
17556 (TERM_ENTRY_WIDTH): Likewise.
17557 (TERM_CURSOR_X): Likewise.
17558 (draw_border): Use macros instead of magic numbers.
17559 (print_entry): Likewise.
17560 (print_entries): Likewise.
17561 (run_menu): Likewise. Also, handle the key 'e'.
17562 (run_menu_entry): Ignore empty command lines.
17563 (print_message): Added a new argument EDIT. If EDIT is true,
17564 print a different message.
17565 (init_page): Likewise.
17566 (edit_menu_entry): New function. Not implemented yet.
17568 2004-09-17 Marco Gerards <metgerards@student.han.nl>
17570 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
17571 can be loaded from normal mode.
17573 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
17575 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
17576 (multiboot_mod_CFLAGS): New variables.
17577 * loader/i386/pc/linux_normal.c: New file.
17578 * loader/i386/pc/multiboot_normal.c: Likewise.
17580 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
17581 attribute `unused'.
17583 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
17584 `fdiro' to read the mode information from instead of `diro'.
17586 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
17587 looking up a symlink.
17589 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
17591 * normal/command.c (grub_command_execute): Don't parse the
17592 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
17593 flags of the command.
17595 * normal/menu.c (grub_menu_run): Fix typo.
17597 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
17599 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
17601 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
17602 `y + 1' instead of `y - 1'.
17604 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
17606 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
17608 From Hollis Blanchard <hollis@penguinppc.org>:
17609 * kern/misc.c (memmove): New alias for grub_memmove.
17610 (memcmp): New alias for grub_memcmp.
17611 (memset): New alias for grub_memset.
17612 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17613 Change "int handle" to "grub_ieee1275_phandle_t handle".
17614 * include/grub/powerpc/ieee1275/ieee1275.h
17615 (grub_ieee1275_get_property): Likewise.
17617 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
17619 Added normal mode command `chainloader' as module chain.mod, which
17620 depends on normal.mod and _chain.mod.
17622 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
17623 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
17624 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
17626 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
17627 but arguments parsing moved to ...
17628 (grub_chainloader_cmd): ... here. New function.
17629 * include/grub/i386/pc/chainloader.h: New file.
17630 * loader/i386/pc/chainloader_normal.c: Likewise.
17632 2004-09-11 Marco Gerards <metgerards@student.han.nl>
17634 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
17635 (grub_mkimage_LDFLAGS): Likewise.
17636 (grub_emu_SOURCES): Likewise.
17637 (kernel_img_HEADERS): Added fshelp.h.
17638 * fs/ext2.c: Include <grub/fshelp.h>.
17639 (FILETYPE_REG): New macro.
17640 (FILETYPE_INO_REG): Likewise.
17641 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
17643 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
17645 (grub_fshelp_node): New struct.
17646 (grub_ext2_data): Added member `diropen'. Changed member `inode'
17648 (grub_ext2_get_file_block): Removed function.
17649 (grub_ext2_read_block): New function.
17650 (grub_ext2_read_file): Replaced parameter `data' by `node'.
17651 This function was written.
17652 (grub_ext2_mount): Read the root inode. Create a diropen struct.
17653 (grub_ext2_find_file): Removed function.
17654 (grub_ext2_read_symlink): New function.
17655 (grub_ext2_iterate_dir): Likewise.
17656 (grub_ext2_open): Rewritten.
17657 (grub_ext2_dir): Rewritten.
17658 * include/grub/fshelp.h: New file.
17659 * fs/fshelp.c: Likewise.
17661 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
17663 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
17664 (print_message): Add a missing newline.
17665 (run_menu): Added timeout support.
17666 (run_menu_entry): New local function.
17667 (grub_menu_run): Added support for booting.
17669 * kern/loader.c (grub_loader_is_loaded): New function.
17671 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
17672 (grub_get_rtc): Exported.
17674 * include/grub/i386/pc/time.h: Include grub/symbol.h.
17675 (grub_get_rtc): Exported.
17677 * include/grub/normal.h (struct grub_command_list): Remove
17678 constant from the member `command'.
17680 * include/grub/loader.h (grub_loader_is_loaded): Declared.
17682 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
17684 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
17686 2004-08-28 Marco Gerards <metgerards@student.han.nl>
17688 Add support for the JFS filesystem.
17690 * fs/jfs.c: New file.
17691 * include/grub/fs.h (grub_jfs_init): New prototype.
17692 (grub_jfs_fini): New prototype.
17693 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
17694 (grub_emu_SOURCES): Likewise.
17695 (pkgdata_MODULES): Add jfs.mod.
17696 (jfs_mod_SOURCES): New variable.
17697 (jfs_mod_CFLAGS): Likewise.
17698 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
17699 (grubof_SOURCES): Likewise.
17700 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
17702 * fs/fat.c (grub_fat_find_dir): Convert the filename little
17703 endian to the host endian.
17704 (grub_fat_utf16_to_utf8): Move function from there...
17705 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
17706 the endianness of the source string anymore.
17707 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
17709 2004-08-24 Marco Gerards <metgerards@student.han.nl>
17711 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
17712 (grub_boot_fini) [GRUB_UTIL]: Likewise.
17713 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
17714 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
17716 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
17717 (grub_hfs_iterate_dir): Make the function static. Add prototypes
17718 for `node_found' and `it_dir'.
17719 (grub_hfs_dir): Add prototype for `dir_hook'.
17721 * fs/minix.c (grub_minix_get_file_block): Add prototype for
17722 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
17723 and `indir32' to silence a gcc warning.
17725 * include/grub/fs.h (grub_hfs_init): New prototype.
17726 (grub_hfs_fini): Likewise.
17729 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
17731 Each disk device has its own id now. This is useful to make use
17732 of multiple disk devices.
17734 * include/grub/disk.h (grub_disk_dev_id): New enum.
17735 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
17736 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
17738 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
17739 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
17741 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
17742 GRUB_DISK_DEVICE_OFDISK_ID as an id.
17744 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
17745 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
17747 * include/grub/disk.h (struct grub_disk_dev): Added a new member
17748 "id" which is used by the cache manager.
17750 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
17753 2004-08-18 Marco Gerards <metgerards@student.han.nl>
17755 * fs/hfs.c: New file.
17756 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
17757 (grub_emu_SOURCES): Likewise.
17758 (pkgdata_MODULES): Add hfs.mod.
17759 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
17760 (grubof_SOURCES): Likewise.
17761 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
17763 * include/grub/misc.h (grub_strncasecmp): Add prototype.
17764 * kern/misc.c (grub_strncasecmp): Add function.
17766 2004-08-14 Marco Gerards <metgerards@student.han.nl>
17768 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
17771 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
17772 (grub_ext2_dir): In case the directory entry type is unknown, read
17775 2004-08-02 Peter Bruin <pjbruin@dds.nl>
17777 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
17778 grub_load_linux instead of grub_rescue_cmd_linux as second
17779 argument of grub_rescue_register_command.
17781 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
17783 2004-07-27 Marco Gerards <metgerards@student.han.nl>
17785 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
17787 * commands/boot.c: Remove the check for `GRUB_UTIL'.
17788 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
17789 `loader/powerpc/ieee1275/linux.c',
17790 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
17791 * include/grub/powerpc/ieee1275/ieee1275.h
17792 (grub_ieee1275_release): New prototype.
17793 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
17794 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
17795 normal, boot, linux and linux_normal.
17796 * loader/powerpc/ieee1275/linux.c: New file.
17797 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
17799 2004-07-12 Marco Gerards <metgerards@student.han.nl>
17801 * normal/arg.c (grub_arg_parse): Correct error handling after
17802 reallocating the argumentlist (check if `argl' is not null instead
17803 of checking if `args' is not null).
17804 * kern/mm.c (grub_realloc): Return the same pointer when using the
17805 same region, instead of returning the header address.
17807 2004-07-11 Marco Gerards <metgerards@student.han.nl>
17809 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
17810 one block instead of two when looking for the initial partition.
17811 (grub_partition_probe): Initialize the local variable `p' with 0.
17812 Use base 10 for the grub_strtoul call.
17813 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
17814 need for one local variable.
17815 (grub_strtoul): Don't add the new value to `num', instead of that
17818 2004-07-11 Marco Gerards <metgerards@student.han.nl>
17820 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
17821 (pxeboot_img_SOURCES): New variable.
17822 (pxeboot_img_ASFLAGS): Likewise.
17823 (pxeboot_img_LDFLAGS): Likewise.
17824 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
17825 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
17826 <lode_leroy@hotmail.com>.
17828 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
17830 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
17831 there was no input.
17833 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
17835 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
17836 the history buffer logic.
17838 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
17840 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
17841 (FILETYPE_INO_SYMLINK): New macros.
17842 (grub_ext2_find_file): Check if the node is a directory using the
17843 inode stat information instead of using the filetype in the
17844 dirent. Exclude the first character of an absolute symlink.
17845 (grub_ext2_dir): Mask out the filetype part of the mode member of
17848 2004-05-24 Marco Gerards <metgerards@student.han.nl>
17850 Add support for UFS version 1 and 2. Add support for the minix
17851 filesystem version 1 and 2, both the variants with 14 and 30 long
17854 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
17856 (grub_emu_SOURCES): Likewise.
17857 (pkgdata_MODULES): Add ufs.mod and minix.mod.
17858 (ufs_mod_SOURCES): New variable.
17859 (ufs_mod_CFLAGS): Likewise.
17860 (minix_mod_SOURCES): Likewise.
17861 (minix_mod_CFLAGS): Likewise.
17862 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
17864 (grubof_SOURCES): Likewise.
17865 * fs/ufs.c: New file.
17866 * fs/minix.c: New file.
17867 * include/grub/fs.h (grub_ufs_init): New prototype.
17868 (grub_ufs_fini): Likewise.
17869 (grub_minix_init): Likewise.
17870 (grub_minix_fini): Likewise.
17871 * util/grub-emu.c (main): Initialize and deinitialize UFS and
17874 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
17876 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
17877 commands/ls.c, commands/terminal.c, commands/boot.c,
17878 commands/cmp.c and commands/cat.c.
17879 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
17881 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
17884 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
17886 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
17887 and grub_, respectively. Because the conversion is trivial and
17888 mechanical, I omit the details here. Please refer to the CVS
17889 if you need more information.
17891 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
17893 * include/pupa: Renamed to ...
17894 * include/grub: ... this.
17895 * util/i386/pc/pupa-mkimage.c: Renamed to ...
17896 * util/i386/pc/grub-mkimage.c: ... this.
17897 * util/i386/pc/pupa-setup.c: Renamed to ...
17898 * util/i386/pc/grub-setup.c: ... this.
17899 * util/pupa-emu.c: Renamed to ...
17900 * util/grub-emu.c: ... this.
17902 2004-03-29 Marco Gerards <metgerards@student.han.nl>
17904 Add support for the newworld apple macintosh (PPC). This has been
17905 tested on the powerbook 2000 only. It only adds support for
17906 generic ieee1275 functions, console and disk support. This should
17907 be easy to port to other architectures with support for Open
17910 * configure.ac: Accept the powerpc as host_cpu. In the case of
17911 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
17912 specific tests are only executed while building for the i386.
17913 Inverse test for crosscompile.
17914 * genmk.rb (Utility): Allow assembler files.
17915 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
17916 * conf/powerpc-ieee1275.rmk: New file.
17917 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
17918 * disk/powerpc/ieee1275/partition.c: Likewise.
17919 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
17920 * include/pupa/powerpc/ieee1275/console.h: Likewise.
17921 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
17922 * include/pupa/powerpc/ieee1275/time.h: Likewise.
17923 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
17924 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
17925 * include/pupa/powerpc/ieee1275/loader.h
17926 * include/pupa/powerpc/setjmp.h: Likewise.
17927 * include/pupa/powerpc/types.h: Likewise.
17928 * kern/powerpc/ieee1275/init.c: Likewise.
17929 * kern/powerpc/ieee1275/openfw.c: Likewise.
17930 * term/powerpc/ieee1275/ofconsole.c: Likewise.
17932 These files were written by Johan Rydberg
17933 (jrydberg@night.trouble.net) and I only modified them slightly.
17935 * boot/powerpc/ieee1275/cmain.c: New file.
17936 * boot/powerpc/ieee1275/crt0.S: Likewise.
17937 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
17938 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
17940 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
17942 * Makefile.in: Update copyright.
17943 * genmodsrc.sh: Likewise.
17944 * gensymlist.sh: Likewise.
17945 * term/i386/pc/vga.c: Indent correctly.
17947 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
17948 bugreporting address.
17949 * util/i386/pc/pupa-setup.c (usage): Likewise,
17950 (main): Call pupa_ext2_init and pupa_ext2_fini.
17952 * fs/fat.c (log2): Renamed to ...
17953 (fat_log2): ... this.
17954 All callers changed.
17955 * kern/misc.c (memcpy): Alias to pupa_memmove.
17956 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
17958 * util/console.c (pupa_ncurses_fini): Return 0.
17960 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
17961 Move fail label here.
17962 [__GNU__]: Don't warn when using stat.
17963 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
17964 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
17965 long int. Use strtol instead of strtoul.
17967 2004-03-14 Marco Gerards <metgerards@student.han.nl>
17969 * commands/boot.c: New file.
17970 * commands/cat.c: Likewise.
17971 * commands/cmp.c: Likewise.
17972 * commands/ls.c: Likewise.
17973 * commands/terminal.c: Likewise.
17974 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
17975 (pupa_register_command): Changed interface to match the new
17977 (pupa_command_execute): Changed (almost rewritten) so it uses
17978 pupa_split_command. Added support for setting variables using the
17980 (rescue_command): Changed to work with the new argument parser.
17981 (terminal_command): Moved from here to commands/terminal.c.
17982 (set_command): New function.
17983 (unset_command): New function.
17984 (insmod_command): New function.
17985 (rmmod_command): New function.
17986 (lsmod_command): New function.
17987 (pupa_command_init): Don't initialize the command terminal
17988 anymore. Initialize the commands set, unset, insmod, rmmod and
17990 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
17991 (kernel_img_HEADERS): Add arg.h and env.h.
17992 (pupa_mkimage_LDFLAGS): Add kern/env.c.
17993 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
17994 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
17996 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
17998 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
17999 (boot_mod_SOURCES): New variable.
18000 (terminal_mod_SOURCES): Likewise.
18001 (ls_mod_SOURCES): Likewise.
18002 (cmp_mod_SOURCES): Likewise.
18003 (cat_mod_SOURCES): Likewise.
18005 * normal/arg.c: New file.
18006 * kern/env.c: Likewise.
18007 * include/pupa/arg.h: Likewise.
18008 * include/pupa/env.h: Likewise.
18009 * font/manager.c (font_command): Changed to match argument parsing
18011 (PUPA_MOD_INIT): Likewise.
18012 * hello/hello.c (pupa_cmd_hello): Likewise.
18013 (PUPA_MOD_INIT): Likewise.
18014 * include/pupa/disk.h: Include <pupa/device.h>.
18015 (pupa_print_partinfo): New prototype.
18016 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
18017 (pupa_dl_get_prefix): Likewise.
18018 * include/pupa/misc.h: Include <pupa/err.h>.
18019 (pupa_isgraph): New prototype.
18020 (pupa_isdigit): Likewise.
18021 (pupa_split_cmdline): Likewise.
18022 * include/pupa/normal.h: Include <pupa/arg.h>.
18023 (pupa_command): Changed the prototype of the member `func' to
18024 match the argument parsing interface. Added member `options'.
18025 (pupa_register_command): Updated to match function.
18026 (pupa_arg_parse): New prototype.
18027 (pupa_hello_init) [PUPA_UTIL]: New prototype.
18028 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
18029 (pupa_ls_init) [PUPA_UTIL]: Likewise.
18030 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
18031 (pupa_cat_init) [PUPA_UTIL]: Likewise.
18032 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
18033 (pupa_boot_init) [PUPA_UTIL]: Likewise.
18034 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
18035 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
18036 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
18037 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
18038 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
18039 * kern/disk.c: Include <pupa/file.h>.
18040 (pupa_print_partinfo): New function.
18041 * kern/dl.c: Include <pupa/env.h>.
18042 (pupa_dl_dir): Variable removed.
18043 (pupa_dl_load): Use the environment variable `prefix' instead of
18044 the variable pupa_dl_dir.
18045 (pupa_dl_set_prefix): Function removed.
18046 (pupa_dl_get_prefix): Likewise.
18047 * kern/i386/pc/init.c: Include <pupa/env.h>.
18048 (pupa_machine_init): Use the environment variable `prefix' instead of
18049 using pupa_dl_set_prefix to set the prefix.
18050 * kern/main.c: Include <pupa/env.h>.
18051 (pupa_set_root_dev): Use the environment variable `prefix' instead of
18052 using pupa_dl_get_prefix to get the prefix.
18053 * kern/misc.c: Include <pupa/env.h>.
18054 (pupa_isdigit): New function.
18055 (pupa_isgraph): Likewise.
18056 (pupa_ftoa): Likewise.
18057 (pupa_vsprintf): Added support for printing values of the type
18058 `double'. Make it possible to format variable output when using
18059 formatting like `%1.2%f'.
18060 (pupa_split_cmdline): New function.
18061 * kern/rescue.c: Include <pupa/env.h>.
18062 (next_word): Removed function.
18063 (pupa_rescue_cmd_prefix): Likewise.
18064 (pupa_rescue_cmd_set): New function.
18065 (pupa_rescue_cmd_unset): New function.
18066 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
18067 split the command line instead of splitting it here. Added
18068 support for setting variables using the syntax `foo=bar'. Don't
18069 initialize the prefix command anymore. Initialized the set and
18071 * normal/cmdline.c: Include <pupa/env.h>.
18072 (pupa_tab_complete): Added prototypes for print_simple_completion,
18073 print_partition_completion, add_completion, iterate_commands,
18074 iterate_dev, iterate_part and iterate_dir. Moved code to print
18075 partition information from here to kern/disk.c.
18076 (pupa_cmdline_run): Don't check if the function exists anymore.
18077 * normal/main.c: Include <pupa/env.h>.
18078 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
18079 instead of using pupa_dl_get_prefix to get the prefix.
18080 * term/i386/pc/vga.c: Include <pupa/arg.h>.
18081 (check_vga_mem): Cast pointers to `void *' to silence a gcc
18083 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
18084 (pupa_vga_setcolor): Declare unused variables with `__attribute__
18085 ((unused))' to silence a gcc warning.
18086 (pupa_vga_setcolor): Likewise.
18087 (debug_command): Changed to match argument parsing
18089 * util/pupa-emu.c: Include <pupa/env.h>.
18090 (options): Added 0's for unused fields to silence a gcc warning.
18092 (main): Use the environment variable `prefix' instead of using
18093 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
18094 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
18097 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
18098 * util/misc.c: Include <malloc.h>.
18099 (pupa_malloc): Rewritten so errors are correctly reported.
18100 (pupa_realloc): Likewise.
18101 (pupa_memalign): Likewise.
18102 (pupa_mm_init_region): Declare unused variables with
18103 `__attribute__ ((unused))' to silence a gcc warning.
18104 * normal/i386/setjmp.S: Remove tab at the end of the file to
18105 silence a gcc warning.
18106 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
18107 variables with `__attribute__ ((unused))' to silence a gcc
18109 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
18110 local variable i unsigned to silence a gcc warning.
18112 * kern/term.c: Include <pupa/misc.h>.
18113 (pupa_more_lines): New variable.
18114 (pupa_more): Likewise.
18115 (pupa_putcode): When the pager is active pause at the end of every
18117 (pupa_set_more): New function.
18118 * include/pupa/term.h (pupa_set_more): New prototype.
18121 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
18123 Now this project is GRUB 2 rather than PUPA. The location of
18124 the CVS repository was moved to GRUB's.
18126 * configure.ac: Use bug-grub as the reporting address.
18127 Use GRUB instead of PUPA.
18128 Change the version number to 1.90.
18130 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
18132 * genkernsyms.sh: Updated copyright information.
18133 * genmk.rb: Likewise.
18134 * genmodsrc.sh: Likewise.
18135 * gensymlist.sh: Likewise.
18136 * boot/i386/pc/boot.S: Likewise.
18137 * boot/i386/pc/diskboot.S: Likewise.
18138 * disk/i386/pc/biosdisk.c: Likewise.
18139 * disk/i386/pc/partition.c: Likewise.
18140 * font/manager.c: Likewise.
18141 * fs/ext2.c: Likewise.
18142 * fs/fat.c: Likewise.
18143 * include/pupa/boot.h: Likewise.
18144 * include/pupa/device.h: Likewise.
18145 * include/pupa/disk.h: Likewise.
18146 * include/pupa/dl.h: Likewise.
18147 * include/pupa/elf.h: Likewise.
18148 * include/pupa/err.h: Likewise.
18149 * include/pupa/file.h: Likewise.
18150 * include/pupa/font.h: Likewise.
18151 * include/pupa/fs.h: Likewise.
18152 * include/pupa/kernel.h: Likewise.
18153 * include/pupa/loader.h: Likewise.
18154 * include/pupa/misc.h: Likewise.
18155 * include/pupa/mm.h: Likewise.
18156 * include/pupa/net.h: Likewise.
18157 * include/pupa/normal.h: Likewise.
18158 * include/pupa/rescue.h: Likewise.
18159 * include/pupa/setjmp.h: Likewise.
18160 * include/pupa/symbol.h: Likewise.
18161 * include/pupa/term.h: Likewise.
18162 * include/pupa/types.h: Likewise.
18163 * include/pupa/i386/setjmp.h: Likewise.
18164 * include/pupa/i386/types.h: Likewise.
18165 * include/pupa/i386/pc/biosdisk.h: Likewise.
18166 * include/pupa/i386/pc/boot.h: Likewise.
18167 * include/pupa/i386/pc/console.h: Likewise.
18168 * include/pupa/i386/pc/init.h: Likewise.
18169 * include/pupa/i386/pc/kernel.h: Likewise.
18170 * include/pupa/i386/pc/linux.h: Likewise.
18171 * include/pupa/i386/pc/loader.h: Likewise.
18172 * include/pupa/i386/pc/memory.h: Likewise.
18173 * include/pupa/i386/pc/multiboot.h: Likewise.
18174 * include/pupa/i386/pc/partition.h: Likewise.
18175 * include/pupa/i386/pc/time.h: Likewise.
18176 * include/pupa/i386/pc/vga.h: Likewise.
18177 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
18178 * include/pupa/util/getroot.h: Likewise.
18179 * include/pupa/util/misc.h: Likewise.
18180 * include/pupa/util/resolve.h: Likewise.
18181 * kern/device.c: Likewise.
18182 * kern/disk.c: Likewise.
18183 * kern/dl.c: Likewise.
18184 * kern/err.c: Likewise.
18185 * kern/file.c: Likewise.
18186 * kern/fs.c: Likewise.
18187 * kern/loader.c: Likewise.
18188 * kern/main.c: Likewise.
18189 * kern/misc.c: Likewise.
18190 * kern/mm.c: Likewise.
18191 * kern/rescue.c: Likewise.
18192 * kern/term.c: Likewise.
18193 * kern/i386/dl.c: Likewise.
18194 * kern/i386/pc/init.c: Likewise.
18195 * kern/i386/pc/lzo1x.S: Likewise.
18196 * kern/i386/pc/startup.S: Likewise.
18197 * loader/i386/pc/chainloader.c: Likewise.
18198 * loader/i386/pc/linux.c: Likewise.
18199 * loader/i386/pc/multiboot.c: Likewise.
18200 * normal/cmdline.c: Likewise.
18201 * normal/command.c: Likewise.
18202 * normal/main.c: Likewise.
18203 * normal/menu.c: Likewise.
18204 * normal/i386/setjmp.S: Likewise.
18205 * term/i386/pc/console.c: Likewise.
18206 * term/i386/pc/vga.c: Likewise.
18207 * util/console.c: Likewise.
18208 * util/genmoddep.c: Likewise.
18209 * util/misc.c: Likewise.
18210 * util/pupa-emu.c: Likewise.
18211 * util/resolve.c: Likewise.
18212 * util/unifont2pff.rb: Likewise.
18213 * util/i386/pc/biosdisk.c: Likewise.
18214 * util/i386/pc/getroot.c: Likewise.
18215 * util/i386/pc/pupa-mkimage.c: Likewise.
18216 * util/i386/pc/pupa-setup.c: Likewise.
18218 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
18220 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
18221 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
18222 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
18223 reading and reset it after reading.
18224 (pupa_ext2_close): Return PUPA_ERR_NONE.
18226 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
18228 (struct linux_kernel_header): Add kernel_version and
18230 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
18231 pupa_file_read succeeds.
18232 (pupa_rescue_cmd_initrd): Implement.
18234 2003-12-03 Marco Gerards <metgerards@student.han.nl>
18236 * fs/ext2.c (pupa_ext2_label): New function.
18237 (pupa_ext2_fs): Added label.
18238 * fs/fat.c (pupa_fat_label): New function.
18239 (pupa_fat_fs): Added label.
18240 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
18242 * kern/misc.c (pupa_strndup): New function.
18243 * include/pupa/misc.h (pupa_strndup): New prototype.
18245 * include/pupa/normal.h: Include <pupa/err.h>.
18246 (pupa_set_history): New prototype.
18247 (pupa_iterate_commands): New prototype.
18248 * normal/cmdline.c: Include <pupa/machine/partition.h>,
18249 <pupa/disk.h>, <pupa/file.h>.
18250 (hist_size): New variable.
18251 (hist_lines): Likewise.
18252 (hist_end): Likewise.
18253 (hist_used): Likewise.
18254 (pupa_set_history): New function.
18255 (pupa_history_get): Likewise.
18256 (pupa_history_add): Likewise.
18257 (pupa_history_replace): Likewise.
18258 (pupa_tab_complete): Likewise.
18259 (pupa_cmdline_run): Added tab completion and history buffer. Tab
18260 completion shows partitionnames while completing partitions, this
18261 feature was suggested by Jeff Bailey.
18262 * normal/command.c (pupa_iterate_commands): New function.
18263 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
18264 (pupa_normal_init): Initialize history buffer.
18265 (PUPA_MOD_INIT): Likewise.
18266 (pupa_normal_fini): Free the history buffer.
18267 (PUPA_MOD_FINI): Likewise.
18269 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
18272 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
18273 * configure.ac [i386]: Check for regparam bug.
18274 (NESTED_FUNC_ATTR) [! i386]: Defined.
18276 2003-11-17 Marco Gerards <metgerards@student.han.nl>
18278 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
18279 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
18280 (pupa_emu_SOURCES): New variable.
18281 (pupa_emu_LDFLAGS): Likewise.
18282 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
18283 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
18284 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
18285 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
18286 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
18287 (pupa_jmp_buf): New typedef.
18288 (pupa_setjmp) [PUPA_UTIL]: New macro.
18289 (pupa_longjmp) [PUPA_UTIL]: Likewise.
18290 * include/pupa/term.h (struct pupa_term): New member `refresh'.
18291 (pupa_refresh): New prototype.
18292 * include/pupa/util/getroot.h: New file.
18293 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
18295 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
18296 (pupa_rescue_cmd_cat): Likewise.
18297 (pupa_rescue_cmd_ls): Likewise.
18298 (pupa_rescue_cmd_testload): Likewise.
18299 (pupa_rescue_cmd_lsmod): Likewise.
18300 * normal/cmdline.c (pupa_cmdline_get): Likewise.
18301 * normal/menu.c (run_menu): Likewise.
18302 * kern/term.c (pupa_cls): Likewise.
18303 (pupa_refresh): New function.
18304 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
18305 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
18306 * util/console.c: New file.
18308 * util/i386/pc/getroot.c: New file.
18309 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
18310 (pupa_putchar): New function.
18311 (pupa_refresh): Likewise.
18312 (xgetcwd): Function moved to ...
18313 (strip_extra_slashes): Likewise.
18314 (get_prefix): Likewise.
18315 * util/i386/pc/getroot.c: ... here.
18316 (find_root_device): Function moved and renamed to...
18317 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
18318 Changed all callers.
18319 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
18321 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
18322 Changed all callers.
18323 * util/misc.c (pupa_memalign): New function.
18324 (pupa_mm_init_region): Likewise.
18325 (pupa_register_exported_symbols): Likewise.
18326 (pupa_putchar): Function removed.
18327 * util/pupa-emu.c: New file.
18329 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
18331 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
18332 (_multiboot_mod_SOURCES): New variable.
18333 (_multiboot_mod_CFLAGS): Likewise.
18334 * loader/i386/pc/multiboot.c: New file.
18335 * include/pupa/i386/pc/multiboot.h: Likewise.
18336 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
18337 (pupa_multiboot_real_boot): New function.
18338 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
18339 (pupa_multiboot_real_boot): New prototype.
18340 (pupa_rescue_cmd_multiboot): Likewise
18341 (pupa_rescue_cmd_module): Likewise.
18343 * kern/loader.c (pupa_loader_set): Continue when
18344 pupa_loader_unload_func() fails.
18345 (pupa_loader_unset): New function.
18346 * include/pupa/loader.h (pupa_loader_unset): New prototype.
18348 * kern/misc.c (pupa_stpcpy): New function.
18349 * include/pupa/misc.h (pupa_stpcpy): New prototype.
18351 2003-11-12 Marco Gerards <metgerards@student.han.nl>
18353 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
18354 for available extensions.
18356 * include/pupa/i386/pc/time.h: New file.
18357 * kern/disk.c: Include <pupa/machine/time.h>.
18358 (PUPA_CACHE_TIMEOUT): New macro.
18359 (pupa_last_time): New variable.
18360 (pupa_disk_open): Flush the cache when there was a timeout.
18361 (pupa_disk_close): Reset the timer.
18362 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
18364 * util/misc.c: Include <sys/times.h>
18365 (pupa_get_rtc): New function.
18367 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
18369 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
18371 (pupa_ext2_get_file_block): Use blocks member.
18373 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
18374 first block. Return -1 instead of pupa_errno on error.
18376 2003-10-27 Marco Gerards <metgerards@student.han.nl>
18378 * README: In the pupa-mkimage example use _chain instead of chain
18379 and ext2 instead of fat.
18380 * TODO: Replace ext2fs with jfs as an example. Add an item for
18381 adding journal playback for ext2fs.
18382 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
18383 (pkgdata_MODULES): Added ext2.mod.
18384 (ext2_mod_SOURCES): New variable.
18385 (ext2_mod_CFLAGS): Likewise.
18386 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
18387 * include/pupa/misc.h (pupa_strncpy): New prototype.
18388 (pupa_strcat): Likewise.
18389 (pupa_strncmp): Likewise.
18390 * kern/misc.c (pupa_strcat): Enable function.
18391 (pupa_strncpy): New function.
18392 (pupa_strncmp): Likewise.
18393 * fs/ext2.c: New file.
18395 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
18396 when the read failed before retrying.
18397 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
18398 (_FILE_OFFSET_BITS): Likewise.
18399 * configure.ac: Added AC_SYS_LARGEFILE.
18401 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
18403 * genmk.rb (PModule#rule): Make sure to get only symbol names
18404 from the output of nm.
18405 Reported by Robert Millan <zeratul2@wanadoo.es>.
18407 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
18409 I forgot to check in these changes for a long time. This adds
18410 incomplete support for VGA console, and this is still very
18411 buggy. Also, a lot of consideration is required for I18N,
18412 UNICODE, and VGA font issues. Therefore, assume that this is
18413 such that "better than nothing".
18415 * font/manager.c: New file.
18416 * include/pupa/font.h: Likewise.
18417 * include/pupa/i386/pc/vga.h: Likewise.
18418 * term/i386/pc/vga.c: Likewise.
18419 * util/unifont2pff.rb: Likewise.
18421 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
18422 (pkgdata_MODULES): Added vga.mod and font.mod.
18423 (vga_mod_SOURCES): New variables.
18424 (vga_mod_CFLAGS): Likewise.
18425 (font_mod_SOURCES): Likewise.
18426 (font_mod_CFLAGS): Likewise.
18428 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
18430 * include/pupa/term.h: Include pupa/err.h.
18431 (struct pupa_term): Added init and fini.
18432 Changed the argument of putchar to pupa_uint32_t.
18434 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
18435 (pupa_console_real_putchar): New prototype.
18436 (pupa_console_putchar): Removed.
18437 (pupa_console_checkkey): Exported.
18438 (pupa_console_getkey): Likewise.
18440 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
18443 * kern/term.c (pupa_term_set_current): Rewritten.
18444 (pupa_putchar): Likewise.
18445 (pupa_putcode): New function.
18447 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
18448 (pupa_console_real_putchar): ... this.
18449 (pupa_vga_set_mode): New function.
18450 (pupa_vga_get_font): Likewise.
18452 * normal/command.c: Include pupa/term.h.
18453 (terminal_command): New function.
18454 (pupa_command_init): Register the command "terminal".
18456 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
18457 (DISP_UP): Likewise.
18458 (DISP_RIGHT): Likewise.
18459 (DISP_DOWN): Likewise.
18460 (DISP_HLINE): Likewise.
18461 (DISP_VLINE): Likewise.
18462 (DISP_UL): Likewise.
18463 (DISP_UR): Likewise.
18464 (DISP_LL): Likewise.
18465 (DISP_LR): Likewise.
18467 * term/i386/pc/console.c (pupa_console_putchar): New function.
18469 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
18471 * util/resolve.c (pupa_util_resolve_dependencies): BUG
18472 FIX. Reverse the path_list.
18474 * include/pupa/normal.h: Export pupa_register_command and
18475 pupa_unregister_command.
18477 * hello/hello.c (pupa_cmd_hello): New module.
18478 * conf/i386-pc.rmk: Added hello.mod.
18480 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
18482 * kern/i386/pc/lzo1x.S: New file.
18484 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
18485 (compress_kernel): New variable.
18486 (generate_image): Heavily modified to support compressing a
18487 large part of the core image.
18489 * util/misc.c (pupa_util_read_image): Fix a file descriptor
18491 (pupa_util_load_image): New function.
18493 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
18494 (pupa_compressed_size): New variable.
18495 (codestart): Enable Gate A20 here.
18496 Decompress the compressed part of the core image.
18497 Rearrange the code to put functions and variables which are
18498 required for initialization in the non-compressed part.
18501 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
18504 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
18506 * include/pupa/i386/pc/kernel.h
18507 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
18508 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
18509 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
18510 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
18511 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
18513 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
18515 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
18516 (Utility#rule): Likewise.
18518 * configure.ac: Check if LZO is available.
18520 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
18522 * include/pupa/normal.h: New file.
18523 * include/pupa/setjmp.h: Likewise.
18524 * include/pupa/i386/setjmp.h: Likewise.
18525 * normal/cmdline.c: Likewise.
18526 * normal/command.c: Likewise.
18527 * normal/main.c: Likewise.
18528 * normal/menu.c: Likewise.
18529 * normal/i386/setjmp.S: Likewise.
18531 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
18532 (pupa_rescue_cmd_initrd): Likewise.
18534 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
18537 * kern/i386/pc/startup.S (translation_table): New variable.
18538 (translate_keycode): New function.
18539 (pupa_console_getkey): Call translate_keycode.
18541 * kern/rescue.c (attempt_normal_mode): New function.
18542 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
18543 it failed, print a message.
18545 * kern/mm.c (pupa_real_malloc): Print more information when a
18546 free magic is broken.
18547 (pupa_free): If the first free header is not free actually, set
18550 * kern/main.c (pupa_load_normal_mode): Just load the module
18552 (pupa_main): Don't print the message
18553 "Entering into rescue mode..." here.
18555 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
18557 (pupa_rescue_cmd_initrd): Likewise.
18558 (pupa_rescue_cmd_initrd): Likewise.
18560 * include/pupa/symbol.h (FUNCTION): Specify the type.
18561 (VARIABLE): Likewise.
18563 * include/pupa/err.h (pupa_err_t): Added
18564 PUPA_ERR_UNKNOWN_COMMAND.
18566 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
18567 (pupa_dl_get_prefix): Likewise.
18569 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
18570 Added _chain.mod and _linux.mod instead of chain.mod and
18572 (chain_mod_SOURCES): Renamed to ...
18573 (_chain_mod_SOURCES): ... this.
18574 (chain_mod_CFLAGS): Renamed to ...
18575 (_chain_mod_CFLAGS): ... this.
18576 (linux_mod_SOURCES): Renamed to ...
18577 (_linux_mod_SOURCES): ... this.
18578 (linux_mod_CFLAGS): Renamed to ...
18579 (_linux_mod_CFLAGS): ... this.
18580 (normal_mod_SOURCES): New variable.
18581 (normal_mod_CFLAGS): Likewise.
18582 (normal_mod_ASFLAGS): Likewise.
18584 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
18586 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
18589 * kern/dl.c (pupa_dl_ref): Refer depending modules
18591 (pupa_dl_unref): Unrefer depending modules recursively.
18592 Don't call pupa_dl_unload implicitly, because PUPA can crash if
18593 a module is unloaded before one depending on that module is
18595 (pupa_dl_unload): Unload depending modules explicitly,
18598 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
18600 * include/pupa/i386/pc/linux.h: New file.
18601 * loader/i386/pc/linux.c: Likewise.
18603 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
18605 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
18606 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
18607 of PUPA_CHAINLOADER_BOOT_SECTOR.
18609 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
18610 (pupa_linux_prot_size): New variable.
18611 (pupa_linux_tmp_addr): Likewise.
18612 (pupa_linux_real_addr): Likewise.
18613 (pupa_linux_boot_zimage): New function.
18614 (pupa_linux_boot_bzimage): Likewise.
18616 * kern/i386/pc/init.c (struct mem_region): New structure.
18617 (MAX_REGIONS): New macro.
18618 (mem_regions): New variable.
18619 (num_regions): Likewise.
18620 (pupa_os_area_addr): Likewise.
18621 (pupa_os_area_size): Likewise.
18622 (pupa_lower_mem): Likewise.
18623 (pupa_upper_mem): Likewise.
18624 (add_mem_region): New function.
18625 (compact_mem_regions): Likewise.
18626 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
18627 the size of the conventional memory and that of so-called upper
18628 memory (before the first memory hole).
18629 Instead of adding each found region to free memory, use
18630 add_mem_region and add them after removing overlaps.
18631 Also, add only 1/4 of the upper memory to free memory. The rest
18632 is used for loading OS images. Maybe this is ad hoc, but this
18633 makes it much easier to relocate OS images when booting.
18635 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
18636 (pupa_enter_rescue_mode): Don't register initrd and module.
18638 * kern/mm.c: Include pupa/dl.h.
18640 * kern/main.c: Include pupa/file.h and pupa/device.h.
18642 * kern/loader.c (pupa_loader_load_module_func): Removed.
18643 (pupa_loader_load_module): Likewise.
18645 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
18648 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
18649 (pupa_linux_tmp_addr): Likewise.
18650 (pupa_linux_real_addr): Likewise.
18651 (pupa_linux_boot_zimage): Likewise.
18652 (pupa_linux_boot_bzimage): Likewise.
18654 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
18655 (pupa_upper_mem): Likewise.
18656 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
18657 module is too dangerous.
18659 * include/pupa/loader.h (pupa_os_area_addr): Declared.
18660 (pupa_os_area_size): Likewise.
18661 (pupa_loader_set): Remove the first argument. Loader doesn't
18662 manage modules or initrd any longer.
18663 (pupa_loader_load_module): Removed.
18665 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
18666 (linux_mod_SOURCES): New variable.
18667 (linux_mod_CFLAGS): Likewise.
18669 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
18671 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
18672 the length of a blocklist correctly.
18674 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
18675 Use ioctl only if the OS file is a block device.
18676 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
18677 not very useful for normal files.
18679 * kern/main.c (pupa_set_root_dev): New function.
18680 (pupa_load_normal_mode): Likewise.
18681 (pupa_main): Call those above.
18683 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
18686 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
18688 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
18690 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
18691 (setup): Configure the installed partition information and the
18694 * loader/i386/pc/chainloader.c (my_mod): New variable.
18695 (pupa_chainloader_unload): New function.
18696 (pupa_rescue_cmd_chainloader): Refer itself.
18697 (PUPA_MOD_INIT): Save its own module in MY_MOD.
18699 * kern/i386/pc/startup.S (install_partition): Removed.
18700 (version_string): Likewise.
18701 (config_file): Likewise.
18702 (pupa_install_dos_part): New variable.
18703 (pupa_install_bsd_part): Likewise.
18704 (pupa_prefix): Likewise.
18705 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
18707 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
18709 (make_install_device): New function.
18710 (pupa_machine_init): Set the dl prefix.
18712 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
18713 (buf): Renamed to ...
18714 (linebuf): ... this.
18715 (pupa_rescue_cmd_prefix): New function.
18716 (pupa_rescue_cmd_insmod): Likewise.
18717 (pupa_rescue_cmd_rmmod): Likewise.
18718 (pupa_rescue_cmd_lsmod): Likewise.
18719 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
18722 * kern/mm.c (pupa_memalign): If failed even after invalidating
18723 disk caches, unload unneeded modules and retry.
18725 * kern/misc.c (pupa_memmove): New function.
18726 (pupa_memcpy): Removed.
18727 (pupa_strcpy): New function.
18728 (pupa_itoa): Made static.
18730 * kern/dl.c (pupa_dl_iterate): New function.
18731 (pupa_dl_ref): Likewise.
18732 (pupa_dl_unref): Likewise.
18733 (pupa_dl_unload): Return if succeeded or not.
18734 (pupa_dl_unload_unneeded): New function.
18735 (pupa_dl_unload_all): Likewise.
18736 (pupa_dl_init): Renamed to ...
18737 (pupa_dl_set_prefix): ... this.
18738 (pupa_dl_get_prefix): New function.
18740 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
18741 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
18742 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
18743 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
18744 (pupa_install_dos_part): Declared.
18745 (pupa_install_bsd_part): Likewise.
18746 (pupa_prefix): Likewise.
18747 (pupa_boot_drive): Likewise.
18749 * include/pupa/types.h: Fix a typo.
18751 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
18753 (pupa_memmove): Declared.
18754 (pupa_strcpy): Likewise.
18756 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
18757 pupa_mod_init takes one argument, its own module.
18758 (pupa_dl_unload_unneeded): Declared.
18759 (pupa_dl_unload_all): Likewise.
18760 (pupa_dl_ref): Likewise.
18761 (pupa_dl_unref): Likewise.
18762 (pupa_dl_iterate): Likewise.
18763 (pupa_dl_init): Renamed to ...
18764 (pupa_dl_set_prefix): ... this.
18765 (pupa_dl_get_prefix): Declared.
18767 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
18768 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
18770 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
18771 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
18773 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
18774 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
18776 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
18778 * util/i386/pc/pupa-setup.c (setup): Define the internal
18779 function find_first_partition_start at the top level, because GCC
18780 3.0.x cannot compile internal functions in deeper scopes
18782 (find_root_device): Use lstat instead of stat.
18783 Don't follow symbolic links.
18784 Fix the path-constructing code.
18786 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
18787 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
18788 by a BLKGETSIZE ioctl first, because block devices don't fill
18789 the member st_mode of the structure stat on Linux.
18790 [__linux__] (linux_find_partition): Use a temporary buffer
18791 REAL_DEV for the working space. Copy it to DEV before returning.
18792 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
18793 buffer cache consistent.
18794 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
18795 strncmp. The previous value was merely wrong.
18796 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
18798 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
18799 FAT size is 12. The previous value was merely wrong.
18801 * kern/main.c (pupa_main): Don't split the starting message from
18804 * kern/term.c (pupa_putchar): Put CR after LF instead of before
18805 LF, because BIOS goes crazy about character attributes in this
18808 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
18810 * include/i386/pc/util/biosdisk.h: New file.
18811 * util/i386/pc/biosdisk.c: Likewise.
18812 * util/i386/pc/pupa-setup.c: Likewise.
18814 * Makefile.in (INCLUDE_DISTFILES): Added
18815 include/pupa/i386/pc/util/biosdisk.h.
18816 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
18817 directory util/i386/pc.
18818 (install-local): Added a rule for sbin_UTILITIES.
18819 (uninstall): Likewise.
18821 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
18823 * util/misc.c (xrealloc): New function.
18824 (pupa_malloc): Likewise.
18825 (pupa_free): Likewise.
18826 (pupa_realloc): Likewise.
18827 (pupa_stop): Likewise.
18828 (pupa_putchar): Likewise.
18830 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
18832 * include/pupa/util/misc.h (xrealloc): Declared.
18834 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
18836 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
18837 (PUPA_BOOT_MACHINE_BPB_END): ... this.
18839 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
18840 [PUPA_UTIL] (pupa_fat_fini): Likewise.
18842 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
18843 way should be implemented.
18844 [PUPA_UTIL] (pupa_fat_fini): Likewise.
18846 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
18847 the size of NAME for safety.
18848 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
18851 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
18852 (pupa_setup_SOURCES): Likewise.
18854 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
18856 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
18858 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
18859 bunch of pushl's from pusha, because this destroys the return
18862 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
18864 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
18865 This means that any missing prototypes could be fatal. Also, you
18866 must take care when writing assembly code. See the comments at
18867 the beginning of startup.S, for more details.
18869 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
18870 compilation mechanism.
18871 (pupa_chainloader_real_boot): Likewise.
18872 (pupa_biosdisk_rw_int13_extensions): Likewise.
18873 (pupa_biosdisk_rw_standard): Likewise.
18874 (pupa_biosdisk_check_int13_extensions): Likewise.
18875 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
18876 (pupa_biosdisk_get_diskinfo_standard): Likewise.
18877 (pupa_get_memsize): Likewise.
18878 (pupa_get_mmap_entry): Likewise.
18879 (pupa_console_putchar): Likewise.
18880 (pupa_console_setcursor): Likewise.
18881 (pupa_getrtsecs): Use pushl instead of push.
18883 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
18884 memory instead of the stack for a mmap entry, because some
18885 BIOSes may ignore the maximum size and overflow.
18887 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
18889 * genmk.rb (PModule#rule): Compile automatically generated
18890 sources with module-specific CFLAGS as well as other sources.
18892 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
18894 * configure.ac: Check ld.
18895 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
18896 respectively, before checking endianness and sizes.
18898 * Makefile.in (LD): New variable.
18900 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
18902 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
18904 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
18906 * Changelog: New file.