1 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
5 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
7 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
8 drive failure on both raidz and raidz2.
10 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
12 Fix RAIDZ(2) for >= 5 devices.
14 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
15 asize argument. All users updated.
17 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
21 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
22 (fill_vdev_info_real): Set ashift.
23 (read_device): Rewrite RAIDZ part based on reverse engineering.
25 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
27 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
28 don't report potentially unavialiable fields in debug output.
29 (find_path): Fix double-free and memory leak.
31 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
35 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
36 (grub_ufs_fs): Always set .label.
38 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
42 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
43 (grub_ufs_data): New field log2_blksz.
44 (grub_ufs_read_file): Use shifts.
45 (grub_ufs_mount): Check block size and logarithm it.
47 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
49 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
52 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
54 Handle symlinks and long names on tar and cpio.
56 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
57 (ATTR_FILE): Likewise.
60 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
61 (grub_cpio_find_file): Fill mode, handle linkname field as well as
63 (grub_cpio_mount): Zero-fill data.
64 (handle_symlink): New function.
65 (grub_cpio_dir): Handle symlinks.
66 (grub_cpio_open): Likewise.
67 (grub_cpio_close) [MODE_USTAR]: Free linkname.
69 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
71 Fix iso9660 filename limitations and fix memory leaks.
73 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
74 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
76 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
78 Fix JFS file name length limitations.
80 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
81 (grub_jfs_diropen): Fix maximum filename length.
82 (grub_jfs_getent): Fix filename length.
83 (grub_jfs_lookup_symlink): Fix size checks.
85 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
87 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
90 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
92 Leverage BFS implementation to read AFS.
94 * Makefile.util.def (libgrubmods): Add afs.c.
95 * grub-core/Makefile.core.def (afs): New module
96 * grub-core/fs/afs.c: New file.
97 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
99 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
101 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
103 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
105 * grub-core/fs/bfs.c: Run indent.
107 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
109 BFS implementation based on the specification.
111 * grub-core/fs/bfs.c: New file.
112 * Makefile.util.def (libgrubmods): Add bfs.c.
113 * grub-core/Makefile.core.def (bfs): New module.
115 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
117 * util/grub-fstest.c (cmd_cp): Clarify error message.
120 2011-10-30 Yves Blusseau <blusseau@zetam.org>
122 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
125 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
127 Remove afs and befs because of copyright problem.
129 * grub-core/fs/afs.c: Removed.
130 * grub-core/fs/afs_be.c: Removed.
131 * grub-core/fs/befs.c: Removed.
132 * grub-core/fs/befs_be.c: Removed.
133 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
134 * grub-core/Makefile.core.def (afs): Removed.
139 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
141 Prefer rockridge over Joliet.
143 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
145 (set_rockridge): ... here.
146 (grub_iso9660_mount): Check rockridge on the primary label when
147 discovering. Ignore Joliet if Rockridge is present.
149 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
151 Use shifts in nilfs2.
153 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
154 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
155 (grub_nilfs2_palloc_entries_per_group): Replace with ...
156 (grub_nilfs2_log_palloc_entries_per_group): ... this.
157 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
158 (grub_nilfs2_entries_per_block): Replaced with ...
159 (grub_nilfs2_log_entries_per_block_log): ... this.
160 (grub_nilfs2_blocks_per_group): Replaced with ...
161 (grub_nilfs2_blocks_per_group_log): ... this.
162 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
163 (grub_nilfs2_blocks_per_desc_block_log): ... this.
164 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
165 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
166 (grub_nilfs2_palloc_entry_offset): Replaced ...
167 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
168 (grub_nilfs2_dat_translate): Use shifts.
169 (grub_nilfs2_read_inode): Likewise.
170 (GRUB_MOD_INIT): Ensure that logs are correct.
172 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
174 Use shifts in minix filesystem.
176 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
177 (GRUB_MINIX_ZONE2SECT): Likewise.
178 (grub_minix_data): Replace block_size with log_block_size.
179 (grub_minix_read_file): Use shifts.
180 (grub_minix_mount): Check block size and take a logarithm.
182 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
184 Use shifts in squash4.
186 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
187 (squash_mount): Check block size and take logarithm.
188 (direct_read): Use shifts.
190 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
192 Correct befs block counting logic.
194 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
195 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
196 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
197 (grub_afs_read_inode): Use block_shift.
198 (RANGE_SHIFT): New definition.
199 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
200 unexpected conditions, use shifts and appropriate types.
201 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
203 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
205 * grub-core/disk/raid.c (scan_devices): Check partition.
206 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
208 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
210 Support BFS (befs) UUID.
212 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
213 (grub_afs_small_data_element_header): New struct.
214 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
215 (grub_afs_read_attribute) [MODE_BFS]: New function.
216 (grub_afs_iterate_dir): Allocate for complete inode.
217 (grub_afs_mount): Likewise.
218 (grub_afs_uuid) [MODE_BFS]: New function.
219 (grub_afs_fs) [MODE_BFS]: Add .uuid.
221 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
223 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
224 (zfs_unmount): Fix memory leak.
226 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
228 Support NTFS reparse points.
230 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
231 (symlink_descriptor): New struct.
232 (grub_ntfs_read_symlink): New function.
233 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
234 (grub_ntfs_open): Likewise.
236 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
238 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
240 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
242 fstest xnu_uuid subcommand.
244 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
245 grub-core/commands/xnu_uuid.c.
246 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
247 (fstest): Handle xnu_uuid.
248 (options): Document xnu_uuid.
249 (argp_parser): Parse xnu_uuid.
251 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
253 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
254 -l argument. Add newline at the end if printing.
255 (GRUB_MOD_INIT): Document -l.
257 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
259 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
261 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
263 ZFS multi-device and version 33 support.
265 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
266 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
267 (grub_zfs_data): Add multidev-ice-related fields.
268 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
269 (dva_get_offset): Make dva const.
270 (zfs_fetch_nvlist): New function.
271 (fill_vdev_info_real): Likewise.
272 (fill_vdev_info): Likewise.
273 (check_pool_label): Likewise.
274 (scan_disk): Likewise.
275 (scan_devices): Likewise.
276 (read_device): Likewise.
277 (read_dva): Likewise.
278 (zio_read_gang): Use read_dva.
279 (zio_read_data): Likewise.
280 (zap_leaf_lookup): Add missing endian conversion.
281 (zap_verify): Add missing endian conversion. All users updated.
282 (fzap_lookup): Likewise.
283 (fzap_iterate): Likewise.
284 (dnode_get_path): Handle SA bonus.
285 (nvlist_find_value): Make input const. All users updated.
286 (unmount_device): New function.
287 (zfs_unmount): Use unmount_device.
288 (zfs_mount): Use scan_disk.
289 (zfs_mtime): New function.
290 (grub_zfs_open): Handle system attributes.
291 (fill_fs_info): Likewise.
292 (grub_zfs_dir): Likewise.
293 (grub_zfs_fs): Add mtime.
294 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
295 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
296 (SA_MTIME_OFFSET): Likewise.
297 (SA_SYMLINK_OFFSET): Likewise.
298 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
299 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
300 (fstest): Support zfsinfo.
301 (argp_parser): Likewise.
303 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
305 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
308 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
312 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
313 sharing the same block. Iterate over correct number of indices.
314 (dnode_get_path): Handle symlinks correctly.
316 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
318 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
320 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
324 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
325 (grub_hfsplus_btree_search): Fix types.
326 (grub_hfsplus_label): Implement.
328 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
330 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
332 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
334 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
336 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
338 Fix symlink handling on iso9660.
340 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
342 (grub_iso9660_susp_iterate): Accept zero-size iterate.
343 (grub_iso9660_read_symlink): Moved most of code ...
344 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
346 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
348 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
349 Use union to avoid breaking strict-aliasing rules.
351 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
353 Support multi-extent iso files.
355 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
357 (grub_fshelp_node): Revamp. All users updated.
359 (read_node): New function.
360 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
362 (grub_iso9660_mount): Don't attempt to read sua when there is none.
363 (get_node_size): New function.
364 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
366 Fix memory leak on . and ..
367 (grub_iso9660_read): Use read_node.
368 (grub_iso9660_close): Free node.
370 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
372 Fix tar 4G limit and handle paths containing dot.
374 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
375 (canonicalize): New function.
376 (grub_cpio_find_file): Use canonicalize. Store offs in
378 (grub_cpio_dir): Use grub_disk_addr_t.
379 (grub_cpio_open): Likewise.
381 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
383 Fix handling of uncompressed blocks on squashfs and break 4G limit.
385 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
387 (grub_squash_inode): Add long_file and block_size.
388 (grub_squash_cache_inode): New struct.
389 (grub_squash_dirent): Make types into enum.
390 (SQUASH_TYPE_LONG_REGULAR): New type.
391 (grub_squash_frag_desc): Add field size.
392 (SQUASH_BLOCK_FLAGS): New enum.
393 (grub_squash_data): Use grub_squash_cache_inode.
394 (grub_fshelp_node): Make ino_chunk 64-bit.
395 (read_chunk): Minor argument change. All users updated.
396 (squash_mount): Use correct le_to_cpu.
397 (grub_squash_open): Handle LONG_REGULAR.
398 (direct_read): New function.
399 (grub_squash_read_data): Handle blocks correctly.
401 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
403 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
405 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
407 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
409 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
413 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
415 (uberblock_verify): Likewise.
416 (dmu_read): Likewise.
417 (grub_zfs_read): Likewise. Remove invalid cast.
419 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
421 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
422 (grub_jfs_blkno): Fix incorrect shift.
423 (grub_jfs_read_file): Use more appropriate types.
425 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
427 Support triple indirect on minix2 and minix3.
429 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
430 Declare triple_indir_zone.
431 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
434 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
438 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
439 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
440 Rename ctime to mtime. All users updated.
441 (grub_minix_get_file_block): Fix types and double indirect computations.
443 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
445 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
446 if no label is found.
447 (grub_fat_iterate_dir): Fix file size type.
448 (grub_fat_iterate_dir): Likewise.
450 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
452 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
454 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
455 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
457 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
459 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
461 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
463 * util/import_gcry.py: Accept space between # and include.
465 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
467 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
469 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
471 Fine grainely disable warnings on lexer. Remove Wno-error on it.
473 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
474 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
476 * grub-core/script/yylex.l: Add fine-grained #pragma.
478 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
480 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
482 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
484 (memset) [GRUB_UTIL]: Likewise.
485 (memcmp) [GRUB_UTIL]: Likewise.
487 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
489 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
490 inline function rather than a define.
492 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
494 * util/grub-setup.c: Add missing include.
496 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
498 * util/ieee1275/grub-ofpathname.c: Add missing include.
500 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
502 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
503 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
506 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
508 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
511 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
513 * util/grub-install.in: Add datarootdir as per automake manual
515 * util/grub-mknetdir.in: Likewise.
517 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
519 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
521 * util/grub.d/10_kfreebsd.in: Likewise.
522 * util/grub.d/10_linux.in: Likewise.
523 * util/grub.d/10_netbsd.in: Likewise.
524 * util/grub.d/10_windows.in: Likewise.
525 * util/grub.d/20_linux_xen.in: Likewise.
527 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
529 Remove redundant grub_kernel_image_size.
531 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
533 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
534 the small code. It moves it only by few bytes but simplifies the code.
535 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
537 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
538 (grub_kernel_image_size): Removed.
539 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
540 (grub_kernel_image_size): Removed.
541 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
542 compiled with Apple toolchain.
543 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
544 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
545 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
546 (grub_total_module_size): Likewise.
547 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
549 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
550 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
551 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
552 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
553 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
554 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
555 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
556 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
558 (grub_total_module_size): Removed.
559 * util/grub-mkimage.c (image_target_desc): Remove image_size.
560 (image_targets): Likewise.
561 Set .compressed_size to no field on sparc.
562 (generate_image): Remove kernel_image_size handling.
564 2011-10-19 Szymon Janc <szymon@janc.net.pl>
566 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
567 NULL pointer dereference.
569 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
571 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
572 done with a dedicated section.
574 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
575 Ensure the correct position of boot_path.
576 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
577 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
579 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
580 * include/grub/boot.h: Removed. All references removed.
581 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
583 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
585 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
587 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
590 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
592 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
594 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
596 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
597 Don't add the bogus brackets.
599 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
603 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
604 * grub-core/Makefile.core.def (exfat): New module.
605 * grub-core/fs/exfat.c: New file.
606 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
607 (GRUB_FAT_ATTR_*): Make into an enum.
608 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
609 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
610 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
611 (GRUB_FAT_MAXFILE): Removed.
612 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
613 (grub_current_fat_bpb_t): New type.
614 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
615 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
616 (grub_fat_dir_node_t): New type.
617 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
618 (fat_log2) [MODE_EXFAT]: Removed.
619 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
620 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
621 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
622 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
623 (grub_fat_label) [MODE_EXFAT]: New function.
624 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
625 reserved_first_sector to 0.
627 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
629 Move grub_reboot out of the kernel.
631 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
632 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
633 * grub-core/lib/efi/reboot.c: ... here.
634 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
635 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
636 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
637 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
638 * grub-core/lib/i386/reboot_trampoline.S: ... here.
639 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
640 * grub-core/lib/ieee1275/reboot.c: ... here.
641 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
642 * grub-core/lib/mips/arc/reboot.c: ... here.
643 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
644 * grub-core/lib/mips/loongson/reboot.c: ...here.
645 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
646 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
647 * include/grub/emu/misc.h (grub_reboot): New function declaration.
648 * include/grub/i386/reboot.h: New file.
649 * include/grub/mips/loongson/ec.h: Fix includes.
650 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
651 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
652 * grub-core/lib/i386/reboot.c: New file.
654 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
656 Make grub_prefix into module to fix the arbitrary limit and save
659 * grub-core/kern/emu/main.c (grub_prefix): Removed.
660 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
661 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
662 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
663 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
664 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
665 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
666 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
667 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
668 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
669 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
670 * include/grub/ia64/efi/kernel.h: Removed.
671 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
672 (grub_prefix): Removed.
673 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
674 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
675 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
676 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
677 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
678 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
679 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
680 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
681 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
682 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
683 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
684 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
685 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
686 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
687 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
688 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
689 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
690 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
691 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
692 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
693 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
694 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
695 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
696 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
697 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
698 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
699 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
700 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
701 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
703 * util/grub-mkimage.c (image_target_desc): Removed prefix and
705 (image_targets): Likewise.
706 (generate_image): Put prefix as a module.
708 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
710 Replace grub_module_iterate with FOR_MODULES.
712 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
713 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
714 (grub_efi_modules_addr): ...this.
715 * grub-core/kern/efi/init.c (grub_modbase): New variable.
716 (grub_efi_init): Set grub_modbase.
717 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
718 (grub_modbase): New variable.
719 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
720 (grub_modbase): New variable.
721 (grub_machine_init): Set grub_modbase.
722 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
723 (grub_modbase): New variable.
724 (grub_machine_init): Set grub_modbase.
725 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
726 (grub_modbase): New variable.
727 (grub_machine_init): Set grub_modbase.
728 * grub-core/kern/main.c (grub_module_iterate): Remove.
729 (grub_modules_get_end): Use grub_modbase.
730 (grub_load_modules): Use FOR_MODULES.
731 (grub_load_config): Likewise.
732 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
733 (grub_modbase): New variable.
734 (grub_machine_init): Set grub_modbase.
735 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
736 (grub_modbase): New variable.
737 (grub_machine_init): Set grub_modbase.
738 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
740 (grub_modbase): New variable.
741 (grub_machine_init): Set grub_modbase.
742 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
743 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
744 (grub_module_iterate): Likewise.
745 (grub_modbase): New variable declaration.
746 (FOR_MODULES): New macro.
748 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
750 * configure.ac: Check for __ctzdi2 and __ctzsi2.
751 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
753 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
755 Fix few obvious type discrepancies.
757 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
758 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
759 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
761 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
763 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
765 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
766 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
767 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
770 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
772 Fix python 3.x incompatibilities.
774 * gentpl.py: Put brackets around print strings.
775 * util/import_gcry.py: Open explicitly as utf-8.
776 Use in instead of has_key.
778 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
780 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
781 (GRUB_XFS_INO_AGBITS): Make into inline function.
782 (GRUB_XFS_INO_INOINAG): Likewise.
783 (GRUB_XFS_INO_AG): Likewise.
784 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
785 (GRUB_XFS_EXTENT_OFFSET): Likewise.
786 (GRUB_XFS_EXTENT_BLOCK): Likewise.
787 (GRUB_XFS_EXTENT_SIZE): Likewise.
788 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
789 (GRUB_XFS_NEXT_DIRENT): Likewise.
790 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
791 (grub_xfs_read_file): Fix offset type.
793 2011-10-15 Robert Millan <rmh@gnu.org>
795 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
797 2011-10-15 Robert Millan <rmh@gnu.org>
799 Fix build problem on FreeBSD and GNU/kFreeBSD.
801 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
803 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
805 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
807 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
809 (grub_hfsplus_btree_recoffset): Likewise.
810 (grub_hfsplus_btree_recptr): Likewise.
811 (grub_hfsplus_find_block): Likewise.
812 (grub_hfsplus_btree_search): Likewise.
813 (grub_hfsplus_read_block): Likewise.
814 (grub_hfsplus_read_file): Likewise.
815 (grub_hfsplus_mount): Likewise.
816 (grub_hfsplus_btree_iterate_node): Likewise.
817 (grub_hfsplus_btree_search): Likewise.
818 (grub_hfsplus_iterate_dir): Likewise.
819 (grub_hfsplus_read): A small code simplification.
821 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
823 * grub-core/kern/emu/hostdisk.c
824 (convert_system_partition_to_system_disk): Don't assume that children
825 of mapper nodes are mapper nodes.
827 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
829 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
830 * include/grub/misc.h (grub_isxdigit): New function.
831 * grub-core/video/colors.c (my_isxdigit): Removed. All users
832 switched to grub_isxdigit.
833 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
834 number starting with a letter.
836 2011-10-09 Robert Millan <rmh@gnu.org>
838 LVM support for FreeBSD and GNU/kFreeBSD.
840 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
842 (LVM_DEV_MAPPER_STRING): Move from here ...
843 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
844 * util/getroot.c: Include `<grub/util/lvm.h>'.
845 (grub_util_get_dev_abstraction): Enable
846 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
847 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
848 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
849 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
851 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
853 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
854 when LVM abstraction is required for ${GRUB_DEVICE}.
856 2011-10-06 Szymon Janc <szymon@janc.net.pl>
858 Add support for LZO compression in GRUB:
859 - import of minilzo library,
860 - LZO decompression for btrfs,
861 - lzop files decompression.
863 * grub-core/io/lzopio.c: New file.
864 * grub-core/lib/adler32.c: Likewise.
865 * grub-core/lib/minilzo/lzoconf.h: Likewise.
866 * grub-core/lib/minilzo/lzodefs.h: Likewise.
867 * grub-core/lib/minilzo/minilzo.c: Likewise.
868 * grub-core/lib/minilzo/minilzo.h: Likewise.
869 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
870 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
871 grub-core/lib/minilzo/minilzo.c to common.
872 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
874 * grub-core/Makefile.core.def (btrfs): Likewise.
875 * grub-core/Makefile.core.def (lzopio): New module.
877 * grub-core/fs/btrfs.c: Include minilzo.h.
878 (GRUB_BTRFS_COMPRESSION_LZO): New define.
879 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
880 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
881 (grub_btrfs_lzo_decompress): New function.
882 (grub_btrfs_extent_read): Add support for LZO compression type.
883 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
884 (GRUB_USHRT_MAX): Likewise.
885 (GRUB_UINT_MAX): Likewise.
886 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
887 (UINT_MAX): Likewise.
888 (CHAR_BIT): Likewise.
889 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
890 grub-core/lib/posix_wrap/limits.h
891 (UCHAR_MAX): Likewise.
892 * include/grub/file.h (grub_file_filter_id): New compression filter
893 GRUB_FILE_FILTER_LZOPIO.
894 * include/grub/file.h (grub_file_filter_id): Set
895 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
896 * include/grub/types.h (grub_get_unaligned16): New function.
897 (grub_get_unaligned32): Likewise.
898 (grub_get_unaligned64): Likewise.
899 * util/import_gcry.py (cryptolist): Add adler32.
901 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
903 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
904 in perspective decreases the complexity of build system and fixes
905 compilation right now.
907 2011-10-01 Ales Nesrsta <starous@volny.cz>
909 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
910 (fixed problem related to using UHCI with coreboot).
912 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
914 * gentpl.py: Use Autogen macros so that the output template file
915 (Makefile.tpl) size is reduced.
917 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
919 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
922 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
924 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
925 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
927 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
929 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
932 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
934 Remove extra declaration of sleep for mingw32.
936 * util/misc.c (sleep) [__MINGW32__]: Removed.
937 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
939 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
941 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
943 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
945 (NETBSD_BTINFO_BOOTWEDGE): New definition.
946 (grub_netbsd_btinfo_bootwedge): New struct.
947 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
949 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
951 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
953 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
956 2011-09-28 Andreas Born <futur.andy@googlemail.com>
958 Fix incorrect identifiers in bash-completion.
960 * util/bash-completion.d/grub-completion.bash.in
961 (_grub_mkpasswd-pbkdf2): Rename to ...
962 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
963 (_grub_script-check): Rename to ...
964 (_grub_script_check): ... this. All users updated.
966 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
968 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
969 Return 0 if disk isn't biosdisk.
971 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
973 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
975 * Makefile.util.def (grub-fstest): Likewise.
977 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
979 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
980 Get sector size from disk label.
982 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
984 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
985 */README* as well as README*.
986 Reported by: Axel Beckert.
988 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
990 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
991 case of less than 256 MiB of RAM.
993 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
995 * grub-core/commands/wildcard.c (make_regex): Handle @.
997 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
999 * util/grub-install.in: Move cryptodisk logic to appropriate place.
1001 2011-08-21 Szymon Janc <szymon@janc.net.pl>
1003 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
1004 AC_LANG_CONFTEST macros.
1006 2011-08-20 Szymon Janc <szymon@janc.net.pl>
1008 Add grub-fstest option to uncompress data for commands.
1010 * util/grub-fstest.c (uncompress): New var.
1011 (options): New option -u.
1013 2011-08-20 Szymon Janc <szymon@janc.net.pl>
1015 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
1016 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
1018 2011-08-20 Szymon Janc <szymon@janc.net.pl>
1020 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
1021 file type was not recognized correctly (not gzip or corrupted).
1023 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1025 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
1026 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
1028 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1030 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
1032 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
1033 video_radeon_fuloong2e.
1034 * grub-core/video/radeon_fuloong2e.c: New file.
1035 * include/grub/video.h (grub_video_id_t): Add new ID
1036 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
1038 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1040 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
1042 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
1043 that PRID matches the detected subplatform and reset the subplatform
1046 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1048 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
1050 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1052 Fix PCI iterating on functions >= 4.
1054 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
1055 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
1057 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
1058 (grub_pci_read): Fix bitmask.
1059 (grub_pci_read_word): Likewise.
1060 (grub_pci_read_byte): Likewise.
1061 (grub_pci_write): Likewise.
1062 (grub_pci_write_word): Likewise.
1063 (grub_pci_write_byte): Likewise.
1065 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1067 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
1068 can still be specified in TARGET_CFLAGS)
1070 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1072 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
1074 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
1075 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
1076 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
1077 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
1078 (FULOONG): Rename to ...
1079 (FULOONG2F): ... this. All users updated.
1080 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
1081 (machtype_fuloong2f_str): ... this.
1082 (machtype_fuloong2e_str): New string.
1083 Check for machtype_fuloong2e_str.
1084 * grub-core/loader/mips/linux.c (loongson_machtypes)
1085 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
1086 * grub-core/term/serial.c (loongson_defserial)
1087 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
1088 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
1090 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
1092 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
1093 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
1094 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
1095 to IMAGE_FULOONG2F_FLASH. All users updated.
1096 (image_targets): Rename images.
1097 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
1099 2011-08-19 Szymon Janc <szymon@janc.net.pl>
1101 Make enable of disk cache statistics code configurable.
1103 * configure.ac: --enable-cache-stats added.
1104 * config.h.in (DISK_CACHE_STATS): New define.
1105 * grub-core/Makefile.core.def (cacheinfo): New command.
1106 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
1107 * grub-core/commands/cacheinfo.c: New file.
1108 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
1109 moved to cacheinfo.c.
1110 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
1112 * include/grub/disk.h: Likewise.
1114 2011-08-19 Szymon Janc <szymon@janc.net.pl>
1116 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
1117 * grub-core/Makefile.am: Likewise.
1119 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1121 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
1124 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1126 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
1128 (grub_jfs_lookup_symlink): Use correct starting inode.
1130 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1132 * util/grub-setup.c (main): Add missing gcry initialisation.
1134 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1136 Don't accept text modes on EFI when booting Linux.
1138 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
1139 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
1141 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
1142 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
1144 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
1145 use of "/path/.." as in grub-install for EFI as well as handling
1147 Fixes Debian bug #637768.
1149 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
1151 * util/grub-probe.c: Remove duplicate #include.
1153 2011-08-10 Robert Millan <rmh@gnu.org>
1155 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
1157 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
1159 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
1160 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
1162 2011-08-03 Robert Millan <rmh@gnu.org>
1164 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
1166 Reported by: Zachary Bedell
1168 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
1170 * configure.ac: The Loongson port requires grub-mkfont due to its
1171 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
1174 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
1176 * util/grub-install.in: Don't source grub-mkconfig_lib until after
1177 processing arguments (otherwise help2man fails when GRUB has not yet
1180 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1182 New script grub-mkstandalone.
1184 * Makefile.util.def (grub-mkstandalone): New script.
1185 * docs/man/grub-mkstandalone.h2m: New file.
1186 * util/grub-mkstandalone.in: Likewise.
1188 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1190 Support ATA disks with 4K sectors.
1192 * include/grub/ata.h (grub_ata): New member log_sector_size.
1193 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
1194 (grub_ata_identify): Read sector size.
1195 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
1197 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1199 * util/grub-install.in: Don't use uhci outside of x86.
1201 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1203 * util/grub-mkrescue.in: Add missing quotes.
1205 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1207 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
1210 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1212 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
1214 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1216 * include/grub/video.h: add missing EXPORT_FUND on
1217 grub_video_edid_checksum and grub_video_edid_preferred_mode.
1219 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1221 * include/grub/mips/kernel.h: Fix define conflict.
1223 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1225 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
1228 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
1230 Preferred resolution detection for VBE.
1232 * grub-core/video/video.c (grub_video_edid_checksum): New function.
1233 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
1234 the Flat Panel extension, in line with the X.org VESA driver.
1235 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
1237 (grub_vbe_bios_get_ddc_capabilities): Likewise.
1238 (grub_vbe_bios_read_edid): Likewise.
1239 (grub_vbe_get_preferred_mode): Likewise.
1240 (grub_video_vbe_setup): When the mode is "auto", try to get the
1241 preferred mode from VBE, and use the largest mode that is no larger
1242 than the preferred mode (some BIOSes expose a preferred mode that is
1243 not in their mode list!). If this fails, fall back to 640x480 as a
1244 safe conservative choice.
1245 (grub_video_vbe_get_edid): New function.
1246 (grub_video_vbe_adapter): Add get_edid.
1247 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
1248 (struct grub_video_adapter): Add get_edid.
1249 (grub_video_edid_checksum): Add prototype.
1250 (grub_video_edid_preferred_mode): Likewise.
1251 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
1254 * grub-core/commands/videoinfo.c (print_edid): New function.
1255 (grub_cmd_videoinfo): Print EDID if available.
1257 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
1258 is more appropriate on a wider range of platforms than 640x480.
1259 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
1262 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1264 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
1266 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1268 * po/POTFILES.in: Regenerate.
1270 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1272 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
1273 incorrect memory usage.
1275 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1277 * util/grub-install.in: Source grub-mkconfig_lib.
1279 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
1281 Remove getroot.c from core on emu platform.
1283 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
1285 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
1287 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
1288 * util/getroot.c (get_win32_path): ... here.
1289 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
1290 * util/getroot.c (fini_libzfs): ... here.
1291 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
1292 * util/getroot.c (grub_get_libzfs_handle): ... here.
1293 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
1295 * util/getroot.c (grub_find_zpool_from_dir): ... here.
1296 * grub-core/kern/emu/misc.c
1297 (grub_make_system_path_relative_to_its_root): Moved from here...
1298 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
1299 * grub-core/kern/emu/getroot.c: Moved from here ...
1300 * util/getroot.c: ... here. All users updated.
1301 * grub-core/kern/emu/raid.c: Moved from here ...
1302 * util/raid.c: ... here. All users updated.
1304 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
1306 * po/POTFILES.in: Regenerate.
1308 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1310 Fix compilation on GNU/Linux.
1312 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
1314 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
1315 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
1316 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
1318 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1319 2011-07-07 Michael Gorven <michael@gorven.za.net>
1320 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
1322 LUKS and GELI support.
1324 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
1325 grub-core/disk/luks.c, grub-core/disk/geli.c,
1326 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
1327 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
1328 grub-core/lib/arg.c.
1329 (libgrubmods.a): Remove gcrypts cflags and cppflags.
1330 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
1331 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
1332 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
1333 (grub-bin2h): Add libgcry.a.
1334 (grub-mkimage): Likewise.
1335 (grub-mkrelpath): Likewise.
1336 (grub-script-check): Likewise.
1337 (grub-editenv): Likewise.
1338 (grub-mkpasswd-pbkdf2): Likewise.
1339 (grub-pe2elf): Likewise.
1340 (grub-fstest): Likewise.
1341 (grub-mkfont): Likewise.
1342 (grub-mkdevicemap): Likewise.
1343 (grub-probe): Likewise.
1344 (grub-ofpath): Likewise.
1345 (grub-mklayout): Likewise.
1346 (example_unit_test): Likewise.
1347 (grub-menulst2cfg): Likewise.
1348 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
1349 * grub-core/Makefile.core.def (cryptodisk): New module.
1352 * grub-core/disk/AFSplitter.c: New file.
1353 * grub-core/disk/cryptodisk.c: Likewise.
1354 * grub-core/disk/geli.c: Likewise.
1355 * grub-core/disk/luks.c: Likewise.
1356 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
1358 (grub_util_get_dm_abstraction): New function.
1359 (grub_util_follow_gpart_up): Likewise.
1360 (grub_util_get_geom_abstraction): Likewise.
1361 (grub_util_get_dev_abstraction): Use new functions.
1362 (grub_util_pull_device): Pull GELI and LUKS.
1363 (grub_util_get_grub_dev): Handle LUKS and GELI.
1364 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
1365 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
1366 (follow_geom_up): Removed.
1367 (grub_util_fd_seek): New function.
1368 (open_device): Use grub_util_fd_seek.
1369 (nread): Rename to ..
1370 (grub_util_fd_read): ... this. All users updated.
1371 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
1372 (grub_crypto_cbc_decrypt): Likewise.
1373 (grub_crypto_hmac_write): Likewise.
1374 (grub_crypto_hmac_buffer): Likewise.
1375 (grub_password_get): Extend to util.
1376 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
1378 (gcry_md_spec) [GRUB_UTIL]: Likewise.
1379 * include/grub/cryptodisk.h: New file.
1380 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
1381 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
1383 (grub_util_follow_gpart_up): New proto.
1384 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
1385 (grub_util_fd_read): Likewise.
1386 (grub_cryptodisk_cheat_mount): Likewise.
1387 (grub_util_cryptodisk_print_uuid): Likewise.
1388 (grub_util_get_fd_sectors): Likewise.
1389 * util/grub-fstest.c (mount_crypt): New var.
1390 (fstest): Mount crypto if requested.
1391 (options): New option -C.
1392 (argp_parser): Parse -C.
1393 (main): Init and fini gcry.
1394 * util/grub-install.in: Support cryptodisk install.
1395 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
1396 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
1398 (prepare_grub_to_access_device): Likewise.
1399 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
1400 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
1401 (probe_cryptodisk_uuid): New function.
1402 (probe_abstraction): Likewise.
1403 (probe): Use new functions.
1404 * util/import_gcry.py: Create Makefile.utilgcry.def.
1407 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1409 Lazy device scanning.
1411 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
1412 (grub-setup): Remove util/raid.c.
1413 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
1414 * grub-core/disk/lvm.c (scan_depth): New variable.
1415 (grub_lvm_iterate): Rescan if necessary.
1416 (find_lv): New function based on grub_lvm_open.
1417 (grub_lvm_open): Use find_lv. Rescan on error.
1418 (is_node_readable): New function.
1419 (is_lv_readable): Likewise.
1420 (grub_lvm_scan_device): Skip already found disks.
1421 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
1422 Stop if searched device is found and readable.
1423 * grub-core/disk/raid.c (inscnt): New variable.
1424 (scan_depth): Likewise.
1425 (scan_devices): New function based on grub_raid_register. Abort if
1426 looked for device is found.
1427 (grub_raid_iterate): Rescan if needed.
1428 (find_array): NEw function based on -grub_raid_open.
1429 (grub_raid_open): Use find_array and rescan.
1430 (insert_array): Set became_readable_at.
1431 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
1432 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
1434 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
1435 (grub_util_pull_device): New function.
1436 (grub_util_get_grub_dev): Call grub_util_pull_device.
1437 * util/raid.c: Moved to ..
1438 * grub-core/kern/emu/raid.c: ... here.
1439 (grub_util_raid_getmembers): New parameter "bootable".
1440 All users updated. Support 1.x.
1441 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
1443 * include/grub/disk.h (grub_disk_pull_t): New enum.
1444 (grub_disk_dev): Change iterate prototype.
1446 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
1448 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
1449 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
1450 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
1451 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
1453 * include/grub/util/raid.h: Removed.
1455 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
1457 * po/POTFILES.in: Regenerate.
1459 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
1461 Unify sparc init with other ieee1275.
1463 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
1464 instead of kern/sparc64/ieee1275/init.c.
1465 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
1466 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
1467 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
1468 grub/machine/kernel.h.
1469 (grub_ieee1275_original_stack) [__sparc__]: New variable.
1470 (grub_claim_heap) [__sparc__]: Use sparc version.
1471 (grub_machine_init): Moved args parsing to
1472 (grub_parse_cmdline): ...this.
1473 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
1474 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
1476 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
1478 Move BOOTP to separate file.
1480 * grub-core/Makefile.core.def (net): Add net/bootp.c.
1481 * grub-core/net/net.c: Move all BOOTP functions to
1482 * grub-core/net/bootp.c: ... here.
1484 Use frame interface on PXE.
1486 * grub-core/Makefile.core.def (pxecmd): Removed.
1487 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
1488 * grub-core/commands/i386/pc/pxecmd.c: Removed.
1489 * grub-core/i386/pc/pxe.c: Moved from here ...
1490 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
1491 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
1492 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
1494 EFI network support.
1496 * grub-core/Makefile.core.def (efinet): New module.
1497 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
1499 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
1501 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
1502 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
1503 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
1504 * grub-core/net/drivers/efi/efinet.c: New file.
1505 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
1506 (grub_efi_net_config): New extern var.
1508 Various cleanups and bugfixes.
1510 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
1512 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
1513 disk declared as partition.
1514 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
1516 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
1517 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
1518 (grub_debug_zalloc): Likewise.
1519 (grub_debug_realloc): Likewise.
1520 (grub_debug_memalign): Likewise.
1521 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
1522 Check that target is IPv4.
1523 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
1524 local-mac-address as fallback.
1525 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
1527 * grub-core/net/ip.c (ipchksum): Rename to ...
1528 (grub_net_ip_chksum): ... this. All users updated.
1529 (grub_net_recv_ip_packets): Special handling for DHCP.
1530 * util/grub-mkimage.c (generate_image): Zero-out aout header.
1532 Unify prefix handling
1534 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
1535 (grub_machine_get_bootlocation): ... this.
1536 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
1537 (grub_machine_get_bootlocation): ... this.
1538 (grub_prefix): New variable.
1540 (root_dev): New variable.
1542 (main): Use new variables.
1543 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
1545 (grub_machine_get_bootlocation): ... this.
1546 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
1547 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
1548 (grub_machine_get_bootlocation): ... this.
1549 (grub_machine_set_prefix): Removed.
1550 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
1551 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
1553 (grub_machine_get_bootlocation): ... this.
1554 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
1555 (grub_set_prefix_and_root): ... this. All users updated.
1556 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
1558 (grub_machine_get_bootlocation): ... this.
1559 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
1560 (grub_machine_get_bootlocation): New proto.
1561 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
1563 Less intrusive and more reliable seek on network implementation.
1565 * grub-core/kern/file.c (grub_file_net_seek): Removed.
1566 (grub_file_seek): Don't call grub_file_net_seek.
1567 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
1568 (grub_net_fs_read_real): .. this.
1569 (grub_net_seek_real): Use net->offset.
1570 (grub_net_fs_read): Seek if necessary.
1572 Unify IEEE1275 netwotk config with the other platforms.
1574 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
1576 (grub_machine_get_bootlocation): Support network.
1577 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
1578 Support type and device parsing.
1579 (grub_ieee1275_get_device_type): New function.
1580 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
1582 (grub_ieee1275_net_config_real): ... this.
1583 (grub_ofnet_probecards): Removed.
1584 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
1585 * include/grub/ieee1275/ofnet.h: Removed.
1586 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
1588 (grub_ieee1275_get_device_type): New function.
1590 Unify network device closing across platforms and make more robust.
1592 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
1594 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
1596 * grub-core/net/net.c (grub_net_network_level_interface_register):
1598 (grub_net_card_unregister): Close all interfaces.
1599 (receive_packets): Don't poll if no iterfaces are registered.
1601 (grub_net_fini_hw): New function.
1602 (grub_net_restore_hw): Likewise.
1603 (fini_hnd): New variable.
1604 (GRUB_MOD_INIT): Register preboot hook.
1605 (GRUB_MOD_FINI): Run and unregister preboot hook.
1607 Poll network cards when idle.
1609 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
1610 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
1611 * grub-core/net/net.c (receive_packets): Save last poll time.
1612 (grub_net_poll_cards_idle_real): New function.
1613 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
1614 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
1615 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
1617 Rename ofnet interfaces.
1619 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
1620 (grub_ofnet_findcards): Use ofnet_%s names.
1622 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
1624 Cleanup socket opening.
1626 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
1627 (grub_net_fs_close): Likewise.
1628 (grub_net_fs_read_real): Use eof member.
1629 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
1630 (+grub_net_udp_close): New inline function.
1632 * include/grub/net/tftp.h: Moved to the top of ...
1633 * grub-core/net/tftp.c: ... here.
1634 * include/grub/net/ip.h: Moved mostly to the top of ...
1635 * grub-core/net/ip.c: ... here.
1636 * include/grub/net/ethernet.h: Moved mostly to the top of ...
1637 * grub-core/net/ethernet.c: ... here.
1639 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
1641 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
1644 * include/grub/net/ip.h (ipv4_ini): Removed.
1645 (ipv4_fini): Likewise.
1647 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
1648 (grub_net_send_ip_packets): Likewise.
1650 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
1652 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
1653 grub_read_cmos prototype.
1655 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
1657 VGA text support in qemu-mips
1659 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
1660 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
1661 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
1663 * grub-core/kern/i386/qemu/init.c: Renamed to ...
1664 * grub-core/kern/vga_init.c: ... this.
1665 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
1666 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
1667 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
1669 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
1670 GRUB_MACHINE_PCI_IO_BASE.
1672 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
1674 MIPS qemu flash support.
1676 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
1678 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
1679 (grub_machine_init): Probe memory if its size isn't known.
1680 * util/grub-mkimage.c (image_targets): Add flash targets.
1681 (generate_image): Handle flash targets.
1683 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
1685 MIPS qemu at_keyboard support.
1687 * gentpl.py (videoinkernel): Add qemu-mips.
1688 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
1689 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
1690 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
1692 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
1693 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
1694 * grub-core/term/serial.c (grub_serial_register)
1695 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
1697 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
1699 CMOS support on sparc.
1701 * gentpl.py (cmos): Add powerpc and sparc.
1702 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
1704 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
1705 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
1706 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
1707 grub_set_datetime_cmos.
1708 * grub-core/lib/ieee1275/cmos.c: New file.
1709 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
1710 (find_rtc): Set no_ieee1275_rtc on error.
1711 (grub_get_datetime): Call grub_get_datetime_cmos on error.
1712 (grub_set_datetime): Call grub_set_datetime_cmos on error.
1713 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
1714 fail. Move value to argument. All users updated
1715 (grub_cmos_write): Likewise.
1716 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
1717 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
1718 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
1719 grub_get_datetime_cmos and grub_set_datetime_cmos.
1721 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
1723 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
1724 sourcing grub-mkconfig_lib.
1725 * util/update-grub_lib.in: Likewise.
1726 * util/grub.d/00_header.in: Likewise.
1727 * util/grub.d/10_hurd.in: Likewise.
1728 * util/grub.d/10_kfreebsd.in: Likewise.
1729 * util/grub.d/10_linux.in: Likewise.
1730 * util/grub.d/10_netbsd.in: Likewise.
1731 * util/grub.d/10_windows.in: Likewise.
1732 * util/grub.d/20_linux_xen.in: Likewise.
1733 * util/grub.d/30_os-prober.in: Likewise.
1735 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
1737 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
1738 default_bg_color rather than black.
1739 (grub_gfxterm_fullscreen): Likewise.
1740 (grub_gfxterm_background_color_cmd): Save new background color in
1743 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1745 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
1747 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1749 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
1752 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1754 Chainloading on coreboot support.
1756 * grub-core/Makefile.core.def (chain): Add coreboot.
1757 * grub-core/loader/i386/coreboot/chainloader.c: New file.
1759 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1761 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
1764 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1766 Implement time command.
1768 * grub-core/Makefile.core.def (time): New module.
1769 * grub-core/commands/time.c: New file.
1770 * grub-core/script/parser.y: Remove "time" keyword.
1771 * grub-core/script/yylex.l: Likewise.
1773 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1775 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
1777 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1779 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
1780 when handling leftovers.
1782 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1784 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
1785 so that help2man doesn't fail.
1787 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1789 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
1790 type in pointers on sparc64.
1791 (get_card_packet): Likewise.
1793 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
1795 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
1797 (grub_cmd_videoinfo): Fetch current video mode.
1799 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1801 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
1802 because of underlying system restrictions.
1804 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1806 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
1809 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1811 Coreboot video support.
1813 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
1815 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
1816 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
1818 * grub-core/kern/i386/int.S: ... here.
1819 * grub-core/video/i386/pc/vbe.c: Updated includes.
1820 * grub-core/video/i386/pc/vga.c: Likewise.
1821 * include/grub/i386/coreboot/memory.h
1822 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
1823 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
1824 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
1825 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
1827 * include/grub/i386/pc/vga.h: Removed. All users updated.
1829 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1831 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
1832 definitions for dprintf.
1833 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
1835 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1837 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
1839 (get_card_packet): Likewise.
1841 2011-06-26 Yves Blusseau <blusseau@zetam.org>
1843 Display the path of the file when file is not found
1845 * grub-core/fs/fat.c: Display the filename when file is not found.
1846 * grub-core/fs/fshelp.c: Likewise.
1847 * grub-core/fs/hfs.c: Likewise.
1848 * grub-core/fs/jfs.c: Likewise.
1849 * grub-core/fs/minix.c: Likewise.
1850 * grub-core/fs/ufs.c: Likewise.
1851 * grub-core/fs/btrfs.c: Likewise.
1852 * grub-core/commands/i386/pc/play.c: Likewise.
1854 2011-06-26 Szymon Janc <szymon@janc.net.pl>
1856 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
1857 pointer checks before calling grub_free().
1858 * grub-core/commands/wildcard.c (match_devices): Likewise.
1859 * grub-core/commands/wildcard.c (match_files): Likewise.
1860 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
1861 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
1862 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
1863 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
1864 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
1865 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
1866 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
1867 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
1868 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
1870 2011-06-25 Patrick <p55@mailinator.com>
1872 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
1874 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1876 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
1877 (grub_pxe_send): Likewise.
1878 (GRUB_MOD_INIT): Fix types.
1880 2011-06-24 Szymon Janc <szymon@janc.net.pl>
1882 * grub-core/io/xzio.c: Fix code style issues
1884 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1885 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
1887 Network infrastructure.
1888 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
1890 * include/grub/net/arp.h: New file.
1891 * include/grub/net/device.h: Likewise.
1892 * include/grub/net/ethernet.h: Likewise.
1893 * include/grub/net/ip.h: Likewise.
1894 * include/grub/net/netbuff.h: Likewise.
1895 * include/grub/net/tftp.h: Likewise.
1896 * include/grub/net/udp.h: Likewise.
1897 * include/grub/ieee1275/ofnet.h: Likewise.
1898 * include/grub/emu/export.h: Likewise.
1899 * include/grub/net.h: Likewise.
1900 * grub-core/net/arp.c: Likewise.
1901 * grub-core/net/ethernet.c: Likewise.
1902 * grub-core/net/ip.c: Likewise.
1903 * grub-core/net/udp.c: Likewise.
1904 * grub-core/net/tftp.c: Likewise.
1905 * grub-core/net/netbuff.c: Likewise.
1906 * grub-core/net/net.c: Likewise.
1907 * grub-core/net/drivers/emu/emunet.c: Likewise.
1908 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1909 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
1911 * grub-core/Makefile.core.def (net): New module.
1915 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
1917 * grub-core/kern/device.c (grub_net_open) : New variable.
1918 (grub_device_open): Handle network device.
1919 (grub_device_close): Likewise.
1920 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
1921 (grub_grubnet_fini): Likewise.
1922 (grub_file_seek): Seek in network device.
1923 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
1924 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
1926 (grub_machine_fini): Call grub_grubnet_fini.
1927 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
1929 (grub_ieee1275_get_aliasdevname): New function.
1930 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
1931 Add unofficial Solaris network info.
1932 (grub_multiboot_make_mbi): Likewise.
1933 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
1934 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
1935 * include/grub/device.h (grub_fs): Removed.
1936 * include/grub/err.h (grub_err_t): Add network-related values.
1937 * include/grub/i386/pc/pxe.h: Removed bootp parts.
1938 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
1939 (grub_ieee1275_get_aliasdevname): New proto.
1940 * include/grub/net.h: Rewritten.
1942 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1944 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
1947 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1949 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
1950 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
1951 it truncates the output.
1952 Reported by: Ximin Luo.
1954 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1956 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
1958 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1960 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
1961 partmap before abstraction.
1963 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
1965 * util/grub-mkconfig_lib.in: Add missing quotes.
1967 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1969 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
1970 old method if mountinfo would return /dev/root and /dev/root doesn't
1973 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1977 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
1978 (decomp_table): Add zlib entries.
1979 (zio_read): USe 8 bits for compression function rather than 3.
1980 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
1982 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1984 * grub-core/disk/ahci.c: Add missing license statements.
1985 * grub-core/fs/romfs.c: Likewise.
1986 * grub-core/lib/ia64/setjmp.S: Likewise.
1987 * grub-core/loader/i386/pc/freedos.c: Likewise.
1988 * grub-core/loader/ia64/efi/linux.c: Likewise.
1989 * grub-core/video/colors.c: Likewise.
1990 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
1992 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1996 * grub-core/Makefile.core.def (ata_pthru): Removed.
1999 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
2001 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
2003 (grub_hdparm_do_check_powermode_cmd): Likewise.
2004 (grub_hdparm_do_smart_cmd): Likewise.
2005 (grub_hdparm_set_val_cmd): Likewise.
2006 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
2007 * grub-core/disk/ahci.c: New file.
2008 * grub-core/disk/ata.c: Factor out the low-level part into ...
2009 * grub-core/disk/pata.c: ... here.
2010 * grub-core/disk/ata_pthru.c: Contents moved to ...
2011 * grub-core/disk/pata.c: ... here.
2012 * grub-core/disk/scsi.c (grub_scsi_names): New array.
2013 (grub_scsi_iterate): Use grub_scsi_names.
2014 (grub_scsi_open): Likewise.
2015 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
2016 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
2017 (grub_ata_regs_t): New struct.
2018 (grub_disk_ata_pass_through_parms): Likewise.
2019 (grub_ata_device): Renamed to ...
2020 (grub_ata): ... this.
2021 (grub_ata_dev): New struct.
2022 Removed all low-level inline functions.
2023 * include/grub/scsi.h: Add PATA and AHCI subsystems.
2024 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
2025 iterate hooks and open. All users updated.
2026 * util/grub-install.in: Handle AHCI disk module.
2028 2011-06-23 Szymon Janc <szymon@janc.net.pl>
2030 Add support for DRI and RSTn markers in JPEG files.
2032 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
2033 (JPEG_MARKER_RST0): Likewise.
2034 (JPEG_MARKER_RST1): Likewise.
2035 (JPEG_MARKER_RST2): Likewise.
2036 (JPEG_MARKER_RST3): Likewise.
2037 (JPEG_MARKER_RST4): Likewise.
2038 (JPEG_MARKER_RST5): Likewise.
2039 (JPEG_MARKER_RST6): Likewise.
2040 (JPEG_MARKER_RST7): Likewise.
2041 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
2042 (grub_jpeg_decode_dri): New function.
2043 (grub_jpeg_decode_sos): Move image data related part into
2044 grub_jpeg_decode_data function.
2045 (grub_jpeg_decode_data): New function.
2046 (grub_jpeg_reset): New function.
2047 (grub_jpeg_decode_jpeg): Handle new markers.
2049 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2051 * util/ieee1275/ofpath.c (check_sas): Close fd.
2052 (main): Free of_path.
2053 Reported by: David Volgyes <dvolgyes>.
2055 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2057 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
2058 Reported by: David Volgyes <dvolgyes>.
2060 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2062 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
2064 Reported by: David Volgyes <dvolgyes>.
2066 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2068 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
2070 Reported by: David Volgyes <dvolgyes>.
2072 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2074 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
2075 Prevent memory leak.
2077 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2079 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
2081 Reported by: David Volgyes <dvolgyes>.
2083 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2085 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
2086 to continue if allocation is failed.
2088 Reported by: David Volgyes <dvolgyes>.
2090 2011-06-23 David Volgyes <dvolgyes>
2092 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
2095 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2097 Fix spurious warning.
2099 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
2100 (acorn_partition_map_find): Use .bin member.
2102 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2104 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
2105 /dev/root as a valid device.
2107 2011-06-23 Jim Meyering <meyering@redhat.com>
2109 Avoid NULL deref in grub_device_open.
2111 * grub-core/kern/device.c (grub_device_open): Don't dereference
2112 a NULL pointer upon failed grub_env_get.
2114 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2116 Support non-512B sectors and agglomerate reads.
2118 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
2119 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
2120 (disk_io_guid): Removed.
2121 (make_devices): Locate solely by BlockIO.
2122 (grub_efidisk_open): Fill log_sector_size and total_sectors.
2123 (grub_efidisk_read): Use read_blocks.
2124 (grub_efidisk_write): Use write_blocks.
2125 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
2127 (get_safe_sectors): Handle non-512B sectors.
2128 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
2130 (grub_biosdisk_write): Handle non-512B sectors.
2131 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
2132 (grub_scsi_read): Remove special non-512B block handling (now handled
2134 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
2135 and do sanity checks.
2136 (grub_disk_adjust_range): Handle non-512B sectors.
2137 (transform_sector): New function.
2138 (grub_disk_read_small): Likewise.
2139 (grub_disk_read): Rewritten.
2140 (grub_disk_write): Handle non-512B sectors.
2141 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
2143 (open_device): Use log_sector_size.
2144 (grub_util_biosdisk_read): Likewise.
2145 (grub_util_biosdisk_write): Likewise.
2146 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
2148 (pc_partition_map_embed): Likewise.
2149 * include/grub/disk.h (grub_disk): New field log_sector_size.
2150 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
2151 (GRUB_DISK_CACHE_BITS): Increased to 6.
2152 * util/grub-fstest.c (fstest): New command testload.
2153 (argp_parser): Likewise.
2155 2011-06-16 Robert Millan <rmh@gnu.org>
2157 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
2158 `ata' driver on kernel of FreeBSD 9.
2160 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
2161 (get_ataraid_disk_name): New functions.
2162 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
2163 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
2164 get_ataraid_disk_name() and get_ada_disk_name().
2166 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
2168 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
2171 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
2173 * docs/grub.texi (Obtaining and Building GRUB): Substitute
2174 `ftp.gnu.org' for `alpha.gnu.org'.
2176 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
2178 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
2179 partitions under /dev/disk/by-id/.
2181 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
2183 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
2184 after ten consecutive open failures. Scanning all the way up to
2185 10000 is excessive and can cause serious performance problems in
2186 some configurations.
2187 Fixes Ubuntu bug #787461.
2189 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2191 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
2194 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
2195 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2197 Don't stat devices unless we have to.
2199 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
2201 (grub_guess_root_device): Use already known os_dev if possible.
2202 * grub-core/kern/emu/hostdisk.c
2203 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
2204 if device is known to be a dm one.
2206 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
2208 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
2209 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
2210 Reported by: Pawel Tecza.
2212 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
2214 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
2215 (lsefisystab): Likewise.
2217 (lsefimmap): Likewise.
2218 (hdparm): Enable on qemu-mips.
2219 (setjmp): Add ia64 nodist.
2220 (serial): Simplify tags.
2222 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2224 * Makefile.util.def (grub-ofpathname): Install manual page.
2226 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2228 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
2230 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2232 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
2234 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2236 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
2239 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2241 Use full 64-bit division.
2243 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
2244 (grub_divmod64): ... this.
2245 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
2248 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2250 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
2253 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2255 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
2256 to avoid accidents when debugging with 'sh -x'.
2257 * grub-core/gensyminfo.sh.in: Likewise.
2258 * tests/example_scripted_test.in: Likewise.
2259 * tests/grub_cmd_regexp.in: Likewise.
2260 * tests/grub_script_blanklines.in: Likewise.
2261 * tests/grub_script_dollar.in: Likewise.
2262 * tests/grub_script_expansion.in: Likewise.
2263 * tests/grub_script_final_semicolon.in: Likewise.
2264 * tests/partmap_test.in: Likewise.
2265 * tests/util/grub-shell-tester.in: Likewise.
2266 * tests/util/grub-shell.in: Likewise.
2268 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2270 Move gfxmenu color handling to video, so that gfxterm can use it
2273 * grub-core/gfxmenu/named_colors.c: Move to ...
2274 * grub-core/video/colors.c: ... here. Rename
2275 grub_gui_get_named_color to grub_video_get_named_color.
2276 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
2277 * grub-core/video/colors.c (my_isxdigit): ... here.
2278 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
2280 * grub-core/video/colors.c (parse_hex_color_component): ... here.
2281 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
2283 * grub-core/video/colors.c (grub_video_parse_color): ... here.
2285 * include/grub/gui.h (grub_gui_color_t): Move to ...
2286 * include/grub/video.h (grub_video_rgba_color_t): ... here.
2287 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
2288 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
2289 * include/grub/gui.h (grub_gui_map_color): Move to ...
2290 * include/grub/video.h (grub_video_map_rgba_color): ... here.
2291 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
2293 * include/grub/video.h (grub_video_get_named_color): ... here.
2294 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
2295 * include/grub/video.h (grub_video_parse_color): ... here.
2297 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
2299 (gfxmenu): Remove gfxmenu/named_colors.c.
2300 (video) [videomodules]: Add video/colors.c.
2302 Add a background_color command.
2304 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
2306 (GRUB_MOD_INIT): Register background_color command.
2307 (GRUB_MOD_FINI): Unregister background_color command.
2308 (redraw_screen_rect): Allow blend/replace of text layer to be
2309 controlled independently from whether there is a background bitmap.
2310 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
2313 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2315 Patch BPB in ntldr and chainloader --bpb.
2317 * grub-core/fs/fat.c: Include grub/fat.h.
2318 (grub_fat_bpb): Moved to ...
2319 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
2320 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
2322 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
2324 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
2326 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
2328 (grub_chainloader_cmd): Patch BPB if --bpb is given.
2329 (GRUB_MOD_INIT): Show --bpb.
2330 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
2331 * grub-core/normal/main.c (features): New variable.
2332 (GRUB_MOD_INIT): Set feature_* variables.
2333 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
2335 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
2337 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2339 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
2342 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2344 FreeDOS direct loading support.
2346 * docs/grub.texi (Supported OS): Add FreeDOS.
2347 * grub-core/Makefile.core.def (freedos): New module.
2348 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
2350 (grub_relocator16_boot): Handle %ebx.
2351 * grub-core/lib/i386/relocator16.S: Likewise.
2352 * grub-core/loader/i386/pc/freedos.c: New file.
2354 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2356 Long Linux command line support.
2358 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
2359 (maximal_cmdline_size): New variable.
2360 (allocate_pages): Use maximal_cmdline_size.
2361 (grub_cmd_linux): Set and use maximal_cmdline_size.
2362 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
2363 (allocate_pages): Use maximal_cmdline_size.
2364 (grub_cmd_linux): Set and use maximal_cmdline_size.
2365 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
2366 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
2369 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2370 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2372 Improve devmapper support
2374 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
2375 (grub_util_is_lvm): New function.
2376 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
2377 than lvm if not dmraid.
2378 Handle mapped md nodes.
2379 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
2380 (grub_util_device_is_mapped): ... this. Make always available. All users
2382 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
2383 (convert_system_partition_to_system_disk): Handle lvm, mpath and
2385 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
2387 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2389 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
2391 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
2392 * grub-core/modinfo.sh.in: New file.
2393 * grub-core/Makefile.core.def (modinfo.sh): New script.
2394 * util/grub-mknetdir.in: Use modinfo.sh.
2395 * util/grub-mkrescue.in: Likewise.
2397 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2399 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
2400 Fix potential usage of Elf32 instead of Elf64 when compiling on
2401 32-bit architecture. Add endianness macros while on it.
2403 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2405 Use mipsel- rather than mips- in directories involving mipsel ports to
2406 allow both endiannesses coexist.
2408 * configure.ac: proparate target_cpu=mipsel rather than resetting to
2409 mips. All conditions adjusted.
2410 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
2412 * util/grub-install.in: Adjust conditions to take renaming into account.
2413 * util/grub-mkimage.c (image_targets): Likewise. New target
2414 mips-qemu_mips-elf for bigendian mips.
2416 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2418 Avoid unnecessary copying on MIPS.
2420 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
2421 early if src == dest.
2422 * util/grub-mkimage.c (generate_image): Arange for src == dest if
2423 compression is none.
2425 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2427 Reduce memory footprint on SGI by putting modules before the kernel
2428 as opposed to after.
2430 * grub-core/Makefile.core.def (kernel): Increase linking address.
2431 (none_decompress): Likewise.
2432 (xz_decompress): Likewise.
2433 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
2435 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
2437 (grub_arch_modules_addr): New function.
2438 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
2439 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
2440 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
2442 * grub-core/kern/mips/startup.S (total_size): Rename to ...
2443 (grub_total_modules_size): ... this. Make global.
2444 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
2445 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
2447 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
2448 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
2449 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
2450 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
2451 * util/grub-mkimage.c (image_target_desc): New flag
2452 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
2453 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
2454 (generate_image): Handle images with modules before kernel.
2456 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2458 Prevent potential loss of memory map by overwrite on qemu-mips.
2460 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
2461 Save ram size in $s4.
2462 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
2463 All users changed to grub_arch_memsize.
2464 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
2466 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
2467 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
2468 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
2471 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2473 * .bzrignore: Remove grub-dumpbios.
2475 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2477 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
2478 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
2479 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
2480 existing options which append).
2481 * docs/grub.texi (Simple configuration): Document new options.
2482 Reported by: Ian Jackson. Fixes Debian bug #617538.
2484 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2486 * util/grub-fstest.c (cmd_cat): New function.
2487 (fstest): Handle CMD_CAT.
2489 (argp_parser): Handle cat.
2491 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2493 * Makefile.util.def (grub-bin2h): Don't install.
2494 * docs/man/grub-bin2h.h2m: Remove.
2496 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2498 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
2501 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2503 Reenable qemu-mips port.
2505 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
2506 Fix small arc bug while on it.
2507 * gentpl.py: Handle qemu_mips.
2508 * grub-core/Makefile.am: Likewise.
2509 * grub-core/Makefile.core.def: Likewise.
2510 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
2511 inappropriate includes.
2512 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
2513 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
2514 * grub-core/kern/main.c (grub_modules_get_end)
2515 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
2516 * grub-core/kern/mips/qemu-mips: Moved to ..
2517 * grub-core/kern/mips/qemu_mips: ... this.
2518 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
2519 (grub_machine_init): Call terminfo_init and serial_init.
2520 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
2521 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
2523 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
2525 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
2526 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
2527 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2528 * include/grub/mips/qemu_mips/cmos.h: New file.
2529 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
2530 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
2532 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
2533 Use correct mips-style address.
2534 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
2535 (GRUB_TICKS_PER_SECOND): Removed.
2536 (grub_get_rtc): Likewise.
2537 (grub_cpu_idle): Likewise.
2538 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
2540 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
2541 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
2542 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
2543 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
2544 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
2545 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
2546 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
2547 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
2549 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2553 * Makefile.util.def (libgrubmods.a): Add dvh.c.
2554 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
2556 * configure.ac: New target mips-arc.
2557 * gentpl.py: Likewise.
2558 * grub-core/Makefile.am: Likewise.
2559 * grub-core/Makefile.core.def: Likewise.
2560 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
2561 (none_decompress): Likewise.
2562 (lsdev): New module.
2563 (datetime): Use lib/arc/datetime.c on ARC.
2564 (part_dvh): New module.
2565 * grub-core/commands/arc/lsdev.c: New file.
2566 * grub-core/disk/arc/arcdisk.c: Likewise.
2567 * grub-core/kern/mips/arc/init.c: Likewise.
2568 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
2570 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
2572 (grub_arch_dl_relocate_symbols): Likewise.
2573 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
2574 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
2575 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
2577 * grub-core/lib/arc/datetime.c: New file.
2578 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
2579 pci.h on non-loongson.
2580 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
2581 (grub_linux_boot): Set unused registers to 0.
2582 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
2583 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
2584 * grub-core/mmap/mips/uppermem.c: ...here.
2585 * grub-core/partmap/dvh.c: New file.
2586 * grub-core/term/arc/console.c: Likewise.
2587 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
2588 (grub_terminfo_set_current): Add terminal "arc".
2589 (grub_terminfo_readkey): Support ARC sequences.
2590 * include/grub/arc/arc.h: New file.
2591 * include/grub/arc/console.h: Likewise.
2592 * include/grub/disk.h (grub_disk_dev_id): Add
2593 GRUB_DISK_DEVICE_ARCDISK_ID.
2594 * include/grub/mips/arc/kernel.h: New file.
2595 * include/grub/mips/arc/memory.h: Likewise.
2596 * include/grub/mips/arc/time.h: Likewise.
2597 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
2598 * include/grub/mips/kernel.h (grub_halt): ... here.
2599 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
2601 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
2602 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
2603 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
2604 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
2606 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
2608 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
2609 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
2610 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
2611 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
2612 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
2613 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
2614 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
2615 (grub_phys_addr_t): Moved from here ...
2616 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
2617 (grub_vtop): Moved from here ...
2618 * include/grub/mips/memory.h (grub_vtop): ... here.
2619 (grub_map_memory): Moved from here ...
2620 * include/grub/mips/memory.h (grub_map_memory): ... here.
2621 (grub_unmap_memory): Moved from here ...
2622 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
2623 (grub_machine_mmap_iterate): Moved from here ...
2624 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
2625 (grub_mmap_get_lower): Moved from here ...
2626 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
2627 (grub_mmap_get_upper): Moved from here ...
2628 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
2629 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
2631 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
2632 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
2634 * include/grub/mips/time.h (grub_get_rtc): ... here.
2635 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
2637 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
2638 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
2640 * include/grub/mips/time.h (grub_cpu_idle): ... here.
2641 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
2643 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
2644 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
2645 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
2646 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
2647 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
2648 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
2649 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
2650 (GRUB_MACHINE_LINK_ADDR): Likewise.
2651 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
2653 * util/grub-install.in: Run dvhtool on ARC.
2654 * util/grub-mkimage.c (image_targets): Add mips-arc.
2655 (generate_image): Handle ECOFF output for mips-arc.
2657 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
2659 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
2662 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
2664 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
2665 after enabling port.
2667 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
2669 Skip incorrect USB devices.
2671 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
2673 * include/grub/usb.h (grub_usb_err_t): New enum value
2674 GRUB_USB_ERR_BADDEVICE.
2676 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
2678 Fuloong video init support.
2680 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
2682 (grub_vga_read_arx): New function.
2683 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
2685 (framebuffer): New members io, mmioptr and mmiobase.
2686 (read_sis_cmd): New function.
2687 (write_sis_cmd): Likewise.
2688 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
2689 rather than 640x400.
2690 * grub-core/video/sis315_init.c: New file.
2692 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2694 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
2696 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
2697 to grub_dl_register_symbol.
2699 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2701 Fix compilation errors.
2703 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
2705 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
2706 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
2707 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
2708 to loongson machines.
2710 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2712 Several FS mtime support.
2714 * grub-core/fs/affs.c (grub_affs_time): New struct.
2715 (grub_affs_file): New field mtime.
2716 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
2717 type. Removed 'size'. New field 'di'. All users updated.
2718 (grub_affs_mount): Simplify checsum checking.
2719 (grub_affs_iterate_dir): New helper grub_affs_create_node.
2720 (grub_affs_dir): Handle mtime.
2721 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
2722 (grub_cpio_dir): Likewise.
2723 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
2724 (grub_hfs_filerec): New field mtime.
2725 (grub_hfs_dir): Handle mtime.
2726 (grub_hfs_mtime): New function.
2727 (grub_hfs_fs): Register grub_hfs_mtime.
2728 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
2729 (grub_iso9660_dir): New field mtime.
2730 (grub_fshelp_node): New field dirent.
2731 (iso9660_to_unixtime): New function.
2732 (iso9660_to_unixtime2): Likewise.
2733 (grub_iso9660_read_symlink): Use node->dirent.
2734 (grub_iso9660_iterate_dir): Likewise.
2735 (grub_iso9660_dir): Set mtime.
2736 (grub_iso9660_mtime): New function.
2737 (grub_iso9660_fs): Register grub_iso9660_mtime.
2738 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
2739 (grub_jfs_inode): New fields atime, ctime and mtime.
2740 (grub_jfs_dir): Set mtime.
2741 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
2742 * grub-core/fs/ntfs.c (list_file): Set mtime.
2743 (grub_ntfs_dir): Likewise.
2744 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
2745 (grub_reiserfs_iterate_dir): Set mtime.
2746 (grub_reiserfs_dir): Likewise.
2747 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
2748 (grub_fshelp_node): Likewise.
2749 (grub_sfs_iterate_dir): Set mtime.
2750 (grub_sfs_dir): Likewise.
2751 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
2752 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
2753 (grub_xfs_inode): New fields atime, mtime, ctime.
2754 (grub_xfs_dir): Set mtime.
2755 * include/grub/datetime.h (grub_datetime2unixtime): New function.
2756 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
2757 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
2759 Support UDF symlinks.
2761 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
2762 (grub_ufs_read_symlink): New function. All users updated.
2764 Check amiga partmap checksum.
2766 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
2767 (grub_amiga_partition): Likewise.
2768 (amiga_partition_map_checksum): New function.
2769 (amiga_partition_map_iterate): Check checksum.
2771 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2775 * Makefile.util.def (libgrubmods.a): Add romfs.
2776 * grub-core/Makefile.core.def (romfs): New module.
2777 * grub-core/fs/romfs.c: New file.
2779 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2781 Squashfs v4 support.
2783 * Makefile.util.def (libgrubmods.a): Add squash4.
2784 * grub-core/Makefile.core.def (squash4): New module.
2785 * grub-core/fs/squash4.c: New file.
2786 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
2787 disk_input_start, disk_input.
2788 (get_byte): Handle disk_input.
2789 (grub_zlib_disk_read): New function.
2790 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
2792 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2793 2011-05-15 Feiran Zheng <famcool@gmail.com>
2795 * Makefile.util.def (libgrubmods.a): Add minix3.
2796 * grub-core/Makefile.core.def (minix3): New module.
2797 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
2798 (GRUB_MINIX_BSIZE): Removed.
2799 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
2800 (grub_minix_ino_t): New type.
2801 (grub_minix_le_to_cpu_ino): New macro.
2802 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
2803 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
2804 (grub_minix_data): New field block_size.
2805 (grub_minix_read_file): Handle 64-bit correctly.
2806 * grub-core/fs/minix3.c: New file.
2808 2011-05-15 Tristan Gingold <gingold@free.fr>
2809 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
2810 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2814 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
2815 * configure.ac: Add ia64-efi target.
2816 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
2817 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
2818 * gentpl.py: Add ia64_efi platform.
2819 Rename x86_efi to efi and Add ia64-efi. All users updated.
2820 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
2821 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
2822 Remove kern/generic/rtc_get_time_ms.c on EFI.
2823 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
2824 kern/ia64/dl_helper.c on ia64-efi.
2825 Add kern/emu/cache.c on emu.
2826 (linux): Use on loader/ia64/efi/linux.c on ia64.
2827 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
2828 whether symbol is a function.
2829 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
2830 (grub_symbol): New field 'isfunc'.
2831 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
2832 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
2833 (grub_dl_load_segments): Place all sections into the same region.
2834 [__ia64__]: Create trampolines and got.
2835 [GRUB_MACHINE_EMU]: Call mprotect.
2836 (grub_dl_resolve_symbols): Resolve symbol type as well.
2837 [__ia64__]: Create function descriptors.
2838 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
2839 (grub_rtc_get_time_ms): ... this. Expressions simplified.
2840 (grub_get_rtc): New function.
2841 * grub-core/kern/emu/cache.c [__ia64__]: New file.
2842 * grub-core/kern/emu/cache.S: Renamed to ...
2843 * grub-core/kern/emu/cache_s.S: ... this.
2844 [__ia64__]: Add a nop.
2845 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
2846 [__ia64__]: New function.
2847 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
2848 * grub-core/kern/ia64/dl.c: New file.
2849 * grub-core/kern/ia64/dl_helper.c: Likewise.
2850 * grub-core/kern/ia64/efi/init.c: New file.
2851 * grub-core/kern/ia64/efi/startup.S: Likewise.
2852 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
2853 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
2854 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
2855 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
2856 * grub-core/loader/ia64/efi/linux.c: New file.
2857 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
2858 (GRUB_MOD_DEP): Likewise.
2859 (grub_dl) [__ia64__]: New fields got and tramp.
2860 (grub_dl): New field 'base'.
2861 (grub_dl_register_symbol): New argument isfunc. All users updated.
2862 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
2863 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
2864 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
2865 (grub_ia64_dl_get_tramp_got_size): New proto.
2866 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
2867 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
2868 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
2869 * include/grub/efi/api.h: Skip call wrappers on ia64.
2870 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
2871 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
2872 * include/grub/elf.h (ELF_ST_INFO): New definition.
2873 * include/grub/ia64/efi/kernel.h: New file.
2874 * include/grub/ia64/efi/memory.h: Likewise.
2875 * include/grub/ia64/efi/time.h: Likewise.
2876 * include/grub/ia64/kernel.h: Likewise.
2877 * include/grub/ia64/setjmp.h: Likewise (from glibc).
2878 * include/grub/ia64/time.h: New file.
2879 * include/grub/ia64/types.h: Likewise.
2880 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
2881 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
2883 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
2884 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
2885 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
2886 * util/grub-mkimage.c (image_target_desc): New field pe_target.
2888 (EFI64_HEADER_SIZE): New definition. All users updated.
2889 (image_targets): Add ia64-efi.
2890 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
2891 jumpers_addr. All users updated.
2892 Create function descriptors.
2893 (count_funcs): New function.
2894 (unaligned_uint32): New struct.
2895 (MASK20): New definition.
2897 (MASKF21): Likewise.
2898 (add_value_to_slot_20b): New function.
2899 (add_value_to_slot_21_real): Likewise.
2900 (add_value_to_slot_21): Likewise.
2901 (ia64_kernel_trampoline): New struct.
2902 (nopm): New variable.
2904 (make_trampoline): New function.
2905 (relocate_addresses): Handle ia64.
2906 (make_reloc_section): Likewise.
2907 (load_image): Likewise.
2909 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2911 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
2912 warning. Move variables before code while on it.
2914 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2918 * configure.ac: Rename yeeloong platform to loongson. All users updated.
2919 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
2920 * grub-core/boot/mips/loongson/fuloong.S: New file.
2921 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
2922 Explicitly init CS5536.
2923 [FULOONG]: Don't use serial until CS5536 is available.
2924 Set GPIO based on dumps.
2925 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
2926 [FULOONG]: Handle GPIO and memory controller differences.
2927 Parse machine type in $a2.
2928 * grub-core/boot/mips/startup_raw.S: Determine and save the
2930 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
2931 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
2932 init on architecture type.
2933 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
2934 SIS315E. Don't init at_keyboard on fuloong.
2935 (grub_halt): Support Fuloong.
2936 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
2937 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
2938 (loongson_machtypes): New array.
2939 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
2941 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
2942 config. All users updated. Handle CS5536 serial.
2943 * grub-core/term/serial.c (grub_serial_register): Conditionalise
2944 default port on machine type. Register serial as inactive.
2945 * grub-core/video/sis315pro.c: New file.
2946 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
2948 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
2949 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
2950 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
2951 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
2952 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
2953 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
2955 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
2956 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
2958 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
2959 (grub_arch_machine): New extern var.
2960 * include/grub/mips/loongson/serial.h
2961 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
2962 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
2963 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
2964 (GRUB_MACHINE_SERIAL_PORT0): ... this.
2965 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
2966 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
2967 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
2968 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
2969 * include/grub/term.h (grub_term_register_input_inactive): New inline
2971 (grub_term_register_output_inactive): Likewise.
2972 * include/grub/video.h (grub_video_driver_id): New value
2973 GRUB_VIDEO_DRIVER_SIS315PRO.
2974 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
2975 New field "names". All users updated.
2976 New field value IMAGE_FULOONG_FLASH.
2977 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
2979 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
2981 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
2982 and add some clarification.
2984 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2986 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
2987 platforms if kernel is compressed.
2989 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2991 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
2992 unused modules since currently referrence counter isn't reliable and
2993 there isn't much memory to recover there anyway.
2995 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2997 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
2998 rather than resetting it to allow modules to reference themselves
3001 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3003 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
3004 counter on dependencies since grub_dl_unref already handles this.
3006 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3008 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
3009 on error if not already done.
3011 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3013 Fix few potential memory misusage.
3015 * grub-core/font/font.c (load_font_index): Don't free char_index to
3017 (grub_font_load): Zero-fill font at alloc for safety.
3018 Close file on error.
3019 (free_font): Free bmp_idx.
3021 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3023 * docs/grub.texi (Installation): Fix several outdated claims.
3025 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3027 Handle module_license on windows.
3029 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
3031 (insert_string): Make argument const char * instead of char *.
3032 (write_section_data): Handle long section names.
3033 Handle module_license.
3035 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3037 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
3038 handle class-free menuentries.
3039 (grub_normal_add_menu_entry): Add a check to be sure.
3041 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3043 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
3046 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3048 * configure.ac: Bump version to 1.99.
3050 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3052 Give ATA device a bit more time on first try in order to allow disks
3055 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
3056 if dev->present is 1. Reset dev->present on failure.
3057 (grub_ata_device_initialize): Set dev->present to 1.
3058 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
3059 (grub_ata_device): New member 'present'.
3061 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3063 * util/grub-mkimage.c (generate_image): Update hash.
3065 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3067 Flush caches on DMA memory.
3069 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
3070 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
3071 (grub_dma_free): Likewise.
3072 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
3074 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3076 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
3077 to avoid asm treating ld and sd as macros.
3079 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3081 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
3084 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3086 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
3087 grub_decompress_core since later would fail if grub_decompress_core
3090 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3092 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
3093 R_MIPS_JALR since it's used by newer compiler.
3095 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3097 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
3099 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3101 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
3102 file_path to 0 for surety.
3103 (grub_chainloader_boot): Set exit_data to NULL.
3104 Unset the loader once done.
3105 (grub_cmd_chainloader): Fix confusing error message if file is empty.
3107 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3109 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
3110 unknown key into a dprintf.
3112 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3114 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
3115 on first non-existant partition.
3117 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3119 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
3121 Reported by: Mark Korenberg.
3123 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3125 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
3128 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3130 * util/grub-mkimage.c (main): Explicitely flush and sync the output
3131 before closing to ensure that it will be readable by grub-setup.
3133 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3135 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
3136 (devpath_1): Use MAKE_PIWG_PATH.
3137 (devpath_2): Likewise.
3138 (devpath_3): Likewise.
3139 (devpath_4): Likewise.
3140 (devpath_5): Likewise.
3141 (devpath_6): Likewise.
3143 The appleldr.mod was checked that to be binary identical to previous
3146 2011-05-05 Zach <mikezackles>
3148 Support 2010 Macbooks.
3150 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
3151 (devs): Add devpath_6.
3153 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3155 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
3156 /dev/random. /dev/urandom is good enough for our purposes (salting).
3158 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3160 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
3162 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3164 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
3167 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3169 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
3170 and not 0 on failure.
3172 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
3174 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
3175 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
3176 disk; otherwise grub_fs_probe will not fall back to the next
3178 (grub_pxefs_open): Likewise, for consistency.
3179 Reported and tested by: Ezekiel Grave.
3181 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
3183 * tests/partmap_test.in: Don't hardcode path to parted.
3184 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
3186 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
3188 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
3189 of `ls' to find out which devices are available.
3191 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3193 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
3194 than source address for efi mmap buffer.
3196 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3198 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
3199 wrong action on non-detecting the magic.
3201 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3203 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
3204 already supplied by another part of the module (fixes compilation on
3207 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3209 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
3210 match the one used by mdadm.
3212 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3214 * po/README: Add instructions for creating po/LINGUAS.
3216 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3218 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
3221 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
3222 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
3223 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
3224 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
3225 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
3226 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
3227 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
3228 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
3229 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
3230 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
3231 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
3232 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
3233 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
3234 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
3235 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
3236 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
3237 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
3238 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
3239 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
3240 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
3241 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
3242 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
3244 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3246 * grub-core/kern/emu/getroot.c
3247 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
3248 test that was incorrectly reintroduced in r3214.
3249 Reported by: Ian Dall. Fixes Savannah bug #33133.
3251 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3253 Fix stack pointer handling in 16-bit relocator.
3255 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
3256 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
3257 Fixes Ubuntu bug #683904.
3259 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3261 * configure.ac: Bump version to 1.99~rc2.
3263 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3265 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
3266 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
3267 * grub-core/lib/x86_64/setjmp.S: Likewise.
3268 * grub-core/lib/mips/setjmp.S: Likewise.
3269 * grub-core/lib/powerpc/setjmp.S: Likewise.
3270 * grub-core/lib/sparc64/setjmp.S: Likewise.
3272 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3274 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
3275 * grub-core/lib/efi/datetime.c: Likewise.
3277 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3279 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
3281 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
3282 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
3283 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
3285 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3287 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
3289 (grub_gfxterm_term_init): Likewise.
3291 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3293 Take into account the decorations the computing menu entry width.
3295 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
3296 (grub_gfxmenu_create_box): Register get_border_width.
3297 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
3299 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
3302 2011-04-18 Endres Puschner <code@e7p.de>
3304 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
3305 Don't skip first class.
3307 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3309 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
3311 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
3313 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3315 Complete 64-bit division support.
3317 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
3318 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
3319 * include/grub/misc.h (grub_divmod64): Rename to ...
3320 (grub_divmod64_full): ... this.
3321 (grub_divmod64): New inline function.
3323 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3325 * util/grub-mkimage.c (generate_image): Add forgotten comma.
3327 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3329 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
3330 performing the necessary test.
3332 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3334 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
3335 (kfreebsd.elf): Likewise.
3336 (pc-chainloader.elf): Likewise.
3337 (ntldr.elf): Likewise.
3339 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3341 Identify RAID by its UUID rather than (guessed) name.
3343 * grub-core/disk/raid.c (ascii2hex): New function.
3344 (grub_raid_open): Accept mduuid/%s specification.
3345 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
3346 (get_mdadm_uuid): ... this.
3347 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
3349 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
3351 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
3354 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
3356 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
3358 * util/grub.d/20_linux_xen.in: Likewise.
3360 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
3362 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
3363 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
3365 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
3366 Build a list of relevant visible mounts using the mnt_id and
3367 parent_mnt_id fields, and then scan that list at the end.
3369 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
3371 * docs/grub.texi (normal): New section.
3372 (normal_exit): New section.
3373 (Embedded configuration): Add reference to normal.
3374 (GRUB only offers a rescue shell): Likewise.
3375 * docs/grub-dev.texi (Error Handling): Fix typo.
3377 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
3379 * NEWS: Drop obsolete entry about probe-only btrfs support.
3381 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
3383 * util/import_gcry.py: Fix typo.
3385 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3387 * NEWS: Add btrfs support.
3389 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3390 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
3392 BtrFS support. Written by me (Vladimir) with important bugfixes and
3393 even more important testing by Colin.
3395 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
3396 * grub-core/Makefile.core.def (btrfs): Add crc.c.
3397 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
3398 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
3399 mem_input_off and mem_input. All users updated to accept in-RAM input.
3400 (gzio_seek): New function.
3401 (test_zlib_header): Likewise.
3402 (grub_gzio_read): Likewise.
3403 (grub_zlib_decompress): Likewise.
3404 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
3405 Accept partial and non-virtual mounts.
3406 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
3407 avoid receiving /dev/dm-X as device.
3408 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
3409 Handle bind and partial mounts.
3410 * grub-core/lib/crc.c: New file.
3411 * include/grub/deflate.h: Likewise.
3412 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
3414 * include/grub/lib/crc.h: New file.
3416 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3418 Implement automatic module license checking according to new GNU
3421 * grub-core/kern/dl.c (grub_dl_check_license): New function.
3422 (grub_dl_load_core): Use grub_dl_check_license.
3423 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
3424 (GRUB_MOD_LICENSE): Likewise.
3425 (GRUB_MOD_DUAL_LICENSE): Likewise.
3426 All modules updated.
3428 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
3430 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
3431 reserved_first_sector to 1. btrfs reserves plenty of space for boot
3433 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
3435 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3437 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
3439 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3441 * util/grub-fstest.c (read_file): Report GRUB error if file opening
3444 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3446 * grub-core/kern/file.c (grub_file_open): Don't take into account the
3447 parenthesis in the middle of the filename.
3449 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3451 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
3452 rather than trying to put initrd way too high.
3453 Reported by: Ryan Lortie <desrt@desrt.ca>
3455 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3457 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
3458 improperly removed string.
3460 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3462 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
3464 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
3465 (open_device) Likewise.
3466 (grub_util_biosdisk_close): Likewise.
3467 Reported by: Mark Korenberg.
3469 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
3471 * util/grub-mkconfig_lib.in: Add missing quotes.
3473 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
3475 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
3478 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3480 Dynamically count the number of lines for the lower banner.
3482 * grub-core/normal/menu_entry.c (per_term_screen): New member
3484 (print_down): Use num_entries.
3485 (update_screen): Likewise.
3486 (grub_menu_entry_run): Set num_entries.
3487 * grub-core/normal/menu_text.c (menu_viewer_data): New member
3489 (grub_print_message_indented): Move real part to ...
3490 (grub_print_message_indented_real): ... here. Additional argument
3492 (draw_border): Additional argument num_entries.
3493 (print_message): Additional argument dry_run.
3494 (print_entries): Receive menu viewer data.
3495 (grub_menu_init_page): New argment num_entries.
3496 (menu_text_set_chosen_entry): Use num_entries.
3497 (grub_menu_try_text): Likewise.
3498 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
3500 (grub_ucs4_count_lines): New function.
3501 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
3502 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
3503 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
3504 (grub_term_border_height): Likewise.
3505 (grub_term_num_entries): Likewise.
3507 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3509 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
3510 Remove now unused string.
3512 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
3514 * docs/grub-dev.texi (Finding your way around): Update for 1.99
3516 (Getting started): GRUB is developed in Bazaar now, not Subversion.
3518 (Comment): Fix typo.
3519 (Getting started): General copy-editing.
3520 (Typical Development Experience): Likewise.
3521 (Error Handling): Likewise.
3522 (Video API): Likewise.
3524 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
3526 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
3529 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3531 * util/grub-mkimage.c (main): Handle special naming of yeeloong
3534 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
3536 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
3537 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
3540 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3542 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
3543 grub_strcpy since the lines aren't necessarily 0-terminated.
3545 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3547 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
3550 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3552 * grub-core/commands/probe.c (options): Argument to set isn't optional.
3553 (GRUB_MOD_INIT): DEVICE isn't optional.
3555 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3557 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
3558 word on new line if it's too long anyway. Fixes a hang.
3560 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3562 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
3564 * util/grub-setup.c (main): Reuse md device name if available.
3565 * util/raid.c (grub_util_raid_getmembers): Receive device name and
3566 not GRUB name as argument.
3567 Based on patch by: Florian Wagner <fwagner>.
3569 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3571 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
3572 Place mbi on low memory for better compatibility.
3574 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3576 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
3578 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3579 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
3581 * autogen.sh: Ensure that collate and ctype locale is C.
3582 * conf/Makefile.common: Likewise.
3584 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3586 * grub-core/normal/menu.c: Add missing include.
3588 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3590 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3592 2011-04-08 Martin Zuther <mzuther@mzuther.de>
3594 * util/grub-mkconfig.in: Ignore emacsen backup.
3596 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3598 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
3600 (grub_util_biosdisk_close): Likewise.
3602 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3604 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
3605 const attribute and use grub_isdigit.
3607 2011-04-06 Andrey <dev_null@ukr.net>
3609 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
3612 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3614 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
3615 useful grub_dprintf's.
3617 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3619 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
3621 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3623 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
3625 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3627 Output errors if theme loading failed.
3629 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
3630 grub_gfxterm_fullscreen on error paths to ...
3631 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
3632 theme loading error.
3634 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3636 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
3637 space for older compilers.
3638 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
3640 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3642 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
3643 and report them as not RAID members since they are useless for GRUB.
3644 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3646 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
3648 Increase LVM implementation robustness in order not to crash on
3649 configurations like pvmove. Previously code assumed that in some places
3650 only lvs or only pvs are used whereas it seems that they are used
3653 * grub-core/disk/lvm.c (read_node): New function.
3654 (read_lv): Use read_node.
3655 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
3656 Match volumes only at the end when all lvs are found. Take both
3657 pvs (first) and lvs (second) into account.
3658 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
3659 mirror_* into node_*. All users updated.
3660 (grub_lvm_stripe): Merge this ...
3661 (grub_lvm_mirror): ... and this ...
3662 (grub_lvm_node): ... into this. All users updated.
3664 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
3666 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
3667 of function to allow further scanning for LVMs.
3669 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
3671 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
3672 on failed seek as it breaks open fd reusage.
3674 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
3676 * util/grub-install.in: Add a recommendation to use --recheck before
3679 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
3681 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
3684 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
3686 GRUB developper manual based on existing Internals section and
3687 contributions by the various authors with active copyright assignment.
3689 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
3690 * docs/font_char_metrics.png: New file.
3691 * docs/font_char_metrics.txt: Likewise.
3692 * docs/grub-dev.texi: Likewise.
3693 * docs/grub.texi (Internals): Move from here ...
3694 * docs/grub-dev.texi: ... here.
3696 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
3698 Store the loopback device as data on loopback grub_disk structures,
3699 rather than the file it points to. This fixes use of freed memory
3700 if an existing loopback device is replaced.
3702 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
3703 disk->data, not dev->file.
3704 (grub_loopback_read): Adjust file assignment to match.
3705 Fixes Ubuntu bug #742967.
3707 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
3709 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
3710 when replacing an existing device.
3712 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3714 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
3717 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
3719 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
3720 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
3721 (grub_jfs_read_inode): Likewise.
3722 (grub_jfs_opendir): Likewise. Remove now useless casts.
3723 (grub_jfs_getent): Likewise.
3724 Make ino a grub_uint32_t rather than int.
3725 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
3726 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
3727 division and module with bit operations.
3728 (grub_jfs_find_file): Make ino a grub_uint32_t.
3729 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
3731 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
3733 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
3734 warning. (This was in fact always initialised before use, but GCC
3735 wasn't smart enough to prove that.)
3736 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
3738 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3740 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
3742 (efi_wrap_1): Likewise.
3743 (efi_wrap_2): Likewise.
3744 (efi_wrap_3): Likewise.
3745 (efi_wrap_4): Likewise.
3746 (efi_wrap_5): Likewise.
3747 (efi_wrap_6): Likewise.
3748 (efi_wrap_10): Likewise.
3749 Based on information by: Red Hat/Peter Jones.
3751 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
3753 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
3754 set-but-not-used variable.
3756 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
3758 * docs/grub.texi (Simple configuration): Be more explicit about
3759 GRUB_DEFAULT, and add an example.
3760 Reported by: Leslie Rhorer.
3762 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
3764 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
3767 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
3769 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
3770 * util/grub.d/20_linux_xen.in: Likewise.
3772 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3774 * util/grub.d/10_linux.in: Try alternative config filenames where
3775 we parse config file.
3776 * util/grub.d/20_linux_xen.in: Likewise.
3778 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
3780 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
3781 * util/grub.d/20_linux_xen.in: Likewise.
3783 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3785 * grub-core/disk/raid.c (insert_array): Add few potentially
3786 useful grub_util_info.
3787 (grub_raid_register): Likewise.
3789 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3791 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
3792 Preserve partition number in mdadm code path.
3794 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3796 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
3797 few potentially useful grub_util_info.
3799 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3801 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
3803 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
3805 * docs/grub.texi (default): Use @example rather than nested
3806 itemized lists to avoid breaking gendocs.
3808 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
3810 * docs/grub.texi (Future): Update.
3812 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
3814 * docs/grub.texi (Environment): New chapter.
3815 (Changes from GRUB Legacy): Link to "Environment block" section for
3816 details of limitations.
3817 (Simple configuration): Likewise. Link to documentation of gfxmode
3818 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
3820 (Shell-like scripting): Note that normal variables are stored in the
3822 (gettext): Link to documentation of lang and locale_dir.
3823 (list_env): New section.
3824 (load_env): New section.
3825 (save_env): New section.
3827 (Reporting bugs): Fix typo.
3829 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3831 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
3834 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3836 * grub-core/term/at_keyboard.c (set_scancodes)
3837 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
3839 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
3841 * docs/grub.texi (Menu-specific commands): Remove some semantics
3842 that were true in GRUB Legacy but not in GRUB 2.
3843 (submenu): New section.
3844 (false): New section.
3845 (read): New section.
3846 (true): New section.
3848 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
3850 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
3852 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
3854 * docs/grub.texi (Simple configuration): Explain some of the
3855 current limitations of grub-mkconfig.
3856 Reported by: Leslie Rhorer.
3858 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3860 Old macs search for boot.efi rather than for bootia32.efi.
3862 * util/grub-install.in: Copy bootia32.efi to boot.efi.
3863 * util/grub-mkrescue.in: Likewise.
3864 Suggested by: Peter Jones.
3866 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3868 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
3870 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3872 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
3873 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
3874 (grub_lvm_mirror): New struct.
3875 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
3876 (grub_lvm_iterate): Iterate only visible volumes.
3877 (grub_lvm_read): Factor out to ..
3878 (read_lv): ... this. Support mirrors.
3879 (grub_lvm_read): New wrapper function.
3880 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
3881 stripped or mirrored.
3883 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3885 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
3887 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
3889 * docs/grub.texi (loopback): New section.
3891 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
3893 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
3896 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
3898 * docs/grub.texi (BIOS installation): New section, partly based on
3899 previous text in other sections.
3900 (Installing GRUB using grub-install): Replace BIOS discussion with a
3904 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3906 * grub-core/kern/emu/hostdisk.c (find_partition_start)
3907 [HAVE_DIOCGDINFO]: Add safety checks.
3909 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3911 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
3912 per default compiled in kernel and prior to 8.0 isn't shipped at all.
3914 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
3916 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
3917 real_sb->size is zero (e.g. RAID-0), get the disk size from
3918 real_sb->data_size instead.
3919 Fixes Ubuntu bug #743136.
3921 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3923 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
3924 printf clauses for printing size and start.
3926 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3928 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
3929 Reported and tested by: Timothy Nikkel.
3931 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3933 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
3934 (dirty_region_add_real): ... this.
3935 (dirty_region_add): Don't discard margin refresh when performing
3938 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3940 * grub-core/lib/relocator.c (allocate_regstart)
3941 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
3942 terminals are capabple of malloc-free operation.
3943 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
3944 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
3946 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
3948 * util/grub-setup.c: Copy the partition table zone if floppy support
3949 is disabled, even if no partition table is found.
3951 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
3952 during POST if an invalid partition table is contained in the PBR
3953 of the active partition when GRUB is installed to a partition.
3955 2011-03-28 Colin Watson <cjwatson@debian.org>
3957 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
3960 2011-03-28 Colin Watson <cjwatson@debian.org>
3962 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
3963 to be specific about what kind of RAID device we're scanning for.
3965 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
3967 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
3968 return freed string.
3970 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3972 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
3974 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3976 Use libgeom on FreeBSD to detect partitions.
3978 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
3979 (grub-mkrelpath): Likewise.
3980 (grub-script-check): Likewise.
3981 (grub-editenv): Likewise.
3982 (grub-mkpasswd-pbkdf2): Likewise.
3983 (grub-fstest): Likewise.
3984 (grub-mkfont): Likewise.
3985 (grub-mkdevicemap): Likewise.
3986 (grub-probe): Likewise.
3987 (grub-setup): Likewise.
3988 (grub-ofpathname): Likewise.
3989 (grub-mklayout): Likewise.
3990 (example_unit_test): Likewise.
3991 (grub-menulst2cfg): Likewise.
3992 * grub-core/Makefile.core.def (grub-emu): Likewise.
3993 (grub-emu-lite): Likewise.
3994 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
3995 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
3996 define HAVE_DIOCGDINFO.
3997 (follow_geom_up) [FreeBSD]: New function.
3998 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
3999 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
4000 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
4001 unconditionally of HAVE_DIOCGDINFO.
4003 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4005 Fix FreeBSD compilation problem.
4007 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
4008 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
4010 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
4012 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
4013 Switch back to page zero before loading a kernel, since some kernel
4014 drivers expect that.
4015 Thanks to: Felix Kuehling.
4017 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4019 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
4020 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
4021 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
4023 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4025 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
4026 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
4028 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4030 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
4031 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
4034 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4036 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
4037 for modules headers when counting the needed allocation size.
4039 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4041 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
4042 if no ASCII character is found to prevent crash.
4044 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
4046 * grub-core/video/bitmap.c (match_extension): Ignore case.
4048 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4050 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
4052 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4054 * grub-core/script/parser.y: Declare "time" as valid argument.
4056 2011-03-23 Peter Jones <pjones@redhat.com>
4058 Fix incorrect assert failure reporting.
4060 * grub-core/tests/example_functional_test.c (example_test): Add
4062 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
4063 (failure_start): ...this. Check that malloc succeeded.
4064 Don't call xvasprintf. Return failure struct.
4065 (failure_append_vtext): New function.
4066 (failure_append_text): Likewise.
4067 (add_failure): Likewise.
4068 (grub_test_assert_helper): Likewise.
4069 * include/grub/test.h (grub_test_assert_helper): New declaration.
4070 (grub_test_assert): Macro rewritten.
4072 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4074 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
4076 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4078 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
4080 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4082 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
4083 into GRUB-style one.
4085 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4087 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
4088 error and not grub_errno.
4089 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
4091 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4093 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
4094 GRUB_USB_SPEED_NONE in case of failure and not the error code.
4096 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4098 * grub-core/efiemu/i386/pc/cfgtables.c
4099 (grub_machine_efiemu_init_tables): Make declaration a prototype.
4100 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
4101 (grub_xnu_unlock): Likewise.
4102 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
4104 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4106 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
4107 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
4108 * grub-core/commands/hashsum.c (aliases): Likewise.
4109 * grub-core/commands/setpci.c (pci_registers): Likewise.
4110 * grub-core/disk/usbms.c (attach_hook): Likewise.
4111 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
4112 (zio_checksum_table): Likewise.
4113 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
4114 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
4115 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
4116 * grub-core/lib/relocator.c (leftovers): Likewise.
4117 (extra_blocks): Likewise.
4118 * grub-core/loader/i386/bsd.c (relocator): Likewise.
4119 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
4120 (modules_last): Likewise.
4121 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
4122 (devices): Likewise.
4123 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
4124 (modules_last): Likewise.
4125 * grub-core/normal/auth.c (users): Likewise.
4126 * grub-core/normal/context.c (initial_menu): Likewise.
4127 (current_menu): Likewise.
4128 * grub-core/normal/crypto.c (crypto_specs): Likewise.
4129 * grub-core/term/serial.c (grub_serial_ports): Likewise.
4130 (grub_serial_terminfo_input_template): Likewise.
4131 (grub_serial_terminfo_output_template): Likewise.
4132 (grub_serial_terminfo_input): Likewise.
4133 (grub_serial_terminfo_output): Likewise.
4134 (registered): Likewise.
4135 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
4137 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4139 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
4140 grub_video_mode_type_t.
4141 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
4142 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
4143 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
4145 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4147 * util/grub-install.in: Correct the x86-64 name as x86_64.
4149 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
4151 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
4152 initial chunk read from the kernel always includes GRUB's multiboot
4153 header, which is now outside the first sector.
4155 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
4157 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
4158 cached mmap_size, so that this works correctly when called multiple
4160 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
4162 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
4164 * docs/grub.texi (Simple configuration): Tidy up formatting.
4166 2011-03-07 Szymon Janc <szymon@janc.net.pl>
4168 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
4169 Set-but-not-used variable removed.
4171 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4173 Workaround yet another IEEE1275 bug.
4175 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
4176 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
4177 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
4178 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
4180 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4181 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
4183 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4185 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
4188 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
4190 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
4191 empty, since in that case we can only generate either nothing or a
4192 syntactically invalid configuration file.
4193 Reported by: Michal Suchanek. Fixes Debian bug #612898.
4195 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
4197 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
4198 (Making a GRUB bootable CD-ROM): Likewise.
4199 (Invoking grub-mkrescue): New section.
4200 Reported by: Yann Dirson. Fixes Debian bug #612585.
4202 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
4204 * util/grub-install.in: Remove unnecessary brackets from tr
4206 * util/grub.d/10_hurd.in: Likewise.
4207 * util/grub.d/10_kfreebsd.in: Likewise.
4208 * util/grub.d/10_linux.in: Likewise.
4209 * util/grub.d/20_linux_xen.in: Likewise.
4210 Reported by: Jamie Heilman. Fixes Debian bug #612564.
4212 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
4214 * include/grub/file.h (not_easly_seekable): Rename to ...
4215 (not_easily_seekable): ... this. Update all users.
4217 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
4219 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
4222 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
4224 * util/grub-mkimage.c (generate_image): Refuse to create the images
4225 bigger than the actual flash (512K) in Loongson machines. 512K is also
4226 the biggest chip supported by them.
4228 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4230 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
4232 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
4234 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
4237 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4239 * util/grub-install.in: Ignore install device on platforms
4240 where it doesn't make sense. Always use UUIDs except on pc, efi and
4242 Reported by: Daniel Kahn Gillmor.
4244 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4246 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
4248 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4250 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
4251 (iterate_real): Don't rely on partition being non-NULL.
4253 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4255 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
4256 supported platforms. Put a compile time assert for this rather than
4257 generate a warning with 32-bit shift.
4259 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4261 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
4262 logical expression more readable.
4264 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4266 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
4267 even if some elements have a name.
4268 Reported by: Alexander GQ Gerasiov.
4270 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
4272 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
4273 path unreadable if `grub-probe -t abstraction' fails, for example if
4274 memberlist fails on an LVM volume group.
4275 Reported by: Darius Jahandarie.
4277 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
4279 * docs/grub.texi (Simple configuration): Document
4280 GRUB_PRELOAD_MODULES.
4282 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
4284 * .bzrignore: Remove nonexistent grub-pbkdf2.
4286 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4288 * configure.ac: Bump version to 1.99~rc1.
4290 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4292 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
4295 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4297 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
4300 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4302 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
4304 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4306 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
4309 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4311 Fix compilation on cygwin.
4313 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
4314 -R .drectve on cygwin.
4315 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
4316 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
4317 (COND_CYGWIN): New condition.
4318 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
4319 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
4320 not @TARGET_OBJ2ELF@.
4321 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
4322 type to determine whether aux is to be used.
4324 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4326 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
4327 realpath'ed device string.
4328 Handle floppy (somewhat).
4329 Issue error in unknown case rather than garbage.
4330 Reported by: Axel Beckert.
4332 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4334 * util/grub.d/00_header.in (load_video): Handle the case when no video
4336 Thanks to: Axel Beckert.
4338 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4340 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
4341 variable. Fixes problem on big endian platforms.
4343 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4345 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
4346 It doesn't work well there.
4348 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4350 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
4352 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
4353 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
4356 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4358 Use alias->path rather than buggy "canon".
4360 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
4361 (ofdisk_hash_add): New argument curcan. All users updated.
4363 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
4365 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
4367 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4369 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
4370 loadmask before doing any calculations. Use correct type for offset.
4371 (grub_linux_load64): Likewise.
4373 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
4375 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
4377 (console_grub_equivalences_unshift): Likewise.
4378 Reported by: Daniel Dehennin.
4380 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4382 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
4383 (set_env_limn_ro): Likewise.
4384 (GRUB_MOD_INIT): Likewise.
4385 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
4386 ARRAY_SIZE while on it.
4387 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
4388 * grub-core/normal/context.c (grub_env_export): Move from here ...
4389 * grub-core/kern/env.c (grub_env_export): ... here.
4390 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
4392 * grub-core/kern/main.c (grub_main): Export root and prefix.
4393 * include/grub/env.h (grub_env_export): Export.
4394 Reported by: Seth Goldberg.
4396 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4398 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
4399 Take into account space used by ELF sections and multiboot palette.
4400 Reported by: Grégoire Sutre.
4402 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4406 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4408 Pass more appropriate video id to Linux.
4410 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
4411 grub_video_get_driver_id and variable gfxpayloadforcelfb to
4413 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
4414 shift params->lfb_size.
4415 * include/grub/i386/linux.h: Make an enume out of have_vga values.
4417 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4419 * util/grub-menulst2cfg.c: Add missing include of misc.h.
4421 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4423 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
4424 separator and pass bootpath/devid even if only one of them is available.
4425 Reported by: Seth Goldberg.
4427 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4429 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
4430 implementations bug on them.
4432 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
4434 (filter_memory_map): Likewise.
4436 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4438 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
4439 Reported by: nebuchadnezzar.
4441 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4443 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
4444 Reported by: nebuchadnezzar.
4446 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4448 Submenu default support.
4450 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
4451 auto_boot. All users updated.
4453 Handle chosen and default with submenus.
4454 (grub_menu_execute_with_fallback): Declared static.
4455 Don't notify failure if autobooted. Upper level does it.
4456 (menuentry_eq): New function.
4457 (get_entry_number): Use menuentry_eq.
4458 (show_menu): New parameter "autobooted". All users updated.
4459 (grub_show_menu): Likewise.
4460 * include/grub/normal.h (grub_show_menu): Likewise.
4461 * include/grub/menu.h (grub_menu_execute_entry): Removed.
4462 (grub_menu_execute_with_fallback): Likewise.
4464 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4466 * util/grub-mklayout.c (usage): Update help text.
4468 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4470 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
4472 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4474 * util/grub-menulst2cfg.c (main): Trim the line.
4476 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4478 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
4479 (grub_machine_init): Don't check amount of low memory as reportedly
4480 INT 12h can be broken and if low memory is too low we wouldn't have
4481 gotten into grub_machine_init anyway.
4483 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4485 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
4486 (grub_machine_mmap_iterate): Take low memory into account
4488 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4490 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
4494 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4496 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
4499 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
4501 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
4502 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
4504 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
4506 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
4507 openbsd and netbsd types being in part_bsd module.
4509 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4511 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
4512 (_FILE_OFFSET_BITS): Likewise.
4513 Reported by: Seth Goldberg.
4515 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
4517 * configure.ac: Check for libdevmapper header.
4519 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4521 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
4523 (fzap_lookup): Likewise.
4524 (dnode_get): Likewise.
4525 (make_mdn): Likewise.
4526 (zfs_mount): Likewise.
4527 (fzap_iterate): Use temporary pointer to avoid aliasing.
4528 (grub_zfs_read): Likewise.
4529 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
4530 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
4531 pointers to avoid aliasing.
4532 (grub_cmd_xnu_kernel64): Likewise.
4533 (grub_xnu_load_driver): Likewise.
4535 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4537 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
4539 (grub_cmd_terminal_output): Likewise.
4540 Reported and tested by: Grégoire Sutre.
4542 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4544 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
4546 Reported and tested by: Grégoire Sutre.
4548 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4550 * configure.ac: Do CPU substitution even if it's specified explicitly.
4551 Reported and tested by: Alain Greppin.
4553 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4555 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
4556 Reported and tested by: Alain Greppin.
4558 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4560 Satisfy some bison versions need for inttypes.h.
4562 * grub-core/lib/posix_wrap/inttypes.h: New file.
4563 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
4564 (int16_t): Likewise.
4565 (int32_t): Likewise.
4566 (int64_t): Likewise.
4567 Reported and tested by: Alain Greppin.
4569 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4571 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
4572 Silence spurious warning.
4573 Reported and tested by: Alain Greppin.
4575 2011-01-07 Szymon Janc <szymon@janc.net.pl>
4577 * docs/grub.texi (Support automatic decompression): Update with xz
4578 decompression support.
4580 2011-01-07 Szymon Janc <szymon@janc.net.pl>
4582 Improve loaders' kernel command line handling.
4584 * grub-core/lib/cmdline.c: New file.
4585 * include/grub/lib/cmdline.h: Likewise.
4586 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
4587 grub_create_loader_cmdline to create kernel command line.
4588 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
4589 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
4590 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
4591 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
4592 (linux): Add lib/cmdline.c on common.
4594 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4596 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
4597 inopos might be unaligned.
4599 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4601 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4602 endian transformations.
4603 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
4604 Based on report by: Doug Nazar.
4606 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
4608 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
4609 array->members[i].start_sector.
4610 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
4612 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4614 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
4615 Reported and tested by: Grégoire Sutre.
4617 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
4619 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
4620 avoid causing test failures by clearing the screen.
4622 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
4624 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
4625 Fix prefix check to handle the case where dir ends with a slash
4626 (most significantly, "/" itself).
4627 Reported by: Michael Vogt.
4629 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4631 Run terminfo_cls on initing terminfo output to clear the screen and
4632 move the cursor to (0,0).
4634 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
4635 Call grub_terminfo_output_init.
4636 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
4637 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
4638 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
4640 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4642 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
4645 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4647 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
4650 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4652 The E820 type 5 is BADRAM, not EXEC_CODE.
4654 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
4655 (GRUB_E820_BADRAM): New define.
4656 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
4657 into reserved. Propagate BADRAM.
4658 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
4659 (GRUB_E820_BADRAM): New define.
4661 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4663 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
4664 Ignore the memory post-4G.
4665 (grub_relocator_firmware_alloc_region): Additional debug statement.
4667 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4669 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
4671 Reported by: David Pravec.
4673 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4675 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
4678 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4680 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
4682 (grub_reed_solomon_recover): Likewise.
4684 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4686 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
4688 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4690 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
4693 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
4695 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
4696 descriptions of extract_legacy_entries_source and
4697 extract_legacy_entries_configfile.
4698 Reported by: Seung Soo, Ha.
4700 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
4702 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
4703 on devices that do not implement function 0.
4705 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
4707 * grub-core/fs/hfsplus.c: Make parent unsigned.
4708 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
4710 (grub_hfsplus_cmp_extkey): Likewise
4712 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4714 * util/grub-install.in: Correctly use bootloader_id and not
4715 GRUB_DISTRIBUTOR on efibootmgr line.
4717 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4719 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
4721 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
4723 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
4724 Xen and reorder menu item wording to make it clearer that this entry
4725 will launch Xen. Print separate messages when loading Xen and
4728 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
4730 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
4731 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
4732 loop in case of incorrect amiga partmap.
4734 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
4736 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
4737 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
4740 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
4742 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
4744 Reported by: crocket
4746 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4748 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
4750 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
4752 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4754 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
4756 (grub_cmd_xnu_kextdir): Likewise.
4757 (grub_cmd_xnu_splash): Likewise.
4759 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4761 Avoid using Reed-Solomon with 0 redundancy.
4763 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
4764 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
4766 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
4767 (grub_reed_solomon_recover): Likewise.
4769 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4771 Don't use disk subsystem in freebsd_boot.
4773 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
4774 (freebsd_biosdev): Likewise.
4775 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
4776 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
4778 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
4780 Handling of files of unknown size is currently limited. They can't be
4781 used e.g. for initrd or modules. Moreover gzip handling of not
4782 easily seekable files is buggy. Disable unknown file size for now. May
4783 be inefficient but works.
4785 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
4786 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
4788 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
4790 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
4793 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
4795 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
4797 2010-12-25 Shea Levy <shlevy>
4799 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
4801 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
4803 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
4804 Windows Server 2008.
4805 Reported by: Devin Giddings.
4807 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
4809 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
4810 writing an error message because of async power management.
4811 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
4812 (grub_reboot): Likewise.
4814 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
4816 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
4817 keep unit tests from failing when they shouldn't.
4819 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
4821 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
4822 previous patch increased the size of the RS code by 20 bytes (at
4823 least with gcc-4.4), so increase this by 20 bytes to match.
4824 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
4826 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
4828 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
4829 scratch area. Make sure to initialise chosen in standalone mode as
4830 well as non-standalone.
4831 Reported by: Robert Hooker and Andy Whitcroft.
4832 Tested by: Andy Whitcroft.
4834 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
4836 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
4837 constructing a new unescaped string and passing it to grub_xputs in
4838 one go, rather than passing characters to grub_printf one at a time.
4840 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
4842 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
4845 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
4847 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
4848 comment. Add an extra layer of quotation, requiring the output of
4849 this function to be used in a printf format string.
4850 (gettext_printf): New function.
4851 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
4852 Extract translatable strings from here-documents and use a temporary
4853 variable instead, so that xgettext can find them.
4854 * util/grub.d/10_kfreebsd.in: Likewise.
4855 * util/grub.d/10_linux.in: Likewise.
4856 * util/grub.d/20_linux_xen.in: Likewise.
4858 * po/grub.d.sed: New file.
4859 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
4860 arguments. Set c-format flags on all strings extracted from
4861 util/grub.d/ (xgettext refuses to include these itself for strings
4862 it extracted from a shell file, but these really are c-format).
4864 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
4866 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
4867 Avoid next pointing to nowhere.
4869 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
4871 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
4872 rather than assuming than rootblock is exactly in the middle.
4873 (grub_affs_label): Likewise.
4875 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
4877 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
4878 reserved_first_sector to 0.
4879 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
4880 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
4881 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
4883 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
4885 Fix handling of UTF-16 UDF labels.
4887 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
4888 (read_string): .. here.
4889 (grub_udf_label): Use read_string.
4891 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
4893 * grub-core/normal/menu_entry.c (run): Execute commands from menu
4894 editor under argument scope.
4895 Reported by: Jordan Uggla
4897 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
4899 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
4901 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
4903 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
4904 line, and other keys scroll an entire page (previous handling was
4905 for \r and \n to scroll a page and other keys to scroll two lines).
4907 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
4909 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
4910 Set ptrdest to correct get_physical_target_address rather than
4911 incorrect get_virtual_current_address.
4913 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
4915 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
4916 correct cat to grub_uint8_t * rather than grub_uint32_t *.
4918 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
4920 * .bzrignore: Ignore grub-core/rs_decoder.S.
4922 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
4924 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
4925 .mo/.mo.gz opening sequence to ...
4926 (grub_mofile_open_lang): ... here.
4927 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
4928 * util/grub.d/00_header.in (grub_lang): Include country part of
4930 Reported by: Mario Limonciello.
4932 2010-12-09 Robert Millan <rmh@gnu.org>
4934 * NEWS: Document addition of ZFS support.
4936 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
4938 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
4939 rather than `/ 2', as the latter requires -Wa,--divide which would
4940 require bumping our minimum binutils version.
4942 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
4944 * util/grub-script-check.c (main): Print script line number on
4947 2010-12-01 Robert Millan <rmh@gnu.org>
4949 * grub-core/fs/zfs/zfs.c: New file.
4950 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
4951 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
4952 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
4953 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4955 * include/grub/zfs/dmu.h: Likewise.
4956 * include/grub/zfs/dmu_objset.h: Likewise.
4957 * include/grub/zfs/dnode.h: Likewise.
4958 * include/grub/zfs/dsl_dataset.h: Likewise.
4959 * include/grub/zfs/dsl_dir.h: Likewise.
4960 * include/grub/zfs/sa_impl.h: Likewise.
4961 * include/grub/zfs/spa.h: Likewise.
4962 * include/grub/zfs/uberblock_impl.h: Likewise.
4963 * include/grub/zfs/vdev_impl.h: Likewise.
4964 * include/grub/zfs/zap_impl.h: Likewise.
4965 * include/grub/zfs/zap_leaf.h: Likewise.
4966 * include/grub/zfs/zfs.h: Likewise.
4967 * include/grub/zfs/zfs_acl.h: Likewise.
4968 * include/grub/zfs/zfs_znode.h: Likewise.
4969 * include/grub/zfs/zil.h: Likewise.
4970 * include/grub/zfs/zio.h: Likewise.
4971 * include/grub/zfs/zio_checksum.h: Likewise.
4973 * Makefile.util.def: Build ZFS into libgrubmods.
4974 * grub-core/Makefile.core.def: Build zfs.mod.
4976 2010-11-30 Szymon Janc <szymon@janc.net.pl>
4978 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
4980 * grub-core/commands/wildcard.c (match_files): Likewise.
4982 2010-11-30 Robert Millan <rmh@gnu.org>
4984 * grub-core/loader/i386/bsd.c
4985 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
4986 whether kernel is loaded using grub_loader_is_loaded(), rather
4987 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
4988 certain error conditions.
4990 2010-11-30 Robert Millan <rmh@gnu.org>
4992 * grub-core/commands/echo.c: Include `<grub/term.h>'.
4993 (grub_cmd_echo): Call grub_refresh() after printing a message.
4995 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
4997 Avoid using tricks for initialising endian variables.
4999 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
5001 (GRUB_MOD_INIT): Don't byte-swap.
5002 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
5003 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
5004 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
5005 (grub_swap_bytes32_compile_time): Likewise.
5006 (grub_cpu_to_le32_compile_time): Likewise.
5007 (grub_cpu_to_le16_compile_time): Likewise.
5009 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
5011 * util/grub-setup.c (setup): Stop recommending --force. People who
5012 understand the dangers of blocklists are able to find this option
5013 anyway and the ones who don't shouldn't use it anyway.
5015 2010-11-26 Robert Millan <rmh@gnu.org>
5017 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
5020 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
5022 Fix LVM-on-RAID probing.
5024 * util/grub-probe.c (probe): Remember which disk was detected as
5025 RAID (perhaps an LVM physical volume). Use that disk's raidname
5026 rather than that of the top-level disk.
5028 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
5030 Fix cmdline argument quotes for setparams command of menuentry
5033 * grub-core/commands/menuentry.c (setparams_prefix): Use single
5034 quotes for arguments.
5035 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
5036 grub_strchrsub function instead.
5038 * include/grub/misc.h (grub_strchrsub): New function.
5040 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
5042 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
5043 effort by skipping "." and ".." entries up-front.
5044 Suggested by: Michael Lazarev.
5046 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
5048 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
5049 ldflags to ldadd, to fix link line ordering.
5050 (none_decompress): Likewise.
5052 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
5054 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
5056 (grub-emu-lite): Remove kern/emu/cache.S.
5058 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5060 * util/deviceiter.c (compare_devices): If the by-id link for a
5061 device couldn't be resolved, fall back to sorting by the by-id link
5062 rather than segfaulting.
5063 Reported and tested by: Daniel Mierswa.
5065 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5067 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
5068 ldflags, to fix link line ordering.
5070 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5072 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
5073 linkers are picky about this.
5075 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5077 * grub-core/Makefile.am (command.lst): Adjust sed expression
5078 ordering so that extended and priority commands aren't treated as
5081 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5083 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
5084 Remove byte-swapping function calls, which are not valid in
5085 structure initialisers.
5086 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
5088 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
5089 grub_gpt_partition_type_bios_boot.
5091 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
5093 Fix test program build on GNU/kFreeBSD.
5095 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
5096 $(LIBNVPAIR)' library dependencies.
5098 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
5100 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
5102 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
5104 * util/grub-install.in: Remove excessive quoting that broke
5105 installations to RAID devices.
5107 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
5109 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
5110 bootloader version instead of 0.
5112 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
5114 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
5117 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
5119 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
5120 retrieve the metadat sector if size isn't known.
5121 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5123 2010-11-18 Robert Millan <rmh@gnu.org>
5125 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
5128 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
5130 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
5132 Reported by: Jordan Uggla.
5134 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
5136 Make better UTF compliant.
5138 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
5139 sequences as incorrect.
5140 (grub_is_valid_utf8): Likewise.
5141 (grub_utf8_to_ucs4): Likewise.
5142 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
5143 (grub_ucs4_to_utf8_alloc): Likewise.
5144 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
5146 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
5148 Make legacy_source behave like source.
5150 * grub-core/commands/legacycfg.c (legacy_file): Don't call
5152 (grub_cmd_legacy_source): Call grub_show_menu if needed.
5154 2010-11-16 Colin Watson <cjwatson@debian.org>
5156 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
5157 (-Wunused implies -Wunused-parameter, but not vice versa).
5159 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
5161 * configure.ac: Make error messages less confusing by testing for
5162 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
5163 accepted, but produces a diagnostic if something else is wrong).
5165 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
5167 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
5168 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
5170 (grub_keyboard_controller_init)
5171 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
5172 read the initial state since controller isn't inited yet.
5174 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
5176 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
5177 allocate_regbeg may need to create new chunk header.
5179 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5181 Fix quoting in legacy parser.
5183 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
5185 (grub_legacy_parse): Likewise.
5186 Reported by: Jordan Uggla.
5187 Tested by: Jordan Uggla.
5189 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5191 Don't add -lgcc on i386 and x86_64.
5193 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
5194 * conf/Makefile.common (LDADD_KERNEL): Likewise.
5195 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
5197 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5199 * configure.ac: Add -Wno-trampolines when supported.
5201 2010-11-14 Modestas Vainius <modax@debian.org>
5203 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
5206 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
5208 Add generic logical block size support for UDF.
5210 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
5211 (GRUB_UDF_BLKSZ): Removed.
5212 (struct grub_udf_data): New field "lbshift" to hold the logical block
5213 size of the file system in log2 format. All users updated.
5214 (sblocklist): Change type to unsigned.
5215 (grub_udf_mount): Change type of "sblklist" to unsigned.
5216 Move AVDP search before VRS recognition, because the latter requires
5217 knowledge of the logical block size, which is detected during the
5219 Detect and validate logical block size during AVDP search, adding
5220 support for block sizes 512, 1024 and 4096.
5221 Make VRS recognition independent of block size.
5223 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
5225 Properly handle deleted files on UDF.
5227 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
5228 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
5231 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
5233 Support reading files larger than 2 GiB.
5235 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
5236 "offset" to grub_off_t.
5237 (grub_udf_read_file): Likewise for parameter "pos".
5239 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5241 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
5243 (Simple configuration): Refer to Changes from GRUB Legacy about
5244 save_env availability.
5246 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5248 * util/grub-install.in: Ignore empty partition table detection
5249 instead of trying to include part_ module.
5251 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5253 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
5254 LVM on RAID support.
5256 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5258 Properly define WORDS_BIGENDIAN in wrapped environments.
5260 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
5262 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
5264 Reported by: Manoel Rebelo Abranches.
5265 Tested by: Manoel Rebelo Abranches.
5267 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5269 * util/grub-mkconfig.in: Fix quoting.
5271 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5273 Support big ext2 files.
5275 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
5276 (grub_ext2_read_block): Support triple indirect blocks.
5277 (grub_ext2_read_file): Use 64-bit types and read size_high.
5278 (grub_ext2_open): Read size_high.
5279 Reported by: Ximin Luo.
5280 Tested by: Manoel Rebelo Abranches.
5282 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5284 * util/grub-install.in: Handle filenames containing spaces.
5285 Reported by: Jordan Uggla.
5286 Tested by: Jordan Uggla.
5288 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5290 * util/grub-mkconfig.in (grub_script_check): New variable.
5291 Use grub_script_check instead of grub-script-check.
5292 Reported by: Barry Jackson.
5294 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5296 * docs/grub.texi (menu): Correct the order.
5297 Reported by: D. Hugh Redelmeier.
5299 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
5301 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
5304 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
5306 * include/grub/elfload.h (grub_elf32_size): New parameter.
5308 Return maximum segments alignment.
5309 (grub_elf64_size): Likewise.
5310 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
5311 Return maximum segments alignment.
5312 (grub_elf64_size): Likewise.
5313 * grub-core/loader/powerpc/ieee1275/linux.c:
5314 (grub_linux_claimmap_iterate): New function. Uses the
5315 "available" property in the "memory" node for memory allocation
5316 for kernel in the PowerPC loader.
5317 (grub_linux_load32): Correctly find linux entry point offset.
5318 (grub_linux_load64): Likewise.
5320 2010-11-07 Robert Millan <rmh@gnu.org>
5322 On mips-yeeloong, build with -march=loongson2f when this flag is
5323 available (GCC >= 4.4).
5324 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
5326 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
5327 or otherwise add -march=mips3.
5329 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
5331 Suppress shell expansion on echo '*' and echo "*" like cases.
5332 Reported by: Jordan Uggla.
5334 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
5335 string arguments before shell expansion.
5336 * tests/grub_cmd_echo.in: New testcases.
5338 2010-11-07 Robert Millan <rmh@gnu.org>
5340 * conf/mips-qemu-mips.rmk: Remove stale file from previous
5343 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
5345 * grub-core/kern/emu/hostdisk.c
5346 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
5348 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5350 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
5351 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
5352 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
5354 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5356 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
5358 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5360 * util/grub-install.in: Replace useless recomendation to pass
5361 --modules with a recomendation to report a bug.
5363 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5365 Properly register serial terminfo.
5366 Reported by: Jordan Uggla
5368 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
5370 (grub_serial_terminfo_output_template): Likewise.
5371 (grub_cmd_serial): Register "serial" with terminfo.
5372 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
5373 grub_serial_terminfo_output.
5375 2010-11-05 Robert Millan <rmh@gnu.org>
5377 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
5380 2010-11-05 Robert Millan <rmh@gnu.org>
5382 On Yeeloong, pass machine type information to Linux.
5384 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
5385 (LOONGSON_MACHTYPE): New macro, set to
5386 "machtype=lemote-yeeloong-2f-8.9inches".
5387 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
5388 additional argument to Linux.
5390 2010-11-04 Robert Millan <rmh@gnu.org>
5392 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
5393 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
5394 (its SATA disks are detected as slaveless IDE master drives on
5396 Reported by Carsten Aulbert.
5398 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
5400 * util/bin2h.c (main): Fix spelling error in generated output.
5402 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
5404 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
5406 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5408 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
5409 vga= option is supplied.
5411 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5413 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
5414 * util/grub.d/10_kfreebsd.in: Likewise.
5415 * util/grub.d/10_linux.in: Likewise.
5416 * util/grub.d/20_linux_xen.in: Likewise.
5418 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5420 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
5421 argument as an argument to no-argument option.
5423 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5425 * util/grub.d/10_linux.in: Add missing load_video with explicit
5426 GRUB_GFXPAYLOAD_LINUX.
5428 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5430 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
5432 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5434 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
5435 elements with invlid index.
5436 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5437 * grub-core/disk/raid.c (insert_array): Automatically reallocate
5439 * include/grub/raid.h (grub_raid_member): New struct.
5440 (grub_raid_array): Transform devices and start_sector into usage of
5441 grub_raid_member. All users updated
5442 (allocated_devs): New member.
5444 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5446 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
5449 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
5451 NetBSD build fix for getline function conflict from gnulib.
5453 * Makefile.util.def (libgrubkern.a): New library for grub kernel
5454 components that depend on gnulib headers.
5455 (libgrubmods.a): Renamed from earlier libgrub.a.
5456 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
5458 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5460 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
5461 install rather than creating a broken install.
5463 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5465 * util/grub-setup.c (argp): Remove misleading example of installing to
5468 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5470 * util/grub-setup.c (setup): Clarify the error message.
5472 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5474 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
5476 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5478 * grub-core/kern/emu/misc.c
5479 (grub_make_system_path_relative_to_its_root)
5480 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
5482 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5484 * grub-core/kern/emu/misc.c
5485 (grub_make_system_path_relative_to_its_root): Revert r2882.
5487 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
5489 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
5490 useless field head. All users updated.
5491 (free_subchunk): Correct handling of IN_REGION subchunk.
5493 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
5495 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
5496 (Supported kernels): Likewise.
5498 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
5500 Make mktemp invocations portable.
5502 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
5503 exit if mktemp fails.
5504 * tests/grub_script_blockarg.in: Likewise.
5505 * tests/partmap_test.in: Likewise.
5506 * tests/util/grub-shell-tester.in: Likewise.
5507 * tests/util/grub-shell.in: Likewise.
5508 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5509 * Makefile.am: Likewise, and chain shell commands with `&&'
5511 * util/grub-mkrescue.in: Use the same explicit template as above, and
5512 exit if mktemp fails.
5514 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
5516 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
5517 Linux kernel, reported by Dennis Schridde.
5519 2010-10-17 Szymon Janc <szymon@janc.net.pl>
5521 * grub-core/normal/auth.c (grub_auth_check_authentication):
5522 Set-but-not-used variable removed.
5524 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5526 * docs/grub.texi (GNU/Linux): Document APM unavailability with
5527 32-bit linux protocol.
5529 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5531 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
5532 cursor shape for sanity.
5534 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5536 * docs/grub.texi (Installation): Document buggy BIOS install.
5538 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5540 * docs/grub.texi (Installation): Indent.
5542 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5544 * util/grub-setup.c (setup): New parameter allow_floppy.
5545 (arguments): New member allow_floppy.
5546 (argp_parser): Handle --allow-floppy.
5547 (main): Pass allow_floppy.
5548 * util/grub-install.in: New option --allow-floppy passed though to
5551 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5553 * util/grub-install.in: Handle partitionless disks.
5555 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5557 * util/grub-setup.c (setup): Don't clean blocklists before readability
5560 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5562 * docs/grub.texi (Installation): Document embedding zone. Remove
5563 obsolete grub-install example.
5565 2010-10-16 Szymon Janc <szymon@janc.net.pl>
5567 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
5568 Set-but-not-used variable ifdef'ed.
5569 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
5570 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
5572 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
5573 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
5574 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
5575 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
5576 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
5577 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
5578 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
5579 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
5580 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
5581 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
5582 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
5585 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5587 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
5588 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
5591 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5593 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
5594 synonym to _S5_. Needed for some DSDTs.
5596 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5598 Userspace ACPI parser debugging.
5600 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
5601 headers and add relevant defines. Don't include standard headers.
5602 (main) [GRUB_DSDT_TEST]: New function.
5603 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
5604 Don't declare functions.
5606 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5608 Remove dead grub_efi_mm_fini.
5610 * grub-core/kern/efi/mm.c (allocated_page): Removed.
5611 (ALLOCATED_PAGES_SIZE): Likewise.
5612 (MAX_ALLOCATED_PAGES): Likewise.
5613 (allocated_pages): Likewise.
5614 (grub_efi_allocate_pages): Don't record allocated pages.
5615 (grub_efi_free_pages): Likewise.
5616 (grub_efi_mm_init): Likewise.
5617 (grub_efi_mm_fini): Removed.
5619 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5621 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
5622 (grub_efi_mm_init): Take into account the memory map size increase.
5624 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5626 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
5627 (serial_hw_put): Wait based on real time rather than port reads. Don't
5629 * include/grub/serial.h (grub_serial_port): New field broken.
5631 2010-10-16 Robert Millan <rmh@gnu.org>
5633 * grub-core/kern/emu/misc.c
5634 (grub_make_system_path_relative_to_its_root): Fix premature return
5635 when processing non-root ZFS filesystems.
5636 Reported by Sergio Talens-Oliag.
5638 2010-10-15 Robert Millan <rmh@gnu.org>
5640 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
5641 guarantee compressed ones are processed first.
5643 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5645 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
5646 grub_efiemu_autocore.
5648 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5650 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
5652 (grub_console_getkey): Use correct jae opcode rather than ja.
5654 2010-10-12 Robert Millan <rmh@gnu.org>
5656 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
5657 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
5658 variable. All references updated.
5660 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
5662 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5664 Correctly distinguish mdraid flavours.
5666 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
5667 (insert_array): New argument raid.
5668 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
5669 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
5670 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
5672 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5674 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
5675 handling of special keys.
5677 2010-10-02 Aleš Nesrsta <starous@volny.cz>
5679 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
5680 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
5682 2010-10-02 Aleš Nesrsta <starous@volny.cz>
5684 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
5685 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
5687 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
5688 Use right endpoint when querying descriptor.
5690 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
5692 Clear out 0x80 color bit on EFI.
5694 Reported by: decoder and meta tech.
5696 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
5697 (grub_console_setcolorstate): Clear out 0x80 bit.
5698 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
5699 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
5700 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
5702 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
5704 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
5707 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
5709 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
5710 mo_file after freeing.
5712 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
5714 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
5716 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
5718 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
5721 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
5723 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
5726 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
5728 Put terminfo into core on ieee1275 and yeeloong (needed for console).
5730 * gentpl.py: New groups terminfoinkernel and terminfomodule.
5731 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
5732 and terminfo.h when needed.
5733 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
5734 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
5735 (terminfo): Enable only on terminfokernel.
5737 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
5738 * include/grub/lib/arg.h: Likewise.
5739 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
5740 incorrect usage of ->.
5742 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5744 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
5745 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
5747 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5749 Fix coreboot compilation.
5751 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
5752 Take VBE info into account even if only text is supported.
5753 (fill_vbe_info): Take into account the case when only VGA text
5755 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
5756 on coreboot, multiboot and qemu.
5758 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5760 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
5762 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
5764 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5766 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
5769 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5771 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
5772 if they were BSD-style.
5774 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5776 * grub-core/boot/i386/pc/lnxboot.S: Replace
5777 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
5778 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
5780 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5782 Write embedding zone using Reed-Solomon.
5784 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
5785 * grub-core/Makefile.am (rs_decoder.S): New target.
5786 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
5787 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
5788 (multiboot): Move to RS part.
5789 (post_reed_solomon): New label.
5790 (grub_boot_drive): Move to non-RS part since it's modified in memory
5792 Include rs_decoder.S.
5793 * grub-core/lib/reed_solomon.c: New file.
5794 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
5796 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
5797 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
5798 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
5799 * include/grub/partition.h (grub_partition_map): Change prototype of
5800 embed to allow returning additional sectors.
5801 * include/grub/reed_solomon.h: New file.
5802 * util/grub-setup.c (setup): Handle Reed-Solomon.
5804 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
5806 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
5807 i386 and x86-64 definedness tests.
5809 2010-09-27 Yves Blusseau <blusseau@zetam.org>
5811 Fix generation of kernel_syms.lst
5813 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
5816 2010-09-26 Robert Millan <rmh@gnu.org>
5818 Support degraded ZFS arrays in "grub-probe -t device" resolution.
5820 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
5821 the pool is an array of devices, iterate through it and return the
5822 first device that passes a stat() test (instead of blindly returning
5825 2010-09-26 Robert Millan <rmh@gnu.org>
5827 Build fixes for GNU/kFreeBSD.
5829 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
5830 to programs that require ZFS conversion.
5831 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
5832 kernels that don't have FLOPPY_MAJOR.
5834 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
5836 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
5838 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
5842 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
5843 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
5844 mdraid09 and mdraid1x.
5846 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
5848 Re-enable grub-extras.
5850 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
5851 avoid confusing Automake. Run autogen only twice, once for the top
5852 level and once for grub-core. Add Makefile.util.def and
5853 Makefile.core.def from extra modules to the appropriate autogen
5854 invocations. If Makefile.common exists in an extra module, include
5855 it in both Makefile.util.am and grub-core/Makefile.core.am;
5856 similarly, include any Makefile.util.common file in Makefile.util.am
5857 and any Makefile.core.common file in grub-core/Makefile.core.am.
5858 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
5859 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
5860 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
5861 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
5863 * gentpl.py (gvar_add): Turn GVARS into a set.
5864 (global_variable_initializers): Sort global variables on output.
5865 (vars_init): New function.
5866 (first_time): Likewise.
5867 (library): Ensure that non-global variable initialisations are
5868 emitted before the first time we emit code for a library block.
5869 Append to variables rather than setting them. Only emit
5870 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
5871 each conditional path.
5872 (program): installdir() emits an Autogen macro, so must be passed to
5873 var_add rather than gvar_add.
5876 (rules): New function, centralising handling for different target
5877 types. Set up Guile association lists for first_time and vars_init,
5878 and send most output to a diversion so that variable initialisations
5879 can be emitted first.
5880 (module_rules): Use new rules function.
5881 (kernel_rules): Likewise.
5882 (image_rules): Likewise.
5883 (library_rules): Likewise.
5884 (program_rules): Likewise.
5885 (script_rules): Likewise.
5886 (data_rules): Likewise.
5888 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
5890 * .bzrignore: Add contrib and grub-core/contrib. Remove
5891 grub-core/Makefile.gcry.am.
5893 2010-09-24 Yves Blusseau <blusseau@zetam.org>
5895 * grub-core/lib/LzFind.c: Add missing include.
5896 * grub-core/lib/LzmaEnc.c: Likewise.
5897 * grub-core/script/lexer.c: Likewise.
5898 * grub-core/script/yylex.l: Likewise.
5899 * util/grub-macho2img.c: Likewise.
5900 * util/grub-menulst2cfg.c: Likewise.
5901 * util/grub-mklayout.c: Likewise.
5902 * util/grub-mkpasswd-pbkdf2.c
5903 * util/grub-mkrelpath.c: Likewise.
5904 * util/resolve.c: Likewise.
5906 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
5908 * Makefile.util.def (example_unit_test): Add
5909 grub-core/gnulib/libgnu.a.
5911 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
5913 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
5915 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5917 Support xz compression on yeeloong.
5919 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
5920 * configure.ac: Check for LZMA.
5921 * grub-core/Makefile.core.def (xz_decompress): New target.
5922 (none_decompress): Likewise.
5923 * grub-core/boot/decompressor/minilib.c: New file.
5924 * grub-core/boot/decompressor/none.c: Likewise.
5925 * grub-core/boot/decompressor/xz.c: Likewise.
5926 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
5927 * grub-core/kern/mips/cache_flush.S: Likewise.
5928 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
5929 * grub-core/kern/mips/startup.S: Move first stage to ...
5930 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
5932 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
5933 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
5934 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
5935 Allocate statically.
5936 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
5937 Allocate statically or use scratch. Don't check CRC32.
5938 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
5939 Allocate statically. Don't check CRC32.
5940 * include/grub/decompressor.h: New file.
5941 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
5943 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
5944 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
5945 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
5946 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
5947 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
5948 * util/grub-mkimage.c (grub_compression_t): New type.
5949 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
5950 (image_target_desc): New field default_compression.
5951 (image_targets): Adjust yeeloong targets.
5952 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
5953 (compress_kernel): New parameter comp.
5954 (generate_image): Likewise. Handle new compression case.
5955 (options): New option --compression
5957 (main): Handle new option.
5959 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
5961 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
5963 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
5965 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
5966 typo in __i386__ conditional.
5968 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5970 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
5973 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5975 Implement EFI and ACPI multiboot2 extensions.
5977 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
5978 new tags as supported.
5979 (acpiv2_size): New function.
5980 (grub_multiboot_get_mbi_size): Take new tags into account.
5981 (grub_multiboot_make_mbi): Add new tags.
5982 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
5984 2010-09-21 Aleš Nesrsta <starous@volny.cz>
5986 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
5987 Added missing configuration of USB device.
5989 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
5991 * grub-core/normal/menu_entry.c (run): Make sure we always return
5994 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
5996 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
5997 NumberOfPages is UINT64 according to the UEFI specification, not
5998 UINTN. Fix printf format.
6000 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6002 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
6003 `err' to grub_usb_err_t.
6004 Reported and tested by: KESHAV P.R.
6006 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6008 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
6009 tpart non-const, so that we can assign to it. (Since this is a
6010 typedef, the constness refers to the pointer rather than what it
6013 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6015 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
6016 $(top_srcdir)/grub-core/gnulib as well as
6017 $(top_builddir)/grub-core/gnulib.
6018 Reported by: KESHAV P.R.
6020 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6022 * util/grub-install.in: Fix the bootloader ID option to be
6023 consistently --bootloader-id, not --bootloader_id.
6024 Reported by: KESHAV P.R.
6026 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6028 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
6029 check hash checksum." consistently translatable.
6031 2010-09-21 Yves Blusseau <blusseau@zetam.org>
6033 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
6036 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6038 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
6039 (GRUB_MOD_INIT): Register sha1sum command.
6040 (GRUB_MOD_FINI): Unregister sha1sum command.
6042 2010-09-21 Yves Blusseau <blusseau@zetam.org>
6044 Keep boot and grub directory names in sync with utils scripts
6046 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
6047 * config.h.in: Add previous macros.
6048 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
6049 * util/grub-install.in: Use $bootdir and $grubdir variables.
6051 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6053 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
6054 convert partition names to disk names if the new `convert' parameter
6056 (grub_util_biosdisk_get_grub_dev): If opening the disk device
6057 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
6058 disk in its own right. This can happen with Xen disk images.
6060 2010-09-21 Yves Blusseau <blusseau@zetam.org>
6062 * util/grub-editenv.c: Update strings to avoid warnings when generating
6064 * util/grub-setup.c: Likewise.
6066 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
6068 * configure.ac: Change version to 1.99~beta0.
6070 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
6072 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
6074 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
6076 * include/multiboot.h: Resynced with specification.
6077 * include/multiboot2.h: Likewise.
6079 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6081 Fix po directory handling.
6083 * configure.ac: Create po/Makefile.in rather than po/Makefile.
6084 * grub-core/gnulib/Makefile.am: Import gettext module.
6085 * m4/gnulib-cache.m4: Likewise.
6086 * m4/gnulib-comp.m4: Likewise.
6087 * m4/gettext.m4: New file, from gnulib.
6088 * m4/glibc2.m4: Likewise.
6089 * m4/iconv.m4: Likewise.
6090 * m4/intdiv0.m4: Likewise.
6091 * m4/intl.m4: Likewise.
6092 * m4/intldir.m4: Likewise.
6093 * m4/intlmacosx.m4: Likewise.
6094 * m4/intmax.m4: Likewise.
6095 * m4/inttypes-pri.m4: Likewise.
6096 * m4/lcmessage.m4: Likewise.
6097 * m4/lib-ld.m4: Likewise.
6098 * m4/lib-link.m4: Likewise.
6099 * m4/lib-prefix.m4: Likewise.
6100 * m4/lock.m4: Likewise.
6101 * m4/nls.m4: Likewise.
6102 * m4/po.m4: Likewise.
6103 * m4/printf-posix.m4: Likewise.
6104 * m4/progtest.m4: Likewise.
6105 * m4/threadlib.m4: Likewise.
6106 * m4/uintmax_t.m4: Likewise.
6107 * m4/visibility.m4: Likewise.
6108 * po/Makefile.am: Remove.
6109 * po/Makefile.in.in: New file, from gettext.
6110 ($(DOMAIN).pot-update): Support POTFILES-shell.
6111 * po/Makevars: New file.
6112 * po/POTFILES-shell: Rename to ...
6113 * po/POTFILES-shell.in: ... this. Update.
6114 * po/POTFILES: Rename to ...
6115 * po/POTFILES.in: ... this. Update.
6116 * po/Rules-quot: New file, from gettext.
6117 * po/boldquot.sed: Likewise.
6118 * po/en@boldquot.header: Likewise.
6119 * po/en@quot.header: Likewise.
6120 * po/insert-header.sin: Likewise.
6121 * po/quot.sed: Likewise.
6122 * po/remove-potcdate.sin: Likewise.
6124 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6126 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
6128 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6130 * util/grub.d/20_linux_xen.in: Use submenus.
6132 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6136 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
6137 parameter submenu. All users updated.
6138 * grub-core/normal/main.c (free_menu): Rename to ...
6139 (grub_normal_free_menu): ... this. Made global.
6140 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
6142 * grub-core/normal/menu_entry.c (screen): New field submenu.
6143 (make_screen): Set submenu.
6144 (run): Open new context if requested.
6145 * include/grub/menu.h (grub_menu_entry): New field submenu.
6146 * include/grub/normal.h (grub_normal_free_menu): New proto.
6148 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6150 Menu entries extractor.
6152 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
6154 (GRUB_MOD_INIT): Register new variants.
6155 (GRUB_MOD_FINI): Unregister new variants.
6156 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
6157 into grub_cmd_legacy_source.
6158 (grub_cmd_legacy_source): Implement extractor variants.
6159 (GRUB_MOD_INIT): Register new variants.
6160 (GRUB_MOD_FINI): Unregister new variants.
6161 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
6163 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
6164 search as an extractor.
6165 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
6166 test as an extractor.
6167 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
6169 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
6170 (grub_env_new_context): New function.
6171 (grub_env_context_open): Likewise.
6172 (grub_env_extractor_open): Likewise.
6173 (grub_env_extractor_close): Likewise.
6174 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
6175 grub_extractor_level.
6176 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
6177 * include/grub/env.h (grub_env_extractor_open): New proto.
6178 (grub_env_extractor_close): Likewise.
6179 * include/grub/normal.h (grub_extractor_level): New external variable.
6181 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6183 Make cutmem accept a region specification.
6184 Suggested by: Samuel Thibault
6186 * grub-core/mmap/mmap.c (parsemem): New function.
6187 (grub_cmd_cutmem): Handle new arguments.
6189 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6193 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
6194 (GRUB_MOD_INIT): Register new command.
6195 (GRUB_MOD_FINI): Unregister new command.
6197 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6199 Support some annoying BSD and Minix subpartitions.
6201 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
6202 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
6203 Properly handle concatenation.
6204 * grub-core/kern/device.c (grub_device_iterate): Likewise.
6205 * grub-core/normal/completion.c (iterate_partition): Likewise.
6206 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
6207 contain partition. All users updated.
6208 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
6210 (grub_openbsdlabel_partition_map): Likewise.
6211 (bsdlabel_partition_map_iterate): Rename to ..
6212 (iterate_real): ... this. New arguments sector, freebsd and pmap.
6213 (bsdlabel_partition_map_iterate): New function.
6214 (netopenbsdlabel_partition_map_iterate): Likewise.
6215 (netbsdlabel_partition_map_iterate): Likewise.
6216 (openbsdlabel_partition_map_iterate): Likewise.
6217 (GRUB_MOD_INIT): Register new partmaps.
6218 (GRUB_MOD_FINI): Unregister new partmaps.
6219 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
6220 (grub_partition_msdos_iterate): ... this. All users updated.
6221 Don't support embedding other than in a minix partition.
6222 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
6224 * include/grub/partition.h (grub_partition): New field msdostype.
6225 * util/grub-install.in: Handle openbsd and netbsd types being in
6228 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6230 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
6232 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
6233 * grub-core/Makefile.core.def (mdraid): Renamed to ...
6234 (mdraid09): ... this.
6235 (mdraid1x): New module.
6236 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
6237 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
6239 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6241 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
6244 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6246 * grub-core/commands/efi/lsefimmap.c: Correct header.
6249 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6251 * util/grub-editenv.c (argp_parser): Don't pass translated strings
6252 as printf format strings; the translations might contain '%' which
6253 could cause a crash.
6255 * util/grub-fstest.c (argp_parser): Likewise.
6256 * util/grub-setup.c (argp_parser): Likewise.
6259 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6261 Use argp in grub-fstest.
6263 * util/grub-fstest.c: Don't include getopt.h.
6265 (root): New variable.
6266 (args_count): Likewise.
6268 (num_disks): Likewise.
6271 (debug_str): Likewise.
6273 (options): Transformed to argp.
6275 (main): Split argument parsing into ...
6276 (argp_parser): ... this. Changed to argp format.
6277 (argp): New variable.
6278 (main): Use argp_parse.
6280 2010-09-20 Tristan Gingold <gingold@free.fr>
6281 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
6282 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6284 * grub-core/commands/efi/lsefimmap.c: New file.
6285 * grub-core/Makefile.core.def (lsefimmap): New module.
6286 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
6288 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6290 Pause the execution (10s max) if any errors are displayed so the user
6291 has a chance to see them.
6293 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
6294 (grub_print_error): Increment grub_err_printed_errors.
6295 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
6296 execution if any errors were displayed.
6297 (show_menu): Remove old code for pause.
6298 * grub-core/normal/menu_entry.c (run): Likewise.
6299 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
6301 (grub_normal_get_char_counter): Likewise.
6302 * include/grub/err.h (grub_err_printed_errors): New external variable.
6303 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
6305 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6307 Support multiboot VBE info.
6309 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
6310 Take VBE info into account.
6311 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
6312 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
6313 Call fill_vbe_info when appropriate.
6314 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
6315 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
6317 (grub_multiboot_get_mbi_size): Take new tags into account.
6318 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
6319 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
6320 Call fill_vbe_tag when appropriate.
6321 (grub_multiboot_make_mbi): Properly align tags.
6322 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
6324 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
6326 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
6328 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6330 Suport manual terminal geometry specification.
6332 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
6333 Save state in grub_ofconsole_terminfo_output.
6334 (grub_ofconsole_term): Use grub_terminfo_getwh.
6335 (grub_ofconsole_getwh): Removed.
6336 * grub-core/term/serial.c (grub_serial_getwh): Removed.
6337 (grub_serial_term): Use grub_terminfo_getwh.
6338 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
6339 (options): New struct.
6340 (OPTION_*): New enum.
6341 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
6342 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
6344 (grub_terminfo_getwh): New proto.
6345 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
6347 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6349 Handle legacy "terminal" command.
6351 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
6353 (legacy_commands): Add terminal and title.
6354 (grub_legacy_parse): Handle terminal. Simplify title handling.
6356 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6358 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
6359 parameters overflow.
6361 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6363 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
6366 * docs/grub.texi (Shell-like scripting): Document `!'.
6367 (Network): Simplify using new i386-pc-pxe format. Mention
6372 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6374 * Makefile.am (SUBDIRS): Restore "."; it's important to force
6375 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
6378 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6380 * grub-core/commands/efi/lsefisystab.c: Correct header.
6381 * grub-core/commands/efi/lssal.c: Likewise.
6382 * grub-core/commands/testload.c: Likewise.
6384 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6386 * util/grub-mkrescue.in: Add explicit root argument to --set to
6387 prevent the UUID being interpreted as an argument to --set (matches
6388 previous change to prepare_grub_to_access_device).
6390 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6392 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
6393 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
6394 the verbosity of later #ifs.
6395 (find_partition_start): Define this function on FreeBSD too.
6396 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
6398 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
6401 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6403 * util/grub-editenv.c: Use argp instead of getopt.
6405 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6407 * util/grub-setup.c: Use argp instead of getopt.
6409 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6411 Use gnulib-tool to create gnulib source files.
6413 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
6414 grub-core/gnulib directories
6415 * .bzignore: Add **/.deps and autogenerated gnulib files
6416 * configure.ac: Assign auxiliary directory to build-aux, add invocation
6417 of gnulib macros, add grub-core/gnulib/Makefile
6418 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
6419 include m4 directory to aclocal.
6420 * Makefile.util.def: Remove direct compilation of gnulib source files
6421 and use the new grub-core/gnulib/libgnu.a.
6422 * build-aux/config.rpath: move config.rpath from top directory to
6424 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
6426 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
6427 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
6428 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
6430 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
6433 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6435 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
6436 grub-core/genmod.sh and grub-core/gensyminfo.sh
6438 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
6440 Add a test for echo command options.
6442 * tests/grub_cmd_echo.in: New test.
6443 * Makefile.util.def: Rules for new test.
6445 2010-09-20 Szymon Janc <szymon@janc.net.pl>
6447 Remove crc.mod and move crc command to hashsum.mod.
6448 Remove lib/crc.c - users updated to use gcrypt implementation.
6450 * grub-core/commands/crc.c: Removed.
6451 * grub-core/Makefile.core.def (crc): Module removed.
6452 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
6453 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
6454 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
6455 * grub-core/lib/crc.c: Removed.
6456 * include/grub/lib/crc.h: Removed.
6457 * Makefile.util.def (crc): Remove lib/crc.c
6458 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
6459 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
6460 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
6461 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
6462 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
6463 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
6465 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6467 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
6469 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6471 Split config.h for util and core.
6473 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
6476 (BSS_START_SYMBOL): Likewise.
6477 (END_SYMBOL): Likewise.
6478 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
6479 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
6480 * config.h.in: New file.
6481 * configure.ac: Use config-util.h as config define file.
6482 Rename MACHINE into GRUB_MACHINE. All users updated.
6483 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
6485 (NESTED_FUNC_ATTR): Likewise.
6486 Substitue new variables.
6487 (COND_HAVE_ASM_USCORE): New conditional.
6488 * grub-core/Makefile.am (ASM_PREFIX): New variable.
6489 (kernel_syms.lst): Use ASM_PREFIX.
6490 * grub-core/kern/emu/console.c: Include config-util.h.
6491 * grub-core/kern/emu/misc.c: Likewise.
6492 * grub-core/kern/emu/mm.c: Likewise.
6493 * include/grub/emu/misc.h: Likewise.
6494 * include/grub/libgcc.h: Likewise.
6496 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6498 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
6500 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
6501 Fix GRUB_TERM_KEY_* constants usage.
6502 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
6504 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6506 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
6508 * grub-core/bus/usb/uhci.c: Remove empty define.
6509 (grub_uhci_check_transfer): Add missing cast.
6510 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
6512 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
6514 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
6516 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6518 * grub-core/Makefile.core.def (legacycfg): Add
6519 lib/i386/pc/vesa_modes_table.c on emu.
6521 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
6523 Reduce number of temporary files generated by build system.
6525 * grub-core/gencmdlist.sh: Removed.
6526 * grub-core/genfslist.sh: Removed.
6527 * grub-core/genhandlerlist.sh: Removed.
6528 * grub-core/genmodsrc.sh: Removed.
6529 * grub-core/genpartmaplist.sh: Removed.
6530 * grub-core/genparttoollist.sh: Removed.
6531 * grub-core/gentermiinallist.sh: Removed.
6532 * grub-core/genvideolist.sh: Removed.
6534 * grub-core/genmod.sh.in: New file.
6535 * grub-core/gensyminfo.sh.in: New file.
6537 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
6538 * conf/Makefile.extra-dist: Update with new files.
6539 * gentpl.py: Remove rules related to unnecessary temporary files.
6540 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
6542 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
6544 * grub-core/bus/usb/uhci.c: Remove empty #define.
6545 * grub-core/genmoddep.awk: Updated with new syminfo format.
6546 * util/bash-completion.d/Makefile.am: Add config.log to
6549 2010-09-19 Yves Blusseau <blusseau@zetam.org>
6551 * Makefile.util.def: Add forgotten $(LIBINTL) library.
6553 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
6555 * util/grub-mkconfig.in: Check the config script for syntax errors
6558 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
6559 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6561 * Makefile.util.def (grub-install): Use util/grub-install.in on all
6563 * util/grub-install.in: Add EFI and IEEE1275 support.
6564 * util/i386/efi/grub-install.in: Removed.
6565 * util/ieee1275/grub-install.in: Likewise.
6567 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6569 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
6570 (grub_cmd_cmosclean): Likewise.
6571 (GRUB_MOD_INIT): Register command cmosclean.
6572 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
6573 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
6575 2010-09-18 Carles Pina i Estany <carles@pina.cat>
6576 2010-09-18 Aleš Nesrsta <starous@volny.cz>
6577 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
6579 Add keyboard layouts support.
6581 * Makefile.util.def (grub-mklayout): New file.
6582 (grub-kbdcomp): New script.
6583 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
6584 Add keyboard_layouts.h.
6585 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
6586 commands/boot.c on yeeloong.
6587 (keylayouts): New module.
6588 * grub-core/bus/usb/ohci.c
6589 * grub-core/bus/usb/uhci.c
6590 * grub-core/bus/usb/usbhub.c (rescan): New variable.
6591 (grub_usb_add_hub): Poll interrupt pipe for device handling.
6592 (attach_root_port): Likewise.
6593 (poll_nonroot_hub): Likewise.
6594 (grub_usb_poll_devices): Likewise.
6595 (detach_device): Close transfer.
6596 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
6598 (grub_usb_bulk_setup_readwrite): Likewise.
6599 (grub_usb_bulk_finish_readwrite): Likewise.
6600 * grub-core/commands/keylayouts.c: New file.
6601 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
6602 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
6604 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
6606 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
6607 * include/grub/keyboard_layouts.h: New file.
6608 * util/grub-mklayout.c: New file.
6609 * util/grub-kbdcomp.in: Likewise.
6611 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
6615 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
6616 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
6618 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
6619 (grub_upper_mem): Likewise.
6620 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
6621 * include/grub/memory.h (grub_memory_type_t): New enum.
6624 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
6626 * grub-core/Makefile.core.def (lsapm): New module.
6627 * grub-core/commands/i386/pc/lsapm.c: New file.
6628 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
6629 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
6631 * include/grub/i386/pc/apm.h: New file.
6632 * include/multiboot.h (multiboot_apm_info): New struct.
6634 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
6636 GRUB-legacy configuration file support.
6638 * Makefile.util.def (grub-menulst2cfg): New util.
6639 * docs/man/grub-menulst2cfg.h2m: New file.
6640 * grub-core/Makefile.core.def (legacycfg): New module.
6641 * grub-core/commands/legacycfg.c: New file.
6642 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
6643 (grub_normal_add_menu_entry): ... this.
6644 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
6645 (grub_normal_set_password): ...this.
6646 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
6647 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
6648 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
6649 * grub-core/lib/legacy_parse.c: New file.
6650 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
6651 * include/grub/i386/pc/vesa_modes_table.h: New file.
6652 * include/grub/legacy_parse.h: Likewise.
6653 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
6654 * util/grub-menulst2cfg.c: New file.
6656 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
6658 * grub-core/kern/emu/hostdisk.c
6659 (convert_system_partition_to_system_disk): Initialise node.
6661 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
6663 * grub-core/kern/emu/hostdisk.c
6664 (convert_system_partition_to_system_disk): Fix devmapper memory pool
6666 Reported and based on patch by: Modestas Vainius.
6668 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
6670 Fix DM-RAID probing with recent versions of device-mapper udev
6673 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
6674 canonicalise device paths under /dev/mapper/.
6675 (convert_system_partition_to_system_disk): Compare the
6676 uncanonicalised path to /dev/mapper/ rather than the canonicalised
6677 path, since device nodes under /dev/mapper/ are often symlinks.
6679 2010-09-17 Yves Blusseau <blusseau@zetam.org>
6681 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
6683 2010-09-16 Yves Blusseau <blusseau@zetam.org>
6685 * configure.ac: Avoid some annoying error messages if freetype-config
6686 program is not found.
6688 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
6690 Support RAID on virtio devices, and others.
6692 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
6694 [__MINGW32__] (grub_find_device): ... this.
6695 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
6696 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
6697 reasonable default if dir is NULL.
6698 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
6700 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
6701 (grub_guess_root_device): Update callers.
6702 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
6704 * util/raid.c (grub_util_getdiskname): Remove.
6705 (grub_util_raid_getmembers): Use grub_find_device rather than
6706 grub_util_getdiskname.
6708 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
6710 * docs/grub.texi (serial): Remove obsolete comment about GRUB
6711 needing to be compiled with serial support.
6712 (ls): Indicate that multiple files are accepted.
6713 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
6714 indicate that multiple files are accepted.
6716 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
6718 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
6719 libgrub_a_init.c, and util/bash-completion.d/grub.
6721 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6723 * util/grub-setup.c (setup): Fix incorrect container semantics.
6725 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6727 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
6729 Reported by: J. Nick Terry
6731 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6733 Move embedding routines to partmap sources files.
6735 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
6736 [GRUB_UTIL]: New variable.
6737 (gpt_partition_map_iterate): Set part.parent.
6738 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
6739 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
6740 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
6742 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
6743 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
6744 (grub_partition_map) [GRUB_UTIL]: New field embed.
6745 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
6746 (setup): Use ->embed.
6748 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6750 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
6752 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
6753 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
6755 2010-09-15 Yves Blusseau <blusseau@zetam.org>
6757 Add function to get completions from usage.
6759 * util/bash-completion.d/grub-completion.bash.in: Add function to get
6760 completions from usage. Use LC_ALL=C to get options properly.
6762 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6764 * grub-core/gnulib/basename-lgpl.c: Imported.
6765 * grub-core/gnulib/basename.c: Likewise.
6766 * grub-core/gnulib/dirname-lgpl.c: Likewise.
6767 * grub-core/gnulib/dirname.c: Likewise.
6768 * grub-core/gnulib/dirname.h: Likewise.
6769 * grub-core/gnulib/stripslash.c: Likewise.
6771 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6773 * grub-core/gnulib/error.c: Resynced.
6774 * grub-core/gnulib/getopt.c: Likewise.
6775 * grub-core/gnulib/getopt_int.h: Likewise.
6776 * grub-core/gnulib/regex.h: Likewise.
6777 * grub-core/gnulib/regex_internal.c: Likewise.
6778 * grub-core/gnulib/regex_internal.h: Likewise.
6780 2010-09-15 Szymon Janc <szymon@janc.net.pl>
6782 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
6783 CRC calculations and validity checks.
6784 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
6787 2010-09-15 Szymon Janc <szymon@janc.net.pl>
6789 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
6791 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6793 Fix incorrect echo options handling.
6794 Reported by: Yves Blusseau.
6796 * include/grub/command.h (grub_command_flags_t): New flags
6797 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
6798 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
6799 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
6801 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6803 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
6805 (GRUB_COMMAND_FLAG_MENU): Likewise.
6806 (GRUB_COMMAND_FLAG_BOTH): Likewise.
6807 (GRUB_COMMAND_FLAG_TITLE): Removed.
6808 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
6809 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
6810 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
6811 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
6812 (grub_command_flags_t): New enum. All users updated.
6814 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
6816 Fix solaris compilation.
6818 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
6819 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
6820 (grub-emu-list): Likewise.
6822 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6824 Remove deprecated root command.
6826 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
6829 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6831 * util/i386/pc/grub-setup.c: Merge this ...
6832 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
6833 * util/grub-setup.c: ... into this.
6834 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
6837 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6839 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
6842 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6844 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
6847 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6849 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
6850 explicit root argument to set to prevent UUID to be interpreted as
6853 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6855 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
6857 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6859 Don't export grub_gate_a20.
6861 * grub-core/kern/i386/pc/init.c: Remove leftovers.
6862 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
6864 (grub_gate_a20): ... this. All users updated.
6865 * include/grub/i386/pc/init.h: Removed. All users updated.
6867 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6869 Create euro.pf2 which supports most European languages.
6871 * Makefile.am (grubdata_DATA): Add euro.pf2.
6872 (euro.pf2): New target.
6873 (CLEANFILES): Add euro.pf2.
6875 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6877 * configure.ac: Disable emu-usb by default to prevent inadvertent
6880 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6882 Disable usbserial on grub-emu since our libusb code isn't good enough
6885 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
6886 (usbserial_pl2303): Likewise.
6887 (usbserial_ftdi): Likewise.
6889 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6891 * include/grub/disk.h (grub_disk): Remove has_partitions.
6893 * disk/loopback.c (grub_loopback): Remove has_partitions.
6895 (options): Remove partitions. All users updated.
6896 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
6897 * util/i386/pc/grub-setup.c (setup): copy partition table only when
6898 actual partition table is found.
6900 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6902 Remove readability checks (too many false negatives).
6904 * util/grub-install.in: Remove readability checks.
6905 * util/grub-mkconfig.in: Likewise.
6906 * util/grub.d/10_hurd.in: Likewise.
6907 * util/grub.d/10_kfreebsd.in: Likewise.
6908 * util/grub.d/10_linux.in: Likewise.
6909 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
6912 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6914 Enable acpi shutdown on all ACPI platforms.
6916 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
6917 on coreboo, multiboot and EFI.
6918 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
6919 (grub_acpi_halt): Likewise.
6920 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
6921 (grub_cmd_halt): Don't call grub_acpi_halt directly.
6922 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
6923 * grub-core/lib/i386/halt.c (grub_halt)
6924 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
6926 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6928 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
6931 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6933 * grub-core/video/efi_gop.c: Fix over-80-chars line.
6934 * grub-core/video/efi_uga.c: Likewise.
6936 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6938 Filter devaliases and never open same device twice.
6940 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
6941 (last_ihandle): Likewise.
6942 (ofdisk_hash_ent): New member shortest.
6943 (ofdisk_hash_add): Add canonical path too.
6944 (scan): New function.
6945 (grub_ofdisk_iterate): Iterate over hashed entries.
6946 (compute_dev_path): Don't add :0.
6947 (grub_ofdisk_open): Don't really open the disk.
6948 (grub_ofdisk_close): Avoid closing unrelated disk.
6949 (grub_ofdisk_read): Implement reopen logic.
6950 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
6952 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
6955 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6959 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
6960 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
6961 right address. Add sparc64_ieee1275_ldflags.
6962 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
6963 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
6964 to grub_host_to_target_addr
6965 (load_image): Likewise.
6967 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6969 * grub-core/normal/completion.c (complete_file): Handle device
6971 Fix based on patch by Doug Nazar.
6973 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6975 grub-mknetdir script.
6977 * Makefile.util.def (grub-mknetdir): New module.
6978 * tests/util/grub-shell.in: Support boot=net
6979 * util/grub-mknetdir.in: New file.
6981 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6983 videoinfo on non-vbe.
6985 * grub-core/Makefile.core.def (vbeinfo): Removed.
6987 (videoinfo): New module.
6988 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
6989 * grub-core/commands/i386/pc/vbetest.c: Removed.
6990 * grub-core/commands/videoinfo.c: New file.
6991 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
6993 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
6995 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
6996 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
6997 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
6998 mode_number. New parameter mode. All users updated.
6999 (grub_video_gop_iterate): New function.
7000 (grub_video_efi_gop): New member iterate.
7001 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
7002 (grub_vbe_set_video_mode): Remove setting useless fields.
7003 (vbe2videoinfo): New function.
7004 (grub_video_vbe_iterate): Likewise.
7005 (grub_video_vbe_setup): Use vbe2videoinfo.
7006 (grub_video_vbe_print_adapter_specific_info): New function.
7007 (grub_video_vbe_adapter): New fields iterate and
7008 print_adapter_specific_info.
7009 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
7011 (grub_video_mode_info): New field mode_number.
7012 (grub_video_adapter): New fields iterate and
7013 print_adapter_specific_info.
7015 2010-09-13 Tristan Gingold <gingold@free.fr>
7016 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
7017 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7019 * grub-core/commands/efi/lsefisystab.c: New file.
7020 * grub-core/commands/efi/lssal.c: Likewise.
7021 * grub-core/Makefile.core.def (lsacpi): New module.
7022 (lsefisystab): Likewise.
7023 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
7024 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
7025 (grub_efi_sal_system_table): New struct.
7026 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
7027 (grub_efi_sal_system_table_memory_descriptor): Likewise.
7028 (grub_efi_sal_system_table_platform_features): Likewise.
7029 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
7030 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
7031 (grub_efi_sal_system_table_ap_wakeup): Likewise.
7032 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
7034 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7036 Support explicit user claim that a device is BIOS-visible.
7038 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
7039 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
7040 * grub-core/kern/emu/hostdisk.c
7041 (convert_system_partition_to_system_disk): Support mdX.
7042 (find_system_device): New parameter add. All users updated.
7043 (grub_util_biosdisk_is_present): New function.
7044 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
7047 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7049 Search hints support.
7051 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
7054 2010-09-13 Yves Blusseau <blusseau@zetam.org>
7056 Bash completion script for util commands
7058 * Makefile.am: Add util/bash-completion.d directory
7059 * configure.ac: Likewise.
7060 * util/bash-completion.d/Makefile.am: New file.
7061 * util/bash-completion.d/grub-completion.bash.in: Likewise.
7063 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7065 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
7066 (print_backlog): set backlog_ucs4 and backlog_glyphs.
7067 Reported by: Yves Blusseau.
7069 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7071 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
7072 partition size and offset.
7074 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7076 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
7078 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7080 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
7082 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7084 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
7085 (grub_xvasprintf): Likewise.
7087 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7089 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
7091 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7093 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
7094 args ending with NULL.
7096 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7098 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
7101 2010-09-11 Szymon Janc <szymon@janc.net.pl>
7103 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
7105 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7107 Shutdown using ACPI.
7109 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
7110 * grub-core/commands/acpihalt.c: New file.
7111 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
7112 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
7113 (grub_acpi_halt): New proto.
7114 (GRUB_ACPI_SLP_EN): New const.
7115 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
7116 (GRUB_ACPI_OPCODE_*): New enum.
7117 (GRUB_ACPI_EXTOPCODE_*): Likewise.
7119 2010-09-11 Tristan Gingold <gingold@free.fr>
7120 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
7121 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7123 * commands/lsacpi.c: New file.
7124 * grub-core/Makefile.core.def (lsacpi): New module.
7125 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
7126 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
7127 (grub_acpi_madt_entry_header): New struct.
7128 (grub_acpi_madt): Likewise.
7129 (grub_acpi_madt_entry_interrupt_override): Likewise.
7130 (grub_acpi_madt_entry_sapic): Likewise.
7131 (grub_acpi_madt_entry_lsapic): Likewise.
7132 (grub_acpi_madt_entry_platform_int_source): Likewise.
7133 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
7134 (PRIuGRUB_UINT32_T): Likewise.
7135 (PRIxGRUB_UINT64_T): Likewise.
7137 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7139 Implement loading palette on ieee1275_fb.
7141 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
7142 (have_setcolors): Likewise.
7143 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
7144 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
7145 (grub_video_ieee1275_set_palette): Implement.
7147 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7148 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
7150 * util/grub-install.in (grub_partition): New variable.
7151 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
7152 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
7153 Fixes a bug reported by Yves Blusseau.
7155 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7159 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
7160 =grub_cpu_flush_cache on all mips and not only yeeloong.
7161 * configure.ac (COND_mips): New conditional.
7162 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
7164 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
7165 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
7166 [GRUB_LINKER_HAVE_INIT]: New function.
7167 (grub_emu_post_init): Likewise.
7168 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
7169 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
7170 * include/grub/cache.h (_mips): Include mips/cache.h.
7171 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
7172 LVM and RAID prototypes.
7173 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
7174 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
7177 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
7179 * util/grub-install.in: Don't try to verify core.img until after
7180 running grub-mkimage to create it.
7182 2010-09-10 Robert Millan <rmh@gnu.org>
7184 * util/grub.d/10_hurd.in: Add misc readability checks.
7185 * util/grub.d/10_kfreebsd.in: Likewise.
7186 * util/grub.d/10_linux.in: Likewise.
7188 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
7190 * util/grub-install.in: ${imgext} won't be defined here until the
7191 install branch is merged. For the meantime, only verify core.img on
7192 i386-pc and sparc64-ieee1275 platforms.
7194 2010-09-10 Robert Millan <rmh@gnu.org>
7196 Solaris support in grub_find_zpool_from_dir(). Thanks
7197 Seth Goldberg for referring to getextmntent() facility.
7199 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
7201 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
7203 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
7204 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
7205 method for finding zpool name.
7207 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
7209 grub-fstest needs the host and hostfs modules while other utilities
7210 actively require those modules to be absent, so grub-fstest needs
7211 its own initialisation and finalisation code.
7213 * Makefile.am (grub_fstest.pp): New target.
7214 (grub_fstest_init.lst): Likewise.
7215 (grub_fstest_init.c): Likewise.
7216 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
7218 2010-09-10 Robert Millan <rmh@gnu.org>
7220 * configure.ac: Check for `struct statfs.f_fstypename' and
7221 `struct statfs.f_mntfromname'.
7223 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
7224 kFreeBSD-specific code.
7226 2010-09-10 Robert Millan <rmh@gnu.org>
7228 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
7229 on ZFS. Now non-main filesystems are supported as / too.
7231 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
7233 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
7234 and grub-core/disk/host.c to ...
7235 (grub-fstest): ... here. Having the host disk implementation
7236 present confuses grub-probe and other utility programs.
7238 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
7239 when writing to a file, not when writing to stdout.
7241 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
7243 * tests/partmap_test.in: New test for partitions.
7244 * Makefile.util.def: Rules for new test.
7246 2010-09-09 Robert Millan <rmh@gnu.org>
7248 * util/grub-probe.c (probe): Fix a pair of unhandled error
7251 2010-09-09 Robert Millan <rmh@gnu.org>
7253 Basic Btrfs support (detection and UUID).
7255 * grub-core/fs/btrfs.c: New file.
7256 * Makefile.util.def (library): Register btrfs.c.
7257 * grub-core/Makefile.core.def: Likewise.
7259 2010-09-08 Robert Millan <rmh@gnu.org>
7261 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
7262 with (optional) parameters to specify device and relative path.
7263 * util/grub-install.in: Use is_path_readable_by_grub() to
7264 verify readability of a few critical files.
7265 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
7266 verify readability of grub.cfg.new.
7268 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
7270 Split minix.mod into minix.mod and minix2.mod.
7272 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
7273 * grub-core/Makefile.core.def (minix2): New module.
7274 * grub-core/fs/minix.c: Use definitions instead of runtime version
7276 * grub-core/fs/minix2.c: New file.
7278 2010-09-08 Yves Blusseau <blusseau@zetam.org>
7280 Add new --boot-directory option to replace --root-directory
7282 * util/grub-install.in: Add new --boot-directory option
7283 * util/grub-reboot.in: Likewise.
7284 * util/grub-set-default.in: Likewise.
7286 2010-09-08 Yves Blusseau <blusseau@zetam.org>
7288 * util/grub-mkconfig.in: Use new variable.
7290 2010-09-08 Yves Blusseau <blusseau@zetam.org>
7292 * configure.ac: Define some useful variables.
7294 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
7296 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7297 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
7298 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
7299 Use terminfo and don't use cursor-on/cursor-off unless it's known
7301 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
7302 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
7304 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
7306 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
7307 starts with "(,", fill the drive containing the loaded image in
7308 between those two characters, but expect that a full partition
7309 specification including partition map names will follow.
7311 2010-09-08 Robert Millan <rmh@gnu.org>
7313 * configure.ac: Remove `--enable-grub-fstest' option.
7314 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
7316 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
7317 `grub-fstest' instead of `grub-probe' for readability verification.
7318 * util/grub-probe.c (probe): Remove readability verification kludge.
7320 2010-09-08 Robert Millan <rmh@gnu.org>
7322 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
7323 initializing `GRUB_FS'.
7325 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
7327 Not command (!) support to GRUB script.
7329 * tests/grub_script_not.in: New test.
7330 * Makefile.util.def: Rules for new test.
7332 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
7333 ! command as a special case.
7334 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
7336 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
7338 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
7341 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
7343 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
7345 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
7347 * docs/grub.texi (Shell-like scripting): Documentation for break,
7348 continue, shift and return commands.
7350 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
7352 Rename CD-ROM to cd on BIOS.
7354 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
7356 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
7358 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7360 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
7361 * util/grub-probe.c (main): Likewise.
7362 * util/i386/pc/grub-setup.c (main): Likewise.
7363 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
7364 Reported and debugged by: alexxy
7366 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7368 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
7371 2010-09-05 Jo Shields <directhex@apebox.org>
7373 * util/grub.d/30_os-prober.in: Add missing classes.
7375 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7377 * docs/grub.texi (Theme file format): Document new position format.
7379 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7381 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
7382 a table. Use @code instead of @verbatim.
7384 2010-09-05 Colin D Bennett <colin@gibibit.com>
7386 Gfxmenu documentation.
7388 * docs/grub.texi (Theme file format): New chapter.
7390 2010-09-05 Szymon Janc <szymon@janc.net.pl>
7392 * grub-core/Makefile.core.def (xzio): New module.
7393 * grub-core/io/xzio.c: New file.
7394 * grub-core/lib/xzembed/xz.h: New file (from xembed).
7395 * grub-core/lib/xzembed/xz_config.h: Likewise.
7396 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
7397 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
7398 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
7399 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
7400 * grub-core/lib/xzembed/xz_private.h: Likewise.
7401 * grub-core/lib/xzembed/xz_stream.h: Likewise.
7402 * include/grub/file.h (grub_file_filter_id): New compression filter
7403 GRUB_FILE_FILTER_XZIO.
7405 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7407 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
7408 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
7411 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7413 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
7414 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
7416 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7418 Uncompressed checksum support.
7420 * grub-core/commands/hashsum.c (options): Add option --uncompress.
7421 (check_list): New parameter uncompress.
7422 (grub_cmd_hashsum): Handle --uncompress.
7424 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7426 Reintroduce testload.
7428 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
7430 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
7431 (GRUB_MOD_INIT): New function.
7432 (GRUB_MOD_FINI): Likewise.
7433 * grub-core/Makefile.core.def (testload): New module.
7435 2010-09-05 Szymon Janc <szymon@janc.net.pl>
7437 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
7438 (uint8_t): New type.
7439 (uint16_t): Likewise.
7440 (uint32_t): Likewise.
7441 (uint64_t): Likewise.
7443 2010-09-05 Szymon Janc <szymon@janc.net.pl>
7445 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
7447 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7449 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
7451 (grub_gzfile_open): Removed. All users updated.
7452 (GRUB_MOD_INIT): New function.
7453 (GRUB_MOD_FINI): Likewise.
7454 * grub-core/kern/file.c (grub_file_filters_all): New variable.
7455 (grub_file_filters_enabled): Likewise.
7456 (grub_file_open): Handle filters.
7457 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
7458 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
7459 * include/grub/file.h (grub_file_filter_id_t): New type.
7460 (grub_file_filter_t): Likewise.
7461 (grub_file_filters_all): New extern variable.
7462 (grub_file_filters_enabled): Likewise.
7463 (grub_file_filter_register): New inline function.
7464 (grub_file_filter_unregister): Likewise.
7465 (grub_file_filter_disable): Likewise.
7466 (grub_file_filter_disable_compression): Likewise.
7467 * include/grub/gzio.h: Removed.
7469 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7471 Filename expansion support for wildcards in GRUB script.
7473 * tests/grub_script_expansion.in: New test.
7474 * Makefile.util.def: Rule for new test.
7476 * grub-core/commands/wildcard.c: New file, implements filename
7477 expansion support for GRUB script.
7478 * grub-core/Makefile.core.def: Rule update for regexp.mod.
7479 * grub-core/script/argv.c: Cosmetic changes.
7480 * grub-core/script/execute.c (grub_script_arglist_to_argv):
7481 Refactored to perform wildcard expansion on arguments.
7482 * include/grub/script_sh.h (grub_script_wildcard_translator): New
7485 * tests/util/grub-shell.in: Fix quoting for read input.
7487 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7489 Support for updating environment variables with matched substrings
7492 * tests/grub_cmd_regexp.in: New test.
7493 * Makefile.util.def: Rule for new test.
7495 * grub-core/commands/regexp.c: New option -s to update environment
7496 variables with regexp matches.
7498 2010-09-04 Szymon Janc <szymon@janc.net.pl>
7500 * include/grub/file.h (grub_file): New member not_easly_seekable.
7501 (grub_file_seekable): New inline function.
7502 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
7504 (grub_gzio_open): Set not_easly_seekable.
7505 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
7506 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
7508 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7510 Support for options to appear multiple times on cmdline.
7512 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
7513 * grub-core/commands/extcmd.c: Support for repeatable option.
7514 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
7515 repeatable option support.
7517 Refactor menuentry into a regular command.
7519 * grub-core/commands/menuentry.c: New file, menuentry command
7521 * grub-core/Makefile.core.def: Rule update for normal.mod.
7522 * grub-core/normal/main.c: Moved menuentry creation to
7523 grub-core/commands/menuentry.c.
7524 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
7525 (grub_menu_execute_entry_real): Removed.
7526 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
7528 (grub_script_execute_menuentry): Removed.
7529 * grub-core/script/parser.y (menuentry): Removed.
7530 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
7531 * grub-core/script/yylex.l (menuentry): Removed.
7532 * include/grub/menu.h (grub_menu_init): New prototype.
7533 (grub_menu_fini): New prototype.
7534 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
7535 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
7536 (grub_script_execute_sourcecode): New prototype.
7538 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7540 "return" command for GRUB script functions.
7542 * tests/grub_script_return.in: New test.
7543 * Makefile.util.def: Rules for new test.
7545 * grub-core/script/execute.c (grub_script_return): New function.
7546 * grub-core/script/main.c: Register/unregister return commaond.
7547 * include/grub/script_sh.h (grub_script_return): New prototype.
7549 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7551 "setparams" command to update positional parameters.
7553 * tests/grub_script_setparams.in: New test.
7554 * Makefile.util.def: Rules for new test.
7556 * grub-core/script/argv.c (grub_script_argv_make): New function.
7557 * grub-core/script/execute.c (replace_scope): New function.
7558 (grub_script_setparams): New function.
7559 * grub-core/script/lexer.c: Remove unused variables.
7560 * grub-core/script/main.c: Register/unregister setparams command.
7561 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
7562 (grub_script_setparams): New prototype.
7564 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7566 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
7569 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7571 Support for passing block of commands as an argument to extcmds.
7573 * Makefile.util.def: Rules for new test.
7574 * tests/grub_script_blockarg.in: New test.
7575 * grub-core/tests/test_blockarg.c: New file, block argument
7576 command used in the test.
7578 * include/grub/extcmd.h (grub_extcmd_context): New struct.
7579 (grub_register_extcmd_prio): New function prototype.
7580 (grub_extcmd_dispatcher): New function prototype.
7581 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
7583 * include/grub/script_sh.h (struct grub_script): New members
7584 `children', `next_siblings' and `refcnt' for block arguments and
7586 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
7587 (grub_script_arg): New member `script' for block argument.
7588 (grub_script_argv): New member `script' for block argument.
7589 (grub_parser_param): New member `scripts' for block argument.
7590 (grub_script_mem_free): New extern function prototype.
7591 (grub_script_ref): New function prototype.
7592 (grub_script_unref): New function prototype.
7594 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
7595 extcmd form to support block arguments.
7596 * grub-core/script/argv.c: Block arguments support.
7597 * grub-core/script/execute.c: Likewise.
7598 * grub-core/script/lexer.c: Likewise.
7599 * grub-core/script/main.c: Likewise.
7600 * grub-core/script/script.c: Likewise.
7601 * grub-core/script/parser.y: Likewise. New `block' and `block0'
7604 * grub-core/commands/acpi.c: Update extcmd implementations with
7605 grub_extcmd_context_t.
7606 * grub-core/commands/cat.c: Likewise.
7607 * grub-core/commands/echo.c: Likewise.
7608 * grub-core/commands/extcmd.c: Likewise.
7609 * grub-core/commands/hashsum.c: Likewise.
7610 * grub-core/commands/hdparm.c: Likewise.
7611 * grub-core/commands/help.c: Likewise.
7612 * grub-core/commands/hexdump.c: Likewise.
7613 * grub-core/commands/i386/cpuid.c: Likewise.
7614 * grub-core/commands/i386/pc/drivemap.c: Likewise.
7615 * grub-core/commands/i386/pc/halt.c: Likewise.
7616 * grub-core/commands/i386/pc/sendkey.c: Likewise.
7617 * grub-core/commands/iorw.c: Likewise.
7618 * grub-core/commands/keystatus.c: Likewise.
7619 * grub-core/commands/loadenv.c: Likewise.
7620 * grub-core/commands/ls.c: Likewise.
7621 * grub-core/commands/lspci.c: Likewise.
7622 * grub-core/commands/memrw.c: Likewise.
7623 * grub-core/commands/probe.c: Likewise.
7624 * grub-core/commands/search_wrap.c: Likewise.
7625 * grub-core/commands/setpci.c: Likewise.
7626 * grub-core/commands/sleep.c: Likewise.
7627 * grub-core/disk/loopback.c: Likewise.
7628 * grub-core/hello/hello.c: Likewise.
7629 * grub-core/loader/i386/bsd.c: Likewise.
7630 * grub-core/loader/xnu.c: Likewise.
7631 * grub-core/term/gfxterm.c: Likewise.
7632 * grub-core/term/serial.c: Likewise.
7633 * grub-core/tests/lib/functional_test.c: Likewise.
7635 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7637 Multi-line quoted strings support.
7639 * grub-core/script/lexer.c (append_newline): Removed.
7640 (grub_script_lexer_yywrap): Refactored.
7641 (grub_script_lexer_init): Refactored.
7642 * grub-core/script/yylex.l (yywrap): New function.
7643 (grub_lexer_resplit): New function.
7644 (grub_lexer_unput): New function.
7645 * include/grub/script_sh.h (grub_lexer_param): New members, unput
7647 * tests/grub_script_echo1.in: Added few more testcases.
7649 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
7651 * grub-core/kern/misc.c: Don't add abort alias in utils.
7652 Reported by: echoline.
7654 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
7656 Add missing files into "make dist" tarball for other platforms.
7658 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
7659 * conf/Makefile.common (dist_noinst_DATA): New variable.
7660 * conf/Makefile.extra-dist: Added missing make dist files.
7661 * grub-core/Makefile.core.def: Likewise.
7663 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
7665 Compress grub_prefix.
7667 * grub-core/boot/i386/pc/lnxboot.S: Use
7668 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
7669 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
7670 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
7671 GRUB_MACHINE_PREFIX_END. All users updated.
7672 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
7673 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
7675 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
7676 * util/grub-mkimage.c (image_target_desc): Change data_end to
7677 prefix_end. All users updated.
7679 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
7681 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
7683 (grub_openbsd_boot): Likewise.
7684 (grub_netbsd_boot): Likewise.
7685 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
7686 (grub_xnu_boot): Likewise.
7688 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
7690 * configure.ac: Clean LIBS variable after tests.
7692 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
7694 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
7696 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
7698 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
7699 echo if libdevmapper will be used.
7701 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
7703 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
7704 constant for the same file.
7706 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
7708 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
7710 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
7712 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
7715 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
7717 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
7718 required by the boot protocol.
7720 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
7721 ebp and edi members.
7722 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
7723 state.ebp and state.edi.
7724 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
7725 %ebp and %edi according to grub_relocator32_ebp and
7726 grub_relocator32_edi respectively.
7727 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
7730 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
7732 Add i386-pc-pxe image target.
7734 * util/grub-mkimage.c (image_target_desc): New enum value
7736 (image_targets): New target i386-pc-pxe.
7737 (generate_image): Handle i386-pc-pxe image.
7739 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
7743 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
7744 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
7746 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
7747 (grub_pxe_pxenv): Correct type.
7749 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
7751 * NEWS: Document most of the important changes since 1.98.
7753 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
7755 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
7756 generated manual page) a little.
7758 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
7760 * docs/grub.texi: Add myself as an author.
7762 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
7764 * Makefile.util.def (libgrub.a): Add missing sunpc.
7765 Reported by: Seth Goldberg.
7767 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7769 Interrupt wrapping and code simplifications.
7771 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
7772 x86_noieee1275 which are functionaly equivalent in this case.
7773 (grub-install): Make source on each platform explicit. Enable on
7775 * gentpl.py (x86_efi_pc): Removed group.
7776 (x86_noefi): Likewise.
7777 (i386_noefi): Likewise.
7778 (x86_noieee1275): Likewise.
7779 (i386_noieee1275): Likewise.
7780 (i386_noefi_noieee1275): Likewise.
7781 (i386_pc_qemu_coreboot): Likewise.
7782 (i386_coreboot_multiboot): Likewise.
7783 (i386_pc_coreboot_multiboot_qemu): Likewise.
7784 (x86_noefi_mips): Likewise.
7785 (noieee1275): Likewise.
7786 (ieee1275_mips): Likewise.
7787 (noemu_noieee1275): Likewise.
7790 (videoinkernel): Likewise.
7791 (videomodules): Likewise.
7792 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
7793 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
7794 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
7795 include/grub/loader.h, include/grub/msdos_partition.h,
7796 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
7797 include/grub/machine/console.h, include/grub/machine/vga.h,
7798 include/grub/machine/vbe.h, include/grub/machine/init.h,
7799 include/grub/machine/kernel.h, include/grub/cpu/time.h,
7800 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
7801 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
7802 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
7803 * grub-core/Makefile.core.def (kernel): Explicit the source for
7804 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
7805 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
7806 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
7807 Use videoinkernel tag.
7808 (usb): Enable on all usb.
7809 (usbserial_common): Likewise.
7810 (usbserial_pl2303): Likewise.
7811 (usbserial_ftdi): Likewise.
7812 (uhci): Enable on all x86.
7813 (ohci): Enable on all pci.
7814 (cmostest): Enable on all CMOS.
7815 (acpi): Include commands/acpi.c on all platforms.
7816 (halt): Add relevant lib/*/halt.c.
7817 (hdparm): Enable on all pci.
7819 (usbtest): Enable on all usb.
7820 (ata): Enable on all pci.
7821 (ata_pthru): Likewise.
7822 (usbms): Enable on all usb.
7823 (usb_keyboard): Likewise.
7824 (font): Use tag videomodules.
7826 (datetime): Use tag cmos. Enable on all noemu.
7827 (mmap): Use tags common and x86.
7828 (gfxterm): Use tag videomodules.
7830 (bitmap_scale): Likewise.
7831 (video_fb): Likewise.
7833 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
7834 adjust padding accordingly. All users updated.
7835 (grub_ohci_transaction): Fix bad format specification.
7836 (GRUB_MOD_INIT): Add asserts for struct size.
7837 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
7838 (grub_alloc_td): Likewise.
7839 (grub_free_queue): Likewise.
7840 (grub_uhci_transfer): Likewise.
7841 (grub_uhci_transaction): Fix bad format specification.
7842 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
7843 (grub_usb_bulk_readwrite): Likewise.
7844 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
7845 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
7847 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
7849 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
7850 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
7852 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
7854 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
7855 ... here. Transformed into C. Made static.
7856 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
7858 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
7859 ... here. Transformed into C. Made static.
7860 * grub-core/kern/i386/pc/startup.S
7861 (grub_biosdisk_check_int13_extensions): Moved from here ...
7862 * grub-core/disk/i386/pc/biosdisk.c
7863 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
7865 * grub-core/kern/i386/pc/startup.S
7866 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
7867 * grub-core/disk/i386/pc/biosdisk.c
7868 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
7869 Transformed into C. Made static.
7870 * grub-core/kern/i386/pc/startup.S
7871 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
7872 * grub-core/disk/i386/pc/biosdisk.c
7873 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
7874 Transformed into C. Made static.
7875 * grub-core/kern/i386/pc/startup.S
7876 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
7877 * grub-core/disk/i386/pc/biosdisk.c
7878 (grub_biosdisk_get_diskinfo_standard): ... here.
7879 Transformed into C. Made static.
7880 * grub-core/kern/i386/pc/startup.S
7881 (grub_biosdisk_get_num_floppies): Moved from here ...
7882 * grub-core/disk/i386/pc/biosdisk.c
7883 (grub_biosdisk_get_num_floppies): ... here.
7884 Transformed into C. Made static.
7885 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
7887 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
7888 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
7889 Transformed into C. Made static.
7890 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
7891 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
7892 Transformed into C. Made static.
7893 * grub-core/kern/i386/ieee1275/init.c: Removed.
7894 * grub-core/kern/i386/misc.S: Likewise.
7895 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
7896 Splitted from here ...
7897 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
7898 Transformed into C. Made static. All users updated.
7899 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
7900 Transformed into C. Made static. All users updated.
7901 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
7903 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
7904 Transformed into C. Made static. All users updated.
7905 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
7907 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
7908 Transformed into C. Made static. All users updated.
7909 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
7910 Removed (replaced by C version).
7911 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
7913 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
7914 Transformed into C. Made static.
7915 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
7917 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
7918 ... here. Transformed into C.
7919 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
7921 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
7922 ... here. Transformed into C.
7923 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
7925 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
7926 ... here. Transformed into C. Made static.
7927 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
7929 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
7930 ... here. Transformed into C.
7931 * grub-core/kern/i386/pc/startup.S
7932 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
7933 * grub-core/video/i386/pc/vbe.c
7934 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
7935 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
7937 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
7938 ... here. Transformed into C.
7939 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
7941 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
7942 ... here. Transformed into C.
7943 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
7945 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
7946 ... here. Transformed into C.
7947 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
7949 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
7950 ... here. Transformed into C.
7951 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
7953 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
7954 ... here. Transformed into C. Made static.
7955 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
7957 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
7958 ... here. Transformed into C. Made static.
7959 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
7961 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
7962 ... here. Transformed into C. Made static.
7963 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
7964 pxe_rm_entry as third argument.
7965 (grub_bios_interrupt): New function.
7966 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
7967 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
7968 of calling grub_stop.
7969 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
7970 * grub-core/lib/efi/halt.c (grub_halt): ...here.
7971 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
7972 * grub-core/lib/emu/halt.c (grub_halt): ... here.
7973 * grub-core/lib/i386/halt.c: Moved from here ...
7974 * grub-core/lib/i386/halt.c: ... here.
7975 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
7976 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
7977 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
7979 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
7980 * include/grub/i386/coreboot/init.h: Removed.
7981 * include/grub/i386/multiboot/init.h: Likewise.
7982 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
7983 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
7984 * include/grub/i386/pc/int.h: New file.
7985 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
7986 (grub_pxe_scan): Removed.
7987 (grub_pxe_call): Update prototype.
7988 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
7990 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
7991 * include/grub/i386/qemu/init.h: Removed.
7992 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
7994 (grub_halt): Likewise.
7995 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
7996 (grub_reboot): Likewise.
7997 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
7998 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
7999 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
8001 2010-08-30 Robert Millan <rmh@gnu.org>
8003 * NEWS: Document addition of ZFS support in `grub-install' and
8006 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
8008 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
8011 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8013 Remove leftover embedding of font objects.
8015 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
8016 * util/grub-install.in (font): Removed.
8017 * util/grub-mkimage.c (generate_image): Remove font support. All users
8020 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8022 Remove leftover embedding of font objects.
8024 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
8025 * util/grub-install.in (font): Removed.
8026 * util/grub-mkimage.c (generate_image): Remove font support. All users
8029 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8031 * docs/grub.texi (Network): Fix reference to pxe_blksize.
8032 Reported by: Ian Turner
8034 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8036 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
8037 timeout to avoid indefinite boot stalling.
8039 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8041 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
8042 (grub_env_write_color_highlight): Likewise.
8044 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8046 * grub-core/normal/term.c (print_more): Return to normal and not
8047 to standard state after printing "---MORE---".
8049 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8051 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
8052 Mask out the bit 0x80 since it has other meaning that specifiing color.
8054 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8056 New relocator. Allows for more kernel support and more straightforward
8059 * Makefile.am (BOOTTARGET): New variable.
8061 (linux.init.x86_64): New target.
8062 (linux.init.i386): Likewise.
8063 (multiboot.elf): Likewise.
8064 (kfreebsd.elf): Likewise.
8065 (kfreebsd.aout): Likewise.
8066 (pc-chainloader.elf): Likewise.
8067 (pc-chainloader.bin): Likewise.
8068 (ntldr.elf): Likewise.
8069 (ntldr.bin): Likewise.
8070 (multiboot2.elf): Likewise.
8071 (kfreebsd.init.x86_64): Likewise.
8072 (kfreebsd.init.i386): Likewise.
8073 (knetbsd.init.i386): Likewise.
8074 (kopenbsd.init.i386): Likewise.
8075 (knetbsd.init.x86_64): Likewise.
8076 (kopenbsd.init.x86_64): Likewise.
8077 (linux-initramfs.i386): Likewise.
8078 (linux-initramfs.x86_64): Likewise.
8079 (kfreebsd-mfsroot.i386.img): Likewise.
8080 (knetbsd.image.i386): Likewise.
8081 (kopenbsd.image.i386): Likewise.
8082 (kopenbsd.image.x86_64): Likewise.
8083 (knetbsd.miniroot-image.i386.img): Likewise.
8084 (kfreebsd-mfsroot.x86_64.img): Likewise.
8085 (knetbsd.image.x86_64): Likewise.
8086 (knetbsd.miniroot-image.x86_64.img): Likewise.
8087 (kfreebsd-mfsroot.i386.gz): Likewise.
8088 (bootcheck-kfreebsd-i386): Likewise.
8089 (kfreebsd-mfsroot.x86_64.gz): Likewise.
8090 (bootcheck-kfreebsd-x86_64): Likewise.
8091 (knetbsd.miniroot-image.i386.gz): Likewise.
8092 (bootcheck-knetbsd-i386): Likewise.
8093 (bootcheck-kopenbsd-i386): Likewise.
8094 (bootcheck-kopenbsd-x86_64): Likewise.
8095 (knetbsd.miniroot-image.x86_64.gz): Likewise.
8096 (bootcheck-knetbsd-x86_64): Likewise.
8097 (bootcheck-linux-i386): Likewise.
8098 (bootcheck-linux-x86_64): Likewise.
8099 (bootcheck-linux16-i386): Likewise.
8100 (bootcheck-linux16-x86_64): Likewise.
8101 (bootcheck-multiboot): Likewise.
8102 (bootcheck-multiboot2): Likewise.
8103 (bootcheck-kfreebsd-aout): Likewise.
8104 (bootcheck-pc-chainloader): Likewise.
8105 (bootcheck-ntldr): Likewise.
8106 (CLEANFILES): Add new targets.
8107 (BOOTCHECKS): New variable.
8108 (.PHONY): Add bootchecks.
8109 (SUCCESSFUL_BOOT_STRING): New variable.
8110 (BOOTCHECK_TIMEOUT): Likewise.
8111 (bootcheck): New target
8112 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
8113 * configure.ac: Correct efiemu excuse.
8114 * docs/grub.texi (Supported kernels): New chapter.
8115 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
8116 include/grub/mm_private.h. Simplify inclusion of
8117 include/grub/boot.h, include/grub/loader.h
8118 and include/grub/msdos_partition.h
8119 (KERNEL_HEADER_FILES) [i386_coreboot]:
8120 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
8121 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
8122 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
8123 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
8124 include/grub/machine/loader.h.
8125 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
8126 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
8128 (pci.mod): Enable on i386-multiboot.
8129 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
8130 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
8132 (relocator.mod): Rewritten.
8133 (aout.mod): Enable on all x86.
8134 (bsd.mod): Likewise.
8135 (ntldr.mod): New module.
8136 (linux.mod): Use loader/i386/linux.c on all x86.
8137 (xnu.mod): Enable on all x86.
8138 (vga_text.mod): disable on EFI and QEMU.
8139 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
8140 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
8141 * grub-core/efiemu/loadcore.c: Likewise.
8142 * grub-core/efiemu/main.c: Likewise.
8143 (grub_efiemu_exit_boot_services): Removed.
8144 (grub_efiemu_finish_boot_services): Likewise.
8145 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
8147 * grub-core/efiemu/i386/nocfgtables.c: New file.
8148 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
8149 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
8150 (grub_efi_finish_boot_services): Moved from here ...
8151 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
8152 Fille finish memory map and related data.
8153 (finish_mmap_buf): New variable.
8154 (grub_efi_uintn_t finish_mmap_size): Likewise.
8155 (grub_efi_uintn_t finish_key): Likewise.
8156 (grub_efi_uintn_t finish_desc_size): Likewise.
8157 (grub_efi_uint32_t finish_desc_version): Likewise.
8158 (grub_efi_is_finished): Likewise.
8159 (grub_efi_get_memory_map): Use saved memory map if EFI is already
8161 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
8162 (grub_elf64_phdr_iterate): Likewise.
8163 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
8164 (grub_os_area_size): Likewise.
8165 (grub_machine_init): Don't reserve os area.
8166 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
8167 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
8168 * grub-core/kern/i386/loader.S: Removed.
8169 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
8170 (grub_os_area_size): Likewise.
8171 (grub_machine_init): Don't reserve os area.
8172 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8173 Don't call grub_dl_unload_all.
8174 Don't include loader.S.
8175 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8176 Declare the memory after _end as available.
8177 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
8178 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
8179 (GRUB_MM_ALLOC_MAGIC): Moved from here...
8180 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
8181 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
8182 * include/grub/mm_private.h (grub_mm_header): ... here.
8183 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
8184 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
8185 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
8186 (grub_mm_region): ..here. Removed addr. Added pre_size.
8188 * grub-core/kern/mm.c (base): Renamed to ...
8189 (grub_mm_base): ... this. Made global.
8190 (grub_real_malloc): Alloc from end of region.
8191 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
8192 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
8193 * grub-core/kern/powerpc/cache_flush.S: ... here.
8194 * grub-core/lib/efi/relocator.c: New file.
8195 * grub-core/lib/i386/relocator.c: Rewritten.
8196 * grub-core/lib/i386/relocator16.S: New file.
8197 * grub-core/lib/i386/relocator32.S: Likewise.
8198 * grub-core/lib/i386/relocator64.S: Likewise.
8199 * grub-core/lib/i386/relocator_asm.S: Rewritten.
8200 * grub-core/lib/i386/relocator_common.S: New file.
8201 * grub-core/lib/ieee1275/relocator.c: Likewise.
8202 * grub-core/lib/mips/relocator.c: Rewritten.
8203 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
8204 stylistic adjustments.
8205 * grub-core/lib/powerpc/relocator.c: New file.
8206 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
8207 * grub-core/lib/relocator.c: Rewritten.
8208 * grub-core/lib/x86_64/relocator_asm.S: New file.
8209 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
8210 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
8211 (bsd_tag): New struct.
8212 (tags): New variable.
8213 (tags_last): Likewise.
8214 (netbsd_module): New struct.
8215 (netbsd_mods): New variable.
8216 (netbsd_mods_last): Likewise.
8217 (openbsd_opts): New parameter "serial".
8218 (OPENBSD_SERIAL_ARG): New definition.
8219 (netbsd_opts): New parameter "serial".
8220 (NETBSD_SERIAL_ARG): New definition.
8221 (grub_freebsd_add_meta): Reorganised into ...
8222 (grub_bsd_add_meta): ...this. All users updated.
8223 (grub_freebsd_add_mmap): Reorganised into ...
8224 (generate_e820_mmap): ...this...
8225 (grub_bsd_add_mmap): ...and this. All users updated.
8226 (grub_freebsd_list_modules): Use tags.
8227 (grub_netbsd_add_meta_module): New function.
8228 (grub_netbsd_list_modules): Likewise.
8229 (grub_freebsd_boot): Use relocator and finish EFI.
8230 (grub_openbsd_boot): Likewise.
8231 (grub_netbsd_setup_video): New function.
8232 (grub_netbsd_add_modules): Likewise.
8233 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
8235 (grub_bsd_unload): Unload tags.
8236 (grub_bsd_load_aout): Use relocator.
8237 (grub_bsd_elf32_size_hook): New function.
8238 (grub_bsd_elf32_hook): Use relocator.
8239 (grub_bsd_elf64_size_hook): New function.
8240 (grub_bsd_elf64_hook): Use relocator.
8241 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
8242 (grub_bsd_load): Zero-out openbsd_ramdisk.
8243 (grub_bsd_load): Use relocator.
8244 (grub_cmd_openbsd): Support serial.
8245 (grub_cmd_netbsd): Support modules.
8246 (grub_cmd_freebsd_module): Use relocator.
8247 (grub_netbsd_module_load): New function.
8248 (grub_cmd_netbsd_module): Likewise.
8249 (grub_cmd_openbsd_ramdisk): Likewise.
8250 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
8252 (GRUB_MOD_FINI): Unregister new commands.
8253 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
8254 (grub_freebsd_load_elfmodule_obj): Use relocator.
8255 (grub_freebsd_load_elfmodule): Likewise.
8256 (grub_freebsd_load_elf_meta): Likewise.
8257 (grub_netbsd_load_elf_meta): New function.
8258 (grub_openbsd_find_ramdisk): Likewise.
8259 * grub-core/loader/i386/bsd_helper.S: Removed.
8260 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
8261 * grub-core/loader/i386/bsd_trampoline.S: Removed.
8262 * grub-core/loader/i386/efi/linux.c: Likewise.
8263 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
8264 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
8265 (DEFAULT_VIDEO_MODE): Likewise.
8266 (real_mode_target): New variable.
8267 (prot_mode_target): Likewise.
8268 (initrd_mem_target): Likewise.
8269 (relocator): Likewise.
8270 (efi_mmap_buf): Likewise.
8271 (efi_mmap_size): Likewise.
8272 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
8273 (free_pages): Use relocator.
8274 (allocate_pages): Account for efi_mmap and use relocator. Return error.
8275 (grub_linux_setup_video): Return error.
8276 (grub_linux_trampoline_start): Removed.
8277 (grub_linux_trampoline_end): Likewise.
8278 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
8279 andd video parameters depending on firmware.
8280 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
8281 [GRUB_MACHINE_EFI]: Pass EFI parameters.
8282 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
8283 (grub_cmd_initrd): Use relocator.
8284 * grub-core/loader/i386/linux_trampoline.S: Removed.
8285 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
8286 (elf_sec_entsize): Likewise.
8287 (elf_sec_shstrndx): Likewise.
8288 (elf_sections): Likewise.
8289 (grub_multiboot_load): Use relocator.
8290 (grub_multiboot_get_mbi_size): Account for sections.
8291 (grub_multiboot_make_mbi): Use relocator and support sections.
8292 (grub_multiboot_add_elfsyms): New function.
8293 (grub_multiboot_free_mbi): Free sections.
8294 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
8295 (grub_linux_real_target): Likewise.
8296 (grub_linux_real_chunk): Likewise.
8297 (grub_linux16_prot_size): Likewise.
8298 (grub_linux16_boot): Use relocator.
8299 (grub_linux_unload): Unload relocator.
8300 (grub_cmd_linux): Use relocator.
8301 (grub_cmd_initrd): Likewise.
8302 * grub-core/loader/i386/pc/ntldr.c: New file.
8303 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
8304 Don't try to guess CPU frequency.
8305 (grub_xnu_set_video): Stretch bitmap.
8306 (grub_xnu_boot): Use relocator.
8307 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
8308 (grub_linux_unload): Free relocator.
8309 (grub_linux_load32): Use relocator.
8310 (grub_linux_load64): Likewise.
8311 (grub_cmd_initrd): Likewise.
8312 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
8313 (grub_multiboot_unload): Unload relocator.
8314 (grub_cmd_multiboot): Use relocator.
8315 (grub_cmd_module): Likewise.
8316 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
8317 Use relocator and support sections.
8318 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
8319 (elf_sec_entsize): Likewise.
8320 (elf_sec_shstrndx): Likewise.
8321 (elf_sections): Likewise.
8322 (grub_multiboot_load): Use relocator.
8323 (grub_multiboot_get_mbi_size): Account for sections.
8324 (grub_multiboot_make_mbi): Use relocator and support sections.
8325 (grub_multiboot_add_elfsyms): New function.
8326 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
8327 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
8328 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
8329 Prototype changed. All users updated.
8330 (grub_xnu_align_heap): Simplified.
8331 (grub_xnu_writetree_toheap): Likewise.
8332 (grub_xnu_unload): Unload relocator.
8333 (grub_cmd_xnu_kernel): Use relocator.
8334 (grub_cmd_xnu_kernel64): Likewise.
8335 (grub_xnu_register_memory): Simplified.
8336 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
8337 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
8339 (grub_console_checkkey): Likewise.
8340 (grub_console_getkey): Likewise.
8341 (grub_console_getwh): Likewise.
8342 (grub_console_getxy): Likewise.
8343 (grub_console_gotoxy): Likewise.
8344 (grub_console_cls): Likewise.
8345 (grub_console_setcolorstate): Likewise.
8346 (grub_console_setcursor): Likewise.
8347 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
8348 * grub-core/tests/boot/kbsd.init-i386.S: New file.
8349 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
8350 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
8351 * grub-core/tests/boot/kernel-8086.S: Likewise.
8352 * grub-core/tests/boot/kernel-i386.S: Likewise.
8353 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
8354 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
8355 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
8356 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
8357 * grub-core/tests/boot/knetbsd.cfg: Likewise.
8358 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
8359 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
8360 * grub-core/tests/boot/linux.cfg: Likewise.
8361 * grub-core/tests/boot/linux.init-i386.S: Likewise.
8362 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
8363 * grub-core/tests/boot/linux16.cfg: Likewise.
8364 * grub-core/tests/boot/multiboot.cfg: Likewise.
8365 * grub-core/tests/boot/multiboot2.cfg: Likewise.
8366 * grub-core/tests/boot/ntldr.cfg: Likewise.
8367 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
8368 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
8369 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
8371 * include/grub/dl.h (grub_dl_unload_all): Removed.
8372 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
8373 (grub_efi_finish_boot_services): Change prototype.
8374 (grub_efi_is_finished): New variable.
8375 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
8377 (grub_efiemu_finish_boot_services): Removed.
8378 (grub_machine_efiemu_init_tables): New prototype.
8379 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
8380 (grub_elf64_phdr_iterate): Likewise.
8381 * include/grub/i386/bsd.h: Include relocator.h.
8382 (freebsd_tag_header): New struct.
8383 (grub_openbsd_bios_mmap): Removed.
8384 (grub_unix_real_boot): Removed.
8385 (grub_freebsd_load_elfmodule32): Changed prototype.
8386 (grub_freebsd_load_elfmodule_obj64): Likewise.
8387 (grub_freebsd_load_elf_meta32): Likewise.
8388 (grub_freebsd_load_elf_meta64): Likewise.
8389 (grub_freebsd_add_meta): Removed.
8390 (grub_netbsd_load_elf_meta32): New prototype.
8391 (grub_netbsd_load_elf_meta64): Likewise.
8392 (grub_bsd_add_meta): Likewise.
8393 (grub_openbsd_ramdisk_descriptor): New struct.
8394 (grub_openbsd_find_ramdisk32): New prototype.
8395 (grub_openbsd_find_ramdisk64): Likewise.
8396 * include/grub/i386/coreboot/loader.h: Removed.
8397 * include/grub/i386/efi/loader.h: Likewise.
8398 * include/grub/i386/ieee1275/loader.h: Likewise.
8399 * include/grub/i386/linux.h (linux_kernel_header): Change void *
8401 * include/grub/i386/loader.h: Removed.
8402 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
8404 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
8405 (grub_phys_addr_t): New type.
8406 (grub_vtop): New inline function.
8407 (grub_map_memory): Likewise.
8408 (grub_unmap_memory): Likewise.
8409 * include/grub/i386/multiboot/loader.h: Removed.
8410 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
8411 (NETBSD_BTINFO_CONSOLE): New definition.
8412 (NETBSD_BTINFO_SYMTAB): Likewise.
8413 (NETBSD_BTINFO_MODULES): Likewise.
8414 (NETBSD_BTINFO_FRAMEBUF): Likewise.
8415 (grub_netbsd_bootinfo): New struct.
8416 (grub_netbsd_btinfo_common): Use explicit bitsize.
8417 (grub_netbsd_btinfo_mmap_entry): Removed.
8418 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
8419 (grub_netbsd_btinfo_bootdisk): New struct.
8420 (grub_netbsd_btinfo_symtab): Likewise.
8421 (grub_netbsd_btinfo_serial): Likewise.
8422 (grub_netbsd_btinfo_modules): Likewise.
8423 (grub_netbsd_btinfo_framebuf): Likewise.
8424 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
8425 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
8427 (grub_openbsd_bootargs): Use explicit bitsize.
8428 (grub_openbsd_bootarg_console): New struct.
8429 (GRUB_OPENBSD_COM_MAJOR): New definition.
8430 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
8431 * include/grub/i386/pc/efiemu.h: Removed.
8432 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
8433 * include/grub/i386/qemu/loader.h: Removed.
8434 * include/grub/i386/relocator.h: Rewritten.
8435 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
8436 * include/grub/mips/memory.h: New file.
8437 * include/grub/mips/multiboot.h: Rewritten.
8438 * include/grub/mips/relocator.h: Rewritten.
8439 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
8440 (grub_vtop): New function.
8441 (grub_map_memory): Likewise.
8442 (grub_unmap_memory): Likewise.
8443 * include/grub/misc.h (ALIGN_DOWN): New definition.
8444 * include/grub/mm.h (grub_mm_check_real): New proto.
8445 (GRUB_MM_CHECK): New definition.
8446 * include/grub/mm_private.h: New file.
8447 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
8448 (grub_multiboot_get_mbi_size): Removed.
8449 (grub_multiboot_make_mbi): Change prottype.
8450 (grub_multiboot_set_accepts_video): New proto.
8451 (grub_multiboot_add_elfsyms): Likewise.
8452 (grub_multiboot_payload_eip): New variable.
8453 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
8455 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
8457 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
8458 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
8459 * include/grub/powerpc/ieee1275/loader.h: Removed.
8460 * include/grub/powerpc/memory.h: New file.
8461 * include/grub/powerpc/relocator.h: Likewise.
8462 * include/grub/relocator.h: Likewise.
8463 * include/grub/relocator_private.h: Likewise.
8464 * include/grub/sparc64/ieee1275/loader.h: Removed.
8465 * include/grub/x86_64/memory.h: New file.
8466 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
8467 (grub_xnu_heap_malloc): Likewise.
8468 (grub_xnu_heap_real_start): Removed.
8469 (grub_xnu_heap_start): Likewise.
8470 (grub_xnu_relocator): New variable.
8471 (grub_xnu_heap_target_start): Likewise.
8472 * tests/util/grub-shell.in: Support non-pc.
8473 * util/grub-mkimage.c (image_targets): Fix multiboot target.
8475 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8477 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
8479 (grub_bidi_logical_to_visual): Check that malloc succeded.
8480 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
8482 (grub_xputs_normal): Likewise.
8484 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8486 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
8489 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8491 * grub-core/efiemu/runtime/efiemu.sh: Removed.
8493 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8495 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
8497 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8499 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
8502 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
8504 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
8506 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8508 * grub-core/normal/term.c (print_more): Fix a memory leak.
8509 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
8510 (grub_xputs_normal): Likewise.
8512 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8514 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
8515 the begining of the string
8517 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8519 * grub-core/script/script.c (grub_script_parse): Free parsed on
8522 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8524 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
8527 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8529 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
8532 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8534 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
8535 (scroll_up): Fix a memory leak.
8537 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8539 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
8542 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
8544 Handle USB pendrives exposed as floppies.
8546 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
8548 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
8549 Check for partitions on all devices.
8551 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8553 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
8554 (readkey): Likewise.
8556 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
8558 Multiple variable names support to "export" command.
8560 * normal/context.c (grub_cmd_export): "export" command supports
8561 multiple variable names.
8563 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
8565 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
8566 --target=drive output to Mach device name.
8568 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
8570 New Automake based build system for GRUB.
8572 * ABOUT-NLS: New file.
8573 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
8574 in Makefile.util.def file.
8575 * Makefile.util.def: New file. Autogen build definitions file for
8577 * conf/Makefile.common: New file. Common variables for GRUB host
8578 utils and target modules.
8579 * conf/Makefile.extra-dist: New file. Extra files for make dist.
8580 * docs/Makefile.am: New file. Automake file for docs.
8581 * gentpl.py: New file. Python script to generate Autogen
8583 * grub-core/Makefile.am: New file. GRUB target modules' rules
8584 that doesn't fit in Makefile.core.def file.
8585 * grub-core/Makefile.core.def: New file. Autogen build
8586 definitions file for GRUB target modules.
8587 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
8588 specific setjmp.S file.
8589 * po/Makefile.am: New file.
8591 * .bzrignore: New ignores.
8592 * INSTALL: New requirements, without Ruby.
8593 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
8594 * autogen.sh: Updated to invoke autogen as necessary.
8595 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
8596 and defines for Automake conditionals.
8597 * geninit.sh: Refactoring.
8599 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
8601 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
8604 * include/grub/test.h: Fix functional test modules' naming.
8605 * grub-core/tests/example_functional_test.c: Fix test module name.
8607 * util/misc.c: Hosted versions' of grub functions for libgrub.a
8608 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
8609 * util/grub-editenv.c: Likewise.
8610 * util/grub-fstest.c: Likewise.
8611 * util/grub-mkdevicemap.c: Likewise.
8612 * util/grub-mkfont.c: Likewise.
8613 * util/grub-mkimage.c: Likewise.
8614 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8615 * util/grub-probe.c: Likewise.
8616 * util/grub-script-check.c: Likewise.
8617 * util/i386/pc/grub-setup.c: Likewise.
8618 * util/sparc64/ieee1275/grub-setup.c: Likewise.
8620 * tests/util/grub-shell.in: Fix override directory path.
8621 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
8622 * util/import_gcry.py: Create Makefile.gcry.def file instead.
8624 * util/lvm.c: Update #includes.
8625 * util/raid.c: Likewise.
8626 * util/resolve.c: Likewise.
8627 * grub-core/bus/emu/pci.c: Likewise.
8628 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
8629 * grub-core/lib/posix_wrap/string.h: Likewise.
8630 * grub-core/kern/emu/main.c: Likewise.
8632 * grub-core/gensymlist.sh: New file. Script for generating kernel
8634 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
8636 * grub-core/gentrigtables.c: Fix unused variable warnings.
8638 * Makefile.in: Removed.
8639 * conf/any-emu.rmk: Removed.
8640 * conf/common.rmk: Removed.
8641 * conf/i386-coreboot.rmk: Removed.
8642 * conf/i386-efi.rmk: Removed.
8643 * conf/i386-ieee1275.rmk: Removed.
8644 * conf/i386-multiboot.rmk: Removed.
8645 * conf/i386-pc.rmk: Removed.
8646 * conf/i386-qemu.rmk: Removed.
8647 * conf/i386.rmk: Removed.
8648 * conf/mips-yeeloong.rmk: Removed.
8649 * conf/mips.rmk: Removed.
8650 * conf/powerpc-ieee1275.rmk: Removed.
8651 * conf/sparc64-ieee1275.rmk: Removed.
8652 * conf/tests.rmk: Removed.
8653 * conf/x86-efi.rmk: Removed.
8654 * conf/x86_64-efi.rmk: Removed.
8655 * gendistlist.sh: Removed.
8656 * geninitheader.sh: Removed.
8657 * genkernsyms.sh.in: Removed.
8658 * genmk.rb: Removed.
8659 * gensymlist.sh.in: Removed.
8660 * mkinstalldirs: Removed.
8662 * grub-core/boot: ... to here.
8664 * grub-core/bus: ... to here.
8665 * commands: Moved ...
8666 * grub-core/commands: ... to here.
8668 * grub-core/disk: ... to here.
8670 * grub-core/efiemu: ... to here.
8672 * grub-core/font: ... to here.
8674 * grub-core/fs: ... to here.
8675 * gencmdlist.sh: Moved ...
8676 * grub-core/gencmdlist.sh: ... to here.
8677 * genemuinit.sh: Moved ...
8678 * grub-core/genemuinit.sh: ... to here.
8679 * genemuinitheader.sh: Moved ...
8680 * grub-core/genemuinitheader.sh: ... to here.
8681 * genfslist.sh: Moved ...
8682 * grub-core/genfslist.sh: ... to here.
8683 * genhandlerlist.sh: Moved ...
8684 * grub-core/genhandlerlist.sh: ... to here.
8685 * genmoddep.awk: Moved ...
8686 * grub-core/genmoddep.awk: ... to here.
8687 * genmodsrc.sh: Moved ...
8688 * grub-core/genmodsrc.sh: ... to here.
8689 * genpartmaplist.sh: Moved ...
8690 * grub-core/genpartmaplist.sh: ... to here.
8691 * genparttoollist.sh: Moved ...
8692 * grub-core/genparttoollist.sh: ... to here.
8693 * genterminallist.sh: Moved ...
8694 * grub-core/genterminallist.sh: ... to here.
8695 * gentrigtables.c: Moved ...
8696 * grub-core/gentrigtables.c: ... to here.
8697 * genvideolist.sh: Moved ...
8698 * grub-core/genvideolist.sh: ... to here.
8699 * gettext: Moved ...
8700 * grub-core/gettext: ... to here.
8701 * gfxmenu: Moved ...
8702 * grub-core/gfxmenu: ... to here.
8704 * grub-core/gnulib: ... to here.
8706 * grub-core/hello: ... to here.
8708 * grub-core/hook: ... to here.
8710 * grub-core/io: ... to here.
8712 * grub-core/kern: ... to here.
8714 * grub-core/lib: ... to here.
8716 * grub-core/loader: ... to here.
8718 * grub-core/mmap: ... to here.
8720 * grub-core/normal: ... to here.
8721 * partmap: Moved ...
8722 * grub-core/partmap: ... to here.
8723 * parttool: Moved ...
8724 * grub-core/parttool: ... to here.
8726 * grub-core/script: ... to here.
8728 * grub-core/term: ... to here
8729 * tests/example_functional_test.c: Moved ...
8730 * grub-core/tests/example_functional_test.c: ... to here.
8731 * tests/lib/functional_test.c: Moved ...
8732 * grub-core/tests/lib/functional_test.c: ... to here.
8733 * tests/lib/test.c: Moved ...
8734 * grub-core/tests/lib/test.c: ... to here.
8736 * grub-core/video: ... to here.
8738 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
8740 Replace --enable-grub-emu-modules with grub-emu-lite.
8742 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
8745 * include/grub/emu/misc.h (grub_emu_init): New prototype.
8746 * kern/emu/full.c: New file. For grub-emu specific initialization.
8747 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
8748 * kern/emu/main.c: Call initialization function grub_emu_init.
8750 * Makefile.in: Include grub-emu-lite in install.
8751 * commands/parttool.c: Use grub_no_autoload to differentiate
8752 between grub-emu and grub-emu-lite.
8753 * include/grub/misc.h: New variable grub_no_autoload.
8755 * conf/any-emu.rmk: New rules for grub-emu-lite.
8756 * configure.ac: Remove --enable-grub-emu-modules.
8757 * genmk.rb: Cleanup unnecessary rules.
8758 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
8760 * normal/main.c: Don't load list files on grub-emu-lite.
8761 * util/misc.c (grub_arch_sync_caches): Removed.
8763 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
8765 * kern/mips/startup.S (grub_prefix): Update comment to refer to
8766 grub-mkimage rather than grub-mkelfimage.
8767 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
8769 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
8771 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
8772 a key after CapsLock or NumLock. It's just a qemu bug.
8774 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
8776 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
8777 needed by libusb wrapper.
8779 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
8781 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
8783 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
8785 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
8786 --nounzip is passed.
8788 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
8790 USB hotunplugging and USB serial support.
8792 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
8793 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
8794 (grub_uhci_transfer): Respect timeout and set *actual.
8795 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
8796 non-standard length.
8797 (grub_usb_device_attach): Autoload modules.
8798 (GRUB_MOD_INIT): Set grub_term_poll_usb.
8799 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
8800 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
8802 (grub_usb_add_hub): Fill nports and children.
8803 (attach_root_port): Receive hub instead of controller.
8804 All users updated. Fill hub->devices.
8805 (grub_usb_root_hub): Allocate hub->devices.
8806 (detach_device): New function.
8807 (poll_nonroot_hub): Fill children and detach devices.
8808 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
8809 actual arguments. All users updated.
8810 (grub_usb_bulk_read_extended): New function.
8811 * bus/usb/serial/common.c: New file.
8812 * bus/usb/serial/ftdi.c: Likewise.
8813 * bus/usb/serial/pl2303.c: Likewise.
8814 * commands/terminal.c (handle_command): Support wildcard.
8815 * commands/usbtest.c: Output "Unknown" instead of empty string.
8816 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
8817 (usbserial_common_mod_SOURCES): New variable.
8818 (usbserial_common_mod_CFLAGS): Likewise.
8819 (usbserial_common_mod_LDFLAGS): Likewise.
8820 (pkglib_MODULES): Add usbserial_pl2303.mod.
8821 (usbserial_pl2303_mod_SOURCES): New variable.
8822 (usbserial_pl2303_mod_CFLAGS): Likewise.
8823 (usbserial_pl2303_mod_LDFLAGS): Likewise.
8824 (pkglib_MODULES): Add usbserial_ftdi.mod.
8825 (usbserial_ftdi_mod_SOURCES): New variable.
8826 (usbserial_ftdi_mod_CFLAGS): Likewise.
8827 (usbserial_ftdi_mod_LDFLAGS): Likewise.
8828 (pkglib_MODULES): Add serial.mod.
8829 (serial_mod_SOURCES): New variable.
8830 (serial_mod_CFLAGS): Likewise.
8831 (serial_mod_LDFLAGS): Likewise.
8832 * conf/i386-pc.rmk: Likewise.
8833 * conf/mips-yeeloong.rmk: Likewise.
8834 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
8835 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
8836 * disk/usbms.c (first_available_slot): New variable.
8837 (grub_usbms_attach): Don't reuse free slots due to potential cache
8839 * include/grub/serial.h: Moved to ..
8840 * include/grub/ns8250.h: ...this.
8841 * include/grub/serial.h: New file.
8842 * include/grub/term.h (grub_term_poll_usb): New variable.
8843 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
8844 readkey. All users updated.
8845 (grub_terminfo_output_state): Pass term to put.
8846 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
8847 (grub_usb_controller_dev): Add timeout and actual arguments to
8848 transfer. All users updated.
8849 (grub_usb_interface): New field detach_data.
8850 (grub_usb_device): New fields children and nports.
8851 (grub_usb_ep_type_t): New type.
8852 (grub_usb_get_ep_type): New function.
8853 (grub_usb_bulk_read_extended): Likewise.
8854 * include/grub/usbdesc.h (grub_usb_desc): New type.
8855 * include/grub/usbserial.h: New file.
8856 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
8857 * kern/term.c (grub_term_poll_usb): New variable.
8858 (grub_getkey): Call grub_term_poll_usb if set.
8859 (grub_checkkey): Likewise.
8860 (grub_getkeystatus): Likewise.
8861 * term/serial.c: Moved controller-specific parts to ...
8862 * term/ns8250.c: ... here.
8863 * term/serial.c: Mostly rewritten.
8864 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
8867 2010-08-20 Robert Millan <rmh@gnu.org>
8869 Make kFreeBSD code more generic to support ext2fs as root, ufs as
8870 a separate module and maybe other interesting combinations.
8872 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
8873 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
8874 (kfreebsd_entry): Add generic filesystem module load routine.
8875 Map GRUB `ext2' to kFreeBSD `ext2fs'.
8877 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
8879 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
8880 "numcenter" (I misunderstood the purpose of this entry).
8881 * docs/grub.texi (sendkey): Likewise.
8883 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
8885 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
8886 status flag options; simply omitting the option is equivalent and
8887 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
8888 (keysym_table): Rename "num5numlock" to "numlock".
8889 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
8890 can uniformly say that only the last of multiple `sendkey'
8891 invocations has any effect.
8892 * docs/grub.texi (sendkey): New section.
8894 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
8896 * commands/i386/pc/sendkey.c (options): Fix three typos.
8898 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
8900 Implement sendkey support.
8902 * commands/i386/pc/sendkey.c: New file.
8903 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
8904 (sendkey_mod_SOURCES): New variable.
8905 (sendkey_mod_CFLAGS): Likewise.
8906 (sendkey_mod_LDFLAGS): Likewise.
8908 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
8910 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
8911 fix warnings from Autoconf.
8913 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
8915 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
8916 to avoid false positives with some assemblers that output things
8917 like "someprefix_func" as part of their output.
8919 2010-08-15 Robert Millan <rmh@gnu.org>
8921 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
8923 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
8924 grub_get_libzfs_handle() errors.
8926 2010-08-14 Robert Millan <rmh@gnu.org>
8928 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
8929 filesystem is not ZFS.
8931 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
8933 Fix for misspelled color names defaulting to black/black (bug
8934 reported by Doug Nazar)
8936 * include/grub/normal.h (grub_parse_color_name_pair): Add return
8937 status to prototype.
8938 * normal/color.c (grub_parse_color_name_pair): Return failure
8940 (grub_env_write_color_normal): Ignore bad color names.
8941 (grub_env_write_color_highlight): Likewise.
8942 * normal/main.c (GRUB_MOD_INIT): Set default color names.
8944 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
8946 "shift" command support to GRUB script.
8948 * include/grub/script_sh.h (grub_script_shift): New prototype.
8949 * script/execute.c (grub_script_shift): New function.
8950 * script/main.c (grub_script_init): Register shift command.
8951 (grub_script_fini): Unregister shift command.
8952 * util/grub-script-check.c (grub_script_cmd_shift): New function.
8954 * tests/grub_script_shift.in: New testcase.
8955 * conf/tests.rmk: Rules for new testcase.
8957 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
8959 "continue" command support to GRUB script.
8961 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
8962 (grub_script_break): Continue support.
8963 * script/main.c (grub_script_init): Register continue command.
8964 (grub_script_fini): Unregister continue command.
8966 * tests/grub_script_continue.in: New testcase.
8967 * conf/tests.rmk: Rules for new testcase.
8969 2010-08-12 BVK Chaitanya <bvk@dbook>
8971 "break" command support to GRUB script.
8973 * conf/common.rmk: Rule updates to grub-script-check.
8974 * include/grub/misc.h (grub_min): New function.
8975 * include/grub/script_sh.h (grub_script_init): New prototype.
8976 (grub_script_fini): New prototype.
8977 (grub_script_break): New prototype.
8978 * script/main.c (grub_script_init): New function.
8979 (grub_script_fini): New function.
8980 * script/execute.c (grub_script_break): New function.
8981 * normal/main.c: Calls to grub_script_{init,fini}.
8982 * util/grub-script-check.c (grub_script_break): New function.
8984 * tests/grub_script_break.in: New testcase.
8985 * conf/tests.rmk: Rules for new test case.
8987 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
8989 Function parameters support to GRUB script.
8991 * script/yylex.l (VARIABLE): Regular expression update.
8992 * script/function.c (grub_script_function_call): Moved ...
8993 * script/execute.c (grub_script_function_call): ... to here.
8994 (grub_script_execute_arglist_to_argv): Removed.
8995 (grub_script_arglist_to_argv): New function.
8996 * script/argv.c: New file.
8997 (grub_script_argv_free): New function.
8998 (grub_script_argv_next): Likewise.
8999 (grub_script_argv_append): Likewise.
9000 (grub_script_argv_split_append): Likewise.
9001 * include/grub/script_sh.h (grub_script_argv): New struct.
9002 (grub_script_argv_free): New function.
9003 (grub_script_argv_next): Likewise.
9004 (grub_script_argv_append): Likewise.
9005 (grub_script_argv_split_append): Likewise.
9007 * conf/common.rmk (normal.mod): New source script/argv.c.
9009 * tests/grub_script_echo1.in: More tests.
9010 * tests/grub_script_vars1.in: Likewise.
9011 * tests/grub_script_functions.in: New test case.
9012 * conf/tests.rmk: Rules for new testcase.
9014 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
9016 Remove grub_script_cmdblock struct.
9018 * include/grub/script_sh.h: Remove grub_script_cmdblock.
9019 * script/parser.y: Likewise.
9020 * script/execute.c: Rename cmdblock suffix to cmdlist.
9021 * script/script.c: Likewise.
9022 * util/grub-script-check.c: Likewise.
9024 2010-08-11 Yves Blusseau <blusseau@zetam.org>
9026 * .bzrignore: add grub-macho2img
9028 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
9030 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
9032 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
9034 Remove the dump of sm712 initialisation sequence.
9036 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
9037 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
9038 (GRUB_VGA_IO_MISC_WRITE): Likewise.
9039 (GRUB_VGA_CR_*): Added many registers.
9040 (GRUB_VGA_SR_*): Likewise.
9041 (GRUB_VGA_GR_*): Likewise.
9042 (grub_vga_write_arx): New function.
9043 (grub_video_hw_config): New struct.
9044 (grub_vga_set_geometry): New function.
9045 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
9046 GRUB_PCI_CLASS_SUBCLASS_VGA.
9047 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
9048 * video/sm712.c (grub_sm712_write_reg): New function
9049 (grub_sm712_read_reg): Likewise.
9050 (grub_sm712_sr_write): Likewise.
9051 (grub_sm712_gr_write): Likewise.
9052 (grub_sm712_cr_write): Likewise.
9053 (grub_sm712_write_arx): Likewise.
9054 (grub_sm712_cr_shadow_write): Likewise.
9055 (grub_sm712_write_dda_lookup): Likewise.
9056 (grub_video_sm712_setup): Initialise the video rather then
9057 blindly replay the dump.
9058 (main) [TEST]: Add a routine to be able to compile as standalone for
9060 * video/sm712_init.c (sm712_init): Removed.
9061 (sm712_sr_seq1): New array.
9062 (sm712_sr_seq2): Likewise.
9064 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
9066 * include/grub/vga.h: Add missing grub/pci.h include.
9068 2010-08-10 Yves Blusseau <blusseau@zetam.org>
9070 * util/grub-macho2img.c (main): fix typo
9072 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
9074 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
9075 (grub_vga_gr_read): Likewise.
9076 (grub_vga_cr_write): Likewise.
9077 (grub_vga_cr_read): Likewise.
9078 (grub_vga_sr_write): Likewise.
9079 (grub_vga_sr_read): Likewise.
9080 (grub_vga_palette_read): Likewise.
9081 (grub_vga_palette_write): Likewise.
9082 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
9083 (grub_sm712_sr_read): New function.
9084 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
9085 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
9087 2010-08-09 Robert Millan <rmh@gnu.org>
9089 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
9090 out unused variables on non-ZFS build.
9092 2010-08-08 Robert Millan <rmh@gnu.org>
9094 Fix path generation for sub-filesystems in ZFS.
9096 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
9099 2010-08-08 Robert Millan <rmh@gnu.org>
9101 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
9103 2010-08-08 Robert Millan <rmh@gnu.org>
9105 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
9106 exist, issue a proper error message (rely on `ls' for translated
9109 2010-08-08 Robert Millan <rmh@gnu.org>
9111 Fix grub-probe invocation.
9113 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
9115 2010-08-04 Robert Millan <rmh@gnu.org>
9117 * configure.ac: Remove checks for getfsstat() and getmntany().
9118 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
9119 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
9120 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
9121 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
9122 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
9124 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
9125 via find_mount_point_from_dir() and getfsstat() / getmntany().
9127 2010-08-04 Robert Millan <rmh@gnu.org>
9129 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
9130 (grub_find_zpool_from_mount_point): Merge into ...
9131 (grub_find_zpool_from_dir): ... this.
9132 * kern/emu/misc.c: Likewise.
9135 (grub_make_system_path_relative_to_its_root): Replace
9136 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
9137 with grub_find_zpool_from_dir().
9138 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
9140 2010-08-04 Robert Millan <rmh@gnu.org>
9142 Support OpenSolaris in ZFS device resolution.
9144 * configure.ac: Check for getmntany().
9145 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
9146 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
9149 2010-08-03 Robert Millan <rmh@gnu.org>
9153 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
9154 * include/grub/emu/misc.h: ... here.
9156 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
9157 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
9159 * util/misc.c: Remove `<grub/util/libzfs.h>'.
9160 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
9161 (grub_get_libzfs_handle): Move to ...
9162 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
9163 (grub_get_libzfs_handle): ... here.
9165 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
9167 * script/execute.c (grub_script_execute_cmdline): Check for NULL
9168 as command name case.
9170 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
9172 * disk/raid.c (insert_array): Select unique numbers for named arrays
9173 as well, for use as keys in the disk cache.
9175 2010-08-01 Robert Millan <rmh@gnu.org>
9177 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
9178 kFreeBSD device name, except on ZFS where the filesystem label is
9180 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
9181 `/boot/zfs/zpool.cache'.
9182 Set mountfrom kernel variable using ${kfreebsd_device}.
9184 2010-08-01 Robert Millan <rmh@gnu.org>
9186 Make it even harder to use uninitialized `libzfs_handle' (and
9187 make the interface a bit simpler).
9189 * include/grub/util/misc.h (grub_util_init_libzfs)
9190 (libzfs_handle): Remove.
9191 (grub_get_libzfs_handle): New prototype.
9193 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
9195 (grub_util_init_libzfs): Remove.
9196 (grub_get_libzfs_handle): New function.
9198 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
9199 grub_get_libzfs_handle() to obtain a libzfs handle instead of
9200 accessing `libzfs_handle' directly.
9202 2010-08-01 Robert Millan <rmh@gnu.org>
9204 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
9205 (grub_find_zpool_from_mount_point): New function prototypes.
9207 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
9208 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
9210 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
9211 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
9214 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
9215 finding zpool from mount point into ...
9216 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
9218 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
9219 requested path is part of a ZFS pool, use
9220 grub_find_zpool_from_mount_point() to detect its filesystem name,
9221 and generate a path with `/fsname@path' syntax.
9223 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9225 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
9226 (void) rather than () so that this is a proper prototype.
9228 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9230 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
9232 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9234 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
9235 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
9237 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9239 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
9241 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9243 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
9245 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9247 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
9248 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
9249 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
9251 (Shell-like scripting): Add real content.
9252 (Serial terminal): Suggest `terminal_input serial; terminal_output
9253 serial' rather than putting the two commands on separate lines,
9254 since console input will be inoperative after the first command.
9255 (menuentry): Document --class, --users, and --hotkey options.
9256 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
9257 Vladimir Serbinenko).
9259 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9260 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9262 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
9264 2010-08-01 Robert Millan <rmh@gnu.org>
9266 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
9267 (grub_find_zpool_from_mount_point): New function prototypes.
9269 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
9270 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
9272 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
9273 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
9276 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
9277 finding zpool from mount point into ...
9278 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
9280 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
9281 requested path is part of a ZFS pool, use
9282 grub_find_zpool_from_mount_point() to detect its filesystem name,
9283 and generate a path with `/fsname@path' syntax.
9285 2010-08-01 Robert Millan <rmh@gnu.org>
9287 Prevent accidental use of uninitialized libzfs_handle.
9289 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
9290 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
9291 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
9293 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9295 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
9296 util/grub.d/10_linux.in). Fixes Debian bug #591093.
9298 2010-08-01 Robert Millan <rmh@gnu.org>
9300 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
9302 2010-07-31 Robert Millan <rmh@gnu.org>
9304 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
9306 2010-07-31 Robert Millan <rmh@gnu.org>
9308 * kern/emu/misc.c: Add missing license header.
9310 2010-07-31 Robert Millan <rmh@gnu.org>
9312 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
9314 * include/grub/util/libnvpair.h: Include `<config.h>'.
9315 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
9316 declaring libnvpair prototypes ourselves.
9317 * include/grub/util/libzfs.h: Include `<config.h>'.
9318 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
9319 declaring libzfs prototypes ourselves.
9321 (libzfs_handle): Moved to ...
9322 * include/grub/util/misc.h (libzfs_handle): ... here.
9323 Include `<grub/util/libzfs.h>'.
9325 2010-07-30 Robert Millan <rmh@gnu.org>
9327 * include/grub/emu/misc.h: Add missing license header.
9329 2010-07-30 Robert Millan <rmh@gnu.org>
9331 Enable `grub-probe -t device' resolution on ZFS.
9333 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
9334 * include/grub/util/libnvpair.h: New file.
9335 * include/grub/util/libzfs.h: New file.
9337 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
9338 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
9339 `<grub/util/libnvpair.h>'.
9340 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
9342 (find_mount_point_from_dir): New static function.
9343 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
9345 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
9346 find_root_device_from_libzfs() before ressorting to find_root_device().
9348 * include/grub/util/misc.h (grub_util_init_libzfs): New function
9350 * util/misc.c: Include `<grub/util/libzfs.h>'.
9351 (grub_util_init_libzfs): New function.
9352 [HAVE_LIBZFS] (libzfs_handle): New global variable.
9353 [HAVE_LIBZFS] (fini_libzfs): New static function.
9354 (grub_util_init_libzfs): New function.
9355 * util/grub-probe.c (main): Call grub_util_init_libzfs().
9357 2010-07-30 Robert Millan <rmh@gnu.org>
9359 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
9360 (xmalloc, xrealloc, xstrdup, xasprintf): Add
9361 `warn_unused_result' attribute.
9362 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
9363 (grub_xasprintf, grub_xvasprintf): Likewise.
9364 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
9366 2010-07-29 Robert Millan <rmh@gnu.org>
9368 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
9369 (probe): Handle `PRINT_FS_LABEL'.
9370 (main): Handle `-t fs_label'.
9372 2010-07-29 Robert Millan <rmh@gnu.org>
9374 * configure.ac: Remove grub-mkisofs checks.
9376 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9378 * util/ieee1275/grub-install.in: Don't use empty grub_device.
9379 Reported by: Lennart Sorensen.
9381 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9383 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
9384 prior to terminal_input/terminal_output separation. It's been over 1.5
9385 years and those versions weren't widely deployed.
9387 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
9389 * disk/raid.c (insert_array): Don't count named arrays when looking
9390 for unused array numbers.
9391 Reported and tested by: Michael Guntsche.
9393 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9395 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
9396 implementation of this so that grub-emu links again, with a note
9397 that this should support hotplugging in the future.
9399 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9401 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
9403 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9405 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
9407 (grub_loopback_close): Remove empty function.
9408 (grub_loopback_dev): Remove close method.
9410 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9412 Disable EFI cursor when the EFI console becomes inactive.
9414 * term/efi/console.c (grub_efi_console_init): New function.
9415 (grub_efi_console_fini): New function.
9416 (grub_console_term_output): Register init and fini methods.
9418 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9420 * tests/util/grub-shell-tester.in: Remove bashism and declare as
9423 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9425 * disk/loopback.c (grub_loopback): Replace filename with file.
9426 (delete_loopback): Handle new semantics.
9427 (grub_cmd_loopback): Likewise.
9428 (grub_loopback_iterate): Likewise.
9429 (grub_loopback_close): Likewise.
9431 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9433 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
9435 Reported by: Tito Keitel.
9437 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9439 * docs/grub.texi (Naming convention): Document new naming convention.
9441 2010-07-20 Vadim Solomin <vadic052@gmail.com>
9442 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9444 Generate device.map in something closer to the old ordering.
9446 * util/deviceiter.c (struct device): New declaration.
9447 (compare_file_names): Rename to ...
9448 (compare_devices): ... this. Sort by kernel name in preference to
9449 the stable by-id name, but keep the latter as a fallback comparison.
9450 Update header comment.
9451 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
9452 of `struct device' rather than of plain file names.
9454 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
9456 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
9459 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9461 * commands/acpi.c (setup_common_tables): Use sizeof instead of
9463 (setv1table): Likewise.
9465 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9467 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
9468 removing the homehost if present.
9469 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
9470 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
9471 removing the homehost if present.
9472 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
9474 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
9476 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
9477 parameter. Set its pointer target to 0.
9478 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
9479 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
9480 `data_offset' value from the superblock for 1.x metadata.
9481 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
9483 (insert_array): Record the start sector of data on the device.
9484 (grub_raid_register): Pass start_sector parameters to
9485 grub_raid_list->detect and insert_array.
9486 * include/grub/raid.h (struct grub_raid_array): Add start_sector
9488 (struct grub_raid): Add start_sector parameter to `detect'.
9490 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
9491 __attribute__ ((packed)), leaving a comment.
9492 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
9493 (grub_mdraid_detect_09): ... here and ...
9494 (grub_mdraid_detect_1x): ... here.
9496 2010-07-20 Peter Henn <peter.henn@web.de>
9498 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
9499 chunk size and disk size, which are already given as sector counts
9500 as distinct from the 0.90 units. Fetch the correct device number
9501 from the role table instead of using the table index.
9503 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
9505 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
9506 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
9507 (WriteMostly1): New macro.
9508 Set array->name to NULL for metadata format 0.90. Add support for
9509 metadata 1.x. Fix some comments.
9510 * disk/raid.c (): Add support for name based RAID arrays. Fix a
9512 * util/getroot.c (grub_util_get_grub_dev): Add support for
9513 /dev/md/name style devices.
9515 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9517 * .bzrignore: Ignore 20_linux_xen.
9519 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
9521 * util/import_unicode.py: Remove unnecessary imports.
9523 2010-07-17 Aleš Nesrsta <starous@volny.cz>
9525 Hotplugging and USB hub support.
9527 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
9528 (grub_ohci): Likewise.
9529 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
9530 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
9531 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
9532 (GRUB_OHCI_CTRL_EDS): Likewise.
9533 (GRUB_OHCI_BULK_EDS): Likewise.
9534 (GRUB_OHCI_TDS): Likewise.
9535 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
9536 (grub_ohci_ed_phys2virt): New function.
9537 (grub_ohci_virt_to_phys): Likewise.
9538 (grub_ohci_td_phys2virt): Likewise.
9539 (grub_ohci_td_virt2phys): Likewise.
9540 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
9542 (grub_ohci_find_ed): New function.
9543 (grub_ohci_alloc_td): Likewise.
9544 (grub_ohci_free_td): Likewise.
9545 (grub_ohci_free_tds): Likewise.
9546 (grub_ohci_transfer): Use previously allocated memory.
9547 (grub_ohci_portstatus): Reset status changed bit.
9548 (grub_ohci_detect_dev): Supply status changed.
9549 (grub_ohci_fini_hw): Free memory.
9550 (grub_ohci_restore_hw): Reallocate memory.
9551 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
9552 Reset status change.
9553 (grub_uhci_detect_dev): Supply status_change.
9554 * bus/usb/usb.c (attach_hooks): New var.
9555 (grub_usb_device_attach): New function.
9556 (grub_usb_register_attach_hook_class): Likewise.
9557 (grub_usb_unregister_attach_hook_class): Likewise.
9558 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
9559 (grub_usb_add_hub): Reset connection changed bit.
9560 (attach_root_port): New function.
9561 (grub_usb_root_hub): Likewise.
9562 (poll_nonroot_hub): Likewise.
9563 (grub_usb_poll_devices): Likewise.
9564 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
9565 * disk/usbms.c (grub_usbms_open): Use device hooks.
9566 (grub_usbms_iterate) :Poll devices.
9567 (grub_usbms_finddevs): Split into ...
9568 (grub_usbms_attach): ... this ...
9569 (grub_usbms_attach): ... and this.
9570 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
9572 (grub_usb_interface): New fields attached and detach_hook.
9573 (grub_usb_attach_hook_class): New type.
9574 (grub_usb_attach_desc): New struct.
9575 (grub_usb_register_attach_hook_class): New function.
9576 (grub_usb_unregister_attach_hook_class): Likewise.
9577 (grub_usb_poll_devices): Likewise.
9578 (grub_usb_device_attach): Likewise.
9579 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
9580 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
9582 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
9584 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
9585 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
9586 delta determination style. Works with most NetBSD partitions too.
9588 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
9590 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
9591 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
9593 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
9595 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
9597 2010-07-14 Anton Blanchard <anton@samba.org>
9599 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
9602 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
9604 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
9606 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
9608 * kern/partition.c (grub_partition_check_containment): New function to
9609 check that a partition is physically contained in a parent. Since
9610 offsets are relative (and non-negative), this reduces to checking that
9611 the partition ends before its parent.
9612 (grub_partition_map_probe): Discard out-of-range sub-partitions.
9613 (grub_partition_iterate): Likewise.
9614 * include/grub/partition.h (grub_partition_map): Slightly more detailed
9616 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
9617 partitions that start before their parent, and add debug printfs.
9619 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
9621 * Makefile.in (.SUFFIX): Spell correctly, as ...
9622 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
9623 bare module name without `.mod', e.g. `test') tried to invoke a
9626 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
9628 * README: Point to the Info manual.
9630 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
9632 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
9633 2nd superblock position from partition size.
9635 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
9637 * Makefile.in (MAINTAINER_CLEANFILES): Remove
9638 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
9639 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
9642 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9644 Restructure SCSI .id handling.
9645 Reported and tested by: Aleš Nesrsta.
9647 * disk/ata.c (grub_atapi_close): Removed. All users updated.
9648 (grub_atapi_dev): Changed .name to "ata". New field .id.
9649 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
9650 (grub_usbms_dev): New field .id.
9651 * disk/scsi.c (grub_scsi_iterate): Generate name.
9652 (grub_scsi_open): Parse name.
9653 * include/grub/scsi.h (grub_make_scsi_id): New function.
9654 (grub_scsi_dev): Change iterate and open to number instead of naming
9655 busses. All users updated.
9656 (grub_scsi): Remove name. Add .bus.
9658 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9660 * commands/help.c (grub_cmd_help): Fix a typo.
9662 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9664 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
9665 Reported and tested by: Colin Watson.
9667 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9669 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
9672 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
9674 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
9676 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
9678 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
9681 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
9683 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
9684 and disk/raid6_recover.c.
9685 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
9686 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
9688 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
9690 * term/gfxterm.c (repaint_schedulded): Rename to ...
9691 (repaint_scheduled): ... this. Update all callers.
9692 (repaint_was_schedulded): Rename to ...
9693 (repaint_was_scheduled): ... this. Update all callers.
9695 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
9697 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
9698 which we expect to be handled by upper layers.
9700 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
9702 * bus/usb/usbhub.c: #include time.h header.
9704 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
9706 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
9707 entry_name also for entries without stat blocks (e.g. ".."); fixes
9708 corruption of the first entry in a directory.
9710 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
9712 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
9713 after setting gfxterm as the active terminal. GRUB_BACKGROUND
9714 doesn't work otherwise.
9716 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
9718 * docs/grub.texi (Features): Update list of supported file systems.
9719 (GNU/Linux): Update for GRUB 2.
9720 (Serial terminal): Remove mention of --disable-serial, which was a
9721 GRUB Legacy configure option. Update instructions to use
9722 `terminal_input' and `terminal_output' rather than `terminal'.
9723 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
9724 configuration' and `Installing GRUB using grub-install'.
9725 (Menu entry editor): Update for GRUB 2.
9726 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
9727 Document new -a, -u, and -v options.
9728 (initrd): New section.
9729 (initrd16): New section.
9730 (linux): New section.
9731 (linux16): New section.
9732 (search): The `var' argument to `--set' is optional.
9733 (GRUB only offers a rescue shell): Go into a little more detail on
9736 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
9738 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
9740 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
9742 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
9743 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
9745 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
9747 * util/i386/pc/grub-setup.c (setup): Rename prefix to
9748 install_prefix, in line with install_dos_part and install_bsd_part.
9749 Add new prefix variable, which is copied to install_prefix after
9750 comparing core.img in memory with the one read from disk in the
9751 no-embedding case, and use that rather than overwriting
9752 install_prefix immediately when installing to a partition.
9753 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
9756 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
9758 * configure.ac: Avoid == in test command, it's not portable.
9759 * util/grub.d/30_os-prober.in: Likewise.
9761 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
9763 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
9765 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
9767 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
9768 multiple (top-level) partmaps.
9770 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
9772 * util/i386/efi/grub-install.in: Don't use empty grub_device.
9773 Reported by: Tino Keitel.
9775 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
9777 Bidi and diacritics support.
9779 * Makefile.in (widthspec.bin): New target.
9780 (widthspec.h): Likewise.
9781 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
9782 * autogen.sh: Generate unidata.c.
9783 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
9784 * commands/ls.c (grub_ls_list_devices): Likewise.
9785 (grub_ls_list_files): Likewise.
9786 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
9787 (grub_mini_cmd_lsmod): Likewise.
9788 * commands/read.c: Likewise.
9789 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
9790 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
9791 * lib/arg.c (grub_arg_show_help): Likewise.
9792 * lib/crypto.c (grub_password_get): Likewise.
9793 * normal/auth.c (grub_username_get): Likewise.
9794 * normal/misc.c (grub_normal_print_device_info): Likewise.
9795 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
9796 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
9797 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
9798 (normal/charset.c_DEPENDENCIES): New variable.
9799 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
9800 (pkglib_MODULES): Remove charset.mod.
9801 (charset_mod_SOURCES): Removed.
9802 (charset_mod_CFLAGS): Likewise.
9803 (charset_mod_LDFLAGS): Likewise.
9804 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
9805 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
9807 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
9808 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
9809 (kernel_img_HEADERS): Add terminfo.h.
9810 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
9811 Fill ->font. Reverse ascii bitmaps.
9812 (grub_font_get_xheight): New function.
9813 * font/font.c (grub_font_get_string_width): Moved from here ...
9814 * gfxmenu/font.c (grub_font_get_string_width): ... here.
9815 * font/font.c (grub_font_draw_string): Moved from here ...
9816 * gfxmenu/font.c (grub_font_draw_string): ... here.
9817 * font/font.c (grub_font_dup_glyph): New function.
9818 (grub_font_blit_glyph): Likewise.
9819 (grub_font_blit_glyph_mirror): Likewise.
9820 (blit_comb): Likewise.
9821 (grub_font_construct_dry_run): Likewise.
9822 (grub_font_get_constructed_device_width): Likewise.
9823 (grub_font_construct_glyph): Likewise.
9824 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
9825 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
9826 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
9827 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
9828 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
9829 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
9830 (grub_font_get_xheight): New proto.
9831 (grub_font_get_constructed_device_width): Likewise.
9832 (grub_font_construct_glyph): Likewise.
9833 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
9834 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
9835 * include/grub/font.h (grub_font_draw_string): Moved from here ...
9836 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
9837 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
9838 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
9839 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
9840 (grub_console_getcharwidth): Likewise.
9841 * include/grub/misc.h (grub_xputs): New proto.
9842 (grub_puts): Inlined.
9843 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
9844 (grub_normal_get_line_counter): Removed.
9845 (grub_install_newline_hook): Likewise.
9846 (grub_normal_get_char_counter): New proto.
9847 (grub_normal_reset_more): Likewise.
9848 (grub_xputs_normal): Likewise.
9849 * include/grub/powerpc/ieee1275/console.h: Removed.
9850 * include/grub/sparc64/ieee1275/console.h: Likewise.
9851 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
9852 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
9853 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
9854 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
9855 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
9856 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
9857 (grub_term_input): Pass reference to self. All users updated.
9858 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
9859 Pass reference to self. New fields normal_color, highlight_color and
9860 data. All users updated.
9861 (grub_putchar): Removed.
9862 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
9863 (grub_unicode_estimate_width): New function.
9864 (grub_term_getcharwidth): Add defaults.
9865 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
9866 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
9867 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
9868 (grub_cls): Remove EXPORT_FUNC.
9869 (grub_setcolorstate): Inline.
9870 (grub_newline_hook): Removed.
9871 * include/grub/terminfo.h: Rewritten. All users updated.
9872 * include/grub/unicode.h: New file.
9873 * include/grub/video.h (grub_video_signed_rect): New type.
9874 * kern/emu/console.c (grub_console_highlight_color): Removed.
9875 (grub_console_normal_color): Likewise.
9876 (grub_console_standard_color): Made static.
9877 (grub_ncurses_putchar): Remove mapping.
9878 (grub_ncurses_getcharwidth): Removed.
9879 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
9880 (grub_ncurses_setcolor): Removed.
9881 (grub_ncurses_getcolor): Likewise.
9882 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
9883 (grub_console_putchar): ... this.
9884 (grub_console_putchar): Handle argument difference.
9885 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
9886 console_init_early and console_init_lately.
9887 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
9888 * kern/misc.c (grub_puts): Removed.
9889 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
9890 (grub_vsnprintf_real): Remove str = NULL support.
9891 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
9892 * normal/charset.c (grub_utf8_to_ucs4): ... here.
9893 * kern/term.c (grub_putcode): Renamed to ...
9894 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
9895 (grub_putchar): Removed.
9896 (grub_xputs_dumb): New function.
9897 (grub_xputs): New variable.
9898 * lib/charset.c: Move from here ...
9899 * normal/charset.c: ... to here.
9900 (grub_ucs4_to_utf8): New function.
9901 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
9902 (join_types): New variable.
9903 (unpack_join): New function.
9904 (bidi_types): New variable.
9905 (unpack_bidi): New function.
9906 (get_bidi_type): Likewise.
9907 (get_join_type): Likewise.
9908 (is_mirrored): Likewise.
9909 (grub_unicode_get_comb_type): Likewise.
9910 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
9911 (is_type_after): Likewise.
9912 (grub_unicode_aglomerate_comb): Likewise.
9913 (bidi_line_wrap): Likewise.
9914 (grub_bidi_line_logical_to_visual): Likewise.
9915 (grub_bidi_logical_to_visual): Likewise.
9916 (grub_unicode_mirror_code): Likewise.
9917 (grub_unicode_shape_code): Likewise.
9918 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
9919 Don't use grub_putchar.
9920 * normal/main.c (grub_normal_init_page): Use grub_putcode.
9921 (grub_normal_reader_init): Likewise.
9922 (grub_xputs_saved): New variable.
9923 (GRUB_MOD_INIT): Set grub_xputs.
9924 (GRUB_MOD_FINI): Restore grub_xputs.
9925 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
9926 (menu_init): Avoid printing gfxmenu error.
9927 (show_menu): Use grub_normal_get_char_counter.
9928 * normal/menu_entry.c (update_screen): Fix out-of-array.
9929 (complete): Avoid NULL dereferencing.
9930 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
9931 * normal/menu_text.c (print_spaces): Removed.
9932 (grub_print_ucs4): Likewise.
9933 (grub_print_message_indented): Use grub_print_ucs4.
9934 (print_message): Use grub_putcode.
9935 (print_entry): Hanlde diacritics.
9936 * normal/term.c (term_state): New type.
9937 (grub_more_lines): Removed.
9938 (term_states): New variable.
9939 (grub_normal_line_counter): Renamed to ..
9940 (grub_normal_char_counter): ...this. All users updated.
9941 (grub_normal_get_line_counter): Renamed to ...
9942 (grub_normal_get_char_counter): ... this.
9943 (grub_normal_reset_more): New function.
9944 (process_newline): Removed.
9945 (print_more): New function.
9946 (grub_install_newline_hook): Removed.
9947 (map_code): New function.
9948 (grub_puts_terminal): Use grub_print_ucs4.
9949 (putglyph): New function.
9950 (putcode_real): Likewise.
9951 (grub_putcode): Use putcode_real.
9952 (get_maxwidth): New function.
9953 (get_startwidth): Likewise.
9954 (print_ucs4_terminal): Likewise.
9955 (find_term_state): Likewise.
9956 (put_glyphs_terminal): Likewise.
9957 (print_backlog): Likewise.
9958 (print_ucs4_real): Likewise.
9959 (grub_print_ucs4): Likewise.
9960 (grub_xputs_normal): Likewise.
9961 * term/efi/console.c (grub_console_putchar): Output diacritics.
9962 (grub_console_getcharwidth): Removed.
9963 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
9964 * term/gfxterm.c (clear_char): Free chars.
9965 (scroll_up): Avoid leaking memory.
9966 (grub_gfxterm_putchar): Support diacritics.
9967 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
9968 * term/i386/pc/console.c (grub_console_term_output): Declare as
9969 GRUB_TERM_CODE_TYPE_VGA.
9970 * term/i386/pc/vga.c (grub_vga_term): Declare as
9971 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
9972 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
9973 GRUB_TERM_CODE_TYPE_VGA.
9974 * term/i386/vga_common.c (map_char): Removed.
9975 (grub_console_putchar): Likewise.
9976 (grub_console_getcharwidth): Likewise.
9977 * term/ieee1275/ofconsole.c: Simplify using terminfo.
9978 (colors): Reordered to match terminfo.
9979 (grub_ofconsole_normal_color): Removed.
9980 (grub_ofconsole_writeesc): Likewise.
9981 (grub_ofconsole_highlight_color): Likewise.
9982 (grub_ofconsole_getcharwidth): Likewise.
9983 (grub_ofconsole_setcolorstate): Likewise.
9984 (grub_ofconsole_setcolor): Likewise.
9985 (grub_ofconsole_getcolor): Likewise.
9986 (grub_ofconsole_readkey): Renamed to ...
9987 (readkey): ... this. Remove escape sequence handling. Return -1 on no
9989 (grub_ofconsole_checkkey): Removed.
9990 (grub_ofconsole_getkey): Likewise.
9991 (grub_ofconsole_getxy): Likewise.
9992 (grub_ofconsole_gotoxy): Likewise.
9993 (grub_ofconsole_cls): Likewise.
9994 (grub_ofconsole_refresh): Likewise.
9995 (grub_ofconsole_terminfo_input): New struct.
9996 (grub_ofconsole_terminfo_output): Likewise.
9997 (grub_ofconsole_term_input): Use terminfo.
9998 (grub_ofconsole_term_output): Likewise.
9999 (grub_console_init): Split into ...
10000 (grub_console_init_early): ...this and ...
10001 (grub_console_init_lately): ...this. Use terminfo.
10002 (grub_ofconsole_putchar): Renamed to ...
10003 (put): ... this. Remove mapping.
10004 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
10005 * term/serial.c: Simplify using terminfo.
10008 (keep_track): Likewise.
10009 (registered): Likewise.
10010 (input_buf): Likewise.
10011 (npending): Likewise.
10012 (serial_translate_key_sequence): Likewise.
10013 (fill_input_buf): Likewise.
10014 (grub_serial_checkkey): Likewise.
10015 (grub_serial_getkey): Likewise.
10016 (grub_serial_getxy): Likewise.
10017 (grub_serial_gotoxy): Likewise.
10018 (grub_serial_putchar): Likewise.
10019 (grub_serial_cls): Likewise.
10020 (grub_serial_setcolorstate): Likewise.
10021 (grub_serial_setcursor): Likewise.
10022 (serial_hw_init): Use serial_hw_fetch.
10023 (grub_serial_terminfo_input): New variable.
10024 (grub_serial_terminfo_output): Likewise.
10025 (grub_serial_term_input): Use terminfo.
10026 (grub_serial_term_output): Likewise.
10027 * term/terminfo.c (putstr): Use put.
10028 (grub_terminfo_all_free): New function
10029 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
10030 (grub_terminfo_output_register): New function.
10031 (grub_terminfo_output_unregister): Likewise.
10032 (grub_terminfo_getxy): Likewise.
10033 (grub_terminfo_readkey): Likewise.
10034 (grub_terminfo_checkkey): Likewise.
10035 (grub_terminfo_getkey): Likewise.
10036 (grub_terminfo_input_init): Likewise.
10037 (print_terminfo): Likewise.
10038 (grub_cmd_terminfo): Handle encoding.
10039 (grub_terminfo_gotoxy): Track position.
10040 (grub_terminfo_cls): Likewise.
10041 (grub_terminfo_putchar): Likewise.
10042 (grub_terminfo_setcolorstate): Handle colors
10043 (grub_terminfo_cursor_on): This ...
10044 (grub_terminfo_cursor_off): ... and this merged into ...
10045 (grub_terminfo_setcursor): ... this.
10046 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
10047 * unicode/ArabicShaping.txt: New file (imported from Unicode).
10048 * unicode/BidiMirroring.txt: Likewise.
10049 * unicode/UnicodeData.txt: Likewise.
10050 * unicode/COPYING: Likewise.
10051 * util/grub-editenv.c (grub_putchar): Removed.
10052 (grub_xputs_real): New function.
10053 (grub_xputs): New variable.
10054 * util/grub-fstest.c (grub_putchar): Removed.
10055 (grub_xputs_real): New function.
10056 (grub_xputs): New variable.
10057 * util/grub-mkdevicemap.c (grub_putchar): Removed.
10058 (grub_xputs_real): New function.
10059 (grub_xputs): New variable.
10060 * util/grub-probe.c (grub_putchar): Removed.
10061 (grub_xputs_real): New function.
10062 (grub_xputs): New variable.
10063 * util/grub-script-check.c (grub_putchar): Removed.
10064 (grub_xputs_real): New function.
10065 (grub_xputs): New variable.
10066 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
10067 (grub_xputs_real): New function.
10068 (grub_xputs): New variable.
10069 * util/import_unicode.py: New file.
10070 * util/grub-mkfont.c (ft_errmsgs): New array.
10071 (grub_glyph_info): Make bitmap a pointer.
10072 (file_formats): New type WIDTH_SPEC.
10073 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
10074 (options): Add width-spec.
10076 (add_char): Renamed to ...
10077 (add_glyph): ... this.
10078 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
10079 (glyph_replace): New type.
10080 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
10081 (add_char): New function.
10082 (add_subst): Likewise.
10083 (process_cursive): Likewise.
10084 (add_font): Handle GSUB.
10085 (write_font_width_spec): New function.
10086 (main): Sort glyphs.
10087 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
10088 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
10089 * kern/term.c (grub_cls): Moved from here...
10090 * normal/term.c (grub_cls): ... here.
10092 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10094 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
10095 suitable for using within the format argument of printf when
10096 converting grub_size_t.
10097 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
10098 "x" to convert grub_size_t arguments.
10100 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10102 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
10104 (list_get_minimal_size): Take selection box into account.
10106 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10108 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
10111 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10113 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
10114 devices when iterating over /dev/disk/by-id; they will be handled
10115 later if appropriate, which they aren't always (e.g. LVM).
10117 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10119 * include/grub/misc.h (grub_reboot): Declare as noreturn.
10120 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
10122 (grub_halt): Likewise.
10123 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
10125 (grub_halt): Don't return, even if all of shut-down, power-off, and
10128 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10130 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
10131 arguments, not three.
10133 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10135 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
10136 * util/grub.d/10_linux.in: Use it to check for LVM, so that
10137 LVM-on-RAID is handled correctly.
10139 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10141 * docs/grub.texi (Changes from GRUB Legacy): New section.
10142 (Future): Fix typo.
10144 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10146 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
10147 grub.d/README accidentally ends up executable for one reason or
10148 another. Ignore it.
10150 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10152 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
10153 (gpt_partition_map_iterate): Support non-512B sectors.
10155 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10157 * kern/efi/init.c (grub_efi_init): Disable watchdog.
10158 Tested by: Seth Goldberg.
10160 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10162 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
10163 Properly align mbi.
10164 Reported by: Seth Goldberg.
10166 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
10168 * util/grub-mkrescue.in: Avoid module duplication.
10170 2010-07-01 Sean Finney <seanius@seanius.net>
10172 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
10174 2010-07-01 Sean Finney <seanius@seanius.net>
10176 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
10178 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
10180 * disk/lvm.c (grub_lvm_checkvalue): New function.
10181 (grub_lvm_check_flag): Likewise.
10183 2010-07-01 Robert Millan <rmh@gnu.org>
10185 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
10186 Support 'p' as partition separator on kernel of FreeBSD (used
10188 (grub_util_biosdisk_get_grub_dev): Likewise.
10190 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
10192 Yeeloong firmware port.
10194 * boot/mips/yeeloong/fwstart.S: New file.
10195 * bus/cs5536.c (gpiodump): New const.
10196 (set_io_space): New function.
10197 (set_iod): Likewise.
10198 (set_p2d): Likewise.
10199 (grub_cs5536_init_geode): Likewise.
10200 * commands/mips/yeeloong/lsspd.c: New file.
10201 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
10202 (serial_mod_SOURCES): New variable.
10203 (serial_mod_CFLAGS): Likewise.
10204 (serial_mod_LDFLAGS): Likewise.
10205 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
10206 term/terminfo.c and term/tparm.c.
10207 (pkglib_IMAGES): Add fwstart.img.
10208 (fwstart_img_SOURCES): New variable.
10209 (fwstart_img_CFLAGS): Likewise.
10210 (fwstart_img_ASFLAGS): Likewise.
10211 (fwstart_img_LDFLAGS): Likewise.
10212 (fwstart_img_FORMAT): Likewise.
10213 (pkglib_MODULES): Add lsspd.mod.
10214 (lsspd_mod_SOURCES): New variable.
10215 (lsspd_mod_CFLAGS): Likewise.
10216 (lsspd_mod_LDFLAGS): Likewise.
10217 (pkglib_MODULES): Add halt.mod.
10218 (halt_mod_SOURCES): New variable.
10219 (halt_mod_CFLAGS): Likewise.
10220 (halt_mod_LDFLAGS): Likewise.
10221 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
10222 (serial_mod_SOURCES): Removed.
10223 (serial_mod_CFLAGS): Likewise.
10224 (serial_mod_LDFLAGS): Likewise.
10225 * disk/ata.c (check_device): New function.
10226 (grub_ata_device_initialize): Use check_device.
10227 (grub_ata_iterate): Recheck devices.
10228 (grub_ata_open): Likewise.
10229 (grub_atapi_iterate): Likewise.
10230 (grub_atapi_open): Likewise.
10231 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
10232 (GRUB_ATA_CH1_PORT1): Likewise.
10233 (GRUB_ATA_CH0_PORT2): Likewise.
10234 (GRUB_ATA_CH1_PORT2): Likewise.
10235 * include/grub/mips/loongson.h: New file.
10236 * include/grub/mips/yeeloong/ec.h: Likewise.
10237 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
10238 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
10239 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
10240 * include/grub/misc.h (grub_halt): Declare as noreturn.
10241 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
10242 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
10243 (UART_ENABLE_FIFO_TRIGGER1): New definition.
10244 (UART_ENABLE_DTRRTS): Likewise.
10245 (UART_ENABLE_MODEM): Removed.
10246 (UART_ENABLE_OUT2): New const.
10247 * include/grub/term.h (grub_term_register_input_active): New function.
10248 (grub_term_register_output_active): Likewise.
10249 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
10251 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
10252 (init_pci): New function.
10253 (grub_machine_init): Execute platform init when firmware. Init serial.
10254 (grub_halt): Implement.
10255 (grub_exit): Likewise.
10256 (grub_reboot): Likewise.
10257 * term/serial.c (serial_hw_init): Update macros.
10258 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
10259 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
10260 (image_targets): New target mipsel-yeeloong-flash.
10261 (generate_image): Support IMAGE_YEELOONG_FLASH.
10262 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
10263 (grub_video_sm712_setup): Init card.
10264 (grub_video_sm712_set_palette): Removed.
10265 * video/sm712_init.c: New file.
10267 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
10269 * Makefile.in (install-local): Temporarily prepend $(builddir) to
10270 PATH when running help2man and then run it on the unadorned
10271 executable names, rather than passing $(builddir)/* paths to
10272 help2man. This avoids the build directory ending up in generated
10275 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
10277 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
10278 to avoid accidents when debugging with 'sh -x'.
10279 * util/grub-mkrescue.in: Likewise.
10280 * util/grub.d/00_header.in: Likewise.
10281 * util/grub.d/10_hurd.in: Likewise.
10282 * util/grub.d/10_kfreebsd.in: Likewise.
10283 * util/grub.d/10_linux.in: Likewise.
10284 * util/grub.d/10_netbsd.in: Likewise.
10285 * util/grub.d/10_windows.in: Likewise.
10286 * util/grub.d/20_linux_xen.in: Likewise.
10287 * util/grub.d/30_os-prober.in: Likewise.
10288 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10290 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
10292 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
10293 last character in the buffer.
10294 Reported by: Vladimir Serbinenko.
10296 2010-06-29 Robert Millan <rmh@gnu.org>
10298 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
10299 (Command-line and menu entry commands): Document `badram' command.
10301 2010-06-28 Robert Millan <rmh@gnu.org>
10303 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
10304 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
10305 command using ${GRUB_BADRAM} as parameter.
10307 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10309 * docs/grub.texi (Device map): New section.
10310 (Themes): New section (stub).
10311 * Makefile.in (docs/grub.info): The info documentation now builds
10312 without errors. Make sure it stays that way.
10314 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
10316 Use normal parser for menu entries.
10317 Reported by: Thomas Frauendorfer
10319 * include/grub/parser.h (grub_parser_execute): Don't export.
10320 * normal/menu.c (grub_menu_execute_entry_real): New function.
10321 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
10323 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10325 * docs/grub.texi (Embedded configuration): New section (replacing
10326 old "Preset Menu" stub).
10327 (Images): New section.
10328 (configfile): Note that any menu entries defined in `file' are shown
10331 2010-06-28 Josh Triplett <josh@joshtriplett.org>
10333 * mmap/i386/pc/mmap_helper.S: Set CF on return.
10335 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10337 * util/grub-install.in: Add --debug-image= option.
10339 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10341 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
10344 * util/deviceiter.c (check_device): Rename to ...
10345 (check_device_readable_unique): ... this. Update all callers.
10346 Maintain and check a list of which devices (by canonicalized name)
10347 have already been seen.
10348 (clear_seen_devices): New function.
10349 (compare_file_names) [__linux__]: New function.
10350 (grub_util_iterate_devices): Clear the list of seen devices on exit
10351 and (just in case) on entry.
10352 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
10353 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
10354 seen-devices list, superseded by general code in check_device.
10356 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10358 * commands/cat.c (options): New variable.
10359 (grub_cmd_cat): Parse options. If the --dos option is given, print
10360 DOS-style "\r\n" line endings as simple newlines (Debian bug
10362 (GRUB_MOD_INIT): Use extcmd.
10363 (GRUB_MOD_FINI): Likewise.
10364 * docs/grub.texi (cat): Document --dos.
10366 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
10368 XEN with Linux grub-mkconfig support.
10370 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
10371 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
10372 GRUB_CMDLINE_XEN_DEFAULT.
10373 * util/grub.d/20_linux_xen.in: New file.
10375 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
10377 Initialise VGA video on qemu ourselves.
10379 * boot/i386/qemu/boot.S: Don't call 0xc000.
10380 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
10381 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
10382 (kernel_img_HEADERS): Add pci.h.
10383 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
10384 * configure.ac: Force unifont on qemu and yeeloong.
10385 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
10386 (grub_vga_palette_write): Use correct register.
10387 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
10388 Call grub_qemu_init_cirrus.
10389 * kern/i386/qemu/init.c: New file.
10390 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
10392 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
10394 2010-06-26 Pavel Roskin <proski@gnu.org>
10396 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
10399 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
10401 * docs/grub.texi (Simple configuration): Explain that
10402 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
10403 set to `true' to disable their respective recovery entries, not
10406 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
10408 Make the `source' command slightly faster.
10410 * normal/main.c (grub_normal_execute): Don't re-read list files when
10413 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
10415 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
10416 field position and mask size to red fields from mode_info, not
10418 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
10419 Remove redundant tag->common.framebuffer_type assignment.
10420 Reported by: Seth Goldberg.
10422 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
10424 Sync up other versions of the Linux loader with Robert Millan's
10425 change of 2010-01-09, "Make loader output a bit more user-friendly".
10427 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
10429 (grub_cmd_linux): Likewise.
10430 (grub_cmd_initrd): Likewise.
10431 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
10432 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10434 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
10436 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
10437 larger than MEMORY_MAP_SIZE.
10439 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
10441 Fix parallel build.
10443 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
10445 * script/parser.y: #include grub_script.tab.h header.
10447 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10449 Support >3GiB and <16MiB RAM in i386-qemu.
10451 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
10452 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
10453 (grub_lower_mem): Removed.
10454 (grub_upper_mem): Likewise.
10455 (mem_size): Made static.
10456 (above_4g): New variable.
10457 (grub_machine_mmap_init): Detect small mem_size and above_4g.
10458 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
10461 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10463 Cirrus 5446 and Bochs video cards support.
10465 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
10467 (video_cirrus_mod_SOURCES): New variable.
10468 (video_cirrus_mod_CFLAGS): Likewise.
10469 (video_cirrus_mod_LDFLAGS): Likewise.
10470 (video_bochs_mod_SOURCES): Likewise.
10471 (video_bochs_mod_CFLAGS): Likewise.
10472 (video_bochs_mod_LDFLAGS): Likewise.
10473 * include/grub/vga.h: New file.
10474 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
10475 (grub_video_fb_set_page_t): New type.
10476 (grub_video_fb_setup): New prototype.
10477 (grub_video_fb_swap_buffers): Likewise.
10478 (grub_video_fb_get_info_and_fini): Likewise.
10479 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
10480 (CRTC_DATA_PORT): Likewise.
10481 (CRTC_CURSOR): Likewise.
10482 (CRTC_CURSOR_ADDR_HIGH): Likewise.
10483 (CRTC_CURSOR_ADDR_LOW): Likewise.
10484 (CRTC_CURSOR_DISABLE): Likewise.
10485 (update_cursor): Use grub_vga_cr_write.
10486 (grub_vga_text_setcursor): Likewise.
10487 * video/bochs.c: New file.
10488 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
10489 (palette): Likewise.
10490 (palette_size): Likewise.
10491 (framebuffer): New variable.
10492 (grub_video_fb_init): Use 'framebuffer'.
10493 (grub_video_fb_fini): Likewise.
10494 (grub_video_fb_get_info): Likewise.
10495 (grub_video_fb_get_palette): Likewise.
10496 (grub_video_fb_set_palette): Likewise.
10497 (grub_video_fb_set_viewport): Likewise.
10498 (grub_video_fb_get_viewport): Likewise.
10499 (grub_video_fb_map_color): Likewise.
10500 (grub_video_fb_map_rgb): Likewise.
10501 (grub_video_fb_map_rgba): Likewise.
10502 (grub_video_fb_unmap_color): Likewise.
10503 (grub_video_fb_unmap_color_int): Likewise.
10504 (grub_video_fb_fill_rect): Likewise.
10505 (grub_video_fb_blit_bitmap): Likewise.
10506 (grub_video_fb_blit_render_target): Likewise.
10507 (grub_video_fb_scroll): Likewise.
10508 (grub_video_fb_create_render_target): Likewise.
10509 (grub_video_fb_doublebuf_blit_init): Likewise.
10510 (grub_video_fb_set_active_render_target): Handle doublebuffering.
10511 (doublebuf_pageflipping_update_screen): New function.
10512 (doublebuf_pageflipping_init): Likewise.
10513 (grub_video_fb_setup): Likewise.
10514 (grub_video_fb_swap_buffers): Likewise.
10515 (grub_video_fb_get_info_and_fini): Likewise.
10516 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
10518 (doublebuf_pageflipping_commit): Restructured into ...
10519 (doublebuf_pageflipping_set_page): ... this.
10520 (doublebuf_pageflipping_update_screen): Removed.
10521 (doublebuf_pageflipping_init): Likewise.
10522 (double_buffering_init): Likewise.
10523 (grub_video_vbe_setup): Use grub_video_fb_setup.
10524 (grub_video_vbe_swap_buffers): Removed.
10525 (grub_video_vbe_set_active_render_target): Likewise.
10526 (grub_video_vbe_get_active_render_target): Likewise.
10527 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
10528 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
10529 grub_video_fb_set_active_render_target and
10530 grub_video_fb_get_active_render_target.
10531 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
10532 (SEQUENCER_DATA_PORT): Likewise.
10533 (MAP_MASK_REGISTER): Likewise.
10534 (CRTC_ADDR_PORT): Likewise.
10535 (CRTC_DATA_PORT): Likewise.
10536 (START_ADDR_HIGH_REGISTER): Likewise.
10537 (START_ADDR_LOW_REGISTER): Likewise.
10538 (GRAPHICS_ADDR_PORT): Likewise.
10539 (GRAPHICS_DATA_PORT): Likewise.
10540 (READ_MAP_REGISTER): Likewise.
10541 (INPUT_STATUS1_REGISTER): Likewise.
10542 (INPUT_STATUS1_VERTR_BIT): Likewise.
10543 (get_map_mask): Use grub_vga_sr_read.
10544 (set_map_mask): Use grub_vga_sr_write.
10545 (set_read_map): Use grub_vga_gr_write.
10546 (set_start_address): Use grub_vga_cr_write.
10547 * video/sm712.c (framebuffer): Remove leftover fields.
10549 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
10551 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
10552 setting GRUB_VIDEO_BACKEND. Make it available as a user override
10553 instead. Replace the gfxterm backend check with a check that
10554 ${GRUB_PREFIX}/video.lst is non-empty.
10555 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
10557 (load_video): New generated function. Call it before loading
10558 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
10559 * util/grub.d/10_linux.in (linux_entry): Call load_video.
10560 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
10561 * docs/grub.texi (Simple configuration): Document
10562 GRUB_VIDEO_BACKEND.
10564 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10566 Use video functions in linux and xnu loaders.
10568 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
10569 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
10570 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
10571 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
10572 loader/i386/pc/linux.c.
10573 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
10574 (find_line_len): Removed.
10575 (find_framebuf): Likewise.
10576 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
10577 * loader/i386/efi/xnu.c: Removed.
10578 * loader/i386/pc/xnu.c: Moved from here...
10579 * loader/i386/xnu.c: ...here.
10581 Enable priorities in video drivers.
10583 * include/grub/video.h (grub_video_adapter_prio_t): New type.
10584 (grub_video_adapter): New field prio.
10585 (grub_video_register): Respect prio when inserting.
10586 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
10587 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
10588 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
10589 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
10590 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
10591 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
10592 * video/sm712.c (grub_video_sm712_adapter): Likewise.
10596 * include/grub/video.h (grub_video_driver_id_t): New value
10597 GRUB_VIDEO_DRIVER_SDL.
10598 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
10600 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
10602 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
10603 argument to printf.
10604 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
10606 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
10608 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
10609 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
10611 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
10613 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
10614 directly, and recommend grub-install instead.
10615 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
10617 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
10619 Fix i386-pc prefix handling with nested partitions (Debian bug
10620 #585068). Note that the case where the core image is booted using
10621 multiboot and relocated from its original location still requires
10624 * kern/i386/pc/init.c (make_install_device): If the prefix starts
10625 with "(,", fill the boot drive in between those two characters, but
10626 expect that a full partition specification including partition map
10628 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
10629 specified, write a prefix without the drive name but including a
10630 full partition specification.
10632 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
10634 * util/grub-mkconfig.in: Ignore non-option arguments, for
10635 compatibility with older versions (before 2010-06-12) which did the
10636 same. In particular, this makes it easier to ship an update-grub
10637 wrapper which is compatible with that used with GRUB Legacy (Debian
10640 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
10642 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
10643 for manual page generation.
10645 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
10647 * po/POTFILES: Remove leftover commands/handler.c.
10649 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
10651 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
10652 left this script non-functional.
10654 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
10656 * docs/man/grub-emu.h2m: New file.
10658 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
10660 * docs/grub.texi (Commands): Document reduced command set in rescue
10662 (cpuid): New section.
10664 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
10666 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
10667 new partition naming style.
10668 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
10670 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
10672 Add "-o grub.iso" like cmdline options support.
10674 * util/grub-install.in: Improve cmdline option parsing.
10675 * util/grub-mkconfig.in: Likewise.
10676 * util/grub-mkrescue.in: Likewise.
10677 * util/grub-reboot.in: Likewise.
10678 * util/grub-set-default.in: Likewise.
10679 * util/i386/efi/grub-install.in: Likewise.
10680 * util/ieee1275/grub-install.in: Likewise.
10681 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10683 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
10685 * .bzrignore: Ignore 41_custom.
10687 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
10689 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
10691 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
10693 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
10694 prototype declarations.
10696 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
10697 generating fs, partmap, and video lists.
10698 * include/grub/fs.h (grub_fs_register): Omit prototype if
10699 GRUB_LST_GENERATOR is defined.
10700 * include/grub/partition.h (grub_partition_map_register): Likewise.
10701 * include/grub/video.h (grub_video_register): Likewise.
10703 2010-06-12 Javier Martín <lordhabbit@gmail.com>
10705 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
10707 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
10709 * util/grub-mkrescue.in: Support --xorriso argument.
10711 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10713 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
10714 Suggested by: Thomas Schmitt.
10716 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10718 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
10719 Suggested by: Thomas Schmitt.
10721 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10723 custom.cfg support.
10725 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
10726 * util/grub.d/41_custom.in: New file.
10728 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
10730 * util/grub-mkrescue.in (make_image): Remove sh module, which has
10731 been merged back into normal.
10733 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
10735 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
10736 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
10738 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
10740 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
10741 when generating manual pages.
10742 * docs/man/grub-bin2h.h2m: New file.
10743 * docs/man/grub-editenv.h2m: New file.
10744 * docs/man/grub-fstest.h2m: New file.
10745 * docs/man/grub-install.h2m: New file.
10746 * docs/man/grub-macho2img.h2m: New file.
10747 * docs/man/grub-mkconfig.h2m: New file.
10748 * docs/man/grub-mkdevicemap.h2m: New file.
10749 * docs/man/grub-mkfont.h2m: New file.
10750 * docs/man/grub-mkimage.h2m: New file.
10751 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
10752 * docs/man/grub-mkrelpath.h2m: New file.
10753 * docs/man/grub-mkrescue.h2m: New file.
10754 * docs/man/grub-ofpathname.h2m: New file.
10755 * docs/man/grub-pe2elf.h2m: New file.
10756 * docs/man/grub-probe.h2m: New file.
10757 * docs/man/grub-reboot.h2m: New file.
10758 * docs/man/grub-script-check.h2m: New file.
10759 * docs/man/grub-set-default.h2m: New file.
10760 * docs/man/grub-setup.h2m: New file.
10762 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
10764 Use FOR_* macros instead of *_iterate whenever possible.
10766 * commands/handler.c: Removed.
10767 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
10768 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
10769 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
10770 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
10771 (grub_probe_SOURCES): Remove kern/parser.c.
10772 (util/grub-script-check.c_DEPENDENCIES): Removed.
10773 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
10774 and grub_script_check_init.c.
10775 (grub_script_check_init.lst): Removed.
10776 (grub_script_check_init.h): Likewise.
10777 (grub_script_check_init.c): Likewise.
10778 (pkglib_MODULES): Remove handler.mod and sh.mod.
10779 (handler_mod_SOURCES): Removed.
10780 (handler_mod_CFLAGS): Likewise.
10781 (handler_mod_LDFLAGS): Likewise.
10782 (normal_mod_SOURCES): Remove normal/handler.c.
10783 Add script/main.c, script/script.c, script/execute.c,
10784 script/function.c, script/lexer.c, grub_script.tab.c
10785 and grub_script.yy.c.
10786 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
10787 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
10788 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
10789 (grub_setup_SOURCES): Remove kern/parser.c.
10790 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
10791 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
10792 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
10793 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
10794 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
10795 (grub_setup_SOURCES): Remove kern/parser.c.
10796 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
10797 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
10798 * include/grub/command.h (grub_command_iterate): Removed.
10799 (FOR_COMMANDS): New macro.
10800 * include/grub/dl.h (grub_dl): New member next.
10801 (grub_dl_iterate): Removed.
10802 (grub_dl_head): New variable declaration.
10803 (FOR_DL_MODULES): New macro.
10804 * include/grub/fs.h: Include list.h.
10805 (grub_fs): Make next first element.
10806 (grub_fs_list): New variable declaration.
10807 (grub_fs_register): Make inline.
10808 (grub_fs_unregister): Likewise.
10809 (grub_fs_iterate): Removed.
10810 (FOR_FILESYSTEMS): New macro.
10811 * include/grub/handler.h: Removed.
10812 * include/grub/list.h (grub_list_hook_t): Removed.
10813 (grub_list_test_t): Likewise.
10814 (grub_list_pop): Likewise.
10815 (grub_list_iterate): Likewise.
10816 (grub_list_insert): Likewise.
10817 (FOR_LIST_ELEMENTS): New macro.
10818 * include/grub/parser.h (grub_parser_class): Removed.
10819 (grub_parser_register): Likewise.
10820 (grub_parser_unregister): Likewise.
10821 (grub_parser_get_current): Likewise.
10822 (grub_parser_set_current): Likewise.
10823 (grub_register_rescue_parser): Likewise.
10824 (grub_rescue_parse_line): New function.
10825 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
10826 * include/grub/script_sh.h (grub_script_function_list): New variable
10828 (FOR_SCRIPT_FUNCTIONS): New macro.
10829 (grub_script_function_iterate): Removed.
10830 (grub_normal_parse_line): New prototype.
10831 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
10832 (FOR_DISABLED_TERM_INPUTS): Likewise.
10833 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
10834 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
10835 * include/grub/video.h (grub_video_adapter): Move 'next' to first
10837 (grub_video_register): Inline.
10838 (grub_video_unregister): Likewise.
10839 (grub_video_adapter_list): New variable declaration.
10840 (grub_video_iterate): Removed.
10841 (FOR_VIDEO_ADAPTERS): New macro.
10842 * kern/dl.c (grub_dl_list): Removed. All users updated.
10843 (grub_dl_iterate): Removed.
10844 * kern/fs.c (grub_fs_list): Make global.
10845 (grub_fs_register): Removed.
10846 (grub_fs_unregister): Likewise.
10847 (grub_fs_iterate): Likewise.
10848 * kern/handler.c: Removed.
10849 * kern/list.c (grub_list_pop): Removed.
10850 (grub_list_iterate): Likewise.
10851 (grub_list_insert): Likewise.
10852 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
10853 (grub_prio_list_insert): Don't use grub_list_insert.
10854 * kern/main.c (grub_register_rescue_parser): Don't call
10855 grub_register_rescue_parser.
10856 * kern/parser.c (grub_parser_class): Removed.
10857 (grub_parser_execute): Use grub_rescue_parse_line.
10858 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
10859 (grub_rescue_parser): Removed.
10860 (grub_register_rescue_parser): Likewise.
10861 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
10862 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
10863 (grub_auth_check_authentication): Likewise.
10864 * normal/completion.c (iterate_command): Removed.
10865 (grub_normal_do_completion): Use FOR_COMMANDS.
10866 * normal/handler.c: Removed.
10867 * normal/main.c (read_config_file): Remove parser changing.
10868 (grub_normal_execute): Don't call read_handler_list.
10869 (grub_normal_read_line_real): Statically allocate prompt.
10870 (grub_cmdline_run): Use grub_normal_parse_line.
10871 (GRUB_MOD_FINI): Don't call free_handler_list.
10872 * normal/menu_entry.c (run): Likewise.
10873 * script/function.c (grub_script_function_list): Make global.
10874 (grub_script_function_iterate): Removed.
10875 * script/main.c (grub_normal_parse_line): Make global.
10876 (grub_sh_parser): Removed.
10877 (GRUB_MOD_INIT): Likewise.
10878 (GRUB_MOD_FINI): Likewise.
10879 * tests/lib/functional_test.c (grub_functional_test): Use
10881 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
10882 (grub_test_run): Use FOR_LIST_ELEMENTS.
10883 * tests/lib/unit_test.c (main): Likewise.
10884 * util/deviceiter.c (grub_util_iterate_devices): Don't use
10886 * util/grub-fstest.c (grub_term_input_class): Removed.
10887 (grub_term_output_class): Likewise.
10888 * util/grub-probe.c: Likewise.
10889 * util/i386/pc/grub-setup.c: Likewise.
10890 * util/sparc64/ieee1275/grub-setup.c: Likewise.
10891 * util/grub-script-check.c (main): Don't call grub_init_all and
10893 * video/video.c (grub_video_adapter_list): Make global.
10894 (grub_video_register): Removed.
10895 (grub_video_unregister): Likewise.
10896 (grub_video_iterate): Likewise.
10898 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
10900 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
10901 reported by Henrique Ferreiro.
10903 2010-06-09 Robert Millan <rmh@gnu.org>
10905 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
10906 ones, when both are available.
10908 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
10910 Make --version uniform and avoid hard-coded program name.
10912 * util/grub-mkimage.c (main): Use `program_name' instead of
10914 * util/i386/pc/grub-setup.c (main): Likewise.
10915 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
10916 * util/grub-install.in: Save the basename of $0 in $self, and use the
10917 latter in informational messages. Use the same format for --version
10918 as the binary programs.
10919 * util/grub-mkconfig.in: Likewise.
10920 * util/grub-mkrescue.in: Likewise.
10921 * util/grub-reboot.in: Likewise.
10922 * util/grub-set-default.in: Likewise.
10923 * util/i386/efi/grub-install.in: Likewise.
10924 * util/ieee1275/grub-install.in: Likewise.
10925 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10927 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
10929 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
10930 embedding area. Use <= instead of == when checking for non-emptiness.
10932 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
10934 * configure.ac: Add `.' to the directories searched for unifont.
10936 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
10938 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
10941 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
10943 * docs/grub.texi (History): Expand to cover GRUB 2.
10944 (Serial terminal): Refer to `terminal_input' and `terminal_output'
10945 commands, not `terminal'.
10946 (serial): Likewise.
10947 (terminal_input): New section.
10948 (terminal_output): New section.
10949 (uppermem): New section (stub).
10950 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
10952 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
10954 * docs/grub.texi (Security): Menu entries are unrestricted by
10955 default, not restricted to superusers as I had previously thought.
10956 Reword to account for this.
10958 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
10960 * kern/emu/misc.c (device_mapper_null_log): New function.
10961 (grub_device_mapper_supported): New function.
10962 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
10964 * kern/emu/hostdisk.c (find_partition_start): Check whether
10965 device-mapper is supported before trying to use it.
10966 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
10968 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
10970 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
10971 (File name syntax): Likewise.
10972 (help): --all is no longer supported in GRUB 2. Be more precise
10973 about pattern matching.
10975 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
10977 * normal/completion.c (grub_normal_do_completion): When completing
10978 arguments to "set" and the current word contains an equals sign,
10979 skip to after the equals sign before starting completion.
10981 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
10983 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
10985 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
10987 * docs/grub.texi (Network): New section.
10988 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
10989 `(nd)' as in GRUB Legacy.
10990 (pxe_unload): New section.
10992 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
10994 * docs/grub.texi (Troubleshooting): `echo' is not usually available
10995 in the rescue shell, so recommend using `set' instead. Thanks,
10998 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11000 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
11001 (password): New section.
11002 (password_pbkdf2): New section.
11003 (search): New section.
11004 (Security): New section.
11005 (Troubleshooting): New section, currently very incomplete.
11006 (Invoking grub-mkpasswd-pbkdf2): New section.
11007 (Internals): New section, currently very incomplete.
11009 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11011 * util/grub.d/00_header.in: Add some more quoting (of
11012 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
11014 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
11016 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11018 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
11019 to `count', fixing variable shadowing that broke the -c option.
11021 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
11023 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
11024 in case they contain spaces.
11026 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
11028 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
11029 "part_" to partmap module names, in line with grub-install.
11030 Reported by: Jindřich Makovička (Debian bug #584426).
11032 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
11034 * util/grub-mkimage.c: Make target-related error messages slightly
11035 more helpful; -O talks about "format". Explicitly point to the use
11036 of -O if no target is specified.
11037 Reported by: Didier Raboud (Debian bug #584415).
11039 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
11041 * INSTALL: Document several build requirements for optional features
11042 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
11044 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11046 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
11047 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
11048 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
11050 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11052 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
11053 Thanks to Jordan Uggla for spotting this.
11055 2010-06-02 Aleš Nesrsta <starous@volny.cz>
11057 Finally make USB usable.
11059 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
11060 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
11061 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
11062 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
11063 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
11064 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
11065 (GRUB_OHCI_FSMPS): Likewise.
11066 (GRUB_OHCI_PERIODIC_START): Likewise.
11067 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
11068 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
11069 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
11070 (GRUB_OHCI_SET_PORT_RESET): Likewise.
11071 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
11072 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
11073 (grub_ohci_transaction): Likewise.
11074 (grub_ohci_transfer): Improve condition detection algorithms.
11075 Handle toggle property. Program the transactions correctly.
11076 Improve error handling. Various important fixups.
11077 (grub_ohci_portstatus): Put register writes in right order.
11078 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
11079 (grub_uhci_transfer): Don't show "failed" message on success.
11080 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
11082 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
11083 determine its size.
11084 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
11085 before initialization is completed. Use IN direction for empty
11086 transfers. Use last_trans and compute toggle.
11087 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
11088 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
11089 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
11090 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
11091 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
11092 (grub_usb_device): Increase toggle to 256.
11093 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
11094 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
11095 GRUB_USBMS_SUBCLASS_SFF8070.
11096 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
11097 (grub_scsi_inquiry): New member page and alloc_length.
11098 (grub_scsi_request_sense): New structure.
11099 (grub_scsi_request_sense_data): Likewise.
11100 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
11102 * disk/scsi.c (grub_scsi_request_sense): New function.
11103 (grub_scsi_test_unit_ready): Likewise.
11104 (grub_scsi_inquiry): Fill new fields.
11105 (grub_scsi_read_capacity): Likewise.
11106 (grub_scsi_read10): Add request sense at the end.
11107 (grub_scsi_read12): Likewise.
11108 (grub_scsi_write10): Likewise.
11109 (grub_scsi_write12): Likewise.
11110 (grub_scsi_open): Add Test Unit Ready.
11111 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
11112 Support additional subclasses. Con't clear halt yet. Activate the
11113 proper config. Calculate LUNs correctly.
11114 (grub_usbms_transfer): Various important fixups.
11116 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
11118 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
11119 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
11120 (grub_ohci_fini_hw): New function.
11121 (grub_ohci_restore_hw): Likewise.
11122 (GRUB_MOD_INIT(ohci)): Register preboot hook.
11123 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
11124 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
11126 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
11128 Dedicated DMA allocations.
11130 * bus/pci.c (grub_memalign_dma32): New function
11131 (grub_dma_free): Likewise.
11132 (grub_dma_get_virt): Likewise.
11133 (grub_dma_get_phys): Likewise.
11134 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
11135 (grub_ohci_pci_iter): Use dma32_alloc.
11136 (grub_ohci_transfer): Likewise.
11137 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
11138 (grub_usb_bulk_readwrite): Likewise.
11139 * include/grub/pci.h: Add declarations.
11141 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
11145 * bus/cs5536.c: New file.
11146 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
11147 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
11148 (cs5536_mod_SOURCES): New variable.
11149 (cs5536_mod_CFLAGS): Likewise.
11150 (cs5536_mod_LDFLAGS): Likewise.
11151 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
11153 (kernel_img_SOURCES): Add bus/cs5536.c.
11154 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
11156 (usb_mod_SOURCES): New variable.
11157 (usb_mod_CFLAGS): New variable.
11158 (usb_mod_LDFLAGS): New variable.
11159 (usbtest_mod_SOURCES): New variable.
11160 (usbtest_mod_CFLAGS): New variable.
11161 (usbtest_mod_LDFLAGS): New variable.
11162 (ohci_mod_SOURCES): New variable.
11163 (ohci_mod_CFLAGS): New variable.
11164 (ohci_mod_LDFLAGS): New variable.
11165 (usbms_mod_SOURCES): New variable.
11166 (usbms_mod_CFLAGS): New variable.
11167 (usbms_mod_LDFLAGS): New variable.
11168 (usb_keyboard_mod_SOURCES): New variable.
11169 (usb_keyboard_mod_CFLAGS): New variable.
11170 (usb_keyboard_mod_LDFLAGS): New variable.
11171 * include/grub/smbus.h: New file.
11172 * include/grub/cs5536.h: New file.
11174 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11176 * util/grub.d/00_header.in: Add safety check to make sure that
11177 ${locale_dir} exists before trying to probe it.
11179 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11181 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
11182 per the GNU Coding Standards; this is now too obscure to be worth
11185 (chainloader): Remove cross-reference to `SCO UnixWare'.
11187 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11189 * docs/grub.texi (Chain-loading): New section.
11190 (DOS/Windows): New section, borrowed from GRUB Legacy with details
11191 adjusted for GRUB 2.
11192 (SCO UnixWare): Likewise.
11194 (chainloader): Add reference to `Block list syntax'.
11195 (drivemap): New section.
11196 (parttool): New section.
11198 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11200 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
11202 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
11203 (Installing GRUB using grub-install): Remove reference to the grub
11204 shell; mention `grub-mkimage' and `grub-setup' instead.
11205 (Invoking grub-install): Likewise.
11206 (Interface): Add reference to `Menu entry editor'.
11207 (serial): Remove `--device' option.
11209 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11211 * docs/grub.texi (Configuration): New section, documenting
11212 configuration file generation using grub-mkconfig. I've left a slot
11213 for documenting the full shell scripting format but have not yet
11214 started on writing that up.
11215 (Invoking grub-mkconfig): New section.
11217 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11219 * docs/grub.texi (direntry): Remove grub-terminfo reference.
11220 (GNU GRUB manual): Likewise.
11221 (General commands): Update description of `terminfo' for GRUB 2.
11223 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11225 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
11226 (GRUB_MOD_INIT): Fix capitalisation.
11227 * docs/grub.texi (Command-line and menu entry commands): Document
11228 gettext and gptsync commands.
11230 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11232 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
11233 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
11235 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
11237 Add btrfs probing support, currently only in the single-device case.
11239 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
11241 (grub_guess_root_device): Call find_root_device_from_mountinfo
11242 before looking in /dev.
11244 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11246 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
11247 GRUB_DISK_SIZE_UNKNOWN.
11248 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
11250 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
11252 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
11253 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
11254 corrupted or not synced properly.
11256 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11258 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
11259 Reported by: Seth Goldberg.
11261 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11263 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
11265 Reported by: Seth Goldberg.
11267 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11269 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
11270 Reported by: Seth Goldberg.
11272 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11274 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
11275 64-bit address as signed on MIPS.
11277 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
11279 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
11280 to the empty string.
11282 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
11284 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
11286 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
11287 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
11288 * kern/misc.c (__enable_execute_stack): Disable on
11291 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
11293 Make grub-probe work with symbolic links under /dev/mapper as well
11294 as with real block devices. The Linux world seems to be (at best)
11295 in transition here, and GRUB shouldn't get caught in the middle.
11297 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
11300 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
11302 * util/grub-script-check.c (main): Ensure defined behaviour on empty
11303 input files (in which case exit zero).
11305 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
11307 * kern/emu/misc.c (canonicalize_file_name): realpath can still
11308 return NULL for various reasons even if it has a maximum-length
11309 buffer: for example, there might be a symlink loop, or the path
11310 might exceed PATH_MAX. If this happens, return NULL.
11312 2010-05-27 Robert Millan <rmh@gnu.org>
11314 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
11315 partmap module to handle cross-partmap setups.
11316 Reported by Orestes Mas. Gràcies!
11318 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
11320 * util/grub-mkrescue.in: Initialise override_dir rather than
11321 assuming that it's unset or empty in the environment.
11323 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
11325 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
11326 variable index into p_index to suppress a warning with -Wshadow.
11328 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
11330 * INSTALL: Added flex >= 2.5.35 requirement.
11332 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11334 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
11336 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11340 * commands/i386/cmostest.c: New file.
11341 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
11342 (cmostest_mod_SOURCES): New variable.
11343 (cmostest_mod_CFLAGS): Likewise.
11344 (cmostest_mod_LDFLAGS): Likewise.
11345 * conf/i386-pc.rmk: Likewise.
11346 * docs/grub.texi (Vendor power-on keys): New section.
11347 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
11348 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
11349 and GRUB_BUTTON_CMOS_ADDRESS.
11350 * util/grub.d/00_header.in: Handle powering-on by separate button.
11352 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11354 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
11355 Removed drawing_scrollbar argument. All users updated
11357 Reported by Jo Shields
11359 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11361 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
11362 buffer since gfxterm handles double repaint.
11364 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11366 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
11367 * term/gfxterm.c (real_scroll): Likewise.
11369 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11371 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
11372 before calling BIOS.
11374 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11376 * include/grub/i18n.h: Always enable grub_gettext.
11378 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11380 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
11381 partition naming style.
11383 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
11385 * util/grub-mkconfig.in: Fix handling of -o so that it works when
11386 not the first option.
11388 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
11390 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
11392 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
11394 * util/misc.c: Move inclusion of <limits.h> to ...
11395 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
11397 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
11399 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
11400 Fix merge error in NetBSD code.
11401 (find_partition_start) [__NetBSD__]: Likewise.
11403 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
11405 Fix grub-mkrescue usage unit testing.
11407 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
11409 2010-05-18 Christian Franke <franke@computer.org>
11411 * util/grub.d/10_windows.in: Use path names instead of
11412 drive letters to prevent warning from Cygwin 1.7.
11413 Add drivemap command to menuentry if needed.
11415 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
11417 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
11418 gnumach and gnumach.gz.
11420 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11422 * include/grub/i18n.h (gettext): Inline instead of using #define.
11423 (grub_gettext): Likewise.
11426 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11428 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
11429 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
11430 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
11431 (main): Add a slash after pkglibdirroot.
11433 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11435 * util/grub-install.in: Add missing "in" keyword.
11437 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11439 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
11440 Reported by: Seth Goldberg.
11442 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11444 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
11446 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
11448 * configure.ac: Check for Linux device-mapper support.
11450 * util/hostdisk.c (device_is_mapped): New function.
11451 (find_partition_start): New function, partly broken out from
11452 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
11453 device-mapper support added.
11454 (linux_find_partition): Use find_partition_start.
11455 (convert_system_partition_to_system_disk): Add `st' argument.
11456 Support Linux /dev/mapper/* devices if device-mapper support is
11457 available; only DM-RAID devices are understood at present.
11458 (find_system_device): Add `st' argument. Pass it to
11459 convert_system_partition_to_system_disk.
11460 (grub_util_biosdisk_get_grub_dev): Pass stat result to
11461 find_system_device and convert_system_partition_to_system_disk. Use
11462 find_partition_start.
11464 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
11465 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
11466 * util/deviceiter.c [__linux__]: Define MINOR.
11467 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
11468 * util/mkdevicemap.c (grub_putchar): New function.
11469 (grub_getkey): New function.
11470 (grub_refresh): New function.
11471 (main): Set debug=all if -v -v is used.
11473 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
11475 Fix build with non-GNU libcs.
11477 * util/misc.c (canonicalize_file_name): Move to ...
11478 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
11479 grub_make_system_path_relative_to_its_root.
11481 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
11483 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
11484 we handle finding grub-mkimage. Default to finding grub-mkimage in
11485 ${bindir} with program_transform_name applied, and provide a
11486 --grub-mkimage option to override this.
11488 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11490 Remove grub-mkisofs.
11492 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
11493 (grub_mkisofs_SOURCES): Removed.
11494 (grub_mkisofs_CFLAGS): Removed.
11495 * util/mkisofs/defaults.h: Removed.
11496 * util/mkisofs/eltorito.c: Likewise.
11497 * util/mkisofs/exclude.h: Likewise.
11498 * util/mkisofs/hash.c: Likewise.
11499 * util/mkisofs/include/: Likewise.
11500 * util/mkisofs/include/fctldefs.h: Likewise.
11501 * util/mkisofs/include/mconfig.h: Likewise.
11502 * util/mkisofs/include/prototyp.h: Likewise.
11503 * util/mkisofs/include/statdefs.h: Likewise.
11504 * util/mkisofs/iso9660.h: Likewise.
11505 * util/mkisofs/joliet.c: Likewise.
11506 * util/mkisofs/match.c: Likewise.
11507 * util/mkisofs/match.h: Likewise.
11508 * util/mkisofs/mkisofs.c: Likewise.
11509 * util/mkisofs/mkisofs.h: Likewise.
11510 * util/mkisofs/msdos_partition.h: Likewise.
11511 * util/mkisofs/multi.c: Likewise.
11512 * util/mkisofs/name.c: Likewise.
11513 * util/mkisofs/rock.c: Likewise.
11514 * util/mkisofs/tree.c: Likewise.
11515 * util/mkisofs/write.c: Likewise.
11517 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11519 Unify grub-mkimage accross platforms.
11521 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
11522 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
11523 (grub_mkelfimage_SOURCES): Removed.
11524 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
11525 (util/grub-mkimage.c_DEPENDENCIES): .. this.
11526 (bin_UTILITIES): Add grub-mkimage.
11527 (grub_mkimage_SOURCES): New variable.
11528 (kernel_img_HEADERS): Remove machine/kernel.h.
11529 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
11530 (pkglib_PROGRAMS): Add kernel.img.
11531 (kernel_img_HEADERS): Add machine/kernel.h.
11532 (kernel_img_FORMAT): Removed.
11533 (bin_UTILITIES): Remove grub-mkimage.
11534 (grub_mkimage_SOURCES): Removed.
11535 (grub_mkimage_CFLAGS): Likewise.
11536 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11537 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
11538 (pkglib_PROGRAMS): Add kernel.img.
11539 (bin_UTILITIES): Remove grub-mkimage.
11540 (grub_mkimage_SOURCES): Removed.
11541 (grub_mkimage_CFLAGS): Likewise.
11542 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11543 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
11544 (pkglib_PROGRAMS): Add kernel.img.
11545 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
11546 (pkglib_PROGRAMS): Add kernel.img.
11547 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
11548 (grub_mkimage_SOURCES): Removed.
11549 (grub_mkimage_CFLAGS): Likewise.
11550 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11551 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
11552 (pkglib_PROGRAMS): Add kernel.img.
11553 (bin_UTILITIES): Remove grub-mkimage.
11554 (grub_mkimage_SOURCES): Removed.
11555 (grub_mkimage_CFLAGS): Likewise.
11556 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11557 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
11558 (grub_mkimage_SOURCES): Removed.
11559 (grub_mkimage_CFLAGS): Likewise.
11560 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11561 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
11562 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
11563 (grub_pe32_optional_header): ... this.
11564 (grub_pe64_optional_header): ... and this. All users updated.
11565 (GRUB_PE32_PE32_MAGIC): Split into ..
11566 (GRUB_PE32_PE32_MAGIC): .. this.
11567 (GRUB_PE32_PE64_MAGIC): .. and this.
11568 (GRUB_PE32_SIGNATURE_SIZE): New definition.
11569 * include/grub/elf.h (PT_GNU_STACK): New definition.
11570 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
11571 * include/grub/i386/efi/kernel.h: Likewise.
11572 * include/grub/i386/kernel.h: Likewise.
11573 * include/grub/i386/pc/kernel.h: Likewise.
11574 * include/grub/i386/qemu/boot.h: Likewise.
11575 * include/grub/mips/kernel.h: Likewise.
11576 * include/grub/mips/qemu-mips/kernel.h: Likewise.
11577 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
11578 * include/grub/powerpc/kernel.h: Likewise.
11579 * include/grub/sparc64/ieee1275/boot.h: Likewise.
11580 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
11581 * include/grub/sparc64/kernel.h: Likewise.
11582 * include/grub/x86_64/efi/kernel.h: Likewise.
11583 * include/grub/x86_64/kernel.h: Likewise.
11584 * include/grub/offsets.h: New file.
11585 * include/grub/kernel.h (grub_module_info): Split into ...
11586 (grub_module_info32): ... this.
11587 (grub_module_info64): ... and this.
11588 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
11589 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
11590 (grub_boot_blocklist): Moved from here ...
11591 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
11592 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
11593 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
11594 * include/grub/types.h (grub_target_to_host16): Removed.
11595 (grub_target_to_host32): Likewise.
11596 (grub_target_to_host64): Likewise.
11597 (grub_host_to_target16): Likewise.
11598 (grub_host_to_target32): Likewise.
11599 (grub_host_to_target64): Likewise.
11600 (grub_host_to_target_addr): Likewise.
11602 Support grub-mkrescue for efi, coreboot and qemu.
11604 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
11605 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
11606 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
11607 * util/grub-mkrawimage.c: Moved from here ...
11608 * util/grub-mkimage.c: ... here. All users updated.
11609 (ALIGN_ADDR): Use image_target.
11610 (TARGET_NO_FIELD): New const.
11611 (image_target_desc): New type.
11612 (image_targets): New array.
11613 (grub_target_to_host64): Use image_target.
11614 (grub_target_to_host32): Likewise.
11615 (grub_target_to_host16): Likewise.
11616 (grub_host_to_target64): Likewise.
11617 (grub_host_to_target32): Likewise.
11618 (grub_host_to_target16): Likewise.
11619 (grub_host_to_target_addr): Likewise.
11620 (generate_image): Handle multiimage.
11621 (main): Require -O parameter. All users updated.
11622 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
11623 util/efi/grub-mkimage.c
11624 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
11625 New option --rom-directory.
11627 * util/i386/efi/grub-mkimage.c: Removed.
11628 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
11629 (grub_target_to_host32): Likewise.
11630 (grub_target_to_host64): Likewise.
11631 (grub_host_to_target16): Likewise.
11632 (grub_host_to_target32): Likewise.
11633 (grub_host_to_target64): Likewise.
11634 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
11635 (grub_target_to_host32): Likewise.
11636 (grub_target_to_host64): Likewise.
11637 (grub_host_to_target16): Likewise.
11638 (grub_host_to_target32): Likewise.
11639 (grub_host_to_target64): Likewise.
11641 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
11643 Source tree is reorganized for emu build.
11645 * include/grub/util/console.h: Move from here...
11646 * include/grub/emu/console.h: ...to here.
11647 * include/grub/util/getroot.h: Move from here...
11648 * include/grub/emu/getroot.h: ...to here.
11649 * include/grub/util/hostdisk.h: Move from here...
11650 * include/grub/emu/hostdisk.h: ...to here.
11651 * util/console.c: Move from here...
11652 * kern/emu/console.c: ...to here.
11653 * util/getroot.c: Move from here...
11654 * kern/emu/getroot.c: ...to here.
11655 * util/grub-emu.c: Move from here...
11656 * kern/emu/main.c: ...to here.
11657 * util/hostdisk.c: Move from here...
11658 * kern/emu/hostdisk.c: ...to here.
11659 * util/hostfs.c: Move from here...
11660 * kern/emu/hostfs.c: ...to here.
11661 * util/mm.c: Move from here...
11662 * kern/emu/mm.c: ...to here.
11663 * util/pci.c: Move from here...
11664 * bus/emu/pci.c: ...to here.
11665 * util/sdl.c: Move from here...
11666 * video/emu/sdl.c: ...to here.
11667 * util/time.c: Move from here...
11668 * kern/emu/time.c: ...to here.
11669 * util/usb.c: Move from here...
11670 * bus/usb/emu/usb.c: ...to here.
11672 * include/grub/emu/misc.h: New header for grub-emu functions.
11673 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
11675 * conf/any-emu.rmk: Rule updates for above renames.
11676 * conf/common.rmk: Likewise.
11677 * conf/i386-pc.rmk: Likewise.
11678 * conf/i386-qemu.rmk: Likewise.
11679 * conf/mips.rmk: Likewise.
11680 * conf/sparc64-ieee1275.rmk: Likewise.
11681 * conf/x86-efi.rmk: Likewise.
11683 * disk/lvm.h: #include updates for above renames.
11684 * util/grub-mkrelpath.c: Likewise.
11685 * util/grub-probe.c: Likewise.
11686 * util/i386/pc/grub-setup.c: Likewise.
11687 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11688 * kern/emu/console.c: Likewise.
11689 * kern/emu/getroot.c: Likewise.
11690 * kern/emu/hostdisk.c: Likewise.
11691 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
11693 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
11694 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
11695 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
11696 * util/misc.c: Remove grub-emu functions.
11698 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11701 Reported by: Thorsten Grützmacher.
11703 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
11705 (circprog_set_property): Register and unregister timeout hook.
11706 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
11707 (label_destroy): Free template. and unregister hook.
11708 (label_set_state): New function.
11709 (label_set_property): Handle templates and hooks.
11710 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
11712 (progress_bar_set_property): Register and unregister timeout hook.
11713 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
11714 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
11715 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
11716 (update_timeout_visit): Removed.
11717 (update_timeouts): New function.
11718 (redraw_timeouts): Likewise.
11719 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
11720 (grub_gfxmenu_clear_timeout): Likewise.
11721 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
11722 (grub_gfxmenu_timeout_notify): Likewise.
11723 (grub_gfxmenu_timeout_notifications): New external variable.
11724 (grub_gfxmenu_timeout_register): New function.
11725 (grub_gfxmenu_timeout_unregister): Likewise.
11727 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11729 Transform (broken) vga terminal into (working) vga video driver.
11731 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
11732 video/i386/pc/vga.c.
11733 * include/grub/video.h (grub_video_driver_id):
11734 Add GRUB_VIDEO_DRIVER_VGA.
11735 * term/i386/pc/vga.c: Renamed to ...
11736 * video/i386/pc/vga.c: ...this
11737 (DEBUG_VGA): Removed.
11738 (CHAR_WIDTH): Likewise.
11739 (CHAR_HEIGHT): Likewise.
11740 (TEXT_WIDTH): Likewise.
11741 (TEXT_HEIGHT): Likewise.
11742 (DEFAULT_FG_COLOR): Likewise.
11743 (DEFAULT_BG_COLOR): Likewise.
11744 (colored_char): Likewise.
11747 (cursor_state): Likewise.
11748 (fg_color): Likewise.
11749 (bg_color): Likewise.
11750 (text_buf): Likewise.
11753 (framebuffer): New variable.
11754 (set_read_map): Disabled.
11755 (setup): New variable.
11756 (is_target): Likewise.
11757 (grub_vga_mod_init): Likewise.
11758 (grub_vga_mod_fini): Likewise.
11759 (check_vga_mem): Likewise.
11760 (write_char): Likewise.
11761 (write_cursor): Likewise.
11762 (scroll_up): Likewise.
11763 (grub_vga_putchar): Likewise.
11764 (grub_vga_getcharwidth): Likewise.
11765 (grub_vga_getwh): Likewise.
11766 (grub_vga_getxy): Likewise.
11767 (grub_vga_gotoxy): Likewise.
11768 (grub_vga_cls): Likewise.
11769 (grub_vga_setcolorstate): Likewise.
11770 (grub_vga_setcursor): Likewise.
11771 (grub_video_vga_init): New function.
11772 (grub_video_vga_setup): Likewise.
11773 (grub_video_vga_fini): Likewise.
11774 (update_target): Likewise.
11775 (grub_video_vga_blit_bitmap): Likewise.
11776 (grub_video_vga_blit_render_target): Likewise.
11777 (grub_video_vga_set_active_render_target): Likewise.
11778 (grub_video_vga_get_active_render_target): Likewise.
11779 (grub_video_vga_swap_buffers): Likewise.
11780 (grub_video_vga_set_palette): Likewise.
11781 (grub_video_vga_get_info_and_fini): Likewise.
11782 (grub_vga_term): Removed.
11783 (grub_video_vga_adapter): New variable.
11784 (GRUB_MOD_INIT): Register a video driver instead of terminal.
11785 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
11787 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11789 * video/readers/jpeg.c: Indented.
11791 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11793 Various jpeg cleanups.
11795 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
11796 (grub_jpeg_decode_quan_table): Use sizeof.
11797 (grub_jpeg_decode_du): Use ARRAY_SIZE.
11799 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
11801 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
11802 tables. Ignore non-last ac bit.
11803 (grub_jpeg_decode_quan_table): Likewise.
11805 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11807 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
11808 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
11809 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
11810 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
11811 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
11812 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
11814 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11816 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
11819 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11821 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
11823 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11825 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
11828 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11830 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
11833 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11835 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
11838 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11840 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
11842 2010-05-01 Christian Franke <franke@computer.org>
11844 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
11845 Remove broken Cygwin path conversion.
11846 * util/misc.c: [__CYGWIN__] Add include and define.
11847 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
11849 (make_system_path_relative_to_its_root): Simplify loop, replace early
11851 [__CYGWIN__] Add conversion to win32 path.
11852 Include "/" case in trailing slash removal.
11854 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11856 * kern/main.c (grub_load_config): Fix copy-pasted comment.
11857 Reported by: Seth Goldberg
11859 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11861 * commands/help.c (grub_cmd_help): Fix a typo.
11862 Reported by: Seth Goldberg
11864 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11866 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
11868 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
11869 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
11870 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
11871 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
11872 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
11873 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
11874 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
11875 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
11876 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
11877 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
11878 * normal/context.c (GRUB_MOD_INIT): Likewise.
11879 * normal/main.c (GRUB_MOD_INIT): Likewise.
11880 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
11881 * term/serial.c (GRUB_MOD_INIT): Likewise.
11882 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
11884 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11886 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
11889 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11891 * commands/iorw.c: New file.
11892 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
11893 (iorw_mod_SOURCES): New variable.
11894 (iorw_mod_CFLAGS): Likewise.
11895 (iorw_mod_LDFLAGS): Likewise.
11897 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11901 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
11902 * normal/main.c (hotkey_aliases): New variable.
11903 (grub_normal_add_menu_entry): Parse "--hotkey".
11904 * normal/menu_text.c (run_menu): Handle hotkeys.
11906 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11908 * kern/i386/coreboot/init.c (grub_machine_init): Call
11909 grub_machine_mmap_init on qemu.
11911 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11913 * boot/i386/qemu/boot.S: Add a missing .code16.
11915 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11917 Use LBIO on coreboot.
11919 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
11920 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
11921 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
11923 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
11924 grub_machine_mmap_init on coreboot.
11925 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
11926 GRUB_LINUXBIOS_MEMBER_LINK.
11927 (grub_machine_mmap_iterate): Fix declaration.
11928 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
11930 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11932 Split coreboot and multiboot ports.
11934 * conf/i386-multiboot.rmk: New file.
11935 * configure.ac: Add multiboot port.
11936 * include/grub/i386/multiboot/boot.h: New file.
11937 * include/grub/i386/multiboot/console.h: Likewise.
11938 * include/grub/i386/multiboot/init.h: Likewise.
11939 * include/grub/i386/multiboot/kernel.h: Likewise.
11940 * include/grub/i386/multiboot/loader.h: Likewise.
11941 * include/grub/i386/multiboot/memory.h: Likewise.
11942 * include/grub/i386/multiboot/serial.h: Likewise.
11943 * include/grub/i386/multiboot/time.h: Likewise.
11944 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
11945 * loader/multiboot.c: Likewise.
11946 * loader/multiboot_mbi2.c: Likewise.
11947 * util/grub-mkrescue.in: Generate multiboot rescue.
11949 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11951 * kern/parser.c (grub_parser_execute): Cope with read-only config.
11953 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11955 Merge handling of input and output terminals. Fix a hang.
11957 * commands/terminal.c (abstract_terminal): New struct.
11958 (handle_command): New function. Based on grub_cmd_terminal_input.
11959 (grub_cmd_terminal_input): Use handle_command.
11960 (grub_cmd_terminal_output): Use handle_command.
11962 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
11964 Fix comment handling.
11966 * tests/grub_script_comments.in: New testcase.
11967 * conf/tests.rmk: Rules for new testcase.
11968 * script/yylex.l: Updated flex rules.
11970 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11972 * docs/grub.texi (play): Document that zero pitches produce rests.
11973 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
11976 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11978 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
11981 2010-04-26 Christian Franke <franke@computer.org>
11983 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
11984 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
11985 (grub_get_prefix): Remove function.
11986 * util/grub-emu.c (main): Replace grub_get_prefix () call by
11987 make_system_path_relative_to_its_root ().
11988 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
11990 2010-04-24 Christian Franke <franke@computer.org>
11992 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
11993 (kernel_img_LDFLAGS): Remove -static-libgcc.
11995 2010-04-24 Christian Franke <franke@computer.org>
11997 * configure.ac: Do not CHECK_BSS_START_SYMBOL
11998 and CHECK_END_SYMBOL if grub-emu is built.
11999 Unset TARGET_OBJ2ELF if grub-emu is built
12000 without module support.
12002 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
12006 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
12007 (grub_fstest_SOURCES): Likewise.
12008 (pkglib_MODULES): Add nilfs2.mod.
12009 (nilfs2_mod_SOURCES): New variable.
12010 (nilfs2_mod_CFLAGS): Likewise.
12011 (nilfs2_mod_LDFLAGS): Likewise.
12012 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
12013 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
12014 * fs/nilfs2.c: New file.
12016 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
12018 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
12021 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
12023 Add grub-mkconfig support for NetBSD.
12025 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
12026 * util/grub-mkconfig.in: export new NetBSD specific variables.
12027 * po/POTFILES-shell: added 10_netbsd.in.
12028 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
12030 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
12032 Fix emu build with grub-emu-pci and grub-emu-modules.
12034 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
12036 * include/grub/libpciaccess.h: New file.
12037 * conf/any-emu.rmk: Update kernel headers for emu build.
12039 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12041 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
12043 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12045 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
12047 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12049 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
12050 Retrieve chosen/bootpath if bootpath isn't hardcoded.
12051 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
12052 util/ieee1275/ofpath.c.
12053 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
12054 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
12055 * include/grub/sparc64/ieee1275/boot.h
12056 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
12057 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
12058 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
12059 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
12061 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
12062 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
12063 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
12066 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
12068 * util/grub-mkconfig.in: Corrected two == equality tests.
12069 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
12070 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
12071 expect a number appended to it.
12072 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
12073 expects a number appended to it.
12075 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12077 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
12079 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12081 * util/hostdisk.c (make_device_name): Change to new partition naming.
12083 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12085 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
12087 2010-04-17 Christian Franke <franke@computer.org>
12089 * Makefile.in: Add missing localedir setting.
12091 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
12093 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
12094 mistake in r2156. Noticed by Anthony Fok.
12096 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
12098 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
12100 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
12102 Fix a spurious, uninitialized variable warning.
12104 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
12105 Initialize variable, shdr.
12106 (grub_freebsd_load_elfmodule): Likewise.
12107 (grub_freebsd_load_elf_meta): Likewise.
12109 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
12111 Fix for escaped dollar in double quoted strings.
12113 * script/yylex.l: Updated flex rules.
12114 * conf/tests.rmk: Rule for new testcase.
12115 * tests/grub_script_dollar.in: New testcase.
12117 2010-04-13 Carles Pina i Estany <carles@pina.cat>
12118 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
12120 Enclose all translated strings in grub.cfg in single quotes, and
12121 escape them appropriately (Ubuntu bug #552921).
12123 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
12124 * util/grub.d/10_hurd.in: Use it.
12125 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
12126 * util/grub.d/10_linux.in (linux_entry): Likewise.
12128 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12130 Fix cygwin compilation.
12132 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
12133 * include/grub/misc.h (__register_frame_info)
12134 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
12135 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
12136 * kern/misc.c (__register_frame_info)
12137 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
12138 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
12140 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12142 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
12144 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12146 Unify libgcc processing.
12148 * Makefile.in (kernel_img_LDFLAGS): New variable.
12149 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
12150 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
12152 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
12153 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
12154 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
12155 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
12156 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
12157 overwriting. Remove -lgcc and -static-libgcc
12158 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
12159 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
12160 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
12161 (kernel_img_LDFLAGS): Append instead of overwriting.
12162 Remove -lgcc and -static-libgcc
12163 * conf/sparc64-ieee1275.rmk: Likewise.
12164 * include/grub/powerpc/libgcc.h: Move to ...
12165 * include/grub/libgcc.h: .. this.
12166 * include/grub/libgcc.h: Don't export most of the function on x86.
12167 (__bswapsi2): New export.
12168 (__bswapdi2): Likewise.
12169 * include/grub/mips/libgcc.h: Removed.
12170 * include/grub/sparc64/libgcc.h: Likewise.
12172 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12174 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
12175 disk_info_msg (conflicts with gettexting into languages with cases).
12177 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
12179 Add grub-probe support for NetBSD.
12181 * util/getroot.c (find_root_device): Convert block device to
12182 character device on NetBSD.
12183 * util/probe.c (probe): Require character device on NetBSD.
12184 * util/hostdisk.c: NetBSD specific headers.
12185 (configure_device_driver): new function to tune device driver
12186 parameters (currently only for NetBSD floppy driver).
12187 (grub_util_biosdisk_open): NetBSD specific code (get disk size
12188 via disklabel ioctl).
12189 (open_device): call configure_device_driver on NetBSD.
12190 (convert_system_partition_to_system_disk): NetBSD specific code.
12191 (device_is_wholedisk): Likewise.
12192 (grub_util_biosdisk_get_grub_dev): Likewise.
12193 (make_device_name): Fixed a typo in bsd_part_str.
12194 * configure.ac: check for opendisk() and getrawpartition() on
12195 NetBSD and set LIBUTIL.
12196 * Makefile.in: add LIBUTIL to LIBS.
12198 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
12202 * util/grub-script-check.c: Better help message.
12204 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
12208 * configure.ac: Flex version check.
12209 * conf/common.rmk: Add -Wno-error to sh.mod.
12210 * script/yylex.l: Remove all #pragma.
12212 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12214 * include/grub/util/misc.h (canonicalise_file_name): Add missing
12216 Reported by: Seth Goldberg.
12218 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12220 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
12221 Rename "module" to "module2".
12222 Reported by: Seth Goldberg.
12224 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12226 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
12228 Reported by: Seth Goldberg.
12230 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12232 * lib/posix_wrap/locale.h: Add missing file.
12233 Reported by: Seth Goldberg.
12235 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12237 grub-emu module load support.
12239 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
12240 NO_DYNAMIC_MODULES switched to this.
12241 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
12242 (CFLAGS): Likewise.
12243 * conf/any-emu.rmk: Generate symlist.
12244 (kernel_img_HEADERS): Add util/datetime.h.
12245 (kernel_img_HEADERS) [sdl]: Add sdl.h.
12246 (kernel_img_HEADERS) [libusb]: Add libusb.h.
12247 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
12248 kern/$(target_cpu)/cache.S.
12249 * configure.ac (grub-emu-modules): New option.
12250 * genmk.rb: Handle multiple source lists.
12251 * include/grub/sdl.h: New file.
12252 * include/grub/libusb.h: Likewise.
12253 * util/grub-emu.c (main): Hanle (host) root.
12254 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
12255 GRUB_ERR_UNKNOWN_DEVICE.
12256 * util/misc.c: Move mm functions to ...
12257 * util/mm.c: ... here. All users updated.
12259 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12261 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
12262 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
12264 (maintainer-clean): Remove libgcrypt-grub.
12266 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12268 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
12270 2010-04-09 EFI Coder <eficoder@hotmail.com>
12272 * normal/menu_text.c (print_message): Clean up the message and show
12273 the Fn information when on EFI
12274 * term/efi/console.c (grub_console_checkkey): Add F4 support.
12276 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12278 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
12280 * normal/crypto.c (read_crypto_list): Likewise.
12281 * normal/dyncmd.c (read_command_list): Likewise.
12282 * normal/term.c (read_terminal_list): Likewise.
12283 * normal/main.c (read_lists): Use explicit prefix.
12284 (read_lists_hook): Use read_lists.
12285 (grub_normal_execute): Likewise.
12287 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12289 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
12290 Reported by: Thomas Schmitt.
12291 Add -no-emul-boot to grub-mkisofs parameters.
12293 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12295 * font/font.c: Indented.
12297 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
12299 Elif support to GRUB script (by Deepak Vankadaru).
12301 * tests/grub_script_if.in: New testcase.
12302 * conf/tests.rmk: Rule for new testcase.
12303 * script/parser.y: Grammar rules for elif.
12305 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
12307 While and until loops support to GRUB script.
12309 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
12310 (grub_script_create_cmdwhile): New function prototype.
12311 (grub_script_execute_cmdwhile): New function prototype.
12312 * script/execute.c (grub_script_execute_cmdwhile): New function.
12313 * script/parser.y (command): New commands.
12314 (whilecmd): New grammar rule.
12315 (untilcmd): New grammar rule.
12316 * script/script.c (grub_script_create_cmdwhile): New function.
12317 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
12320 * tests/grub_script_while1.in: New testcase.
12321 * conf/tests.rmk: Rule for new testcase.
12323 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12325 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
12328 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
12330 GRUB_BACKGROUND support.
12332 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
12333 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
12335 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12337 Load fonts and modules for gfxmenu in grub-mkconfig.
12338 Idea by: Mario Vazquez
12340 * util/grub.d/00_header.in: Load pf2 and image modules.
12342 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12344 grub-mkconfig multiple terminal support.
12346 * util/grub-mkconfig.in: Handle multiple terminals correctly.
12347 * util/grub.d/00_header.in: Likewise.
12349 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12351 * Makefile.in: Specify files explicitly instead of using $< and $@ since
12352 we use cd $(srcdir).
12354 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
12356 * util/grub.d/10_linux.in: Only use the first word of
12357 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
12358 spaces in GRUB_DISTRIBUTOR.
12359 * util/grub.d/10_kfreebsd.in: Likewise.
12360 * util/grub.d/10_hurd.in: Likewise.
12362 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
12364 Fix unit testing framework for Qemu 0.12.
12366 * tests/util/grub-shell.in: Remove -serial stdio option.
12368 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12370 POSIX header file wrappers.
12372 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
12374 * lib/posix_wrap/ctype.h: Likewise.
12375 * lib/posix_wrap/errno.h: Likewise.
12376 * lib/posix_wrap/langinfo.h: Likewise.
12377 * lib/posix_wrap/limits.h: Likewise.
12378 * lib/posix_wrap/localcharset.h: Likewise.
12379 * lib/posix_wrap/stdint.h: Likewise.
12380 * lib/posix_wrap/stdio.h: Likewise.
12381 * lib/posix_wrap/stdlib.h: Likewise.
12382 * lib/posix_wrap/string.h: Likewise.
12383 * lib/posix_wrap/sys/types.h: Likewise.
12384 * lib/posix_wrap/unistd.h: Likewise.
12385 * lib/posix_wrap/wchar.h: Likewise.
12386 * lib/posix_wrap/wctype.h: Likewise.
12387 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
12388 (grub_script.yy.h): Likewise.
12389 * script/yylex.l: Remove POSIX emulation #defines.
12390 * Makefile.in (POSIX_CFLAGS): New variable.
12391 (GNULIB_UTIL_CFLAGS): Likewise.
12395 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
12396 (regexp_mod_SOURCES): New variable.
12397 (regexp_mod_CFLAGS): Likewise.
12398 (regexp_mod_LDFLAGS): Likewise.
12399 * commands/regexp.c: New file.
12400 * gnulib/regcomp.c: New file. Imported from gnulib.
12401 * gnulib/regex.c: Likewise.
12402 * gnulib/regex_internal.c: Likewise.
12403 * gnulib/regex_internal.h: Likewise.
12404 * gnulib/regexec.c: Likewise.
12405 * gnulib/regex.h: Likewise.
12407 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12409 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
12410 unsupported video mode types.
12412 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12414 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
12416 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12418 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
12419 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
12421 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12423 Remove unused grub_vga_get_font.
12425 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
12426 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
12428 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12430 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
12431 * include/grub/misc.h: Likewise.
12433 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12435 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
12436 for which failure is fatal.
12438 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12440 * util/grub-install.in: Use mkdir -p to create grub directory.
12441 * util/i386/efi/grub-install.in: Likewise.
12442 * util/ieee1275/grub-install.in: Likewise.
12444 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12446 * Makefile.in (LEX): new variable.
12448 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12450 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
12451 `=' and added double quotes on operands of this equality test.
12453 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
12455 * Makefile.in (uninstall): Remove a leftover debug echo.
12456 Reported by: Grégoire Sutre
12458 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
12460 MIPS multiboot2 support.
12462 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
12463 (multiboot2_mod_SOURCES): New variable.
12464 (multiboot2_mod_CFLAGS): Likewise.
12465 (multiboot2_mod_LDFLAGS): Likewise.
12466 (multiboot2_mod_ASFLAGS): Likewise.
12467 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
12469 (MULTIBOOT_ENTRY_REGISTER): Likewise.
12470 (MULTIBOOT_MBI_REGISTER): Likewise.
12471 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
12472 (MULTIBOOT_ELF32_MACHINE): Likewise.
12473 (MULTIBOOT_ELF64_MACHINE): Likewise.
12474 * include/grub/mips/multiboot.h: New file.
12475 * include/grub/video.h (grub_video_driver_id): New type
12476 GRUB_VIDEO_DRIVER_SM712.
12477 (grub_video_get_info_and_fini): Export.
12478 (grub_video_get_palette): Likewise.
12479 (grub_video_get_driver_id): Likewise.
12480 * include/multiboot2.h: Resynced with spec.
12481 * loader/i386/multiboot.c: Moved from here ...
12482 * loader/multiboot.c: ... here. All users updated.
12483 (grub_multiboot_boot): Use platform-specific macros.
12484 * loader/i386/multiboot_elfxx.c: Moved from here ...
12485 * loader/multiboot_elfxx.c: ... here. All users updated.
12486 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
12487 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
12488 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
12490 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12492 Import gnulib argp module.
12494 * gnulib/argp-ba.c: New file.
12495 * gnulib/argp-eexst.c: Likewise.
12496 * gnulib/argp-fmtstream.c: Likewise.
12497 * gnulib/argp-fmtstream.h: Likewise.
12498 * gnulib/argp-fs-xinl.c: Likewise.
12499 * gnulib/argp-help.c: Likewise.
12500 * gnulib/argp-namefrob.h: Likewise.
12501 * gnulib/argp-parse.c: Likewise.
12502 * gnulib/argp-pin.c: Likewise.
12503 * gnulib/argp-pv.c: Likewise.
12504 * gnulib/argp-pvh.c: Likewise.
12505 * gnulib/argp-version-etc.c: Likewise.
12506 * gnulib/argp-version-etc.h: Likewise.
12507 * gnulib/argp-xinl.c: Likewise.
12508 * gnulib/argp.h: Likewise.
12510 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12512 * kern/device.c (grub_device_iterate): Clear errors after failed
12515 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12517 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
12518 returned by firmware.
12520 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12522 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
12523 compilation on coreboot and qemu
12525 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
12527 * include/multiboot2.h: Resync with spec.
12529 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
12531 Multiboot2 tag support
12533 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
12534 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
12535 Remove loader/multiboot_loader.c.
12536 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
12537 (grub_multiboot2_real_boot): Likewise.
12538 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
12539 (grub_get_multiboot_mmap_count): New proto.
12540 (grub_fill_multiboot_mmap): Likewise.
12541 (grub_multiboot_set_video_mode): Likewise.
12542 (grub_multiboot_set_console): Likewise.
12543 (grub_multiboot_load): Likewise.
12544 (grub_multiboot_load_elf): Likewise.
12545 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
12546 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
12547 * include/multiboot.h: Resynced with specification.
12548 * include/multiboot2.h: Resynced with specification.
12549 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
12550 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
12551 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
12552 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
12554 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
12555 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
12556 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
12558 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
12560 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
12561 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
12563 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
12564 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
12565 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
12567 * loader/i386/multiboot_mbi2.c: New file.
12569 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
12571 Resync with gnulib.
12573 * Makefile.in (GNULIB_CFLAGS): New variable.
12574 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
12575 (grub_script_check_CFLAGS): New variable.
12576 * gnulib/alloca.h: Resync with gnulib.
12577 * gnulib/error.c: Likewise.
12578 * gnulib/error.h: Likewise.
12579 * gnulib/fnmatch.c: Likewise.
12580 * gnulib/fnmatch_loop.c: Likewise.
12581 * gnulib/getdelim.c: Likewise.
12582 * gnulib/getline.c: Likewise.
12583 * gnulib/getopt.c: Likewise.
12584 * gnulib/getopt1.c: Likewise.
12585 * gnulib/getopt_int.h: Likewise.
12586 * gnulib/gettext.h: Likewise.
12587 * gnulib/progname.c: Likewise.
12588 * gnulib/progname.h: Likewise.
12590 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
12592 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
12593 which is the case with --disabled-nls.
12595 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
12596 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
12597 * util/misc.c: Likewise.
12598 * util/mkisofs/mkisofs.c: Likewise.
12599 * util/mkisofs/mkisofs.h: Likewise.
12601 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
12603 Simplify Apple CC support.
12605 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
12606 Add 0 byte at the end not to have a symbol with empty target.
12607 * mmap/i386/pc/mmap_helper.S: Likewise.
12608 * genmk.rb: Ignore errors 2030 and 2050.
12609 * kern/i386/pc/startup.S: Use LOCAL when possible.
12611 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
12613 Testcase and the fix for final semicolon on cmdline.
12615 * tests/grub_script_final_semicolon.in: New testcase.
12616 * conf/tests.rmk: Rules for the new testcase.
12617 * script/parser.y: Grammar fix.
12619 2010-03-26 BVK Chaitanya <bvk@localhost>
12621 Blank lines testcase for GRUB script.
12623 * tests/grub_script_blanklines.in: New testcase.
12624 * conf/tests.rmk: Rules for the new testcase.
12626 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12628 Don't use __FILE__.
12630 * genmk.rb: Add -DGRUB_FILE to all C targets.
12631 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
12632 * include/grub/list.h: Likewise.
12633 * include/grub/misc.h: Likewise.
12634 * include/grub/mm.h: Likewise.
12635 * include/grub/test.h: Likewise.
12636 * kern/mm.c: Likewise.
12637 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
12639 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12641 Sunpc partitions support.
12643 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
12644 (grub_fstest_SOURCES): Likewise.
12645 (pkglib_MODULES): Add part_sunpc.mod.
12646 (part_sunpc_mod_SOURCES): New variable.
12647 (part_sunpc_mod_CFLAGS): Likewise.
12648 (part_sunpc_mod_LDFLAGS): Likewise.
12649 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
12650 * partmap/sunpc.c: New file.
12652 2010-03-26 BVK Chaitanya <bvk@localhost>
12654 For loop support to GRUB script.
12656 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
12657 (grub_script_create_cmdfor): New function prototype.
12658 (grub_script_execute_cmdfor): New function prototype.
12659 * script/execute.c (grub_script_execute_cmdfor): New function.
12660 * script/parser.y (command): New for command.
12661 (forcmd): New grammar rule.
12662 * script/script.c (grub_script_create_cmdfor): New function.
12663 * util/grub-script-check.c (grub_script_execute_cmdfor): New
12665 * tests/grub_script_for1.in: New testcase.
12666 * conf/tests.rmk: Rules for new testcase.
12668 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12672 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
12673 'partition' is NULL, grub_partition_get_start already does that.
12674 * commands/loadenv.c (check_blocklists): Likewise.
12675 (write_blocklists): Likewise.
12676 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
12677 (grub_fstest_SOURCES): Likewise.
12678 (pkglib_MODULES): Add part_bsd.mod.
12679 (part_bsd_mod_SOURCES): New variable.
12680 (part_bsd_mod_CFLAGS): Likewise.
12681 (part_bsd_mod_LDFLAGS): Likewise.
12682 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
12683 (grub_emu_SOURCES): Likewise.
12684 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12685 * include/grub/bsdlabel.h: New file.
12686 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
12688 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
12689 (grub_partition_map_list): New variable.
12690 (grub_partition_map_register): Inline.
12691 (grub_partition_map_unregister): Likewise.
12692 (FOR_PARTITION_MAPS): New macro.
12693 (grub_partition_map_iterate): Removed.
12694 (grub_partition_get_start): Handle nested partitions.
12695 * include/grub/msdos_partition.h: Remove bsd-related entries.
12696 (grub_pc_partition): Remove.
12697 * kern/disk.c (grub_disk_close): Free partition data.
12698 (grub_disk_adjust_range): Handle nested partitions.
12699 * kern/partition.c (grub_partition_map_probe): New function.
12700 (grub_partition_probe): Parse name to number, handle subpartitions.
12701 (get_partmap): New function.
12702 (grub_partition_iterate): Handle subpartitions.
12703 (grub_partition_get_name): Likewise.
12704 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
12705 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
12706 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
12707 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
12709 (acorn_partition_map_probe): Remove.
12710 (acorn_partition_map_get_name): Likewise.
12711 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
12713 Set 'index' to 0 since there can be only one partition entry per sector.
12714 (amiga_partition_map_probe): Remove.
12715 (amiga_partition_map_get_name): Likewise.
12716 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
12718 Set 'offset' and 'index' to real positions of partitions.
12719 (apple_partition_map_probe): Remove.
12720 (apple_partition_map_get_name): Likewise.
12721 * partmap/bsdlabel.c: New file.
12722 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
12724 Allocate 'data' so it can be correctly freed.
12725 Set 'index' to offset inside sector.
12726 (gpt_partition_map_probe): Remove.
12727 (gpt_partition_map_get_name): Likewise.
12728 * partmap/msdos.c (grub_partition_parse): Remove.
12729 (pc_partition_map_iterate): Don't force raw access.
12731 Make 'ext_offset' a local variable.
12732 (pc_partition_map_probe): Remove.
12733 (pc_partition_map_get_name): Remove.
12734 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
12736 (sun_partition_map_probe): Remove.
12737 (sun_partition_map_get_name): Likewise.
12738 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
12739 (grub_pcpart_type): Likewise.
12740 * util/hostdisk.c (open_device): Handle new numbering scheme.
12741 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
12742 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
12743 * util/grub-probe.c (probe_partmap): Handle nested paritions.
12744 * util/grub-install.in: Insert all subpartition modules.
12745 * util/ieee1275/grub-install.in: Likewise.
12747 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
12749 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
12752 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
12754 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
12756 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
12758 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
12759 match where 'make install' puts them.
12760 * util/i386/efi/grub-install.in: Likewise.
12762 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
12764 * .bzrignore: Add gentrigtables, grub-script-check,
12765 grub_script_check_init.c, grub_script_check_init.h, and
12768 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
12770 * kern/parser.c: Indented.
12772 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
12774 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
12776 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
12778 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
12779 alpha_mask_size == 0 case.
12781 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
12783 GRUB shell lexer and parser improvements.
12785 * conf/any-emu.rmk: Build rule updates.
12786 * conf/common.rmk: Likewise.
12787 * conf/i386-coreboot.rmk: Likewise.
12788 * conf/i386-efi.rmk: Likewise.
12789 * conf/i386-ieee1275.rmk: Likewise.
12790 * conf/i386-pc.rmk: Likewise.
12791 * conf/powerpc-ieee1275.rmk: Likewise.
12792 * conf/x86_64-efi.rmk: Likewise.
12794 * configure.ac: Configure check for flex.
12796 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
12798 (grub_lexer_param): Struct member updates.
12799 (grub_parser_param): Likewise.
12800 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
12801 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
12802 (grub_script_lexer_init): Prototype update.
12803 (grub_script_lexer_record_start): Likewise.
12804 (grub_script_lexer_record_stop): Likewise.
12805 (grub_script_lexer_yywrap): New function prototype.
12806 (grub_script_lexer_fini): Likewise.
12807 (grub_script_execute_argument_to_string): Removed by...
12808 (grub_script_execute_argument_to_argv): ...better version.
12810 * script/execute.c (ROUND_UPTO): New macro.
12811 (grub_script_execute_cmdline): Out of memory fixes.
12812 (grub_script_execute_menuentry): Likewise.
12813 (grub_script_execute_argument_to_string): Removed. Update all
12815 (grub_script_execute_argument_to_argv): ...better version.
12816 * script/function.c (grub_script_function_create): Use
12817 grub_script_execute_argument_to_argv instead of
12818 grub_script_execute_argument_to_string.
12820 * script/lexer.c (check_varstate): Removed.
12821 (check_textstate): Removed.
12822 (grub_script_lexer_record_start): Likewise.
12823 (grub_script_lexer_record_stop): Likewise.
12824 (recordchar): Replaced with...
12825 (grub_script_lexer_record): ...new function.
12826 (nextchar): Removed.
12827 (grub_script_lexer_init): Rewritten.
12828 (grub_script_yylex): Rewritten.
12829 (append_newline): New function.
12830 (grub_script_lexer_yywrap): New function.
12831 (grub_script_lexer_fini): New function.
12832 (grub_script_yyerror): Sets error flag.
12834 * script/yylex.l: New file.
12835 (grub_lexer_yyfree): Wrapper for flex yyffre.
12836 (grub_lexer_yyalloc): Likewise.
12837 (grub_lexer_yyrealloc): Likewise.
12838 * script/parser.y: Refactored.
12840 * script/script.c (grub_script_arg_add): Out of memory fixes.
12841 (grub_script_add_arglist): Likewise.
12842 (grub_script_create_cmdline): Likewise.
12843 (grub_script_create_cmdmenu): Likewise.
12844 (grub_script_add_cmd): Likewise.
12845 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
12846 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
12849 * tests/grub_script_echo1.in: New testcase.
12850 * tests/grub_script_vars1.in: New testcase.
12851 * tests/grub_script_echo_keywords.in: New testcase.
12853 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
12855 Remove some redundancy in build system.
12857 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
12858 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
12859 (TARGET_LDFLAGS): Add -nostdlib.
12860 (TARGET_IMG_LDFLAGS): Likewise.
12861 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
12862 anything since mmap isn't available.
12863 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
12865 (pkglib_MODULES): Remove reboot.mod.
12866 (reboot_mod_SOURCES): Removed.
12867 (reboot_mod_CFLAGS): Likewise.
12868 (reboot_mod_LDFLAGS): Likewise.
12869 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
12870 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
12871 (DEFSYMFILES): Add kernel_syms.lst.
12872 (kernel_img_HEADERS): Add common headers.
12873 (symlist.c): New target.
12874 (kernel_syms.lst): Likewise.
12875 (pkglib_MODULES): Add memdisk.mod.
12876 (memdisk_mod_SOURCES): New variable.
12877 (memdisk_mod_CFLAGS): Likewise.
12878 (memdisk_mod_LDFLAGS): Likewise.
12879 (pkglib_MODULES): Add reboot.mod.
12880 (reboot_mod_SOURCES): New variable.
12881 (reboot_mod_CFLAGS): Likewise.
12882 (reboot_mod_LDFLAGS): Likewise.
12883 (pkglib_MODULES): Add date.mod.
12884 (date_mod_SOURCES): New variable.
12885 (date_mod_CFLAGS): Likewise.
12886 (date_mod_LDFLAGS): Likewise.
12887 (pkglib_MODULES): Add datehook.mod.
12888 (datehook_mod_SOURCES): New variable.
12889 (datehook_mod_CFLAGS): Likewise.
12890 (datehook_mod_LDFLAGS): Likewise.
12891 (pkglib_MODULES): Add lsmmap.mod.
12892 (lsmmap_mod_SOURCES): New variable.
12893 (lsmmap_mod_CFLAGS): Likewise.
12894 (lsmmap_mod_LDFLAGS): Likewise.
12895 (pkglib_MODULES): Add boot.mod.
12896 (boot_mod_SOURCES): New variable.
12897 (boot_mod_CFLAGS): Likewise.
12898 (boot_mod_LDFLAGS): Likewise.
12899 * conf/i386-coreboot.rmk: Removed redundant parts.
12900 * conf/i386-ieee1275.rmk: Likewise.
12901 * conf/i386-pc.rmk: Likewise.
12902 * conf/mips-yeeloong.rmk: Likewise.
12903 * conf/mips.rmk: Likewise.
12904 * conf/powerpc-ieee1275.rmk: Likewise.
12905 * conf/sparc64-ieee1275.rmk: Likewise.
12906 * conf/x86_64-efi.rmk: Likewise.
12907 * conf/i386-coreboot.rmk: Moved qemu parts ..
12908 * conf/i386-qemu.rmk: ... here
12909 * conf/i386-efi.rmk: Moved common parts to...
12910 * conf/x86-efi.rmk: ... here.
12911 * conf/i386.rmk: Added modules common to all x86 variants.
12912 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
12913 * disk/memdisk.c: Remove grub/machine/kernel.h.
12914 * gensymlist.sh.in: Include symbol.h.
12915 * hook/datehook.c: Correct module name.
12916 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
12917 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
12918 * include/grub/i386/efi/serial.h: New file.
12919 * include/grub/x86_64/efi/serial.h: Likewise.
12920 * util/time.c: Likewise.
12921 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
12923 2010-03-14 Colin King <colin.king@ubuntu.com>
12924 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
12926 Shrink the pre-partition-table part of boot.img by eight bytes.
12928 * boot/i386/pc/boot.S (ERR): New macro.
12929 (chs_mode): Use ERR.
12930 (geometry_error): Likewise.
12931 (hd_probe_error): Remove. This is only used once, so we wrwite
12933 (read_error): Instead of printing read_error_string, just set up
12934 %si and fall through to ...
12935 (error_message): ... this new function, also used by ERR.
12937 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
12939 Speed up consecutive hostdisk operations on the same device.
12941 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
12942 (grub_util_biosdisk_open): Initialise disk->data.
12943 (struct linux_partition_cache): New structure.
12944 (linux_find_partition): Cache partition start positions; these are
12945 expensive to compute on every read and write.
12946 (open_device): Cache open file descriptor in disk->data, so that we
12947 don't have to reopen it and flush the buffer cache for consecutive
12948 operations on the same device.
12949 (grub_util_biosdisk_close): New function.
12950 (grub_util_biosdisk_dev): Set `close' member.
12952 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
12953 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
12954 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
12955 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
12956 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
12958 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
12960 Compile parts of grub-emu as modules.
12962 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
12963 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
12964 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
12965 (all-local): Add $(GRUB_EMU).
12966 (install-local): Install $(GRUB_EMU).
12967 (uninstall): Uninstall $(GRUB_EMU).
12968 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
12969 * kern/dl.c: Likewise.
12970 * commands/sleep.c: Not include machine/time.h.
12971 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
12972 (COMMON_CFLAGS): Likewise.
12973 (sbin_UTILITIES): Remove grub-emu.
12974 (grub_emu_SOURCES): Removed.
12975 (kernel_img_RELOCATABLE): New variable.
12976 (pkglib_PROGRAMS): Add kernel.img.
12977 (kernel_img_SOURCES): New variable
12978 (kernel_img_CFLAGS): Likewise.
12979 (kernel_img_LDFLAGS): Likewise.
12980 (TARGET_NO_STRIP): Likewise.
12981 (TARGET_NO_DYNAMIC_MODULES): Likewise.
12982 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
12983 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
12984 (grub-emu): New target.
12985 (GRUB_EMU): New variable.
12986 * configure.ac: Whitelist -emu as possible x86_64 architecture.
12987 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
12988 * loader/xnu.c: Likewise.
12989 * include/grub/pci.h: Likewise.
12990 * genemuinit.sh: New file.
12991 * genemuinitheader.sh: Likewise.
12992 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
12993 Support TARGET_NO_DYNAMIC_MODULES.
12994 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
12995 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
12996 * disk/loopback.c: Likewise.
12997 * font/font_cmd.c: Likewise.
12998 * partmap/acorn.c: Likewise.
12999 * partmap/amiga.c: Likewise.
13000 * partmap/apple.c: Likewise.
13001 * partmap/gpt.c: Likewise.
13002 * partmap/msdos.c: Likewise.
13003 * partmap/sun.c: Likewise.
13004 * parttool/msdospart.c: Likewise.
13005 * term/gfxterm.c: Likewise.
13006 * video/bitmap.c: Likewise.
13007 * video/readers/jpeg.c: Likewise.
13008 * video/readers/png.c: Likewise.
13009 * video/readers/tga.c: Likewise.
13010 * video/video.c: Likewise.
13011 * util/grub-emu.c (read_command_list): Removed.
13012 (main): Don't call util_init_nls.
13013 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
13014 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
13016 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13018 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
13019 date.mod, datehook.mod.
13020 (datetime_mod_SOURCES): New variable.
13021 (datetime_mod_CFLAGS): Likewise.
13022 (datetime_mod_LDFLAGS): Likewise.
13023 (date_mod_SOURCES): Likewise.
13024 (date_mod_CFLAGS): Likewise.
13025 (date_mod_LDFLAGS): Likewise.
13026 (datehook_mod_SOURCES): Likewise.
13027 (datehook_mod_CFLAGS): Likewise.
13028 (datehook_mod_LDFLAGS): Likewise.
13029 * conf/sparc64-ieee1275.rmk: Likewise.
13030 * lib/ieee1275/datetime.c: New file.
13032 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13034 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
13035 (ieee1275_fb_mod_SOURCES): New variable.
13036 (ieee1275_fb_mod_CFLAGS): Likewise.
13037 (ieee1275_fb_mod_LDFLAGS): Likewise.
13038 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
13040 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
13041 (HEAP_MAX_ADDR): Likewise.
13042 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
13044 Correct stop condition.
13045 (grub_ieee1275_devices_iterate): New function.
13046 * video/ieee1275.c: New file.
13048 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13050 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
13052 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
13054 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
13055 SCRATCH_PAD_DISKBOOT as scratch.
13056 (bootit): Pass Openfirmware pointer in %o4.
13057 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
13059 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
13060 with util/grub-mkrawimage.c.
13061 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
13062 * include/grub/aout.h (AOUT_MID_SUN): New definition.
13063 (grub_aout_get_type) [GRUB_UTIL]: Removed.
13064 (grub_aout_load) [GRUB_UTIL]: Likewise.
13065 * include/grub/kernel.h (grub_modules_get_end): New proto.
13066 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
13067 (SCRATCH_PAD_BOOT): New definition.
13068 (SCRATCH_PAD_DISKBOOT): Likewise.
13069 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
13070 * include/grub/sparc64/ieee1275/ieee1275.h
13071 (grub_ieee1275_original_stack): New variable
13072 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
13074 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
13075 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
13076 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
13077 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
13078 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
13079 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
13080 (grub_platform_image_format_t): New type.
13081 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
13082 * kern/main.c (grub_modules_get_end)
13083 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
13084 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
13085 (codestart): Switch stacks.
13086 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
13088 (grub_heap_init): Use grub_modules_get_end.
13089 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
13091 * util/grub-mkrawimage.c (generate_image): Support sparc64.
13093 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
13095 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
13097 * util/grub-mkrescue.in: Base ISO UUID on UTC.
13099 2010-03-08 Matt Kraai <kraai@ftbfs.org>
13101 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
13104 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
13106 * genmoddep.awk: Output all missing symbols and not only first.
13108 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13110 * NEWS: Put the date of 1.98 release.
13112 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13114 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
13117 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13119 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
13120 completition in the middle of string.
13122 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13124 * util/grub-mkrescue.in: Use mktemp with explicit template.
13126 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13128 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
13130 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13132 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
13135 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
13137 Fix FreeBSD compilation.
13139 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
13140 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
13142 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
13144 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
13146 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13148 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
13150 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13152 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
13154 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
13156 Support relative image path in theme file.
13158 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
13159 (image_set_property): Handle theme_dir and relative path.
13161 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13163 * configure.ac: Alias amd64 to x86_64.
13165 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13167 * NEWS: mention multiboot on EFI.
13169 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13171 * kern/main.c (grub_load_modules): Handle errors from init functions of
13174 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13176 * normal/autofs.c (autoload_fs_module): Handle errors.
13178 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13180 Disable linux.mod on qemu-mips since it's not functional and leads
13181 to compilation failure.
13183 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
13184 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
13185 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
13186 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
13187 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
13188 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
13189 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
13190 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
13191 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
13192 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
13193 Reported by: BVK Chaitanya
13195 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
13197 * INSTALL: Add gettext as a dependency and add qemu to a new section
13198 "Prerequisites for make-check".
13200 2010-03-04 Christian Franke <franke@computer.org>
13202 * util/grub-pe2elf.c: Add missing include "progname.h".
13204 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13206 * normal/crypto.c (read_crypto_list): Fix a typo.
13207 Reported by: Seth Goldberg.
13209 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13211 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
13212 Reported by: Seth Goldberg.
13214 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13216 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
13219 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13221 * genmk.rb: Remove terminal*.lst in make clean.
13222 Reported by: Seth Goldberg.
13224 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13226 * util/i386/efi/grub-install.in: Copy gettext files.
13228 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13230 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
13232 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13234 Wait for user entry basing on presence of output rather than on errors.
13236 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
13237 (grub_install_newline_hook): Likewise.
13238 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
13239 * normal/menu.c (show_menu): Check line_counter to determine presence
13241 * normal/term.c (grub_normal_line_counter): New variable.
13242 (grub_normal_get_line_counter): New function.
13243 (grub_install_newline_hook): Likewise.
13245 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13247 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
13249 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13251 * configure.ac: Update version to 1.98.
13253 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
13255 * util/grub.d/10_linux.in (linux_entry): Don't default to
13256 gfxpayload=keep if Linux doesn't support video handover.
13258 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
13260 Don't compile video modules on yeeloong since video subsystem is part
13263 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
13264 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
13265 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
13266 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
13267 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
13268 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
13269 * include/grub/bitmap_scale.h: Likewise.
13270 * include/grub/bufio.h: Likewise.
13271 * include/grub/font.h: Likewise.
13272 * include/grub/gfxterm.h: Likewise.
13273 * include/grub/video.h: Likewise.
13274 * include/grub/vbe.h: Don't include video_fb.h.
13275 * video/i386/pc/vbe.c: Include video_fb.h.
13276 * commands/i386/pc/vbetest.c: Include video.h.
13278 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
13280 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
13281 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
13282 default entry if GRUB_SAVEDEFAULT=true. This allows using
13283 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
13284 saving a new default on every boot.
13286 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13288 * normal/crypto.c (read_crypto_list): Fix a memory leak.
13289 * normal/term.c (read_terminal_list): Likewise.
13290 * normal/main.c (grub_normal_init_page): Likewise.
13291 (grub_normal_read_line_real): Likewise.
13293 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13295 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
13297 Reported by: Seth Goldberg.
13299 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
13301 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
13302 duplicate declaration of `start'.
13304 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
13306 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
13308 Reported by: Georgy Buranov
13310 2010-02-20 Carles Pina i Estany <carles@pina.cat>
13312 * util/grub-mkrawimage.c (usage): Change string formatting to
13315 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
13317 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
13320 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
13322 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
13323 Reported by: Michael Suchanek.
13325 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13327 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
13328 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
13330 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
13332 Remove any reference to non-free fonts.
13334 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
13335 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
13336 uses non-free components.
13337 * font/font.c (grub_font_get_name): Remove example name.
13338 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
13339 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
13340 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
13341 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
13343 2010-02-16 Georgy Buranov <gburanov@gmail.com>
13345 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
13347 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
13349 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
13351 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
13353 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
13355 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
13357 * gensymlist.sh.in: Use TARGET_CC instead of CC.
13359 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13361 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
13362 * docs/grub.texi (Command-line and menu entry commands): Document play
13365 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13367 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
13368 parse arguments as inline tempo and notes. Move code for playing notes
13370 (play): ... new function.
13372 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13374 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
13375 grub_uint16_t instead of short.
13376 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
13377 disk from little endian to cpu endianness.
13379 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
13381 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
13382 GRUB_TICKS_PER_SECOND instead of 120.
13384 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13386 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
13387 escape sequence after \e.
13389 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13391 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
13392 non-ASCII characters.
13394 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13396 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
13397 set root in single quotes to prevent \, from being unescaped.
13399 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13401 Prevent unknown commands from stopping menuentry execution.
13403 * script/execute.c (grub_script_execute_cmdline): Print error after
13406 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13408 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
13409 Reported by: Pavel Pisa.
13411 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13413 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
13415 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13417 Merge grub_ieee1275_map_physical into grub_map and rename to
13420 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
13421 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
13423 * kern/ieee1275/openfw.c (grub_map): Rename to ...
13424 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
13426 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
13428 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13430 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
13431 opening and not after.
13433 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13435 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
13438 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13440 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
13441 (alloc_phys): Use ALIGN_UP instead of align_addr.
13443 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13445 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
13447 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13449 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
13451 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13453 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
13456 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13458 Fix over-4GiB seek on sparc64.
13460 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
13461 Replace pos_i and pos_lo with pos. All users updated.
13462 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
13464 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
13466 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
13469 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13471 * util/grub-mkrawimage.c (main): Call set_program_name.
13473 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13475 Properly align 64-bit targets.
13477 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
13478 (generate_image): Use ALIGN_ADDR.
13480 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13482 Properly create cross-endian images.
13484 * include/grub/types.h (grub_host_to_target_addr): New macro
13485 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
13487 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13489 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
13491 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13493 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
13495 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
13496 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
13497 (grub_linux_boot): Divide by 64K when on VESA.
13499 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13501 Support GRUB_GFXPAYLOAD_LINUX.
13503 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
13504 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
13506 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13508 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
13509 to show messages instead of discarding them.
13510 Process errors after executing command and not before. Keep old method
13513 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13515 * configure.ac: Check for ft2build.h.
13517 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13519 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
13521 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13523 * genkernsyms.sh.in: Use TARGET_CC.
13525 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
13529 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13531 * include/grub/multiboot2.h: Remove leftover file.
13532 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
13533 * include/grub/partition.h [GRUB_UTIL]: Likewise.
13535 2010-02-07 Yves Blusseau <blusseau@zetam.org>
13537 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
13539 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13541 Fix warnings in grub-emu when compiling with maximum warning options.
13543 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
13544 (grub_arch_modules_addr): Return 0 and not NULL.
13545 * util/misc.c (ENABLE_RELOCATABLE): New definition.
13546 (xstrdup): Use newstr instead of dup.
13547 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
13548 of disk to dsk to avoid shadowing.
13549 (find_free_slot): Fix prototype.
13550 * util/getroot.c (grub_util_is_dmraid): Make static.
13551 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
13552 Add missing prototype.
13553 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
13555 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13557 * loader/i386/linux.c (grub_linux_setup_video): Handle error
13560 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13562 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
13565 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13567 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
13568 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
13569 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
13570 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
13571 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
13572 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
13574 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13576 * include/grub/err.h (grub_err_printf): Don't export.
13578 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13580 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
13582 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13584 * include/grub/i18n.h (grub_gettext_dummy): Removed.
13585 * kern/misc.c (grub_gettext_dummy): Make static.
13587 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13589 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
13591 * kern/term.c (grub_putchar): Likewise.
13593 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13595 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
13596 buggy hook call and memory leak.
13598 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13600 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
13602 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13604 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
13606 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13608 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
13610 Return grub_errno on allocation error.
13612 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13614 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
13616 2010-02-06 Yves Blusseau <blusseau@zetam.org>
13618 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
13619 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
13621 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13623 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
13625 (grub_pxefs_open): Likewise.
13627 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
13629 * util/grub.d/10_hurd.in: Add --class information to menuentries.
13630 * util/grub.d/10_kfreebsd.in: Likewise.
13631 * util/grub.d/10_linux.in: Likewise.
13633 2010-02-06 Colin D Bennett <colin@gibibit.com>
13635 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
13636 (gfxmenu_mod_SOURCES): New variable.
13637 (gfxmenu_mod_CFLAGS): Likewise.
13638 (gfxmenu_mod_LDFLAGS): Likewise.
13639 * include/grub/term.h (grub_term_set_current_output): Declare
13641 * docs/gfxmenu-theme-example.txt: New file.
13642 * gfxmenu/gfxmenu.c: Likewise.
13643 * gfxmenu/gui_box.c: Likewise.
13644 * gfxmenu/gui_canvas.c: Likewise.
13645 * gfxmenu/gui_circular_progress.c: Likewise.
13646 * gfxmenu/gui_image.c: Likewise.
13647 * gfxmenu/gui_label.c: Likewise.
13648 * gfxmenu/gui_list.c: Likewise.
13649 * gfxmenu/gui_progress_bar.c: Likewise.
13650 * gfxmenu/gui_string_util.c: Likewise.
13651 * gfxmenu/gui_util.c: Likewise.
13652 * gfxmenu/icon_manager.c: Likewise.
13653 * gfxmenu/model.c: Likewise.
13654 * gfxmenu/named_colors.c: Likewise.
13655 * gfxmenu/theme_loader.c: Likewise.
13656 * gfxmenu/view.c: Likewise.
13657 * gfxmenu/widget-box.c: Likewise.
13658 * include/grub/gfxmenu_model.h: Likewise.
13659 * include/grub/gfxmenu_view.h: Likewise.
13660 * include/grub/gfxwidgets.h: Likewise.
13661 * include/grub/gui.h: Likewise.
13662 * include/grub/gui_string_util.h: Likewise.
13663 * include/grub/icon_manager.h: Likewise.
13665 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13667 Agglomerate scrolling in gfxterm.
13669 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
13670 (grub_virtual_screen_setup): Initialise 'total_screen'.
13671 (write_char): Split to ...
13672 (paint_char): ... this ...
13673 (write_char): ... and this.
13674 (paint_char): Handle delayed scrolling.
13675 (draw_cursor): Likewise.
13676 (scroll_up): Split to ...
13677 (real_scroll): ... this ...
13678 (scroll_up): ... and this.
13679 (real_scroll): Handle multi-line scroll and draw below-the-bottom
13681 (grub_gfxterm_refresh): Call real_scroll.
13683 2010-02-06 Colin D Bennett <colin@gibibit.com>
13685 * include/grub/misc.h (grub_iscntrl): New inline function.
13686 (grub_isalnum): Likewise.
13687 (grub_strtol): Likewise.
13689 2010-02-06 Colin D Bennett <colin@gibibit.com>
13691 * normal/menu_text.c (get_entry_number): Move from here ...
13692 * normal/menu.c (get_entry_number): ... moved here.
13693 * include/grub/menu.h (grub_menu_get_default_entry_index):
13695 * normal/menu.c (grub_menu_get_default_entry_index): New function.
13696 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
13697 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
13698 (grub_menu_viewer_should_return): Likewise.
13699 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
13700 * normal/menu_text.c (run_menu): Enable menu switching.
13701 * normal/menu_viewer.c (should_return): New variable.
13702 (menu_viewer_changed): Likewise.
13703 (grub_menu_viewer_show_menu): Handle menu viewer changes.
13704 (grub_menu_viewer_should_return): New function.
13705 (menuviewer_write_hook): Likewise.
13706 (grub_menu_viewer_init): Likewise.
13708 2010-02-06 Colin D Bennet <colin@gibibit.com>
13709 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13711 Support for gfxterm in a window.
13713 * include/grub/gfxterm.h: New file.
13714 * include/grub/video.h (struct grub_video_rect): New declaration.
13715 (grub_video_rect_t): Likewise.
13716 * term/gfxterm.c (struct grub_gfxterm_window): New type.
13717 (refcount): New variable.
13718 (render_target): Likewise.
13719 (window): Likewise.
13720 (repaint_callback): Likewise.
13721 (grub_virtual_screen_setup): Use 'render_target'.
13722 (init_window): New function.
13723 (grub_gfxterm_init_window): Likewise.
13724 (grub_gfxterm_init): Check reference counter.
13726 (destroy_window): New function.
13727 (grub_gfxterm_destroy_window): Likewise.
13728 (grub_gfxterm_fini): Check reference counter.
13729 Use destroy_window.
13730 (redraw_screen_rect): Restore viewport.
13731 Use 'render_target' and 'window'.
13732 Call 'repaint_callback'.
13733 (write_char): Use 'render_target'.
13734 (draw_cursor): Likewise.
13735 (scroll_up): Restore viewport.
13736 Use 'render_target' and 'window'.
13737 Call 'repaint_callback'.
13738 (grub_gfxterm_cls): Likewise.
13739 (grub_gfxterm_refresh): Use 'window'.
13740 (grub_gfxterm_set_repaint_callback): New function.
13741 (grub_gfxterm_background_image_cmd): Use 'window'.
13742 (grub_gfxterm_get_term): New function.
13743 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
13745 2010-02-06 Colin D Bennett <colin@gibibit.com>
13747 Bitmap scaling support.
13749 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
13750 (bitmap_scale_mod_SOURCES): New variable.
13751 (bitmap_scale_mod_CFLAGS): Likewise.
13752 (bitmap_scale_mod_LDFLAGS): Likewise.
13753 * include/grub/bitmap_scale.h: New file.
13754 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
13755 (background_image_cmd_options): New variable.
13756 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
13757 (cmd): Rename and change type to ...
13758 (background_image_cmd_handle): ... this. All users updated.
13759 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
13760 * video/bitmap_scale.c: New file.
13762 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13766 * Makefile.in (LIBSDL): New variable.
13767 (enable_grub_emu_sdl): Likewise.
13768 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
13769 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
13770 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
13771 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
13772 * util/sdl.c: New file.
13774 2010-02-06 Colin D Bennett <colin@gibibit.com>
13775 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13777 Double buffering support.
13779 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
13780 * include/grub/video.h: Update comment.
13781 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
13783 (grub_video_fb_doublebuf_blit_init): New prototype.
13784 * term/gfxterm.c (scroll_up): Support double buffering.
13785 (grub_gfxterm_refresh): Likewise.
13786 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
13787 (grub_video_fb_doublebuf_blit_init): Likewise.
13788 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
13789 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
13790 'displayed_page', 'render_page' and 'update_screen'.
13791 (grub_video_vbe_fini): Free offscreen buffer.
13792 (doublebuf_pageflipping_commit): New function.
13793 (doublebuf_pageflipping_update_screen): Likewise.
13794 (doublebuf_pageflipping_init): Likewise.
13795 (double_buffering_init): Likewise.
13796 (grub_video_vbe_setup): Enable doublebuffering.
13797 (grub_video_vbe_swap_buffers): Implement.
13798 (grub_video_vbe_set_active_render_target): Handle double buffering.
13799 (grub_video_vbe_get_active_render_target): Likewise.
13800 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
13801 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
13802 (grub_video_vbe_enable_double_buffering): Likewise.
13803 (grub_video_vbe_swap_buffers): Use update_screen.
13804 (grub_video_set_mode): Use double buffering.
13806 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
13808 * maintainance/gentrigtables.py: Remove.
13809 * lib/trig.c: Likewise.
13811 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
13813 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
13815 (trigtables.c): New rule.
13816 (gentrigtables): Likewise.
13817 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
13819 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
13821 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
13824 2010-02-06 Colin D Bennet <colin@gibibit.com>
13826 Trigonometry support.
13828 * include/grub/trig.h: New file.
13829 * lib/trig.c: Likewise.
13830 * maintainance/gentrigtables.py: Likewise.
13831 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
13832 (trig_mod_SOURCES): New variable.
13833 (trig_mod_CFLAGS): Likewise.
13834 (trig_mod_LDFLAGS): Likewise.
13836 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13838 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
13841 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13843 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
13846 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13848 * util/hostdisk.c (open_device): Don't use partition device when reading
13849 before the partition.
13850 (grub_util_biosdisk_read): Don't read from partition and before the
13851 partition in single operation.
13852 (grub_util_biosdisk_write): Don't write to partition and before the
13853 partition in single operation.
13855 2010-02-03 Torsten Landschoff <torsten@debian.org>
13857 * kern/disk.c (grub_disk_read): Fix offset computation when reading
13860 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13862 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
13864 (grub_biosdisk_write): Refuse to write to CDROM.
13866 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13868 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
13870 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13872 * font/font.c (find_glyph): Check that bmp_idx is available before
13874 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
13875 with (font == NULL).
13877 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
13879 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
13881 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
13883 * include/grub/script_sh.h (sourcecode): Add const qualifier.
13884 * util/grub-script-check.c (getline): Fix empty lines case.
13886 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
13888 * Makefile.in (check): Exit with fail status when one of the tests
13890 * tests/example_functional_test.c (example_test): Fix reversed assert.
13891 * tests/example_unit_test.c (example_test): Likewise.
13893 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
13895 * util/grub.d/10_linux.in: This script does not use any of the
13896 contents of gettext.sh, only the external command `gettext', so stop
13897 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
13898 the same prefix as GRUB.)
13899 * util/grub.d/10_kfreebsd.in: Likewise.
13901 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13903 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
13906 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13908 * kern/disk.c (grub_disk_read): Fix offset computation when reading
13911 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13913 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
13914 having a 4KiB and not 32KiB buffer size.
13916 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
13918 * util/hostfs.c: Include `<errno.h>'.
13919 (grub_hostfs_read): Handle errors from fseeko() and fread().
13921 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
13923 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
13924 loop when using read hooks on files whose size isn't sector-aligned.
13926 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
13928 Remove unused parameter.
13930 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
13931 (grub_iso9660_open): Remove initialization of `data->length'.
13933 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
13935 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
13936 memleak conditions.
13938 2010-01-27 Carles Pina i Estany <carles@pina.cat>
13940 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
13941 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
13943 2010-01-26 Carles Pina i Estany <carles@pina.cat>
13945 * util/bin2h.c (usage): Fix warning (space after backslash).
13947 2010-01-26 Carles Pina i Estany <carles@pina.cat>
13949 * font/font.c: Include `grub/fontformat.h.
13950 Remove font file format constants.
13951 (grub_font_load): Use the new macros.
13952 * include/grub/fontformat.h: New file.
13953 * util/grub-mkfont.c: Include `grub/fontformat.c'.
13954 (write_font_pf2): Use the new macros.
13956 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
13958 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
13961 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
13963 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
13965 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
13966 (_start): Macroify `0x7F'.
13968 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
13969 (make_install_device): Use "(pxe)" as fallback prefix when booting
13972 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13974 * configure.ac: Reset LIBS after check for libgcc symbols.
13976 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
13978 * util/hostdisk.c (open_device): Add trailing newline to debug
13981 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
13983 * configure.ac: Check for `limits.h'.
13984 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
13986 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
13988 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
13989 capitalize error strings.
13991 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
13993 * util/grub.d/10_hurd.in: Add a recovery mode.
13995 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
13997 * configure.ac: Check for libgcc symbols with -nostdlib.
13999 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
14001 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
14003 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14005 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
14006 stack since heap may be unavailable at that point.
14007 (grub_ofconsole_gotoxy): Likewise.
14009 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14011 * configure.ac: Check for _restgpr_14_x.
14012 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
14013 and _savegpr_* prototypes.
14015 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
14017 Use generic grub_reboot() for i386-efi.
14019 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
14020 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
14021 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
14023 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14025 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
14026 presence of "prefix" variable as it breaks when normal.mod is
14029 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
14031 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
14032 stack since heap is unavailable at that point.
14034 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
14036 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
14037 (grub_freebsd_bootinfo): Rewritten.
14038 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
14040 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
14042 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
14044 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
14046 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
14049 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
14051 * util/misc.c (make_system_path_relative_to_its_root): Change the work
14052 around for handling "/" to the correct fix. Fix a memory leak. Use
14053 xstrdup instead of strdup.
14055 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14057 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
14059 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14061 Optimise glyph lookup by Basic Multilingual Plane lookup array.
14063 * font/font.c (struct grub_font): New member 'bmp_idx'.
14064 (font_init): Initialise 'bmp_idx'.
14065 (load_font_index): Fill 'bmp_idx'.
14066 (find_glyph): Make inline. Use bmp_idx for BMP characters.
14068 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14070 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
14073 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14075 Move context handling out of the kernel.
14077 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
14078 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
14079 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
14080 * conf/i386-efi.rmk: Likewise.
14081 * conf/i386-ieee1275.rmk: Likewise.
14082 * conf/i386-pc.rmk: Likewise.
14083 * conf/powerpc-ieee1275.rmk: Likewise.
14084 * conf/sparc64-ieee1275.rmk: Likewise.
14085 * conf/x86_64-efi.rmk: Likewise.
14086 * include/grub/env.h: Include grub/menu.h.
14087 (grub_env_var_type): Removed.
14088 (grub_env_var): Replaced field 'type' with 'global'.
14089 (grub_env_find): New prototype.
14090 (grub_env_context_open): Remove EXPORT_FUNC.
14091 (grub_env_context_close): Likewise.
14092 (grub_env_export): Likewise.
14093 (grub_env_set_data_slot): Removed.
14094 (grub_env_get_data_slot): Likewise.
14095 (grub_env_unset_data_slot): Likewise.
14096 (grub_env_unset_menu): New prototype.
14097 (grub_env_set_menu): Likewise.
14098 (grub_env_get_menu): Likewise.
14099 * include/grub/env_private.h: New file.
14100 * include/grub/normal.h (grub_context_init): New prototype.
14101 (grub_context_fini): Likewise.
14102 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
14103 * normal/context.c (grub_cmd_export): ... to here.
14104 * kern/env.c: Include env_private.h.
14105 (HASHSZ): Moved to include/grub/env_private.h.
14106 (grub_env_context): Likewise.
14107 (grub_env_sorted_var): Likewise.
14108 (current_context): Renamed from this ...
14109 (grub_current_context): ...to this. 'static' removed. All users updated.
14110 (grub_env_find): Removed 'static'.
14111 (grub_env_context_open): Moved to normal/context.c.
14112 (grub_env_context_close): Likewise.
14113 (grub_env_export): Likewise.
14114 (mangle_data_slot_name): Removed.
14115 (grub_env_set_data_slot): Likewise.
14116 (grub_env_get_data_slot): Likewise.
14117 (grub_env_unset_data_slot): Likewise.
14118 * kern/main.c (grub_set_root_dev): Don't export root.
14119 It will be done later.
14120 (grub_main): Don't export prefix.
14121 It will be done later.
14122 * normal/context.c: New file.
14123 * normal/main.c (free_menu): Use grub_env_unset_menu.
14124 (grub_normal_add_menu_entry): Use grub_env_get_menu.
14125 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
14126 (GRUB_MOD_INIT(normal)): Call grub_context_init.
14127 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
14129 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14133 * commands/setpci.c: New file.
14134 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
14135 (setpci_mod_SOURCES): New variable.
14136 (setpci_mod_CFLAGS): Likewise.
14137 (setpci_mod_LDFLAGS): Likewise.
14139 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14141 Byte-addressable PCI configuration space.
14143 * bus/pci.c (grub_pci_make_address): Use byte address instead of
14145 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
14146 GRUB_PCI_REG_CACHELINE.
14147 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
14148 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
14149 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
14150 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
14151 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
14152 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
14153 grub_pci_make_address.
14154 (lock_rom_area): Likewise.
14155 * commands/lspci.c (grub_lspci_iter): Use macroses
14156 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
14157 of grub_pci_make_address.
14158 * disk/ata.c (grub_ata_pciinit): Likewise.
14159 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
14160 (GRUB_PCI_REG_VENDOR): Likewise.
14161 (GRUB_PCI_REG_DEVICE): Likewise.
14162 (GRUB_PCI_REG_COMMAND): Likewise.
14163 (GRUB_PCI_REG_STATUS): Likewise.
14164 (GRUB_PCI_REG_REVISION): Likewise.
14165 (GRUB_PCI_REG_CLASS): Likewise.
14166 (GRUB_PCI_REG_CACHELINE): Likewise.
14167 (GRUB_PCI_REG_LAT_TIMER): Likewise.
14168 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
14169 (GRUB_PCI_REG_BIST): Likewise.
14170 (GRUB_PCI_REG_ADDRESSES): Likewise.
14171 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14172 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14173 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14174 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14175 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14176 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14177 (GRUB_PCI_REG_CIS_POINTER): Likewise.
14178 (GRUB_PCI_REG_SUBVENDOR): Likewise.
14179 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
14180 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
14181 (GRUB_PCI_REG_CAP_POINTER): Likewise.
14182 (GRUB_PCI_REG_IRQ_LINE): Likewise.
14183 (GRUB_PCI_REG_IRQ_PIN): Likewise.
14184 (GRUB_PCI_REG_MIN_GNT): Likewise.
14185 (GRUB_PCI_REG_MAX_LAT): Likewise.
14186 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
14187 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
14188 * video/efi_uga.c (find_framebuf): Likewise.
14189 * video/sm712.c (grub_video_sm712_setup): Likewise.
14190 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
14193 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14195 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
14196 can be reliably determined to be supported.
14198 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14200 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
14201 that VESA is supported.
14202 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
14205 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14207 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
14209 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14211 * util/misc.c (make_system_path_relative_to_its_root): Work around
14212 special-casing of "/", as previous incarnation of this routine did.
14214 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14216 Fix any-emu compilation.
14218 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
14219 * grub_bin2h_SOURCES: New variable.
14221 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14223 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
14225 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14227 * util/grub.d/00_header.in: Fix handling of locale_dir.
14229 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14231 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
14232 as possible unifont location (Gentoo).
14233 Reported by: Alexander Brüning
14235 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14237 Don't try to generate lists for kernel.img.
14239 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
14240 (pkglib_MODULES): Remove kernel.img.
14241 (kernel_img_EXPORTS): Removed.
14242 (kernel_img_RELOCATABLE): New variable.
14243 * conf/x86_64-efi.rmk: Likewise.
14244 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
14246 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14248 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
14249 grub_xasprintf or grub_snprintf.
14250 (grub_vsprintf): Likewise.
14251 (grub_snprintf): New proto.
14252 (grub_vsnprintf): Likewise.
14253 (grub_xasprintf): Likewise.
14254 (grub_xvasprintf): Likewise.
14255 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
14256 (grub_sprintf): Removed.
14257 (grub_vsnprintf): New function.
14258 (grub_snprintf): Likewise.
14259 (grub_xvasprintf): Likewise.
14260 (grub_xasprintf): Likewise.
14261 (grub_vsprintf): Renamed to ...
14262 (grub_vsnprintf_real): ...this. New argument max_len.
14264 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
14266 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
14267 fix grub-script-check warning.
14269 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14271 * include/grub/font.h (grub_font_load): Fix prototype.
14273 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14275 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
14277 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14279 * include/grub/x86_64/at_keyboard.h: New file.
14281 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14283 * loader/mips/linux.c: Include missing grub/i18n.h.
14285 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14287 * normal/menu.c (notify_execution_failure): Clarify error message.
14289 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14291 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
14292 return value (and revert all return statements). Update users.
14294 2010-01-20 Dan Merillat <debian@dan.merillat.org>
14296 * kern/device.c (grub_device_iterate): Allocate new part_ent
14297 structure based on sizeof (*p) rather than sizeof (p->next), to
14298 account for structure padding.
14300 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
14301 disk is NULL, which might happen for LVM physical volumes with no
14304 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14306 * loader/mips/linux.c (grub_cmd_initrd)
14307 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
14309 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14311 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
14312 (grub_video_video_init, grub_video_bitmap_init)
14313 (grub_font_manager_init, grub_term_gfxterm_init)
14314 (grub_at_keyboard_init): New extern declarations.
14315 (grub_machine_init): Initialize gfxterm and at_keyboard.
14317 * kern/main.c (grub_main): Revert grub_printf delay kludge.
14319 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
14320 `gfxterm.mod' into core image.
14322 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
14323 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
14324 (kernel_img_FORMAT): Copy to ...
14326 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
14327 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
14328 (kernel_img_FORMAT): ... here, and ...
14330 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
14331 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
14332 (kernel_img_FORMAT): ... here.
14334 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
14335 and input (at_keyboard) terminals in kernel.
14336 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
14338 (pkglib_MODULES): Remove `pci.mod'.
14339 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
14340 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
14341 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14342 (at_keyboard_mod_LDFLAGS): Remove variables.
14344 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
14346 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
14348 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
14350 * include/grub/mips/libgcc.h: Only export symbols for functions
14351 that libgcc provides.
14353 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
14357 * bus/bonito.c: New file.
14358 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
14359 GRUB_PCI_NUM_DEVICES.
14360 * term/i386/pc/serial.c: Move to ...
14361 * term/serial.c: ... here. All users updated.
14362 * util/i386/pc/grub-mkimage.c: Move to ...
14363 * util/grub-mkrawimage.c: ... here. All users updated.
14364 * term/i386/pc/at_keyboard.c: Move to ...
14365 * term/at_keyboard.c: ... here. All users updated.
14366 * conf/mips-qemu-mips.rmk: New file.
14367 * conf/mips-yeeloong.rmk: Likewise.
14368 * conf/mips.rmk: Likewise.
14369 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
14371 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
14373 (grub_ata_pciinit): Support CS5536.
14374 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
14375 * font/font_cmd.c (loadfont_command): Open file before passing it to
14377 (pseudo_file_read): New function.
14378 (pseudo_file_close): Likewise.
14379 (pseudo_fs): New structure.
14380 (load_font_module): New function.
14381 (GRUB_MOD_INIT(font_manager)): Load embedded font.
14382 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
14383 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
14384 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
14385 * include/grub/i386/at_keyboard.h: Split into ...
14386 * include/grub/at_keyboard.h: ... this ...
14387 * include/grub/i386/at_keyboard.h: ... and this.
14388 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
14390 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
14392 (grub_elf64_size): Likewise.
14393 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
14395 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
14396 * include/grub/i386/coreboot/serial.h: Rewritten.
14397 * include/grub/i386/ieee1275/serial.h: Include
14398 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
14399 * include/grub/i386/pc/serial.h: Moved from here ...
14400 * include/grub/serial.h: ... to here. All users updated.
14401 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
14402 (GRUB_PCI_NUM_BUS): Likewise.
14403 (GRUB_PCI_NUM_DEVICES): Likewise.
14404 (grub_pci_device_map_range): Add missing volatile keyword.
14405 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
14406 * include/grub/mips/at_keyboard.h: New file.
14407 * include/grub/mips/cache.h: Likewise.
14408 * include/grub/mips/io.h: Likewise.
14409 * include/grub/mips/kernel.h: Likewise.
14410 * include/grub/mips/libgcc.h: Likewise.
14411 * include/grub/mips/pci.h: Likewise.
14412 * include/grub/mips/qemu-mips/boot.h: Likewise.
14413 * include/grub/mips/qemu-mips/kernel.h: Likewise.
14414 * include/grub/mips/qemu-mips/loader.h: Likewise.
14415 * include/grub/mips/qemu-mips/memory.h: Likewise.
14416 * include/grub/mips/qemu-mips/serial.h: Likewise.
14417 * include/grub/mips/qemu-mips/time.h: Likewise.
14418 * include/grub/mips/relocator.h: Likewise.
14419 * include/grub/mips/time.h: Likewise.
14420 * include/grub/mips/types.h: Likewise.
14421 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
14422 * include/grub/mips/yeeloong/boot.h: Likewise.
14423 * include/grub/mips/yeeloong/kernel.h: Likewise.
14424 * include/grub/mips/yeeloong/loader.h: Likewise.
14425 * include/grub/mips/yeeloong/memory.h: Likewise.
14426 * include/grub/mips/yeeloong/pci.h: Likewise.
14427 * include/grub/mips/yeeloong/serial.h: Likewise.
14428 * include/grub/mips/yeeloong/time.h: Likewise.
14429 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
14430 * kern/elf.c (grub_elf32_size): New parameter. All users
14432 (grub_elf64_size): Likewise.
14433 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
14434 Load modules before saying "Welcome to GRUB!".
14435 Call grub_refresh after saying "Welcome to GRUB!".
14436 * kern/mips/cache.S: New file.
14437 * kern/mips/cache_flush.S: Likewise.
14438 * kern/mips/dl.c: Likewise.
14439 * kern/mips/init.c: Likewise.
14440 * kern/mips/qemu-mips/init.c: Likewise.
14441 * kern/mips/startup.S: Likewise.
14442 * kern/mips/yeeloong/init.c: Likewise.
14443 * kern/term.c (grub_putcode): Handle NULL terminal.
14444 (grub_getcharwidth): Likewise.
14445 (grub_getkey): Likewise.
14446 (grub_checkkey): Likewise.
14447 (grub_getkeystatus): Likewise.
14448 (grub_getxy): Likewise.
14449 (grub_getwh): Likewise.
14450 (grub_gotoxy): Likewise.
14451 (grub_cls): Likewise.
14452 (grub_setcolorstate): Likewise.
14453 (grub_setcolor): Likewise.
14454 (grub_getcolor): Likewise.
14455 (grub_refresh): Likewise.
14456 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
14457 (write_jump): Add hatch nop.
14458 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
14459 * lib/mips/setjmp.S: New file.
14460 * loader/mips/linux.c: Likewise.
14461 * term/i386/pc/at_keyboard.c: Move from here ...
14462 * term/at_keyboard.c: ... to here.
14463 * term/i386/pc/serial.c: Moved from here ...
14464 * term/serial.c: ... to here. All users updated.
14465 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
14466 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
14467 (serial_translate_key_sequence): Avoid deadlock.
14468 (grub_serial_getkey): Handle backspace.
14469 (grub_serial_putchar): Fix newline handling.
14470 * util/i386/pc/grub-mkimage.c: Move from here ...
14471 * util/grub-mkrawimage.c: ... to here. All users updated.
14472 (generate_image): New parameters 'font_path' and 'format'.
14473 Support embedding font.
14474 Use grub_host_to_target* instead of grub_cpu_to_le*.
14475 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
14476 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
14477 (options): New option "--font".
14479 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
14480 (main): Handle "--font".
14481 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
14482 (grub_virtual_screen_setup): Set bg_color_display.
14483 (redraw_screen_rect): Use bg_color_display instead of incorrect
14485 (grub_gfxterm_cls): Likewise.
14486 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
14487 Support embedding config file.
14488 (add_segments): Likewise.
14489 (options): New option "--config".
14490 (main): Handle "--config".
14491 * video/sm712.c: New file.
14493 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14495 Fix parallel builds.
14497 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
14498 font.c depend on ascii.h).
14500 2010-01-12 Carles Pina i Estany <carles@pina.cat>
14502 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
14504 2010-01-11 Carles Pina i Estany <carles@pina.cat>
14506 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
14507 By default: disabled.
14508 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
14511 2010-01-10 Carles Pina i Estany <carles@pina.cat>
14513 * font/font.c: Update copyright years.
14514 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
14516 2010-01-10 Carles Pina i Estany <carles@pina.cat>
14518 * font/font.c: Include `ascii.h'.
14519 (ASCII_BITMAP_SIZE): New macro.
14520 (ascii_font_glyph): Define.
14521 (ascii_glyph_lookup): New function.
14522 (grub_font_get_string_width): Change comment. If glyph not found, use
14523 ascii_glyph_lookup.
14524 (grub_font_get_glyph_with_fallback): If glyph not available returns
14525 ascii_glyph_lookup.
14526 * util/grub-mkfont.c (file_formats): New enum.
14527 (options): Add `ascii-bitmaps' new option.
14528 (usage): Add `asii-bitmaps' new option.
14529 (write_font_ascii_bitmap): New function.
14530 (write_font): Rename to ...
14531 (write_font_p2): ... this. Remove print_glyphs call.
14532 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
14533 used. Call print_glyphs.
14534 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
14536 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
14538 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
14539 (grub_bin2h_SOURCES): New variable.
14540 * util/bin2h.c: New file.
14542 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14544 * include/multiboot.h: Resynced with spec.
14545 * include/multiboot2.h: Likewise.
14546 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
14547 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
14549 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14551 * include/grub/term.h (grub_term_register_input,
14552 grub_term_register_output): Check return of terminal init()
14553 routines, and abort if errors are raised.
14555 * commands/terminal.c: Update copyright year.
14557 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14559 * commands/terminal.c (grub_cmd_terminal_input)
14560 (grub_cmd_terminal_output): Check return of terminal init()
14561 routines, and abort if errors are raised.
14563 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14565 * include/grub/i386/bsd.h: Fix include pathes.
14567 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14569 Add missing *BSD copyright headers.
14571 * include/grub/aout.h: Add BSD licence.
14572 * include/grub/i386/bsd.h: Parts under different licences moved to ...
14573 * include/grub/i386/freebsd_linker.h: ... here,
14574 * include/grub/i386/freebsd_reboot.h: ... here,
14575 * include/grub/i386/netbsd_bootinfo.h: ... here,
14576 * include/grub/i386/netbsd_reboot.h: ... here,
14577 * include/grub/i386/openbsd_bootarg.h: ... here,
14578 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
14579 licence to each file.
14581 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14583 * acinclude.m4: Remove `nop' assembly instruction; it's not
14584 implemented by all architectures.
14586 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14588 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
14589 ELILO. This is no longer necessary.
14591 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
14593 Added new tool, grub-scrit-check to verify grub.cfg syntax.
14595 * util/grub-script-check.c: grub-script-check tool.
14596 * conf/common.rmk: Make rules for grub-script-check.
14598 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14600 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
14601 spotting it back in 2008. Shame on me for forgetting he did.
14603 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
14605 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14607 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
14608 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
14609 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
14610 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
14611 (GRUB_VIDEO_TYPE_EFI): Rename to ...
14612 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
14614 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
14616 * include/grub/test.h: Add license header.
14617 * tests/example_functional_test.c: Likewise.
14618 * tests/example_unit_test.c: Likewise.
14619 * tests/lib/functional_test.c: Likewise.
14620 * tests/lib/test.c: Likewise.
14621 * tests/lib/unit_test.c: Likewise.
14623 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
14625 Use flag-based instead of hook-based video mode selection and "auto"
14628 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
14629 (grub_video_set_mode): Changed prototype. All users updated.
14630 (grub_video_check_mode_flag): New inline function.
14631 * video/video.c (parse_modespec): New function.
14632 (grub_video_set_mode): Parse flags and keywords.
14634 2010-01-17 Carles Pina i Estany <carles@pina.cat>
14636 * util/misc.c (grub_util_info): Fix the order of the parameters in a
14639 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
14641 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
14643 2010-01-16 Carles Pina i Estany <carles@pina.cat>
14645 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
14647 * util/grub-emu.c (usage): Likewise.
14648 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
14649 * util/i386/efi/grub-mkimage.c (usage): Likewise.
14650 * util/i386/pc/grub-mkimage.c (usage): Likewise.
14651 * util/i386/pc/grub-setup.c (usage): Likewise.
14653 2010-01-16 Carles Pina i Estany <carles@pina.cat>
14655 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
14657 (grub_util_info): Likewise.
14658 (grub_util_error): Likewise.
14659 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
14660 and/or new lines in `grub_util_warna', `grub_util_info',
14661 `grub_util_error' calls.
14662 * util/getroot.c: Likewise.
14663 * util/grub-editenv.c: Likewise.
14664 * util/grub-emu.c: Likewise.
14665 * util/grub-fstest.c: Likewise.
14666 * util/grub-mkdevicemap.c: Likewise.
14667 * util/grub-mkfont.c: Likewise.
14668 * util/grub-mkpasswd-pbkdf2.c: Likewise.
14669 * util/grub-mkrelpath.c: Likewise.
14670 * util/grub-pe2elf.c: Likewise.
14671 * util/grub-probe.c: Likewise.
14672 * util/hostdisk.c: Likewise.
14673 * util/i386/efi/grub-mkimage.c: Likewise.
14674 * util/i386/pc/grub-mkimage.c: Likewise.
14675 * util/i386/pc/grub-setup.c: Likewise.
14676 * util/ieee1275/ofpath.c: Likewise.
14677 * util/mkisofs/eltorito.c: Likewise.
14678 * util/mkisofs/rock.c: Likewise.
14679 * util/mkisofs/write.c: Likewise.
14680 * util/raid.c: Likewise.
14681 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
14682 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14684 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14686 Enable multiboot on non-pc.
14688 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
14689 multiboot.mod and multiboot2.mod to ...
14690 * conf/i386.rmk (pkglib_MODULES): ... here.
14691 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
14693 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
14694 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
14696 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
14697 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
14699 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
14700 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
14702 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
14703 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
14705 (ata_mod_SOURCES): Removed.
14706 (ata_mod_CFLAGS): Likewise.
14707 (ata_mod_LDFLAGS): Likewise.
14708 (relocator_mod_SOURCES): Removed.
14709 (relocator_mod_CFLAGS): Likewise.
14710 (relocator_mod_ASFLAGS): Likewise.
14711 (relocator_mod_LDFLAGS): Likewise.
14713 * include/grub/x86_64/multiboot.h: New file.
14714 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
14717 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14719 Video multiboot support.
14721 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
14723 * include/multiboot.h: Resynced with multiboot specification.
14724 * include/multiboot2.h: Likewise.
14725 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
14726 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
14727 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
14728 (HAS_VGA_TEXT): Likewise.
14729 (accepts_video): New variable.
14730 (grub_multiboot_set_accepts_video): New function.
14731 (grub_multiboot_get_mbi_size): Account for video structures.
14732 (set_video_mode): New function.
14733 (retrieve_video_parameters): Likewise.
14734 (grub_multiboot_make_mbi): Fill video fields.
14736 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14740 * include/grub/video.h (grub_video_driver_id): New type.
14741 (grub_video_adapter): New member 'id'. All users updated.
14742 (grub_video_get_driver_id): New proto.
14743 * video/video.c (grub_video_get_driver_id): New function.
14745 2010-01-14 Carles Pina i Estany <carles@pina.cat>
14747 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
14750 2010-01-14 Carles Pina i Estany <carles@pina.cat>
14752 * normal/cmdline.c (print_completion): Gettextizze.
14754 2001-01-14 Carles Pina i Estany <carles@pina.cat>
14756 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
14758 2010-01-14 Carles Pina i Estany <carles@pina.cat>
14760 * gettext/gettext.c (grub_gettext_translate): Push and pop
14762 (grub_gettext_delete_list): Change comment style.
14763 * kern/err.c (grub_error): Gettextizze.
14764 (grub_fatal): Gettextizze.
14766 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
14768 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
14769 (grub_linux16_real_boot): ... this.
14770 * kern/i386/loader.S: Likewise.
14771 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
14772 (grub_linux16_boot): New function. Switches to text mode and calls
14773 grub_linux16_real_boot().
14775 * loader/i386/bsd.c: Include `<grub/video.h>'.
14776 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
14777 text mode before calling grub_unix_real_boot().
14779 * loader/i386/multiboot.c: Include `<grub/video.h>'.
14780 (grub_multiboot_boot): Switch to text mode before calling
14781 grub_relocator32_boot().
14783 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
14784 (grub_chainloader_boot): Switch to text mode before calling
14785 grub_chainloader_real_boot().
14787 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
14788 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
14790 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
14793 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
14794 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
14796 * util/grub.d/00_header.in: Define a "savedefault" function for use
14798 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
14800 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
14801 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
14803 * util/grub-mkconfig_lib.in (save_default_entry): Only set
14804 saved_entry if boot_once is unset.
14805 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
14806 previous saved entry (i.e. grub-reboot).
14808 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
14810 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
14812 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
14814 * util/grub.d/00_header.in: Use `set var=val' rather than plain
14816 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
14818 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
14820 * util/grub-reboot.in: Fix --version output.
14821 * util/grub-set-default.in: Likewise.
14823 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
14825 * util/grub.d/00_header.in: Silently ignore zero-sized environment
14828 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
14830 * util/grub.d/00_header.in: Quote the value assigned to `default',
14831 in case it contains spaces.
14833 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
14835 * util/grub.d/30_os-prober.in: Fix merge error that moved a
14836 `save_default_entry' call from the macosx case to the linux case.
14838 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14839 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
14841 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
14842 in `chosen' environment variable.
14843 * normal/menu_text.c (get_entry_number): Check if the variable
14844 matches the title of a menu entry.
14845 (run_menu): Pass menu to get_entry_number.
14847 * util/grub-reboot.in: New file.
14848 * util/grub-set-default.in: New file.
14849 * conf/common.rmk (grub-reboot): New utility.
14850 (grub-set-default): New utility.
14852 * util/grub-mkconfig_lib.in (save_default_entry): New function.
14853 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
14854 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
14855 move it to `saved_entry' for the next boot. Load environment on
14857 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
14858 * util/grub.d/10_hurd.in: Likewise.
14859 * util/grub.d/10_linux.in (linux_entry): Likewise.
14860 * util/grub.d/10_windows.in: Likewise.
14861 * util/grub.d/30_os-prober.in: Likewise.
14863 * util/grub-install.in: Create environment block.
14864 * util/i386/efi/grub-install.in: Likewise.
14865 * util/ieee1275/grub-install.in: Likewise.
14866 * util/sparc64/ieee1275/grub-install.in: Likewise.
14868 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
14870 Unit testing framework for GRUB.
14872 * Makefile.in: Test framework build rules for 'make check'.
14873 * conf/tests.rmk: Build rules for individual tests and framework.
14875 * include/grub/test.h: Header file for whitebox tests.
14876 * tests/lib/functional_test.c: Framework support for whitebox
14878 * tests/lib/test.c: Common whitebox testing code for unit and
14880 * tests/lib/unit_test.c: Framework support for whitebox unit
14883 * tests/util/grub-shell-tester.in: Support utility for grub-script
14885 * tests/util/grub-shell.in: Utility to execute grub-script
14886 commands in a Qemu instance.
14888 * tests/example_functional_test.c: Example whitebox functional
14890 * tests/example_grub_script_test.in: Example grub-script test.
14891 * tests/example_scripted_test.in: Example scripted test.
14892 * tests/example_unit_test.c: Example whitebox unit test.
14894 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14896 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
14897 Add loader/i386/multiboot_mbi.c.
14898 (multiboot2_mod_SOURCES): Likewise.
14899 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
14900 (multiboot2_mod_SOURCES): Likewise.
14901 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
14902 (grub_multiboot_make_mbi): Likewise.
14903 (grub_multiboot_free_mbi): Likewise.
14904 (grub_multiboot_init_mbi): Likewise.
14905 (grub_multiboot_add_module): Likewise.
14906 (grub_multiboot_set_bootdev): Likewise.
14907 * loader/i386/multiboot.c (mbi): Removed.
14908 (mbi_dest): Likewise.
14909 (alloc_mbi): New variable.
14910 (grub_multiboot_payload_size): Removed. All users updated.
14911 (grub_multiboot_pure_size): New variable.
14912 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
14913 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
14914 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
14915 (grub_fill_multiboot_mmap): Likewise.
14916 (grub_multiboot_get_bootdev): Likewise.
14917 (grub_multiboot): Use multiboot_mbi functions.
14918 * loader/i386/multiboot_mbi.c: New file.
14920 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14922 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
14923 it would result in module crash.
14925 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14927 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
14928 (grub_ofconsole_getwh): Split to ...
14929 (grub_ofconsole_getwh): ... this.
14930 (grub_ofconsole_dimensions): ...and this.
14931 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
14933 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
14935 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
14937 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14939 * loader/i386/pc/multiboot2.c: Removed stalled file.
14941 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14943 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
14944 Reported by: Grégoire Sutre
14946 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
14948 * util/misc.c (canonicalize_file_name): New function.
14949 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
14950 instead of realpath().
14952 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
14954 * util/grub-install.in (usage): Clarify meaning of --root-directory,
14955 and make it clearer that it's optional. Based on confusion
14958 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14960 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
14961 in premature implicit newline.
14963 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14965 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
14966 which resulted in garbled command line at the end of screen.
14968 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
14970 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
14971 initialization with similar approach as with other Linux loaders.
14973 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
14975 Fix i386-ieee1275 build.
14977 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
14978 and grub_term_height() for video_{width,height} initialization.
14980 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
14982 Fix grub-emu build.
14984 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
14986 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14987 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
14989 Support for multiple terminals.
14991 * Makefile.in (pkglib_DATA): terminal.lst.
14992 (terminal.lst): New target.
14993 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
14994 (GRUB_MOD_INIT(handler)): Likewise.
14995 (GRUB_MOD_FINI(handler)): Likewise.
14996 * commands/help.c (grub_cmd_help): Handle multiple terminals.
14997 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
14998 * commands/sleep.c (do_print): Use grub_term_restore_pos.
14999 (grub_cmd_sleep): Use grub_term_save_pos.
15000 * commands/terminal.c: New file.
15001 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
15002 commands/terminal.c and lib/charset.c.
15003 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
15004 (pkglib_MODULES): Add terminal.mod.
15005 (terminal_mod_SOURCES): New variable.
15006 (terminal_mod_CFLAGS): Likewise.
15007 (terminal_mod_LDFLAGS): Likewise.
15008 * genhandlerlist.sh: Don't handle terminals.
15009 * genmk.rb: Generate terminal-*.lst.
15010 * genterminallist.sh: New file.
15011 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
15012 (grub_is_valid_utf8): Likewise.
15013 (grub_utf8_to_ucs4_alloc): Likewise.
15014 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
15015 (grub_menu_register_viewer): Changed argument.
15016 (grub_menu_try_text): New proto.
15017 (grub_gfxmenu_try_hook): New declaration.
15018 * include/grub/normal.h (grub_normal_exit_level): New declaration.
15019 (grub_menu_init_page): Additional argument term.
15020 (grub_normal_init_page): Likewise.
15021 (grub_cmdline_get): Arguments simplified.
15022 (grub_utf8_to_ucs4_alloc): Removed.
15023 (grub_print_ucs4): Additional argument term.
15024 (grub_getstringwidth): Likewise.
15025 (grub_print_message_indented): Likewise.
15026 (grub_menu_text_register_instances): New proto.
15027 (grub_show_menu): Likewise.
15028 (read_terminal_list): Likewise.
15029 (grub_set_more): Likewise.
15030 * include/grub/parser.h: Include handler.h.
15031 * include/grub/reader.h: Rewritten.
15032 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
15033 (GRUB_TERM_WIDTH): Changed to function.
15034 (GRUB_TERM_HEIGHT): Likewise.
15035 (GRUB_TERM_BORDER_WIDTH): Likewise.
15036 (GRUB_TERM_BORDER_HEIGHT): Likewise.
15037 (GRUB_TERM_NUM_ENTRIES): Likewise.
15038 (GRUB_TERM_ENTRY_WIDTH): Likewise.
15039 (GRUB_TERM_CURSOR_X): Likewise.
15040 (grub_term_input_class): Likewise.
15041 (grub_term_output_class): Likewise.
15042 (grub_term_outputs_disabled): New declaration.
15043 (grub_term_inputs_disabled): Likewise.
15044 (grub_term_outputs): Likewise.
15045 (grub_term_inputs): Likewise.
15046 (grub_term_register_input): Rewritten.
15047 (grub_term_register_output): Likewise.
15048 (grub_term_unregister_input): Likewise.
15049 (grub_term_unregister_output): Likewise.
15050 (FOR_ACTIVE_TERM_INPUTS): New macro.
15051 (FOR_DISABLED_TERM_INPUTS): Likewise.
15052 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
15053 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
15054 * include/grub/terminfo.h: Add oterm argument to all protypes.
15055 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
15056 Use grub_rescue_run.
15057 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
15059 * kern/reader.c: Removed. All users updated.
15060 * kern/rescue_reader.c (grub_rescue_init): Removed.
15061 (grub_rescue_reader): Likewise.
15062 (grub_register_rescue_reader): Likewise.
15063 (grub_rescue_run): New function based on kern/reader.c.
15064 * kern/term.c: Adapted for multiterm.
15065 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
15066 (grub_is_valid_utf8): Likewise.
15067 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
15068 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
15070 * loader/i386/linux.c (grub_linux_boot): Likewise.
15071 * normal/auth.c (grub_username_get): New function.
15072 (grub_auth_check_authentication): Use grub_username_get.
15073 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
15074 * normal/color.c: Adapt for multiterm.
15075 * normal/main.c (read_config_file): Don't use grub_reader_loop.
15076 (grub_normal_init_page): Additional argument term.
15077 (read_lists): Call read_terminal_lists.
15078 (grub_enter_normal_mode): Call grub_cmdline_run.
15079 Handle grub_normal_exit_level.
15080 (grub_cmd_normal): Make reentrant.
15081 (grub_cmd_normal_exit): New function.
15082 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
15083 * normal/menu.c: Adapt for multiterm.
15084 * normal/menu_entry.c: Likewise.
15085 * normal/menu_text.c: Likewise.
15086 * normal/menu_viewer.c: Removed. All users updated.
15087 * normal/term.c: New file.
15088 * util/console.c: Change order of includes to workaround a bug in
15090 * term/terminfo.c: New argument oterm on all exported functions.
15092 * util/grub-editenv.c (grub_term_input_class): Removed.
15093 (grub_term_output_class): Likewise.
15095 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
15097 Make loader output a bit more user-friendly.
15099 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
15100 is being loaded. Likewise for the Hurd.
15102 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
15103 that kernel of FreeBSD ${version} is being loaded.
15105 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
15107 (grub_cmd_initrd): Likewise.
15108 * util/grub.d/10_linux.in (linux_entry): Print message indicating
15109 that Linux ${version} is being loaded. Likewise for initrd.
15111 2010-01-09 Carles Pina i Estany <carles@pina.cat>
15113 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
15115 2010-01-08 Carles Pina i Estany <carles@pina.cat>
15117 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
15118 (GRUB_MOD_INIT): Gettextizze.
15119 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
15120 (GRUB_MOD_INIT): Gettextizze.
15121 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
15122 (grub_cmd_linux): Capitalise Linux.
15123 (GRUB_MOD_INIT): Gettextizze.
15124 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
15125 (grub_cmd_linux): Capitalise Linux.
15126 (GRUB_MOD_INIT): Gettextizze.
15127 * loader/i386/linux.c: Include `<grub/i18n.h>'.
15128 (grub_cmd_linux): Capitalise Linux.
15129 (GRUB_MOD_INIT): Gettextizze.
15130 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
15131 (GRUB_MOD_INIT): Gettextizze.
15132 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
15133 (grub_cmd_linux): Capitalise Linux.
15134 (GRUB_MOD_INIT): Gettextizze.
15135 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
15136 (grub_cpu_xnu_init): Gettextizze.
15137 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
15138 (GRUB_MOD_INIT): Gettextizze.
15139 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
15140 (GRUB_MOD_INIT): Gettextizze.
15141 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
15142 (grub_linux_load64): Capitalise Linux.
15143 (GRUB_MOD_INIT): Gettextizze.
15144 * loader/xnu.c: Include `<grub/i18n.h>'.
15145 (GRUB_MOD_INIT): Gettextizze.
15146 * po/POTFILES: Add `loader/efi/appleloader.c',
15147 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
15148 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
15149 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
15150 `loader/i386/xnu.c', `loader/multiboot_loader.c',
15151 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
15152 and `loader/xnu.c'.
15154 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
15156 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
15158 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
15160 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
15161 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
15162 * util/mkisofs/mkisofs.c (main): Readjust --version output.
15164 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15166 Reset Multiboot 2 support. New loader implements the draft in
15167 /branches/multiboot2 and shares as much code as possible with the
15168 production Multiboot 1 implementation.
15170 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
15171 * loader/multiboot2.c: Likewise.
15172 * loader/i386/multiboot_helper.S: Likewise.
15173 * include/multiboot2.h: Replace with latest version from the draft
15174 in /branches/multiboot2.
15176 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
15177 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
15178 and `loader/multiboot2.c'.
15179 (pkglib_MODULES): Add `multiboot2.mod'.
15180 (multiboot2_mod_SOURCES): New variable.
15181 (multiboot2_mod_LDFLAGS): Likewise.
15182 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
15184 * conf/i386-pc.rmk: Likewise.
15186 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
15187 (multiboot_mod_SOURCES): Remove variable.
15188 (multiboot_mod_LDFLAGS): Likewise.
15189 (multiboot_mod_CFLAGS): Likewise.
15191 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
15192 `<multiboot2.h>' instead of `<multiboot.h>'.
15193 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
15194 (MULTIBOOT_HEADER_MAGIC): New macros.
15196 * loader/multiboot_loader.c (module_version_status): Remove variable.
15197 (find_multi_boot2_header): Remove function.
15198 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
15199 logic. Always check for the Multiboot version we're compiling for.
15200 (grub_cmd_module_loader): Likewise.
15201 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
15202 command instead of `multiboot'.
15204 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15206 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
15207 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
15210 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15211 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15213 Fix breakage introduced with previous commit.
15215 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
15217 * normal/handler.c (read_handler_list): Revert part of previous commit
15218 affecting this file.
15219 * normal/main.c (read_lists): Move read_handler_list() call back to ...
15220 (grub_normal_execute): ... here.
15222 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15224 Merge prefix-redefinition-fix branch.
15226 * normal/autofs.c (read_fs_list): Make function capable of being
15227 run multiple times, gracefuly replacing the previous data
15229 * normal/dyncmd.c (read_command_list): Likewise.
15230 * normal/handler.c (read_handler_list): Likewise.
15231 * normal/main.c (read_lists): New function. Calls all the
15232 list reading functions.
15233 (grub_normal_execute): Use read_lists() instead of calling all
15234 list reading functions explicitly. Register read_lists() as a
15235 variable hook attached to ${prefix}.
15237 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15239 Merge crypto branch.
15241 * Makefile.in (pkglib_DATA): Add crypto.lst.
15242 (crypto.lst): New target.
15243 * commands/hashsum.c: New file.
15244 * commands/password.c (check_password): Use grub_crypto_memcmp.
15245 * commands/password_pbkdf2.c: New file.
15246 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
15247 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
15248 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
15249 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
15250 -I$(srcdir)/lib/libgcrypt_wrap.
15251 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
15252 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
15253 password_pbkdf2.mod.
15254 (crypto_mod_SOURCES): New variable.
15255 (crypto_mod_CFLAGS): Likewise.
15256 (crypto_mod_LDFLAGS): Likewise.
15257 (hashsum_mod_SOURCES): New variable.
15258 (hashsum_mod_CFLAGS): Likewise.
15259 (hashsum_mod_LDFLAGS): Likewise.
15260 (pbkdf2_mod_SOURCES): New variable.
15261 (pbkdf2_mod_CFLAGS): Likewise.
15262 (pbkdf2_mod_LDFLAGS): Likewise.
15263 (password_pbkdf2_mod_SOURCES): New variable.
15264 (password_pbkdf2_mod_CFLAGS): Likewise.
15265 (password_pbkdf2_mod_LDFLAGS): Likewise.
15266 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
15267 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
15268 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
15269 Include conf/gcry.rmk.
15270 * include/grub/auth.h: Rewritten.
15271 * include/grub/crypto.h: New file.
15272 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
15273 * include/grub/normal.h (read_crypto_list): New prototype.
15274 * lib/crypto.c: New file.
15275 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
15276 * lib/pbkdf2.c: Likewise.
15277 * normal/auth.c (grub_auth_strcmp): Removed.
15278 (grub_iswordseparator): Likewise.
15279 (grub_auth_strword): Likewise.
15280 (is_authenticated): Use grub_strword.
15281 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
15282 and grub_strword. Pass entered password to authentication callback.
15283 * normal/crypto.c: New file.
15284 * normal/main.c: Call read_crypto_list.
15285 * util/grub-mkpasswd-pbkdf2.c: New file.
15286 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
15288 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
15290 Fix descent and ascent calculation.
15292 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
15293 (options): New option "asce".
15295 (add_char): Ignore invalid glyphs for descent calculation.
15296 Calculate ascent from actual content.
15297 (print_glyphs): Use 'asce'.
15298 (write_font): Likewise. Allow ascent override.
15299 (main): Handle "asce" option.
15301 2010-01-06 Carles Pina i Estany <carles@pina.cat>
15303 * kern/err.c: Include `<grub/i18n.h>'.
15304 (grub_print_error): Add full stop. Gettextizze.
15305 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
15306 (grub_bsd_load_elf): Capitalise ELF.
15307 (grub_cmd_freebsd_loadenv): Add `s' in error string.
15308 (grub_cmd_freebsd_module): Likewise.
15309 (grub_cmd_freebsd_module_elf): Likewise.
15310 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
15312 2010-01-06 Carles Pina i Estany <carles@pina.cat>
15314 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
15315 * commands/search_file.c (HELP_MESSAGE): New macro.
15316 * commands/search_label.c (HELP_MESSAGE): Likewise.
15317 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
15318 * po/POTFILES: Add `commands/search_file.c',
15319 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
15320 `commands/search.c'.
15322 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
15324 * config.rpath: Update from Gnulib.
15326 2010-01-05 Yves Blusseau <blusseau@zetam.org>
15328 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
15330 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
15332 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
15334 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
15336 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
15337 arguments to fread so that we get a return value in bytes, rather
15338 than something that will normally be rounded down to 0.
15339 Adjust error handling to avoid producing garbage when size_t is not
15340 the same size as long long.
15342 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
15344 * util/mkisofs/write.c (padblock_write): Check return value of
15347 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
15349 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
15352 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
15354 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
15356 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
15357 instead of manual alignment.
15358 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
15359 verbose). Avoid attempts to read past end of the device
15360 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
15361 but GRUB_DISK_CACHE_SIZE may exceed that).
15363 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
15365 * commands/crc.c (grub_cmd_crc): Abort on read errors.
15366 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
15369 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15371 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
15373 (grub_efi_piwg_device_path): New structure
15374 (grub_efi_piwg_device_path_t): New type.
15375 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
15376 (devpath_1): Transform to a structure. All users updated.
15377 (devpath_2): Likewise.
15378 (devpath_3): Likewise.
15379 (devpath_4): Likewise.
15380 (devpath_5): Likewise.
15382 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15384 * loader/efi/appleloader.c: Restored. Update all users.
15386 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
15388 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
15390 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
15391 (struct boot_blocklist): Move from here ...
15392 * include/grub/i386/pc/boot.h [ASM_FILE]
15393 (struct grub_boot_blocklist): ... to here. Update all users.
15394 (setup): Only initialize `start' member of `first_block'
15395 structure. Add assert() calls to verify the other members.
15397 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
15398 (generate_image): Fix broken blocklist length initialization.
15399 Add assert() call to verify blocklist `segment' field.
15401 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
15403 * loader/efi/appleloader.c: Remove. Update all users.
15405 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
15407 * boot/i386/pc/boot.S: Update copyright year.
15408 * boot/i386/pc/cdboot.S: Likewise.
15409 * boot/i386/pc/diskboot.S: Likewise.
15410 * boot/i386/pc/lnxboot.S: Likewise.
15411 * boot/i386/pc/pxeboot.S: Likewise.
15412 * bus/pci.c: Likewise.
15413 * commands/cmp.c: Likewise.
15414 * commands/help.c: Likewise.
15415 * commands/hexdump.c: Likewise.
15416 * commands/i386/pc/halt.c: Likewise.
15417 * commands/i386/pc/play.c: Likewise.
15418 * commands/i386/pc/vbeinfo.c: Likewise.
15419 * commands/ls.c: Likewise.
15420 * commands/test.c: Likewise.
15421 * disk/dmraid_nvidia.c: Likewise.
15422 * disk/i386/pc/biosdisk.c: Likewise.
15423 * disk/ieee1275/nand.c: Likewise.
15424 * disk/ieee1275/ofdisk.c: Likewise.
15425 * disk/lvm.c: Likewise.
15426 * disk/raid.c: Likewise.
15427 * disk/raid6_recover.c: Likewise.
15428 * disk/scsi.c: Likewise.
15429 * fs/affs.c: Likewise.
15430 * fs/cpio.c: Likewise.
15431 * fs/ext2.c: Likewise.
15432 * fs/hfs.c: Likewise.
15433 * fs/iso9660.c: Likewise.
15434 * fs/ntfs.c: Likewise.
15435 * fs/sfs.c: Likewise.
15436 * fs/udf.c: Likewise.
15437 * fs/ufs.c: Likewise.
15438 * fs/xfs.c: Likewise.
15439 * gencmdlist.sh: Likewise.
15440 * genmk.rb: Likewise.
15441 * include/grub/disk.h: Likewise.
15442 * include/grub/efi/api.h: Likewise.
15443 * include/grub/efi/efi.h: Likewise.
15444 * include/grub/efi/pe32.h: Likewise.
15445 * include/grub/elf.h: Likewise.
15446 * include/grub/fs.h: Likewise.
15447 * include/grub/i386/at_keyboard.h: Likewise.
15448 * include/grub/i386/pc/memory.h: Likewise.
15449 * include/grub/i386/pc/vbe.h: Likewise.
15450 * include/grub/i386/pci.h: Likewise.
15451 * include/grub/i386/tsc.h: Likewise.
15452 * include/grub/ieee1275/ieee1275.h: Likewise.
15453 * include/grub/ntfs.h: Likewise.
15454 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
15455 * include/grub/sparc64/libgcc.h: Likewise.
15456 * include/grub/symbol.h: Likewise.
15457 * include/grub/types.h: Likewise.
15458 * include/multiboot2.h: Likewise.
15459 * io/gzio.c: Likewise.
15460 * kern/device.c: Likewise.
15461 * kern/disk.c: Likewise.
15462 * kern/efi/efi.c: Likewise.
15463 * kern/efi/mm.c: Likewise.
15464 * kern/elf.c: Likewise.
15465 * kern/file.c: Likewise.
15466 * kern/i386/dl.c: Likewise.
15467 * kern/i386/pc/init.c: Likewise.
15468 * kern/i386/pc/startup.S: Likewise.
15469 * kern/ieee1275/ieee1275.c: Likewise.
15470 * kern/ieee1275/init.c: Likewise.
15471 * kern/main.c: Likewise.
15472 * kern/mm.c: Likewise.
15473 * kern/powerpc/dl.c: Likewise.
15474 * kern/sparc64/dl.c: Likewise.
15475 * kern/x86_64/dl.c: Likewise.
15476 * lib/hexdump.c: Likewise.
15477 * loader/efi/appleloader.c: Likewise.
15478 * loader/i386/ieee1275/linux.c: Likewise.
15479 * loader/i386/pc/chainloader.c: Likewise.
15480 * loader/i386/pc/linux.c: Likewise.
15481 * loader/i386/pc/multiboot2.c: Likewise.
15482 * loader/ieee1275/multiboot2.c: Likewise.
15483 * loader/multiboot2.c: Likewise.
15484 * loader/multiboot_loader.c: Likewise.
15485 * loader/powerpc/ieee1275/linux.c: Likewise.
15486 * normal/completion.c: Likewise.
15487 * normal/menu_entry.c: Likewise.
15488 * partmap/apple.c: Likewise.
15489 * util/grub.d/10_hurd.in: Likewise.
15490 * util/hostfs.c: Likewise.
15491 * video/readers/png.c: Likewise.
15493 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
15495 * include/grub/misc.h (GNUC_PREREQ): New macro.
15496 (ATTRIBUTE_ERROR): New macro.
15497 * include/grub/list.h (grub_bad_type_cast_real): Use
15500 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15502 * normal/menu_text.c (print_message): Change messages.
15504 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15506 * normal/menu_entry.c (store_completion): Gettextizze.
15508 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15510 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
15512 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15514 * po/POTFILES: Sort correctly.
15516 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15518 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
15519 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
15520 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
15522 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
15523 summary. Gettextizze the strings.
15524 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
15525 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
15526 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
15528 (GRUB_MOD_INIT): Remove command name from summary.
15529 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
15531 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
15532 * term/i386/pc/serial.c (options): Add full stops.
15533 (GRUB_MOD_INIT): Remove command name from the summary.
15535 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15537 * commands/acpi.c: Gettextizze help strings and/or options. Include
15538 `grub/i18n.h' if needed.
15539 * commands/blocklist.c: Likewise.
15540 * commands/boot.c: Likewise.
15541 * commands/cat.c: Likewise.
15542 * commands/cmp.c: Likewise.
15543 * commands/configfile.c: Likewise.
15544 * commands/crc.c: Likewise.
15545 * commands/date.c: Likewise.
15546 * commands/echo.c: Likewise.
15547 * commands/efi/fixvideo.c: Likewise.
15548 * commands/efi/loadbios.c: Likewise.
15549 * commands/gptsync.c: Likewise.
15550 * commands/halt.c: Likewise.
15551 * commands/handler.c: Likewise.
15552 * commands/hdparm.c: Likewise.
15553 * commands/hexdump.c: Likewise.
15554 * commands/i386/cpuid.c: Likewise.
15555 * commands/i386/pc/drivemap.c: Likewise.
15556 * commands/i386/pc/halt.c: Likewise.
15557 * commands/i386/pc/pxecmd.c: Likewise.
15558 * commands/i386/pc/vbeinfo.c: Likewise.
15559 * commands/i386/pc/vbetest.c: Likewise.
15560 * commands/ieee1275/suspend.c: Likewise.
15561 * commands/keystatus.c: Likewise.
15562 * commands/loadenv.c: Likewise.
15563 * commands/ls.c: Likewise.
15564 * commands/lsmmap.c: Likewise.
15565 * commands/lspci.c: Likewise.
15566 * commands/memrw.c: Likewise.
15567 * commands/minicmd.c: Likewise.
15568 * commands/parttool.c: Likewise.
15569 * commands/password.c: Likewise.
15570 * commands/probe.c: Likewise.
15571 * commands/read.c: Likewise.
15572 * commands/reboot.c: Likewise.
15573 * commands/search.c: Likewise.
15574 * commands/sleep.c: Likewise.
15575 * commands/test.c: Likewise.
15576 * commands/true.c: Likewise.
15577 * commands/usbtest.c: Likewise.
15578 * commands/videotest.c: Likewise.
15579 * commands/xnu_uuid.c: Likewise.
15580 * disk/loopback.c: Likewise.
15581 * hello/hello.c: Likewise.
15582 * loader/i386/bsd.c: Likewise.
15583 * term/i386/pc/serial.c: Likewise.
15584 * po/POTFILES: Add new files.
15586 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
15588 * term/i386/pc/at_keyboard.c
15589 (keyboard_controller_wait_untill_ready): Rename to ...
15590 (keyboard_controller_wait_until_ready): ... this. Update all users.
15592 2010-01-01 Carles Pina i Estany <carles@pina.cat>
15594 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
15595 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
15596 string using string width.
15597 * normal/menu_text.c (grub_print_message_indented): Use
15598 grub_print_spaces and not print_spaces.
15599 (print_timeout): Likewise.
15600 (print_spaces): Move to...
15601 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
15603 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
15605 Import from Gnulib.
15607 * gnulib/getdelim.c: New file.
15608 * gnulib/getline.c: Likewise.
15610 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
15612 * include/grub/list.h (grub_assert_fail): Removed.
15613 (grub_bad_type_cast_real): New function.
15614 (grub_bad_type_cast): New macro.
15615 (GRUB_AS_LIST): Use grub_bad_type_cast.
15616 (GRUB_AS_LIST_P): Likewise.
15617 (GRUB_AS_NAMED_LIST): Likewise.
15618 (GRUB_AS_NAMED_LIST_P): Likewise.
15619 (GRUB_AS_PRIO_LIST): Likewise.
15620 (GRUB_AS_PRIO_LIST_P): Likewise.
15621 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
15623 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
15625 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
15628 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
15630 * configure.ac: Check for TARGET_CFLAGS initialization before we
15631 initialize it ourselves (sigh).
15632 Move a few modifications to TARGET_CFLAGS to be unconditional
15633 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
15636 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
15637 * term/i386/pc/at_keyboard.c
15638 (keyboard_controller_wait_untill_ready): Likewise.
15639 (keyboard_controller_led): Rename `led_status' paramter to avoid
15642 2009-12-28 Carles Pina i Estany <carles@pina.cat>
15644 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
15647 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15649 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
15651 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15653 * normal/menu_text.c (grub_print_message_indented): Prevent
15654 past-the-end-of-array dereference.
15656 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15658 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
15659 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
15661 2009-12-27 Carles Pina i Estany <carles@pina.cat>
15663 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
15664 * normal/main.c (grub_normal_read_line): Remove a space from the
15667 2009-12-27 Carles Pina i Estany <carles@pina.cat>
15669 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
15670 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
15671 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
15672 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
15673 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
15674 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
15675 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
15677 2009-12-26 Carles Pina i Estany <carles@pina.cat>
15679 * video/readers/jpeg.c (cmd): Declare.
15680 (grub_cmd_jpegtest): Use `grub_command_t' type.
15681 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
15683 (GRUB_MOD_FINI): Use `cmd' to unregister.
15684 * video/readers/png.c (cmd): Declare.
15685 (grub_cmd_pngtest): Use `grub_command_t' type.
15686 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
15688 (GRUB_MOD_FINI): Use `cmd' to unregister.
15689 * video/readers/tga.c (cmd): Declare.
15690 (grub_cmd_tgatest): Use `grub_command_t' type.
15691 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
15693 (GRUB_MOD_FINI): Use `cmd' to unregister.
15695 2009-12-26 Carles Pina i Estany <carles@pina.cat>
15697 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
15699 * kern/corecmd.c (grub_register_core_commands): Likewise.
15700 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
15701 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
15702 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
15703 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
15704 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
15705 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
15706 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
15707 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
15708 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
15709 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
15710 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
15711 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
15712 * normal/handler.c (insert_handler): Likewise.
15713 * normal/main.c (GRUB_MOD_INIT): Likewise.
15714 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
15716 2009-12-26 Carles Pina i Estany <carles@pina.cat>
15718 * commands/help.c (grub_cmd_help): Print the command name before the
15720 (GRUB_MOD_INIT): Remove command name from the summary.
15721 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
15723 * lib/arg.c (find_long): Print the command name before the summary.
15724 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
15726 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
15727 * commands/cat.c (GRUB_MOD_INIT): Likewise.
15728 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
15729 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
15730 * commands/crc.c (GRUB_MOD_INIT): Likewise.
15731 * commands/date.c (GRUB_MOD_INIT): Likewise.
15732 * commands/echo.c (GRUB_MOD_INIT): Likewise.
15733 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
15734 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
15735 * commands/handler.c (GRUB_MOD_INIT): Likewise.
15736 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
15737 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
15738 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
15739 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
15740 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
15741 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
15742 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
15743 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
15744 * commands/ls.c (GRUB_MOD_INIT): Likewise.
15745 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
15746 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
15747 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
15748 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
15749 * commands/password.c (GRUB_MOD_INIT): Likewise.
15750 * commands/probe.c (GRUB_MOD_INIT): Likewise.
15751 * commands/read.c (GRUB_MOD_INIT): Likewise.
15752 * commands/search.c (GRUB_MOD_INIT): Likewise.
15753 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
15754 * commands/test.c (GRUB_MOD_INIT): Likewise.
15755 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
15756 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
15757 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
15758 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
15759 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
15760 * lib/arg.c (GRUB_MOD_INIT): Likewise.
15761 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
15762 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
15763 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
15764 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
15765 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
15766 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
15767 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
15768 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
15770 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15772 Use search command for preliminar UUID search.
15774 * commands/search.c: Split into ...
15775 * commands/search_wrap.c: ...this
15776 * commands/search.c: ...and this.
15777 * commands/search_file.c: New file.
15778 * commands/search_label.c: New file.
15779 * commands/search_uuid.c: New file.
15780 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
15781 Add commands/search_wrap.c, commands/search_file.c,
15782 commands/search_label.c and commands/search_uuid.c.
15783 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
15784 (search_mod_SOURCES): Set to commands/search_wrap.c.
15785 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
15787 (search_fs_file_mod_SOURCES): New variable.
15788 (search_fs_file_mod_CFLAGS): Likewise.
15789 (search_fs_file_mod_LDFLAGS): Likewise.
15790 (search_label_mod_SOURCES): Likewise.
15791 (search_label_mod_CFLAGS): Likewise.
15792 (search_label_mod_LDFLAGS): Likewise.
15793 (search_fs_uuid_mod_SOURCES): New variable.
15794 (search_fs_uuid_mod_CFLAGS): Likewise.
15795 (search_fs_uuid_mod_LDFLAGS): Likewise.
15796 (fs_file_mod_SOURCES): Removed.
15797 (fs_file_mod_CFLAGS): Likewise.
15798 (fs_file_mod_LDFLAGS): Likewise.
15799 (fs_uuid_mod_SOURCES): Removed.
15800 (fs_uuid_mod_CFLAGS): Likewise.
15801 (fs_uuid_mod_LDFLAGS): Likewise.
15802 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
15803 Set to util/grub-install.in.
15804 * disk/fs_file.c: Removed.
15805 * disk/fs_uuid.c: Likewise.
15806 * include/grub/search.h: New file.
15807 * util/grub-install.in: Handle sparc64.
15808 Create and use load.cfg.
15809 * util/sparc64/ieee1275/grub-install.in: Removed.
15811 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15813 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
15814 Ignore return status if CF is cleared.
15815 (grub_biosdisk_get_diskinfo_standard): Likewise.
15817 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
15819 * term/i386/pc/at_keyboard.c
15820 (keyboard_controller_wait_untill_ready): New function.
15821 (grub_keyboard_controller_write, grub_keyboard_controller_read)
15822 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
15823 for keyboard polling, rather than duplicate the same loop. This
15824 saves a few bytes in code size.
15826 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15828 Support for (pxe[:server[:gateway]]) syntax and
15829 use environment variable for PXE.
15831 * commands/i386/pc/pxecmd.c (options): Removed.
15832 (print_ip): Removed.
15833 (grub_cmd_pxe): Removed
15834 (grub_cmd_pxe_unload): New function.
15835 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
15836 (grub_pxe_your_ip): Made static.
15837 (grub_pxe_default_server_ip): Likewise.
15838 (grub_pxe_default_gateway_ip): Likewise.
15839 (grub_pxe_blksize): Likewise.
15840 (parse_ip): New function.
15841 (grub_pxe_open): Support server and gateway specification.
15842 (grub_pxe_close): Free disk->data.
15843 (grub_pxefs_open): Use disk->data.
15844 (grub_pxefs_read): Likewise.
15845 (grub_env_write_readonly): New function.
15846 (set_mac_env): Likewise.
15847 (set_env_limn_ro): Likewise.
15848 (parse_dhcp_vendor): Likewise.
15849 (grub_pxe_detect): Set the environment variables.
15850 (set_ip_env): New function.
15851 (write_ip_env): Likewise.
15852 (grub_env_write_pxe_default_server): Likewise.
15853 (grub_env_write_pxe_default_gateway): Likewise.
15854 (grub_env_write_pxe_blocksize): Likewise.
15855 (GRUB_MOD_INIT(pxe)): Set environment variables.
15856 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
15857 (grub_pxe_mac_addr_t): ... this. All users updated.
15858 (grub_pxe_your_ip): Removed.
15859 (grub_pxe_server_ip): Likewise.
15860 (grub_pxe_gateway_ip): Likewise.
15861 (grub_pxe_blksize): Likewise.
15863 2009-12-25 Carles Pina i Estany <carles@pina.cat>
15865 * commands/help.c: Include `<grub/i18n.h>'.
15866 (grub_cmd_help): Gettextizze.
15867 (GRUB_MOD_INIT): Likewise.
15868 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
15869 (GRUB_MOD_INIT): Gettextizze.
15870 * commands/search.c: Include `<grub/i18n.h>'.
15871 (options): Gettextizze.
15872 (GRUB_MOD_INIT): Gettextizze.
15873 * lib/arg.c: Include `<grub/i18n.h>'.
15874 (help_options): Gettextizze.
15875 (find_long): Likewise.
15876 (grub_arg_show_help): Likewise.
15877 * normal/dyncmd.c: Include `<grub/i18n.h>'.
15878 (read_command_list): Gettextizze.
15879 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
15880 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
15882 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
15884 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
15885 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
15886 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
15887 (led_status): New variable.
15888 (keyboard_controller_led): New function.
15889 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
15890 update led status for caps lock, num lock and scroll lock.
15892 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
15894 * util/hostdisk.c (open_device): Fix a comment.
15896 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15898 * util/grub-install.in (host_os): New variable.
15899 * util/i386/efi/grub-install.in (host_os): Likewise.
15901 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15903 * util/mkisofs/write.c (padblock_write): Abort when given an
15904 excedingly large embed image, instead of silently truncating it.
15906 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15908 * include/multiboot.h: Indentation fixes.
15910 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15912 * include/multiboot.h (struct multiboot_aout_symbol_table)
15913 (struct multiboot_elf_section_header_table): New structure
15914 declarations (stolen from GRUB Legacy).
15915 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
15918 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
15919 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
15922 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15924 * include/multiboot.h: Make comments src2texi-friendly.
15926 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15928 For consistency with [multiboot]/docs/boot.S.
15930 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
15931 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
15932 (MULTIBOOT_MAGIC2): Rename from this ...
15933 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
15935 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15937 * include/multiboot.h: Remove `<grub/types.h>'.
15938 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
15939 types. Update all users.
15941 2009-12-25 Carles Pina i Estany <carles@pina.cat>
15943 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
15944 `couldn't' and `can not' by `cannot'.
15945 * commands/i386/pc/drivemap.c: Likewise.
15946 * disk/ata.c: Likewise.
15947 * disk/ieee1275/nand.c: Likewise.
15948 * fs/affs.c: Likewise.
15949 * fs/fat.c: Likewise.
15950 * fs/hfs.c: Likewise.
15951 * fs/hfsplus.c: Likewise.
15952 * fs/iso9660.c: Likewise.
15953 * fs/jfs.c: Likewise.
15954 * fs/minix.c: Likewise.
15955 * fs/reiserfs.c: Likewise.
15956 * fs/sfs.c: Likewise.
15957 * fs/udf.c: Likewise.
15958 * fs/ufs.c: Likewise.
15959 * fs/xfs.c: Likewise.
15960 * loader/powerpc/ieee1275/linux.c: Likewise.
15961 * loader/sparc64/ieee1275/linux.c: Likewise.
15962 * util/grub-probe.c: Likewise.
15963 * util/misc.c: Likewise.
15965 2009-12-24 Carles Pina i Estany <carles@pina.cat>
15967 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
15969 * commands/acpi.c: Likewise.
15970 * commands/blocklist.c: Likewise.
15971 * commands/efi/loadbios.c: Likewise.
15972 * commands/i386/pc/drivemap.c: Likewise.
15973 * commands/loadenv.c: Likewise.
15974 * commands/memrw.c: Likewise.
15975 * commands/password.c: Likewise.
15976 * commands/videotest.c: Likewise.
15977 * disk/ata.c: Likewise.
15978 * disk/ata_pthru.c: Likewise.
15979 * disk/dmraid_nvidia.c: Likewise.
15980 * disk/ieee1275/nand.c: Likewise.
15981 * disk/ieee1275/ofdisk.c: Likewise.
15982 * disk/loopback.c: Likewise.
15983 * disk/lvm.c: Likewise.
15984 * disk/mdraid_linux.c: Likewise.
15985 * disk/raid.c: Likewise.
15986 * disk/raid6_recover.c: Likewise.
15987 * disk/scsi.c: Likewise.
15988 * efiemu/main.c: Likewise.
15989 * efiemu/mm.c: Likewise.
15990 * efiemu/pnvram.c: Likewise.
15991 * efiemu/symbols.c: Likewise.
15992 * font/font.c: Likewise.
15993 * fs/cpio.c: Likewise.
15994 * fs/hfsplus.c: Likewise.
15995 * fs/iso9660.c: Likewise.
15996 * fs/jfs.c: Likewise.
15997 * fs/minix.c: Likewise.
15998 * fs/ntfs.c: Likewise.
15999 * fs/ntfscomp.c: Likewise.
16000 * fs/reiserfs.c: Likewise.
16001 * fs/ufs.c: Likewise.
16002 * fs/xfs.c: Likewise.
16003 * gettext/gettext.c: Likewise.
16004 * include/grub/auth.h: Likewise.
16005 * kern/elf.c: Likewise.
16006 * kern/file.c: Likewise.
16007 * kern/ieee1275/init.c: Likewise.
16008 * kern/ieee1275/mmap.c: Likewise.
16009 * kern/ieee1275/openfw.c: Likewise.
16010 * kern/powerpc/dl.c: Likewise.
16011 * kern/sparc64/dl.c: Likewise.
16012 * lib/arg.c: Likewise.
16013 * loader/i386/bsd.c: Likewise.
16014 * loader/i386/bsdXX.c: Likewise.
16015 * loader/i386/efi/linux.c: Likewise.
16016 * loader/i386/efi/xnu.c: Likewise.
16017 * loader/i386/ieee1275/linux.c: Likewise.
16018 * loader/i386/linux.c: Likewise.
16019 * loader/i386/multiboot.c: Likewise.
16020 * loader/i386/pc/linux.c: Likewise.
16021 * loader/i386/pc/multiboot2.c: Likewise.
16022 * loader/i386/xnu.c: Likewise.
16023 * loader/ieee1275/multiboot2.c: Likewise.
16024 * loader/macho.c: Likewise.
16025 * loader/machoXX.c: Likewise.
16026 * loader/multiboot2.c: Likewise.
16027 * loader/multiboot_loader.c: Likewise.
16028 * loader/powerpc/ieee1275/linux.c: Likewise.
16029 * loader/sparc64/ieee1275/linux.c: Likewise.
16030 * loader/xnu.c: Likewise.
16031 * loader/xnu_resume.c: Likewise.
16032 * mmap/i386/pc/mmap.c: Likewise.
16033 * normal/menu_viewer.c: Likewise.
16034 * partmap/acorn.c: Likewise.
16035 * partmap/amiga.c: Likewise.
16036 * partmap/apple.c: Likewise.
16037 * script/lexer.c: Likewise.
16038 * term/gfxterm.c: Likewise.
16039 * term/i386/pc/serial.c: Likewise.
16040 * term/i386/pc/vga.c: Likewise.
16041 * term/ieee1275/ofconsole.c: Likewise.
16042 * term/terminfo.c: Likewise.
16043 * video/bitmap.c: Likewise.
16044 * video/efi_gop.c: Likewise.
16045 * video/efi_uga.c: Likewise.
16046 * video/fb/video_fb.c: Likewise.
16047 * video/i386/pc/vbe.c: Likewise.
16048 * video/readers/tga.c: Likewise.
16049 * video/video.c: Likewise.
16051 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
16053 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
16054 * commands/lspci.c: Likewise.
16055 * commands/probe.c: Likewise.
16056 * commands/xnu_uuid.c: Likewise.
16057 * conf/i386-coreboot.rmk: Likewise.
16058 * conf/i386-efi.rmk: Likewise.
16059 * conf/i386-ieee1275.rmk: Likewise.
16060 * conf/i386-pc.rmk: Likewise.
16061 * conf/powerpc-ieee1275.rmk: Likewise.
16062 * conf/sparc64-ieee1275.rmk: Likewise.
16063 * conf/x86_64-efi.rmk: Likewise.
16064 * fs/i386/pc/pxe.c: Likewise.
16065 * gettext/gettext.c: Likewise.
16066 * include/grub/efi/graphics_output.h: Likewise.
16067 * include/grub/i386/pc/memory.h: Likewise.
16068 * kern/env.c: Likewise.
16069 * kern/i386/qemu/startup.S: Likewise.
16070 * lib/i386/pc/biosnum.c: Likewise.
16071 * lib/i386/relocator.c: Likewise.
16072 * lib/i386/relocator_asm.S: Likewise.
16073 * lib/relocator.c: Likewise.
16074 * loader/i386/bsd.c: Likewise.
16075 * loader/i386/multiboot.c: Likewise.
16076 * loader/i386/pc/chainloader.c: Likewise.
16077 * loader/i386/xnu.c: Likewise.
16078 * loader/xnu.c: Likewise.
16079 * normal/main.c: Likewise.
16080 * normal/menu_text.c: Likewise.
16081 * util/getroot.c: Likewise.
16082 * util/grub-mkconfig_lib.in: Likewise.
16083 * util/grub.d/00_header.in: Likewise.
16084 * util/i386/pc/grub-mkimage.c: Likewise.
16085 * util/mkisofs/eltorito.c: Likewise.
16086 * util/mkisofs/exclude.h: Likewise.
16087 * util/mkisofs/hash.c: Likewise.
16088 * util/mkisofs/iso9660.h: Likewise.
16089 * util/mkisofs/joliet.c: Likewise.
16090 * util/mkisofs/mkisofs.c: Likewise.
16091 * util/mkisofs/mkisofs.h: Likewise.
16092 * util/mkisofs/multi.c: Likewise.
16093 * util/mkisofs/name.c: Likewise.
16094 * util/mkisofs/rock.c: Likewise.
16095 * util/mkisofs/tree.c: Likewise.
16096 * util/mkisofs/write.c: Likewise.
16097 * video/efi_gop.c: Likewise.
16099 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
16101 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
16104 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16106 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
16107 * genmk.rb (class SCRIPT): Modify the target file instead of source.
16109 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16111 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
16112 (GRUB_MOD_INIT(memrw)): Update help line.
16114 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16116 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
16117 Use grub_extcmd_t. All users updated.
16118 (options): New variable.
16119 (grub_cmd_read): Restructure for readability. Support "-v" option.
16120 (grub_cmd_write): Restructure for readability.
16122 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16124 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
16126 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16128 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
16129 with the actual contents of the correspondending make variable.
16130 * util/grub-mkrescue.in (pkglib_DATA): New variable.
16131 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
16132 specifying `*.lst' and `efiemu??.o'
16134 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16136 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
16137 after function name.
16138 Noticed by Rene Engelhard <rene@debian.org>.
16140 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16142 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
16143 (options): New variable.
16144 (iospace): Likewise.
16145 (grub_lspci_iter): List IO spaces if "-i" was given.
16146 (grub_cmd_lspci): Parse options.
16147 (GRUB_MOD_INIT(lspci)): Use extcmd.
16148 (GRUB_MOD_FINI(lspci)): Likewise.
16150 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16152 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
16153 `function' keyword.
16154 Patch by Tony Mancill <tmancill@debian.org>.
16156 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16158 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
16159 (grub_uhci_portstatus): Likewise.
16160 (grub_uhci_portstatus): Add necessary delay.
16161 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
16163 2009-12-21 Carles Pina i Estany <carles@pina.cat>
16165 * commands/acpi.c (options): Fix capitalizations and/or full stops.
16166 (GRUB_MOD_INIT): Likewise.
16167 * commands/boot.c (GRUB_MOD_INIT): Likewise.
16168 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
16169 * commands/echo.c (options): Fix capitalizations and/or full stops.
16170 * commands/efi/loadbios.c (enable_rom_area): Likewise.
16171 (enable_rom_area): Likewise.
16172 (GRUB_MOD_INIT): Likewise.
16173 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
16174 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
16175 * commands/handler.c (GRUB_MOD_INIT): Likewise.
16176 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
16177 * commands/hexdump.c (options): Likewise.
16178 * commands/i386/cpuid.c (options): Likewise.
16179 (GRUB_MOD_INIT): Likewise.
16180 * commands/i386/pc/drivemap.c (options): Likewise.
16181 (GRUB_MOD_INIT): Likewise.
16182 * commands/i386/pc/halt (options): Likewise.
16183 (GRUB_MOD_INIT): Likewise.
16184 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
16185 * commands/i386/pc/pxecmd.c (options): Likewise.
16186 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
16187 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
16188 * commands/keystatus.c (options): Likewise.
16189 (GRUB_MOD_INIT): Likewise.
16190 * commands/loadenv.c (options): Likewise.
16191 * commands/ls.c (options): Likewise.
16192 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
16193 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
16194 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
16195 * commands/parttool.c (helpmsg): Likewise.
16196 * commands/probe.c (options): Likewise.
16197 * commands/read.c (GRUB_MOD_INIT): Likewise.
16198 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
16199 * commands/search.c (options): Likewise.
16200 * commands/sleep.c (options): Likewise.
16201 * commands/test.c (GRUB_MOD_INIT): Likewise.
16202 * commands/true.c (GRUB_MOD_INIT): Likewise.
16203 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
16204 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
16205 * lib/arg.c (help_options): Likewise.
16206 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
16208 * po/POTFILES: Add `commands/loadenv.c'.
16210 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
16212 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
16213 instead of specifying them explicit.
16215 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16217 * NEWS: Add grub-probe support for GNU/Hurd.
16219 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16221 * NEWS: gettext was added after 1.97.
16223 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16225 * util/mkisofs/msdos_partition.h: New file (based on
16226 include/grub/msdos_partition.h).
16227 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
16228 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
16229 (ld_options, main): Recognize --protective-msdos-label.
16230 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
16231 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
16232 (padblock_write): If `use_protective_msdos_label' is set, patch a
16233 protective DOS-style label in the output image.
16235 * util/grub-mkrescue.in: Use --protective-msdos-label.
16237 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16239 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
16242 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16244 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
16246 (ld_options, main): Recognize `--embedded-boot'.
16247 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
16249 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
16250 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
16251 (padblock_write): Likewise. Rewrite to support embedded boot image.
16253 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
16254 for BIOS-based disk boot instead of only ElTorito.
16256 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16258 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
16259 build (not needed for bootstrap).
16261 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16263 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
16264 from i386-pc build (not needed for bootstrap).
16265 Rewrite a pair of strings.
16267 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16269 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
16271 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
16273 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
16275 2009-12-21 Andreas Born <futur.andy@googlemail.com>
16277 * kern/env.c (grub_env_context_open): Mark exported variable for
16280 2009-12-21 Andreas Born <futur.andy@googlemail.com>
16282 * kern/env.c (grub_env_export): Create nonexistent variables before
16285 2009-12-20 Carles Pina i Estany <carles@pina.cat>
16287 * include/grub/auth.h: Include `<grub/i18n.h>'.
16288 (GRUB_GET_PASSWORD): Gettextizze string.
16289 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
16291 (grub_utf8_to_ucs4_alloc): Fix indentation.
16292 (grub_print_ucs4): Likewise.
16293 (grub_getstringwidth): Likewise.
16294 (print_message_indented): New declaration.
16295 * normal/auth.c: Include `<grub/i18n.h>'.
16296 (grub_auth_check_authentication): Gettexttize string.
16297 * normal/cmdline.c: Include `<grub/i18n.h>'.
16298 (grub_cmdline_get): Gettextizze.
16299 * normal/color.c: Include `<grub/i18n.h>'.
16300 (grub_parse_color_name_pair): Gettexttize strings.
16301 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
16302 string (use `print_message_indented').
16303 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
16304 `include/grub/normal.h'.
16305 (print_message_indented): Renamed to ...
16306 (grub_print_message_indented): ... this. Remove `static' qualifer (now
16307 used in normal/main.c).
16308 (print_message): Use `grub_print_message_indented' instead of
16309 `print_message_indented'.
16310 (print_timeout): Likewise.
16311 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
16312 (grub_normal_print_device_info): Gettexttize strings.
16313 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
16315 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
16317 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
16318 of arguments. Return number of tokens and not arguments. All users
16321 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
16323 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
16324 non-MSDOS paritions.
16326 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16328 * include/grub/types.h (UNUSED): Removed since it conflicts with
16329 NetBSD headers. All users changed to direct __attribute__ ((unused)).
16330 Reported by Grégoire Sutre.
16332 2009-12-19 Carles Pina i Estany <carles@pina.cat>
16334 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
16335 (grub_print_ucs4_alloc): Likewise.
16336 (grub_getstringwidth): Likewise.
16337 * normal/main.c (grub_normal_init_page): Gettextize version string.
16338 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
16339 (getstringwidth): Renamed to ...
16340 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
16341 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
16342 (grub_print_ucs4): Remove `static' qualifer (now used in
16344 * po/POTFILES: Add normal/main.c.
16346 2009-12-19 Carles Pina i Estany <carles@pina.cat>
16348 * normal/menu_text.c (STANDARD_MARGIN): New macro.
16349 (print_message_indented): Add `margin_left' and `margin_right'
16351 (print_message): Update `print_message_indented' calls. Adds '\n' to the
16353 (print_timeout): Use `print_message_indented' to print the message.
16354 Deletes `second_stage' parameter.
16355 (run_menu): Update `print_timeout' calls.
16357 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16359 Fix console palette on OpenFirmware.
16361 * term/ieee1275/ofconsole.c (MAX): Removed.
16362 (colors): Redone based on VGA palette.
16363 (grub_ofconsole_setcolor): Discard brightness bit since only 8
16364 colors are supported.
16365 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
16367 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16369 Fix potential EfiEmu double prepare.
16371 * efiemu/main.c (prepared): New variable
16372 (grub_efiemu_unload): Set prepare to '0'.
16373 (grub_efiemu_prepare): Return if already prepared. Set prepared.
16375 set_virtual_address_map support.
16377 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
16379 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
16381 (grub_efiemu_crc32): Likewise.
16382 (grub_efiemu_crc64): Likewise.
16383 (grub_efiemu_set_virtual_address_map): Likewise.
16384 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
16386 (grub_autoefi_set_virtual_address_map): Likewise.
16387 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
16388 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
16389 Restructure flow to accomodate it.
16390 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
16391 (grub_efiemu_crc): Recompute CRC32.
16392 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
16393 (efiemu_ptv_relocated): ... this. Made global. All users updated.
16394 * efiemu/symbols.c (relocated_handle): New variable.
16395 (grub_efiemu_free_syms): Free relocated_handle.
16396 (grub_efiemu_alloc_syms): Allocate relocated_handle.
16397 (grub_efiemu_write_sym_markers): New function.
16398 (grub_efiemu_set_virtual_address_map): Likewise.
16400 Newer XNU parameters.
16402 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
16403 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
16404 (grub_xnu_fill_devicetree): New prototype.
16405 (grub_xnu_heap_real_start): New variable.
16406 * loader/xnu.c (get_name_ptr): New function.
16407 (grub_xnu_load_driver): Fill namelen and name.
16409 64-bit xnu support.
16411 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
16412 and 'loader/macho64.c'.
16413 * conf/i386-pc.rmk: Likewise.
16414 * conf/x86_64-efi.rmk: Likewise.
16415 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
16416 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
16417 * include/grub/macho.h (grub_macho_segment64): New structure.
16418 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
16419 (grub_macho_size32): ... to this.
16420 (grub_macho32_get_entry_point): Renamed from ...
16421 (grub_macho_get_entry_point32): ... to this.
16422 (grub_macho_contains_macho64): New prototype.
16423 (grub_macho_size64): Likewise.
16424 (grub_macho_get_entry_point64): Likewise.
16425 (grub_macho32_load): Renamed from ...
16426 (grub_macho_load32): ... to this.
16427 (grub_macho32_filesize): Renamed from ...
16428 (grub_macho_filesize32): ... to this.
16429 (grub_macho32_readfile): Renamed from ...
16430 (grub_macho_readfile32): ... to this.
16431 (grub_macho_filesize64): New prototype.
16432 (grub_macho_readfile64): Likewise.
16433 (grub_macho_parse32): Likewise.
16434 (grub_macho_parse64): Likewise.
16435 * loader/macho.c: Split into ...
16436 * loader/machoXX.c: ... and this. Replace 32 with XX.
16437 * loader/macho32.c: New file.
16438 * loader/macho64.c: Likewise.
16439 * loader/xnu.c (grub_xnu_is_64bit): New variable.
16440 (grub_cmd_xnu_kernel): Make 32-bit only.
16441 (grub_cmd_xnu_kernel64): New function.
16442 (grub_xnu_load_driver): Support Mach-O 64.
16443 (grub_cmd_xnu_mkext): Likewise.
16444 * util/grub.d/30_os-prober.in (osx_entry): New function.
16445 Generate entries for 64-bit boot too.
16447 Eliminate ad-hoc tree format in XNU and EfiEmu.
16449 * efiemu/main.c (grub_efiemu_prepare): Update comment.
16450 * efiemu/pnvram.c: Rewritten to use environment variables.
16453 Inline utf16_to_utf8.
16455 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
16456 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
16458 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
16460 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
16461 * commands/usbtest.c (grub_usb_get_string): ... move here.
16462 (usb_print_str): Fix error handling.
16463 * include/grub/usb.h (grub_usb_get_string): Remove.
16465 UTF-8 to UTF-16 transformation.
16467 * conf/common.rmk (pkglib_MODULES): Add charset.mod
16468 (charset_mod_SOURCES): New variable.
16469 (charset_mod_CFLAGS): Likewise.
16470 (charset_mod_LDFLAGS): Likewise.
16471 * include/grub/utf.h: New file.
16472 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
16474 Support for device properties.
16476 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
16477 (grub_xnu_devprop_device_header): Likewise.
16478 (grub_xnu_devprop_device_descriptor): Likewise.
16479 (grub_xnu_devprop_add_device): New prototype.
16480 (grub_xnu_devprop_remove_device): Likewise.
16481 (grub_xnu_devprop_remove_property): Likewise.
16482 (grub_xnu_devprop_add_property_utf8): Likewise.
16483 (grub_xnu_devprop_add_property_utf16): Likewise.
16484 (grub_cpu_xnu_init): Likewise.
16485 (grub_cpu_xnu_fini): Likewise.
16486 (grub_cpu_xnu_unload): Likewise.
16487 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
16488 (property_descriptor): Likewise.
16489 (devices): New variable.
16490 (grub_xnu_devprop_remove_property): New function.
16491 (grub_xnu_devprop_add_device): Likewise.
16492 (grub_xnu_devprop_remove_device): Likewise.
16493 (grub_xnu_devprop_add_property): Likewise.
16494 (grub_xnu_devprop_add_property_utf8): Likewise.
16495 (grub_xnu_devprop_add_property_utf16): Likewise.
16496 (hextoval): Likewise.
16497 (grub_cpu_xnu_fill_devprop): Likewise.
16498 (grub_cmd_devprop_load): Likewise.
16499 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
16500 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
16501 (cmd_devprop_load): New variable.
16502 (grub_cpu_xnu_init): New function.
16503 (grub_cpu_xnu_fini): Likewise.
16504 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
16505 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
16506 (grub_cmd_xnu_devtree): Likewise.
16507 (hextoval): New function.
16508 (unescape): Likewise.
16509 (grub_xnu_fill_devicetree): Likewise.
16511 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
16512 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
16514 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16516 Workaround for broken ATI VBE.
16518 * video/i386/pc/vbe.c (last_set_mode): New variable.
16519 (grub_vbe_set_video_mode): Set 'last_set_mode'.
16520 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
16521 (grub_video_vbe_setup): Don't check for reserved flag.
16523 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
16525 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
16526 the `find' command.
16528 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
16530 UUID support for HFS.
16532 * fs/hfs.c (grub_hfs_uuid): New function.
16533 (grub_hfs_fs): New value .uuid.
16534 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
16536 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
16538 Fix a segfault with parsing unknown long options.
16540 * util/grub-mkrelpath.c (options): Zero terminate it.
16542 2009-12-13 Carles Pina i Estany <carles@pina.cat>
16544 * include/grub/misc.h (grub_puts): New declaration.
16545 (grub_puts_): Likewise.
16546 * kern/misc.c (grub_puts): New definition.
16547 (grub_puts_): Likewise.
16549 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
16551 * util/grub-probe.c (probe): Improve error message.
16553 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
16555 * loader/i386/multiboot_elfxx.c
16556 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
16559 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16561 Relocator framework
16563 * loader/i386/xnu_helper.S: Removed. All users updated.
16564 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
16565 (relocator_mod_SOURCES): New variable.
16566 (relocator_mod_CFLAGS): Likewise.
16567 (relocator_mod_LDFLAGS): Likewise.
16568 (relocator_mod_ASFLAGS): Likewise.
16569 * conf/x86_64.rmk: Likewise.
16570 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
16571 (grub_multiboot_payload_entry_offset): Likewise.
16572 (grub_multiboot_forward_relocator): Likewise.
16573 (grub_multiboot_forward_relocator_end): Likewise.
16574 (grub_multiboot_backward_relocator): Likewise.
16575 (grub_multiboot_backward_relocator_end): Likewise.
16576 (grub_multiboot_payload_eip): New variable.
16577 (grub_multiboot_payload_orig): Likewise.
16578 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
16579 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
16580 * include/grub/i386/memory.h
16581 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
16582 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
16583 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
16584 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
16585 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
16586 * include/grub/i386/relocator.h: New file.
16587 * include/grub/x86_64/relocator.h: Likewise.
16588 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
16589 (XNU_RELOCATOR): New macro.
16590 (grub_xnu_launcher_start): Remove.
16591 (grub_xnu_launcher_end): Likewise.
16592 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
16593 (grub_xnu_heap_real_start): Remove.
16594 (grub_xnu_heap_start): Change to void *. All users updated.
16595 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
16596 * lib/i386/relocator.c: New file.
16597 * lib/i386/relocator_asm.S: Likewise.
16598 * lib/i386/relocator_backward.S: Likewise.
16599 * lib/mips/relocator.c: Likewise.
16600 * lib/mips/relocator_asm.S: Likewise.
16601 * lib/relocator.c: Likewise.
16602 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
16604 (playground): Likewise.
16605 (grub_multiboot_payload_orig): New variable.
16606 (grub_multiboot_payload_dest): Likewise.
16607 (grub_multiboot_payload_size): Likewise.
16608 (grub_multiboot_payload_eip): Likewise.
16609 (grub_multiboot_payload_esp): Likewise.
16610 (grub_multiboot_boot): Use grub_relocator32_boot.
16611 (grub_multiboot_unload): Free relocators.
16612 (grub_multiboot): Setup stack. Use relocators.
16613 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
16614 (grub_multiboot_load_elfXX): Use relocators.
16615 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
16616 (grub_multiboot_payload_size): Likewise.
16617 (grub_multiboot_payload_dest): Likewise.
16618 (grub_multiboot_payload_entry_offset): Likewise.
16619 (grub_multiboot_forward_relocator): Likewise.
16620 (grub_multiboot_backward_relocator): Likewise.
16621 (grub_multiboot_real_boot): Likewise.
16622 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
16623 (grub_xnu_entry_point): Likewise.
16624 (grub_xnu_arg1): Likewise.
16625 (grub_xnu_stack): Likewise.
16626 (grub_xnu_launch): Removed.
16627 (grub_xnu_boot_resume): New function.
16628 (grub_xnu_boot): Use relocators.
16629 * loader/i386/xnu_helper.S: Removed.
16630 * loader/xnu.c (grub_xnu_heap_start): New variable.
16631 (grub_xnu_heap_size): Likewise.
16632 (grub_xnu_heap_malloc): Use relocators.
16633 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
16635 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16637 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
16640 2009-12-13 Carles Pina i Estany <carles@pina.cat>
16642 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
16643 GRUB_ERR_NONE before calling grub_env_set.
16645 2009-12-12 Robert Millan <rmh@aybabtu.com>
16647 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
16648 * genmk.rb (video): New variable.
16649 (CLEANFILES, VIDEOFILES): Add #{video}.
16650 (#{video}): New target rule.
16651 * genvideolist.sh: New file.
16652 * Makefile.in (pkglib_DATA): Add video.lst.
16653 (video.lst): New target rule.
16654 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
16656 * util/grub.d/30_os-prober.in: Replace `vbe' with
16657 ${GRUB_VIDEO_BACKEND}.
16659 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
16661 * THANKS: Add David Miller.
16663 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
16665 libpciaccess support.
16667 * Makefile.in (LIBPCIACCESS): New variable.
16668 (enable_grub_emu_pci): Likewise.
16669 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
16670 util/pci.c and commands/lspci.c.
16671 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
16672 * configure.ac (grub-emu-pci): New option.
16673 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
16674 (grub_pci_device_unmap_range): Likewise.
16675 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
16676 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
16677 (grub_pci_address_t) [!GRUB_UTIL]: New type.
16678 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
16679 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
16680 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
16681 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
16682 * include/grub/pciutils.h: New file.
16683 * util/pci.c: Likewise.
16685 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
16687 * util/misc.c: Don't include <errno.h> twice.
16689 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
16691 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
16692 name in an error message.
16693 (grub_biosdisk_rw): Likewise.
16695 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
16697 Eliminate NTFS 4Gib barrier.
16699 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
16700 (read_run_data): Likewise.
16701 (grub_ntfs_read_run_list): Likewise.
16702 (grub_ntfs_read_block): Likewise.
16703 (grub_ntfs_iterate_dir): Likewise.
16704 (read_mft): Likewise.
16705 (read_data): Likewise.
16707 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
16708 to avoid 64-bit division
16709 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
16710 (grub_ntfs_rlst): Use grub_disk_addr_t.
16712 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
16714 Eliminate grub-fstest 4Gib barrier.
16716 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
16717 (read_file): Fix error reporting.
16719 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
16721 Eliminate hexdump 4Gib barrier.
16723 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
16724 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
16726 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
16728 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
16731 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
16733 Remove miscellaneous files in distclean target.
16735 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
16737 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
16739 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
16740 if they're already set. This resolves the conflict between my
16741 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
16742 fixing the --grub-probe option again.
16743 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
16744 change on 2009-10-06, so that we now once again source
16745 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
16747 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
16749 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
16750 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
16751 `util/devicemap.c'.
16753 2009-12-08 Carles Pina i Estany <carles@pina.cat>
16755 * include/grub/misc.h (grub_printf_): New declaration.
16756 * kern/misc.c (grub_printf_): New definition.
16757 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
16758 instead of `grub_printf' and `_'.
16759 * normal/menu_entry.c (store_completion): Likewise.
16761 (grub_menu_entry_run): Likewise.
16762 * normal/menu_text.c (grub_wait_after_message): Likewise.
16763 (notify_booting): Likewise.
16764 (notify_fallback): Likewise.
16765 (notify_execution_failure): Likewise.
16767 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
16769 * configure.ac: Check for vasprintf.
16770 * util/misc.c (asprintf): Move allocation from here ...
16771 (vasprintf): ... to here. New function.
16772 (xasprintf): New function.
16773 * include/grub/util/misc.h (vasprintf, xasprintf): Add
16775 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
16776 * util/grub-mkfont.c (write_font): Likewise.
16777 * util/grub-probe.c (probe): Likewise.
16778 * util/hostdisk.c (make_device_name): Likewise.
16780 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
16782 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
16783 anything even prefixed with 'cdrom' as a cdrom.
16785 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
16787 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
16790 2009-12-05 Carles Pina i Estany <carles@pina.cat>
16792 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
16793 grub_gettext_msg_list.
16794 (grub_gettext_gettranslation_from_position): Return const char *
16796 (grub_gettext_translate): Add the translated strings into a list,
16797 returns from the list if existing there.
16798 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
16799 (grub_gettext_delete_list): Delete the list.
16800 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
16801 lang environment variable is changed.
16802 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
16804 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
16806 Rename kernel.mod to kernel.img.
16808 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
16809 (kernel_mod_EXPORTS): Rename to ...
16810 (kernel_img_EXPORTS): ... this.
16811 (kernel_mod_SOURCES): Rename to ...
16812 (kernel_img_SOURCES): ... this.
16813 (kernel_mod_HEADERS): Rename to ...
16814 (kernel_img_HEADERS): ... this. All users updated.
16815 (kernel_mod_CFLAGS): Rename to ...
16816 (kernel_img_CFLAGS): ... this.
16817 (kernel_mod_ASFLAGS): Rename to ...
16818 (kernel_img_ASFLAGS): ... this.
16819 (kernel_mod_LDFLAGS): Rename to ...
16820 (kernel_img_LDFLAGS): ... this.
16821 * conf/x86_64-efi.rmk: Likewise.
16822 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
16823 (read_kernel_image): ... this. All users updated.
16824 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
16826 2009-12-05 Carles Pina i Estany <carles@pina.cat>
16828 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
16829 (print_spaces): New function.
16830 (grub_print_ucs4): New function.
16831 (getstringwidth): New function.
16832 (print_message_indented): New function.
16833 (print_message): Gettexttize strings using print_message_indented.
16834 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
16836 (get_entry_number): Gettextize and uses dynamic terminal width.
16837 (notify_booting, notify_fallback, notify_execution_failure):
16839 * normal/menu_entry.c (store_completion): Cleanup the gettextized
16842 (grub_menu_entry_run): Likewise.
16843 * PO/POTFILES: Add normal/menu_entry.c.
16845 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
16847 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
16849 2009-12-05 Carles Pina i Estany <carles@pina.cat>
16851 * util/grub-install.in: Install gettext .mo files.
16852 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
16854 2009-12-05 Carles Pina i Estany <carles@pina.cat>
16856 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
16859 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
16861 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
16862 non-firmware-dependant one in realmode.S takes precedence.
16864 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
16866 * commands/halt.c: Replace misc arch-specific headers with
16868 * commands/reboot.c: Likewise.
16869 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
16871 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
16872 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
16873 (kernel_img_SOURCES): ... to here.
16875 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
16876 * include/grub/i386/pc/init.h: Likewise.
16877 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
16878 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
16880 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
16882 * include/grub/i386/halt.h: Remove.
16883 * include/grub/i386/reboot.h: Likewise.
16885 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
16887 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
16889 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
16890 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
16891 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
16893 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
16894 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16895 (usage): Add missing comma in printf.
16897 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
16899 Use the same reboot approach on i386 coreboot and qemu as we do on
16902 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
16903 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
16904 * kern/i386/reboot.c: Remove.
16905 * include/grub/i386/reboot.h (grub_reboot): Export function.
16906 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
16907 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
16908 0xf000:0xfff0 instead of 0xffff:0x0000.
16909 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
16910 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
16912 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
16914 Fix $srcdir != $objdir build.
16916 * Makefile.in (po/%.po): Rewrite as ...
16917 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
16919 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16921 Fix GNU/Hurd grub-install crash.
16922 * util/grub-probe.c (probe): Try to access `path' only when it is not
16925 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
16927 Correct module naming.
16929 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
16930 (GRUB_MOD_INIT(efi_uga)): ... to this
16931 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
16932 (GRUB_MOD_FINI(efi_uga)): ... to this
16933 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
16934 (GRUB_MOD_INIT(efi_gop)): ... to this
16935 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
16936 (GRUB_MOD_FINI(efi_gop)): ... to this
16938 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
16940 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
16942 (usage): Translate `arg' strings using gettext().
16943 Thanks to Jordi Mallach for the suggestion.
16945 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
16947 GOP support. Based on patch from Bean
16948 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
16950 * video/efi_gop.c: New file.
16951 * include/grub/efi/graphics_output.h: Likewise.
16952 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
16953 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
16955 * conf/x86_64-efi.rmk: Likewise.
16957 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
16959 Rename efi_fb to efi_uga.
16961 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
16963 (efi_fb_mod_SOURCES): Rename this ...
16964 (efi_uga_mod_SOURCES): ... to this.
16965 (efi_fb_mod_CFLAGS): Rename this ...
16966 (efi_uga_mod_CFLAGS): ... to this.
16967 (efi_fb_mod_LDFLAGS): Rename this ...
16968 (efi_uga_mod_LDFLAGS): ... to this.
16969 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
16971 (efi_fb_mod_SOURCES): Rename this ...
16972 (efi_uga_mod_SOURCES): ... to this.
16973 (efi_fb_mod_CFLAGS): Rename this ...
16974 (efi_uga_mod_CFLAGS): ... to this.
16975 (efi_fb_mod_LDFLAGS): Rename this ...
16976 (efi_uga_mod_LDFLAGS): ... to this.
16977 * video/efi_fb.c: Move this ...
16978 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
16980 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
16982 * po/README: New file. Explain our PO file workflow.
16984 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
16986 * po/ChangeLog: Remove. Move relevant entries back to ...
16987 * ChangeLog: ... here.
16988 * po/ca.po: Remove (now handled by TLP).
16989 * po/id.po: Likewise.
16990 * po/zh_CN.po: Likewise.
16991 * Makefile.in (LINGUAS): Initialize in a way that supports
16994 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
16996 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
16997 reliing on po/LINGUAS.
16998 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
16999 (po/%.po): ... this.
17001 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17003 * util/i386/efi/grub-mkimage.c: Include "progname.h".
17004 (main): Use `program_name' instead of nonexistent `progname'.
17006 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17008 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
17009 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
17011 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
17013 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
17015 * conf/i386-efi.rmk: Likewise.
17016 * conf/i386-ieee1275.rmk: Likewise.
17017 * conf/powerpc-ieee1275.rmk: Likewise.
17018 * conf/sparc64-ieee1275.rmk: Likewise.
17019 * conf/x86_64-efi.rmk: Likewise.
17021 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17023 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
17025 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17027 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
17029 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
17031 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
17032 (grub_mkdevicemap_SOURCES): New variable.
17033 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
17034 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
17035 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
17036 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
17037 (grub_mkdevicemap_SOURCES): Remove.
17038 * conf/i386-efi.rmk: Likewise.
17039 * conf/i386-ieee1275.rmk: Likewise.
17040 * conf/i386-pc.rmk: Likewise.
17041 * conf/powerpc-ieee1275.rmk: Likewise.
17042 * conf/sparc64-ieee1275.rmk: Likewise.
17043 * conf/x86_64-efi.rmk: Likewise.
17044 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
17045 (usage): Fix strings to use `program_name'.
17046 (main): Initialize gettext.
17047 * util/grub-editenv.c: Likewise.
17048 * util/grub-emu.c: Likewise.
17049 * util/grub-fstest.c: Likewise.
17050 * util/grub-mkdevicemap.c: Likewise.
17051 * util/grub-mkfont.c: Likewise.
17052 * util/grub-mkrelpath.c: Likewise.
17053 * util/grub-pe2elf.c: Likewise.
17054 * util/grub-probe.c: Likewise.
17055 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
17056 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
17057 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17059 * util/misc.c: Include `"progname.h"'.
17060 (progname): Remove variable.
17061 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
17063 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
17065 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
17066 printf and print a newline after the menuentry header line.
17067 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
17069 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
17071 autoconf >= 2.60 support $(localedir).
17073 * INSTALL: Note that autoconf 2.60 is required.
17074 * configure.ac (AC_PREREQ): Bump to 2.60.
17075 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
17076 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
17078 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
17080 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
17083 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
17085 * normal/main.c (grub_normal_read_line): Fix off-by-one
17088 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
17090 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
17091 "parser.grub" in grub_command_execute() call.
17093 2009-11-24 Carles Pina i Estany <carles@pina.cat>
17095 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
17096 * conf/i386-efi.rmk: Likewise.
17097 * conf/i386-ieee1275.rmk: Likewise.
17098 * conf/i386-pc.rmk: Likewise.
17099 * conf/powerpc-ieee1275.rmk: Likewise.
17100 * conf/sparc64-ieee1275.rmk: Likewise.
17101 * conf/x86_64-efi.rmk: Likewise.
17102 * gettext/gettex.c: Include <grub/i18n.h>.
17103 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
17105 * include/grub/i18n.h: ... to here
17106 * include/grub/i18n.h: ... to here.
17107 * kern/misc.c: Include <grub/i18n.h>
17108 (grub_gettext_dummy): Move above user.
17110 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17112 * util/Makefile.in (install-local): Convert a `for' into a normal
17115 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
17117 * autogen.sh: Add automake call.
17118 * config.guess: Remove.
17119 * config.sub: Likewise.
17120 * install-sh: Likewise.
17122 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17124 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
17126 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17128 * util/Makefile.in (install-local): Convert a make `$(foreach)'
17129 function to a normal shell `for'.
17131 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17133 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
17135 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17137 * util/grub-mkrelpath.c: New file.
17138 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
17139 (grub_mkrelpath_SOURCES): New variable.
17140 * include/grub/util/misc.h: New function prototype.
17141 * util/misc.c (make_system_path_relative_to_its_root): New function.
17143 * util/grub-mkconfig_lib.in (bindir): New variable.
17144 (grub_mkrelpath): Likewise.
17145 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
17147 * util/probe.c (probe): Make the file path relative to its root.
17148 Change a info message to use the GRUB path. Enable again the
17149 check if we can read the file with GRUB facilities.
17151 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
17154 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17156 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
17159 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17161 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
17164 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17166 * util/getroot.c (grub_util_is_dmraid): New function.
17167 (grub_util_get_dev_abstraction): Treat dmraid and multipath
17168 devices as normal ones, not as LVM.
17170 2009-11-23 Carles Pina i Estany <carles@pina.cat>
17172 * conf/common.rmk: Add grub-gettext_lib target and updates
17173 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
17175 * gettext/gettext.c: New file. (Reads mo files).
17176 * include/grub/file.h (grub_file_pread): New prototype.
17177 * include/grub/i18n.h (_): New prototype.
17178 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
17180 * kern/misc.c (grub_gettext_dummy): New function.
17181 * normal/menu_text.c: Include <grub/i18n.h>.
17182 * normal/menu_text.c (print_timeout): Gettexttize string.
17183 * normal/menu_text.c (print_message): Gettexttize string.
17184 * po/POTFILES: Add `normal/menu_text.c'.
17185 * po/ca.po: Add new translations.
17186 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
17187 gettext module and defines locale_dir and lang in grub.cfg.
17188 * NEWS: Add gettext support.
17190 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17192 * util/hostdisk.c: Include `<grub/i18n.h>'.
17193 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
17194 (make_device_name): Rewrite using asprintf.
17195 (convert_system_partition_to_system_disk): Replace 0 with NULL.
17196 (find_system_device): If a device is not found, generate one just
17197 by reusing the OS path name.
17198 (read_device_map): Make it permissible for device.map not to exist.
17200 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17202 * script/sh/execute.c: Move from here ...
17203 * script/execute.c: ... to here. Update all users.
17204 * script/sh/function.c: Move from here ...
17205 * script/function.c: ... to here. Update all users.
17206 * script/sh/lexer.c: Move from here ...
17207 * script/lexer.c: ... to here. Update all users.
17208 * script/sh/main.c: Move from here ...
17209 * script/main.c: ... to here. Update all users.
17210 * script/sh/parser.y: Move from here ...
17211 * script/parser.y: ... to here. Update all users.
17212 * script/sh/script.c: Move from here ...
17213 * script/script.c: ... to here. Update all users.
17215 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17217 * configure.ac: Detect all `emu' platforms. Define
17218 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
17219 --enable-grub-emu logic. Disable include/grub/machine
17220 symlink on `emu' platforms.
17222 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
17223 * gensymlist.sh.in: Likewise.
17225 * include/grub/i386/coreboot/machine.h: Remove file.
17226 * include/grub/i386/efi/machine.h: Likewise.
17227 * include/grub/i386/ieee1275/machine.h: Likewise.
17228 * include/grub/i386/pc/machine.h: Likewise.
17229 * include/grub/i386/qemu/machine.h: Likewise.
17230 * include/grub/powerpc/ieee1275/machine.h: Likewise.
17231 * include/grub/sparc64/ieee1275/machine.h: Likewise.
17232 * include/grub/x86_64/efi/machine.h: Likewise.
17234 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
17235 * commands/halt.c: Likewise.
17236 * commands/reboot.c: Likewise.
17237 * include/grub/autoefi.h: Likewise.
17238 * include/grub/i386/at_keyboard.h: Likewise.
17239 * include/grub/i386/kernel.h: Likewise.
17240 * include/grub/i386/loader.h: Likewise.
17241 * include/grub/i386/pc/memory.h: Likewise.
17242 * kern/dl.c: Likewise.
17243 * kern/i386/coreboot/init.c: Likewise.
17244 * loader/i386/bsd.c: Likewise.
17245 * loader/i386/linux.c: Likewise.
17246 * loader/multiboot_loader.c: Likewise.
17247 * term/i386/pc/serial.c: Likewise.
17248 * term/usb_keyboard.c: Likewise.
17250 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
17251 `<grub/machine/machine.h>'
17252 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
17253 * util/misc.c: Remove `<grub/machine/machine.h>' and
17254 `<grub/machine/time.h>'.
17256 * Makefile.in (enable_grub_emu): Remove variable.
17257 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
17259 * conf/any-emu.rmk: New file.
17260 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
17261 (grub_emu_init.c): Move from here ...
17262 * conf/any-emu.rmk: ... to here.
17264 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
17265 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
17266 * conf/any-emu.rmk: ... to here.
17268 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17270 * include/grub/parser.h (grub_parser_register): Document need
17271 of `name' parameter.
17272 * normal/main.c (grub_normal_read_line): Simplify prompt string.
17273 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
17276 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17278 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
17280 * include/grub/i18n.h (N_): New macro.
17281 * util/mkisofs/mkisofs.h: Likewise.
17282 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
17284 (usage): Use gettext() to translate help strings when printing them.
17286 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17288 Based on patch from Bean
17289 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
17291 * video/efi_fb.c: New file.
17292 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
17293 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
17295 * conf/x86_64-efi.rmk: Likewise.
17297 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
17299 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
17300 * util/i386/pc/grub-setup.c: Likewise.
17302 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17304 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
17306 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
17307 file_get_storage_info to implement grub_guess_root_device.
17309 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
17311 * Makefile.in (target): Use make's builtin $(shell) function
17312 instead of calling directly $(SHELL) to create the locale directories,
17313 inside the $(foreach) function.
17315 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
17317 * util/grub-mkrescue.in: Print an error and usage if output option
17318 has not been given.
17320 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
17322 Patch from Loïc Minier <loic.minier@ubuntu.com>.
17323 * util/grub.d/30_os-prober.in: Cope with Linux entries where
17324 root and /boot are on different devices.
17326 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
17328 Fix build for srcdir != objdir.
17330 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
17331 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
17333 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
17334 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
17335 reference for input.
17337 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
17339 * util/grub-mkrescue.in: Use source directory direcly (without copiing
17340 or hardlinking it). Remove -J option, Joliet is not compatible with
17341 multiple source directories.
17343 2009-11-21 Carles Pina i Estany <carles@pina.cat>
17344 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
17346 * util/grub-mkrescue.in: Recognize `--override-directory' option.
17347 (process_input_dir): New function. Process an arbitrary input
17349 Misc adjustments to support both "override mode" and system-wide mode.
17351 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
17353 * configure.ac (UNIFONT_BDF): Rename to ...
17354 (FONT_SOURCE): ... this. Update all users.
17356 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
17358 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
17359 to the list of unifont files to look for.
17361 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
17363 Patch from Joe Auricchio <jauricchio@gmail.com>
17364 * commands/minicmd.c (grub_mini_cmd_clear): New function.
17365 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
17366 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
17368 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
17370 * Makefile.in (install-local): Add a missing backslash.
17372 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
17374 * include/grub/x86_64/io.h: New file.
17376 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
17378 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
17379 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
17380 Include `"progname.h"'.
17381 (main): Initialize gettext.
17382 * util/i386/pc/grub-setup.c: Gettexttize.
17383 * util/i386/pc/grub-mkimage.c: Likewise.
17385 * Makefile.in (po/*.po): Redefine as ...
17386 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
17388 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
17390 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
17392 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
17393 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
17394 (program_name): Remove.
17395 (main): Initialize gettext support.
17396 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
17397 Include `<libintl.h>'.
17400 * util/mkisofs/eltorito.c: Gettexttize.
17401 * util/mkisofs/joliet.c: Likewise.
17402 * util/mkisofs/mkisofs.c: Likewise.
17403 * util/mkisofs/multi.c: Likewise.
17404 * util/mkisofs/rock.c: Likewise.
17405 * util/mkisofs/tree.c: Likewise.
17406 * util/mkisofs/write.c: Likewise.
17408 * po/POTFILES: Update with new files.
17410 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17412 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
17413 * util/mkisofs/iso9660.h: Likewise.
17414 * util/mkisofs/joliet.c: Likewise.
17415 * util/mkisofs/mkisofs.c: Likewise.
17416 * util/mkisofs/mkisofs.h: Likewise.
17417 * util/mkisofs/rock.c: Likewise.
17418 * util/mkisofs/tree.c: Likewise.
17419 * util/mkisofs/write.c: Likewise.
17421 * util/mkisofs/eltorito.c (rcsid): Remove.
17422 * util/mkisofs/hash.c: Likewise.
17423 * util/mkisofs/joliet.c: Likewise.
17424 * util/mkisofs/name.c: Likewise.
17425 * util/mkisofs/rock.c: Likewise.
17426 * util/mkisofs/tree.c: Likewise.
17427 * util/mkisofs/write.c: Likewise.
17429 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17431 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
17432 instead of static allocation.
17433 * util/mkisofs/match.h: Likewise.
17435 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17437 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
17438 and `util/grub.d/10_linux.in'.
17439 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
17440 translatable Shell files.
17442 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17444 * Makefile.in ($(srcdir)/aclocal.m4): New target.
17446 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17448 * INSTALL: Document Automake is needed for bootstrap.
17449 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
17450 * util/grub.d/10_kfreebsd.in (bindir): New variable.
17451 Add gettext initialization.
17452 (kfreebsd_entry): Make menuentry output translatable.
17454 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17456 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
17457 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
17458 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
17459 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
17460 (LINGUAS): Auto-generate using `po/LINGUAS'.
17461 * po/LINGUAS: New file.
17463 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17465 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
17467 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
17468 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
17469 bindtextdomain() calls for gettext initialization.
17471 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17473 * gnulib/progname.c: New file (imported from Gnulib).
17474 * gnulib/progname.h: Likewise.
17475 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
17476 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
17477 (usage): Replace `progname' with `program_name'.
17478 (main): Use set_program_name() for program name initialization.
17480 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17482 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
17484 * Makefile.in (CPPFLAGS): ... to here.
17486 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
17488 * aclocal.m4: Move from here ...
17489 * acinclude.m4: ... to here.
17490 * autogen.sh: Add call to `aclocal'.
17491 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
17493 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
17495 * Makefile.in (CLEANFILES): Add `po/*.mo'.
17496 (LINGUAS): New variable.
17497 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
17498 (install-local): Install MO files.
17499 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
17500 * include/grub/i18n.h: New file.
17501 * po/POTFILES: New file.
17502 * po/ca.po: New file.
17503 * util/grub.d/10_linux.in (bindir): New variable.
17504 Add gettext initialization.
17505 (linux_entry): Make menuentry output translatable.
17506 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
17507 (usage): Make --help output translatable.
17508 (main): Initialize gettext.
17510 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17512 * import_gcry.py: New file (written by Vladimir with minor
17514 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
17516 * INSTALL: Document that Python is required for bootstrap.
17518 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17520 Import ciphers from libgcrypt 1.4.4.
17522 * lib/libgcrypt/cipher/ChangeLog
17523 * lib/libgcrypt/cipher/ac.c
17524 * lib/libgcrypt/cipher/arcfour.c
17525 * lib/libgcrypt/cipher/bithelp.h
17526 * lib/libgcrypt/cipher/blowfish.c
17527 * lib/libgcrypt/cipher/camellia-glue.c
17528 * lib/libgcrypt/cipher/camellia.c
17529 * lib/libgcrypt/cipher/camellia.h
17530 * lib/libgcrypt/cipher/cast5.c
17531 * lib/libgcrypt/cipher/cipher.c
17532 * lib/libgcrypt/cipher/crc.c
17533 * lib/libgcrypt/cipher/des.c
17534 * lib/libgcrypt/cipher/dsa.c
17535 * lib/libgcrypt/cipher/ecc.c
17536 * lib/libgcrypt/cipher/elgamal.c
17537 * lib/libgcrypt/cipher/hash-common.c
17538 * lib/libgcrypt/cipher/hash-common.h
17539 * lib/libgcrypt/cipher/hmac-tests.c
17540 * lib/libgcrypt/cipher/md.c
17541 * lib/libgcrypt/cipher/md4.c
17542 * lib/libgcrypt/cipher/md5.c
17543 * lib/libgcrypt/cipher/primegen.c
17544 * lib/libgcrypt/cipher/pubkey.c
17545 * lib/libgcrypt/cipher/rfc2268.c
17546 * lib/libgcrypt/cipher/rijndael-tables.h
17547 * lib/libgcrypt/cipher/rijndael.c
17548 * lib/libgcrypt/cipher/rmd.h
17549 * lib/libgcrypt/cipher/rmd160.c
17550 * lib/libgcrypt/cipher/rsa.c
17551 * lib/libgcrypt/cipher/seed.c
17552 * lib/libgcrypt/cipher/serpent.c
17553 * lib/libgcrypt/cipher/sha1.c
17554 * lib/libgcrypt/cipher/sha256.c
17555 * lib/libgcrypt/cipher/sha512.c
17556 * lib/libgcrypt/cipher/tiger.c
17557 * lib/libgcrypt/cipher/twofish.c
17558 * lib/libgcrypt/cipher/whirlpool.c
17560 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
17562 Fix build for systems without error().
17564 * gnulib/error.c: New file (imported from Gnulib).
17565 * gnulib/error.h: Likewise.
17566 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
17567 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
17568 (this variable is now used by error()).
17570 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
17572 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
17573 instead of relying that char is signed.
17575 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
17577 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
17578 blocksize different from specified.
17579 (grub_pxefs_read): Likewise.
17581 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
17583 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
17585 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
17586 (grub_ata_readwrite): Likewise. Update 2 format strings.
17587 (grub_atapi_read): Likewise.
17589 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
17590 * conf/i386.rmk (pkglib_MODULES): ... to here ...
17591 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
17592 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
17593 (ata_mod_LDFLAGS): Move from here ...
17594 * conf/i386.rmk: ... to here ...
17595 * conf/x86_64-efi.rmk: ... and here.
17596 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
17597 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
17599 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
17601 Relicense multiboot.h, with RMS' blessing.
17603 * include/multiboot.h: Change to X11 license.
17605 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
17607 Support --version in grub-mkisofs.
17609 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
17610 (OPTION_VERSION): New macro.
17611 (ld_options): Recognize --version.
17612 (usage): Move `program_name' from here ...
17613 (program_name): ... to here. Add `static' qualifier.
17614 (main): Recognize `OPTION_VERSION'.
17616 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
17618 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
17619 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
17621 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
17623 Fix help2man generation for mkisofs.
17625 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
17626 (usage): Send output to stdout (rather than stderr).
17628 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
17630 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
17631 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
17632 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
17633 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
17634 (bin_SCRIPTS): Add `grub-mkfloppy'.
17635 (grub_mkfloppy_SOURCES): New variable.
17637 * util/grub-mkrescue.in: New file.
17638 * util/i386/pc/grub-mkfloppy.in: New file.
17640 * util/i386/coreboot/grub-mkrescue.in: Remove.
17641 * util/i386/pc/grub-mkrescue.in: Remove.
17643 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
17645 * include/grub/multiboot.h (struct grub_multiboot_header): Move
17647 * include/multiboot.h (struct multiboot_header): ... to here. Update
17649 * include/grub/multiboot.h (struct grub_multiboot_info): Move
17651 * include/multiboot.h (struct multiboot_info): ... to here. Update
17653 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
17655 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
17657 * include/grub/multiboot.h (struct grub_mod_list): Move
17659 * include/multiboot.h (struct multiboot_mod_list): ... to here.
17662 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
17664 * include/multiboot2.h (multiboot_word): Rename from this ...
17665 (multiboot2_word): ... to this. Update all users.
17666 (multiboot_header): Rename from this ...
17667 (multiboot2_header): ... to this. Update all users.
17668 (multiboot_tag_header): Rename from this ...
17669 (multiboot2_tag_header): ... to this. Update all users.
17670 (multiboot_tag_start): Rename from this ...
17671 (multiboot2_tag_start): ... to this. Update all users.
17672 (multiboot_tag_name): Rename from this ...
17673 (multiboot2_tag_name): ... to this. Update all users.
17674 (multiboot_tag_module): Rename from this ...
17675 (multiboot2_tag_module): ... to this. Update all users.
17676 (multiboot_tag_memory): Rename from this ...
17677 (multiboot2_tag_memory): ... to this. Update all users.
17678 (multiboot_tag_unused): Rename from this ...
17679 (multiboot2_tag_unused): ... to this. Update all users.
17680 (multiboot_tag_end): Rename from this ...
17681 (multiboot2_tag_end): ... to this. Update all users.
17683 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
17685 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
17686 this platform we should support Multiboot1 first.
17688 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
17689 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
17690 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
17692 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
17694 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
17695 of write calls (converting them to fwrite() if they aren't already).
17696 (get_torito_desc): Likewise.
17697 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
17699 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
17701 * util/i386/pc/grub-install.in: Move from here ...
17702 * util/grub-install.in: ... to here. Update all users.
17704 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
17706 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
17708 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
17710 Support for El Torito without floppy emulation.
17712 * util/mkisofs/eltorito.c: Include `<errno.h>'.
17713 (init_boot_catalog): Improve error handling.
17714 (get_torito_desc): Don't use floppy emulation unless requested by
17715 user. Patch boot information table when requested via
17716 `-boot-info-table'.
17717 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
17718 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
17719 (use_boot_info_table): New variables.
17720 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
17721 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
17722 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
17723 `--eltorito-emul-floppy'.
17724 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
17725 and `OPTION_ELTORITO_EMUL_FLOPPY'.
17726 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
17727 (use_boot_info_table, get_731): New prototypes.
17728 * util/mkisofs/write.c (get_731): New function.
17730 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
17732 Fix the generation of the man page.
17734 * util/pc/i386/grub-install.in: Source
17735 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
17737 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
17739 Large file support for grub-mkisofs.
17741 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
17742 * util/mkisofs/mkisofs.c (next_extent, last_extent)
17743 (session_start): Upgrade type to `uint64_t'. Update all users.
17744 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
17745 (struct directory_entry): Upgrade type of `starting_block' and
17746 `size' to `uint64_t'. Update all users.
17747 (struct deferred): Remove unused structure.
17748 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
17750 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
17751 file is larger than `UINT32_MAX'.
17752 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
17753 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
17755 (struct deferred_write): Upgrade type of `extent' and `size' to
17756 `uint64_t'. Update all users.
17757 (last_extent_written): Upgrade type to `uint64_t'. Update all
17759 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
17760 Update all users. Upgrade type of `remain' to `int64_t' and
17761 `use' to `size_t'. Use error() to handle fread() errors.
17762 (write_files): Rely on write_one_file() rather than calling
17763 xfwrite() directly.
17765 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
17767 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
17769 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17771 * util/mkisofs/fnmatch.c: Remove.
17772 * util/mkisofs/getopt1.c: Likewise.
17773 * util/mkisofs/getopt.c: Likewise.
17774 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
17775 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
17776 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
17777 `gnulib/getopt1.c' and `gnulib/getopt.c'.
17778 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
17780 * configure.ac: Detect `mingw32msvc' host_os.
17781 Check for lstat(), getuid() and getgid().
17783 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
17784 instances of `u_char' with `uint8_t'.
17786 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
17787 [!HAVE_GETUID] (getuid): New function (stub).
17788 [!HAVE_GETGID] (getgid): Likewise.
17789 [!HAVE_LSTAT] (lstat): Likewise.
17790 [!S_IROTH] (S_IROTH): New macro (dummy).
17791 [!S_IRGRP] (S_IRGRP): Likewise.
17793 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17795 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
17796 conditional expression).
17798 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17800 Import from Gnulib.
17802 * gnulib/fnmatch.c: New file.
17803 * gnulib/fnmatch.h: Likewise.
17804 * gnulib/fnmatch_loop.c: Likewise.
17805 * gnulib/getopt.c: Likewise.
17806 * gnulib/getopt.h: Likewise.
17807 * gnulib/getopt1.c: Likewise.
17808 * gnulib/getopt_int.h: Likewise.
17809 * gnulib/gettext.h: Likewise.
17811 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17813 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
17814 * normal/handler.c (read_handler_list): Likewise.
17816 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17820 * kern/command.c (grub_register_command_prio): Use
17821 grub_zalloc() instead of explicitly zeroing data.
17822 * kern/list.c: Include `<grub/mm.h>'.
17823 (grub_named_list_find): Replace `0' with `NULL'.
17824 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
17825 (fs_module_list): Change type to `grub_named_list_t'. Update all
17827 * normal/dyncmd.c (read_command_list): Add space between function
17828 call and parenthesis.
17829 * normal/handler.c (read_handler_list): Likewise.
17831 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17833 * normal/auth.c (punishment_delay): Moved from here ...
17834 (grub_auth_strcmp): ... to here (inside function).
17836 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17838 * include/grub/list.h (struct grub_named_list): Remove `const'
17839 qualifier from `name'.
17840 (struct grub_prio_list): Likewise.
17842 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17844 * normal/auth.c: Include `<grub/time.h>'.
17845 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
17847 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17849 * normal/auth.c (punishment_delay): New variable.
17850 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
17851 (grub_auth_check_authentication): Punish failed login attempts with
17852 an incremental (2^N) delay.
17854 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17856 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
17857 path with $(srcdir).
17859 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
17861 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
17863 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17865 * util/i386/coreboot/grub-mkrescue.in: New file.
17866 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
17869 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
17870 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
17871 * configure.ac: Add header and function checks to satisfy grub-mkisofs
17873 * util/mkisofs/defaults.h: New file.
17874 * util/mkisofs/eltorito.c: Likewise.
17875 * util/mkisofs/exclude.h: Likewise.
17876 * util/mkisofs/fnmatch.c: Likewise.
17877 * util/mkisofs/getopt.c: Likewise.
17878 * util/mkisofs/getopt1.c: Likewise.
17879 * util/mkisofs/hash.c: Likewise.
17880 * util/mkisofs/include/fctldefs.h: Likewise.
17881 * util/mkisofs/include/mconfig.h: Likewise.
17882 * util/mkisofs/include/prototyp.h: Likewise.
17883 * util/mkisofs/include/statdefs.h: Likewise.
17884 * util/mkisofs/iso9660.h: Likewise.
17885 * util/mkisofs/joliet.c: Likewise.
17886 * util/mkisofs/match.c: Likewise.
17887 * util/mkisofs/match.h: Likewise.
17888 * util/mkisofs/mkisofs.c: Likewise.
17889 * util/mkisofs/mkisofs.h: Likewise.
17890 * util/mkisofs/multi.c: Likewise.
17891 * util/mkisofs/name.c: Likewise.
17892 * util/mkisofs/rock.c: Likewise.
17893 * util/mkisofs/tree.c: Likewise.
17894 * util/mkisofs/write.c: Likewise.
17896 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
17898 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
17901 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
17903 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
17904 `grub-mkimage' (and use $0 when possible).
17906 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
17908 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
17909 error message for excessively large memory map.
17911 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
17913 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
17916 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
17918 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
17919 message for coreboot users.
17921 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
17923 Fix build with GNU gold.
17925 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
17926 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
17927 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
17929 * aclocal.m4: Likewise.
17931 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
17933 * configure.ac (AC_PREREQ): Bump to 2.59d.
17934 * INSTALL: Make it more clear when Autoconf and Ruby are
17935 needed and when to run `./autogen.sh'.
17937 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17939 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
17942 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
17944 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
17946 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
17948 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
17949 giving it to GNU Mach.
17951 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
17953 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
17954 GNU partition number to get internal GRUB partition number.
17956 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
17958 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
17959 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
17961 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
17963 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
17964 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
17967 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
17969 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
17971 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
17975 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
17976 `-isystem=$(srcdir)/include'.
17978 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
17980 * util/i386/pc/grub-install.in: Remove hint that device.map should be
17981 checked (grub-install doesn't currently rely on it).
17983 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
17987 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
17988 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
17989 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
17990 * conf/i386-ieee1275.rmk: Likewise.
17991 * conf/i386-pc.rmk: Likewise.
17992 * conf/powerpc-ieee1275.rmk: Likewise.
17993 * conf/sparc64-ieee1275.rmk: Likewise.
17994 * conf/x86_64-efi.rmk: Likewise.
17996 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
17998 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
18000 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
18002 * include/grub/misc.h: Stop checking for APPLE_CC.
18004 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
18006 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
18007 doesn't cause an infinite call loop.
18009 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
18011 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
18014 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18016 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
18018 * Makefile.in: Likewise.
18020 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18022 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
18024 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18026 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
18028 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18030 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
18032 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18034 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
18036 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
18038 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18040 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
18041 in $(MAKEINFO) invocation. This makes it clear in output that
18042 errors are being ignored.
18044 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18046 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
18048 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
18049 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
18050 * conf/i386-ieee1275.rmk: Likewise.
18051 * conf/i386-pc.rmk: Likewise.
18052 * conf/powerpc-ieee1275.rmk: Likewise.
18053 * conf/sparc64-ieee1275.rmk: Likewise.
18054 * conf/x86_64-efi.rmk: Likewise.
18056 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
18058 * util/grub-editenv.c (main): If only a command is given, use
18059 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
18060 (usage): FILENAME is now optional and has a default.
18062 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
18064 Improve grub-mkconfig performance when there are several menu
18065 entries on a single filesystem.
18067 * util/grub.d/10_linux.in (linux_entry): Cache the output of
18068 prepare_grub_to_access_device.
18069 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
18070 * util/grub.d/30_os-prober.in: Likewise.
18072 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18074 * util/grub.d/10_freebsd.in: Remove.
18075 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
18076 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
18078 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18080 * docs/grub.cfg: Fix example usage of *BSD loaders.
18082 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18084 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
18085 grub_util_error() call.
18087 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18089 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
18090 `reserved_first_sector' member.
18091 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
18092 `reserved_first_sector' to 1.
18093 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
18094 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
18095 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
18096 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
18097 filesystems which begin at first sector.
18098 (options): New option --skip-fs-probe.
18099 (main): Handle --skip-fs-probe and pass it to setup().
18101 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18103 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
18104 (memset): Fix function prototype.
18106 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18107 2009-10-25 Vasily Averin <vvs@parallels.com>
18109 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
18110 `dirent.direntlen == 0'.
18112 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18114 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
18116 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
18118 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18120 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
18121 `__trampoline_setup' and `__ucmpdi2'.
18122 * include/grub/powerpc/libgcc.h: Only export symbols for functions
18123 that libgcc provides.
18125 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18127 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
18128 * include/grub/sparc64/libgcc.h (memset): Likewise.
18129 * include/grub/misc.h (memset, memcmp): New function prototypes.
18131 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18133 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
18135 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
18137 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18139 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
18140 * docs/grub.cfg: Compensate for recent change in multiboot
18141 loader (since 2009-08-14 it won't pass filename to payload).
18142 * util/grub.d/10_hurd.in: Likewise.
18144 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
18146 * config.guess: Update to latest version from config git
18148 * config.sub: Likewise.
18150 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
18152 Fix build on sparc64.
18154 * configure.ac: Perform checks for libgcc symbols before
18155 adding `-nostdlib' to LDFLAGS.
18157 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18159 Let user specify OpenBSD root device.
18161 * loader/i386/bsd.c (openbsd_root): New variable.
18162 (openbsd_opts): New option 'root'.
18163 (OPENBSD_ROOT_ARG): New macro.
18164 (grub_openbsd_boot): Use 'openbsd_root'.
18165 (grub_cmd_openbsd): Fill 'openbsd_root'.
18167 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
18169 * NEWS: Misc adjustments.
18171 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18173 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
18175 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
18177 * configure.ac: Bump version to 1.97.
18179 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
18181 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
18182 -mno-3dnow on x86 architectures. Some toolchains enable these
18183 features by default, but they rely on registers that aren't enabled
18184 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
18186 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
18188 Make entry text a bit more readable.
18190 * util/grub.d/10_linux.in: Add `with' before `Linux'.
18192 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18194 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
18196 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18198 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
18201 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18203 * configure.ac: Add missing dollar.
18205 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18207 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
18209 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
18210 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
18212 * include/grub/sparc64/libgcc.h: Likewise. Use
18213 preprocessor conditionals.
18215 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
18217 * conf/common.rmk (grub-dumpbios): Remove rule.
18218 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
18219 * util/grub-dumpbios.in: Remove file.
18221 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
18223 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
18224 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
18226 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
18227 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
18230 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
18231 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
18232 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
18233 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
18236 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
18238 * term/tparm.c: Switch to GPLv3.
18240 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
18242 * include/grub/i386/cpuid.h: Add header protection.
18244 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
18246 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
18248 * include/grub/i386/cpuid.h: New file.
18249 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
18250 (has_longmode): Rename to ...
18251 (grub_cpuid_has_longmode): ... this. Update all users. Remove
18252 `static' attribute.
18253 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
18254 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
18255 on a CPU that doesn't implement AMD64 instruction set.
18257 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
18259 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
18260 that version.texi is rebuilt on version number changes.
18262 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
18264 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
18267 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
18269 * util/i386/pc/grub-install.in: Source
18270 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
18271 that the --grub-probe option will work.
18272 * util/sparc64/ieee1275/grub-install.in: Likewise.
18274 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
18276 * configure.ac: Bump version to 1.97~beta4.
18278 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
18280 Resync grub-mkdevicemap in x86_64-efi.
18282 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
18283 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
18284 `util/devicemap.c'.
18286 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
18288 * util/grub-editenv.c (create_envblk_file): Write new block with a
18289 .new suffix and then rename it into place, to ensure atomic
18292 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
18294 Do not automatically install headers.
18296 * Makefile.in (include_DATA): Remove. Update all users.
18298 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
18300 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
18301 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
18303 * util/osdetect.lua: Remove.
18304 * script/lua/lauxlib.c: Likewise.
18305 * script/lua/ldebug.c: Likewise.
18306 * script/lua/grub_main.c: Likewise.
18307 * script/lua/lauxlib.h: Likewise.
18308 * script/lua/ldebug.h: Likewise.
18309 * script/lua/ltablib.c: Likewise.
18310 * script/lua/liolib.c: Likewise.
18311 * script/lua/lstrlib.c: Likewise.
18312 * script/lua/lualib.h: Likewise.
18313 * script/lua/ldo.c: Likewise.
18314 * script/lua/ldump.c: Likewise.
18315 * script/lua/ldo.h: Likewise.
18316 * script/lua/loslib.c: Likewise.
18317 * script/lua/lundump.c: Likewise.
18318 * script/lua/grub_lib.c: Likewise.
18319 * script/lua/ldblib.c: Likewise.
18320 * script/lua/lundump.h: Likewise.
18321 * script/lua/lmem.c: Likewise.
18322 * script/lua/grub_lib.h: Likewise.
18323 * script/lua/lmathlib.c: Likewise.
18324 * script/lua/lstate.c: Likewise.
18325 * script/lua/ltm.c: Likewise.
18326 * script/lua/lvm.c: Likewise.
18327 * script/lua/lmem.h: Likewise.
18328 * script/lua/lstate.h: Likewise.
18329 * script/lua/ltm.h: Likewise.
18330 * script/lua/ltable.c: Likewise.
18331 * script/lua/lvm.h: Likewise.
18332 * script/lua/llex.c: Likewise.
18333 * script/lua/lgc.c: Likewise.
18334 * script/lua/grub_lua.h: Likewise.
18335 * script/lua/loadlib.c: Likewise.
18336 * script/lua/lfunc.c: Likewise.
18337 * script/lua/lopcodes.c: Likewise.
18338 * script/lua/lparser.c: Likewise.
18339 * script/lua/ltable.h: Likewise.
18340 * script/lua/llex.h: Likewise.
18341 * script/lua/lgc.h: Likewise.
18342 * script/lua/lfunc.h: Likewise.
18343 * script/lua/lbaselib.c: Likewise.
18344 * script/lua/lopcodes.h: Likewise.
18345 * script/lua/lparser.h: Likewise.
18346 * script/lua/lzio.c: Likewise.
18347 * script/lua/linit.c: Likewise.
18348 * script/lua/lobject.c: Likewise.
18349 * script/lua/llimits.h: Likewise.
18350 * script/lua/lstring.c: Likewise.
18351 * script/lua/lzio.h: Likewise.
18352 * script/lua/lapi.c: Likewise.
18353 * script/lua/lcode.c: Likewise.
18354 * script/lua/lua.h: Likewise.
18355 * script/lua/lobject.h: Likewise.
18356 * script/lua/lstring.h: Likewise.
18357 * script/lua/lapi.h: Likewise.
18358 * script/lua/lcode.h: Likewise.
18359 * script/lua/luaconf.h: Likewise.
18361 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
18363 * docs/grub.texi (Command-line and menu entry commands): Document
18364 date and echo commands.
18366 2009-09-24 Pavel Roskin <proski@gnu.org>
18368 * include/grub/kernel.h (struct grub_module_header): Remove
18369 `grub_module_header_types'. Make `type' unsigned. Make `size'
18370 32-bit on all platforms.
18371 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
18372 8-bit field. Use grub_host_to_target32() for `size'.
18373 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
18374 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
18375 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
18377 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
18379 Fix "lost keypress" bug in at_keyboard.
18381 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
18382 Checks for readyness of input buffer (without flushing it).
18383 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
18384 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
18386 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
18388 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
18389 size check within GRUB_MACHINE_PCBIOS section.
18391 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
18393 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
18395 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
18396 KEYBOARD_ISREADY check.
18397 (grub_at_keyboard_checkkey): Rename to ...
18398 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
18399 Remove gratuitous cast.
18401 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
18403 * configure.ac: Call AC_PROG_MKDIR_P.
18404 * Makefile.in (docs/stamp-vti): Create docs directory. Create
18405 version.texi in $(builddir) rather than $(srcdir).
18406 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
18407 to makeinfo's @include search path.
18409 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
18411 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
18413 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
18415 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
18418 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
18420 Build info documentation. Some code borrowed from Automake.
18422 * configure.ac: Check for makeinfo.
18423 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
18424 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
18426 (MOSTLYCLEANFILES): Add vti.tmp.
18427 (docs/version.texi, docs/stamp-vti): Update automatically.
18428 (docs/grub.info): Build info documentation. Use --force and ignore
18430 (all-local): Add $(INFOS).
18431 (install-local): Install info files.
18432 (uninstall): Uninstall info files.
18433 * docs/version.texi: Remove from revision control. This file is
18434 automatically generated on build now.
18435 * gendistlist.sh: Add `*.info'.
18437 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
18439 * kern/term.c: Fix indentation.
18441 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
18443 * util/hostdisk.c: Fix a comment.
18445 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
18447 Fix regression introduced in r2539.
18449 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
18452 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
18454 * util/grub.d/30_os-prober.in: Don't throw away stderr from
18455 os-prober. Under normal operation, it does not print anything to
18456 stderr; if it does, we need to debug it, and throwing away stderr
18457 makes that excessively difficult.
18459 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
18461 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
18463 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
18465 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
18466 AC_LANG_PROGRAM from autoconf.
18467 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
18468 prototypes (fixes warning).
18470 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
18471 `--disable-werror' was used.
18473 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
18475 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
18476 uninitialized `lastaddr'.
18478 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18480 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
18482 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
18484 * commands/test.c (get_fileinfo): Return immediately if
18485 grub_fs_probe fails.
18487 2009-09-14 José Martínez <xosemp@gmail.com>
18489 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
18491 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
18493 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
18496 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
18498 * configure.ac: Remove --enable-grub-pe2elf. Only build
18499 grub-pe2elf when needed by the build system itself.
18500 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
18502 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
18504 * configure.ac: Bump version to 1.97~beta3.
18505 * docs/version.texi: Likewise.
18507 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
18509 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
18510 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
18512 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
18513 (grub_linux_setup_video): ... to here (with some adjustments).
18515 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
18517 Fix memory corruption issue (spotted by Colin Watson).
18519 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
18520 causing returned size to be stored in an incorrect memory location.
18521 Fix use of uninitialized value when storing the returned size.
18523 2009-09-12 Yves Blusseau <blusseau@zetam.org>
18525 Change clean rules to properly remove files
18527 * genmk.rb: add new clean rules
18528 * Makefile.in (clean): add the new targets
18529 (mostlyclean): likewise
18531 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
18533 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
18535 * fs/ntfs.c (init_file): Understand 64-bit sizes for
18536 non-resident files.
18538 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
18540 * configure.ac: Don't look for help2man when cross-compiling. Fixes
18541 part of bug #27349.
18543 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
18545 * util/grub-mkconfig.in: Make the created config mode 400 and
18546 print a warning if it fails.
18548 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
18550 * util/grub.d/40_custom.in: Ask user to type custom entries below
18551 comment, rather than below 'exec tail' line.
18553 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
18555 * util/grub.d/40_custom.in: Make sure that the explanatory text is
18556 visible in grub.cfg.
18558 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
18560 * util/grub.d/40_custom.in: Make it a little clearer how to use this
18563 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
18565 * docs/grub.cfg: Add an example menu entry for memtest86+.
18567 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
18569 * config.guess: Update to latest version from config git.
18570 * config.sub: Likewise.
18572 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
18574 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
18575 unknown-command case. Fixes bug #27320.
18577 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
18579 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
18580 `help' if the command exists.
18582 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
18584 * INSTALL: Require GCC 4.1.3 or later.
18586 2009-09-06 Yves Blusseau <blusseau@zetam.org>
18588 * Makefile.in (RMKFILES): add i386-qemu.rmk
18589 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
18590 $(srcdir)/stamp-h.in
18592 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
18594 * util/grub-probe.c (probe): Comment out buggy codepath, which
18595 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
18596 should be re-enabled after 1.97.
18598 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
18600 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
18603 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
18605 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
18606 unnecessary calls to grub_error.
18608 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
18610 * NEWS: Mention `keystatus' and Unicode fonts.
18612 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
18614 * configure.ac: Bump version to 1.97~beta2.
18615 * docs/version.texi: Likewise.
18617 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
18619 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
18620 containing unwind information in some cases where it previously did
18621 not. Use -fno-dwarf2-cfi-asm if available to restore the old
18622 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
18625 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
18627 Embedding loadenv module into grub-emu
18629 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
18631 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
18632 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
18633 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
18634 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
18635 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
18636 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
18638 2009-09-03 Magnus Granberg <zorry@ume.nu>
18640 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
18641 include -fPIE in the default specs.
18642 * configure.ac: Check if pie_possible is yes and add -fno-PIE
18645 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
18647 * INSTALL: Note that GNU Bison 2.3 or later is required.
18649 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
18651 * kern/i386/pc/startup.S: Fix typo.
18653 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18655 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
18658 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
18660 * docs/grub.texi (Naming convention): Describe one-based partition
18662 (Device syntax): Likewise.
18663 (File name syntax): Likewise.
18664 (Block list syntax): Likewise.
18665 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
18667 (File name syntax): Likewise.
18668 (Command-line and menu entry commands): Document acpi, blocklist,
18669 crc, export, insmod, keystatus, ls, set, and unset commands.
18671 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
18673 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
18674 to avoid implying that only one of --shift, --ctrl, or --alt may be
18677 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
18679 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
18680 rather than comparing against S_IFREG, which will almost never work.
18682 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
18684 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
18685 (write_blocklists): Likewise.
18687 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
18689 * script/lua/grub_lua.h (fputs): Supply a format string as the first
18690 argument to grub_printf.
18692 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
18694 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
18697 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18699 * kern/file.c (grub_file_read): Spelling fix
18701 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18703 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
18704 loading of headers in some cases.
18706 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
18708 * configure.ac: Bump version to 1.97~beta1.
18709 * docs/version.texi: Likewise.
18711 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18713 * include/grub/i386/xnu.h: Add license header.
18714 include grub/err.h explicitly.
18716 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
18718 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
18719 to `ufs' in the vfs.root.mountfrom kernel parameter.
18721 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
18723 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
18725 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
18726 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
18728 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
18729 `ARRAY_SIZE' macro.
18731 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18733 * kern/file.c (grub_file_read): Check offset.
18734 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
18735 * fs/jfs.c (grub_jfs_read_file): Likewise.
18736 * fs/ntfs.c (grub_ntfs_read): Likewise.
18737 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
18738 * fs/minix.c (grub_minix_read_file): Correct offset check.
18739 * fs/ufs.c (grub_ufs_read_file): Likewise.
18741 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
18743 * term/i386/pc/console.c (bios_data_area): Cast
18744 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
18746 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18748 1-bit optimised blitters.
18750 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
18752 (grub_video_fbblit_replace_24bit_1bit): Likewise.
18753 (grub_video_fbblit_replace_16bit_1bit): Likewise.
18754 (grub_video_fbblit_replace_8bit_1bit): Likewise.
18755 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
18756 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
18757 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
18758 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
18760 (grub_video_fbblit_replace_24bit_1bit): Likewise.
18761 (grub_video_fbblit_replace_16bit_1bit): Likewise.
18762 (grub_video_fbblit_replace_8bit_1bit): Likewise.
18763 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
18764 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
18765 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
18766 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
18768 * video/video.c (grub_video_get_blit_format): Return
18769 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
18771 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
18773 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
18774 the first argument to grub_printf.
18776 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
18777 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
18779 Add `getkeystatus' terminal method. Add a new `keystatus' command
18782 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
18783 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
18784 modifier key bitmasks.
18785 (struct grub_term_input): Add `getkeystatus' member.
18786 (grub_getkeystatus): Add prototype.
18787 * kern/term.c (grub_getkeystatus): New function.
18789 * include/grub/i386/pc/memory.h
18790 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
18791 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
18793 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
18794 (grub_console_term_input): Set `getkeystatus' member.
18795 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
18797 (grub_usb_keyboard_getreport): Likewise.
18798 (grub_usb_keyboard_checkkey): Likewise.
18799 (grub_usb_keyboard_getkeystatus): New function.
18800 (grub_usb_keyboard_term): Set `getkeystatus' member.
18802 * commands/keystatus.c: New file.
18803 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
18804 (keystatus_mod_SOURCES): New variable.
18805 (keystatus_mod_CFLAGS): Likewise.
18806 (keystatus_mod_LDFLAGS): Likewise.
18807 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
18808 commands/keystatus.c.
18809 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18810 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18811 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18812 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18813 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18814 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18816 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18818 Split befs.mod and afs.mod into *_be.mod and *.mod
18820 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
18821 (grub_fstest_SOURCES): Likewise.
18822 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
18823 (afs_be_mod_SOURCES): New variable.
18824 (afs_be_mod_CFLAGS): Likewise.
18825 (afs_be_mod_LDFLAGS): Likewise.
18826 (befs_be_mod_SOURCES): Likewise.
18827 (befs_be_mod_CFLAGS): Likewise.
18828 (befs_be_mod_LDFLAGS): Likewise.
18829 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
18830 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18831 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18832 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18833 (grub_emu_SOURCES): Likewise.
18834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18835 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18836 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18837 * fs/afs_be.c: New file.
18838 * fs/befs_be.c: New file.
18839 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
18840 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
18841 (U16): Replaced with ...
18842 (grub_afs_to_cpu16): ...this. All users updated.
18843 (U32): Replaced with ...
18844 (grub_afs_to_cpu32): ...this. All users updated.
18845 (U64): Replaced with ...
18846 (grub_afs_to_cpu64): ...this. All users updated.
18847 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
18848 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
18849 (grub_afs_validate_sblock): Check only one endianness.
18850 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
18851 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
18852 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
18853 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
18854 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
18855 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
18856 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
18857 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
18859 2009-08-26 Bean <bean123ch@gmail.com>
18861 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
18863 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
18864 (grub_xfs_inode_block): Change return type to grub_uint64_t.
18865 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
18867 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18869 NetBSD memory map support.
18871 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
18872 (grub_netbsd_btinfo_mmap_header): New structure.
18873 (grub_netbsd_btinfo_mmap_entry): Likewise.
18874 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
18876 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18878 Enable bsd.mod on coreboot.
18880 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
18881 (bsd_mod_SOURCES): New variable.
18882 (bsd_mod_CFLAGS): Likewise.
18883 (bsd_mod_LDFLAGS): Likewise.
18884 (bsd_mod_ASFLAGS): Likewise.
18885 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
18886 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
18888 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18890 Cleanup NetBSD root support.
18892 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
18893 grub_bsd_get_device.
18896 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
18898 * util/grub.d/00_header.in: Move check for the video backend of
18899 gfxterm from here ...
18900 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
18901 a suitable video backend.
18903 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18905 Fix breakage in grub-setup.
18907 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
18908 "msdos_partition_map".
18910 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18912 Fix breakage in normal/auth.c.
18914 * normal/auth.c (grub_iswordseparator): New function.
18916 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18918 Authentication support.
18920 * commands/password.c: New file.
18921 * conf/common.rmk (pkglib_MODULES): Add password.mod.
18922 (password_mod_SOURCES): New variable.
18923 (password_mod_CFLAGS): Likewise.
18924 (password_mod_LDFLAGS): Likewise.
18925 (normal_mod_SOURCES): Add normal/auth.c.
18926 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
18928 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18929 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18930 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18931 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18932 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18933 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18934 * include/grub/auth.h: New file.
18935 * include/grub/err.h (grub_err_t): New enum value
18936 GRUB_ERR_ACCESS_DENIED.
18937 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
18939 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
18940 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
18942 * normal/auth.c: New file.
18943 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
18944 (grub_cmdline_run): Don't allow to go to command line without
18946 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
18947 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
18948 menuentry without superuser rights.
18949 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
18950 user isn't a superuser.
18952 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
18954 Save space by inlining misc.c functions.
18956 * kern/misc.c (grub_iswordseparator): Made static.
18957 * kern/misc.c (grub_strcat): Moved from here ...
18958 * include/grub/misc.h (grub_strcat): ... here. Inlined.
18959 * kern/misc.c (grub_strncat): Moved from here ...
18960 * include/grub/misc.h (grub_strncat): ... here. Inlined.
18961 * kern/misc.c (grub_strcasecmp): Moved from here ...
18962 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
18963 * kern/misc.c (grub_strncasecmp): Moved from here ...
18964 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
18965 * kern/misc.c (grub_isalpha): Moved from here ...
18966 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
18967 * kern/misc.c (grub_isdigit): Moved from here ...
18968 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
18969 * kern/misc.c (grub_isgraph): Moved from here ...
18970 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
18971 * kern/misc.c (grub_tolower): Moved from here ...
18972 * include/grub/misc.h (grub_tolower): ... here. Inlined.
18974 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
18976 * script/sh/function.c (grub_script_function_find): Cut error message
18977 not to flood terminal.
18978 * script/sh/lexer.c (grub_script_yylex): Remove command line length
18980 * script/sh/script.c (grub_script_arg_add): Duplicate string.
18982 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
18984 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
18985 `report' grub_uint8_t *.
18986 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
18987 Use a 50-millisecond timeout rather than just repeating
18988 grub_usb_keyboard_getreport 50 times.
18989 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
18991 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
18993 Rename *_partition_map to part_*
18995 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
18996 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
18997 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
18998 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
19000 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
19002 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
19003 * util/grub-probe.c (probe_partmap): Don't transform partition name
19004 to get module name.
19006 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19008 Fix OpenBSD and NetBSD support.
19010 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
19011 memory address conflict.
19012 (OPENBSD_MMAP_ACPI): New definition.
19013 (OPENBSD_MMAP_NVS): Likewise.
19014 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
19015 and OPENBSD_MMAP_NVS.
19016 Add memory map terminator
19017 Explicit cast when calling grub_unix_real_boot.
19018 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
19020 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19022 Let user specify NetBSD root device.
19024 * loader/i386/bsd.c (netbsd_root): New variable.
19025 (netbsd_opts): New option 'root'.
19026 (NETBSD_ROOT_ARG): New macro.
19027 (grub_netbsd_boot): Use 'netbsd_root'.
19028 (grub_bsd_unload): Free 'netbsd_root'.
19029 (grub_cmd_netbsd): Fill 'netbsd_root'.
19031 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19033 Support for 64-bit NetBSD.
19035 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
19036 point when booting non-FreeBSD.
19038 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19040 Support --no-smp and --no-acpi for NetBSD.
19042 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
19043 (NETBSD_AB_NOACPI): Likewise.
19044 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
19045 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
19047 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
19049 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
19051 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
19052 errors. Call grub_error when needed.
19054 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
19056 * commands/search.c (search_fs): Try searching without autoload first.
19057 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
19058 filesystem module explicitly for faster booting.
19060 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
19062 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
19064 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
19066 * util/grub.d/30_os-prober.in: Disable os-prober if
19067 `GRUB_DISABLE_OS_PROBER' was set to true.
19069 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
19071 * partmap/pc.c: Rename to ...
19072 * partmap/msdos.c: ... this. Update all users.
19073 (grub_pc_partition_map): Rename to ...
19074 (grub_msdos_partition_map): ... this. Update all users.
19076 * parttool/pcpart.c: Rename to ...
19077 * parttool/msdospart.c: ... this. Update all users.
19079 * include/grub/pc_partition.h: Rename to ...
19080 * include/grub/msdos_partition.h: ... this. Update all users.
19081 (grub_pc_partition_bsd_entry): Rename to ...
19082 (grub_msdos_partition_bsd_entry): ... this. Update all users.
19083 (grub_pc_partition_disk_label): Rename to ...
19084 (grub_msdos_partition_disk_label): ... this. Update all users.
19085 (grub_pc_partition_entry): Rename to ...
19086 (grub_msdos_partition_entry): ... this. Update all users.
19087 (grub_pc_partition_mbr): Rename to ...
19088 (grub_msdos_partition_mbr): ... this. Update all users.
19089 (grub_pc_partition): Rename to ...
19090 (grub_msdos_partition): ... this. Update all users.
19091 (grub_pc_partition_is_empty): Rename to ...
19092 (grub_msdos_partition_is_empty): ... this. Update all users.
19093 (grub_pc_partition_is_extended): Rename to ...
19094 (grub_msdos_partition_is_extended): ... this. Update all users.
19095 (grub_pc_partition_is_bsd): Rename to ...
19096 (grub_msdos_partition_is_bsd): ... this. Update all users.
19098 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
19099 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
19100 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
19101 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
19102 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
19103 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
19104 (gpt_mod_LDFLAGS): Rename to ...
19105 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
19106 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
19107 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
19108 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
19109 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
19110 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
19111 (part_gpt_mod_LDFLAGS): ... this.
19112 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
19113 `pcpart.mod' to `msdospart.mod'.
19114 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
19116 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
19117 (msdospart_mod_LDFLAGS): ... this.
19119 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
19121 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
19122 (openbsd_opts): Likewise.
19123 (netbsd_opts): Likewise.
19124 (freebsd_flags): Added 0 terminator.
19125 (openbsd_flags): Likewise.
19126 (netbsd_flags): Likewise.
19127 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
19128 (grub_cmd_freebsd): Transformed into extended command.
19129 (grub_cmd_openbsd): Likewise.
19130 (grub_cmd_netbsd): Likewise.
19131 (cmd_freebsd): Changed type to grub_extcmd_t.
19132 (cmd_openbsd): Likewise.
19133 (cmd_netbsd): Likewise.
19134 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
19135 grub_cmd_openbsd as extended commands.
19136 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
19137 cmd_netbsd and cmd_openbsd
19139 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
19141 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
19143 2009-08-21 Pavel Roskin <proski@gnu.org>
19145 * Makefile.in (install-local): When checking if a file is in the
19146 build directory, use "test -e" to detect symlinks.
19148 * Makefile.in (install-local): Remove all files in
19149 $(DESTDIR)$(pkglibdir) before installing new files there.
19151 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
19153 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
19156 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
19158 * util/grub-mkconfig.in: Don't use gfxterm by default if not
19159 explicitly specified by the user.
19161 2009-08-18 Pavel Roskin <proski@gnu.org>
19163 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
19164 grub_uint8_t pointer for data.
19165 * include/grub/fbutil.h (struct grub_video_fbblit_info):
19167 * video/fb/fbutil.c: Remove unnecessary casts.
19169 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
19173 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
19174 (grub_vbe_set_video_mode): Save active mode info
19175 only after setting the mode.
19176 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
19179 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
19181 Rename variables for clarity.
19183 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
19184 (active_vbe_mode_info): ... this. All users updated.
19185 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
19187 (initial_mode): Rename to ...
19188 (initial_vbe_mode): ... this. All users updated.
19189 (mode_in_use): Rename to ..
19190 (vbe_mode_in_use): ... this. All users updated.
19191 (mode_list): Rename to ..
19192 (vbe_mode_list): ... this. All users updated.
19193 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
19194 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
19195 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
19196 'mode_list_size' to 'vbe_mode_list_size'.
19197 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
19198 'best_mode_info' to 'best_vbe_mode_info' and
19199 'best_mode' to 'best_vbe_mode'
19201 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
19203 Remove duplicate grub_video_fb_get_video_ptr.
19205 * include/grub/fbutil.h (get_data_ptr): Rename to ...
19206 (grub_video_fb_get_video_ptr): ... this.
19207 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
19208 * video/fb/fbutil.c: Add comment about addressing.
19209 (get_data_ptr): Rename to ...
19210 (grub_video_fb_get_video_ptr): ... this. All users updated.
19211 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
19213 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
19215 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
19216 grub_dprintf() that was just added.
19218 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
19220 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
19221 (DEFAULT_VIDEO_MODE): Remove macros.
19222 (grub_linux_boot): Remove assumption that Linux has FB support,
19223 and use "text" as default video mode.
19225 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
19227 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
19229 * fs/fat.c (grub_fat_read_data): Likewise.
19231 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19233 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
19235 (grub_module): Likewise.
19237 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19239 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
19240 mbi->cmdline but free playground.
19242 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19244 Handle group offset on UFS1.
19246 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
19247 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
19249 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19251 Split ufs.mod into ufs1.mod and ufs2.mod.
19253 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
19254 (grub_fstest_SOURCES): Likewise.
19255 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
19256 (ufs_mod_SOURCES): Remove.
19257 (ufs_mod_CFLAGS): Likewise.
19258 (ufs_mod_LDFLAGS): Likewise.
19259 (ufs1_mod_SOURCES): New variable.
19260 (ufs1_mod_CFLAGS): Likewise.
19261 (ufs1_mod_LDFLAGS): Likewise.
19262 (ufs2_mod_SOURCES): New variable.
19263 (ufs2_mod_CFLAGS): Likewise.
19264 (ufs2_mod_LDFLAGS): Likewise.
19265 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
19266 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
19268 (grub_emu_SOURCES): Likewise.
19269 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19270 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19271 (grub_setup_SOURCES): Likewise.
19272 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19273 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
19274 (grub_setup_SOURCES): Likewise.
19275 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
19277 * fs/ufs2.c: New file.
19278 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
19280 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19284 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
19285 subsystem at the end.
19286 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
19287 (video_fb_mod_SOURCES): New variable.
19288 (video_fb_mod_CFLAGS): Likewise.
19289 (video_fb_mod_LDFLAGS): Likewise.
19290 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
19291 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
19292 * video/i386/pc/vbeblit.c: Moved from here ...
19293 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
19294 * video/i386/pc/vbefill.c: Moved from here ...
19295 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
19296 * video/i386/pc/vbeutil.c: Moved from here ...
19297 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
19298 * include/grub/i386/pc/vbeblit.h: Moved from here ...
19299 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
19300 * include/grub/i386/pc/vbefill.h: Moved from here ...
19301 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
19302 * include/grub/i386/pc/vbeutil.h: Moved from here ...
19303 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
19304 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
19305 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
19306 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
19307 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
19308 (grub_video_adapter): Added 'get_info_and_fini'.
19309 (grub_video_get_info_and_fini): New prototype.
19310 (grub_video_set_mode): make modestring const char *.
19311 * loader/i386/linux.c (grub_linux_setup_video): Use
19312 grub_video_get_info_and_fini.
19313 (grub_linux_boot): Move modesetting just before booting.
19314 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
19315 grub_video_get_info_and_fini.
19316 * video/i386/pc/vbe.c: Moved framebuffer part ...
19317 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
19318 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
19319 grub_video_fbstd_colors and grub_video_fb_set_palette.
19320 (grub_video_vbe_init): Clear 'framebuffer' variable and use
19321 grub_video_fb_init.
19322 (grub_video_vbe_fini): Use grub_video_fb_fini.
19323 (grub_video_vbe_setup): Use framebuffer.render_target instead of
19324 render_target and use grub_video_fb_set_active_render_target and
19325 grub_video_fb_set_palette.
19326 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
19327 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
19328 (grub_video_vbe_adapter): Use framebuffer.
19329 * video/video.c (grub_video_get_info_and_fini): New function.
19330 (grub_video_set_mode): Make modestring const char *.
19331 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
19332 values are already initialised.
19334 2009-08-14 Pavel Roskin <proski@gnu.org>
19336 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
19338 * boot/i386/pc/diskboot.S: Likewise.
19339 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
19340 sectors allow compilation on MacOSX.
19341 * conf/i386-pc.rmk: Enable unconditional compilation of
19344 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
19346 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
19347 * util/grub.d/00_header.in: Enter interruptible sleep if
19348 GRUB_HIDDEN_TIMEOUT is set.
19350 2009-08-13 Yves Blusseau <blusseau@zetam.org>
19352 * include/grub/symbol.h: Add the LOCAL macro.
19353 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
19354 starting with "L_".
19356 2009-08-13 Pavel Roskin <proski@gnu.org>
19358 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
19359 any modern compilers we support.
19361 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
19362 Use local labels starting with "L_" so that Apple assembler
19363 knows they are local.
19365 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
19367 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
19368 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
19369 (bsd_kernel_types): ... this enum.
19371 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
19372 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
19373 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
19375 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
19376 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
19377 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
19380 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
19382 * util/grub-dumpdevtree: Moved from here ...
19383 * util/i386/efi/grub-dumpdevtree: ... to here.
19384 (hexify): New function. Converts a string to its hex version.
19385 Generate hex versions of "efi" and "device-properties" by calling
19386 hexify() on the ASCII strings rather than by hardcoding numbers.
19388 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
19390 * fs/jfs.c: Update copyright year.
19392 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
19394 * util/grub.d/00_header.in: Fix a comment.
19395 * util/grub.d/10_linux.in: Likewise.
19396 * util/grub.d/10_windows.in: Likewise.
19397 * util/grub.d/10_hurd.in: Likewise.
19399 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
19401 * util/grub-mkconfig.in: Allow the user to specify the used font
19404 2009-08-08 Pavel Roskin <proski@gnu.org>
19406 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
19407 available, xfs.mod needs it now.
19409 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
19410 the "g" modifier in sed when the intention is to strip something
19411 once. This fixes comparison of kernels with multiple dashes.
19413 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
19414 on it. Add missing space before closing bracket. Fix
19415 misleading formatting.
19417 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19419 * docs/grub.texi: Major overhaul. Remove all sections that are
19420 specific to GRUB Legacy, or mostly composed of Legacy-specific
19423 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19425 * docs/version.texi: New file. Provides version information for
19428 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19430 * docs/grub.texi: Update CVS information to SVN.
19431 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
19433 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
19435 * util/grub-mkconfig.in: Remove a wrong `fi'.
19437 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
19439 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
19440 (grub_jfs_uuid): New function.
19441 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
19443 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
19445 * util/grub-mkconfig_lib.in (font_path): Move the functionality
19447 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
19448 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
19450 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19452 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
19453 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
19456 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
19457 not just "vmlinu[zx]".
19458 Moved from here ...
19459 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
19462 * util/grub.d/10_linux.in (find_latest): Moved from here ...
19463 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
19466 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19468 * util/grub.d/10_freebsd.in: Use an absolute device path for
19469 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
19471 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
19473 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
19474 handling of multiple abstraction modules.
19476 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
19478 Fix a bug resulting in black screen when loading Linux using a
19481 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
19484 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
19485 (grub_vbe_bios_getset_dac_palette_width): New function.
19486 (grub_vbe_bios_get_dac_palette_width)
19487 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
19488 grub_vbe_bios_getset_dac_palette_width()).
19490 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
19491 check for return status.
19492 (grub_vbe_get_video_mode_info): When getting information for a packed
19493 mode (<= 8 bpp), obtain DAC palette width using
19494 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
19495 {red,green,blue}_mark_size.
19497 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
19499 * commands/search.c (options): Fix help output to match actual code.
19501 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
19503 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
19506 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19508 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
19509 on XFS or ReiserFS.
19511 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19513 Support Apple partition map with sector size different from 512 bytes.
19515 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
19516 (apple_partition_map_iterate): Respect 'aheader.blocksize'
19517 and 'apart.partmap_size'.
19519 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19520 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
19524 * commands/i386/cpuid.c (options): New variable.
19525 (grub_cmd_cpuid): Return real error.
19526 (GRUB_MOD_INIT(cpuid)): Declare options.
19528 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
19530 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
19533 2009-07-31 Bean <bean123ch@gmail.com>
19535 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
19537 (grub_fshelp_node): Move inode field to the end.
19538 (grub_xfs_data): Remove inode field.
19539 (grub_xfs_inode_block): Calculate inode size using sblock.
19540 (grub_xfs_inode_offset): Likewise.
19541 (grub_xfs_read_inode): Calculate inode size using sblock.
19542 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
19543 (grub_xfs_iterate_dir): Calculate inode size using sblock.
19544 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
19545 to match inode size.
19546 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
19547 not accessible when data is null.
19548 (grub_xfs_open): Likewise.
19550 2009-07-31 Bean <bean123ch@gmail.com>
19552 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
19553 Don't change pv->disk if it's already set.
19555 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
19556 (grub_raid_register): ... here.
19557 (grub_raid_rescan): Removed.
19559 * include/grub/raid.h (grub_raid_rescan): Removed.
19561 * util/grub-fstest.c: Remove include file <grub/raid.h>.
19562 (fstest): Replace grub_raid_rescan with module fini function followed
19565 * util/grub-probe.c: Add include file <grub/raid.h>.
19566 (probe_raid_level): New function.
19567 (probe): Detect abstraction by walking the disk device, support two
19568 level of abstraction (LVM on RAID) when detecting partition map.
19570 2009-07-31 Pavel Roskin <proski@gnu.org>
19572 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
19573 to grub_zalloc(), it was erroneous.
19574 Reported by Bean <bean123ch@gmail.com>
19576 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
19578 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
19579 embedding zone, not only the first one.
19581 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
19583 * term/gfxterm.c (clear_char): New function.
19584 (grub_virtual_screen_setup): Use clear_char.
19585 (scroll_up): Likewise.
19586 (grub_virtual_screen_cls): Likewise.
19588 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
19590 * util/deviceiter.c (get_acceleraid_disk_name): New static
19592 (grub_util_iterate_devices): Handle Accelraid devices.
19593 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
19595 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
19597 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
19598 separator for the suggested gfxpayload string (';' collides with the
19599 parser and needs escaping).
19601 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19603 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
19604 Clear direction flag before jumping to OS.
19605 (grub_multiboot2_real_boot): Likewise.
19607 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
19609 * util/i386/pc/grub-install: Fix parsing of --disk-module
19612 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
19614 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
19617 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
19619 * util/grub-mkconfig.in (package_version): New variable.
19620 Use it do display the version.
19622 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
19624 * kern/file.c (grub_file_open): Revert to previous check with
19627 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
19629 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
19630 from help line. It's out of sync with code.
19632 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
19634 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
19635 entries on failed boot.
19637 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
19639 * kern/file.c (grub_file_open): Fix an error check.
19641 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
19643 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
19644 partition map couldn't be identified.
19646 2009-07-23 Pavel Roskin <proski@gnu.org>
19648 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
19649 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
19650 case of little endian words becomes just an optimization.
19651 Respect const modifier.
19652 (md5_final): Use code that doesn't depend on endianness.
19654 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
19655 to avoid loss of upper bits if align is unsigned and shorter
19658 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
19660 UUID support for UFS
19662 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
19663 (grub_ufs_uuid): New function.
19664 (grub_ufs_fs): add .uuid
19666 2009-07-21 Pavel Roskin <proski@gnu.org>
19668 * kern/dl.c (grub_dl_check_header): Make static.
19670 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
19672 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
19673 add drivemap for Vista. It breaks Windows 7.
19675 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
19677 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
19680 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19684 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
19685 (grub_fstest_SOURCES): Likewise.
19686 (pkglib_MODULES): Add befs.mod.
19687 (befs_mod_SOURCES): New variable.
19688 (befs_mod_CFLAGS): Likewise.
19689 (befs_mod_LDFLAGS): Likewise.
19690 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19691 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19692 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19693 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19694 (grub_setup_SOURCES): Likewise.
19695 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19696 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19697 (grub_setup_SOURCES): Likewise.
19698 * fs/befs.c: New file.
19699 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
19700 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
19701 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
19702 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
19703 (B_KEY_INDEX_ALIGN): New declaration.
19704 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
19705 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
19706 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
19707 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
19708 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
19709 (grub_afs_mount) [MODE_BFS]: Likewise.
19710 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
19711 (grub_afs_fs): Use GRUB_AFS_FSNAME
19712 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
19713 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
19714 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
19715 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
19717 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
19719 * util/getroot.c (find_root_device): Add support for MacOSX.
19720 * util/hostdisk.c: Likewise.
19722 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19724 * font/font.c (find_glyph): Check whether a font is present to avoid
19725 segmentation fault.
19727 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
19729 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
19731 2009-07-20 Pavel Roskin <proski@gnu.org>
19733 * configure.ac: Trim excessively wordy excuses.
19735 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19737 Add symlink, mtime and label support to AtheFS.
19739 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
19740 (grub_afs_iterate_dir): Handle symlinks.
19741 (grub_afs_open): Use grub_afs_read_symlink.
19742 (grub_afs_dir): Likewise.
19744 (grub_afs_label): New function.
19745 (grub_afs_fs): Add grub_afs_label.
19746 (grub_afs_read_symlink): New function.
19748 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19750 Fix AtheFS support.
19752 * fs/afs.c: Fix comments style.
19753 (grub_afs_blockrun): Declare as packed.
19754 (grub_afs_datastream): Likewise.
19755 (grub_afs_bnode): Likewise.
19756 (grub_afs_btree): Likewise.
19757 (grub_afs_sblock): Likewise.
19758 Declare `name' as char.
19759 (grub_afs_inode): Declare as packed.
19760 Change void *vnode to grub_uint32_t unused.
19761 (grub_afs_iterate_dir): Check that key_size is positive.
19762 (grub_afs_mount): Don't read superblock twice.
19763 (grub_afs_dir): Don't free node in case of error,
19764 grub_fshelp_find_file already handles this.
19765 (grub_afs_open): Likewise.
19767 2009-07-19 Pavel Roskin <proski@gnu.org>
19769 * Makefile.in: Remove LIBLZO and enable_lzo.
19770 * conf/i386-pc.rmk: Remove lzo support.
19771 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
19772 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
19774 * kern/i386/pc/lzo1x.S: Remove.
19775 * kern/i386/pc/startup.S: Remove lzo support.
19776 * util/i386/pc/grub-mkimage.c: Likewise.
19778 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
19780 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
19781 * fs/xfs.c (grub_xfs_dir): Likewise.
19782 * fs/afs.c (grub_afs_dir): Likewise.
19783 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
19784 (grub_iso9660_open): Likewise.
19785 * fs/jfs.c (grub_jfs_open): Likewise.
19786 * fs/ext2.c (grub_ext2_dir): Likewise.
19787 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
19788 * script/sh/lexer.c (grub_script_yylex): Likewise.
19790 2009-07-16 Pavel Roskin <proski@gnu.org>
19792 * configure.ac: Never add "-c" to CFLAGS.
19794 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
19796 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
19797 grub_cv_cc_efiemu should be used.
19799 * configure.ac: Typo fixes.
19801 * kern/mm.c (grub_zalloc): New function.
19802 (grub_debug_zalloc): Likewise.
19803 * include/grub/mm.h: Declare grub_zalloc() and
19804 grub_debug_zalloc().
19805 * util/misc.c (grub_zalloc): New function.
19806 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
19807 instead of grub_malloc(), remove unneeded initializations.
19808 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
19809 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
19810 * commands/parttool.c (grub_cmd_parttool): Likewise.
19811 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
19812 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
19813 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
19814 * disk/usbms.c (grub_usbms_finddevs): Likewise.
19815 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
19816 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
19817 (grub_cmd_efiemu_pnvram): Likewise.
19818 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
19819 * fs/iso9660.c (grub_iso9660_mount): Likewise.
19820 (grub_iso9660_iterate_dir): Likewise.
19821 * fs/jfs.c (grub_jfs_opendir): Likewise.
19822 * fs/ntfs.c (list_file): Likewise.
19823 (grub_ntfs_mount): Likewise.
19824 * kern/disk.c (grub_disk_open): Likewise.
19825 * kern/dl.c (grub_dl_load_core): Likewise.
19826 * kern/elf.c (grub_elf_file): Likewise.
19827 * kern/env.c (grub_env_context_open): Likewise.
19828 (grub_env_set): Likewise.
19829 (grub_env_set_data_slot): Likewise.
19830 * kern/file.c (grub_file_open): Likewise.
19831 * kern/fs.c (grub_fs_blocklist_open): Likewise.
19832 * loader/i386/multiboot.c (grub_module): Likewise.
19833 * loader/xnu.c (grub_xnu_create_key): Likewise.
19834 (grub_xnu_create_value): Likewise.
19835 * normal/main.c (grub_normal_add_menu_entry): Likewise.
19836 (read_config_file): Likewise.
19837 * normal/menu_entry.c (make_screen): Likewise.
19838 * partmap/sun.c (sun_partition_map_iterate): Likewise.
19839 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
19840 * script/sh/script.c (grub_script_parse): Likewise.
19841 * video/bitmap.c (grub_video_bitmap_create): Likewise.
19842 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
19843 * video/readers/png.c (grub_png_output_byte): Likewise.
19844 (grub_video_reader_png): Likewise.
19846 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
19848 Enable all targets that can be built by default
19850 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
19851 grub-mkfont and grub-fstest if they can be built
19853 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
19855 Fix hang and segmentation fault in grub-emu-usb
19857 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
19858 * util/usb.c (grub_libusb_devices): likewise
19859 (grub_libusb_init): rename to ...
19860 (GRUB_MOD_INIT (libusb)):...this
19861 (grub_libusb_fini): rename to ..
19862 (GRUB_MOD_FINI (libusb)):...this
19863 * disk/usbms.c (grub_usbms_transfer): fix retry logic
19864 * include/grub/disk.h (grub_raid_init): removed, it's useless
19865 (grub_raid_fini): likewise
19866 (grub_lvm_init): likewise
19867 (grub_lvm_fini): likewise
19868 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
19871 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
19875 * Makefile.in (LIBUSB): new macro
19876 * genmk.rb (Utility/print_tail): new method
19877 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
19878 (top level): call util.print_tail at the end.
19880 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
19882 Make FreeBSD accept zpool.cache
19884 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
19885 type is /boot/zfs/zpool.cache
19887 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
19891 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
19892 correct wrong typedef
19893 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
19895 2009-07-15 Pavel Roskin <proski@gnu.org>
19897 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
19898 * kern/disk.c (struct grub_disk_cache): Likewise.
19900 * commands/probe.c (options): Typo fix.
19902 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
19903 Increase to 0x5a to accommodate FAT32. Adjust other offsets
19905 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
19907 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
19908 the end of "Error" to make the message more readable.
19910 * boot/i386/pc/boot.S (kernel_segment): Remove.
19911 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
19914 * boot/i386/pc/boot.S (boot_version): Remove.
19915 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
19918 * include/grub/i386/pc/boot.h: Sort all offsets.
19919 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
19920 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
19921 * boot/i386/pc/boot.S: Assert location of every offset listed in
19922 include/grub/i386/pc/boot.h.
19924 2009-07-13 Pavel Roskin <proski@gnu.org>
19926 * include/grub/i386/coreboot/machine.h: Rename
19927 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
19928 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
19929 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
19931 * kern/dl.c: Force native word size to suppress warnings when
19932 compiling grub-emu.
19934 * kern/device.c (grub_device_iterate): Change struct part_ent to
19935 hold the name, not a pointer to it. Use one grub_malloc() per
19936 partition, not two. Free partition_name if grub_malloc() fails.
19937 Set ents to NULL only before grub_partition_iterate() is called.
19939 2009-07-11 Bean <bean123ch@gmail.com>
19941 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
19944 2009-07-10 Bean <bean123ch@gmail.com>
19945 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
19947 * kern/ieee1275/openfw.c (grub_children_iterate)
19948 (grub_devalias_iterate): Fix size evaluation for property or path
19949 strings, which was broken since r2132.
19951 2009-07-07 Pavel Roskin <proski@gnu.org>
19953 * commands/search.c (search_file): Merge into ...
19954 (search_fs): ... this. Accept search type as argument.
19955 (grub_cmd_search): Pass search type to search_fs().
19957 * include/grub/util/console.h: New file.
19958 * util/console.c: Use it instead of grub/machine/console.h.
19959 * util/grub-emu.c: Likewise.
19961 * lib/arg.c (find_long_option): Remove.
19962 (find_long): Add `len' argument, make `s' const char *.
19963 (grub_arg_parse): Parse long options in place, not in a
19966 2009-07-06 Pavel Roskin <proski@gnu.org>
19968 * commands/search.c (search_fs): Fix potential NULL pointer
19971 * commands/search.c (search_fs): Replace QUID macro with quid_fn
19974 2009-07-06 Daniel Mierswa <impulze@impulze.org>
19976 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
19979 2009-07-05 Pavel Roskin <proski@gnu.org>
19981 * include/grub/i386/linux.h (struct linux_kernel_params):
19982 Restore padding3, it's still needed.
19984 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
19986 * util/osdetect.lua: Likewise.
19988 2009-07-05 Bean <bean123ch@gmail.com>
19990 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
19992 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
19993 (grub_lua_getenv): Likewise.
19994 (grub_lua_setenv): Likewise.
19995 (save_errno): New function.
19996 (push_result): Likewise.
19997 (grub_lua_enum_device): Likewise.
19998 (grub_lua_enum_file): Likewise.
19999 (grub_lua_file_open): Likewise.
20000 (grub_lua_file_close): Likewise.
20001 (grub_lua_file_seek): Likewise.
20002 (grub_lua_file_read): Likewise.
20003 (grub_lua_file_getline): Likewise.
20004 (grub_lua_file_getsize): Likewise.
20005 (grub_lua_file_getpos): Likewise.
20006 (grub_lua_file_eof): Likewise.
20007 (grub_lua_file_exist): Likewise.
20008 (grub_lua_add_menu): Likewise.
20010 * script/lua/grub_lua.h (isupper): New inline function.
20011 (islower): Likewise.
20012 (ispunct): Likewise.
20013 (isxdigit): Likewise.
20014 (strcspn): Change to normal function.
20015 (strpbkr): New function declaration.
20016 (memchr): Likewise.
20018 * script/lua/grub_main.c (scan_str): New function.
20019 (strcspn): Likewise.
20020 (strpbrk): Likewise.
20021 (memchr): Likewise.
20023 * script/lua/linit.c (lualibs): Enable the string library.
20025 * util/osdetect.lua: New file.
20027 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
20029 * include/grub/i386/linux.h (struct linux_kernel_params): Add
20030 `capabilities' member.
20032 2009-07-02 Pavel Roskin <proski@gnu.org>
20034 * genparttoollist.sh: Add missing newline at the end.
20036 2009-07-01 Pavel Roskin <proski@gnu.org>
20038 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
20040 * util/hostdisk.c (open_device): Remove `const' from
20041 `sysctl_size', as sysctlbyname() can change it (in this case it
20042 doesn't actually happen).
20044 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
20045 using signed long int constants.
20047 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
20048 constant to avoid a warning on FreeBSD.
20050 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
20053 * Makefile.in: Install include/grub/machine symlink.
20055 * Makefile.in: When installing symlinks, use "cp -fR", which
20056 works on FreeBSD and MacOSX.
20057 From Yves Blusseau <cl7m42e02@sneakemail.com>
20059 * kern/dl.c (grub_dl_resolve_symbol): Make static.
20060 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
20062 * util/misc.c: Move grub_reboot() and grub_halt() ...
20063 * util/grub-emu.c: ... here. Make main_env static.
20064 * include/grub/util/misc.h: Remove main_env.
20066 * kern/mm.c: Use correct format to print size_t.
20068 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
20069 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
20070 * kern/powerpc/dl.c: Likewise.
20071 * kern/sparc64/dl.c: Likewise.
20072 * kern/x86_64/dl.c: Likewise.
20074 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20076 Fix grub-emu build on sparc64-ieee1275.
20078 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
20079 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
20081 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20083 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
20084 (grub_reboot, grub_halt): New functions.
20086 * util/i386/pc/misc.c: Delete. Update all users.
20087 * util/sparc64/ieee1275/misc.c: Likewise.
20088 * util/powerpc/ieee1275/misc.c: Likewise.
20090 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20092 * conf/i386.rmk (setjmp_mod_SOURCES)
20093 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
20094 * conf/common.rmk (setjmp_mod_SOURCES)
20095 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
20096 to use $(target_cpu).
20097 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
20098 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
20099 * conf/powerpc-ieee1275.rmk: Likewise.
20100 * conf/sparc64-ieee1275.rmk: Likewise.
20102 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
20103 $(target_cpu) for kern/$(target_cpu)/dl.c.
20104 * conf/i386-efi.rmk: Likewise.
20105 * conf/i386-ieee1275.rmk: Likewise.
20106 * conf/x86_64-efi.rmk: Likewise.
20107 * conf/i386-coreboot.rmk: Likewise.
20108 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
20109 $(target_cpu) for kern/$(target_cpu)/dl.c and for
20110 kern/$(target_cpu)/cache.S.
20111 * conf/sparc64-ieee1275.rmk: Likewise.
20113 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20115 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
20116 type to `grub_uint8_t', and adjust `padding9' accordingly.
20118 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
20120 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
20122 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
20123 assembly in final jump, using register constraints.
20125 (grub_linux_boot): For text mode, initialize `have_vga' using
20126 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
20128 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
20129 right before the final jump.
20131 Set `video_mode' to 0x3.
20133 Document initialization of `video_page', `video_mode' and
20136 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
20138 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
20139 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
20140 and set GRUB_LINUX_FLAG_QUIET appropriately.
20142 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
20144 Fix build on Debian / sparc.
20146 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
20148 2009-06-28 Pavel Roskin <proski@gnu.org>
20150 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
20153 * util/grub.d/10_linux.in: Match SUSE style initrd names.
20155 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
20157 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
20160 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
20164 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
20165 file can't be opened. grub_file_open() is already supposed to set
20166 grub_errno / grub_errmsg appropriately.
20167 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20169 2009-06-27 Pavel Roskin <proski@gnu.org>
20170 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
20172 * include/grub/dl.h: Include grub/elf.h.
20173 (struct grub_dl): Add symtab field.
20174 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
20175 GRUB_MODULES_MACHINE_READONLY.
20176 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
20177 of the header for read-only modules.
20178 (grub_dl_unload): Free mod->symtab for read-only modules.
20179 * kern/i386/dl.c: Use mod->symtab.
20180 * kern/powerpc/dl.c: Likewise.
20181 * kern/sparc64/dl.c: Likewise.
20182 * kern/x86_64/dl.c: Likewise.
20184 * conf/i386-qemu.rmk: New file.
20185 * kern/i386/qemu/startup.S: Likewise.
20186 * kern/i386/qemu/mmap.c: Likewise.
20187 * boot/i386/qemu/boot.S: Likewise.
20188 * include/grub/i386/qemu/time.h: Likewise.
20189 * include/grub/i386/qemu/serial.h: Likewise.
20190 * include/grub/i386/qemu/kernel.h: Likewise.
20191 * include/grub/i386/qemu/console.h: Likewise.
20192 * include/grub/i386/qemu/boot.h: Likewise.
20193 * include/grub/i386/qemu/init.h: Likewise.
20194 * include/grub/i386/qemu/machine.h: Likewise.
20195 * include/grub/i386/qemu/loader.h: Likewise.
20196 * include/grub/i386/qemu/memory.h: Likewise.
20198 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
20199 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
20200 [qemu] (pkglib_IMAGES): Add `boot.img'.
20201 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
20202 [qemu] (boot_img_FORMAT): New variables.
20203 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
20204 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
20205 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
20206 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
20207 [qemu] (kernel_img_FORMAT): New variables.
20209 * configure.ac: Recognise `i386-qemu'.
20211 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
20212 (for no compression).
20213 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
20214 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
20215 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
20216 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
20219 2009-06-27 Pavel Roskin <proski@gnu.org>
20221 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
20223 * efiemu/prepare32.c: Likewise.
20224 * efiemu/prepare64.c: Likewise.
20226 2009-06-26 Pavel Roskin <proski@gnu.org>
20228 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
20229 * include/grub/elf.h: Define symbols without "32" or "64" based
20230 on GRUB_TARGET_WORDSIZE.
20231 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
20232 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
20234 * efiemu/loadcore64.c: Likewise.
20235 * loader/i386/bsd32.c: Likewise.
20236 * loader/i386/bsd64.c: Likewise.
20237 * kern/dl.c: Remove own ELF definitions.
20238 * util/i386/efi/grub-mkimage.c: Likewise.
20240 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
20242 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
20243 segment 0x0 unconditionally, because the reference generated by
20244 GAS is an absolute address.
20246 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20248 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
20249 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
20251 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20253 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
20254 indexes. Check for -f explicitly.
20255 (search_file): Improve error message.
20256 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
20258 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20260 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
20261 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
20263 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20265 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
20266 * conf/i386-ieee1275.rmk: Likewise.
20267 * conf/i386-coreboot.rmk: Likewise.
20269 * kern/i386/pc/startup.S (grub_stop): Remove function.
20270 * kern/i386/ieee1275/startup.S: Likewise.
20271 * kern/i386/coreboot/startup.S: Likewise.
20272 * kern/i386/misc.S (grub_stop): New function.
20274 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20276 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
20277 * kern/i386/realmode.S (real_to_prot): ... to here.
20279 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20281 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
20283 (kernel_elf_SOURCES): Rename to ...
20284 (kernel_img_SOURCES): ... this.
20285 (kernel_elf_HEADERS): Rename to ...
20286 (kernel_img_HEADERS): ... this. Update all users.
20287 (kernel_elf_ASFLAGS): Rename to ...
20288 (kernel_img_ASFLAGS): ... this.
20289 (kernel_elf_CFLAGS): Rename to ...
20290 (kernel_img_CFLAGS): ... this.
20291 (kernel_elf_LDFLAGS): Rename to ...
20292 (kernel_img_LDFLAGS): ... this.
20293 * conf/i386-coreboot.rmk: Likewise.
20294 * conf/powerpc-ieee1275.rmk: Likewise.
20296 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
20299 2009-06-21 Pavel Roskin <proski@gnu.org>
20301 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
20302 to match nested functions.
20303 * loader/sparc64/ieee1275/linux.c: Likewise.
20305 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
20307 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
20309 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
20310 all i386 platforms.
20312 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
20314 Fix asm file handling on ELF, and remove workarounds.
20316 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
20317 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
20318 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
20319 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
20321 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
20323 Load BSD ELF modules
20325 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
20326 and loader/i386/bsd64.c
20327 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
20328 (FREEBSD_MODTYPE_ELF_MODULE): New definition
20329 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
20330 (grub_freebsd_load_elfmodule32): New declaration
20331 (grub_freebsd_load_elfmoduleobj64): Likewise
20332 (grub_freebsd_load_elf_meta32): Likewise
20333 (grub_freebsd_load_elf_meta64): Likewise
20334 (grub_freebsd_add_meta): Likewise
20335 (grub_freebsd_add_meta_module): Likewise
20336 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
20337 (grub_freebsd_add_meta_module): Likewise and move module-specific
20338 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
20339 (grub_cmd_freebsd): Add elf-kernel specific parts
20340 based on grub_freebsd_add_meta_module
20341 (grub_cmd_freebsd_module): Add type parsing moved from
20342 grub_freebsd_add_meta_module
20343 (grub_cmd_freebsd_module_elf): New function
20344 (cmd_freebsd_module_elf): New variable
20345 (GRUB_MOD_INIT): Register freebsd_module_elf
20346 * loader/i386/bsd32.c: New file
20347 * loader/i386/bsd64.c: Likewise
20348 * loader/i386/bsdXX.c: Likewise
20349 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
20350 (grub_elf64_load): Likewise
20351 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
20353 (grub_elf64_load_hook_t): Likewise
20355 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
20357 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
20359 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
20360 don't write a menu entry for recovery mode.
20362 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
20364 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
20365 after it's no longer needed.
20367 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
20369 * include/grub/i386/loader.h (grub_linux_prot_size)
20370 (grub_linux_tmp_addr, grub_linux_real_addr)
20371 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
20372 GRUB_MACHINE_PCBIOS.
20373 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
20374 common grub_util_info() call to ...
20375 (generate_image): ... here.
20376 Fix use of uninitialized memory, comparison of signed with
20377 unsigned integers and memory leak.
20378 Remove bogus module address message.
20380 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20382 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
20384 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
20386 2009-06-19 Pavel Roskin <proski@gnu.org>
20388 * configure.ac: Remove stray AC_MSG_CHECKING.
20390 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
20392 * disk/scsi.c (grub_scsi_open): use continue instead of big if
20394 2009-06-18 Pavel Roskin <proski@gnu.org>
20396 * conf/common.rmk: Add fs_file.mod.
20397 * disk/fs_file.c: New file.
20398 * include/grub/disk.h (enum grub_disk_dev_id): Add
20399 GRUB_DISK_DEVICE_FILE_ID.
20401 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
20403 Fix build with Apple's toolchain. Part 2
20405 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
20408 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
20410 Fix build with Apple's toolchain. Part 1
20412 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
20414 * configure.ac: remove a leftover AC_MSG_RESULT
20415 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
20418 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
20422 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
20423 (decomp_block): initialize ch
20424 use grub_memcpy instead of memcpy
20426 2009-06-17 Pavel Roskin <proski@gnu.org>
20428 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
20429 version, use declarations needed to use vga_text as the startup
20432 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
20433 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
20435 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
20436 and grub_at_keyboard_fini(), it's done on module load and
20439 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
20441 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
20442 file can't be found.
20443 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20445 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
20447 Fix newline handling
20449 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
20450 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
20451 (grub_script_yylex): don't segfault on unterminated script
20452 newline terminates command and variable
20454 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
20456 avoid double grub_adjust_range call. Bug reported by David Simner
20458 * kern/disk.c (grub_disk_write): change to raw disk access before
20461 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
20463 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
20464 spaces, for the benefit of help2man.
20465 * util/i386/efi/grub-mkimage.c (usage): Likewise.
20467 2009-06-16 Pavel Roskin <proski@gnu.org>
20469 * kern/i386/halt.c: Include grub/machine/init.h.
20470 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
20472 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
20474 * util/grub.d/30_os-prober.in: Use ${root} in the generated
20475 drivemap menuentry.
20477 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
20479 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
20482 2009-06-16 Pavel Roskin <proski@gnu.org>
20484 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
20485 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
20486 save %dx, we only need %dl and we never change it.
20487 * boot/i386/pc/cdboot.S: Don't set the root drive.
20488 * boot/i386/pc/pxeboot.S: Likewise.
20489 * include/grub/i386/pc/boot.h: Remove
20490 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
20491 GRUB_BOOT_MACHINE_DRIVE_CHECK.
20492 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
20493 * kern/i386/pc/init.c (make_install_device): Remove references
20494 to grub_root_drive.
20495 * kern/i386/pc/startup.S: Likewise.
20496 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
20498 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
20502 * commands/xnu_uuid.c: new file
20503 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
20504 (xnu_uuid_mod_SOURCES): new variable
20505 (xnu_uuid_mod_CFLAGS): likewise
20506 (xnu_uuid_mod_LDFLAGS): likewise
20507 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
20508 * conf/i386-ieee1275.rmk: likewise
20509 * conf/i386-pc.rmk: likewise
20510 * conf/powerpc-ieee1275.rmk: likewise
20511 * conf/sparc64-ieee1275.rmk: likewise
20512 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
20514 2009-06-16 Pavel Roskin <proski@gnu.org>
20516 * configure.ac: Avoid '==' in test command, it's not portable.
20518 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
20522 * commands/probe.c: new file
20523 * conf/common.rmk (pkglib_MODULES): add probe.mod
20524 (probe_mod_SOURCES): new variable
20525 (probe_mod_CFLAGS): likewise
20526 (probe_mod_LDFLAGS): likewise
20527 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
20528 * conf/i386-ieee1275.rmk: likewise
20529 * conf/i386-pc.rmk: likewise
20530 * conf/powerpc-ieee1275.rmk: likewise
20531 * conf/sparc64-ieee1275.rmk: likewise
20533 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
20535 Fix handling of string like \"hello\" and "a
20538 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
20539 (grub_script_yylex): fix parsing of quoting, escaping and newline
20541 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
20543 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
20546 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
20548 * util/grub-mkconfig.in: Fix parsing of --output option.
20550 2009-06-12 Pavel Roskin <proski@gnu.org>
20552 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
20553 genmk.rb don't need to be generated or installed.
20555 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20557 * commands/i386/pc/drivemap_int13h.S: add more comments
20559 2009-06-11 Pavel Roskin <proski@gnu.org>
20561 * Makefile.in (uninstall): Uninstall manuals.
20563 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
20564 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
20565 and update-grub_lib in two places.
20566 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
20568 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
20569 a compiler warning.
20571 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
20572 `entry_lo' to fix variable shadowing.
20574 2009-06-11 Christian Franke <franke@computer.org>
20576 * kern/misc.c (__enable_execute_stack): Add missing return type
20577 to prevent gcc warning.
20579 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
20581 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
20583 2009-06-11 Pavel Roskin <proski@gnu.org>
20585 * Makefile.in: Don't rely on any scripts being executable.
20586 Always use $(SHELL) to run shell scripts.
20588 * configure.ac: Always define ___main if using -nostdlib. This
20589 fixes tests on Cygwin.
20591 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
20595 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
20596 is in bytes and not in blocks
20598 2009-06-11 Pavel Roskin <proski@gnu.org>
20600 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
20603 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
20605 * util/grub.d/30_os-prober.in: Fix a comment. Source
20606 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
20607 to set the root device. Place drivemap command in the generated
20610 2009-06-11 Pavel Roskin <proski@gnu.org>
20612 * configure.ac: Remove host_m32. Issues with 64-bit utilities
20613 have long been resolved.
20615 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
20617 * util/grub.d/10_linux.in: Capitalise "Linux".
20619 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
20621 2009-06-11 Pavel Roskin <proski@gnu.org>
20623 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
20624 fix a gcc warning and ensure that the function won't ever exit.
20626 * kern/i386/ieee1275/init.c: Add missing prototype for
20627 grub_stop_floppy().
20629 * loader/ieee1275/multiboot2.c [__i386__]: Include
20630 grub/cpu/multiboot.h.
20632 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
20633 casts to short - they are not portable and cause warnings. Fix
20634 use of uninitialized values in input_buf. Use ARRAY_SIZE.
20636 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
20640 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
20642 (grub_get_root_biosnumber_saved): new variable
20643 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
20644 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
20645 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
20646 %dx after the call if necessary
20647 * conf/common.rmk (pkglib_MODULES): remove boot.mod
20648 (boot_mod_SOURCES): remove
20649 (boot_mod_CFLAGS): remove
20650 (boot_mod_LDFLAGS): remove
20651 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
20652 (boot_mod_SOURCES): new variable
20653 (boot_mod_CFLAGS): likewise
20654 (boot_mod_LDFLAGS): likewise
20655 * conf/i386-efi.rmk: likewise
20656 * conf/i386-ieee1275.rmk: likewise
20657 * conf/i386-pc.rmk: likewise
20658 * conf/powerpc-ieee1275.rmk: likewise
20659 * conf/sparc64-ieee1275.rmk: likewise
20660 * conf/x86_64-efi.rmk: likewise
20661 * include/grub/i386/pc/biosnum.h: new file
20662 * lib/i386/pc/biosnum.c: likewise
20663 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
20664 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
20665 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
20667 2009-06-10 Pavel Roskin <proski@gnu.org>
20669 * io/gzio.c (test_header): Don't reuse one buffer for all data.
20670 Use separate variables. Read only the file size at the end, but
20671 not the checksum that we don't use.
20673 * kern/file.c (grub_file_read): Use void pointer for the buffer.
20674 Adjust all callers.
20676 * kern/ieee1275/openfw.c: Remove libc includes.
20677 * kern/ieee1275/cmain.c: Likewise.
20678 * include/grub/ieee1275/ieee1275.h: Likewise.
20680 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
20683 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
20685 * Makefile.in: Remove all trailing whitespace.
20686 * conf/i386-pc.rmk: Likewise.
20687 * conf/powerpc-ieee1275.rmk: Likewise.
20688 * conf/sparc64-ieee1275.rmk: Likewise.
20689 * docs/grub.texi: Likewise.
20690 * docs/texinfo.tex: Likewise.
20691 * disk/fs_uuid.c: Likewise.
20692 * disk/lvm.c: Likewise.
20693 * disk/scsi.c: Likewise.
20694 * disk/ata.c: Likewise.
20695 * disk/ieee1275/ofdisk.c: Likewise.
20696 * disk/i386/pc/biosdisk.c: Likewise.
20697 * disk/host.c: Likewise.
20698 * disk/raid.c: Likewise.
20699 * disk/efi/efidisk.c: Likewise.
20700 * disk/usbms.c: Likewise.
20701 * disk/memdisk.c: Likewise.
20702 * disk/loopback.c: Likewise.
20703 * kern/powerpc/dl.c: Likewise.
20704 * kern/device.c: Likewise.
20705 * kern/dl.c: Likewise.
20706 * kern/sparc64/dl.c: Likewise.
20707 * kern/ieee1275/ieee1275.c: Likewise.
20708 * kern/term.c: Likewise.
20709 * kern/fs.c: Likewise.
20710 * kern/i386/dl.c: Likewise.
20711 * kern/i386/pc/startup.S: Likewise.
20712 * kern/i386/pc/init.c: Likewise.
20713 * kern/i386/pc/mmap.c: Likewise.
20714 * kern/i386/pc/lzo1x.S: Likewise.
20715 * kern/i386/ieee1275/init.c: Likewise.
20716 * kern/i386/realmode.S: Likewise.
20717 * kern/i386/tsc.c: Likewise.
20718 * kern/partition.c: Likewise.
20719 * kern/corecmd.c: Likewise.
20720 * kern/file.c: Likewise.
20721 * kern/efi/efi.c: Likewise.
20722 * kern/efi/init.c: Likewise.
20723 * kern/efi/mm.c: Likewise.
20724 * kern/main.c: Likewise.
20725 * kern/err.c: Likewise.
20726 * kern/env.c: Likewise.
20727 * kern/disk.c: Likewise.
20728 * kern/generic/millisleep.c: Likewise.
20729 * kern/generic/rtc_get_time_ms.c: Likewise.
20730 * kern/misc.c: Likewise.
20731 * kern/parser.c: Likewise.
20732 * genmk.rb: Likewise.
20733 * configure.ac: Likewise.
20734 * boot/i386/pc/diskboot.S: Likewise.
20735 * boot/i386/pc/pxeboot.S: Likewise.
20736 * boot/i386/pc/boot.S: Likewise.
20737 * boot/i386/pc/lnxboot.S: Likewise.
20738 * boot/i386/pc/cdboot.S: Likewise.
20739 * parttool/pcpart.c: Likewise.
20740 * video/readers/tga.c: Likewise.
20741 * video/video.c: Likewise.
20742 * video/bitmap.c: Likewise.
20743 * lib/envblk.c: Likewise.
20744 * lib/i386/setjmp.S: Likewise.
20745 * fs/xfs.c: Likewise.
20746 * fs/afs.c: Likewise.
20747 * fs/fat.c: Likewise.
20748 * fs/ntfs.c: Likewise.
20749 * fs/udf.c: Likewise.
20750 * fs/affs.c: Likewise.
20751 * fs/iso9660.c: Likewise.
20752 * fs/hfs.c: Likewise.
20753 * fs/fshelp.c: Likewise.
20754 * fs/ext2.c: Likewise.
20755 * fs/jfs.c: Likewise.
20756 * fs/reiserfs.c: Likewise.
20757 * fs/hfsplus.c: Likewise.
20758 * fs/minix.c: Likewise.
20759 * fs/cpio.c: Likewise.
20760 * fs/sfs.c: Likewise.
20761 * fs/ufs.c: Likewise.
20762 * efiemu/prepare.c: Likewise.
20763 * efiemu/loadcore_common.c: Likewise.
20764 * efiemu/runtime/efiemu.sh: Likewise.
20765 * efiemu/runtime/efiemu.S: Likewise.
20766 * efiemu/runtime/efiemu.c: Likewise.
20767 * efiemu/pnvram.c: Likewise.
20768 * efiemu/main.c: Likewise.
20769 * efiemu/i386/pc/cfgtables.c: Likewise.
20770 * efiemu/i386/loadcore64.c: Likewise.
20771 * efiemu/i386/loadcore32.c: Likewise.
20772 * efiemu/loadcore.c: Likewise.
20773 * efiemu/symbols.c: Likewise.
20774 * efiemu/mm.c: Likewise.
20775 * include/grub/autoefi.h: Likewise.
20776 * include/grub/datetime.h: Likewise.
20777 * include/grub/term.h: Likewise.
20778 * include/grub/hfs.h: Likewise.
20779 * include/grub/lvm.h: Likewise.
20780 * include/grub/i386/tsc.h: Likewise.
20781 * include/grub/i386/linux.h: Likewise.
20782 * include/grub/i386/xnu.h: Likewise.
20783 * include/grub/i386/efiemu.h: Likewise.
20784 * include/grub/i386/pc/biosdisk.h: Likewise.
20785 * include/grub/i386/pc/memory.h: Likewise.
20786 * include/grub/i386/pc/vbe.h: Likewise.
20787 * include/grub/parttool.h: Likewise.
20788 * include/grub/video.h: Likewise.
20789 * include/grub/memory.h: Likewise.
20790 * include/grub/fs.h: Likewise.
20791 * include/grub/partition.h: Likewise.
20792 * include/grub/xnu.h: Likewise.
20793 * include/grub/efi/api.h: Likewise.
20794 * include/grub/efi/pe32.h: Likewise.
20795 * include/grub/efi/memory.h: Likewise.
20796 * include/grub/multiboot.h: Likewise.
20797 * include/grub/usbdesc.h: Likewise.
20798 * include/grub/multiboot2.h: Likewise.
20799 * include/grub/acpi.h: Likewise.
20800 * include/grub/efiemu/efiemu.h: Likewise.
20801 * include/grub/disk.h: Likewise.
20802 * include/grub/ieee1275/ieee1275.h: Likewise.
20803 * include/grub/net.h: Likewise.
20804 * include/grub/machoload.h: Likewise.
20805 * include/grub/macho.h: Likewise.
20806 * include/multiboot.h: Likewise.
20807 * genmoddep.awk: Likewise.
20808 * normal/main.c: Likewise.
20809 * normal/menu_entry.c: Likewise.
20810 * normal/menu_viewer.c: Likewise.
20811 * normal/completion.c: Likewise.
20812 * normal/cmdline.c: Likewise.
20813 * normal/misc.c: Likewise.
20814 * normal/datetime.c: Likewise.
20815 * bus/usb/usbtrans.c: Likewise.
20816 * bus/usb/ohci.c: Likewise.
20817 * bus/usb/uhci.c: Likewise.
20818 * bus/usb/usb.c: Likewise.
20819 * mmap/efi/mmap.c: Likewise.
20820 * mmap/i386/pc/mmap_helper.S: Likewise.
20821 * mmap/i386/pc/mmap.c: Likewise.
20822 * mmap/i386/mmap.c: Likewise.
20823 * mmap/i386/uppermem.c: Likewise.
20824 * mmap/mmap.c: Likewise.
20825 * commands/acpi.c: Likewise.
20826 * commands/echo.c: Likewise.
20827 * commands/blocklist.c: Likewise.
20828 * commands/loadenv.c: Likewise.
20829 * commands/usbtest.c: Likewise.
20830 * commands/boot.c: Likewise.
20831 * commands/parttool.c: Likewise.
20832 * commands/search.c: Likewise.
20833 * commands/cat.c: Likewise.
20834 * commands/i386/pc/play.c: Likewise.
20835 * commands/i386/pc/drivemap.c: Likewise.
20836 * commands/i386/pc/vbeinfo.c: Likewise.
20837 * commands/i386/pc/acpi.c: Likewise.
20838 * commands/i386/pc/vbetest.c: Likewise.
20839 * commands/ls.c: Likewise.
20840 * commands/cmp.c: Likewise.
20841 * commands/test.c: Likewise.
20842 * commands/efi/acpi.c: Likewise.
20843 * commands/gptsync.c: Likewise.
20844 * commands/help.c: Likewise.
20845 * partmap/amiga.c: Likewise.
20846 * partmap/apple.c: Likewise.
20847 * partmap/acorn.c: Likewise.
20848 * partmap/pc.c: Likewise.
20849 * partmap/sun.c: Likewise.
20850 * partmap/gpt.c: Likewise.
20851 * script/sh/lexer.c: Likewise.
20852 * script/sh/function.c: Likewise.
20853 * font/font.c: Likewise.
20854 * font/font_cmd.c: Likewise.
20855 * loader/powerpc/ieee1275/linux.c: Likewise.
20856 * loader/efi/chainloader.c: Likewise.
20857 * loader/multiboot_loader.c: Likewise.
20858 * loader/macho.c: Likewise.
20859 * loader/i386/multiboot.c: Likewise.
20860 * loader/i386/linux.c: Likewise.
20861 * loader/i386/pc/linux.c: Likewise.
20862 * loader/i386/pc/multiboot2.c: Likewise.
20863 * loader/i386/pc/chainloader.c: Likewise.
20864 * loader/i386/pc/xnu.c: Likewise.
20865 * loader/i386/bsd_trampoline.S: Likewise.
20866 * loader/i386/efi/linux.c: Likewise.
20867 * loader/i386/multiboot_elfxx.c: Likewise.
20868 * loader/i386/bsd_helper.S: Likewise.
20869 * loader/i386/bsd.c: Likewise.
20870 * loader/i386/linux_trampoline.S: Likewise.
20871 * loader/i386/xnu_helper.S: Likewise.
20872 * loader/i386/xnu.c: Likewise.
20873 * loader/i386/bsd_pagetable.c: Likewise.
20874 * loader/i386/multiboot_helper.S: Likewise.
20875 * loader/xnu.c: Likewise.
20876 * loader/xnu_resume.c: Likewise.
20877 * io/gzio.c: Likewise.
20878 * term/efi/console.c: Likewise.
20879 * term/terminfo.c: Likewise.
20880 * term/ieee1275/ofconsole.c: Likewise.
20881 * term/i386/pc/serial.c: Likewise.
20882 * term/i386/pc/vesafb.c: Likewise.
20883 * term/i386/pc/vga.c: Likewise.
20884 * term/usb_keyboard.c: Likewise.
20885 * term/gfxterm.c: Likewise.
20886 * aclocal.m4: Likewise.
20887 * util/lvm.c: Likewise.
20888 * util/grub.d/30_os-prober.in: Likewise.
20889 * util/grub.d/10_hurd.in: Likewise.
20890 * util/console.c: Likewise.
20891 * util/grub-macho2img.c: Likewise.
20892 * util/grub-probe.c: Likewise.
20893 * util/hostfs.c: Likewise.
20894 * util/i386/pc/grub-mkimage.c: Likewise.
20895 * util/i386/pc/grub-setup.c: Likewise.
20896 * util/i386/efi/grub-mkimage.c: Likewise.
20897 * util/grub-mkconfig.in: Likewise.
20898 * util/raid.c: Likewise.
20899 * util/resolve.c: Likewise.
20900 * util/grub-mkdevicemap.c: Likewise.
20901 * util/grub-emu.c: Likewise.
20902 * util/getroot.c: Likewise.
20903 * util/hostdisk.c: Likewise.
20904 * util/usb.c: Likewise.
20905 * util/grub-editenv.c: Likewise.
20906 * util/misc.c: Likewise.
20908 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
20910 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
20911 `genparttoollist.sh'.
20912 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
20913 Add `*.sh' to the list find searches for and change `mdate.sh'
20916 2009-06-10 Pavel Roskin <proski@gnu.org>
20918 * include/grub/multiboot2.h: Provide compatibility defines for
20920 * include/multiboot2.h: Include stdint.h only if needed, using
20922 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
20924 * loader/ieee1275/multiboot2.c: Likewise.
20925 * loader/multiboot2.c: Likewise.
20926 * loader/multiboot_loader.c: Likewise.
20928 * configure.ac: Use -nostdlib when probing for the target. It
20929 should not be required to have libc for the target.
20931 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
20932 they fail without libc headers for the target.
20933 * include/grub/powerpc/libgcc.h: Use weak attribute for all
20935 * include/grub/sparc64/libgcc.h: Likewise. Don't use
20936 preprocessor conditionals.
20938 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
20939 build system doesn't need to be aware of the tar.c internals.
20941 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
20943 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
20945 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
20947 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
20948 disk limit to 26 for IDE, Virtio, Xen and SCSI.
20950 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
20952 * util/i386/pc/grub-install.in: Change the error message if UUIDs
20953 aren't available if ata.mod gets used.
20955 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
20957 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
20958 initialising controller.
20959 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
20961 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
20963 * util/i386/pc/grub-install.in: Add a parameter --disk-module
20964 to choose between ata and biosdisk module on i386-pc.
20966 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
20968 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
20969 Subclass and Programming Interface fields in terms of the 3 byte
20970 Class Code register.
20971 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
20973 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
20974 interface is OHCI. Add grub_dprintf for symmetry with
20976 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
20977 interface is UHCI. Add interf variable for programming
20978 interface. Print interface with class/subclass.
20980 * bus/usb/ohci.c: Set interf with correct field.
20982 * bus/usb/uhci.c: Remove unneeded doubled lines.
20983 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
20984 Remove whitespace inside comment.
20986 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
20988 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
20989 as fallback an equivalent option without depth.
20991 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
20993 Not fail if unable to retrieve C/H/S on LBA disks
20995 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
20996 if unable to retrieve C/H/S on LBA disks
20998 2009-06-08 Pavel Roskin <proski@gnu.org>
21000 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
21003 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
21005 * Makefile.in (uninstall): Remove all $lib_DATA files.
21007 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
21009 Bugfix: install on partitionless device
21011 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
21014 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
21016 * Makefile.in (uninstall): Remove all $include_DATA files.
21018 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
21020 * commands/true.c: New file. Implement the true and false commands.
21021 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
21022 (true_mod_SOURCES): New variable.
21023 (true_mod_CFLAGS): Likewise.
21024 (true_mod_LDFLAGS): Likewise.
21026 2009-06-05 Colin D Bennett <colin@gibibit.com>
21028 Optimized font character lookup using binary search instead of linear
21029 search. Fonts now are required to have the character index ordered by
21032 * font/font.c (load_font_index): Verify that fonts have ordered
21034 (find_glyph): Use binary search instead of linear search to find a
21035 character in a font.
21037 2009-06-05 Michael Scherer <misc@mandriva.org>
21039 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
21040 uses case sensitive btree.
21041 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
21042 only for case insensitive filesystems.
21044 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
21046 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
21047 * conf/common.rmk (search_mod_CFLAGS): likewise
21049 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21051 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
21052 compensate a compiler bug
21054 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21056 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
21059 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21061 Definitions for creating asm symbols with Apple's CC
21063 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
21064 [APPLE_CC] (VARIABLE): likewise
21066 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21068 Disable lnxboot.img when compiled
21071 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
21072 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
21073 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
21074 [! APPLE_CC] (CODE_LENG): skip
21075 [! APPLE_CC] (setup_sects): likewise
21076 [! APPLE_CC]: skip filling
21078 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21080 Address in trampolines based on 32-bit registers when compiled
21083 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
21085 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
21087 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21089 Avoid aliases when compiling with Apple's CC for PCBIOS machine
21091 * kern/misc.c [APPLE_CC] (memcpy): new function
21092 [APPLE_CC] (memmove): likewise
21093 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
21094 (memcpy): define alias conditionally on !APPLE_CC
21097 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
21098 APPLE_CC are defined
21099 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
21100 (grub_assert_fail): make prototype conditional
21102 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21104 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
21106 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
21108 (CLEANFILES): add grub-macho2img
21109 (grub_macho2img_SOURCES): new variable
21110 * kern/i386/pc/startup.S (bss_start): new variable
21111 (bss_end): likewise
21112 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
21113 * util/grub-macho2img.c: new file
21115 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21117 Use objconv when compiling with Apple's CC
21119 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
21120 (efiemu64.o): likewise
21121 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
21122 when compiling with Apple's CC
21123 (efiemu64_s.o): likewise
21124 * configure.ac: check for objconv when compiling with Apple's CC
21125 * genmk.rb: use objconv for modules when compiled with Apple's CC
21127 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21129 Define segment as well as section when compiling with
21132 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
21133 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
21134 (efiemu_convert_pointer): likewise
21135 (efiemu_set_virtual_address_map): likewise
21136 (efiemu_convert_pointer): likewise
21137 (efiemu_getcrc32): likewise
21138 (init_crc32_table): likewise
21139 (reflect): likewise
21140 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
21141 (GRUB_MOD_DEP): likewise
21143 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21145 Allow a compilation without -mcmodel=large
21147 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
21148 when compiled without -mcmodel=large
21149 (filter_memory_map): remove memory post 4 GiB when compiled
21150 without -mcmodel=large
21151 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
21152 TARGET_CFLAGS when -mcmodel=large isn't supported
21154 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21156 Remove nested functions in efiemu core
21158 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
21160 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21162 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
21164 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
21166 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
21168 (grub_cpu_is_tsc_supported): likewise
21169 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
21171 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21173 Absolute addressing through constant with Apple's cc
21175 * kern/i386/pc/startup.S: Define necessary constants
21176 and address through it when using ABS with Apple's CC
21177 * boot/i386/pc/diskboot.S: likewise
21178 * boot/i386/pc/boot.S: likewise
21179 * boot/i386/pc/lnxboot.S: likewise
21180 * boot/i386/pc/cdboot.S: likewise
21181 * mmap/i386/pc/mmap_helper.S: likewise
21182 * commands/i386/pc/drivemap_int13h.S: likewise
21184 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21186 Check if compiler is apple cc
21188 * Makefile.in (ASFLAGS): new variable
21189 (TARGET_ASFLAGS): likewise
21190 (TARGET_MODULE_FORMAT): likewise
21191 (TARGET_APPLE_CC): likewise
21192 (OBJCONV): likewise
21193 (TARGET_IMG_CFLAGS): likewise
21194 (TARGET_CPPFLAGS): add includedir
21195 * configure.ac: call grub_apple_cc and grub_apple_target_cc
21196 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
21197 Check for linker script only if compiler isn't Apple's CC
21198 (TARGET_MODULE_FORMAT): set
21199 (TARGET_APPLE_CC): likewise
21200 (TARGET_ASFLAGS): likewise
21201 (ASFLAGS): likewise
21202 Check for objcopy only if compiler isn't Apple's CC
21203 Check for BSS symbol only if compiler isn't Apple's CC
21204 * genmk.rb: adapt nm options if we use Apple's utils
21205 * aclocal.m4 (grub_apple_cc): new test
21206 (grub_apple_target_cc): likewise
21208 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21210 Simplify sed expressions and improve awk
21212 * Makefile.in (install-local): simplify sed expression
21213 * gencmdlist.sh: likewise
21214 * genmoddep.awk: avoid adding module as a dependency of itself
21216 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21218 Add missing start symbols
21220 * boot/i386/pc/boot.S: add start
21221 * boot/i386/pc/pxeboot.S: likewise
21223 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21225 Fix wrong assumptions with grub-mkimage on EFI
21227 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
21228 (relocate_addresses): consider both r_addend and value at offset
21229 (make_mods_section): zerofill modinfo and header
21230 (convert_elf): write prefix here
21232 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21234 Use .asciz instead of .string
21236 * i386/pc/diskboot.S: use .asciz instead of .string
21237 * i386/pc/boot.S: likewise
21238 * include/grub/dl.h (GRUB_MOD_DEP): likewise
21239 (GRUB_MOD_NAME): likewise
21241 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21245 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
21246 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
21247 (grub_video_setup): remove
21248 (grub_video_set_mode): new prototype
21249 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
21251 (linux_vesafb_res): compile only on PCBIOS
21252 (grub_linux_boot): support gfxpayload
21253 * loader/i386/pc/xnu.c (video_hook): new function
21254 (grub_xnu_set_video): support gfxpayload
21255 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
21256 (DEFAULT_VIDEO_HEIGHT): likewise
21257 (DEFAULT_VIDEO_FLAGS): likewise
21258 (DEFAULT_VIDEO_MODE): new definition
21259 (video_hook): new function
21260 (grub_gfxterm_init): use grub_video_set_mode
21261 * util/grub.d/30_os-prober.in: remove explicit modesetting before
21263 * video/video.c (grub_video_setup): removed
21264 (grub_video_set_mode): new function based on grub_gfxterm_init and
21267 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21269 Avoid calling biosdisk in drivemap
21271 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
21272 (revparse_biosdisk): likewise
21273 (list_mappings): derive name from id directly
21274 (grub_cmd_drivemap): use tryparse_diskstring
21276 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21280 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
21281 (grub_lexer_param): add tokenonhold
21282 (grub_script_create_cmdline): remove cmdline. All callers updated
21283 (grub_script_function_create): make functionname
21284 grub_script_arg. All callers updated
21285 (grub_script_execute_argument_to_string): new prototype
21286 * kern/parser.c (state_transitions): reorder
21287 (grub_parser_cmdline_state): fix a bug and make more compact
21288 * script/sh/execute.c (grub_script_execute_argument_to_string):
21290 (grub_script_execute_cmdline): use new format
21291 * script/sh/function.c (grub_script_function_create): make functionname
21292 grub_script_arg. All callers updated
21293 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
21294 (grub_script_yylex): remove
21295 (grub_script_yylex2): renamed to ...
21296 (grub_script_yylex): ...renamed
21297 parse the expressions like a${b}c
21298 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
21299 (GRUB_PARSER_TOKEN_VAR): remove
21300 (GRUB_PARSER_TOKEN_NAME): likewise
21301 ("if"): declare as typeless
21302 ("while"): likewise
21303 ("function"): likewise
21308 (argument): likewise
21309 (script): accept empty scripts and make exit on error
21310 (arguments): use GRUB_PARSER_TOKEN_ARG
21311 (function): likewise
21312 (command): move error handling to script
21313 (menuentry): move grub_script_lexer_ref before
21314 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
21315 argument. All callers updated
21317 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
21319 Prevent GRUB from probing floppies during boot.
21321 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
21322 * commands/search.c (options): Add --no-floppy.
21323 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
21324 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
21325 --no-floppy when searching for UUIDs.
21327 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
21329 Simplify the code duplication in commands/search.c.
21331 * commands/search.c (search_label, search_fs_uuid): Merge into ...
21332 (search_fs): ... this. Update all users.
21334 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
21336 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
21338 2009-05-28 Pavel Roskin <proski@gnu.org>
21340 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
21341 Remove the original symlink explicitly.
21343 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
21344 just one slash. That's how grub_fshelp_find_file() does it.
21346 2009-05-26 Pavel Roskin <proski@gnu.org>
21348 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
21351 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
21354 2009-05-25 Christian Franke <franke@computer.org>
21356 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
21358 (grub_atapi_identify): Add wait after drive select.
21359 (grub_ata_identify): Do more strict status register check before
21360 calling grub_atapi_identify (). Suppress error message if status
21361 register is 0x00 after command failure. Add status register
21362 check after PIO read to avoid bogus identify due to stuck DRQ.
21363 Thanks to Pavel Roskin for testing.
21364 (grub_device_initialize): Remove unsafe status register check.
21365 Thanks to 'phcoder' for problem report and patch.
21366 Prevent sign extension in debug message.
21368 2009-05-23 Colin D Bennett <colin@gibibit.com>
21370 Cleaned up `include/grub/normal.h'. Grouped prototypes by
21371 definition file, and functions defined in `normal/menu.c' have had
21372 their prototypes moved to `include/grub/menu.h' for consistency.
21374 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
21376 (grub_menu_get_entry): Likewise.
21377 (grub_menu_get_timeout): Likewise.
21378 (grub_menu_set_timeout): Likewise.
21379 (grub_menu_execute_entry): Likewise.
21380 (grub_menu_execute_with_fallback): Likewise.
21381 (grub_menu_entry_run): Likewise.
21383 * include/grub/normal.h: Re-ordered and grouped function
21384 prototypes by file that the function is defined in.
21385 (grub_menu_execute_callback): Removed; moved to menu.h.
21386 (grub_menu_get_entry): Likewise.
21387 (grub_menu_get_timeout): Likewise.
21388 (grub_menu_set_timeout): Likewise.
21389 (grub_menu_execute_entry): Likewise.
21390 (grub_menu_execute_with_fallback): Likewise.
21391 (grub_menu_entry_run): Likewise.
21392 (grub_menu_addentry): Renamed from this ...
21393 (grub_normal_add_menu_entry): ... to this.
21395 * normal/main.c (grub_menu_addentry): Renamed from this ...
21396 (grub_normal_add_menu_entry): ... to this.
21398 * script/sh/execute.c (grub_script_execute_menuentry): Update
21399 reference to renamed grub_menu_addentry function.
21401 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
21403 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
21405 2009-05-22 Pavel Roskin <proski@gnu.org>
21407 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
21408 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
21409 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
21410 compiling for the i386 targets, but not for the utilities.
21412 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
21414 (grub_root_drive): Likewise.
21415 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
21417 (grub_root_drive): Change size to byte.
21418 (grub_start_addr): Remove.
21419 (grub_end_addr): Likewise.
21420 (grub_apm_bios_info): Likewise.
21422 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
21424 * normal/i386: Remove.
21425 * normal/powerpc: Likewise.
21426 * normal/sparc64: Likewise.
21427 * normal/x86_64: Likewise.
21429 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
21431 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
21432 * loader/i386/linux_trampoline.S: Fix indentation
21433 * loader/i386/xnu_helper.S: Likewise
21435 2009-05-18 Colin D Bennett <colin@gibibit.com>
21437 Display error messages when parsing a Lua statement fails.
21438 Previously, executing a syntactically invalid statement like
21439 ")foo" or "bar;" would silently fail.
21441 * script/lua/grub_main.c (handle_lua_error): New function.
21442 (grub_lua_parse_line): Improved reporting of Lua parser and
21445 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21447 Remove -Werror which causes build to fail on some systems
21449 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
21450 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
21451 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
21453 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21455 trampoline for linux on 64-bit platform
21457 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
21458 loader/i386/efi/linux_trampoline.S
21459 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
21461 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
21463 * loader/i386/linux_trampoline.S: moved here
21464 * loader/i386/efi/linux.c (allocate_pages): reserve space for
21466 (jumpvector): removed
21467 (grub_linux_trampoline_start): new declaration
21468 (grub_linux_trampoline_end): likewise
21469 (grub_linux_boot): use trampoline when on 64-bit platform
21470 * loader/i386/linux.c: likewise
21472 2009-05-16 Pavel Roskin <proski@gnu.org>
21474 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
21475 const to avoid a warning.
21476 (grub_lua_setenv): Likewise.
21477 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
21478 lmsg to fix a warning.
21480 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
21482 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
21483 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21484 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
21485 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21486 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
21487 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21488 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
21489 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21491 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
21493 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
21495 2009-05-16 Bean <bean123ch@gmail.com>
21497 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
21498 (lua_mod_SOURCES): New variable.
21499 (lua_mod_CFLAGS): Likewise.
21500 (lua_mod_LDFLAGS): Likewise.
21502 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
21503 (setjmp_mod_SOURCES): New variable.
21504 (setjmp_mod_CFLAGS): Likewise.
21505 (setjmp_LDFLAGS): Likewise.
21507 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
21508 (setjmp_mod_SOURCES): New variable.
21509 (setjmp_mod_CFLAGS): Likewise.
21510 (setjmp_LDFLAGS): Likewise.
21512 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
21513 (setjmp_mod_SOURCES): New variable.
21514 (setjmp_mod_CFLAGS): Likewise.
21515 (setjmp_LDFLAGS): Likewise.
21517 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
21518 (setjmp_mod_SOURCES): New variable.
21519 (setjmp_mod_CFLAGS): Likewise.
21520 (setjmp_LDFLAGS): Likewise.
21522 * normal/i386/setjmp.S: Moved from here ...
21523 * lib/i386/setjmp.S: ... Moved here
21524 * normal/x86_64/setjmp.S: Moved from here ...
21525 * lib/x86_64/setjmp.S: ... Moved here
21526 * normal/powerpc/setjmp.S: Moved from here ...
21527 * lib/powerpc/setjmp.S: ... Moved here
21528 * normal/sparc64/setjmp.S: Moved from here ...
21529 * lib/sparc64/setjmp.S: ... Moved here
21531 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
21532 returns_twice in mingw.
21534 * script/lua/grub_lib.c: New file.
21535 * script/lua/grub_lib.h: Likewise.
21536 * script/lua/grub_lua.h: Likewise.
21537 * script/lua/grub_main.c: Likewise.
21538 * script/lua/lapi.c: Likewise.
21539 * script/lua/lapi.h: Likewise.
21540 * script/lua/lauxlib.c: Likewise.
21541 * script/lua/lauxlib.h: Likewise.
21542 * script/lua/lbaselib.c: Likewise.
21543 * script/lua/lcode.c: Likewise.
21544 * script/lua/lcode.h: Likewise.
21545 * script/lua/ldblib.c: Likewise.
21546 * script/lua/ldebug.c: Likewise.
21547 * script/lua/ldebug.h: Likewise.
21548 * script/lua/ldo.c: Likewise.
21549 * script/lua/ldo.h: Likewise.
21550 * script/lua/ldump.c: Likewise.
21551 * script/lua/lfunc.c: Likewise.
21552 * script/lua/lfunc.h: Likewise.
21553 * script/lua/lgc.c: Likewise.
21554 * script/lua/lgc.h: Likewise.
21555 * script/lua/linit.c: Likewise.
21556 * script/lua/liolib.c: Likewise.
21557 * script/lua/llex.c: Likewise.
21558 * script/lua/llex.h: Likewise.
21559 * script/lua/llimits.h: Likewise.
21560 * script/lua/lmathlib.c: Likewise.
21561 * script/lua/lmem.c: Likewise.
21562 * script/lua/lmem.h: Likewise.
21563 * script/lua/loadlib.c: Likewise.
21564 * script/lua/lobject.c: Likewise.
21565 * script/lua/lobject.h: Likewise.
21566 * script/lua/lopcodes.c: Likewise.
21567 * script/lua/lopcodes.h: Likewise.
21568 * script/lua/loslib.c: Likewise.
21569 * script/lua/lparser.c: Likewise.
21570 * script/lua/lparser.h: Likewise.
21571 * script/lua/lstate.c: Likewise.
21572 * script/lua/lstate.h: Likewise.
21573 * script/lua/lstring.c: Likewise.
21574 * script/lua/lstring.h: Likewise.
21575 * script/lua/lstrlib.c: Likewise.
21576 * script/lua/ltable.c: Likewise.
21577 * script/lua/ltable.h: Likewise.
21578 * script/lua/ltablib.c: Likewise.
21579 * script/lua/ltm.c: Likewise.
21580 * script/lua/ltm.h: Likewise.
21581 * script/lua/lua.h: Likewise.
21582 * script/lua/luaconf.h: Likewise.
21583 * script/lua/lualib.h: Likewise.
21584 * script/lua/lundump.c: Likewise.
21585 * script/lua/lundump.h: Likewise.
21586 * script/lua/lvm.c: Likewise.
21587 * script/lua/lvm.h: Likewise.
21588 * script/lua/lzio.c: Likewise.
21589 * script/lua/lzio.h: Likewise.
21591 2009-05-16 Bean <bean123ch@gmail.com>
21593 * include/grub/kernel.h (grub_module_header_types): Add type
21596 * kern/main.c (grub_load_config): New function.
21597 (grub_main): Call grub_load_config to read boot config.
21599 * grub-mkimage (generate_image): New parameter config_path.
21600 (options): New option --config.
21601 (main): Parse --config option, and pass it to generate_image.
21603 2009-05-14 Christian Franke <franke@computer.org>
21605 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
21606 This fixes build on Cygwin.
21608 2009-05-14 Pavel Roskin <proski@gnu.org>
21610 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
21611 jump. This saves two bytes, so the typical case of 2 swapped
21612 drives would fit 32 bytes.
21614 2009-05-13 Pavel Roskin <proski@gnu.org>
21616 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
21617 grub_uint32_t to avoid a warning.
21619 * loader/i386/linux.c (allocate_pages): When assigning
21620 real_mode_mem, cast through grub_size_t to fix a warning. The
21621 code already makes sure that the value would fit a pointer.
21622 (grub_linux_setup_video): Cast render_target->data to
21623 grub_size_t to fix a warning.
21625 2009-05-13 Javier Martín <lordhabbit@gmail.com>
21627 * commands/i386/pc/drivemap.c: New file - implement drivemap
21629 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
21630 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
21632 2009-05-13 Pavel Roskin <proski@gnu.org>
21634 * util/i386/pc/grub-setup.c (setup): Remove unused variable
21635 embedding_area_exists.
21637 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
21639 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
21640 it easier to understand / work with.
21641 Improve warning messages for cases where there's no embedding area,
21642 or when it is too small (or core.img too large).
21644 2009-05-13 Pavel Roskin <proski@gnu.org>
21646 * loader/i386/pc/multiboot2.c: Add necessary includes for
21647 grub_multiboot2_real_boot().
21649 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
21650 PX record is always little-endian. We only need the lower 2
21653 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
21654 facilitate code reuse.
21655 (grub_cpio_mount): Use "struct head", not a char buffer. This
21656 fixes a warning reported by gcc 4.4.
21658 * kernel/disk.c (grub_disk_read): Use void pointer for the
21660 (grub_disk_write): Use const void pointer for the buffer.
21661 Adjust all callers. Remove unnecessary casts.
21663 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
21665 * util/i386/pc/grub-install.in: Update copyright year.
21667 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21671 * commands/gptsync.c: new file
21672 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
21673 (gptsync_mod_SOURCES): new variable
21674 (gptsync_mod_CFLAGS): likewise
21675 (gptsync_mod_LDFLAGS): likewise
21676 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
21678 (GRUB_PC_PARTITION_TYPE_HFS): likewise
21679 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
21680 * conf/i386-ieee1275.rmk: likewise
21681 * conf/i386-pc.rmk: likewise
21682 * conf/powerpc-ieee1275.rmk: likewise
21684 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21688 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
21689 (grub_dl_ref): likewise
21691 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
21693 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
21694 split in two functions (one for msdos and one for gpt).
21696 2009-05-08 Pavel Roskin <proski@gnu.org>
21698 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
21701 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
21702 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
21703 Initialize them with -1. Add sanity check for bad1. Eliminate
21706 2009-05-08 David S. Miller <davem@davemloft.net>
21708 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
21710 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
21712 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
21715 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
21717 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
21718 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
21720 2009-05-05 David S. Miller <davem@davemloft.net>
21722 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
21724 2009-05-05 Pavel Roskin <proski@gnu.org>
21726 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
21727 of grub_dl_ref() and grub_dl_unref().
21728 * commands/parttool.c: Remove preprocessor conditionals around
21729 grub_dl_ref() and grub_dl_unref().
21730 * fs/affs.c: Likewise.
21731 * fs/afs.c: Likewise.
21732 * fs/cpio.c: Likewise.
21733 * fs/ext2.c: Likewise.
21734 * fs/fat.c: Likewise.
21735 * fs/hfs.c: Likewise.
21736 * fs/hfsplus.c: Likewise.
21737 * fs/iso9660.c: Likewise.
21738 * fs/jfs.c: Likewise.
21739 * fs/minix.c: Likewise.
21740 * fs/ntfs.c: Likewise.
21741 * fs/reiserfs.c: Likewise.
21742 * fs/sfs.c: Likewise.
21743 * fs/udf.c: Likewise.
21744 * fs/ufs.c: Likewise.
21745 * fs/xfs.c: Likewise.
21746 * include/grub/dl.h: Likewise.
21747 * loader/xnu.c: Likewise.
21749 2009-05-04 Pavel Roskin <proski@gnu.org>
21751 * commands/acpi.c: Remove unused variable my_mod.
21752 * partmap/amiga.c: Likewise.
21753 * partmap/apple.c: Likewise.
21754 * partmap/gpt.c: Likewise.
21755 * partmap/pc.c: Likewise.
21756 * partmap/sun.c: Likewise.
21757 * term/gfxterm.c: Likewise.
21758 * term/i386/pc/vesafb.c: Likewise.
21759 * term/i386/pc/vga.c: Likewise.
21761 2009-05-04 David S. Miller <davem@davemloft.net>
21763 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
21764 pointer args to grub_ieee1275_get_property().
21766 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
21768 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
21769 devices, and do not traverse down under controller nodes.
21771 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
21772 (grub_ofdisk_open): Use it to un-escape "," characters.
21773 * kern/disk.c (find_part_sep): New.
21774 (grub_disk_open): Use it to find the first non-escaped ','
21775 character in the disk name.
21776 * util/ieee1275/devicemap.c (escape_of_path): New.
21777 (grub_util_emit_devicemap_entry): Use it.
21778 * util/sparc64/ieee1275/grub-install.in: Update script to
21779 strip partition specifiers properly by not triggering on
21780 '\' escaped ',' characters.
21782 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21784 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
21786 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
21788 (linux_vesafb_modes): Add a lot of additional modes to the list (based
21789 on documentation from Wikipedia).
21791 2009-05-04 Pavel Roskin <proski@gnu.org>
21793 * disk/ata.c: Spelling fixes.
21794 * disk/raid.c: Likewise.
21795 * disk/usbms.c: Likewise.
21796 * disk/dmraid_nvidia.c: Likewise.
21797 * kern/ieee1275/openfw.c: Likewise.
21798 * kern/ieee1275/init.c: Likewise.
21799 * kern/ieee1275/cmain.c: Likewise.
21800 * boot/i386/pc/cdboot.S: Likewise.
21801 * video/readers/png.c: Likewise.
21802 * video/i386/pc/vbe.c: Likewise.
21803 * fs/udf.c: Likewise.
21804 * fs/hfs.c: Likewise.
21805 * fs/reiserfs.c: Likewise.
21806 * efiemu/runtime/efiemu.c: Likewise.
21807 * efiemu/main.c: Likewise.
21808 * efiemu/mm.c: Likewise.
21809 * include/grub/elf.h: Likewise.
21810 * include/grub/xnu.h: Likewise.
21811 * include/grub/usbdesc.h: Likewise.
21812 * include/grub/usb.h: Likewise.
21813 * include/grub/script_sh.h: Likewise.
21814 * include/grub/lib/LzmaEnc.h: Likewise.
21815 * include/grub/efiemu/efiemu.h: Likewise.
21816 * include/grub/command.h: Likewise.
21817 * normal/menu.c: Likewise.
21818 * normal/main.c: Likewise.
21819 * normal/datetime.c: Likewise.
21820 * bus/usb/uhci.c: Likewise.
21821 * mmap/i386/uppermem.c: Likewise.
21822 * mmap/mmap.c: Likewise.
21823 * commands/acpi.c: Likewise.
21824 * commands/test.c: Likewise.
21825 * partmap/apple.c: Likewise.
21826 * font/font.c: Likewise.
21827 * loader/sparc64/ieee1275/linux.c: Likewise.
21828 * loader/macho.c: Likewise.
21829 * loader/i386/bsd_trampoline.S: Likewise.
21830 * loader/i386/bsd.c: Likewise.
21831 * loader/xnu.c: Likewise.
21832 * term/i386/pc/vesafb.c: Likewise.
21833 * term/usb_keyboard.c: Likewise.
21834 * util/resolve.c: Likewise.
21835 * util/getroot.c: Likewise.
21837 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
21839 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
21841 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21843 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
21846 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21848 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
21849 parameter only available on BIOS.
21851 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
21853 Removed wrong semicolon in declaration
21855 * grub/misc.h (grub_dprintf): remove semicolon
21857 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21859 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
21860 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
21861 is done by grub_cmd_linux() now).
21862 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
21863 restore video to text mode.
21864 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
21865 indicates lack of "vga=" parameter. "vga=0" is mapped to
21866 `GRUB_LINUX_VID_MODE_NORMAL'.
21868 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
21870 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
21871 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
21872 and `normal/script.c'. Add `kern/rescue_reader.c',
21873 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
21874 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
21875 `grub_script.tab.c'.
21877 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21878 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21880 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
21881 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21883 * Makefile.in: Remove duplicated 2008 in Copyright line.
21885 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21887 * util/misc.c (grub_util_warn): New function. Emits a warning
21889 * include/grub/util/misc.h (grub_util_warn): New declaration.
21891 * util/i386/pc/grub-install.in: Understand --force and pass it down
21894 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
21896 (setup): Improve error messages and add warnings when requested to
21897 install in odd layouts. Refuse to install using blocklists unless
21900 2009-05-04 martin f. krafft <madduck@madduck.net>
21902 * disk/raid.c (grub_raid_scan_device): Improve debug message.
21904 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
21906 Updated copyright year
21908 * fs/hfsplus.c: updated copyright year
21910 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
21914 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
21915 in the space previously used by unused3
21916 (grub_hfsplus_uuid): new function
21917 (grub_hfsplus_fs): added uuid field
21919 2009-05-03 Pavel Roskin <proski@gnu.org>
21921 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
21922 suppress warnings. It's no longer needed.
21923 * disk/host.c: Likewise.
21924 * disk/ata_pthru.c: Likewise.
21925 * disk/loopback.c: Likewise.
21926 * hook/datehook.c: Likewise.
21927 * parttool/pcpart.c: Likewise.
21928 * fs/i386/pc/pxe.c: Likewise.
21929 * fs/ntfscomp.c: Likewise.
21930 * efiemu/main.c: Likewise.
21931 * mmap/mmap.c: Likewise.
21932 * commands/crc.c: Likewise.
21933 * commands/hexdump.c: Likewise.
21934 * commands/hdparm.c: Likewise.
21935 * commands/acpi.c: Likewise.
21936 * commands/echo.c: Likewise.
21937 * commands/minicmd.c: Likewise.
21938 * commands/blocklist.c: Likewise.
21939 * commands/memrw.c: Likewise.
21940 * commands/loadenv.c: Likewise.
21941 * commands/usbtest.c: Likewise.
21942 * commands/lsmmap.c: Likewise.
21943 * commands/boot.c: Likewise.
21944 * commands/parttool.c: Likewise.
21945 * commands/configfile.c: Likewise.
21946 * commands/search.c: Likewise.
21947 * commands/ieee1275/suspend.c: Likewise.
21948 * commands/cat.c: Likewise.
21949 * commands/i386/pc/pxecmd.c: Likewise.
21950 * commands/i386/pc/play.c: Likewise.
21951 * commands/i386/pc/halt.c: Likewise.
21952 * commands/i386/pc/vbeinfo.c: Likewise.
21953 * commands/i386/pc/vbetest.c: Likewise.
21954 * commands/lspci.c: Likewise.
21955 * commands/date.c: Likewise.
21956 * commands/handler.c: Likewise.
21957 * commands/ls.c: Likewise.
21958 * commands/test.c: Likewise.
21959 * commands/cmp.c: Likewise.
21960 * commands/efi/loadbios.c: Likewise.
21961 * commands/efi/fixvideo.c: Likewise.
21962 * commands/halt.c: Likewise.
21963 * commands/help.c: Likewise.
21964 * commands/reboot.c: Likewise.
21965 * hello/hello.c: Likewise.
21966 * script/sh/main.c: Likewise.
21967 * loader/xnu.c: Likewise.
21968 * term/terminfo.c: Likewise.
21969 * term/i386/pc/serial.c: Likewise.
21970 * term/usb_keyboard.c: Likewise.
21972 2009-05-03 David S. Miller <davem@davemloft.net>
21974 * normal/menu.c: Include grub/parser.h
21976 2009-05-03 Pavel Roskin <proski@gnu.org>
21978 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
21980 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
21981 Suggested by Javier Martín <lordhabbit@gmail.com>
21983 * util/i386/pc/grub-mkrescue.in: Allow for the case when
21984 efiemu??.o doesn't exist.
21985 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
21988 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
21990 FreeBSD 64-bit support
21992 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
21993 and loader/i386/bsd_trampoline.S
21994 (bsd_mod_ASFLAGS): new variable
21995 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
21996 (FREEBSD_MODTYPE_KERNEL64): likewise
21997 (grub_bsd64_trampoline_start): likewise
21998 (grub_bsd64_trampoline_end): likewise
21999 (grub_bsd64_trampoline_selfjump): likewise
22000 (grub_bsd64_trampoline_gdt): likewise
22001 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
22002 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
22003 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
22004 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
22005 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
22007 * loader/i386/bsd_pagetable.c: new file
22008 * loader/i386/bsd_trampoline.S: likewise
22009 * loader/i386/bsd.c (ALIGN_QWORD): new macro
22010 (ALIGN_VAR): likewise
22011 (entry_hi): new variable
22012 (kern_end_mdofs): likewise
22013 (is_64bit): likewise
22014 (grub_freebsd_add_meta): use ALIGN_VAR
22015 (grub_e820_mmap): new declaration
22016 (grub_freebsd_add_mmap): new function
22017 (grub_freebsd_add_meta_module): support 64 bit kernels
22018 (grub_freebsd_list_modules): use ALIGN_VAR
22019 (gdt_descriptor): new declaration
22020 (grub_freebsd_boot): support 64 bit kernels
22021 (grub_bsd_elf64_hook): new function
22022 (grub_bsd_load_elf): support elf64
22024 2009-05-03 Bean <bean123ch@gmail.com>
22026 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
22027 after we get the result of if statement.
22029 2009-05-03 Bean <bean123ch@gmail.com>
22031 * Makefile.in (enable_efiemu): New variable.
22033 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
22035 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
22037 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
22038 path, add -mno-red-zone option.
22039 (efiemu64_s.o): Likewise.
22040 (efiemu64.o): Use macro $^ for source file.
22042 * configure.ac (--enable-efiemu): New option.
22044 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
22048 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
22049 (pkglib_MODULES): add xnu.mod
22050 (xnu_mod_SOURCES): new variable
22051 (xnu_mod_CFLAGS): likewise
22052 (xnu_mod_LDFLAGS): likewise
22053 (xnu_mod_ASFLAGS): likewise
22054 * conf/i386-pc.rmk: likewise
22055 * conf/x86_64-efi.rmk: likewise
22056 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
22058 * include/grub/i386/macho.h: new file
22059 * include/grub/i386/xnu.h: likewise
22060 * include/grub/macho.h: likewise
22061 * include/grub/machoload.h: likewise
22062 * include/grub/x86_64/macho.h: likewise
22063 * include/grub/x86_64/xnu.h: likewise
22064 * include/grub/xnu.h: likewise
22065 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
22066 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
22067 * loader/i386/efi/xnu.c: new file
22068 * loader/i386/pc/xnu.c: likewise
22069 * loader/i386/xnu.c: likewise
22070 * loader/i386/xnu_helper.S: likewise
22071 * loader/macho.c: likewise
22072 * loader/xnu.c: likewise
22073 * loader/xnu_resume.c: likewise
22074 * util/grub-dumpdevtree: likewise
22075 * include/grub/i386/pit.h: include grub/err.h
22076 (grub_pit_wait): export
22077 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
22079 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22083 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
22084 _linux_efi, linux_efi.
22085 new files in grub-emu
22086 new targets efiemu32.o and efiemu64.o
22087 * loader/linux_normal_efiemu.c: likewise
22088 * loader/i386/efi/linux.c: added preliminary efiemu support
22089 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
22091 * include/grub/autoefi.h: new file
22092 * include/grub/i386/efiemu.h: likewise
22093 * include/grub/i386/pc/efiemu.h: likewise
22094 * include/grub/efi/api.h: add LL suffix when necessary
22095 new definitions relating to tables
22096 * include/grub/efiemu/efiemu.h: new file
22097 * include/grub/efiemu/runtime.h: likewise
22098 * efiemu/prepare.c: likewise
22099 * efiemu/loadcore_common.c: likewise
22100 * efiemu/loadcore64.c: likewise
22101 * efiemu/runtime/efiemu.sh: likewise
22102 * efiemu/runtime/efiemu.S: likewise
22103 * efiemu/runtime/efiemu.c: likewise
22104 * efiemu/runtime/config.h: likewise
22105 * efiemu/prepare32.c: likewise
22106 * efiemu/main.c: likewise
22107 * efiemu/modules/pnvram.c: likewise
22108 * efiemu/modules/i386: likewise
22109 * efiemu/modules/i386/pc: likewise
22110 * efiemu/modules/acpi.c: likewise
22111 * efiemu/i386/pc/cfgtables.c: likewise
22112 * efiemu/i386/loadcore64.c: likewise
22113 * efiemu/i386/loadcore32.c: likewise
22114 * efiemu/prepare64.c: likewise
22115 * efiemu/loadcore.c: likewise
22116 * efiemu/symbols.c: likewise
22117 * efiemu/mm.c: likewise
22118 * efiemu/loadcore32.c: likewise
22120 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22124 * commands/acpi.c: new file
22125 * commands/i386/pc/acpi.c: likewise
22126 * commands/efi/acpi.c: likewise
22127 * include/grub/acpi.h: likewise
22128 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
22129 (acpi_mod_SOURCES): new variable
22130 (acpi_mod_CFLAGS): likewise
22131 (acpi_mod_LDFLAGS): likewise
22132 * conf/i386-efi.rmk: likewise
22133 * conf/x86_64-efi.rmk: likewise
22135 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22137 Missing part from mmap patch
22139 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
22140 (grub_mmap_unregister)
22141 (grub_mmap_free_and_unregister): use grub_mmap_register
22143 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22147 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
22148 * loader/i386/linux.c (find_mmap_size): likewise
22149 (allocate_pages): likewise
22150 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
22151 (grub_fill_multiboot_mmap): likewise
22152 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
22153 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
22154 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
22155 (OPENBSD_MMAP_RESERVED): likewise
22156 * include/grub/i386/pc/memory.h: include grub/memory.h
22157 (grub_lower_mem): removed
22158 (grub_upper_mem): likewise
22159 (GRUB_MACHINE_MEMORY_ACPI): new definition
22160 (GRUB_MACHINE_MEMORY_NVS): likewise
22161 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
22162 (GRUB_MACHINE_MEMORY_HOLE): likewise
22163 (grub_machine_mmap_register): likewise
22164 (grub_machine_mmap_unregister): likewise
22165 (grub_machine_get_upper): likewise
22166 (grub_machine_get_lower): likewise
22167 (grub_machine_get_post64): likewise
22168 * include/grub/i386/efi/memory.h: new file
22169 * include/grub/x86_64/efi/memory.h: likewise
22170 * include/grub/efi/memory.h: likewise
22171 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
22172 (mmap_mod_SOURCES): new variable
22173 (mmap_mod_LDFLAGS): likewise
22174 (mmap_mod_ASFLAGS): likewise
22175 * conf/i386-coreboot.rmk: likewise
22176 * conf/i386-ieee1275.rmk: likewise
22177 * conf/i386-efi.rmk: likewise
22178 * conf/x86_64-efi.rmk: likewise
22179 * include/grub/types.h (UINT_TO_PTR): new macro
22180 (PTR_TO_UINT32): likewise
22181 (PTR_TO_UINT64): likewise
22182 * include/grub/memory.h: new file
22183 * mmap/i386/pc/mmap.c: likewise
22184 * mmap/i386/pc/mmap_helper.S: likewise
22185 * mmap/i386/uppermem.c: likewise
22186 * mmap/mmap.c: likewise
22187 * mmap/efi/mmap.c: likewise
22188 * kern/i386/coreboot/init.c (grub_machine_init): don't use
22190 * kern/i386/pc/init.c (grub_lower_mem): removed variable
22191 (grub_upper_mem): likewise
22192 (grub_machine_init): don't use grub_upper_mem,
22193 make grub_lower_mem local
22194 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
22195 grub_mmap_iterate and grub_mmap_get_upper
22196 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
22198 2009-05-02 Bean <bean123ch@gmail.com>
22200 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
22201 script/sh/parser.y.
22202 (pkglib_MODULES): Add normal.mod and sh.mod.
22203 (normal_SOURCES): New variable.
22204 (normal_mod_CFLAGS): Likewise.
22205 (normal_mod_LDFLAGS): Likewise.
22206 (sh_mod_SOURCES): Likewise.
22207 (sh_mod_CFLAGS): Likewise.
22208 (sh_mod_LDFLAGS): Likewise.
22210 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
22211 script/sh/lexer.c_DEPENDENCIES.
22212 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
22213 kern/rescue_reader.c and kern/rescue_parser.c.
22214 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
22215 (grub_emu_SOURCES): Change source files.
22216 (pkglib_MODULES): Remove normal.mod.
22217 (normal_SOURCES): Removed.
22218 (normal_mod_CFLAGS): Likewise.
22219 (normal_mod_LDFLAGS): Likewise.
22220 * conf/i386-coreboot.rmk: Likewise.
22221 * conf/i386-efi.rmk: Likewise.
22222 * conf/i386-ieee1276.rmk: Likewise.
22223 * conf/powerpc-ieee1275.rmk: Likewise.
22224 * conf/sparc64-ieee1275.rmk: Likewise.
22225 * conf/x86_64-efi.rmk: Likewise.
22227 * include/grub/command.h (grub_command_execute): New inline function.
22229 * include/grub/menu.h (grub_menu_entry): Removed commands field.
22231 * include/grub/normal.h: Remove <grub/setjmp.h>.
22232 (grub_fs_module_list): Moved to normal/autofs.c.
22233 (grub_exit_env): Removed.
22234 (grub_command_execute): Likewise.
22235 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
22237 (read_command_list): New function declaration.
22238 (read_fs_list): Likewise.
22240 * include/parser.h: Include <grub/reader.h>.
22241 (grub_parser_split_cmdline): Change type of getline parameter.
22242 (grub_parser): New structure.
22243 (grub_parser_class): New variable.
22244 (grub_parser_execute): New function declaration.
22245 (grub_register_rescue_parser): Likewise.
22246 (grub_parser_register): New inline function.
22247 (grub_parser_unregister): Likewise.
22248 (grub_parser_get_current): Likewise.
22249 (grub_parser_set_current): Likewise.
22251 * include/grub/reader.h: New file.
22252 * kern/reader.c: Likewise.
22253 * kern/rescue_parser.c: Likewise.
22254 * kern/rescue_reader.c: Likewise.
22255 * normal/autofs.c: Likewise.
22256 * normal/dyncmd.c: Likewise.
22258 * include/grub/rescue.h: Removed.
22259 * normal/command.h: Likewise.
22261 * include/grub/script.h: Moved to ...
22262 * include/grub/script_sh.h: ... Moved here.
22263 * normal/execute.c: Moved to ...
22264 * script/sh/execute.c: ... Moved here.
22265 * normal/function.c: Moved to ...
22266 * script/sh/function.c: ... Moved here.
22267 * normal/lexer.c: Moved to ...
22268 * script/sh/lexer.c: ... Moved here.
22269 * normal/parser.y: Moved to ...
22270 * script/sh/parser.y: ... Moved here.
22271 * normal/script.c: Moved to ...
22272 * script/sh/script.c: ... Moved here.
22274 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
22276 (grub_exit_env): Removed.
22277 (fs_module_list): Moved to normal/autofs.c.
22278 (grub_file_getline): Don't handle comment here.
22279 (free_menu): Skip removed field entry->commands.
22280 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
22282 (read_config_file): Removed nested parameter, change getline function.
22283 (grub_enter_normal_mode): Removed.
22284 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
22285 (read_command_list): Likewise.
22286 (autoload_fs_module): Moved to normal/autofs.c.
22287 (read_fs_list): Likewise.
22288 (reader_nested): New variable.
22289 (grub_normal_execute): Run parser.sh to switch to sh parser.
22290 (grub_cmd_rescue): Removed.
22291 (cmd_normal): Removed.
22292 (grub_cmd_normal): Unregister itself at the beginning. Don't register
22294 (grub_cmdline_run): New function.
22295 (grub_normal_reader_init): Likewise.
22296 (grub_normal_read_line): Likewise.
22297 (grub_env_write_pager): Likewise.
22298 (cmdline): New variable.
22299 (grub_normal_reader): Likewise.
22300 (GRUB_MOD_INIT): Register normal reader and set as current, register
22301 pager hook, register normal command with grub_register_command_prio,
22302 so that it won't show up in command.lst.
22303 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
22304 grub_fs_autoload_hook.
22306 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
22307 (grub_menu_execute_entry): Replace grub_script_execute with
22308 grub_parser_execute, change parameter to grub_command_execute.
22310 * normal/menu_text.c: Remove <grub/script.h>.
22312 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
22313 and <grub/parser.h>.
22314 (run): Change editor_getline to use new parser interface. Change
22315 parameter to grub_command_execute.
22317 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
22318 <grub/reader.h> and <grub/parser.h>.
22319 (grub_load_normal_mode): Execute normal command.
22320 (grub_main): Call grub_register_core_commands,
22321 grub_register_rescue_parser and grub_register_rescue_reader, use
22322 grub_reader_loop to enter input loop.
22324 * kern/parser.c (grub_parser_split_cmdline): Change type of
22326 (grub_parser_class): New variable.
22327 (grub_parser_execute): New function.
22329 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
22330 * loader/multiboot2.c: Likewise.
22331 * loader/sparc64/ieee1275/linux.c: Likewise.
22333 * util/grub-emu.c (read_command_list): New dummy function.
22335 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
22337 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
22338 count to 16 for CCISS and IDA.
22340 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
22342 * normal/menu_text.c (grub_wait_after_message): Print a newline
22343 after waiting for user input.
22345 * loader/i386/linux.c: Include `<grub/normal.h>'.
22346 (grub_cmd_linux): Improve the error message about `ask' mode, by
22347 waiting for user input so it's not missed (we can do this, since
22348 user requested interaction).
22350 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22352 Added missing lst to grub-mkrescue
22354 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
22355 and ${input_dir}/parttool.lst
22357 2009-04-30 David S. Miller <davem@davemloft.net>
22359 * util/hostdisk.c (device_is_wholedisk): New function.
22360 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
22361 zero only if device_is_wholedisk() returns true.
22363 * util/hostdisk.c (convert_system_partition_to_system_disk):
22364 Handle virtual disk devices named /dev/vdiskX as found on sparc
22367 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
22368 lettered partition specifier is found, convert to numbered.
22370 2009-04-29 David S. Miller <davem@davemloft.net>
22372 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
22373 * include/grub/sparc64/ieee1275/memory.h: Likewise.
22375 * normal/command.c: Add missing newline at end of file.
22377 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
22379 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
22380 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
22381 grub_ofdisk_read): Likewise, and deal similarly with the fact that
22382 ihandles have a 32-bit type but need to be stored in a "void *".
22384 2009-04-28 Pavel Roskin <proski@gnu.org>
22386 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
22387 not disk. Adjust all dependencies.
22388 (grub_fs_uuid_close): Use grub_device_close(), not
22391 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
22392 parent's partition, don't copy it by reference, as it gets freed
22395 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
22397 Preboot hooks support
22399 * commands/boot.c (struct grub_preboot_t): new declaration
22400 (preboots_head): new variable
22401 (preboots_tail): likewise
22402 (grub_loader_register_preboot_hook): new function
22403 (grub_loader_unregister_preboot_hook): likewise
22404 (grub_loader_set): launch preboot hooks
22405 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
22406 (grub_loader_register_preboot_hook): new declaration
22407 (grub_loader_unregister_preboot_hook): likewise
22409 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
22413 * disk/scsi.c (grub_scsi_open): added missing cast when
22414 calling grub_dprintf
22416 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
22418 Bug and warning fixes
22420 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
22422 * commands/test.c (test_parse): fixed bug with file tests and corrected
22423 declaration of find_file
22425 2009-04-26 Pavel Roskin <proski@gnu.org>
22427 * Makefile.in: Don't install empty manual pages if help2man is
22428 missing. Use help2man option for output, not shell redirection.
22430 2009-04-26 David S. Miller <davem@davemloft.net>
22432 * util/grub-mkdevicemap.c (make_device_map): Add missing
22433 NESTED_FUNC_ATTR to process_device().
22435 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
22439 * commands/test.c: rewritten to use bash-like test
22441 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
22443 Parttool autoloading and improvements
22445 * Makefile.in (pkglib_DATA): add parttool.lst
22446 (parttool.lst): new target
22447 * genmk.rb: generate parttool-*
22448 (CLEANFILES): add #{parttool}
22449 (PARTTOOLFILES): new variable
22450 * genparttoollist.sh: new file
22451 * parttool/pcpart.c (grub_pcpart_boot): more feedback
22452 (grub_pcpart_type): likewise
22453 * commands/parttool.c (helpmsg): new variable
22454 (grub_cmd_parttool): output help if not enough arguments are supplied
22456 (GRUB_MOD_INIT(parttool)): use helpmsg
22458 2009-04-24 David S. Miller <davem@davemloft.net>
22460 Avoiding opening same device multiple times in device iterator.
22462 * kern/device.c: (grub_device_iterate): Define struct part_ent,
22463 and use it to build a list of partitions in iterate_disk() and
22464 iterate_partition().
22466 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
22469 * disk/ieee1275/nand.c (grub_nand_iterate): Return
22470 grub_devalias_iterate() result instead of unconditional 0.
22471 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
22472 Also, capture hook return value, either directly or via
22473 grub_children_iterate(), and propagate to caller.
22474 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
22475 grub_children_iterate): Return value is now 'int' instead of
22477 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
22478 like a proper iterator, stopping when hooks return non-zero.
22479 (grub_devalias_iterate): Likewise.
22481 2009-04-23 David S. Miller <davem@davemloft.net>
22483 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
22485 2009-04-22 David S. Miller <davem@davemloft.net>
22487 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
22488 is larger than address_cells, use that value for address_cells too.
22490 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
22491 IEEE1275_MAX_PATH_LEN): Define.
22492 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
22493 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
22494 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
22495 'devtype'. Explicitly NULL terminate devalias expansion.
22497 * util/sparc64/ieee1275/misc.c: New file.
22498 * util/sparc64/ieee1275/grub-setup.c: New file.
22499 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
22500 * util/sparc64/ieee1275/grub-mkimage.c: New file.
22501 * util/sparc64/ieee1275/grub-install.in: New file.
22502 * util/ieee1275/ofpath.c: New file.
22503 * util/ieee1275/devicemap.c: New file.
22504 * util/devicemap.c: New file.
22505 * util/deviceiter.c: New file.
22506 * kern/sparc64/ieee1275/init.c: New file.
22507 * include/grub/util/ofpath.h: New file.
22508 * include/grub/util/deviceiter.h: New file.
22509 * util/grub-mkdevicemap.c: Include deviceiter.h.
22510 Implement using grub_util_emit_devicemap_entry and
22511 grub_util_iterate_devices.
22512 * conf/i386-corebook.rmk: Build util/deviceiter.c and
22513 util/devicemap.c into grub-mkdevicemap
22514 * conf/i386-efi.rmk: Likewise.
22515 * conf/i386-ieee1275.rmk: Likewise.
22516 * conf/i386-pc.rmk: Likewise.
22517 * conf/powerpc-ieee1275.rmk: Likewise.
22518 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
22519 images and installation utilities. Build kernel as image
22520 instead of as elf binary. Use common rules as much as possible.
22522 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
22524 Correct GPT definition
22526 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
22529 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
22531 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
22533 2009-04-19 David S. Miller <davem@davemloft.net>
22535 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
22536 (grub_rescue_cmd_linux): Rename to...
22537 (grub_cmd_linux): and fix prototype.
22538 (grub_rescue_cmd_initrd): Rename to...
22539 (grub_cmd_initrd): and fix prototype.
22540 (cmd_linux, cmd_initrd): New.
22541 (GRUB_MOD_INIT(linux)): Use grub_register_command().
22542 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
22544 2009-04-17 Pavel Roskin <proski@gnu.org>
22546 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
22548 (grub_ohci_transfer): Likewise.
22550 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
22552 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
22553 return without a value. Fix inconsistent indentation.
22555 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
22556 match struct grub_fs.
22558 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
22559 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
22560 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
22561 * commands/lspci.c (grub_lspci_iter): Likewise.
22563 2009-04-16 Bean <bean123ch@gmail.com>
22565 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
22568 2009-04-15 Pavel Roskin <proski@gnu.org>
22570 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
22571 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
22572 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
22575 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
22577 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
22578 that no multiple data or metadata areas are supported and `Unknown
22581 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
22583 Move loader out of the kernel
22585 * kern/loader.c: moved to ...
22586 * commands/boot.c: ... moved here
22587 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
22588 * commands/boot.c (grub_cmd_boot): moved here. All users updated
22589 * include/grub/kernel.h (grub_machine_fini): export
22590 * include/grub/loader.h (grub_loader_is_loaded): update declaration
22591 (grub_loader_set): likewise
22592 (grub_loader_unset): likewise
22593 (grub_loader_boot): likewise
22594 * conf/common.rmk: new module boot.mod
22595 (pkglib_MODULES): add boot.mod
22596 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
22597 (grub_emu_SOURCES): likewise
22598 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
22599 (grub_emu_SOURCES): likewise
22600 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
22601 (grub_emu_SOURCES): likewise
22602 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
22603 (grub_emu_SOURCES): likewise
22604 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
22605 (grub_emu_SOURCES): likewise
22606 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
22607 (grub_emu_SOURCES): likewise
22608 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
22609 (grub_emu_SOURCES): likewise
22611 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
22613 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
22615 * kern/misc.c (grub_itoa): Removed function
22616 (grub_ltoa): likewise
22617 (grub_vsprintf): use grub_lltoa
22619 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
22623 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
22624 * conf/i386-coreboot.rmk: likewise
22625 * conf/i386-ieee1275.rmk: likewise
22626 * conf/powerpc-ieee1275.rmk: likewise
22628 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
22630 * INSTALL: Add that `./autogen.sh' needs to be run before
22633 2009-04-14 Bean <bean123ch@gmail.com>
22635 * Makefile.in (pkglib_DATA): Add handler.lst.
22636 (handler.lst): New rule.
22638 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
22639 * conf/i386-coreboot.rmk: Likewise.
22640 * conf/i386-ieee1275.rmk: Likewise.
22641 * conf/i386-efi.rmk: Likewise.
22642 * conf/x86_64-efi.rmk: Likewise.
22643 * conf/powerpc-ieee1275.rmk: Likewise.
22644 * conf/sparc64-ieee1275.rmk: Likewise.
22646 * genhandlerlist.sh: New file.
22648 * genmk.rb: Add rules to generate handler.lst.
22650 * include/grub/normal.h (grub_file_getline): New function definition.
22651 (read_handler_list): Likewise.
22652 (free_handler_list): Likewise.
22654 * include/grub/term.h (grub_term_register_input): Add name parameter
22655 for auto generation of handler.lst.
22656 (grub_term_register_output): Likewise.
22658 * normal/handler.c: New file.
22660 * normal/main.c (get_line): Renamed to grub_file_getline.
22661 (read_config_file): Use the newly renamed grub_file_getline.
22662 (read_command_list): Likewise.
22663 (read_fs_list): Likewise.
22664 (grub_normal_execute): Call read_handler_list to parse handler.lst.
22665 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
22667 * term/efi/console.c (grub_console_init): Add name parameter for auto
22668 generation of handler.lst.
22669 * term/gfxterm.c: Likewise.
22670 * term/i386/pc/at_keyboard.c: Likewise.
22671 * term/i386/pc/console.c: Likewise.
22672 * term/i386/pc/serial.c: Likewise.
22673 * term/i386/pc/vesafb.c: Likewise.
22674 * term/i386/pc/vga.c: Likewise.
22675 * term/i386/pc/vga_text.c: Likewise.
22676 * term/ieee1275/ofconsole.c: Likewise.
22677 * term/usb_keyboard.c: Likewise.
22679 2009-04-14 Bean <bean123ch@gmail.com>
22681 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
22682 properly with null character.
22684 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
22686 * configure: Remove.
22687 * config.h.in: Likewise.
22688 * stamp-h.in: Likewise.
22689 * DISTLIST: Likewise.
22690 * conf/common.mk: Likewise.
22691 * conf/i386-coreboot.mk: Likewise.
22692 * conf/i386-efi.mk: Likewise.
22693 * conf/i386-ieee1275.mk: Likewise.
22694 * conf/i386.mk: Likewise.
22695 * conf/i386-pc.mk: Likewise.
22696 * conf/powerpc-ieee1275.mk: Likewise.
22697 * conf/sparc64-ieee1275.mk: Likewise.
22698 * conf/x86_64-efi.mk: Likewise.
22700 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
22703 2009-04-14 John Stanley <jpsinthemix@verizon.net>
22704 David S. Miller <davem@davemloft.net>
22706 * util/hostdisk.c (make_device_name): Fix buffer length
22709 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
22711 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
22712 <sys/param.h> and <sys/sysctl.h>.
22713 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
22714 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
22715 opening the device and reset them afterwards.
22717 2009-04-13 Pavel Roskin <proski@gnu.org>
22719 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
22720 Reported by John Stanley <jpsinthemix@verizon.net>
22722 2009-04-13 Robert Millan <rmh@aybabtu.com>
22724 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
22725 that name for menuentries when appropriate.
22727 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
22729 * util/grub.d/10_freebsd.in: Add a missing `fi'.
22731 2009-04-13 Robert Millan <rmh@aybabtu.com>
22733 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
22734 to Linux, simply abort telling the user it's no longer supported.
22736 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
22738 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
22739 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
22740 `freebsd_loadenv' only when devices.hints exist.
22742 2009-04-13 Pavel Roskin <proski@gnu.org>
22744 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
22746 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
22748 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
22750 (grub_drive): Likewise.
22752 2009-04-13 David S. Miller <davem@davemloft.net>
22754 * kern/sparc64/ieee1275/ieee1275.c: New file.
22755 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
22756 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
22757 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
22758 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
22759 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
22760 grub_ieee1275_alloc_physmem): Declare new exported functions.
22762 * include/grub/sparc64/ieee1275/loader.h: New file.
22763 * include/grub/sparc64/ieee1275/memory.h: Likewise.
22764 * include/grub/sparc64/kernel.h: Likewise.
22765 * loader/sparc64/ieee1275/linux.c: Likewise.
22767 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
22768 (grub_fstest_SOURCES): Likewise.
22770 * util/hostdisk.c (make_device_name): Do not make any assumptions
22771 about the length of drive names.
22773 * kern/dl.c (grub_dl_load_file): Close file immediately when
22774 we are done using it.
22776 2009-04-12 David S. Miller <davem@davemloft.net>
22778 * kern/misc.c (grub_ltoa): Fix cast when handling negative
22779 values. Noticed by Pavel Roskin.
22781 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
22784 * genmk.rb: Add more flexible image type specification, also
22785 pass --strip-unneeded to objcopy.
22786 * conf/i386-pc.rmk: Use *_FORMAT.
22787 * conf/i386-pc.mk: Rebuilt.
22789 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
22790 (OFDISK_HASH_SZ): Define.
22791 (ofdisk_hash): New hash table.
22792 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
22793 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
22794 instead of device phandle which is not unique.
22796 * kern/sparc64/ieee1275/init.c: Delete, replace with...
22797 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
22798 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
22799 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
22800 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
22801 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
22802 GRUB_KERNEL_MACHINE_DATA_END): Define.
22803 (grub_kernel_image_size, grub_total_module_size): Declare.
22805 2009-04-12 Pavel Roskin <proski@gnu.org>
22807 * configure.ac: Change the logic when we check for target tools.
22808 Do it when the target is specified and it's different from the
22809 specified value of the host.
22811 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
22813 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
22814 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
22815 GNU/kFreeBSD. Check if a device is a character device. Use
22816 DIOCGMEDIASIZE to get the size.
22817 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
22818 support for GNU/kFreeBSD.
22819 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
22820 is a character device instead of a block device. Add support for
22821 FreeBSD device names.
22823 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
22824 is a character device instead of a block device.
22826 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
22827 is a character device instead of a block device.
22829 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
22831 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
22832 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
22833 FreeBSD. Check if a device is a character device. Use
22834 DIOCGMEDIASIZE to get the size.
22835 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
22836 support for FreeBSD.
22837 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
22838 is a character device instead of a block device. Add support for
22839 FreeBSD device names.
22841 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
22842 a character device instead of a block device.
22843 (grub_util_check_char_device): New function.
22845 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
22846 a character device instead of a block device.
22848 * include/grub/util/getroot.h (grub_util_check_char_device): New
22851 2009-04-11 David S. Miller <davem@davemloft.net>
22853 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
22855 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
22856 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
22857 function, if present.
22858 (__bswapdi2): Likewise.
22860 * include/grub/sparc64/ieee1275/boot.h: New file.
22861 * boot/sparc64/ieee1275/boot.S: Likewise.
22862 * boot/sparc64/ieee1275/diskboot.S: Likewise.
22864 * kern/misc.c (grub_ltoa): New function.
22865 (grub_vsprintf): Use it to format 'long' integers.
22867 2009-04-10 David S. Miller <davem@davemloft.net>
22869 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
22870 slots are of type grub_ieee1275_cell_t.
22871 (grub_nand_read): Likewise.
22872 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
22873 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
22874 macros are used to compare values in arg/ret block of the call.
22875 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
22876 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
22877 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
22878 grub_ieee1275_instance_to_path, grub_ieee1275_write,
22879 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
22880 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
22881 grub_ieee1275_close, grub_ieee1275_set_property,
22882 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
22883 grub_ieee1275_cell_t.
22884 * kern/ieee1275/openfw.c (grub_map): Likewise.
22885 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
22886 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
22888 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
22889 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
22890 (grub_devalias_iterate): Likewise.
22892 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22896 * fs/ufs.c (INODE_NBLOCKS): new definition
22897 (struct grub_ufs_dirent): added fields for non-BSD dirents
22898 (grub_ufs_get_file_block): fixed double indirect handling
22899 (grub_ufs_lookup_symlink): use more robust way to determine whether
22901 (grub_ufs_find_file): support for non-BSD dirents
22902 (grub_ufs_dir): support for non-BSD dirents
22904 2009-04-10 Bean <bean123ch@gnail.com>
22906 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
22907 attribute, otherwise the size would be wrong for i386 platform.
22909 * include/grub/pci.h (grub_pci_read_word): New inline function.
22910 (grub_pci_read_byte): Likewise.
22911 (grub_pci_write): Likewise.
22912 (grub_pci_write_word): Likewise.
22913 (grub_pci_write_byte): Likewise.
22915 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
22917 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
22918 (find_framebuf): Scan pci to locate the frame buffer address.
22920 * commands/efi/fixvideo.c: New file.
22922 * commands/efi/loadbios.c: Likewise.
22924 * commands/memrw.c: Likewise.
22926 * util/grub-dumpbios.in: Likewise.
22928 * conf/common.rmk (grub-dumpbios): New utility.
22929 (pkglib_MODULES): New module memrw.mod.
22930 (memrw_mod_SOURCE): New macro.
22931 (memrw_mod_CFLAGS): Likewise.
22932 (memrw_mod_LDFLAGS): Likewise.
22934 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
22936 (loadbios_mod_SOURCE): New macro.
22937 (loadbios_mod_CFLAGS): Likewise.
22938 (loadbios_mod_LDFLAGS): Likewise.
22939 (fixvideo_mod_SOURCE): Likewise.
22940 (fixvideo_mod_CFLAGS): Likewise.
22941 (fixvideo_mod_LDFLAGS): Likewise.
22943 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
22945 (loadbios_mod_SOURCE): New macro.
22946 (loadbios_mod_CFLAGS): Likewise.
22947 (loadbios_mod_LDFLAGS): Likewise.
22948 (fixvideo_mod_SOURCE): Likewise.
22949 (fixvideo_mod_CFLAGS): Likewise.
22950 (fixvideo_mod_LDFLAGS): Likewise.
22952 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
22954 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
22956 2009-04-07 David S. Miller <davem@davemloft.net>
22958 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
22959 support for R_SPARC_OLO10 relocations. Fix compile warning for
22960 R_SPARC_WDISP30 case.
22961 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
22963 2009-04-06 Pavel Roskin <proski@gnu.org>
22965 * include/grub/misc.h (ARRAY_SIZE): New macro.
22966 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
22968 * loader/i386/linux.c (allocate_pages): Use free_pages().
22969 (grub_linux_unload): Don't use free_pages().
22970 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
22971 wrong index. Treat all other modes as text modes.
22972 (grub_cmd_linux): Initialize vid_mode unconditionally to
22973 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
22975 * commands/help.c (print_command_help): Use cmd->prio, not
22976 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
22978 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22982 * parttool/pcpart.c: new file
22983 * commands/parttool.c: likewise
22984 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
22985 (parttool_mod_SOURCES): new variable
22986 (parttool_mod_CFLAGS): likewise
22987 (parttool_mod_LDFLAGS): likewise
22988 (pcpart_mod_SOURCES): likewise
22989 (pcpart_mod_CFLAGS): likewise
22990 (pcpart_mod_LDFLAGS): likewise
22991 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
22992 and parttool/pcpart.c
22993 * conf/i386-efi.rmk: likewise
22994 * conf/i386-ieee1275.rmk: likewise
22995 * conf/i386-pc.rmk: likewise
22996 * conf/powerpc-ieee1275.rmk: likewise
22997 * conf/sparc64-ieee1275.rmk: likewise
22998 * conf/x86_64-ieee1275.rmk: likewise
23000 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23002 Support for mtime and further expandability of dir command
23004 * include/grub/lib/datetime.h: moved to ...
23005 * include/grub/datetime.h: ... moved here and added
23006 declaration of grub_unixtime2datetime. All users updated
23007 * include/grub/fs.h: new syntax for dir and mtime functions in
23009 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
23010 and GRUB_FSHELP_FLAGS_MASK
23011 * commands/ls.c (grub_ls_list_files): Write mtime in long format
23012 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
23013 (grub_ext2_mtime): new function
23014 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
23015 (grub_hfsplus_mtime): new function
23016 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
23017 (GRUB_UFS_ATTR_FILE): likewise
23018 (GRUB_UFS_ATTR_LNK): likewise
23019 (struct grub_ufs_sblock): new fields mtime
23020 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
23022 (grub_ufs_dir): mtime support
23023 (grub_ufs_mtime): new function
23024 * fs/affs.c (grub_affs_dir): use new dir syntax
23025 * fs/afs.c (grub_afs_dir): likewise
23026 * fs/cpio.c (grub_cpio_dir): likewise
23027 * fs/fat.c (grub_fat_find_dir): likewise
23028 * fs/hfs.c (grub_hfs_dir): likewise
23029 * fs/iso9660.c (grub_iso9660_dir): likewise
23030 * fs/jfs.c (grub_jfs_dir): likewise
23031 * fs/minix.c (grub_minix_dir): likewise
23032 * fs/ntfs.c (grub_ntfs_dir): likewise
23033 * fs/reiserfs.c (grub_reiserfs_dir): likewise
23034 * fs/sfs.c (grub_sfs_dir): likewise
23035 * fs/xfs.c (grub_xfs_dir): likewise
23036 * util/hostfs.c (grub_hostfs_dir): likewise
23037 * lib/datetime.c: moved to ...
23038 * normal/datetime.c: ... moved here
23039 (grub_unixtime2datetime): new function
23040 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
23041 * normal/completion.c (iterate_dir): use new dir syntax
23042 * normal/misc.c (grub_normal_print_device_info): tell the
23043 last modification time of a volume
23044 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
23045 * conf/common.rmk: added lib/datetime.c to ls.mod
23046 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
23047 (normal_mod_SOURCES): likewise
23048 (datetime_mod_SOURCES): Removed lib/datetime.c
23049 * conf/i386-efi.rmk: likewise
23050 * conf/i386-ieee1275.rmk: likewise
23051 * conf/i386-pc.rmk: likewise
23052 * conf/powerpc-ieee1275.rmk: likewise
23053 * conf/sparc64-ieee1275.rmk: likewise
23054 * conf/x86_64-efi.rmk: likewise
23056 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23058 Trim trailing spaces in FAT label and support mtools-like labels
23060 * fs/fat.c (grub_fat_iterate_dir): New function based
23061 on grub_fat_find_dir
23062 (grub_fat_find_dir): use grub_fat_iterate_dir
23063 (grub_fat_label): likewise
23065 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
23067 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
23069 remove extraneous kernel_elf_HEADERS
23071 2009-04-04 Bean <bean123ch@gnail.com>
23073 * include/grub/util/misc.h: Add dummy function fsync for mingw.
23075 * util/misc.c: Likewise.
23077 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
23079 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
23080 instead of grub_printf.
23082 2009-04-03 Robert Millan <rmh@aybabtu.com>
23084 * loader/i386/linux.c (grub_linux_setup_video): Fill
23085 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
23086 values from `mode info' structure instead of hardcoded
23089 2009-04-01 Pavel Roskin <proski@gnu.org>
23091 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
23093 * genmk.rb: Likewise.
23094 * configure.ac: Likewise.
23096 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
23098 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
23099 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
23101 2009-04-01 David S. Miller <davem@davemloft.net>
23103 * normal/sparc64/setjmp.S: Fix setjmp implementation.
23104 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
23105 (grub_setjmp): Mark with 'returns_twice' attribute.
23106 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
23107 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
23108 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
23110 2009-04-01 Robert Millan <rmh@aybabtu.com>
23112 Reapply fix from 2008-07-28 which was accidentally reverted; also
23113 perform the same fix to a similar check in same function.
23115 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
23116 with the same number are found, just use issue a warning with
23117 grub_dprintf(), as this error has been reported to be non-fatal.
23119 2009-03-31 Pavel Roskin <proski@gnu.org>
23121 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
23122 for cross-compilation.
23124 2009-03-30 Robert Millan <rmh@aybabtu.com>
23126 Fix i386-ieee1275 build.
23128 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
23129 Remove declaration.
23131 2009-03-30 Pavel Roskin <proski@gnu.org>
23133 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
23134 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
23135 zero-terminated, rely only on the strlen value. Fix comparison
23136 of strings differing in length.
23138 2009-03-30 Robert Millan <rmh@aybabtu.com>
23140 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
23141 checking for abi version. Improve error messages on BIOS to notify
23142 user about `linux16' command.
23144 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
23148 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
23149 in case of collision
23150 * disk/scsi.c (grub_scsi_open): free scsi in case of error
23152 2009-03-29 Robert Millan <rmh@aybabtu.com>
23154 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
23155 set `vid_mode' accordingly.
23156 (grub_linux_boot): Process `vid_mode' and set video mode.
23158 2009-03-29 Robert Millan <rmh@aybabtu.com>
23160 * util/grub.d/10_linux.in (linux_entry): New function.
23161 Factorize generation of Linux boot entries.
23163 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
23165 Make the format of Environment Block plain text. The boot loader
23166 part is not tested well yet.
23168 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
23170 (envblk): Likewise.
23171 (usage): Remove "info" and "clear". Add "unset". Update the
23172 description of "set", as this does not delete variables any
23174 (create_envblk_file): Complete rewrite.
23175 (open_envblk_file): Likewise.
23176 (cmd_info): Removed.
23177 (cmd_list): Likewise.
23178 (cmd_set): Likewise.
23179 (cmd_clear): Likewise.
23180 (list_variables): New function.
23181 (write_envblk): Likewise.
23182 (set_variables): Likewise.
23183 (unset_variables): Likewise.
23184 (main): Complete rewrite.
23186 * commands/loadenv.c (buffer): Removed.
23187 (envblk): Likewise.
23188 (open_envblk_file): New function.
23189 (read_envblk_file): Complete rewrite.
23190 (grub_cmd_load_env): Likewise.
23191 (grub_cmd_list_env): Likewise.
23192 (struct blocklist): New struct.
23193 (free_blocklists): New function.
23194 (check_blocklists): Likewise.
23195 (write_blocklists): Likewise.
23196 (grub_cmd_save_env): Complete rewrite.
23198 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
23199 a plain text signature.
23200 (GRUB_ENVBLK_MAXLEN): Removed.
23201 (struct grub_envblk): Complete rewrite.
23202 (grub_envblk_find): Removed.
23203 (grub_envblk_insert): Likewise.
23204 (grub_envblk_open): New prototype.
23205 (grub_envblk_set): Likewise.
23206 (grub_envblk_delete): Put const to VALUE.
23207 (grub_envblk_iterate): Put const to NAME and VALUE.
23208 (grub_envblk_close): New prototype.
23209 (grub_envblk_buffer): New inline function.
23210 (grub_envblk_size): Likewise.
23212 * lib/envblk.c: Include grub/mm.h.
23213 (grub_env_find): Removed.
23214 (grub_envblk_open): New function.
23215 (grub_envblk_close): Likewise.
23216 (escaped_value_len): Likewise.
23217 (find_next_line): Likewise.
23218 (grub_envblk_insert): Removed.
23219 (grub_envblk_set): New function.
23220 (grub_envblk_delete): Complete rewrite.
23221 (grub_envblk_iterate): Likewise.
23223 2009-03-28 Robert Millan <rmh@aybabtu.com>
23225 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
23226 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
23227 variables. Use 16-bit loader.
23228 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
23230 * kern/i386/loader.S (grub_linux_boot): Rename to ...
23231 (grub_linux16_boot): ... this. Update all users.
23232 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
23233 (grub_linux_boot): ... this. Update all users.
23235 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
23236 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
23237 commands to `linux16' and `initrd16'.
23238 (GRUB_MOD_FINI(linux)): Rename to ...
23239 (GRUB_MOD_FINI(linux16)): ... this.
23241 2009-03-24 Pavel Roskin <proski@gnu.org>
23243 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
23244 not just for compilation.
23246 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
23248 Move multiboot helper out of kernel
23250 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
23251 `loader/i386/multiboot_helper.S'.
23252 * conf/i386-coreboot.rmk: Likewise
23253 * conf/i386-ieee1275.rmk: Likewise
23255 * kern/i386/loader.S: Move multiboot helpers from here...
23256 * loader/i386/multiboot_helper.S: ...moved here
23257 * include/grub/i386/loader.h: Move declarations of multiboot
23258 helpers from here...
23259 * include/grub/i386/multiboot.h: ...moved here
23260 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
23262 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
23264 * kern/env.c (grub_env_context_open): Added an argument to specify
23265 whether a new context inherits exported variables from current
23266 one. This is useful when making a sandbox to interpret a config
23268 All callers updated.
23270 * include/grub/env.h (grub_env_context_open): Updated the prototype.
23272 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
23274 * kern/env.c (grub_env_context_close): Fix memory leaks.
23276 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
23278 * normal/main.c (grub_normal_execute): Added an argument
23279 BATCH to specify if an interactive interface should be provided
23280 after reading a config file.
23281 All callers updated.
23282 (read_command_list): Prevent being executed twice.
23283 (read_fs_list): Likewise.
23285 * include/grub/normal.h (grub_normal_execute): Updated the
23288 2009-03-22 Pavel Roskin <proski@gno.org>
23290 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
23292 * kern/i386/pc/startup.S: Likewise.
23293 * kern/i386/efi/startup.S: Likewise.
23294 * kern/i386/ieee1275/startup.S: Likewise.
23295 * kern/i386/coreboot/startup.S: Likewise.
23296 * kern/x86_64/efi/startup.S: Likewise.
23298 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
23299 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
23300 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
23302 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
23304 Bugfixes in multiboot for bugs uncovered by solaris kernel.
23306 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
23308 Use vaddr of correct segment for entry_point.
23310 2009-03-21 Bean <bean123ch@gmail.com>
23312 * commands/blocklist.c: Add include file <grub/command.h>, remove
23313 <grub/normal.h> and <grub/arg.h>.
23314 (grub_cmd_blocklist): Use the new command interface.
23315 (GRUB_MOD_INIT): Likewise.
23316 (GRUB_MOD_FINI): Likewise.
23317 * commands/boot.c: Likewise.
23318 * commands/cat.c: Likewise.
23319 * commands/cmp.c: Likewise.
23320 * commands/configfile.c: Likewise.
23321 * commands/crc.c: Likewise.
23322 * commands/echo.c: Likewise.
23323 * commands/halt.c: Likewise.
23324 * commands/handler.c: Likewise.
23325 * commands/hdparm.c: Likewise.
23326 * commands/help.c: Likewise.
23327 * commands/hexdump.c: Likewise.
23328 * commands/loadenv.c: Likewise.
23329 * commands/ls.c: Likewise.
23330 * commands/lsmmap.c: Likewise.
23331 * commands/lspci.c: Likewise.
23332 * commands/loadenv.c: Likewise.
23333 * commands/read.c: Likewise.
23334 * commands/reboot.c: Likewise.
23335 * commands/search.c: Likewise.
23336 * commands/sleep.c: Likewise.
23337 * commands/test.c: Likewise.
23338 * commands/usbtest.c: Likewise.
23339 * commands/videotest.c: Likewise.
23340 * commands/i386/cpuid.c: Likewise.
23341 * commands/i386/pc/halt.c: Likewise.
23342 * commands/i386/pc/play.c: Likewise.
23343 * commands/i386/pc/pxecmd.c: Likewise.
23344 * commands/i386/pc/vbeinfo.c: Likewise.
23345 * commands/i386/pc/vbetest.c: Likewise.
23346 * commands/ieee1275/suspend.c: Likewise.
23347 * disk/loopback.c: Likewise.
23348 * font/font_cmd.c: Likewise.
23349 * hello/hello.c: Likewise.
23350 * loader/efi/appleloader.c: Likewise.
23351 * loader/efi/chainloader.c: Likewise.
23352 * loader/i386/bsd.c: Likewise.
23353 * loader/i386/efi/linux.c: Likewise.
23354 * loader/i386/ieee1275/linux.c: Likewise.
23355 * loader/i386/linux.c: Likewise.
23356 * loader/i386/pc/chainloader.c: Likewise.
23357 * loader/i386/pc/linux.c: Likewise.
23358 * loader/powerpc/ieee1275/linux.c: Likewise.
23359 * loader/multiboot_loader.c: Likewise.
23360 * term/gfxterm.c: Likewise.
23361 * term/i386/pc/serial.c: Likewise.
23362 * term/terminfo.c: Likewise.
23364 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
23365 * term/i386/pc/vga.c: Likewise.
23366 * video/readers/jpeg.c: Likewise.
23367 * video/readers/png.c: Likewise.
23368 * video/readers/tga.c: Likewise.
23370 * util/grub-fstest (cmd_loopback): Removed.
23371 (cmd_blocklist): Likewise.
23372 (cmd_ls): Likewise.
23373 (grub_register_command): Likewise.
23374 (grub_unregister_command): Likewise.
23375 (execute_command): Use grub_command_find to locate command and execute
23378 * include/grub/efi/chainloader.h: Removed.
23379 * loader/efi/chainloader_normal.c: Likewise.
23380 * loader/i386/bsd_normal.c: Likewise.
23381 * loader/i386/pc/chainloader_normal.c: Likewise.
23382 * loader/i386/pc/multiboot_normal.c: Likewise.
23383 * loader/linux_normal.c: Likewise.
23384 * loader/multiboot_loader_normal.c: Likewise.
23385 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
23387 * gencmdlist.sh: Scan new registration command grub_register_extcmd
23388 and grub_register_command_p1.
23390 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
23391 kern/command.c, lib/arg.c and commands/extcmd.c.
23392 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
23393 (minicmd_mod_SOURCES): New variable.
23394 (minicmd_mod_CFLAGS): Likewise.
23395 (minicmd_mod_LDFLAGS): Likewise.
23396 (extcmd_mod_SOURCES): Likewise.
23397 (extcmd_mod_CFLAGS): Likewise.
23398 (extcmd_mod_LDFLAGS): Likewise.
23399 (boot_mod_SOURCES): Removed.
23400 (boot_mod_CFLAGS): Likewise.
23401 (boot_mod_LDFLAGS): Likewise.
23403 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
23405 (kernel_img_HEADERS): Add command.h.
23406 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
23407 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
23409 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
23410 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
23411 remove the corresponding normal mode command.
23412 (normal_mod_SOURCES): Remove normal/arg.c.
23413 * conf/i386-coreboot.rmk: Likewise.
23414 * conf/i386-efi.rmk: Likewise.
23415 * conf/i386-ieee1275.rmk: Likewise.
23416 * conf/powerpc-ieee1275.rmk: Likewise.
23417 * conf/x86_64-efi.rmk: Likewise.
23419 * include/grub/arg.h: Move from here ...
23420 * include/grub/lib/arg.h: ... to here.
23422 * normal/arg.c: Move from here ...
23423 * lib/arg.c: ... to here.
23425 * commands/extcmd.c: New file.
23426 * commands/minicmd.c: Likewise.
23427 * include/grub/command.h: Likewise.
23428 * include/grub/extcmd.h: Likewise.
23429 * kern/command.c: Likewise.
23430 * kern/corecmd.c: Likewise.
23432 * kern/list.c (grub_list_iterate): Return int instead of void.
23433 (grub_list_insert): New function.
23434 (grub_prio_list_insert): Likewise.
23436 * kern/rescue.c (grub_rescue_command): Removed.
23437 (grub_rescue_command_list): Likewise.
23438 (grub_rescue_register_command): Likewise.
23439 (grub_rescue_unregister_command): Likewise.
23440 (grub_rescue_cmd_boot): Move to minicmd.c
23441 (grub_rescue_cmd_help): Likewise.
23442 (grub_rescue_cmd_info): Likewise.
23443 (grub_rescue_cmd_boot): Likewise.
23444 (grub_rescue_cmd_testload): Likewise.
23445 (grub_rescue_cmd_dump): Likewise.
23446 (grub_rescue_cmd_rmmod): Likewise.
23447 (grub_rescue_cmd_lsmod): Likewise.
23448 (grub_rescue_cmd_exit): Likewise.
23449 (grub_rescue_print_devices): Moved to corecmd.c.
23450 (grub_rescue_print_files): Likewise.
23451 (grub_rescue_cmd_ls): Likewise.
23452 (grub_rescue_cmd_insmod): Likewise.
23453 (grub_rescue_cmd_set): Likewise.
23454 (grub_rescue_cmd_unset): Likewise.
23455 (attempt_normal_mode): Use grub_command_find to get normal module.
23456 (grub_enter_rescue_mode): Use grub_register_core_commands to register
23457 commands, remove grub_rescue_register_command calls.
23459 * normal/command.c (grub_register_command): Removed.
23460 (grub_unregister_command): Likewise.
23461 (grub_command_find): Likewise.
23462 (grub_iterate_commands): Likewise.
23463 (rescue_command): Likewise.
23464 (export_command): Moved to corecmd.c.
23465 (set_command): Removed.
23466 (unset_command): Likewise.
23467 (insmod_command): Likewise.
23468 (rmmod_command): Likewise.
23469 (lsmod_command): Likewise.
23470 (grub_command_init): Likewise.
23472 * normal/completion.c (iterate_command): Use cmd->prio to check for
23474 (complete_arguments): Use grub_extcmd_t structure to find options.
23475 (grub_normal_do_completion): Change function grub_iterate_commands to
23476 grub_command_iterate.
23478 * normal/execute.c (grub_script_execute_cmd): No need to parse
23481 * normal/main.c (grub_dyncmd_dispatcher): New function.
23482 (read_command_list): Register unload commands as dyncmd.
23483 (grub_cmd_normal): Use new command interface, register rescue,
23484 unregister normal at entry, register normal, unregister rescue at exit.
23486 * include/grub/list.h (grub_list_test_t): New type.
23487 (grub_list_iterate): Return int instead of void.
23488 (grub_list_insert): New function.
23489 (GRUB_AS_NAMED_LIST_P): New macro.
23490 (GRUB_AS_PRIO_LIST): Likewise.
23491 (GRUB_AS_PRIO_LIST_P): Likewise.
23492 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
23493 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
23494 (grub_prio_list): New structure.
23495 (grub_prio_list_insert): New function.
23496 (grub_prio_list_remove): New inline function.
23498 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
23499 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
23500 (GRUB_COMMAND_FLAG_MENU): Likewise.
23501 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23502 (GRUB_COMMAND_FLAG_TITLE): Likewise.
23503 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23504 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
23505 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
23506 (grub_command): Likewise.
23507 (grub_register_command): Likewise.
23508 (grub_command_find): Likewise.
23509 (grub_iterate_commands): Likewise.
23510 (grub_command_init): Likewise.
23511 (grub_arg_parse): Likewise.
23512 (grub_arg_show_help): Likewise.
23514 * include/grub/rescue.h (grub_rescue_register_command): Removed.
23515 (grub_rescue_unregister_command): Likewise.
23517 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
23518 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
23519 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
23521 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
23522 grub_rescue_cmd_initrd.
23523 * include/grub/i386/loader.h: Likewise.
23524 * include/grub/x86_64/loader.h: Likewise.
23526 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
23528 2009-03-21 Bean <bean123ch@gmail.com>
23530 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
23531 instead of stat in mingw environment.
23533 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
23535 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
23537 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
23540 2009-03-21 Bean <bean123ch@gmail.com>
23542 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
23543 out of range error.
23545 2009-03-18 Michel Dänzer <michel@daenzer.net>
23547 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
23548 checking inode flags for EXT4_EXTENTS_FLAG.
23550 2009-03-18 Robert Millan <rmh@aybabtu.com>
23552 * loader/i386/linux.c: Include `<grub/video.h>' and
23553 `<grub/i386/pc/vbe.h>'..
23554 (grub_linux_setup_video): New function. Loosely based on the EFI one.
23555 (grub_linux32_boot): Attempt to configure video settings with
23556 grub_linux_setup_video().
23557 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
23558 to avoid grub_console_fini() which would step out of graphical mode
23561 2009-03-14 Robert Millan <rmh@aybabtu.com>
23563 Fix build on powerpc.
23564 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
23566 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
23568 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
23569 background image command.
23571 2009-03-12 Colin D Bennett <colin@gibibit.com>
23573 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
23574 (grub_gfxterm_putchar): Extract pairs of identical calls to
23575 draw_cursor out of conditional blocks.
23577 2009-03-11 Pavel Roskin <proski@gnu.org>
23579 * fs/hfs.c (grub_hfs_strncasecmp): New function.
23580 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
23582 2009-03-11 Robert Millan <rmh@aybabtu.com>
23584 * loader/i386/multiboot_elfxx.c
23585 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
23587 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
23589 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
23592 2009-03-11 Robert Millan <rmh@aybabtu.com>
23594 * loader/i386/multiboot.c (code_size): New variable.
23595 (grub_multiboot): Define offsets by adding to `code_size' rather
23596 than subtracting from `grub_multiboot_payload_size'. Provide
23597 4-byte alignment to MBI and others by increasing
23598 `boot_loader_name_length' appropriately.
23600 * loader/i386/multiboot_elfxx.c
23601 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
23603 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
23605 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
23608 2009-03-08 Robert Millan <rmh@aybabtu.com>
23610 Make loader/i386/linux.c usable on i386-pc again.
23612 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
23614 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
23617 2009-03-07 Bean <bean123ch@gmail.com>
23619 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
23622 2009-03-06 Robert Millan <rmh@aybabtu.com>
23624 Fix display issue on terminals with screen size other than 80x25
23625 (e.g. gfxterm with resolution higher than 640x480).
23627 * normal/main.c (grub_normal_init_page): Display title text in a
23628 position relative to the center of the terminal instead of relying
23629 on a hardcoded offset.
23631 2009-03-04 Robert Millan <rmh@aybabtu.com>
23633 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
23636 * Makefile.in (host_kernel): New variable.
23637 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
23638 scripts instead of just the windows one.
23639 * configure.ac: Initialize and AC_SUBST `host_kernel'.
23641 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
23643 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
23645 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23646 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23647 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
23648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23649 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23650 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23652 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
23654 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
23655 or if there's no space for the disk label and print the partition number on a
23658 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
23660 * util/misc.c: Include <time.h>.
23661 (grub_millisleep): New function.
23663 2009-03-04 Bean <bean123ch@gmail.com>
23665 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
23666 another option -mno-red-zone.
23668 * commands/handler.c: Change module description.
23670 * kern/handler.c: Add missing space at the end of description line.
23672 * kern/list.c: Likewise.
23674 2009-03-03 Robert Millan <rmh@aybabtu.com>
23676 Move more components to the relocation area, and fix mbi pointer
23677 handling to use the destination rather than the origin (thanks to
23678 Vladimir Serbinenko for spotting).
23680 * loader/i386/multiboot.c (mbi_dest): New variable.
23681 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
23682 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
23685 2009-03-01 Bean <bean123ch@gmail.com>
23687 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
23688 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
23689 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
23690 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
23692 * loader/i386/efi/linux.c (acpi_guid): New variable.
23693 (acpi_guid): Likewise.
23694 (EBDA_SEG_ADDR): New constant.
23695 (LOW_MEM_ADDR): Likewise.
23696 (FAKE_EBDA_SEG): Likewise.
23697 (fake_bios_data): New function.
23698 (grub_linux_boot): Call fake_bios_data.
23700 2009-03-01 Bean <bean123ch@gmail.com>
23702 * commands/terminal.c: Removed.
23704 * commands/handler.c: New file.
23706 * include/grub/list.h: Likewise.
23708 * include/grub/handler.h: Likewise.
23710 * kern/list.c: Likewise.
23712 * kern/handler.c: Likewise.
23714 * kern/term.h: Include header file <grub/handler.h>.
23715 (grub_term_input): Move next field to the beginning.
23716 (grub_term_output): Likewise.
23717 (grub_term_input_class): New variable.
23718 (grub_term_output_class): Likewise.
23719 (grub_term_register_input): Changed to inline function.
23720 (grub_term_register_output): Likewise.
23721 (grub_term_unregister_input): Likewise.
23722 (grub_term_unregister_output): Likewise.
23723 (grub_term_set_current_input): Likewise.
23724 (grub_term_set_current_output): Likewise.
23725 (grub_term_get_current_input): Likewise.
23726 (grub_term_get_current_output): Likewise.
23727 (grub_term_iterate_input): Removed.
23728 (grub_term_iterate_output): Likewise.
23730 * kern/term.c (grub_term_list_input): Removed.
23731 (grub_term_list_output): Likewise.
23732 (grub_term_input_class): New variable.
23733 (grub_term_output_class): Likewise.
23734 (grub_cur_term_input): Change variable as macro.
23735 (grub_cur_term_output): Likewise.
23736 (grub_term_register_input): Removed.
23737 (grub_term_register_output): Likewise.
23738 (grub_term_unregister_input): Likewise.
23739 (grub_term_unregister_output): Likewise.
23740 (grub_term_set_current_input): Likewise.
23741 (grub_term_set_current_output): Likewise.
23742 (grub_term_iterate_input): Likewise.
23743 (grub_term_iterate_output): Likewise.
23744 (grub_term_get_current_input): Likewise.
23745 (grub_term_get_current_output): Likewise.
23747 * util/grub-editenv.c: Include header file <grub/handler.h>.
23748 (grub_term_get_current_input): Removed.
23749 (grub_term_get_current_output): Likewise.
23750 (grub_term_input_class): New variable.
23751 (grub_term_output_class): Likewise.
23753 * util/grub-fstest.c (grub_term_get_current_input): Removed.
23754 (grub_term_get_current_output): Likewise.
23755 (grub_term_input_class): New variable.
23756 (grub_term_output_class): Likewise.
23758 * util/grub-probe.c (grub_term_get_current_input): Removed.
23759 (grub_term_get_current_output): Likewise.
23760 (grub_term_input_class): New variable.
23761 (grub_term_output_class): Likewise.
23763 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
23764 (grub_term_get_current_output): Likewise.
23765 (grub_term_input_class): New variable.
23766 (grub_term_output_class): Likewise.
23768 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
23769 (terminal_mod_SOURCES): Likewise.
23770 (terminal_mod_CFLAGS): Likewise.
23771 (terminal_mod_LDFLAGS): Likewise.
23773 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
23775 (kernel_img_SOURCES): Add list.c and handler.c.
23776 (kernel_img_HEADERS): Add list.h and handler.h.
23778 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
23780 (kernel_mod_SOURCES): Add list.c and handler.c.
23781 (kernel_mod_HEADERS): Add list.h and handler.h.
23783 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
23785 (kernel_elf_SOURCES): Add list.c and handler.c.
23786 (kernel_elf_HEADERS): Add list.h and handler.h.
23788 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
23790 (kernel_elf_SOURCES): Add list.c and handler.c.
23791 (kernel_elf_HEADERS): Add list.h and handler.h.
23793 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
23795 (kernel_mod_SOURCES): Add list.c and handler.c.
23796 (kernel_mod_HEADERS): Add list.h and handler.h.
23798 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
23800 (kernel_elf_SOURCES): Add list.c and handler.c.
23801 (kernel_elf_HEADERS): Add list.h and handler.h.
23803 2009-02-27 Robert Millan <rmh@aybabtu.com>
23805 Factorize elf32 / elf64 code in Multiboot loader. This will
23806 prevent it from getting out of sync again.
23808 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
23809 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
23810 grub_multiboot_load_elf64): Move from here ...
23811 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
23812 grub_multiboot_load_elf): ... to here (new file).
23814 2009-02-27 Robert Millan <rmh@aybabtu.com>
23816 * util/grub.d/10_linux.in: Rename "single-user mode" to
23819 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
23821 Don't leak in SCSI code.
23822 * disk/scsi.c (grub_scsi_close): free `scsi'.
23824 2009-02-27 Robert Millan <rmh@aybabtu.com>
23826 * loader/i386/pc/multiboot.c: Move from here ...
23827 * loader/i386/multiboot.c: ... to here. Update all users.
23829 2009-02-27 Robert Millan <rmh@aybabtu.com>
23831 Patch from Alexandre Bique <bique.alexandre@gmail.com>
23832 * util/i386/pc/grub-setup.c (setup): Fix directory path.
23834 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
23836 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
23839 2009-02-27 Robert Millan <rmh@aybabtu.com>
23841 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
23842 `0x' qualifier as 0 when base is specified as parameter).
23844 2009-02-24 Bean <bean123ch@gmail.com>
23846 * configure.ac: Check for -mcmodel=large in x86_64 target.
23848 * include/grub/efi/api.h (efi_call_10): New macro.
23849 (efi_wrap_10): New function.
23851 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
23852 (GRUB_PE32_REL_BASED_HIGH): Likewise.
23853 (GRUB_PE32_REL_BASED_LOW): Likewise.
23854 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
23855 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
23856 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
23857 (GRUB_PE32_REL_BASED_SECTION): Likewise.
23858 (GRUB_PE32_REL_BASED_REL): Likewise.
23859 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
23860 (GRUB_PE32_REL_BASED_DIR64): Likewise.
23861 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
23863 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
23866 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
23867 (efi_wrap_10): New function.
23869 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
23871 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
23872 MB/MBP model (NV chipset).
23873 (devdata_devs): Add devpath_5 to the list.
23875 * load/i386/efi/linux.c (video_base): Remove variable.
23876 (RGB_MASK): New macro.
23877 (RGB_MAGIC): Likewise.
23878 (LINE_MIN): Likewise.
23879 (LINE_MAX): Likewise.
23880 (FBTEST_STEP): Likewise.
23881 (FBTEST_COUNT): Likewise.
23882 (fb_list): New variable.
23883 (grub_find_video_card): Remove function.
23884 (find_framebuf): New function.
23885 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
23888 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
23889 problem for x86_64.
23891 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
23893 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
23895 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
23898 2009-02-22 Robert Millan <rmh@aybabtu.com>
23900 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
23901 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
23902 in our relocation, instead of using it directly from heap. Also
23903 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
23905 2009-02-21 Robert Millan <rmh@aybabtu.com>
23907 Implement USB keyboard support (based on patch by Marco Gerards)
23909 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
23910 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
23911 (usb_keyboard_mod_LDFLAGS): New variables.
23913 * term/usb_keyboard.c: New file.
23915 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23917 Corrected wrong declaration
23919 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
23921 2009-02-14 Christian Franke <franke@computer.org>
23923 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
23924 (grub_lspci_iter): Print class code and programming interface byte.
23926 2009-02-14 Christian Franke <franke@computer.org>
23928 * gendistlist.sh: Ignore `.svn' directories.
23930 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
23932 * fs/fat.c: Add 2009 to Copyright line.
23934 2009-02-14 Christian Franke <franke@computer.org>
23936 * commands/hdparm.c: New file. Provides `hdparm' command
23937 which sends ATA commands via grub_disk_ata_pass_through ().
23939 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
23941 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
23942 and <grub/cpu/io.h> to include/grub/ata.h.
23943 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
23944 (GRUB_CDROM_SECTOR_SIZE): Remove.
23945 (GRUB_ATA_*): Move to include/grub/ata.h.
23946 (GRUB_ATAPI_*): Likewise.
23947 (enum grub_ata_commands): Likewise.
23948 (enum grub_ata_timeout_milliseconds): Likewise.
23949 (struct grub_ata_device): Likewise.
23950 (grub_ata_regset): Likewise.
23951 (grub_ata_regget): Likewise.
23952 (grub_ata_regset2): Likewise.
23953 (grub_ata_regget2): Likewise.
23954 (grub_ata_check_ready): Likewise.
23955 (grub_ata_wait_not_busy): Remove static, exported in
23956 include/grub/ata.h.
23957 (grub_ata_wait_drq): Likewise.
23958 (grub_ata_pio_read): Likewise.
23960 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
23961 function for hdparm.mod.
23963 * include/grub/ata.h: New file, contains declarations from
23965 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
23967 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
23968 (grub_disk_ata_pass_through): New exported variable.
23970 * kern/disk.c (grub_disk_ata_pass_through): New variable.
23972 2009-02-13 Colin D Bennett <colin@gibibit.com>
23974 Support multiple fallback entries, and provide an API to support
23975 executing default+fallback menu entries. Renamed the `terminal' menu
23978 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
23979 variable declaration.
23980 (grub_menu_execute_callback): New structure declaration.
23981 (grub_menu_execute_callback_t): New typedef.
23982 (grub_menu_execute_with_fallback): New function declaration.
23983 (grub_menu_get_entry): Likewise.
23984 (grub_menu_get_timeout): Likewise.
23985 (grub_menu_set_timeout): Likewise.
23987 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
23989 * normal/menu.c (grub_wait_after_message): Moved to
23990 `normal/menu_text.c'.
23991 (draw_border): Likewise.
23992 (print_message): Likewise.
23993 (print_entry): Likewise.
23994 (print_entries): Likewise.
23995 (grub_menu_init_page): Likewise.
23996 (get_entry_number): Likewise.
23997 (print_timeout): Likewise.
23998 (run_menu): Likewise.
23999 (grub_menu_execute_entry): Likewise.
24000 (show_text_menu): Likewise.
24001 (get_and_remove_first_entry_number): New function.
24002 (grub_menu_execute_with_fallback): Likewise.
24003 (get_entry): Renamed to ...
24004 (grub_menu_get_entry): .. this and made it global.
24005 (get_timeout): Renamed to ...
24006 (grub_menu_get_timeout): ... this and made it global.
24007 (set_timeout): Renamed to ...
24008 (grub_menu_set_timeout): ... this and made it global.
24009 (grub_normal_terminal_menu_viewer): Renamed to ...
24010 (grub_normal_text_menu_viewer): ... this.
24012 * normal/menu_text.c: New file. Extracted text-menu-specific code
24013 from normal/menu.c.
24015 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
24016 (normal_mod_SOURCES): Likewise.
24018 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24019 (normal_mod_SOURCES): Likewise.
24021 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24022 (normal_mod_SOURCES): Likewise.
24024 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
24025 (normal_mod_SOURCES): Likewise.
24027 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24028 (normal_mod_SOURCES): Likewise.
24030 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24031 (normal_mod_SOURCES): Likewise.
24033 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24034 (normal_mod_SOURCES): Likewise.
24036 2009-02-11 Robert Millan <rmh@aybabtu.com>
24038 * util/grub.d/00_header.in: Update old reference to `font' command.
24040 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
24042 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
24044 Based on patch from Javier Martín.
24046 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
24048 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
24049 to avoid false positives with FAT.
24050 (grub_fstest_SOURCES): Likewise.
24051 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24052 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24053 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24054 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24055 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24056 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24058 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
24060 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
24061 bpb.version_specific.fat12_or_fat16.fstype and
24062 bpb.version_specific.fat32.fstype.
24064 2009-02-08 Robert Millan <rmh@aybabtu.com>
24066 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
24068 2009-02-08 Robert Millan <rmh@aybabtu.com>
24070 * Makefile.in (host_os, host_cpu): New variables.
24071 (target_os): Remove. Update all users.
24073 2009-02-08 Marco Gerards <marco@gnu.org>
24075 * Makefile.in (enable_grub_emu_usb): New variable.
24076 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
24077 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
24078 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
24079 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
24080 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
24081 `usbtest.mod' and `usbms.mod'.
24082 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
24083 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
24084 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
24085 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
24086 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
24089 * disk/usbms.c: New file.
24091 * include/grub/usb.h: Likewise.
24093 * include/grub/usbtrans.h: Likewise.
24095 * include/grub/usbdesc.h: Likewise.
24097 * bus/usb/usbtrans.c: Likewise.
24099 * bus/usb/ohci.c: Likewise.
24101 * bus/usb/uhci.c: Likewise.
24103 * bus/usb/usbhub.c: Likewise.
24105 * bus/usb/usb.c: Likewise.
24107 * commands/usbtest.c: Likewise.
24109 * util/usb.c: Likewise.
24111 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
24113 * configure.ac: Test for libusb presence.
24115 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
24117 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
24119 * kern/mm.c: Add more comments.
24121 2009-02-08 Robert Millan <rmh@aybabtu.com>
24123 Patch from Javier Martín.
24124 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
24125 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
24127 2009-02-08 Robert Millan <rmh@aybabtu.com>
24129 * fs/cpio.c: Split tar functionality to ...
24130 * fs/tar.c: ... here (new file). Update all users.
24132 2009-02-07 Robert Millan <rmh@aybabtu.com>
24134 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
24135 backward-incompatible features.
24137 Based on patch from Javier Martín, with some adjustments.
24139 2009-02-07 Michael Scherer <misc@mandriva.org>
24141 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
24143 2009-02-07 Robert Millan <rmh@aybabtu.com>
24145 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
24146 position of `disk/lvm.c' to ensure grub_init_all() always picks it
24147 after the RAID stuff.
24149 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
24151 Fixes problem when running vbetest command as reported by
24152 Vladimir Serbinenko <phcoder@gmail.com>.
24154 * (grub_vbe_set_video_mode): Fixed problem with text modes.
24156 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
24158 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
24159 /dev/md/NpN style mdraid devices.
24161 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
24163 * util/unifont2pff.rb: Remove.
24165 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
24167 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
24170 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
24172 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
24173 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24174 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24175 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24176 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24177 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24178 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24180 2009-02-02 Christian Franke <franke@computer.org>
24182 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
24184 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
24186 * INSTALL: Note that we now require at least autoconf 2.59 and
24187 that LZO is optional.
24189 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
24191 Base on patch on bug #24154 created by Tomas Tintera
24192 <trosos@seznam.cz>.
24194 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
24196 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
24198 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
24199 <bero@arklinux.org>.
24201 * normal/parser.y (script_init): Add missing semicolon.
24203 2009-01-31 Colin D Bennett <colin@gibibit.com>
24205 * normal/main.c: Add include to grub/menu_viewer.h.
24206 (free_menu_entry_classes): Added.
24207 (grub_normal_menu_addentry): Added class property handling.
24208 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
24209 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
24211 * normal/menu_viewer.c: New file.
24213 * normal/menu.c (run_menu_entry): Renamed to ...
24214 (grub_menu_execute_entry): ... this and made it as global.
24215 (grub_menu_run): Renamed to ...
24216 (show_text_menu): ... this and made it local.
24217 (show_text_menu): Adapt to new function names.
24218 (grub_normal_terminal_menu_viewer): New global variable.
24220 * include/grub/menu.h: New file.
24222 * include/grub/menu_viewer.h: New file.
24224 * include/grub/normal.h: Added include to grub/menu.h.
24225 (grub_menu_entry): Moved to include/grub/menu.h.
24226 (grub_menu_entry_t): Likewise.
24227 (grub_menu): Likewise.
24228 (grub_menu_t): Likewise.
24229 (grub_normal_terminal_menu_viewer): Added.
24230 (grub_menu_execute_entry): Likewise.
24231 (grub_menu_run): Removed.
24233 * DISTLIST: Added include/grub/menu.h.
24234 Added include/grub/menu_viewer.h.
24235 Added normal/menu_viewer.c.
24237 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
24239 * normal/execute.c (grub_script_execute_menuentry): Changed to use
24240 arglist for menutitle arguments.
24242 * normal/main.c (grub_normal_menu_addentry): Likewise.
24244 * normal/parser.y (menuentry): Likewise.
24246 * normal/script.c (grub_script_create_cmdmenu): Likewise.
24248 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
24249 (grub_script_create_cmdmenu): Likewise.
24251 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
24253 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
24256 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
24258 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
24260 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
24262 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
24264 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
24266 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
24268 2009-01-30 Christian Franke <franke@computer.org>
24270 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
24271 in option help text.
24273 2009-01-27 Pavel Roskin <proski@gnu.org>
24275 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
24277 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
24279 * commands/lsmmap.c: Add include to grub/machine/memory.h.
24281 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
24283 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
24284 unregister function.
24286 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
24288 * disk/scsi.c (grub_scsi_read): Fix sign problem.
24290 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
24292 * util/grub-mkfont.c (usage): Fix typo.
24294 * util/elf/grub-mkimage.c (load_modules): Fix warning.
24296 2009-01-26 Daniel Mierswa <impulze@impulze.org>
24298 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
24300 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
24302 * kern/misc.c (grub_strcasecmp): New function.
24303 (grub_strcasecmp): Use grub_size_t instead of int for length.
24305 * include/grub/misc.h: Update function prototypes.
24307 2009-01-26 Robert Millan <rmh@aybabtu.com>
24309 * configure.ac: Fix cross-compilation check.
24311 2009-01-22 Christian Franke <franke@computer.org>
24313 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
24314 (precision) digit string. Allow `.format2' without `format1' (width).
24315 Limit input chars for `%s' output to `format2' if specified. This is
24316 compatible with standard printf ().
24318 2009-01-22 Christian Franke <franke@computer.org>
24320 * disk/ata.c (grub_ata_wait_status): Replace by ...
24321 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
24322 other status bits may be invalid while BSY is asserted.
24323 (grub_ata_check_ready): New function.
24324 (grub_ata_cmd): Removed.
24325 (grub_ata_wait_drq): New function.
24326 (grub_ata_strncpy): Remove inline.
24327 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
24328 and error check now done by grub_ata_wait_drq ().
24329 (grub_ata_pio_write): Likewise.
24330 (grub_atapi_identify): Set DEV before check for !BSY. Use
24331 grub_ata_wait_drq () to wait for data.
24332 (grub_ata_device_initialize): Add status register check to
24333 detect missing SATA slave devices. Add debug messages.
24334 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
24335 (grub_atapi_packet): Set DEV before check for !BSY. Replace
24336 transfer loop by grub_ata_pio_write ().
24337 (grub_ata_identify): Set DEV before check for !BSY. Use
24338 grub_ata_wait_drq () to wait for data.
24339 (grub_ata_setaddress): Set DEV before check for !BSY.
24340 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
24341 read/write in one loop. Fix invalid command on write. Fix incomplete
24342 command on (size % batch) == 0. Add missing error check after write of
24343 last block. Add debug messages.
24344 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
24346 2009-01-19 Christian Franke <franke@computer.org>
24348 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
24349 (GRUB_ATAPI_IREASON_*): Likewise.
24350 (grub_ata_pio_write): Fix timeout error return.
24351 (grub_atapi_identify): Add grub_ata_wait () after cmd.
24352 (grub_atapi_wait_drq): New function.
24353 (grub_atapi_packet): New parameter `size'.
24354 Use grub_atapi_wait_drq () and direct write instead of
24355 grub_ata_pio_write ().
24356 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
24357 reads the number of bytes requested by the device for each DRQ
24359 (grub_atapi_write): Remove old implementation, return not
24360 implemented instead.
24362 2009-01-19 Christian Franke <franke@computer.org>
24364 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
24365 of 512 to calculate data size.
24366 (grub_scsi_read12): Likewise.
24367 (grub_scsi_write10): Likewise.
24368 (grub_scsi_write12): Likewise.
24369 (grub_scsi_read): Adjust size according to blocksize.
24370 Add checks for invalid blocksize and unaligned transfer.
24372 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
24374 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
24376 * term/gfxterm.c (write_char): Fix background rendering for wide
24379 2009-01-19 Robert Millan <rmh@aybabtu.com>
24381 * config.guess: Update to latest version from config git.
24382 * config.sub: Likewise.
24384 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
24386 * Makefile.in: Change font compilation to use new grub-mkfont instead
24389 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
24390 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
24391 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
24392 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
24393 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
24394 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
24395 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
24396 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
24397 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
24399 2009-01-16 Christian Franke <franke@computer.org>
24401 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
24402 (enum grub_ata_timeout_milliseconds): New enum.
24403 (grub_ata_wait_status): Add parameter milliseconds.
24404 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
24405 recovery from timed-out commands.
24406 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
24407 return grub_errno instead of REG_ERROR.
24408 (grub_ata_pio_write): Add parameter milliseconds.
24409 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
24410 Pass milliseconds to grub_ata_wait_status () and
24411 grub_ata_pio_read ().
24412 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
24413 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
24414 grub_ata_wait_status (). Fix IDENTIFY timeout check.
24415 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
24416 It is not suitable for device detection, because DEV bit is ignored,
24417 the command may run too long, and not all devices set the signature
24419 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
24420 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
24421 Fix device selection, DEV bit must be set first to address the registers
24422 of the correct device.
24423 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
24424 grub_ata_pio_read/write ().
24425 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
24426 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
24428 2009-01-13 Carles Pina i Estany <carles@pina.cat>
24430 * util/grub-editenv.c (main): Use fseeko(), not fseek().
24432 2009-01-13 Bean <bean123ch@gmail.com>
24434 * util/grub-mkfont.c (write_font): forget to remove some debug code.
24436 2009-01-13 Bean <bean123ch@gmail.com>
24438 * Makefile.in: (enable_grub_mkfont): New variable.
24439 (freetype_cflags): Likewise.
24440 (freetype_libs): Likewise.
24442 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
24443 (grub_mkfont_SOURCES): New variable.
24444 (grub_mkfont_CFLAGS): Likewise.
24445 (grub_mkfont_LDFLAGS): Likewise.
24447 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
24448 library if `--enable-grub-mkfont' is requested.
24449 (enable_grub_mkfont): New variable.
24450 (freetype_cflags): Likewise.
24451 (freetype_libs): Likewise.
24453 * util/grub-mkfont.c: New file.
24455 2009-01-12 Christian Franke <franke@computer.org>
24457 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
24458 mode check. Fix setting of compat_use[].
24460 2009-01-10 Robert Millan <rmh@aybabtu.com>
24462 Update a few copyright years which we forgot to do in 2008 (only for
24463 files whose changes made in 2008 were copyright-significant)
24465 * Makefile.in: Add 2008 to Copyright line.
24466 * disk/ieee1275/ofdisk.c: Likewise.
24467 * disk/efi/efidisk.c: Likewise.
24468 * kern/dl.c: Likewise.
24469 * kern/sparc64/ieee1275/init.c: Likewise.
24470 * kern/mm.c: Likewise.
24471 * kern/efi/mm.c: Likewise.
24472 * boot/i386/pc/boot.S: Likewise.
24473 * genfslist.sh: Likewise.
24474 * fs/iso9660.c: Likewise.
24475 * fs/hfs.c: Likewise.
24476 * fs/jfs.c: Likewise.
24477 * fs/minix.c: Likewise.
24478 * fs/ufs.c: Likewise.
24479 * gensymlist.sh.in: Likewise.
24480 * genkernsyms.sh.in: Likewise.
24481 * include/grub/misc.h: Likewise.
24482 * include/grub/types.h: Likewise.
24483 * include/grub/symbol.h: Likewise.
24484 * include/grub/elf.h: Likewise.
24485 * include/grub/kernel.h: Likewise.
24486 * include/grub/disk.h: Likewise.
24487 * include/grub/dl.h: Likewise.
24488 * include/grub/i386/linux.h: Likewise.
24489 * include/grub/i386/pc/biosdisk.h: Likewise.
24490 * include/grub/efi/api.h: Likewise.
24491 * include/grub/efi/pe32.h: Likewise.
24492 * include/grub/util/misc.h: Likewise.
24493 * normal/execute.c: Likewise.
24494 * normal/arg.c: Likewise.
24495 * normal/completion.c: Likewise.
24496 * normal/lexer.c: Likewise.
24497 * normal/parser.y: Likewise.
24498 * normal/misc.c: Likewise.
24499 * commands/i386/pc/vbeinfo.c: Likewise.
24500 * commands/hexdump.c: Likewise.
24501 * commands/terminal.c: Likewise.
24502 * commands/ls.c: Likewise.
24503 * commands/help.c: Likewise.
24504 * partmap/pc.c: Likewise.
24505 * loader/efi/chainloader.c: Likewise.
24506 * loader/multiboot_loader.c: Likewise.
24507 * loader/i386/pc/multiboot2.c: Likewise.
24508 * term/efi/console.c: Likewise.
24509 * term/i386/pc/serial.c: Likewise.
24510 * util/lvm.c: Likewise.
24511 * util/console.c: Likewise.
24512 * util/i386/efi/grub-mkimage.c: Likewise.
24513 * util/raid.c: Likewise.
24515 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
24517 * commands/videotest.c: Removed include to grub/machine/memory.h.
24519 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
24520 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
24521 (video_mod_SOURCES): Removed.
24522 (video_mod_CFLAGS): Likewise.
24523 (video_mod_LDFLAGS): Likewise.
24524 (gfxterm_mod_SOURCES): Likewise.
24525 (gfxterm_mod_CFLAGS): Likewise.
24526 (gfxterm_mod_LDFLAGS): Likewise.
24527 (videotest_mod_SOURCES): Likewise.
24528 (videotest_mod_CFLAGS): Likewise.
24529 (videotest_mod_LDFLAGS): Likewise.
24530 (bitmap_mod_SOURCES): Likewise.
24531 (bitmap_mod_CFLAGS): Likewise.
24532 (bitmap_mod_LDFLAGS): Likewise.
24533 (tga_mod_SOURCES): Likewise.
24534 (tga_mod_CFLAGS): Likewise.
24535 (tga_mod_LDFLAGS): Likewise.
24536 (jpeg_mod_SOURCES): Likewise.
24537 (jpeg_mod_CFLAGS): Likewise.
24538 (jpeg_mod_LDFLAGS): Likewise.
24539 (png_mod_SOURCES): Likewise.
24540 (png_mod_CFLAGS): Likewise.
24541 (png_mod_LDFLAGS): Likewise.
24543 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
24544 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
24545 (video_mod_SOURCES): Added.
24546 (video_mod_CFLAGS): Likewise.
24547 (video_mod_LDFLAGS): Likewise.
24548 (videotest_mod_SOURCES): Likewise.
24549 (videotest_mod_CFLAGS): Likewise.
24550 (videotest_mod_LDFLAGS): Likewise.
24551 (bitmap_mod_SOURCES): Likewise.
24552 (bitmap_mod_CFLAGS): Likewise.
24553 (bitmap_mod_LDFLAGS): Likewise.
24554 (tga_mod_SOURCES): Likewise.
24555 (tga_mod_CFLAGS): Likewise.
24556 (tga_mod_LDFLAGS): Likewise.
24557 (jpeg_mod_SOURCES): Likewise.
24558 (jpeg_mod_CFLAGS): Likewise.
24559 (jpeg_mod_LDFLAGS): Likewise.
24560 (png_mod_SOURCES): Likewise.
24561 (png_mod_CFLAGS): Likewise.
24562 (png_mod_LDFLAGS): Likewise.
24563 (gfxterm_mod_SOURCES): Likewise.
24564 (gfxterm_mod_CFLAGS): Likewise.
24565 (gfxterm_mod_LDFLAGS): Likewise.
24567 * term/gfxterm.c: Removed include to grub/machine/memory.h,
24568 grub/machine/console.h.
24570 2009-01-04 Jerone Young <jerone@gmail.com>
24572 Make on screen instructions clearer
24574 Based on patch created by Jidanni <jidanni@jidanni.org>
24576 * normal/menu.c: print clearer instructions on the screen
24578 2009-01-02 Colin D Bennett <colin@gibibit.com>
24582 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
24583 build system and fixed gfxterm.c to work with different sized fonts.
24585 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
24587 * configure: Re-generated.
24589 * DISTLIST: Removed font/manager.c.
24591 Added font/font_cmd.c.
24593 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
24596 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
24598 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
24600 * kern/term.c: Changed users of grub_utf8_to_ucs4.
24602 * normal/menu.c: Likewise.
24604 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
24605 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
24607 * include/grub/font.h: Replaced with new file.
24609 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
24610 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
24611 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
24612 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
24613 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
24614 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
24615 fg_red, fg_green, fg_blue, fg_alpha.
24616 (grub_video_adapter): Removed blit_glyph.
24617 (grub_video_blit_glyph): Removed.
24619 * font/manager.c: Removed file.
24621 * font/font.c: New file.
24623 * font/font_cmd.c: Likewise.
24625 * video/video.c (grub_video_blit_glyph): Removed.
24627 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
24628 (grub_video_vbe_map_rgba): Likewise.
24629 (grub_video_vbe_unmap_color_int): Likewise.
24630 (grub_video_vbe_blit_glyph): Removed.
24631 (grub_video_vbe_adapter): Removed blit_glyph.
24633 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
24634 (get_pixel): Likewise.
24635 (set_pixel): Likewise.
24637 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
24639 * term/gfxterm.c: Adapted to new font engine.
24641 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
24643 * term/i386/pc/vga.c: Likewise.
24645 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
24647 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
24649 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
24651 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
24653 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
24655 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
24657 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
24659 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
24661 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
24663 * util/grub.d/00_header.in: Changed to use new loadfont command.
24665 * util/grub-mkconfig_lib.in: Changed font extension.
24667 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
24669 * util/getroot.c (grub_util_get_grub_dev): Add support for
24670 /dev/md/dNNpNN style partitionable mdraid devices.
24672 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
24674 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
24675 at a time limit of the PXE TFTP API correctly.
24676 (grub_pxefs_close): Likewise.
24678 2008-11-29 Robert Millan <rmh@aybabtu.com>
24680 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
24681 grub_ata_device_initialize() calls.
24683 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
24685 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
24687 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
24689 2008-11-28 Robert Millan <rmh@aybabtu.com>
24691 Fix build on powerpc-ieee1275. Based on patch created by
24692 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
24693 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
24694 `kern/ieee1275/mmap.c'.
24695 * include/grub/powerpc/ieee1275/memory.h: New file.
24697 Provide grub-install on coreboot.
24698 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
24699 (grub_install_SOURCES): New variable.
24700 * util/i386/pc/grub-install.in: Add a few condition checks to make it
24701 usable on coreboot.
24703 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
24705 * util/grub-fstest.c (grub_term_get_current_input): Change return type
24706 to `grub_term_input_t'.
24707 (grub_term_get_current_output): Change return type to
24708 `grub_term_output_t'.
24710 2008-11-22 Robert Millan <rmh@aybabtu.com>
24712 Fix breakage on coreboot due to declaration mismatch.
24713 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
24714 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
24715 grub_vga_text_cls().
24717 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
24718 comments. Avoid copying one more byte than necessary (just in case).
24720 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
24721 to 0x200000 (avoids trouble with some OFW implementations, and matches
24722 with the one in Yaboot).
24723 Reported by Manoel Abranches
24725 2008-11-20 Robert Millan <rmh@aybabtu.com>
24727 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
24728 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
24730 * util/grub-mkconfig_lib.in (grub_warn): New function.
24731 (convert_system_path_to_grub_path): Use grub_warn() when issuing
24732 warnings, to obtain consistent formatting.
24733 * util/grub.d/00_header.in: Likewise.
24734 * util/update-grub_lib.in: Likewise.
24736 * loader/i386/linux.c (allocate_pages): Fix a warning.
24737 Move comment text to `#error' stanza.
24739 Harmonize ieee1275's grub_available_iterate() with the generic
24740 grub_machine_mmap_iterate() interface (fixes a recently-introduced
24741 build problem on i386-ieee1275):
24742 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
24743 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
24744 parameter `type'. Update all users of this function.
24745 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
24746 `kern/ieee1275/mmap.c'.
24747 * kern/ieee1275/init.c
24748 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
24750 (grub_machine_mmap_iterate): ... this.
24751 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
24752 return type to `grub_err_t'. Update all implementations of this
24753 function prototype.
24754 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
24757 Add `lsmmap' command (lists firmware-provided memory map):
24758 * commands/lsmmap.c: New file.
24759 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
24760 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
24762 * conf/powerpc-ieee1275.rmk: Likewise.
24763 * conf/i386-coreboot.rmk: Likewise.
24764 * conf/i386-ieee1275.rmk: Likewise.
24766 2008-11-19 Robert Millan <rmh@aybabtu.com>
24768 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
24769 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
24770 constraints to initrd allocation (based on code from
24771 loader/i386/pc/linux.c). Without them, initrd was allocated too high
24772 for Linux to find it.
24774 2008-11-14 Robert Millan <rmh@aybabtu.com>
24776 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
24777 order to cope with duplicate slashes.
24779 2008-11-14 Robert Millan <rmh@aybabtu.com>
24781 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
24782 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
24783 don't want to mess with lower memory, because it is used in the Linux
24786 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
24787 an appropriate place in lower memory, between 0x10000 and 0x90000,
24788 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
24789 is in our heap (probably as a result of it being corrupted during
24790 decompression). Add #error instance with comment to explain why this
24791 loader isn't currently usable on PC/BIOS.
24793 2008-11-14 Robert Millan <rmh@aybabtu.com>
24795 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
24796 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
24798 2008-11-12 Robert Millan <rmh@aybabtu.com>
24800 Make loader/i386/linux.c buildable on i386-pc (although disabled).
24802 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
24803 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
24805 * include/grub/i386/pc/memory.h: ... to here.
24807 2008-11-12 Robert Millan <rmh@aybabtu.com>
24809 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
24812 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
24813 (grub_console_cur_color, grub_console_real_putchar)
24814 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
24815 (grub_console_setcolorstate, grub_console_setcolor)
24816 (grub_console_getcolor): Move from here ...
24817 * include/grub/i386/vga_common.h: ... to here (new file).
24819 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
24820 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
24821 `<grub/i386/io.h>'.
24822 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
24823 `<grub/i386/vga_common.h>'.
24825 2008-11-12 Robert Millan <rmh@aybabtu.com>
24827 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
24828 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
24829 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
24831 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
24832 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
24834 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
24835 grub_console_init() with call to grub_vga_text_init().
24836 (grub_machine_fini): Replace call to
24837 grub_console_fini() with call to grub_vga_text_fini() and
24838 grub_at_keyboard_fini().
24840 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
24841 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
24842 (grub_console_setcolorstate, grub_console_setcolor)
24843 (grub_console_getcolor): New function prototypes.
24845 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
24846 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
24847 (grub_vga_text_setcursor): Static-ize.
24848 (grub_vga_text_term): New structure.
24849 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
24851 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
24852 (grub_console_cur_color, grub_console_standard_color)
24853 (grub_console_normal_color, grub_console_highlight_color)
24854 (map_char, grub_console_putchar, grub_console_getcharwidth)
24855 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
24856 (grub_console_getcolor): Move from here ...
24857 * term/i386/vga_common.c: ... to here (same function names).
24859 2008-11-12 Robert Millan <rmh@aybabtu.com>
24861 Use newly-added Multiboot support in coreboot.
24863 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
24864 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
24866 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
24867 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
24868 (codestart): Store the MBI in `startup_multiboot_info' when we're
24869 being loaded using Multiboot.
24871 * kern/i386/coreboot/init.c (grub_machine_init): Move
24872 grub_at_keyboard_init() call to beginning of function (useful for
24873 debugging). Call grub_machine_mmap_init() before attempting to use
24874 grub_machine_mmap_iterate().
24875 (grub_lower_mem, grub_upper_mem): Move from here ...
24876 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
24879 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
24880 function prototype.
24882 2008-11-12 Robert Millan <rmh@aybabtu.com>
24884 Fix a regression introduced by the at_keyboard.mod split. Because
24885 some terminals are default on some platforms and non-default on
24886 others, the first terminal being registered determines which is
24887 going to be default.
24889 * kern/term.c (grub_term_register_input): If this is the first
24890 terminal being registered, set it as the current one.
24891 (grub_term_register_output): Likewise.
24893 * term/efi/console.c (grub_console_init): Do not call
24894 grub_term_set_current_output() or grub_term_set_current_input().
24895 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
24896 * term/i386/pc/console.c (grub_console_init): Likewise.
24897 (grub_console_fini): Do not call grub_term_set_current_input()
24898 (but leave grub_term_set_current_output() to restore text mode).
24900 2008-11-10 Robert Millan <rmh@aybabtu.com>
24902 * util/grub.d/00_header.in: Add backward compatibility check for
24903 versions of terminal.mod that don't understand `terminal_input' or
24906 2008-11-09 Robert Millan <rmh@aybabtu.com>
24908 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
24909 `terminal_input' / `terminal_output', not `terminal'.
24911 2008-11-08 Robert Millan <rmh@aybabtu.com>
24913 * Makefile.in (include_DATA): Fix srcdir=. assumption.
24914 (DISTCLEANFILES): Add `build_env.mk'.
24916 2008-11-08 Robert Millan <rmh@aybabtu.com>
24918 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
24919 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
24920 members. Update all users.
24921 * util/console.c (grub_ncurses_term): Split in ...
24922 (grub_ncurses_term_input): ... this, and ...
24923 (grub_ncurses_term_output): ... this. Update all users.
24924 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
24926 2008-11-08 Robert Millan <rmh@aybabtu.com>
24928 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
24929 (PKGDATA): Add $(pkgdata_SRCDIR).
24930 (pkglib_BUILDDIR): New variable.
24931 (pkgdata_SRCDIR): New variable.
24932 (build_env.mk): New target.
24933 (include_DATA): New variable.
24934 (install-local): Install $(include_DATA) files in $(includedir).
24936 2008-11-07 Pavel Roskin <proski@gnu.org>
24938 * gendistlist.sh: Use C locale for sorting to ensure consistent
24939 output on all systems.
24941 * util/grub.d/00_header.in: Remove incorrect space before
24944 2008-11-07 Robert Millan <rmh@aybabtu.com>
24946 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
24948 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
24949 * loader/multiboot_loader.c (find_multi_boot2_header): New function
24950 (based on find_multi_boot1_header).
24951 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
24952 using find_multi_boot2_header(), and abort if neither Multiboot or
24953 Multiboot headers were found.
24955 2008-11-07 Robert Millan <rmh@aybabtu.com>
24957 Modularize at_keyboard.mod:
24959 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
24960 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24961 (at_keyboard_mod_LDFLAGS): New variables.
24963 Actual terminal split:
24965 * include/grub/term.h (struct grub_term): Split in ...
24966 (struct grub_term_input): ... this, and ...
24967 (struct grub_term_output): ... this. Update all users.
24968 (grub_term_set_current): Split in ...
24969 (grub_term_set_current_input): ... this, and ...
24970 (grub_term_set_current_output): ... this.
24971 (grub_term_get_current): Split in ...
24972 (grub_term_get_current_input): ... this, and ...
24973 (grub_term_get_current_output): ... this.
24974 (grub_term_register): Split in ...
24975 (grub_term_register_input): ... this, and ...
24976 (grub_term_register_output): ... this.
24977 (grub_term_unregister): Split in ...
24978 (grub_term_unregister_input): ... this, and ...
24979 (grub_term_unregister_output): ... this.
24980 (grub_term_iterate): Split in ...
24981 (grub_term_iterate_input): ... this, and ...
24982 (grub_term_iterate_output): ... this.
24984 * kern/term.c (grub_term_list): Split in ...
24985 (grub_term_list_input): ... this, and ...
24986 (grub_term_list_output): ... this. Update all users.
24987 (grub_cur_term): Split in ...
24988 (grub_cur_term_input): ... this, and ...
24989 (grub_cur_term_output): ... this. Update all users.
24990 (grub_term_set_current): Split in ...
24991 (grub_term_set_current_input): ... this, and ...
24992 (grub_term_set_current_output): ... this.
24993 (grub_term_get_current): Split in ...
24994 (grub_term_get_current_input): ... this, and ...
24995 (grub_term_get_current_output): ... this.
24996 (grub_term_register): Split in ...
24997 (grub_term_register_input): ... this, and ...
24998 (grub_term_register_output): ... this.
24999 (grub_term_unregister): Split in ...
25000 (grub_term_unregister_input): ... this, and ...
25001 (grub_term_unregister_output): ... this.
25002 (grub_term_iterate): Split in ...
25003 (grub_term_iterate_input): ... this, and ...
25004 (grub_term_iterate_output): ... this.
25006 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
25007 a check for input and one for output (and only attempt to get keys
25008 from user when input works).
25010 * util/grub-probe.c (grub_term_get_current): Split in ...
25011 (grub_term_get_current_input): ... this, and ...
25012 (grub_term_get_current_output): ... this.
25013 * util/grub-fstest.c: Likewise.
25014 * util/i386/pc/grub-setup.c: Likewise.
25015 * util/grub-editenv.c: Likewise.
25017 Portability adjustments:
25019 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
25020 `term/i386/pc/at_keyboard.c'.
25021 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
25022 grub_keyboard_controller_init() (now handled by terminal .init).
25023 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
25024 grub_at_keyboard_init().
25025 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
25026 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
25027 at_keyboard.mod via input terminal interface).
25028 * include/grub/i386/coreboot/console.h: Convert into a stub for
25029 `<grub/i386/pc/console.h>'.
25031 Migrate full terminals to new API:
25033 * term/efi/console.c (grub_console_term): Split into ...
25034 (grub_console_term_input): ... this, and ...
25035 (grub_console_term_output): ... this. Update all users.
25036 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
25037 (grub_ofconsole_init): Split into ...
25038 (grub_ofconsole_init_input): ... this, and ...
25039 (grub_ofconsole_init_output): ... this.
25040 (grub_ofconsole_term): Split into ...
25041 (grub_ofconsole_term_input): ... this, and ...
25042 (grub_ofconsole_term_output): ... this. Update all users.
25043 * term/i386/pc/serial.c (grub_serial_term): Split into ...
25044 (grub_serial_term_input): ... this, and ...
25045 (grub_serial_term_output): ... this. Update all users.
25046 * term/i386/pc/console.c (grub_console_term): Split into ...
25047 (grub_console_term_input): ... this, and ...
25048 (grub_console_term_output): ... this. Update all users.
25049 (grub_console_term_input): Only enable it on PC/BIOS platform.
25050 (grub_console_init): Remove grub_keyboard_controller_init() call.
25052 Migrate input terminals to new API:
25054 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
25055 `i386' and `i386/pc' to enable build on x86_64 (this driver is
25056 i386-specific anyway).
25057 (grub_console_checkkey): Rename to ...
25058 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
25060 (grub_keyboard_controller_orig): New variable.
25061 (grub_console_getkey): Rename to ...
25062 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
25064 (grub_keyboard_controller_init): Static-ize. Save original
25065 controller value so that it can be restored ...
25066 (grub_keyboard_controller_fini): ... here (new function).
25067 (grub_at_keyboard_term): New structure.
25068 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
25071 Migrate output terminals to new API:
25073 * term/i386/pc/vga.c (grub_vga_term): Change type to
25074 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
25075 members. Update all users.
25076 * term/gfxterm.c (grub_video_term): Change type to
25077 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
25078 members. Update all users.
25079 * include/grub/i386/pc/console.h (grub_console_checkkey)
25080 (grub_console_getkey): Do not export (no longer needed by gfxterm,
25083 Migrate `terminal' command and userland tools to new API:
25085 * commands/terminal.c (grub_cmd_terminal): Split into ...
25086 (grub_cmd_terminal_input): ... this, and ...
25087 (grub_cmd_terminal_output): ... this.
25088 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
25089 `terminal_input' and `terminal_output'.
25090 * util/grub.d/00_header.in: Adjust `terminal' calls to new
25091 `terminal_input' / `terminal_output' API.
25092 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
25093 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
25094 provided ${GRUB_TERMINAL}, convert it).
25096 2008-11-04 Robert Millan <rmh@aybabtu.com>
25098 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
25100 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
25102 2008-11-03 Bean <bean123ch@gmail.com>
25104 * kern/elf.c (grub_elf32_load): Revert to previous code.
25105 (grub_elf64_load): Likewise.
25107 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
25109 2008-11-01 Robert Millan <rmh@aybabtu.com>
25111 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
25112 (TARGET_CPPFLAGS): Likewise.
25113 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
25115 2008-11-01 Carles Pina i Estany <carles@pina.cat>
25117 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
25119 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
25121 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
25122 addition of objects until the code is not going to be able to fail.
25124 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
25126 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
25127 (add a missing NULL check, and correct them by moving the pointer
25128 operations after the actual check).
25130 2008-10-29 Robert Millan <rmh@aybabtu.com>
25132 * util/i386/pc/grub-install.in: Handle empty string as output from
25133 make_system_path_relative_to_its_root().
25135 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
25137 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
25138 circular metadata worst case scenario. If the metadata is circular
25139 then copy the wrap in place.
25140 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
25141 project lib/format_text/layout.h
25142 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
25144 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
25146 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
25148 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
25150 * util/update-grub_lib.in: Mention filename in warning message.
25152 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
25154 * NEWS: Update for rename of update-grub to grub-mkconfig.
25156 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
25158 * util/update-grub_lib.in: Copy to ...
25159 * util/grub-mkconfig_lib.in: ... this. Update all users.
25160 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
25161 * util/update-grub.in: Rename to ...
25162 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
25163 option. Add `--output' option to allow users to specify the generated
25164 configuration file. Default to stdout.
25165 (update_grub_dir): Rename to ...
25166 (grub_mkconfig_dir): ... this.
25167 (grub_cfg): Default to an empty string.
25168 * conf/common.rmk (update-grub): Rename to ...
25169 (grub-mkconfig): ... this.
25170 (update-grub_lib): Copy to ...
25171 (grub-mkconfig_lib): ... this.
25172 (update-grub_SCRIPTS): Copy to ...
25173 (grub-mkconfig_SCRIPTS): ... this. Update all users.
25174 (update-grub_DATA): Rename to ...
25175 (grub-mkconfig_DATA): ... this.
25177 2008-09-28 Robert Millan <rmh@aybabtu.com>
25179 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
25180 to `modified'. Add the real `created' field.
25181 (grub_iso9660_uuid): Use `modified' rather than `created' for
25182 constructing the UUID.
25184 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
25186 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
25187 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
25189 2008-09-28 Bean <bean123ch@gmail.com>
25191 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
25192 Thanks to Christian Franke for finding this bug.
25194 2008-09-25 Robert Millan <rmh@aybabtu.com>
25196 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
25197 instances of grub_util_get_disk_name() (see previous commit).
25199 2008-09-25 Robert Millan <rmh@aybabtu.com>
25201 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
25202 `util/i386/get_disk_name.c'.
25203 * conf/i386-efi.rmk: Likewise.
25204 * conf/x86_64-efi.rmk: Likewise.
25205 * conf/i386-coreboot.rmk: Likewise.
25206 * conf/i386-ieee1275.rmk: Likewise.
25207 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
25208 `util/ieee1275/get_disk_name.c'.
25209 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
25210 * util/ieee1275/get_disk_name.c: Remove file.
25211 * util/i386/get_disk_name.c: Remove file.
25212 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
25213 "hd%d" for device.map entries, rather than using
25214 grub_util_get_disk_name().
25216 2008-09-24 Carles Pina i Estany <carles@pina.cat>
25218 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
25220 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
25222 2008-09-24 Carles Pina i Estany <carles@pina.cat>
25224 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
25226 (GRUB_TERM_PPAGE): Changed to 0x4900.
25228 2008-09-24 Robert Millan <rmh@aybabtu.com>
25230 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
25231 macros (they were i386-pc specific).
25232 * include/grub/sparc64/ieee1275/console.h: Likewise.
25233 * include/grub/efi/console.h: Likewise.
25235 2008-09-22 Bean <bean123ch@gmail.com>
25237 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
25238 resident and in attribute list.
25240 * include/grub/ntfs.h (BMP_LEN): Removed.
25242 2008-09-22 Bean <bean123ch@gmail.com>
25244 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
25245 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
25247 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
25248 error occurs, as grub_disk_open will call grub_disk_close, which will
25249 call p->close (scsi).
25251 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
25253 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
25254 (AC_PREREQ): Bumped to 2.59.
25255 (AC_TRY_COMPILE): Replace obsolete macro with ...
25256 (AC_COMPILE_IFELSE): ... this.
25257 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
25258 (AC_LINK_IFELSE): ... this.
25260 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
25262 * autogen.sh: Add a call to `gendistlist.sh'.
25264 2008-09-19 Christian Franke <franke@computer.org>
25266 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
25267 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
25268 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
25269 Export __enable_execute_stack() to modules.
25270 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
25273 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
25275 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
25278 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
25280 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
25281 #include <grub/util/hostdisk.h>.
25283 2008-09-08 Robert Millan <rmh@aybabtu.com>
25285 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
25286 segments when their filesz is zero (grub_file_read() interprets
25287 zero-size as "read until EOF", which results in memory corruption).
25288 Use `lowest_segment' rather than 0 for calculating the current
25289 segment load address.
25291 2008-09-08 Robert Millan <rmh@aybabtu.com>
25293 * util/hostdisk.c (open_device): Replace a grub_util_info() call
25294 with grub_dprintf("hostdisk", ...), as it was so verbose that it
25295 clobbered useful information.
25297 2008-09-08 Robert Millan <rmh@aybabtu.com>
25299 * include/grub/util/biosdisk.h: Move to ...
25300 * include/grub/util/hostdisk.h: ... here. Update all users.
25301 * util/biosdisk.c: Move to ...
25302 * util/hostdisk.c: ... here. Update all users.
25304 2008-09-07 Robert Millan <rmh@aybabtu.com>
25306 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
25308 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
25309 and length can be stored directly in the `mbi->mmap_addr' and
25310 `mbi->mmap_length' struct fields.
25312 2008-09-07 Robert Millan <rmh@aybabtu.com>
25314 * conf/i386.rmk: New file. Provides declaration for building
25316 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
25317 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
25319 Include `conf/i386.mk'.
25320 * conf/i386-efi.rmk: Likewise.
25321 * conf/x86_64-efi.rmk: Likewise.
25322 * conf/i386-coreboot.rmk: Likewise.
25323 * conf/i386-ieee1275.rmk: Likewise.
25325 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
25327 Based on patch created by Colin D Bennett <colin@gibibit.com>.
25328 Adds optimization support for BGR based modes.
25330 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
25331 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
25332 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
25333 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
25334 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
25335 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
25336 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
25337 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
25338 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
25339 (grub_video_i386_vbeblit_index_index): Likewise.
25340 (grub_video_i386_vbeblit_replace_directN): Added.
25341 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
25342 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
25343 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
25344 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
25345 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
25346 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
25347 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
25348 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
25349 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
25350 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
25351 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
25352 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
25353 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
25355 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
25356 (grub_video_i386_vbefill_R8G8B8): Likewise.
25357 (grub_video_i386_vbefill_index): Likewise.
25358 (grub_video_i386_vbefill_direct32): Added.
25359 (grub_video_i386_vbefill_direct24): Likewise.
25360 (grub_video_i386_vbefill_direct16): Likewise.
25361 (grub_video_i386_vbefill_direct8): Likewise.
25363 * include/grub/video.h (grub_video_blit_format): Removed
25364 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
25365 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
25366 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
25367 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
25368 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
25370 * video/video.c (grub_video_get_blit_format): Updated to use new
25371 blit formats. Added handling for 16 bit color modes.
25373 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
25375 (common_blitter): Updated to use new blitters.
25377 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
25379 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
25380 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
25381 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
25382 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
25383 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
25384 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
25385 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
25386 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
25387 (grub_video_i386_vbeblit_index_index): Likewise.
25388 (grub_video_i386_vbeblit_replace_directN): Added.
25389 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
25390 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
25391 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
25392 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
25393 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
25394 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
25395 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
25396 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
25397 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
25398 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
25399 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
25400 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
25401 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
25403 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
25404 (grub_video_i386_vbefill_R8G8B8): Likewise.
25405 (grub_video_i386_vbefill_index): Likewise.
25406 (grub_video_i386_vbefill_direct32): Added.
25407 (grub_video_i386_vbefill_direct24): Likewise.
25408 (grub_video_i386_vbefill_direct16): Likewise.
25409 (grub_video_i386_vbefill_direct8): Likewise.
25411 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
25414 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
25417 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
25420 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
25423 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
25425 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
25428 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
25430 * fs/iso9660.c (grub_iso9660_date): New structure.
25431 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
25432 (grub_iso9660_uuid): New function.
25434 2008-09-05 Bean <bean123ch@gmail.com>
25436 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
25438 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
25439 insensitive bit for names in Win32 and Win32 & DOS namespace.
25441 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
25443 * include/grub/types.h (LONG_MAX): Likewise.
25445 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
25447 * util/getroot.c: Include <config.h>.
25448 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
25449 add support for /dev/md/N devices and handle LVM double dash escaping.
25451 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
25453 * config.guess: Update to latest version from config git.
25454 * config.sub: Likewise.
25456 2008-09-03 Robert Millan <rmh@aybabtu.com>
25458 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
25459 `disk->total_sectors'.
25461 2008-09-01 Colin D Bennett <colin@gibibit.com>
25463 * include/grub/normal.h: Fixed incorrect comment for
25464 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
25466 2008-09-01 Colin D Bennett <colin@gibibit.com>
25468 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
25469 values with defines.
25471 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
25472 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
25473 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
25474 (GRUB_VBE_MODEATTR_COLOR): Likewise.
25475 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
25476 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
25477 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
25478 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
25479 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
25480 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
25481 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
25482 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
25483 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
25484 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
25485 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
25486 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
25487 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
25488 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
25489 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
25491 2008-08-31 Robert Millan <rmh@aybabtu.com>
25493 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
25495 (grub_multiboot): Fix a few warnings.
25497 2008-08-31 Robert Millan <rmh@aybabtu.com>
25499 * loader/i386/pc/multiboot.c: Update comment not to say that
25500 boot_device support is unimplemented.
25502 2008-08-31 Robert Millan <rmh@aybabtu.com>
25504 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
25505 or memory map support are unimplemented.
25507 2008-08-31 Colin D Bennett <colin@gibibit.com>
25509 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
25511 2008-08-31 Colin D Bennett <colin@gibibit.com>
25513 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
25514 total video memory in 'vbeinfo' output; show color format details for
25517 2008-08-30 Pavel Roskin <proski@gnu.org>
25519 * util/genmoddep.c: Remove for real this time.
25520 * DISTLIST: Remove util/genmoddep.c.
25522 2008-08-30 Robert Millan <rmh@aybabtu.com>
25524 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
25525 as required by Multiboot spec (it was already 4-byte aligned, but
25528 2008-08-29 Pavel Roskin <proski@gnu.org>
25530 * kern/powerpc/ieee1275/crt0.S: Rename to ...
25531 * kern/powerpc/ieee1275/startup.S: ... this.
25532 * conf/powerpc-ieee1275.rmk: Adjust for the above.
25533 * DISTLIST: Likewise.
25535 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
25536 grub/cpu/kernel.h. Add start label for consistency with other
25537 platforms. Add grub_prefix immediately after start. Add jump
25538 to the code after grub_prefix.
25539 * include/grub/powerpc/kernel.h: Provide valid values for
25540 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
25542 2008-08-29 Bean <bean123ch@gmail.com>
25544 * configure.ac: Change host_os to cygwin for mingw.
25545 (asprintf): New check for function.
25547 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
25548 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
25550 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
25551 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
25552 sync, sleep and grub_util_get_disk_size for mingw.
25554 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
25555 to get size in mingw.
25556 (open_device): Use flag O_BINARY if it's defined.
25557 (find_root_device): Add dummy code for mingw.
25559 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
25560 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
25561 (get_scsi_disk_name): Return 0 for mingw.
25563 * util/hostfs.c: #include <grub/util/misc.h>.
25564 (grub_hostfs_open): Use "rb" flag to open file, use
25565 grub_util_get_disk_size to get disk size for mingw.
25567 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
25568 (asprintf): New function if HAVE_ASPRINTF is not set.
25569 (sync): New function for mingw.
25571 (grub_util_get_disk_size): Likewise.
25573 2008-08-28 Pavel Roskin <proski@gnu.org>
25575 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
25578 2008-08-28 Robert Millan <rmh@aybabtu.com>
25580 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
25582 2008-08-28 Robert Millan <rmh@aybabtu.com>
25584 Change find_grub_drive() syntax so it doesn't prevent it from
25585 detecting NULL names as errors.
25587 * util/biosdisk.c (find_grub_drive): Move free slot search code
25589 (find_free_slot): ... to here.
25590 (read_device_map): Use find_free_slot() to search for free slots.
25592 2008-08-27 Marco Gerards <marco@gnu.org>
25594 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
25595 (scsi_mod_SOURCES): New variable.
25596 (scsi_mod_CFLAGS): Likewise
25597 (scsi_mod_LDFLAGS): Likewise.
25599 * disk/scsi.c: New file.
25601 * include/grub/scsi.h: Likewise.
25603 * include/grub/scsicmd.h: Likewise.
25605 * disk/ata.c: Include <grub/scsi.h>.
25606 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
25608 (grub_ata_iterate): Skip ATAPI devices.
25609 (grub_ata_open): Only handle ATAPI devices.
25610 (struct grub_atapi_read): Removed.
25611 (grub_atapi_readsector): Likewise.
25612 (grub_ata_read): No longer handle ATAPI devices.
25613 (grub_ata_write): Likewise.
25614 (grub_atapi_iterate): New function.
25615 (grub_atapi_read): Likewise.
25616 (grub_atapi_write): Likewise.
25617 (grub_atapi_open): Likewise.
25618 (grub_atapi_close): Likewise.
25619 (grub_atapi_dev): New variable.
25620 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
25621 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
25623 * include/grub/disk.h (enum grub_disk_dev_id): Add
25624 `GRUB_DISK_DEVICE_SCSI_ID'.
25626 2008-08-26 Robert Millan <rmh@aybabtu.com>
25628 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
25629 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
25632 2008-08-23 Bean <bean123ch@gmail.com>
25634 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
25635 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
25636 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
25637 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
25639 (raid5rec_mod_SOURCES): New macro.
25640 (raid5rec_mod_CFLAGS): Likewise.
25641 (raid5rec_mod_LDFLAGS): Likewise.
25642 (raid6rec_mod_SOURCES): Likewise.
25643 (raid6rec_mod_CFLAGS): Likewise.
25644 (raid6rec_mod_LDFLAGS): Likewise.
25645 (mdraid_mod_SOURCES): Likewise.
25646 (mdraid_mod_CFLAGS): Likewise.
25647 (mdraid_mod_LDFLAGS): Likewise.
25648 (dm_nv_mod_SOURCES): Likewise.
25649 (dm_nv_mod_CFLAGS): Likewise.
25650 (dm_nv_mod_LDFLAGS): Likewise.
25652 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
25653 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
25654 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
25656 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
25657 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
25659 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25661 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
25663 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25667 * disk/raid5_recover.c: New file.
25669 * disk/raid6_recover.c: Likewise.
25671 * disk/mdraid_linux.c: Likewise.
25673 * disk/dmraid_nvidia.c: Likewise.
25675 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
25678 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
25679 calculate the size of raid device.
25680 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
25681 different layout of raid5.
25682 (grub_raid_scan_device): Remove code specific to mdraid.
25683 (grub_raid_list): New variable.
25684 (free_array): New function.
25685 (grub_raid_register): Likewise.
25686 (grub_raid_unregister): Likewise.
25687 (grub_raid_rescan): Likewise.
25688 (GRUB_MOD_INIT): Don't iterate device here.
25689 (GRUB_MOD_FINI): Use free_array to release resource.
25691 * include/grub/raid.h: Remove macro and structure specific to mdraid.
25692 (grub_raid5_recover_func_t): New function variable type.
25693 (grub_raid6_recover_func_t): Likewise.
25694 (grub_raid5_recover_func): New variable.
25695 (grub_raid6_recover_func): Likewise.
25696 (grub_raid_register): New function.
25697 (grub_raid_unregister): Likewise.
25698 (grub_raid_rescan): Likewise.
25699 (grub_raid_block_xor): Likewise.
25701 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
25702 (CMD_CRC): New macro.
25704 (read_file): Handle device as well as file.
25705 (cmd_crc): New function.
25706 (fstest): Handle multiple disks.
25707 (options): Remove part, raw and long, add root and diskcount.
25708 (usage): Add crc, remove -p, -r, -l, add -r and -c.
25709 (main): Find the first non option entry and ignore subsequent options,
25710 add handling for the new options, support multiple disks.
25712 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
25714 2008-08-23 Bean <bean123ch@gmail.com>
25716 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
25718 * genfslist.sh: Ignore kernel.mod.
25720 * genpartmaplist.sh: Likewise.
25722 2008-08-23 Robert Millan <rmh@aybabtu.com>
25724 * util/getroot.c (find_root_device): Skip anything that starts with
25725 a dot, not just directories. This avoids things like /dev/.tmp.md0.
25727 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
25729 * util/update-grub.in (GRUB_GFXMODE): Export variable.
25730 * util/grub.d/00_header.in: Allow the administrator to change default
25731 gfxmode via ${GRUB_GFXMODE}.
25733 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
25735 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
25737 2008-08-21 Robert Millan <rmh@aybabtu.com>
25739 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
25741 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
25742 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
25744 2008-08-20 Carles Pina i Estany <carles@pina.cat>
25746 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
25747 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
25749 2008-08-19 Robert Millan <rmh@aybabtu.com>
25751 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
25752 (struct grub_virtual_screen): Remove `cursor_color'.
25753 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
25755 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
25757 2008-08-18 Robert Millan <rmh@aybabtu.com>
25759 Unify (identical) linux_normal.c files.
25760 * loader/i386/efi/linux_normal.c: Move from here ...
25761 * loader/linux_normal.c: ... to here. Update all users.
25762 * loader/i386/pc/linux_normal.c: Delete. Update all users.
25763 * loader/i386/ieee1275/linux_normal.c: Likewise.
25765 2008-08-18 Robert Millan <rmh@aybabtu.com>
25767 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
25768 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
25769 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
25770 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
25771 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
25773 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
25774 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
25775 (GRUB_LINUX_CL_END_OFFSET): ... to here.
25776 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
25777 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
25778 (GRUB_EFI_CL_END_OFFSET): Rename to ...
25779 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
25780 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
25781 Initialize `params->video_cursor_x' and `params->video_cursor_y'
25782 portably using grub_getxy().
25783 Replace `-EFI' with `-bzImage' in boot message.
25785 2008-08-17 Robert Millan <rmh@aybabtu.com>
25787 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
25789 2008-08-17 Robert Millan <rmh@aybabtu.com>
25791 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
25793 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
25794 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
25795 (grub_machine_mmap_iterate): New function declaration.
25796 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
25798 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
25801 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
25802 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
25803 Move e820 parsing from here ...
25804 * kern/i386/pc/mmap.c: New file.
25805 (grub_machine_mmap_iterate): ... to here.
25807 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
25808 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
25809 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
25810 (grub_available_iterate): Redeclare to return `void', and redeclare
25811 its hook to use grub_uint64_t as addr and size parameters, and rename
25813 (grub_machine_mmap_iterate): ... this. Update all users.
25815 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
25816 to make it more readable. Rename to ...
25817 (grub_machine_mmap_iterate): ... this.
25819 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
25820 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
25821 (grub_multiboot): Allocate an extra region after the payload, and fill
25822 it with a Multiboot memory map. Adjust a.out loader to calculate size
25823 with the extra space.
25824 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
25825 with the extra space.
25827 2008-08-17 Carles Pina i Estany <carles@pina.cat>
25829 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
25831 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
25833 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
25834 mdate-sh to the list `find' searches for.
25835 * DISTLIST: Regenerated.
25837 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
25839 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
25840 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
25841 genmoddep.awk, gensymlist.sh.in.
25842 (DISTDIRS): Add bus, docs, hook, lib.
25843 * DISTLIST: Regenerated.
25844 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
25846 2008-08-16 Robert Millan <rmh@aybabtu.com>
25848 * disk/raid.c (grub_raid_init): Handle/report errors set by
25849 grub_device_iterate().
25850 * disk/lvm.c (grub_lvm_init): Likewise.
25852 2008-08-15 Bean <bean123ch@gmail.com>
25854 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25856 (datetime_mod_SOURCES): New macro.
25857 (datetime_mod_CFLAGS): Likewise.
25858 (datetime_mod_LDFLAGS): Likewise.
25859 (date_mod_SOURCES): Likewise.
25860 (date_mod_CFLAGS): Likewise.
25861 (date_mod_LDFLAGS): Likewise.
25862 (datehook_mod_SOURCES): Likewise.
25863 (datehook_mod_CFLAGS): Likewise.
25864 (datehook_mod_LDFLAGS): Likewise.
25866 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25868 (datetime_mod_SOURCES): New macro.
25869 (datetime_mod_CFLAGS): Likewise.
25870 (datetime_mod_LDFLAGS): Likewise.
25871 (date_mod_SOURCES): Likewise.
25872 (date_mod_CFLAGS): Likewise.
25873 (date_mod_LDFLAGS): Likewise.
25874 (datehook_mod_SOURCES): Likewise.
25875 (datehook_mod_CFLAGS): Likewise.
25876 (datehook_mod_LDFLAGS): Likewise.
25878 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25880 (datetime_mod_SOURCES): New macro.
25881 (datetime_mod_CFLAGS): Likewise.
25882 (datetime_mod_LDFLAGS): Likewise.
25883 (date_mod_SOURCES): Likewise.
25884 (date_mod_CFLAGS): Likewise.
25885 (date_mod_LDFLAGS): Likewise.
25886 (datehook_mod_SOURCES): Likewise.
25887 (datehook_mod_CFLAGS): Likewise.
25888 (datehook_mod_LDFLAGS): Likewise.
25890 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25892 (datetime_mod_SOURCES): New macro.
25893 (datetime_mod_CFLAGS): Likewise.
25894 (datetime_mod_LDFLAGS): Likewise.
25895 (date_mod_SOURCES): Likewise.
25896 (date_mod_CFLAGS): Likewise.
25897 (date_mod_LDFLAGS): Likewise.
25898 (datehook_mod_SOURCES): Likewise.
25899 (datehook_mod_CFLAGS): Likewise.
25900 (datehook_mod_LDFLAGS): Likewise.
25902 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25904 (datetime_mod_SOURCES): New macro.
25905 (datetime_mod_CFLAGS): Likewise.
25906 (datetime_mod_LDFLAGS): Likewise.
25907 (date_mod_SOURCES): Likewise.
25908 (date_mod_CFLAGS): Likewise.
25909 (date_mod_LDFLAGS): Likewise.
25910 (datehook_mod_SOURCES): Likewise.
25911 (datehook_mod_CFLAGS): Likewise.
25912 (datehook_mod_LDFLAGS): Likewise.
25914 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
25916 * commands/date.c: New file.
25918 * hook/datehook.c: Likewise.
25920 * include/grub/lib/datetime.h: Likewise.
25922 * include/grub/i386/cmos.h: Likewise.
25924 * lib/datetime.c: Likewise.
25926 * lib/i386/datetime.c: Likewise.
25928 * lib/efi/datetime.c: Likewise.
25930 2008-08-14 Robert Millan <rmh@aybabtu.com>
25932 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
25933 (grub_mkelfimage_SOURCES): New variable.
25934 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
25936 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
25937 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
25938 * conf/powerpc-ieee1275.rmk: Likewise.
25939 * conf/i386-ieee1275.rmk: Likewise.
25941 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
25942 * kern/i386/coreboot/init.c: Likewise.
25944 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
25945 with `<grub/cpu/kernel.h>'.
25946 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
25948 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
25949 * kern/i386/coreboot/startup.S: Likewise.
25951 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
25952 (GRUB_MOD_GAP): Remove.
25953 * include/grub/powerpc/kernel.h: New file.
25954 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
25955 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
25956 * include/grub/i386/kernel.h: New file.
25957 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
25958 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
25959 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
25961 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
25963 Use --directory when invoking grub_mkimage.
25965 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
25966 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
25967 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
25968 and GRUB_KERNEL_CPU_PREFIX.
25970 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
25972 * include/grub/err.h (grub_err_printf): New function prototype.
25973 * util/misc.c (grub_err_printf): New function.
25974 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
25976 * kern/err.c (grub_print_error): Use grub_err_printf.
25978 2008-08-13 Robert Millan <rmh@aybabtu.com>
25980 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
25982 2008-08-13 Robert Millan <rmh@aybabtu.com>
25984 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
25987 2008-08-12 Robert Millan <rmh@aybabtu.com>
25989 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
25990 of the relocation code from here ...
25991 (grub_multiboot): ... to here.
25992 (forward_relocator, backward_relocator): Move from here ...
25993 * kern/i386/loader.S (grub_multiboot_forward_relocator)
25994 (grub_multiboot_backward_relocator): ... to here.
25995 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
25996 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
25997 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
25998 (grub_multiboot_forward_relocator_end)
25999 (grub_multiboot_backward_relocator)
26000 (grub_multiboot_backward_relocator_end): New variables.
26002 2008-08-12 Bean <bean123ch@gmail.com>
26004 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
26006 2008-08-11 Robert Millan <rmh@aybabtu.com>
26008 * kern/i386/linuxbios/startup.S: Move from here ...
26009 * kern/i386/coreboot/startup.S: ... to here.
26011 * kern/i386/linuxbios/init.c: Move from here ...
26012 * kern/i386/coreboot/init.c: ... to here.
26014 * kern/i386/linuxbios/table.c: Move from here ...
26015 * kern/i386/coreboot/mmap.c: ... to here.
26017 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
26019 2008-08-11 Robert Millan <rmh@aybabtu.com>
26021 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
26022 errors. Leave it to the upper layer to handle them.
26024 2008-08-09 Christian Franke <franke@computer.org>
26026 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
26027 * conf/common.rmk: Install `grub-pe2elf' only if requested.
26028 Install `grub.d/10_windows' only on Cygwin.
26029 * configure.ac: Add subst of `target_os'.
26030 Check `target_os' also before setting TARGET_OBJ2ELF.
26031 Add `--enable-grub-pe2elf'.
26033 2008-08-08 Robert Millan <rmh@aybabtu.com>
26035 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
26036 (grub_last_time): Change type to grub_uint64_t.
26037 (grub_disk_open): Migrate code from to using grub_get_time_ms().
26038 (grub_disk_close): Likewise.
26040 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
26041 (run_menu): Migrate code from to using grub_get_time_ms().
26043 * util/misc.c (grub_get_time_ms): New function.
26045 2008-08-08 Marco Gerards <marco@gnu.org>
26047 * disk/ata.c (grub_ata_regget): Change return type to
26049 (grub_ata_regget2): Likewise.
26050 (grub_ata_wait_status): New function.
26051 (grub_ata_wait_busy): Removed function, updated all users to use
26052 `grub_ata_wait_status'.
26053 (grub_ata_wait_drq): Likewise.
26054 (grub_ata_cmd): New function.
26055 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
26057 (grub_ata_pio_write): Add error handling.
26058 (grub_atapi_identify): Likewise.
26059 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
26061 (grub_ata_identify): Use `grub_ata_cmd' and improve error
26062 handling. Actually use the detected registers. Reorder the
26063 detection logic such that it is easier to read.
26064 (grub_ata_pciinit): Do not assign the same ID to each controller.
26065 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
26067 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
26069 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
26071 2008-08-08 Marco Gerards <marco@gnu.org>
26075 2008-08-07 Bean <bean123ch@gmail.com>
26077 * include/grub/x86_64/pci.h: New file.
26079 2008-08-07 Christian Franke <franke@computer.org>
26081 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
26082 (TIMER2_GATE): Likewise.
26083 (grub_pit_wait): Add enable/disable of the timer2 gate
26084 bit of port 0x61. This fixes a possible infinite loop.
26086 2008-08-07 Bean <bean123ch@gmail.com>
26088 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
26089 kern/i386/tsc.c and kern/i386/pit.c.
26091 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
26094 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
26097 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
26099 2008-08-07 Bean <bean123ch@gmail.com>
26101 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
26103 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
26105 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
26106 multiple inclusion. Add #include <grub/types.h>.
26108 2008-08-06 Christian Franke <franke@computer.org>
26110 * conf/common.rmk: Build and install `10_windows'.
26111 * util/grub.d/10_windows.in: New script.
26113 2008-08-06 Pavel Roskin <proski@gnu.org>
26115 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
26117 2008-08-06 Robert Millan <rmh@aybabtu.com>
26119 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
26120 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
26122 2008-08-06 Bean <bean123ch@gmail.com>
26124 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
26125 (grub_pxefs_fs_int): Remove dummy definition.
26126 (grub_pxefs_open): Use data->block_size to store the current block
26128 (grub_pxefs_read): Use block size stored in data->block_size. As the
26129 value of grub_pxe_blksize can be changed after the file is opened.
26131 2008-08-06 Bean <bean123ch@gmail.com>
26133 * fs/i386/pc/pxe.c (curr_file): new variable.
26134 (grub_pxefs_open): Simply the handling of pxe file system. Don't
26135 require the dummy internal file system anymore.
26136 (grub_pxefs_read): Removed.
26137 (grub_pxefs_close): Likewise.
26138 (grub_pxefs_fs_int): Likewise.
26139 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
26140 connection when we switch file.
26141 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
26143 2008-08-06 Robert Millan <rmh@aybabtu.com>
26145 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
26147 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
26148 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
26150 * kern/i386/halt.c: New file.
26151 * kern/i386/reboot.c: Likewise.
26152 * include/grub/i386/reboot.h: Likewise.
26153 * include/grub/i386/halt.h: Likewise.
26155 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
26156 Include `<grub/cpu/halt.h>'.
26157 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
26158 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
26160 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
26161 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
26162 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
26163 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
26164 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
26165 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
26167 * include/grub/i386/at_keyboard.h: ... to here.
26169 2008-08-05 Robert Millan <rmh@aybabtu.com>
26171 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
26172 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
26173 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
26174 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
26175 `kern/generic/millisleep.c'.
26177 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
26178 instead of grub_get_rtc().
26179 (grub_tsc_init): Initialize `tsc_boot_time'.
26181 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
26182 (grub_machine_init): Use grub_tsc_init() rather than
26183 installing an RTC-based handler via grub_install_get_time_ms().
26185 * kern/i386/pit.c: New file.
26186 * include/grub/i386/pit.h: Likewise.
26188 2008-08-05 Bean <bean123ch@gmail.com>
26190 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
26192 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
26193 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
26194 (pxe_mod_SOURCES): New macro.
26195 (pxe_mod_CFLAGS): Likewise.
26196 (pxe_mod_LDFLAGS): Likewise.
26197 (pxecmd_mod_SOURCES): Likewise.
26198 (pxecmd_mod_CFLAGS): Likewise.
26199 (pxecmd_mod_LDFLAGS): Likewise.
26201 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
26202 (grub_pxe_call): Likewise.
26204 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
26206 * commands/i386/pc/pxecmd.c: New file.
26208 * fs/i386/pc/pxe.c: Likewise.
26210 * include/grub/i386/pc/pxe.h: Likewise.
26212 2008-08-05 Bean <bean123ch@gmail.com>
26214 * util/console.c (grub_console_cur_color): New variable.
26215 (grub_console_standard_color): Likewise.
26216 (grub_console_normal_color): Likewise.
26217 (grub_console_highlight_color): Likewise.
26218 (color_map): Likewise.
26219 (use_color): Likewise.
26220 (NUM_COLORS): New macro.
26221 (grub_ncurses_setcolorstate): Handle color properly.
26222 (grub_ncurses_setcolor): Don't change color here, just remember the
26223 settings, color will be set in grub_ncurses_setcolorstate.
26224 (grub_ncurses_getcolor): New function.
26225 (grub_ncurses_init): Initialize color pairs.
26226 (grub_ncurses_term): New member grub_ncurses_getcolor.
26228 2008-08-05 Colin D Bennett <colin@gibibit.com>
26230 High resolution timer support. Implemented for x86 CPUs using TSC.
26231 Extracted generic grub_millisleep() so it's linked in only as needed.
26232 This requires a Pentium compatible CPU; if the RDTSC instruction is
26233 not supported, then it falls back on the generic grub_get_time_ms()
26234 implementation that uses the machine's RTC.
26236 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
26237 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
26238 `kern/generic/millisleep.c'.
26240 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
26241 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
26243 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
26244 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
26246 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
26248 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
26249 `kern/generic/millisleep.c'.
26251 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
26253 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
26255 * kern/generic/rtc_get_time_ms.c: New file.
26257 * kern/generic/millisleep.c: New file.
26259 * kern/misc.c: Don't include
26260 <kern/time.h> anymore.
26261 (grub_millisleep_generic): Removed.
26263 * commands/sleep.c (grub_interruptible_millisleep): Uses
26264 grub_get_time_ms() instead of grub_get_rtc().
26266 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
26268 (grub_cpu_is_cpuid_supported): New inline function.
26269 (grub_cpu_is_tsc_supported): New inline function.
26270 (grub_tsc_init): New function prototype.
26271 (grub_tsc_get_time_ms): New function prototype.
26273 * kern/i386/tsc.c (grub_get_time_ms): New file.
26275 * include/grub/time.h: Include <grub/types.h.
26276 (grub_millisleep_generic): Removed.
26277 (grub_get_time_ms): New prototype.
26278 (grub_install_get_time_ms): New prototype.
26279 (grub_rtc_get_time_ms): New prototype.
26281 * kern/time.c (grub_get_time_ms): New function.
26282 (grub_install_get_time_ms): New function.
26284 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
26285 <grub/time.h> anymore.
26286 (grub_millisleep): Removed.
26287 (grub_machine_init): Call grub_tsc_init.
26289 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
26290 get_time_ms() implementation.
26292 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
26293 (ieee1275_get_time_ms): New function.
26294 (grub_machine_init): Install get_time_ms() implementation.
26296 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
26297 (grub_machine_init): Call grub_tsc_init().
26298 (grub_millisleep): Removed.
26300 * kern/ieee1275/init.c (grub_millisleep): Removed.
26301 (grub_machine_init): Install ieee1275_get_time_ms()
26303 (ieee1275_get_time_ms): New function.
26304 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
26307 2008-08-05 Marco Gerards <marco@gnu.org>
26309 * disk/ata.c: Include <grub/pci.h>.
26310 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
26311 (grub_ata_initialize): Rewritten.
26312 (grub_ata_device_initialize): New function.
26314 2008-08-04 Pavel Roskin <proski@gnu.org>
26316 * kern/main.c: Include grub/mm.h.
26318 2008-08-04 Robert Millan <rmh@aybabtu.com>
26320 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
26321 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
26322 corruption problem).
26324 2008-08-04 Robert Millan <rmh@aybabtu.com>
26326 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
26327 warnings introduced in my last commit.
26329 2008-08-03 Robert Millan <rmh@aybabtu.com>
26331 Make PCI available on all i386 architectures.
26333 * include/grub/i386/pc/pci.h: Move from here ...
26334 * include/grub/i386/pci.h: ... to here.
26336 * include/grub/i386/pc/pci.h: Remove.
26337 * include/grub/i386/efi/pci.h: Remove.
26338 * include/grub/x86_64/efi/pci.h: Remove.
26340 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
26341 `<grub/cpu/pci.h>'.
26343 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
26344 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
26345 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
26347 * conf/i386-ieee1275.rmk: Likewise.
26349 2008-08-03 Robert Millan <rmh@aybabtu.com>
26351 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
26352 (grub_console_setcursor): Make it possible to set cursor off.
26354 2008-08-03 Robert Millan <rmh@aybabtu.com>
26356 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
26357 of modules instead of assuming which platform provides what.
26358 * util/update-grub.in: Likewise.
26360 2008-08-03 Robert Millan <rmh@aybabtu.com>
26362 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
26363 instead of `grub_install_dos_part' to determine whether a drive needs
26364 to be prepended to prefix (`grub_install_dos_part' is not reliable,
26365 because it can be overridden when loading GRUB via Multiboot).
26367 2008-08-02 Robert Millan <rmh@aybabtu.com>
26369 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
26371 2008-08-02 Robert Millan <rmh@aybabtu.com>
26373 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
26374 of informational grub_dprintf() calls.
26376 2008-08-02 Robert Millan <rmh@aybabtu.com>
26378 * disk/memdisk.c (memdisk_size): Don't initialize.
26379 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
26381 * include/grub/i386/pc/kernel.h
26382 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
26383 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
26384 (grub_memdisk_image_size, grub_arch_memdisk_addr)
26385 (grub_arch_memdisk_size): Remove.
26387 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
26388 field (was only used to transfer a constant). Add `type' field to
26389 support multiple module types.
26390 (grub_module_iterate): New function.
26392 * kern/device.c (grub_device_open): Do not hide error messages
26393 when grub_disk_open() fails. Use grub_print_error() instead.
26395 * kern/i386/pc/init.c (grub_arch_modules_addr)
26396 (grub_arch_memdisk_size): Remove functions.
26397 (grub_arch_modules_addr): Return the module address in high memory
26398 (now that it isn't copied anymore).
26400 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
26401 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
26402 decompression routine (grub_total_module_size already includes that
26403 now). Don't copy modules back to low memory.
26405 * kern/main.c: Include `<grub/mm.h>'.
26406 (grub_load_modules): Split out (and use) ...
26407 (grub_module_iterate): ... this function, which iterates through
26408 module objects and runs a hook.
26409 Comment out grub_mm_init_region() call, as it would cause non-ELF
26410 modules to be overwritten.
26412 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
26413 the memdisk image in its own region, make it part of the module list.
26414 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
26415 (main): Parse --memdisk|-m option, and pass user-provided path as
26416 parameter to generate_image().
26417 (add_segments): Pass `memdisk_path' down to load_modules().
26418 (load_modules): Embed memdisk image in module section when requested.
26419 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
26420 `header.type' instead of `header.offset'.
26422 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
26423 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
26424 (memdisk_mod_LDFLAGS): New variables.
26425 * conf/i386-coreboot.rmk: Likewise.
26426 * conf/i386-ieee1275.rmk: Likewise.
26428 2008-08-02 Robert Millan <rmh@aybabtu.com>
26430 * loader/i386/pc/multiboot.c (playground, forward_relocator)
26431 (backward_relocator): New variables. Used to allocate and relocate
26432 the payload, respectively.
26433 (grub_multiboot_load_elf32): Load into heap instead of requested
26434 address, install the appropriate relocator code in each bound of
26435 the payload, and set the entry point such that
26436 grub_multiboot_real_boot() will jump to one of them.
26438 * kern/i386/loader.S (grub_multiboot_payload_size)
26439 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
26440 (grub_multiboot_payload_entry_offset): New variables.
26441 (grub_multiboot_real_boot): Set cpu context to what the relocator
26442 expects, and jump to the relocator instead of the payload.
26444 * include/grub/i386/loader.h (grub_multiboot_payload_size)
26445 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
26446 (grub_multiboot_payload_entry_offset): Export.
26448 2008-08-01 Bean <bean123ch@gmail.com>
26450 * normal/menu_entry.c (editor_getline): Don't return the original
26451 string as result, as it will be released by lexer once it has done
26454 2008-08-01 Robert Millan <rmh@aybabtu.com>
26456 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
26457 within menuentries, not before them.
26458 util/grub.d/10_hurd.in: Likewise.
26460 2008-08-01 Bean <bean123ch@gmail.com>
26462 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
26463 (bufio_mod_SOURCES): New macro.
26464 (bufio_mod_CFLAGS): Likewise.
26465 (bufio_mod_LDFLAGS): Likewise.
26467 * include/grub/bufio.h: New file.
26469 * io/bufio.c: Likewise.
26471 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
26472 (grub_video_reader_png): Use grub_buffile_open to open file.
26474 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
26475 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
26477 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
26478 (grub_video_reader_tga): Use grub_buffile_open to open file.
26480 * font/manager.c: Include <grub/bufio.h>.
26481 (add_font): Use grub_buffile_open to open file.
26483 2008-07-31 Robert Millan <rmh@aybabtu.com>
26485 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
26486 ELF segments, use a macro for arbitrarily accessing any of them instead
26487 of preparing a pointer that allows access to one at a time.
26488 (grub_multiboot_load_elf64): Likewise.
26490 2008-07-31 Bean <bean123ch@gmail.com>
26492 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
26493 GRUB_KERNEL_MACHINE_DATA_END.
26495 2008-07-30 Robert Millan <rmh@aybabtu.com>
26497 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
26498 Increase from 0x50 to 0x60.
26499 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
26500 use UUIDs to identify the root drive for them. If that's not
26502 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
26503 check, for cross-disk installs.
26505 2008-07-30 Robert Millan <rmh@aybabtu.com>
26507 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
26508 is non-empty, use it to set the `prefix' environment variable instead
26509 of the usual approach.
26510 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
26511 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
26512 environment variable instead of dummy make_install_device().
26514 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
26515 (start): Insert a data section, with `grub_prefix' variable.
26516 * kern/i386/linuxbios/startup.S: Likewise.
26518 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
26519 New variable reference.
26520 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
26521 New macro. Defines offset of `grub_prefix' within startup.S (relative
26523 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
26524 section within startup.S (relative to `start').
26525 * include/grub/i386/coreboot/kernel.h: Likewise.
26527 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
26528 Overwrite grub_prefix with its contents, at the beginning of the
26530 (main): Understand -p|--prefix.
26532 2008-07-30 Robert Millan <rmh@aybabtu.com>
26534 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
26536 2008-07-30 Robert Millan <rmh@aybabtu.com>
26538 * term/i386/pc/vga_text.c (grub_console_cls): Use
26539 grub_console_gotoxy() to go back to beginning of the screen.
26540 Found by Patrick Georgi <patrick.georgi@coresystems.de>
26542 2008-07-29 Christian Franke <franke@computer.org>
26544 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
26545 Add conversion of emulated mount points on Cygwin.
26547 2008-07-29 Christian Franke <franke@computer.org>
26549 * util/update-grub.in: Add a check for admin
26551 Remove old `grub.cfg.new' before creation.
26552 Add `-f' to `mv' to handle the different filesystem
26553 semantics of Windows.
26555 2008-07-29 Bean <bean123ch@gmail.com>
26557 * normal/main.c (get_line): Fix buffer overflow bug.
26559 2008-07-28 Robert Millan <rmh@aybabtu.com>
26561 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
26562 (struct grub_apple_header): New struct. Describes the layout of
26563 the partmap header.
26564 (apple_partition_map_iterate): Check the header magic as well as the
26565 partition magic (which was already being checked).
26567 2008-07-28 Pavel Roskin <proski@gnu.org>
26569 * genmk.rb: Add a warning to the beginning of the output that
26570 it's a generated file and should not be edited.
26572 2008-07-28 Robert Millan <rmh@aybabtu.com>
26574 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
26575 with the same number are found, just use issue a warning with
26576 grub_dprintf(), as this error has been reported to be non-fatal.
26578 2008-07-27 Robert Millan <rmh@aybabtu.com>
26580 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
26583 2008-07-27 Bean <bean123ch@gmail.com>
26585 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
26586 (grub_fat_find_dir): Ignore case when comparing filename.
26588 2008-07-27 Bean <bean123ch@gmail.com>
26590 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
26591 smallino, as it's more descriptive, and i8count can be confused with
26592 the other field count.
26593 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
26596 2008-07-27 Bean <bean123ch@gmail.com>
26598 * commands/crc.c: New file.
26600 * lib/crc.c: Likewise.
26602 * include/grub/lib/crc.h: Likewise.
26604 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
26606 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
26607 (hexdump): Move this function to ...
26609 * lib/hexdump.c: ... here.
26611 * include/grub/hexdump.h: Renamed to ...
26613 * include/grub/lib/hexdump.h: ... this.
26615 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
26617 * util/grub-editenv.c: Likewise.
26619 * include/envblk.h: Renamed to ...
26621 * include/lib/envblk.h: ... this.
26623 * util/envblk.c: Renamed to ...
26625 * lib/envblk.c: ... this.
26627 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
26629 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
26630 (pkglib_MODULES): Add crc.mod.
26631 (hexdump_mod_SOURCES): Add lib/hexdump.c.
26632 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
26633 (crc_mod_SOURCES): New macro.
26634 (crc_mod_CFLAGS): Likewise.
26635 (crc_mod_LDFLAGS): Likewise.
26637 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
26639 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26641 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26645 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26647 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
26649 * commands/help.c: Include <grub/term.h>.
26650 (TERM_WIDTH): Removed. Updated all users.
26652 2008-07-27 Pavel Roskin <proski@gnu.org>
26654 * util/getroot.c (find_root_device): Rephrase a comment to avoid
26655 spurious warnings about a comment within a comment.
26657 2008-07-25 Robert Millan <rmh@aybabtu.com>
26659 * util/getroot.c (find_root_device): Skip devices that match
26660 /dev/dm-[0-9]. This lets the real device be found for any type of
26661 abstraction (LVM, EVMS, RAID..).
26662 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
26663 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
26664 device is found first, find_root_device() will now skip it.
26666 2008-07-24 Pavel Roskin <proski@gnu.org>
26668 * include/grub/types.h: Use __builtin_bswap32() and
26669 __builtin_bswap64() with gcc 4.3 and newer.
26671 2008-07-24 Christian Franke <franke@computer.org>
26673 * util/i386/pc/grub-install.in: If `--debug' is specified,
26674 pass `--verbose' to grub-setup.
26675 Abort script if make_system_path_relative_to_its_root() fails.
26677 2008-07-24 Bean <bean123ch@gmail.com>
26679 * configure.ac: Fixed a bug caused by the previous cygwin patch,
26680 variable `target_platform' should be `platform'.
26682 2008-07-24 Bean <bean123ch@gmail.com>
26684 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
26685 (grub_png_init_fixed_block): New function.
26686 (grub_png_decode_image_data): Handle fixed huffman code compression.
26688 2008-07-24 Bean <bean123ch@gmail.com>
26690 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
26691 (grub_pe2elf_SOURCES): New macro.
26692 (CLEANFILES): Add grub-pe2elf.
26694 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
26695 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
26696 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
26697 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
26698 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
26699 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
26700 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
26701 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
26702 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
26703 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
26704 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
26705 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
26706 (GRUB_PE32_DT_FUNCTION): Likewise.
26707 (GRUB_PE32_REL_I386_DIR32): Likewise.
26708 (GRUB_PE32_REL_I386_REL32): Likewise.
26709 (grub_pe32_symbol): New structure.
26710 (grub_pe32_reloc): Likewise.
26712 * util/grub-pe2elf.c: New file.
26714 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
26715 start symbol in non pc platform.
26717 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
26719 The following patches are from Christian Franke.
26721 * include/grub/dl.h: Remove .previous, gas supports this only
26724 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
26725 Remove .type, gas supports this only for ELF format.
26727 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
26728 nullbytes in symbol table. This fixes an infinite loop if table is
26731 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
26732 TARGET_IMG_LDFLAGS and EXEEXT.
26734 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
26735 TARGET_IMG_LDFLAGS_AC.
26736 (grub_CHECK_STACK_ARG_PROBE): New function.
26738 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
26740 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
26742 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
26743 to set TARGET_IMG_LD* accordingly.
26744 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
26745 Add call to grub_CHECK_STACK_ARG_PROBE.
26746 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
26748 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
26750 * genmk.rb: Add EXEEXT to CLEANFILES.
26752 2008-07-23 Robert Millan <rmh@aybabtu.com>
26754 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
26755 define the codes for arrows and lines used for the menu).
26756 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
26759 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
26760 fonts, because the latter are too slow.
26762 2008-07-21 Bean <bean123ch@gmail.com>
26764 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
26765 a20. Run keyboard test last, as it will cause macbook to halt.
26767 2008-07-18 Pavel Roskin <proski@gnu.org>
26769 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
26770 load foreign architecture modules correctly anyway. Keep
26771 support for loading host architecture modules, whether we
26772 compile them or not.
26774 2008-07-17 Pavel Roskin <proski@gnu.org>
26776 * configure.ac: Use -m32 or -m64 regardless of whether we had to
26777 change target_cpu. The compiler default can mismatch target_cpu
26780 * disk/efi/efidisk.c: Fix format warnings on x86_64.
26781 * kern/efi/efi.c: Likewise.
26783 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
26784 target compiler is functional.
26785 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
26788 * configure.ac: Default to efi platform for x86_64-apple. Allow
26789 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
26790 adjustments from the rest, only do them if target is not
26791 explicitly given. Merge other adjustments with the final sanity
26792 check. Remove an extraneous check for supported CPU. Be
26793 specific which CPU and which platform is not supported.
26795 * configure.ac: Default to pc platform for x86_64.
26797 2008-07-17 Robert Millan <rmh@aybabtu.com>
26799 Partial LinuxBIOS -> Coreboot rename.
26801 * conf/i386-linuxbios.rmk: Renamed to ...
26802 * conf/i386-coreboot.rmk: ... this.
26803 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
26804 * configure.ac: Accept "coreboot" as input platform (but maintain
26805 compatibility with "linuxbios").
26806 * include/grub/i386/linuxbios: Renamed to ...
26807 * include/grub/i386/coreboot: ... this.
26809 2008-07-17 Bean <bean123ch@gmail.com>
26811 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
26812 (appleldr_mod_SOURCE): New variable.
26813 (appleldr_mod_CFLAGS): Likewise.
26814 (appleldr_mod_LDFLAGS): Likewise.
26815 (pci_mod_SOURCES): Likewise.
26816 (pci_mod_CFLAGS): Likewise.
26817 (pci_mod_LDFLAGS): Likewise.
26818 (lspci_mod_SOURCES): Likewise.
26819 (lspci_mod_CFLAGS): Likewise.
26820 (lspci_mod_LDFLAGS): Likewise.
26822 * conf/x86_64-efi.rmk: New file.
26824 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
26826 (grub_efidisk_write): Likewise.
26828 * include/efi/api.h (efi_call_0): New macro.
26829 (efi_call_1): Likewise.
26830 (efi_call_2): Likewise.
26831 (efi_call_3): Likewise.
26832 (efi_call_4): Likewise.
26833 (efi_call_5): Likewise.
26834 (efi_call_6): Likewise.
26836 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
26837 grub_rescue_cmd_chainloader.
26839 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
26840 (grub_pe32_optional_header): Change some fields based on i386 or
26842 (GRUB_PE32_PE32_MAGIC): Likewise.
26844 * include/grub/efi/uga_draw.h: New file.
26846 * include/grub/elf.h (STN_ABS): New constant.
26847 (R_X86_64_NONE): Relocation constant for x86_64.
26848 (R_X86_64_64): Likewise.
26849 (R_X86_64_PC32): Likewise.
26850 (R_X86_64_GOT32): Likewise.
26851 (R_X86_64_PLT32): Likewise.
26852 (R_X86_64_COPY): Likewise.
26853 (R_X86_64_GLOB_DAT): Likewise.
26854 (R_X86_64_JUMP_SLOT): Likewise.
26855 (R_X86_64_RELATIVE): Likewise.
26856 (R_X86_64_GOTPCREL): Likewise.
26857 (R_X86_64_32): Likewise.
26858 (R_X86_64_32S): Likewise.
26859 (R_X86_64_16): Likewise.
26860 (R_X86_64_PC16): Likewise.
26861 (R_X86_64_8): Likewise.
26862 (R_X86_64_PC8): Likewise.
26864 * include/grub/i386/efi/pci.h: New file.
26866 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
26867 Change it value based on platform.
26868 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
26869 (GRUB_E820_RAM): Likewise.
26870 (GRUB_E820_RESERVED): Likewise.
26871 (GRUB_E820_ACPI): Likewise.
26872 (GRUB_E820_NVS): Likewise.
26873 (GRUB_E820_EXEC_CODE): Likewise.
26874 (GRUB_E820_MAX_ENTRY): Likewise.
26875 (grub_e820_mmap): New structure.
26876 (linux_kernel_header): Change the efi field according to different
26877 kernel version, also field from linux_kernel_header.
26879 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
26881 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
26882 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
26883 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
26884 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
26885 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
26886 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
26887 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
26888 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
26889 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
26890 (GRUB_PCI_ADDR_IO_MASK): Likewise.
26892 * include/grub/x86_64/efi/kernel.h: New file.
26894 * include/grub/x86_64/efi/loader.h: Likewise.
26896 * include/grub/x86_64/efi/machine.h: Likewise.
26898 * include/grub/x86_64/efi/pci.h: Likewise.
26900 * include/grub/x86_64/efi/time.h: Likewise.
26902 * include/grub/x86_64/linux.h: Likewise.
26904 * include/grub/x86_64/setjmp.h: Likewise.
26906 * include/grub/x86_64/time.h: Likewise.
26908 * include/grub/x86_64/types.h: Likewise.
26910 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
26911 GRUB_TARGET_SIZEOF_VOID_P.
26913 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
26914 (grub_efi_locate_handle): Likewise.
26915 (grub_efi_open_protocol): Likewise.
26916 (grub_efi_set_text_mode): Likewise.
26917 (grub_efi_stall): Likewise.
26918 (grub_exit): Likewise.
26919 (grub_reboot): Likewise.
26920 (grub_halt): Likewise.
26921 (grub_efi_exit_boot_services): Likewise.
26922 (grub_get_rtc): Likewise.
26924 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
26925 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
26926 (grub_efi_allocate_pages): Wrap efi calls.
26927 (grub_efi_free_pages): Wrap efi calls.
26928 (grub_efi_get_memory_map): Wrap efi calls.
26930 * kern/x86_64/dl.c: New file.
26932 * kern/x86_64/efi/callwrap.S: Likewise.
26934 * kern/x86_64/efi/startup.S: Likewise.
26936 * loader/efi/appleloader.c: Likewise.
26938 * loader/efi/chainloader.c (cmdline): New variable.
26939 (grub_chainloader_unload): Wrap efi calls.
26940 (grub_chainloader_boot): Likewise.
26941 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
26944 * loader/efi/chainloader_normal.c (chainloader_command):
26945 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
26948 * loader/i386/efi/linux.c (allocate_pages): Change allocation
26950 (grub_e820_add_region): New function.
26951 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
26953 (grub_find_video_card): New function.
26954 (grub_linux_setup_video): New function.
26955 (grub_rescue_cmd_linux): Probe for video information.
26957 * normal/x86_64/setjmp.S: New file.
26959 * term/efi/console.c (map_char): New function.
26960 (grub_console_putchar): Map unicode char.
26961 (grub_console_checkkey): Wrap efi calls.
26962 (grub_console_getkey): Likewise.
26963 (grub_console_getwh): Likewise.
26964 (grub_console_gotoxy): Likewise.
26965 (grub_console_cls): Likewise.
26966 (grub_console_setcolorstate): Likewise.
26967 (grub_console_setcursor): Likewise.
26969 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
26971 2008-07-16 Pavel Roskin <proski@gnu.org>
26973 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
26976 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
26977 pointer, not an integer. This fixes a warning and prevents
26978 precision loss on 64-bit systems.
26979 (relocate_addresses): Remove unneeded cast.
26981 2008-07-15 Pavel Roskin <proski@gnu.org>
26983 * kern/i386/ieee1275/init.c: Include grub/cache.h.
26985 * term/ieee1275/ofconsole.c: Disable code unused on i386.
26987 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
26988 Fix comparison between signed and unsigned.
26990 * include/grub/i386/ieee1275/console.h: Declare
26991 grub_console_init() and grub_console_fini().
26993 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
26994 It's empty and unused.
26996 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
26997 beginning to avoid warnings with some compilers.
26999 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
27000 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
27002 2008-07-14 Pavel Roskin <proski@gnu.org>
27004 * kern/env.c (grub_register_variable_hook): Don't copy empty
27005 string, it leaks memory. Pass "" to grub_env_set(), it should
27006 handle constant strings.
27008 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
27009 * commands/cmp.c (grub_cmd_cmp): Likewise.
27010 * kern/dl.c (grub_dl_flush_cache): Likewise.
27011 (grub_dl_load_core): Likewise.
27012 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
27013 (grub_elf64_load_phdrs): Likewise.
27015 2008-07-13 Pavel Roskin <proski@gnu.org>
27017 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
27018 between signed and unsigned.
27019 (LzmaEnc_Finish): Fix warning about an unused parameter.
27021 2008-07-13 Bean <bean123ch@gmail.com>
27023 * Makefile.in (enable_lzo): New rule.
27025 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
27027 * configure.ac (ENABLE_LZO): New option --enable-lzo.
27029 * boot/i386/pc/lnxboot.S: #include <config.h>.
27031 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
27032 its value according to the compression algorithm used, lzo or lzma.
27034 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
27035 compression algorithm according to configure macro.
27037 * kern/i386/pc/startup.S (codestart): Likewise.
27039 * kern/i386/pc/lzma_decode.S: New file.
27041 * include/grub/lib/LzFind.h: Likewise.
27043 * include/grub/lib/LzHash.h: Likewise.
27045 * include/grub/lib/LzmaDec.h: Likewise.
27047 * include/grub/lib/LzmaEnc.h: Likewise.
27049 * include/grub/lib/LzmaTypes.h: Likewise.
27051 * lib/LzFind.c: Likewise.
27053 * lib/LzmaDec.c: Likewise.
27055 * lib/LzmaEnc.c: Likewise.
27057 2008-07-13 Bean <bean123ch@gmail.com>
27059 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
27060 (grub_ext4_extent_header): New structure.
27061 (grub_ext4_extent): Likewise.
27062 (grub_ext4_extent_idx): Likewise.
27063 (grub_ext4_find_leaf): New function.
27064 (grub_ext2_read_block): Handle extents.
27066 2008-07-12 Robert Millan <rmh@aybabtu.com>
27068 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
27070 2008-07-11 Robert Millan <rmh@aybabtu.com>
27072 * util/grub.d/40_custom.in: New file. Example on how to add custom
27073 entries to /etc/grub.d.
27074 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
27075 40_custom (implicitly, by merging all the grub.d rules).
27077 2008-07-11 Pavel Roskin <proski@gnu.org>
27079 * commands/read.c (grub_getline): Fix invalid memory access.
27080 Don't add newline to the variable value.
27082 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
27083 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
27084 (serial_hw_get_port): Check validity of the port number.
27085 (grub_cmd_serial): Check return value of serial_hw_get_port().
27087 2008-07-07 Pavel Roskin <proski@gnu.org>
27089 * boot/i386/pc/diskboot.S (notification_string): Replace
27090 "Loading kernel" with just "loading". This is shorter, less
27091 confusing and saves a few bytes for possible future changes.
27093 2008-07-05 Pavel Roskin <proski@gnu.org>
27095 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
27096 size for ATAPI devices, they are undefined. Output sector
27097 number in decimal form.
27099 * disk/ata.c: Use named constants for status bits.
27101 2008-07-04 Pavel Roskin <proski@gnu.org>
27103 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
27104 grub_addr_t before casting it to the void pointer to fix a
27105 warning. Non-addressable regions are discarded earlier.
27106 (grub_arch_modules_addr): Cast _end to grub_addr_t.
27107 * kern/i386/linuxbios/table.c: Include grub/misc.h.
27108 (check_signature): Don't shadow table_header.
27109 (grub_linuxbios_table_iterate): Cast numeric constants to
27110 grub_linuxbios_table_header_t.
27111 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
27114 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
27117 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
27118 pointer, which can cause warnings. Support 64-bit addresses.
27120 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
27121 of sizeof(long). This fixes PowerPC image generation on x86_64.
27123 2008-07-04 Robert Millan <rmh@aybabtu.com>
27125 This fixes a performance issue when pc & gpt partmap iterators
27126 didn't abort iteration even after our hook found what it was
27127 looking for (often causing expensive probes of non-existent drives).
27129 Some callers relied on previous buggy behaviour, since they would
27130 raise an error when their own hooks caused early abortion of its
27133 * kern/device.c (grub_device_open): Improve error message.
27134 * disk/lvm.c (grub_lvm_open): Likewise.
27135 * disk/raid.c (grub_raid_open): Likewise.
27137 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
27138 when hook requests it, independently of grub_errno.
27139 (pc_partition_map_probe): Do not fail when find_func() caused
27140 early abortion of pc_partition_map_iterate().
27142 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
27143 when hook requests it, independently of grub_errno.
27144 (gpt_partition_map_probe): Do not fail when find_func() caused
27145 early abortion of gpt_partition_map_iterate().
27147 * kern/partition.c (grub_partition_iterate): Abort parent iteration
27148 when hook requests it, independently of grub_errno. Do not fail when
27149 part_map_iterate_hook() caused early abortion of p->iterate().
27151 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
27152 when grub_partition_iterate() returned with non-zero.
27154 2008-07-03 Pavel Roskin <proski@gnu.org>
27156 * disk/ata.c (grub_ata_pio_write): Check status before writing,
27157 like we do in grub_ata_pio_read().
27158 (grub_ata_readwrite): Always write individual sectors. Fix the
27159 sector count for the remainder.
27160 (grub_ata_write): Enable writing to ATA devices. Correctly
27161 report error for ATAPI devices.
27163 2008-07-02 Pavel Roskin <proski@gnu.org>
27165 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
27168 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
27169 for every read sector, we already increment it for the whole
27170 batch. This fixes reading more than 256 sectors at once.
27172 * util/grub-editenv.c (cmd_info): Cast argument to long
27173 explicitly. ptrdiff_t reduces to int on i386.
27175 * util/grub-editenv.c (main): Be specific which parameter is
27178 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
27179 (memdisk): Make memdisk_orig_addr a pointer.
27181 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
27182 for file offsets, use grub_off_t instead. Fix printf format
27185 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
27186 there. Real unexpected warnings should not drown in the noise
27187 about known problems.
27189 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
27190 grub_disk_addr_t for memory addresses.
27192 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
27193 explicitly to fix a warning.
27195 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
27197 * Makefile.in (MODULE_LDFLAGS): New variable.
27198 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
27199 the linker accepts --build-id=none.
27200 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
27202 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
27204 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
27205 those in Linux XFS code. Provide a way to access 64-bit parent
27207 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
27208 the end of struct grub_xfs_dir_header.
27210 2008-07-02 Bean <bean123ch@gmail.com>
27212 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
27213 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
27214 and GRUB_IEEE1275_FLAG_NO_ANSI.
27216 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
27217 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
27218 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
27220 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
27221 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
27223 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
27224 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
27226 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
27227 esc sequence on non ANSI terminal.
27228 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
27230 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
27233 2008-07-02 Bean <bean123ch@gmail.com>
27235 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
27236 (grub_editenv_SOURCES): New variable.
27237 (pkglib_MODULES): Add loadenv.mod.
27238 (loadenv_mod_SOURCES): New variable.
27239 (loadenv_mod_CFLAGS): Likewise.
27240 (loadenv_mod_LDFLAGS): Likewise.
27242 * include/grub/envblk.h: New file.
27244 * util/envblk.c: New file.
27246 * util/grub-editenv.c: New file.
27248 * commands/loadenv.c: New file.
27250 2008-07-01 Pavel Roskin <proski@gnu.org>
27252 * include/multiboot2.h (struct multiboot_tag_module): Use char,
27253 not unsigned char. This fixes warnings and is consistent with
27256 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
27258 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
27260 * term/tparm.c (analyze): Always set *popcount.
27262 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
27263 cast to fix a warning.
27265 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
27266 cast to suppress a warning.
27268 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
27269 grub_fshelp_read_file() expects.
27271 * fs/fat.c: Fix UUID calculation on big-endian systems. We
27272 write uuid as a 32-bit value in CPU byte order, so declare and
27275 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
27276 long if the format specifier expects it.
27277 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
27278 * partmap/pc.c (pc_partition_map_iterate): Likewise.
27279 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
27280 long to fix a warning.
27281 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
27282 grub_dprintf() arguments to fix warnings.
27284 2008-06-30 Pavel Roskin <proski@gnu.org>
27286 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
27287 install_bsd_part immediately before core.img is embedded or
27288 modified on disk. This fixes core.img verification if core.img
27289 cannot be embedded.
27291 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
27292 core_path to calculate the blocklist.
27293 Patch from Javier Martín <lordhabbit@gmail.com>
27295 2008-06-29 Robert Millan <rmh@aybabtu.com>
27297 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
27298 block to disk block.
27299 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
27300 Patch from Niels Böhm <bitbucket@arcor.de>
27302 2008-06-29 Robert Millan <rmh@aybabtu.com>
27304 * util/update-grub_lib.in (font_path): Search for fonts in
27305 /boot/grub first, which is more likely to be readable (we aren't
27306 deciding where fonts live, just looking for them).
27308 2008-06-26 Pavel Roskin <proski@gnu.org>
27310 * util/biosdisk.c (read_device_map): Don't leave dead map
27311 entries for devices failing stat() check.
27313 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
27314 core_path_dev for the core.img path on the target device.
27316 2008-06-26 Robert Millan <rmh@aybabtu.com>
27318 * disk/fs_uuid.c: New file.
27319 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
27320 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
27321 (fs_uuid_mod_LDFLAGS): New variables.
27322 * include/grub/disk.h (grub_disk_dev_id): Add
27323 `GRUB_DISK_DEVICE_UUID_ID'.
27324 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
27325 implement iterate().
27327 2008-06-26 Robert Millan <rmh@aybabtu.com>
27329 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
27330 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
27331 Linux image includes no initrd.
27333 2008-06-21 Javier Martín <lordhabbit@gmail.com>
27335 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
27336 call to resolve the core image location that effectively appended the
27339 2008-06-21 Robert Millan <rmh@aybabtu.com>
27341 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
27344 * util/grub.d/10_hurd.in: ... to here ...
27345 * util/grub.d/10_linux.in: ... and here.
27347 2008-06-19 Robert Millan <rmh@aybabtu.com>
27349 * kern/main.c (grub_main): Export `prefix' variable immediately
27350 after it has been set by grub_machine_set_prefix().
27352 2008-06-19 Robert Millan <rmh@aybabtu.com>
27354 * commands/search.c (search_label, search_fs_uuid, search_file): Print
27355 search result when not saving to variable, not the other way around.
27356 When saving to variable, abort iteration as soon as a match is found.
27358 2008-06-19 Robert Millan <rmh@aybabtu.com>
27360 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
27361 check for partition that provides /boot/grub. Its logic is flawed,
27362 as it prevents prepare_grub_to_access_device() from being called
27365 2008-06-19 Robert Millan <rmh@aybabtu.com>
27367 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
27368 "insmod" command directly when abstraction modules are needed,
27369 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
27370 since it had already been processed).
27372 2008-06-19 Pavel Roskin <proski@gnu.org>
27374 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
27375 changed. This is needed in case GRUB_LIBDIR changes.
27376 * conf/i386-ieee1275.rmk: Likewise.
27377 * conf/i386-linuxbios.rmk: Likewise.
27378 * conf/i386-pc.rmk: Likewise.
27379 * conf/powerpc-ieee1275.rmk: Likewise.
27381 2008-06-18 Pavel Roskin <proski@gnu.org>
27383 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
27384 kernel_elf_symlist.c to symlist.c for consistency with other
27385 architectures. Update all users.
27386 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
27388 2008-06-18 Robert Millan <rmh@aybabtu.com>
27390 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
27393 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
27394 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
27395 a RAID device, run setup() for all members independently on whether
27396 LVM abstraction is being used.
27397 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
27398 If grub-mkimage has set `*install_dos_part == -2', don't override this
27400 Perform *install_dos_part adjustments independently on whether
27401 we're embedding or not.
27402 Clarify error message when image is too big for embedding.
27403 Remove duplicate *install_dos_part stanza.
27405 2008-06-17 Robert Millan <rmh@aybabtu.com>
27407 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
27408 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
27410 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
27411 values in grub_ofconsole_normal_color and
27412 grub_ofconsole_highlight_color (they're not directly related to
27413 background and foreground).
27414 (grub_ofconsole_setcolorstate): Extract background and foreground
27415 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
27417 2008-06-17 Robert Millan <rmh@aybabtu.com>
27419 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
27420 /boot/grub for the check in last commit, not /boot (they could be
27421 different partitions).
27423 2008-06-16 Robert Millan <rmh@aybabtu.com>
27425 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
27426 asked to setup access for the same partition that provides /boot,
27427 don't bother using UUIDs since our root already has the value we
27430 2008-06-16 Robert Millan <rmh@aybabtu.com>
27432 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
27434 Patch from Sven Mueller <sven@debian.org>.
27436 2008-06-16 Robert Millan <rmh@aybabtu.com>
27438 * util/update-grub.in: Check for $EUID instead of $UID.
27439 Reported by Vincent Zweije.
27441 2008-06-16 Bean <bean123ch@gmail.com>
27443 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
27444 (grub_ext2_read_block): Likewise.
27445 (grub_ext2_read_inode): Likewise.
27446 (grub_ext2_mount): Likewise.
27447 (grub_ext2_close): Likewise.
27448 (grub_ext3_get_journal): Removed.
27450 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
27451 (grub_reiserfs_read_symlink): Likewise.
27452 (grub_reiserfs_mount): Likewise.
27453 (grub_reiserfs_open): Likewise.
27454 (grub_reiserfs_read): Likewise.
27455 (grub_reiserfs_close): Likewise.
27456 (grub_reiserfs_get_journal): Removed.
27458 * fs/fshelp.c (grub_fshelp_read): Removed.
27459 (grub_fshelp_map_block): Likewise.
27461 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
27462 (grub_fshelp_journal): Likewise.
27463 (grub_fshelp_read): Likewise.
27464 (grub_fshelp_map_block): Likewise.
27466 2008-06-16 Pavel Roskin <proski@gnu.org>
27468 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
27469 floating point anymore.
27470 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
27472 2008-06-15 Pavel Roskin <proski@gnu.org>
27474 * commands/ls.c (grub_ls_list_files): Use integer calculations
27475 for human readable format, avoid floating point use.
27476 * kern/misc.c (grub_ftoa): Remove.
27477 (grub_vsprintf): Remove floating point support.
27479 2008-06-15 Robert Millan <rmh@aybabtu.com>
27481 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
27483 Reported by Max Vozeler.
27485 2008-06-15 Robert Millan <rmh@aybabtu.com>
27487 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
27488 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
27490 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
27491 the beginning of the prefix.
27493 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
27494 It is assumed that if we have a memdisk, grub-mkimage has set
27495 grub_prefix to include the "(memdisk)" drive in it.
27497 2008-06-15 Robert Millan <rmh@aybabtu.com>
27499 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
27500 Initialize keyboard controller after registering the terminal, so that
27501 grub_printf() can be called from grub_keyboard_controller_init().
27503 2008-06-15 Robert Millan <rmh@aybabtu.com>
27505 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
27506 extent-btree which is written as big endian on disk.
27507 Reported by Alain Greppin <al@chilibi.org>.
27509 2008-06-14 Robert Millan <rmh@aybabtu.com>
27511 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
27512 * util/i386/pc/grub-install.in (modules): Likewise.
27514 2008-06-13 Pavel Roskin <proski@gnu.org>
27516 * commands/ls.c (grub_ls_list_files): Fix format warnings.
27518 2008-06-13 Bean <bean123ch@gmail.com>
27520 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
27522 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
27524 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
27525 to indicate sparse block.
27527 2008-06-12 Pavel Roskin <proski@gnu.org>
27529 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
27530 number, grub_fshelp_read() does it for us.
27532 * fs/fshelp.c (grub_fshelp_read): New function. Implement
27533 linear disk read with journal translation.
27534 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
27535 * include/grub/fshelp.h: Declare grub_fshelp_read().
27537 2008-06-09 Pavel Roskin <proski@gnu.org>
27539 * fs/minix.c (grub_minix_mount): Handle error reading
27542 2008-06-08 Robert Millan <rmh@aybabtu.com>
27544 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
27545 don't append the RAID prefix afterwards.
27546 Reported by Clint Adams.
27548 2008-06-08 Robert Millan <rmh@aybabtu.com>
27550 Based on description from Pavel:
27551 * kern/disk.c (grub_disk_check_range): Rename to ...
27552 (grub_disk_adjust_range): ... this. Add a comment explaining the
27553 tasks performed by this function.
27555 2008-06-08 Robert Millan <rmh@aybabtu.com>
27557 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
27558 `num_serial' (for consistency with other variables).
27559 (struct grub_ntfs_data): Add `uuid' member.
27560 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
27561 (grub_ntfs_uuid): New function.
27562 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
27564 2008-06-07 Pavel Roskin <proski@gnu.org>
27566 * util/biosdisk.c (open_device): Revert last change to the
27567 function, it broke installation. The sector needs to be
27568 different dependent on which device is opened.
27570 2008-06-06 Robert Millan <rmh@aybabtu.com>
27572 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
27573 rest of GRUB, and breakage doesn't happen if its value were modified.
27575 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
27576 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
27577 a constant (same value).
27578 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
27579 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
27581 2008-06-06 Robert Millan <rmh@aybabtu.com>
27583 * util/biosdisk.c (open_device): Do not modify sector offset when
27584 accessing a partition. kern/disk.c already handles this for us.
27586 2008-06-06 Robert Millan <rmh@aybabtu.com>
27588 * util/grub-emu.c (grub_machine_init): Move code in this function from
27590 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
27591 segfault in case grub_printf() is called).
27593 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
27594 grub_probe. Update all users not to explicitly add it again.
27595 (grub_device): New variable; contains corresponding device for grubdir.
27596 (fs_module, partmap_module, devabstraction_module): Pass
27597 `--device ${grub_device}' to grub_probe to avoid traversing /dev
27600 2008-06-05 Robert Millan <rmh@aybabtu.com>
27602 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
27603 is found, print it (same layout as with labels).
27605 2008-06-04 Robert Millan <rmh@aybabtu.com>
27607 * util/biosdisk.c (get_drive): Rename to ...
27608 (find_grub_drive): ... this. Update all users.
27610 (get_os_disk): Rename to ...
27611 (convert_system_partition_to_system_disk): ... this. Update all users.
27613 (find_drive): Rename to ...
27614 (find_system_device): ... this. Update all users.
27616 2008-06-04 Robert Millan <rmh@aybabtu.com>
27618 * util/biosdisk.c (get_os_disk): Handle IDA devices.
27619 * util/grub-mkdevicemap.c (get_mmc_disk_name)
27620 (make_device_map): Likewise.
27622 2008-06-01 Robert Millan <rmh@aybabtu.com>
27624 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
27625 before dereferencing it.
27627 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
27628 union with fat12/fat16-specific ones. Add some new fields, including
27629 `num_serial' for both versions.
27630 (struct grub_fat_data): Add `uuid' member.
27631 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
27632 names. Initialize `data->uuid' using `num_serial'.
27633 (grub_fat_uuid): New function.
27634 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
27636 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
27637 (grub_reiserfs_uuid): New function.
27638 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
27641 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
27642 (grub_xfs_uuid): New function.
27643 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
27645 2008-06-01 Robert Millan <rmh@aybabtu.com>
27647 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
27648 code that is backward compatible with pre-uuid search command.
27650 2008-05-31 Robert Millan <rmh@aybabtu.com>
27652 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
27653 floppies after everything else, to ensure floppy drive isn't accessed
27654 unnecessarily (patch from Bean).
27656 2008-05-31 Robert Millan <rmh@aybabtu.com>
27658 * commands/search.c (search_label, search_fs_uuid, search_file): Do
27659 not print device names when we were asked to set a variable.
27661 2008-05-31 Robert Millan <rmh@aybabtu.com>
27663 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
27664 using "cursor-on" and "cursor-off" commands (understood at least by
27665 the Open Firmware flavour on OLPC).
27667 2008-05-31 Michael Gorven <michael@gorven.za.net>
27669 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
27670 on and off sequences.
27672 2008-05-31 Robert Millan <rmh@aybabtu.com>
27674 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
27675 * util/update-grub.in: Likewise.
27677 2008-05-30 Pavel Roskin <proski@gnu.org>
27679 * util/biosdisk.c (linux_find_partition): Simplify logic and
27680 make the code more universal. Keep special processing for
27681 devfs, but use a simple rule for all other devices. If the
27682 device ends with a number, append 'p' and the partition number.
27683 Otherwise, append only the partition number.
27685 2008-05-30 Robert Millan <rmh@aybabtu.com>
27687 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
27688 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
27689 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
27690 the `root' parameter to Linux.
27692 2008-05-30 Robert Millan <rmh@aybabtu.com>
27694 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
27695 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
27696 --fs_uuid with --fs-uuid.
27697 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
27698 all filesystems support them).
27700 2008-05-30 Robert Millan <rmh@aybabtu.com>
27702 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
27703 grub_printf() flags, since we're printing in units of 2 bytes.
27705 2008-05-30 Robert Millan <rmh@aybabtu.com>
27707 * util/grub.d/00_header.in: Remove obsolete comment referencing
27708 convert_system_path_to_grub_path().
27709 * util/update-grub.in: Likewise.
27710 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
27711 (convert_system_path_to_grub_path): Add a warning message explaining
27712 that this function is deprecated. Rely on is_path_readable_by_grub()
27713 for the readability checks.
27714 (font_path): Use is_path_readable_by_grub() for the readability
27715 check rather than convert_system_path_to_grub_path().
27717 2008-05-30 Robert Millan <rmh@aybabtu.com>
27719 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
27720 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
27721 converting it first.
27722 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
27723 grub.cfg for access to font file, and afterwards call it again to set
27726 2008-05-30 Robert Millan <rmh@aybabtu.com>
27728 * commands/search.c (options): Add --fs_uuid option.
27729 (search_fs_uuid): New function.
27730 (grub_cmd_search): Fix --set argument passing.
27731 Use search_fs_uuid() when requested via --fs_uuid.
27732 (grub_search_init): Update help message.
27733 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
27734 and redeclare it as an array of 16-bit words.
27735 (grub_ext2_uuid): New function.
27736 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
27737 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
27738 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
27739 (GRUB_DEVICE_BOOT_UUID): New variables.
27740 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
27741 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
27743 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
27744 just assume `root' variable has the right value.
27745 * util/grub.d/10_linux.in: Likewise.
27746 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
27748 (main): Recognise `-t fs_uuid' argument.
27750 2008-05-30 Robert Millan <rmh@aybabtu.com>
27752 * util/biosdisk.c (map): Redefine structure to hold information
27753 about GRUB drive name.
27754 (get_drive): Reimplement without assuming (and verifying) BIOS-like
27756 (call_hook): Remove.
27757 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
27758 member. Assume drive has partitions.
27759 (grub_util_biosdisk_open): Access device names via `.device' struct
27761 (open_device): Likewise.
27762 (find_drive): Likewise.
27763 (read_device_map): Adjust map[] usage to match the new struct
27764 definition. Don't check for duplicates (still possible, but not cheap
27766 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
27767 (make_device_name): Remove assumption of BIOS-like drive names.
27769 2008-05-30 Pavel Roskin <proski@gnu.org>
27771 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
27772 compiling execute.c doesn't need grub_script.tab.h anymore.
27773 (normal/command.c_DEPENDENCIES): Likewise.
27774 (normal/function.c_DEPENDENCIES): Likewise.
27775 * conf/i386-ieee1275.rmk: Likewise.
27776 * conf/i386-linuxbios.rmk: Likewise.
27777 * conf/i386-pc.rmk: Likewise.
27778 * conf/powerpc-ieee1275.rmk: Likewise.
27779 * conf/sparc64-ieee1275.rmk: Likewise.
27781 2008-05-29 Pavel Roskin <proski@gnu.org>
27783 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
27784 when scanning metadata for volume group name.
27786 * include/grub/script.h: Don't include grub_script.tab.h. It's
27787 a generated file, which may only be included from the files with
27788 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
27789 use union YYSTYPE, as the later allows forward declaration.
27790 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
27792 2008-05-29 Robert Millan <rmh@aybabtu.com>
27794 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
27795 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
27796 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
27797 (grub_console_checkkey): Add grub_dprintf() call to report unknown
27800 2008-05-29 Robert Millan <rmh@aybabtu.com>
27802 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
27803 control key combinations.
27805 2008-05-29 Robert Millan <rmh@aybabtu.com>
27807 * util/powerpc/ieee1275/grub-install.in: Move from here ...
27808 * util/ieee1275/grub-install.in: ... to here.
27809 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
27810 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
27811 (grub_install_SOURCES): Likewise.
27813 2008-05-29 Robert Millan <rmh@aybabtu.com>
27815 * fs/affs.c: Update copyright year.
27816 * fs/ext2.c: Likewise.
27817 * fs/fshelp.c: Likewise.
27818 * fs/hfsplus.c: Likewise.
27819 * fs/ntfs.c: Likewise.
27820 * fs/xfs.c: Likewise.
27821 * include/grub/fshelp.h: Likewise.
27822 * util/grub-mkdevicemap.c: Likewise.
27824 2008-05-28 Robert Millan <rmh@aybabtu.com>
27826 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
27827 might need to be fatfs to support some firmware implementations
27830 2008-05-28 Robert Millan <rmh@aybabtu.com>
27832 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
27834 * util/grub-mkdevicemap.c (get_mmc_disk_name)
27835 (make_device_map): Likewise.
27837 2008-05-20 Bean <bean123ch@gmail.com>
27839 * fs/fshelp.c (grub_fshelp_map_block): New function.
27840 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
27841 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
27843 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
27844 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
27845 (grub_fshelp_journal): New structure.
27846 (grub_fshelp_map_block): New function prototype.
27847 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
27848 (grub_fshelp_map_block): Likewise.
27850 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
27851 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
27852 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
27853 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
27854 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
27855 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
27856 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
27857 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
27858 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
27859 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
27860 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
27861 (grub_ext2_sblock): New members for journal support.
27862 (grub_ext3_journal_header): New structure.
27863 (grub_ext3_journal_revoke_header): Likewise.
27864 (grub_ext3_journal_block_tag): Likewise.
27865 (grub_ext3_journal_sblock): Likewise.
27866 (grub_fshelp_node): New members logfile and journal.
27867 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
27868 grub_fshelp_map_block to get real block number.
27869 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
27871 (grub_ext2_read_inode): Likewise.
27872 (grub_ext3_get_journal): New function.
27873 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
27874 (grub_ext2_close): Release memory used by journal.
27876 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
27877 (REISERFS_MAGIC_DESC_BLOCK): New macro.
27878 (grub_reiserfs_transaction_header): Renamed to
27879 grub_reiserfs_description_block, replace field data with real_blocks.
27880 (grub_reiserfs_commit_block): New structure.
27881 (grub_reiserfs_data): New member journal.
27882 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
27884 (grub_reiserfs_read_symlink): Likewise.
27885 (grub_reiserfs_iterate_dir): Likewise.
27886 (grub_reiserfs_open): Likewise.
27887 (grub_reiserfs_read): Likewise.
27888 (grub_reiserfs_get_journal): New function.
27889 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
27890 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
27891 using grub_reiserfs_get_journal.
27892 (grub_reiserfs_close): Release memory used by journal.
27894 * fs/affs.c (grub_affs_read_block): Change block type to
27895 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
27897 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
27899 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
27901 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
27903 * fs/udf.c (grub_udf_read_block): Change block type to
27904 grub_disk_addr_t. Use type cast to avoid warning.
27906 * fs/xfs.c (grub_xfs_read_block): Likewise.
27908 2008-05-16 Christian Franke <franke@computer.org>
27910 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
27911 to ensure that break with ESC will always work.
27912 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
27913 Remove ESC from keyboard queue.
27915 2008-05-16 Christian Franke <franke@computer.org>
27917 * util/biosdisk.c: [__CYGWIN__] Add includes.
27918 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
27919 (get_os_disk): Move variable declarations to OS specific
27920 parts to avoid warning.
27921 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
27922 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
27923 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
27925 * util/getroot.c: [__CYGWIN__] Add includes.
27926 (strip_extra_slashes): Fix "/" case.
27927 [__CYGWIN__] (get_win32_path): New function.
27928 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
27929 [__CYGWIN__] (find_root_device): Disable.
27930 [__CYGWIN__] (get_bootsec_serial): New function.
27931 [__CYGWIN__] (find_cygwin_root_device): Likewise.
27932 [__linux__] (grub_guess_root_device): Add early returns to simplify
27934 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
27935 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
27936 check for Linux only.
27938 2008-05-15 Bean <bean123ch@gmail.com>
27940 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
27941 keyboard hang problem in apple's intel mac.
27943 2008-05-09 Robert Millan <rmh@aybabtu.com>
27945 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
27947 * util/grub-mkdevicemap.c (get_virtio_disk_name)
27948 (make_device_map): Likewise.
27949 Reported by Aurelien Jarno <aurel32@debian.org>
27951 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
27953 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
27954 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
27955 (make_device_map): Output entries for xvd type disks.
27957 2008-05-07 Robert Millan <rmh@aybabtu.com>
27959 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
27961 * util/grub-mkdevicemap.c (get_cciss_disk_name)
27962 (make_device_map): Likewise.
27963 Reported by Roland Dreier <rdreier@cisco.com>
27965 2008-05-07 Robert Millan <rmh@aybabtu.com>
27967 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
27968 grub_strstr() call. Correct a few mistakes in failure path handling.
27970 2008-05-06 Robert Millan <rmh@aybabtu.com>
27972 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
27973 Do not print a trailing slash (therefore, the root directory is an
27975 (convert_system_path_to_grub_path): Do not remove trailing slash
27976 from make_system_path_relative_to_its_root() output.
27978 * util/i386/pc/grub-install.in: Add trailing slash to output from
27979 make_system_path_relative_to_its_root().
27981 2008-05-06 Robert Millan <rmh@aybabtu.com>
27983 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
27984 ensures that output lines aren't intermangled with those sent to
27985 stderr (via grub_util_info()).
27986 * util/grub-probe.c (grub_refresh): Likewise.
27987 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
27989 2008-05-05 Christian Franke <franke@computer.org>
27991 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
27992 Add Cygwin device names.
27993 (get_ide_disk_name) [__CYGWIN__]: Likewise.
27994 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
27995 (check_device): Return error instead of success on empty name.
27996 (make_device_map): Move label inside linux specific code to
27997 prevent compiler warning.
27999 2008-04-30 Robert Millan <rmh@aybabtu.com>
28001 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
28002 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
28004 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
28006 2008-04-29 Robert Millan <rmh@aybabtu.com>
28008 * docs/grub.cfg: New file (example GRUB configuration).
28010 2008-04-26 Robert Millan <rmh@aybabtu.com>
28012 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
28013 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
28014 and `disk/ieee1275/nand.c'.
28016 2008-04-25 Bean <bean123ch@gmail.com>
28018 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
28021 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
28022 change the buffer size to 4096 for cdrom device.
28024 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
28026 (_linux_mod_SOURCES): New variable.
28027 (_linux_mod_CFLAGS): Likewise.
28028 (_linux_mod_LDFLAGS): Likewise.
28029 (linux_mod_SOURCES): Likewise.
28030 (linux_mod_CFLAGS): Likewise.
28031 (linux_mod_LDFLAGS): Likewise.
28032 (nand_mod_SOURCES): Likewise.
28033 (nand_mod_CFLAGS): Likewise.
28034 (nand_mod_LDFLAGS): Likewise.
28036 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
28037 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
28038 type property. (nand device in olpc don't have this property)
28040 * include/grub/disk.h (grub_disk_dev_id): New macro
28041 GRUB_DISK_DEVICE_NAND_ID.
28043 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
28044 function prototype.
28045 (grub_rescue_cmd_initrd): Likewise.
28047 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
28048 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
28049 ofw_cif_handler and ofw_idt, adjust padding number.
28051 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
28052 GRUB_MACHINE_IEEE1275 is defined.
28054 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
28055 Use NESTED_FUNC_ATTR attribute on the hook parameter.
28057 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
28058 on nested function heap_init.
28059 (grub_upper_mem): New variable for i386-ieee1275.
28060 (grub_get_extended_memory): New function for i386-ieee1275.
28061 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
28063 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
28064 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
28067 * loader/i386/ieee1275/linux.c: New file.
28069 * loader/i386/ieee1275/linux_normal.c: New file.
28071 * disk/ieee1275/nand.c: New file.
28073 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
28075 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
28077 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
28079 2008-04-18 Robert Millan <rmh@aybabtu.com>
28081 Restructures early code path on ieee1275 to unify grub_main() as
28082 the first C function that is executed in every platform.
28084 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
28085 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
28087 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
28088 * kern/ieee1275/cmain.c (cmain): Rename to ...
28089 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
28090 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
28093 2008-04-18 Robert Millan <rmh@aybabtu.com>
28095 * util/update-grub.in: Fix syntax error when setting
28096 `GRUB_PRELOAD_MODULES'.
28097 Reported by Stephane Chazelas <stephane@artesyncp.com>
28099 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
28101 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
28102 section into account, newer toolchains generate unique build ids
28103 * configure.ac: remove the test for --build-id=none acceptance,
28104 we want build ids to be preserved
28105 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
28106 far from other sections don't cause the raw binary images grow
28109 2008-04-15 Robert Millan <rmh@aybabtu.com>
28111 * disk/lvm.c: Update copyright year.
28112 * kern/misc.c: Likewise.
28114 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
28116 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
28117 there is no memory left for physical volume name.
28119 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
28121 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
28122 volume name mapping to support bigger than 9 character names properly.
28124 2008-04-13 Robert Millan <rmh@aybabtu.com>
28126 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
28127 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
28129 2008-04-13 Christian Franke <franke@computer.org>
28131 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
28132 to create a floppy emulation boot CD when non emulation mode
28134 Enable Joliet CD filesystem extension.
28136 2008-04-13 Robert Millan <rmh@aybabtu.com>
28138 * kern/misc.c (grub_strncat): Fix off-by-one error.
28139 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
28141 * kern/env.c (grub_env_context_close): Clear current context, not
28143 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
28145 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
28147 2008-04-13 Robert Millan <rmh@aybabtu.com>
28149 Improve robustness when handling LVM.
28151 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
28152 (and leave `*p' unmodified).
28153 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
28155 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
28156 iterating through it.
28157 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
28159 (grub_lvm_scan_device): Check the return value (and fail gracefully
28160 when due) on each grub_lvm_getvalue() or grub_strstr() call.
28161 Don't assume `vg->pvs != NULL' when iterating through it.
28163 2008-04-13 Robert Millan <rmh@aybabtu.com>
28165 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
28166 * genmk.rb (partmap): New variable.
28167 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
28168 (#{partmap}): New target rule.
28169 * genpartmaplist.sh: New file.
28170 * Makefile.in (pkglib_DATA): Add partmap.lst.
28171 (partmap.lst): New target rule.
28172 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
28173 modules (including all partition maps), instead of preloading them.
28175 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
28177 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
28178 `linux-boot-prober' (if installed) to detect other operating
28179 systems which are installed on the computer and add them to
28181 * conf/common.rmk: Build and install 30_os-prober.
28183 2008-04-12 Robert Millan <rmh@aybabtu.com>
28185 * kern/powerpc/ieee1275/init.c: Move from here ...
28186 * kern/ieee1275/init.c: ... to here. Update all users.
28188 * kern/powerpc/ieee1275/cmain.c: Move from here ...
28189 * kern/ieee1275/cmain.c: ... to here. Update all users.
28191 * kern/powerpc/ieee1275/openfw.c: Move from here ...
28192 * kern/ieee1275/openfw.c: ... to here. Update all users.
28194 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
28195 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
28197 2008-04-10 Pavel Roskin <proski@gnu.org>
28199 * configure.ac: Always use "_cv_" in cache variables for
28200 compatibility with Autoconf 2.62.
28202 2008-04-07 Robert Millan <rmh@aybabtu.com>
28204 Revert grub/machine/init.h addition by Pavel (since it breaks on
28205 i386-ieee1275 and others):
28206 * util/i386/pc/misc.c: Remove grub/machine/init.h.
28207 * util/powerpc/ieee1275/misc.c: Likewise.
28209 2008-04-07 Robert Millan <rmh@aybabtu.com>
28211 * util/grub-probe.c (probe): Improve error message.
28213 2008-04-07 Robert Millan <rmh@aybabtu.com>
28215 * util/biosdisk.c (read_device_map): Skip devices that don't exist
28216 (this prevents the presence of a bogus entry from ruining the whole
28219 2008-04-06 Pavel Roskin <proski@gnu.org>
28221 * util/biosdisk.c: Include grub/util/biosdisk.h.
28222 * util/grub-fstest.c (execute_command): Make static.
28223 * util/grub-mkdevicemap.c (check_device): Likewise.
28224 * util/i386/pc/misc.c: Include grub/machine/init.h.
28225 * util/powerpc/ieee1275/misc.c: Likewise.
28226 * util/lvm.c: Include grub/util/lvm.h.
28227 * util/misc.c: Include grub/kernel.h, grub/misc.h and
28229 * util/raid.c: Include grub/util/raid.h.
28230 (grub_util_getdiskname): Make static.
28232 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
28233 grub_hostfs_fini(), as they are called from grub_init_all() and
28234 grub_fini_all() respectively. This fixes an infinite loop in
28235 grub-fstest due to double registration of hostfs.
28236 Reported by Christian Franke <Christian.Franke@t-online.de>
28238 2008-04-05 Pavel Roskin <proski@gnu.org>
28240 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
28241 all 8 functions. Otherwise, probe function 0 only.
28243 2008-04-04 Pavel Roskin <proski@gnu.org>
28245 * commands/lspci.c (grub_lspci_iter): Print the bus number
28248 * commands/lspci.c (grub_pci_classes): Fix typos.
28249 (grub_lspci_iter): Don't print func twice. Print vendor ID
28250 before device ID, as it's normally done.
28252 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
28253 Fix signedness warnings.
28254 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
28256 * util/ieee1275/get_disk_name.c: Include config.h so that
28257 _GNU_SOURCE is defined and getline() is declared. Mark an
28258 unused argument as such. Fix a signedness warning.
28260 2008-04-02 Pavel Roskin <proski@gnu.org>
28262 * genkernsyms.sh.in: Use more robust assignments for CC and
28263 srcdir. Quote srcdir.
28264 * gensymlist.sh.in: Likewise. Assert at the compile time that
28265 the symbol table is not empty.
28267 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
28268 * fs/cpio.c (grub_cpio_read): Likewise.
28270 2008-04-01 Pavel Roskin <proski@gnu.org>
28272 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
28273 * disk/host.c (grub_host_open): Likewise.
28274 * disk/loopback.c (grub_loopback_open): Likewise.
28275 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
28276 disk->id as in disk/host.c, not a multi-character constant.
28278 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
28279 later is obsolete, potentially dangerous and sets a bad example.
28280 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
28281 * util/misc.c (grub_util_get_image_size): Likewise.
28283 * disk/loopback.c (options): Improve help for "--partitions".
28285 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
28286 options to align them with the short options, e.g. "echo -e".
28288 2008-03-31 Bean <bean123ch@gmail.com>
28290 * video/reader/png.c (grub_png_data): New member is_16bit and
28292 (grub_png_decode_image_header): Detect 16 bit png image.
28293 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
28294 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
28295 (grub_video_reader_png): Release memory occupied by image_data.
28297 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
28299 (grub_nfs_mount): Skip the test for sector per cluster.
28301 * include/grub/ntfs.h (MAX_SPC): Removed.
28303 2008-03-31 Bean <bean123ch@gmail.com>
28305 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
28306 (grub_probe_SOURCES): Add fs/afs.c.
28307 (grub_fstest_SOURCES): Likewise.
28308 (afs_mod_SOURCES): New variable.
28309 (afs_mod_CFLAGS): Likewise.
28310 (afs_mod_LDFLAGS): Likewise.
28312 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
28313 (grub_emu_SOURCES): Likewise.
28315 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28317 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28319 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
28321 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28323 * fs/afs.c: New file.
28325 2008-03-30 Pavel Roskin <proski@gnu.org>
28327 * disk/host.c: Include grub/misc.h to fix a warning.
28328 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
28329 warnings about implicit declarations.
28331 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
28333 * include/grub/i386/loader.h: Change declaration of
28334 grub_linux_boot() to match what grub_loader_set() expects.
28335 * util/getroot.c (grub_guess_root_device): Return const char* to
28337 * util/grub-probe.c (probe): Fix a warning about uninitialized
28338 abstraction_name variable.
28339 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
28340 second argument as unused to fix a warning.
28342 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
28343 missing grub_error() call.
28345 * util/update-grub_lib.in: Define datarootdir, since Autoconf
28346 2.60 and newer uses it to define datadir.
28348 * commands/sleep.c: Fix warning about implicit declaration.
28349 * disk/memdisk.c: Likewise.
28350 * loader/aout.c: Likewise.
28351 * loader/i386/bsd_normal.c: Likewise.
28352 * util/grub-probe.c: Likewise.
28354 * commands/i386/cpuid.c (has_longmode): Make static.
28355 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
28356 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
28358 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
28359 GDT. This is more robust, as %ds can change.
28360 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
28361 calling real_to_prot().
28362 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
28364 2008-03-28 Pavel Roskin <proski@gnu.org>
28366 * kern/i386/pc/startup.S: Assert that uncompressed functions
28367 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
28368 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
28369 code, as they push parts of the code (error handlers) beyond
28370 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
28371 code as correctness and size.
28373 2008-03-28 Pavel Roskin <proski@gnu.org>
28375 * kern/i386/pc/startup.S
28376 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
28377 data block address to the real mode, keep offset minimal. This
28378 works around a bug in AWARD BIOS on old Athlon systems, which
28379 makes CD detection hang.
28381 2008-03-26 Pavel Roskin <proski@gnu.org>
28383 * normal/color.c (grub_parse_color_name_pair): Make `name' a
28385 * include/grub/normal.h: Add grub_parse_color_name_pair()
28388 2008-03-24 Bean <bean123ch@gmail.com>
28390 * disk/i386/pc/biosdisk.c (cd_start): Removed.
28391 (cd_count): Removed.
28392 (cd_drive): New variable.
28393 (grub_biosdisk_get_drive): Don't check for (cdN) device.
28394 (grub_biosdisk_call_hook): Likewise.
28395 (grub_biosdisk_iterate): Change cdrom detection method.
28396 (grub_biosdisk_open): Replace cd_start with cd_drive.
28397 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
28398 detect cdrom device.
28400 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
28402 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
28403 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
28404 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
28405 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
28406 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
28407 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
28408 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
28409 (grub_biosdisk_cdrp): New structure.
28410 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
28412 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
28414 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
28417 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
28420 2008-03-20 Robert Millan <rmh@aybabtu.com>
28422 Remove 2 TiB limit in ata.mod.
28423 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
28424 (grub_ata_dumpinfo): Print sector count with 0x%llx.
28425 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
28426 grub_uint64_t instead of grub_uint32_t.
28428 2008-03-05 Bean <bean123ch@gmail.com>
28430 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
28431 (grub_multiboot): Set boot device.
28433 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
28435 2008-03-02 Bean <bean123ch@gmail.com>
28437 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
28440 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
28442 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
28445 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
28448 * docs/fdl.texi: New file.
28450 * docs/mdate-sh: New file. Copied from gnulib.
28451 * docs/texinfo.tex: Likewise.
28453 * config.guess: Updated from gnulib.
28454 * install-sh: Likewise.
28456 2008-02-28 Robert Millan <rmh@aybabtu.com>
28458 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
28459 (aout_mod_SOURCES): New variable.
28460 (aout_mod_CFLAGS): Likewise.
28461 (aout_mod_LDFLAGS): Likewise.
28463 * conf/i386-ieee1275.rmk: Likewise.
28465 2008-02-28 Robert Millan <rmh@aybabtu.com>
28467 * util/update-grub.in: Reorganise terminal validity check. Accept
28468 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
28469 Based on suggestion by Franklin PIAT.
28471 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
28473 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
28475 * util/getroot.c (grub_util_check_block_device): New function that
28476 returns the given argument if it is a block device and returns NULL else.
28477 * util/grub-probe.c (argument_is_device): New variable.
28478 (probe): Promote device_name from a variable to an argument. Receive
28479 device_name from grub_util_check_block_device() if path is NULL and from
28480 grub_guess_root_device() else. Do not free() device_name anymore.
28481 (options): Introduce new parameter '-d, --device'.
28482 (main): Add description of the new parameter to the help screen.
28483 Rename path variable to argument. Set argument_is_device if the '-d'
28484 option is given. Pass argument to probe() depending on
28485 argument_is_device.
28487 2008-02-24 Bean <bean123ch@gmail.com>
28489 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
28490 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
28491 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
28492 (GRUB_ISO9660_VOLDESC_PART): Likewise.
28493 (GRUB_ISO9660_VOLDESC_END): Likewise.
28494 (grub_iso9660_primary_voldesc): New member escape.
28495 (grub_iso9660_data): New member joliet.
28496 (grub_iso9660_convert_string): New function.
28497 (grub_iso9660_mount): Detect joliet extension.
28498 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
28499 (grub_iso9660_iso9660_label): Likewise.
28501 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
28502 (grub_setup_SOURCES): Add fs/udf.c.
28503 (grub_fstest_SOURCES): Likewise.
28504 (udf_mod_SOURCES): New variable.
28505 (udf_mod_CFLAGS): Likewise.
28506 (udf_mod_LDFLAGS): Likewise.
28508 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
28509 (grub_emu_SOURCES): Likewise.
28511 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28513 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28515 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
28517 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28519 * fs/udf.c: New file.
28521 2008-02-24 Robert Millan <rmh@aybabtu.com>
28523 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
28524 (normal/lexer.c_DEPENDENCIES): New variables.
28525 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
28526 (normal/lexer.c_DEPENDENCIES): Likewise.
28527 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
28528 (normal/lexer.c_DEPENDENCIES): Likewise.
28529 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
28530 (normal/lexer.c_DEPENDENCIES): Likewise.
28531 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
28532 (normal/lexer.c_DEPENDENCIES): Likewise.
28533 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
28534 (normal/lexer.c_DEPENDENCIES): Likewise.
28536 2008-02-23 Robert Millan <rmh@aybabtu.com>
28538 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
28539 since they were intended to be in hex. This didn't break previously
28540 because of a bug in gpt_partition_map_iterate() (see below).
28542 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
28543 when checking the validity of GPT header.
28544 Remove `partno', since it always provides the same information as `i'.
28546 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
28548 * include/grub/efi/time.h: Fix a wrong comment.
28550 2008-02-19 Pavel Roskin <proski@gnu.org>
28552 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
28555 2008-02-19 Bean <bean123ch@gmail.com>
28557 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
28558 (aout_mod_SOURCES): New variable.
28559 (aout_mod_CFLAGS): Likewise.
28560 (aout_mod_LDFLAGS): Likewise.
28561 (_bsd_mod_SOURCES): New variable.
28562 (_bsd_mod_CFLAGS): Likewise.
28563 (_bsd_mod_LDFLAGS): Likewise.
28564 (bsd_mod_SOURCES): New variable.
28565 (bsd_mod_CFLAGS): Likewise.
28566 (bsd_mod_LDFLAGS): Likewise.
28568 * include/grub/aout.h: New file.
28570 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
28572 * include/grub/i386/bsd.h: New file.
28574 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
28577 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
28578 function is called, so that it's possible to change it inside the hook.
28579 (grub_elf64_load): Likewise.
28580 (grub_elf_file): Don't close the file if elf header is not found.
28581 (grub_elf_close): Close the file if grub_elf_file fails (The new
28582 grub_elf_file won't close it).
28583 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
28584 (grub_elf64_size): Likewise.
28586 * kern/i386/loader.S (grub_unix_real_boot): New function.
28588 * loader/aout.c: New file.
28590 * loader/i386/bsd.c: New file.
28592 * loader/i386/bsd_normal.c: New file.
28594 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
28596 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
28597 can test other formats.
28599 2008-02-19 Robert Millan <rmh@aybabtu.com>
28601 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
28602 (grub_gpt_partition_type_empty): Redefine with macro from
28603 `<grub/gpt_partition.h>'.
28604 (gpt_partition_map_iterate): Adjust partition type comparison.
28606 Export `entry' as partmap-specific `part.data' struct.
28607 (grub_gpt_header, grub_gpt_partentry): Move from here ...
28609 * include/grub/gpt_partition.h (grub_gpt_header)
28610 (grub_gpt_partentry): ... to here (new file).
28612 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
28614 (grub_gpt_partition_type_bios_boot): New const variable, defined
28615 with macro from `<grub/gpt_partition.h>'.
28617 (setup): Replace `first_start' with `embed_region', which keeps
28618 track of the embed region (and is partmap-agnostic).
28620 Replace find_first_partition_start() with find_usable_region(),
28621 which finds a usable region for embedding using partmap-specific
28622 knowledge (supports PC/MSDOS and GPT).
28624 Fix all assumptions that the embed region start at sector 1, using
28625 `embed_region.start' from now on. Similarly, use `embed_region.end'
28626 rather than `first_start' to calculate available size.
28628 In grub_util_info() message, replace "into after the MBR" with an
28629 indication of the specific sector our embed region starts at.
28631 2008-02-19 Robert Millan <rmh@aybabtu.com>
28633 * DISTLIST: Replace `commands/ieee1275/halt.c' and
28634 `commands/ieee1275/reboot.c' with `commands/halt.c' and
28635 `commands/reboot.c'.
28636 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
28637 (halt_mod_SOURCES): Likewise.
28638 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
28639 (halt_mod_SOURCES): Likewise.
28641 2008-02-17 Christian Franke <franke@computer.org>
28643 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
28645 2008-02-17 Robert Millan <rmh@aybabtu.com>
28647 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
28648 set `first_start' to 0 for non-PC/MSDOS partition maps.
28650 2008-02-16 Robert Millan <rmh@aybabtu.com>
28652 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
28653 do not assume partition map is PC/MSDOS before performing checks that
28654 are specific to that layout.
28656 2008-02-13 Robert Millan <rmh@aybabtu.com>
28658 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
28659 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
28660 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
28662 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
28664 * configure.ac: Only a cosmetic change on the handling of
28665 -fno-stack-protector.
28667 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
28669 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
28670 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
28672 (grub_install_SOURCES): Add halt.mod and reboot.mod.
28673 (halt_mod_SOURCES): New variable.
28674 (halt_mod_CFLAGS): Likewise.
28675 (halt_mod_LDFLAGS): Likewise.
28676 (reboot_mod_SOURCES): Likewise.
28677 (reboot_mod_CFLAGS): Likewise.
28678 (reboot_mod_LDFLAGS): Likewise.
28680 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
28681 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
28683 (halt_mod_SOURCES): Likewise.
28684 (reboot_mod_SOURCES): Likewise.
28686 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
28687 commands/i386/pc/reboot.c by commands/reboot.c.
28688 (reboot_mod_SOURCES): Likewise.
28690 * commands/i386/pc/reboot.c: merge this file ...
28692 * commands/ieee1275/reboot.c: ... and this file ...
28694 * commands/reboot.c: ... to this file.
28695 Add some precompiler directive to include the correct header for
28698 * commands/ieee1275/halt.c: move this file ...
28700 * commands/halt.c: ... to here.
28701 Add some precompiler directive to include the correct header for
28704 * include/grub/efi/efi.h (grub_reboot): New function declaration.
28705 (grub_halt): Likewise.
28707 * kern/efi/efi.c (grub_reboot): New function.
28708 (grub_halt): Likewise.
28710 2008-02-12 Robert Millan <rmh@aybabtu.com>
28712 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
28713 /dev (like it is done for /dev/mapper). This doesn't provide support
28714 for EVMS, but at least it is now easy to identify the problem when it
28717 2008-02-11 Robert Millan <rmh@aybabtu.com>
28719 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
28720 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
28721 comparing it with -1, not 0.
28723 2008-02-10 Robert Millan <rmh@aybabtu.com>
28725 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
28727 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28728 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28730 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
28731 `disk/lvm.c' to the end of the list.
28732 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
28733 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28735 2008-02-10 Robert Millan <rmh@aybabtu.com>
28737 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
28738 grub_print_error() instead. This will let user know why we're entering
28740 Based on suggestions from Sam Morris.
28742 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
28744 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
28745 on remaining N args, instead of "--" arg N times.
28747 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
28749 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
28750 (fill_with_default_glyph): Changed to use unknown_glyph for fill
28751 pattern for unknown glyphs.
28753 2008-02-09 Robert Millan <rmh@aybabtu.com>
28755 * configure.ac: Probe for `help2man'.
28756 * Makefile.in (builddir): New variable.
28757 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
28758 or otherwise add a few flags/options to it.
28759 (install-local): For every executable utility or script that is
28760 installed, invoke $(HELP2MAN) to install a manpage based on --help
28763 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
28764 that it doesn't prevent --help from working in build tree.
28766 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
28767 with `bug-grub@gnu.org'.
28768 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
28769 * util/update-grub.in (usage): New function.
28770 Implement proper argument check, with support for --help and --version
28771 (as well as existing -y).
28773 2008-02-09 Christian Franke <franke@computer.org>
28775 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
28776 avoid overwriting previous output.
28777 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
28779 2008-02-09 Robert Millan <rmh@aybabtu.com>
28781 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
28784 2008-02-09 Robert Millan <rmh@aybabtu.com>
28786 * commands/sleep.c: New file.
28787 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
28788 (sleep_mod_SOURCES): New variable.
28789 (sleep_mod_CFLAGS): Likewise.
28790 (sleep_mod_LDFLAGS): Likewise.
28792 2008-02-09 Robert Millan <rmh@aybabtu.com>
28794 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
28795 situations in which we can deduce the RAID size and the superblock
28798 2008-02-09 Robert Millan <rmh@aybabtu.com>
28800 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
28801 and return a grub_diskmemberlist_t composed of LVM physical volumes.
28802 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
28804 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
28805 and return a grub_diskmemberlist_t composed of physical array members.
28806 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
28808 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
28810 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
28811 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
28812 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
28814 * util/grub-probe.c (probe): Move partmap probing code from here ...
28815 (probe_partmap): ... to here.
28816 (probe): Use probe_partmap() once for the disk we're probing, and
28817 additionally, when such disk contains a memberlist() struct member,
28818 once for each disk that is contained in the structure returned by
28821 2008-02-09 Robert Millan <rmh@aybabtu.com>
28823 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
28824 environment variable to 'all' in order to obtain debug output from
28826 * util/i386/pc/grub-setup.c (main): Likewise.
28828 2008-02-08 Robert Millan <rmh@aybabtu.com>
28830 * disk/raid.c (grub_raid_scan_device): Check for
28831 `array->device[sb.this_disk.number]' rather than for
28832 `array->device[sb.this_disk.number]->name', since the latter is not
28833 guaranteed to be accessible.
28835 2008-02-08 Robert Millan <rmh@aybabtu.com>
28837 * disk/raid.c: Update copyright.
28838 * fs/cpio.c: Likewise.
28839 * include/grub/raid.h: Likewise.
28840 * loader/i386/pc/multiboot.c: Likewise.
28841 * util/hostfs.c: Likewise.
28843 2008-02-08 Robert Millan <rmh@aybabtu.com>
28845 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
28846 to a grub_disk_t array.
28847 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
28849 (grub_raid_scan_device): Replace `device[x].name' accesses with
28850 `device[x]->name'. Simplify initialization of `array->device[x]'.
28852 2008-02-08 Robert Millan <rmh@aybabtu.com>
28854 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
28855 grub_dprintf() calls.
28856 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
28859 2008-02-07 Christian Franke <franke@computer.org>
28861 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
28862 instead of fseek and ftell to support large files.
28863 (grub_hostfs_read): Likewise.
28865 2008-02-07 Robert Millan <rmh@aybabtu.com>
28867 Patch from Jeroen Dekkers.
28868 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
28869 failure, since successfully reading all array members might not be
28872 2008-02-06 Robert Millan <rmh@aybabtu.com>
28874 * util/grub-probe.c (probe): Simplify partmap probing (with the
28875 assumption that the first word up to the underscore equals to
28878 2008-02-06 Christian Franke <franke@computer.org>
28880 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
28881 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
28882 last block of a cpio or tar stream.
28883 Check for "TRAILER!!!" instead of any empty data
28884 block to detect last block of a cpio stream.
28885 (grub_cpio_dir): Fix constness of variable np.
28886 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
28887 cpio or tar trailer is detected. This fixes a crash
28888 on open of a non existing file.
28890 2008-02-05 Bean <bean123ch@gmail.com>
28892 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
28894 (grub_multiboot_load_elf64): Likewise.
28895 (grub_multiboot): Initialize mbi structure.
28897 * util/grub-fstest.c: Don't include unused header file script.h.
28899 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
28901 (grub_fstest_SOURCES): Likewise.
28903 2008-02-05 Robert Millan <rmh@aybabtu.com>
28905 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
28906 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
28907 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
28908 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
28910 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
28911 (translation_table): Replace hardcoded values with macros
28912 provided by `<grub/term.h>'.
28914 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
28915 (keyboard_map): Correct/add a few values, with macros provided
28916 by `<grub/term.h>'.
28917 (keyboard_map_shift): Zero values that don't differ from their
28918 `keyboard_map' equivalents.
28919 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
28920 Discard the second scan code that is always sent by Caps lock.
28921 Only use `keyboard_map_shift' when it provides a non-zero value,
28922 otherwise fallback to `keyboard_map'.
28924 2008-02-04 Bean <bean123ch@gmail.com>
28926 * Makefile.in (enable_grub_fstest): New variable.
28928 * conf/common.rmk (grub_fstest_init.lst): New rule.
28929 (grub_fstest_init.h): Likewise.
28930 (grub_fstest_init.c): Likewise.
28931 (util/grub-fstest.c_DEPENDENCIES): New variable.
28932 (grub_fstest_SOURCES): Likewise.
28934 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
28936 * util/grub-fstest.c: New file.
28938 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
28940 Make grub-setup handle a separate root device.
28942 * util/i386/pc/grub-setup.c (setup): Always open the root device,
28943 so that the root device can be compared with the destination
28945 When embedding the core image, if the root and destination devices
28946 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
28948 When not embedding, set ROOT_DRIVE to 0xFF.
28950 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
28952 Add support for having a grub directory in a different drive. This
28953 is still only the data handling part.
28955 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
28956 (codestart): Save %dh in GRUB_ROOT_DRIVE.
28957 (grub_root_drive): New variable.
28959 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
28960 instead of GRUB_BOOT_DRIVE to construct a device name. Set
28961 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
28964 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
28966 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
28968 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
28970 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
28971 is bogus, because PXE booting does not specify any drive
28974 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
28975 am not sure if this is really correct.
28977 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
28978 is always identical to the boot drive when booting from a CD.
28980 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
28982 (root_drive): New variable.
28983 (real_start): Unconditionally set %dh to ROOT_DRIVE.
28984 (setup_sectors): Push %dx right after popping it, because %dh will
28986 (copy_buffer): Restore %dx.
28988 2008-02-03 Robert Millan <rmh@aybabtu.com>
28990 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
28991 use `cdboot.img' for cdrom images.
28993 2008-02-03 Robert Millan <rmh@aybabtu.com>
28995 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
28996 only setup gfxterm when `font' command has succeeded.
28998 2008-02-03 Robert Millan <rmh@aybabtu.com>
29000 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
29001 (grub_rescue_cmd_multiboot_loader)
29002 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
29004 2008-02-03 Pavel Roskin <proski@gnu.org>
29006 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
29007 %edx and %esi from stack only after grub_gate_a20() is called.
29008 grub_gate_a20() clobbers %edx.
29010 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
29012 * configure.ac (AC_INIT): Bumped to 1.96.
29014 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
29015 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
29016 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
29017 video/readers/png.c.
29019 2008-02-03 Bean <bean123ch@gmail.com>
29021 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
29022 (cdboot_img_SOURCES): New variable.
29023 (cdboot_img_ASFLAGS): New variable.
29024 (cdboot_img_LDFLAGS): New variable.
29026 * boot/i386/pc/cdboot.S: New file.
29028 * disk/i386/pc/biosdisk.c (cd_start): New variable.
29029 (cd_count): Likewise.
29030 (grub_biosdisk_get_drive): Add support for cd device.
29031 (grub_biosdisk_call_hook): Likewise.
29032 (grub_biosdisk_iterate): Likewise.
29033 (grub_biosdisk_open): Likewise.
29034 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
29035 (grub_biosdisk_rw): Support reading from cd device.
29036 (GRUB_MOD_INIT): Iterate cd devices.
29038 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
29039 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
29040 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
29042 * kern/i386/pc/init.c (make_install_device): Check for cd device.
29044 2008-02-02 Robert Millan <rmh@aybabtu.com>
29046 * commands/read.c: New file.
29047 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
29048 (read_mod_SOURCES): New variable.
29049 (read_mod_CFLAGS): Likewise.
29050 (read_mod_LDFLAGS): Likewise.
29052 2008-02-02 Robert Millan <rmh@aybabtu.com>
29054 * normal/main.c (grub_normal_execute): Check for `menu->size' when
29055 determining whether menu has to be displayed.
29057 2008-02-02 Marco Gerards <marco@gnu.org>
29059 * bus/pci.c: New file.
29061 * include/grub/pci.h: Likewise.
29063 * include/grub/i386/pc/pci.h: Likewise.
29065 * commands/lspci.c: Likewise.
29067 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
29069 (pci_mod_SOURCES): New variable.
29070 (pci_mod_CFLAGS): Likewise.
29071 (pci_mod_LDFLAGS): Likewise.
29072 (lspci_mod_SOURCES): Likewise.
29073 (lspci_mod_CFLAGS): Likewise.
29074 (lspci_mod_LDFLAGS): Likewise.
29076 2008-02-02 Bean <bean123ch@gmail.com>
29078 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
29079 (grub_ufs_get_file_block): Fix indirect block calculation problem.
29081 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
29082 (grub_xfs_btree_node): New structure.
29083 (grub_xfs_btree_root): New structure.
29084 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
29085 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
29086 (GRUB_XFS_EXTENT_BLOCK): Likewise.
29087 (GRUB_XFS_EXTENT_SIZE): Likewise.
29088 (grub_xfs_read_block): Support btree format type.
29089 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
29090 Use directory block as basic unit.
29092 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
29094 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
29095 __attribute__ ((__regparm__ (1))).
29097 2008-02-01 Robert Millan <rmh@aybabtu.com>
29099 Correct a mistake in previous commit.
29101 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
29103 (normal/command.c_DEPENDENCIES): New variable.
29105 2008-02-01 Robert Millan <rmh@aybabtu.com>
29107 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
29109 (normal/command.c_DEPENDENCIES): New variable.
29110 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
29111 * conf/i386-ieee1275.rmk: Likewise.
29112 * conf/i386-linuxbios.rmk: Likewise.
29113 * conf/i386-pc.rmk: Likewise.
29114 * conf/sparc64-ieee1275.rmk: Likewise.
29115 * conf/powerpc-ieee1275.rmk: Likewise.
29116 (grub_emu_SOURCES): Add `fs/fshelp.c'.
29118 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
29120 2008-02-01 Robert Millan <rmh@aybabtu.com>
29122 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
29123 call at beginning of function.
29125 2008-01-31 Pavel Roskin <proski@gnu.org>
29127 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
29128 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
29129 (grub_mkrescue_SOURCES): Likewise.
29130 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
29132 2008-01-30 Robert Millan <rmh@aybabtu.com>
29134 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
29135 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
29136 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
29137 (grub_probe_SOURCES): ... to here.
29139 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
29140 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
29141 * conf/i386-ieee1275.rmk: Likewise.
29142 * conf/i386-linuxbios.rmk: Likewise.
29143 * conf/powerpc-ieee1275.rmk: Likewise.
29145 2008-01-30 Tristan Gingold <gingold@free.fr>
29147 * kern/rescue.c: Silently accept empty lines.
29149 2008-01-29 Bean <bean123ch@gmail.com>
29151 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
29152 (real_code_2): Code cleanup and change comment style.
29153 (move_memory): Avoid using 32-bit address mode.
29155 2008-01-29 Bean <bean123ch@gmail.com>
29157 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
29158 (png_mod_SOURCES): New variable.
29159 (png_mod_CFLAGS): Likewise.
29160 (png_mod_LDFLAGS): Likewise.
29162 * video/readers/png.c: New file.
29164 2008-01-28 Robert Millan <rmh@aybabtu.com>
29166 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
29167 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
29168 `ifndef GRUB_MOD_GAP' hack.
29169 * util/elf/grub-mkimage.c (add_segments): Likewise.
29171 2008-01-27 Robert Millan <rmh@aybabtu.com>
29173 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
29174 `GRUB_MOD_GAP' for platforms in which it's not defined.
29175 * util/elf/grub-mkimage.c (add_segments): Likewise.
29177 2008-01-27 Robert Millan <rmh@aybabtu.com>
29179 Get grub-emu to build again (including parallel builds).
29181 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
29183 (util/grub-emu.c_DEPENDENCIES): ... this, ...
29184 (normal/execute.c_DEPENDENCIES): ... this, ...
29185 (grub-emu_DEPENDENCIES): ... and this.
29187 * conf/i386-efi.rmk: Likewise.
29188 * conf/i386-linuxbios.rmk: Likewise.
29189 * conf/i386-ieee1275.rmk: Likewise.
29190 * conf/powerpc-ieee1275.rmk: Likewise.
29191 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
29193 2008-01-27 Robert Millan <rmh@aybabtu.com>
29195 * NEWS: Add a few items.
29197 2008-01-27 Robert Millan <rmh@aybabtu.com>
29199 Fix parallel builds with grub-emu. Based on earlier commit for
29200 grub-probe and grub-setup.
29202 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29203 (util/grub-emu.c_DEPENDENCIES): ... this.
29204 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29205 (util/grub-emu.c_DEPENDENCIES): ... this.
29206 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29207 (util/grub-emu.c_DEPENDENCIES): ... this.
29208 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29209 (util/grub-emu.c_DEPENDENCIES): ... this.
29210 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29211 (util/grub-emu.c_DEPENDENCIES): ... this.
29213 2008-01-27 Pavel Roskin <proski@gnu.org>
29215 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
29216 to create a gap between _end and the modules added to the image
29217 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
29218 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
29219 * util/elf/grub-mkimage.c (add_segments): Likewise.
29221 2008-01-26 Pavel Roskin <proski@gnu.org>
29223 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
29224 just return an error.
29226 2008-01-26 Bean <bean123ch@gmail.com>
29228 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
29229 (grub_reiserfs_get_item): Save offset of the next item.
29230 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
29232 2008-01-25 Robert Millan <rmh@aybabtu.com>
29234 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
29235 make all filesystem sources appear together (possibly fixing omissions
29237 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29238 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29239 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
29240 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29242 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
29244 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
29245 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
29246 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
29247 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
29249 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
29250 (probe): Add a sanity check to make sure of our ability to read
29251 requested files when probing for filesystem type.
29253 * genmk.rb: Update copyright year (2007).
29255 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
29256 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
29257 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
29258 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
29259 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
29260 : Remove function prototypes.
29262 2008-01-25 Robert Millan <rmh@aybabtu.com>
29264 Revert my previous commits (based on wrong assumption of how grub_errno
29267 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
29268 * kern/file.c (grub_file_open): Likewise.
29270 2008-01-24 Pavel Roskin <proski@gnu.org>
29272 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
29273 that hang if GRUB tries to setup colors.
29274 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
29275 colors for firmwares that don't support it.
29276 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
29277 Recognize Open Hack'Ware, set flags to work around its
29280 2008-01-24 Robert Millan <rmh@aybabtu.com>
29282 * kern/file.c (grub_file_open): Do not account previous failures of
29283 unrelated functions when grub_errno is checked for.
29284 Reported by Oleg Strikov.
29286 2008-01-24 Bean <bean123ch@gmail.com>
29288 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
29289 (grub_ufs_sblock): New member volume name.
29290 (grub_ufs_find_file): Fix string copy bug.
29291 (grub_ufs_label): Implement this function properly.
29293 * fs/hfs.c (grub_hfs_cnid_type): New enum.
29294 (grub_hfs_iterate_records): Use the correct file number for extents
29295 and catalog file. Fix problem in next index calculation.
29296 (grub_hfs_find_node): Replace recursive function call with loop.
29297 (grub_hfs_iterate_dir): Replace recursive function call with loop.
29299 2008-01-23 Robert Millan <rmh@aybabtu.com>
29301 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
29302 `<grub/symbol.h>' and `<grub/multiboot.h>'.
29303 (grub_multiboot2_real_boot): New function prototype.
29305 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
29306 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
29308 * kern/i386/ieee1275/init.c (grub_os_area_addr)
29309 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
29311 2008-01-23 Robert Millan <rmh@aybabtu.com>
29313 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
29314 #ifdef'ed out grub_printf().
29316 2008-01-23 Robert Millan <rmh@aybabtu.com>
29318 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
29319 grub_dprintf calls, since they make "debug=all" mode unusable.
29320 (grub_console_checkkey): Likewise.
29322 2008-01-23 Robert Millan <rmh@aybabtu.com>
29324 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
29325 `term/i386/pc/at_keyboard.c'.
29326 (pkglib_MODULES): Add `serial.mod'.
29327 (serial_mod_SOURCES): New variable.
29328 (serial_mod_CFLAGS): Likewise.
29329 (serial_mod_LDFLAGS): Likewise.
29331 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
29332 `<grub/powerpc/ieee1275/console.h>'.
29333 (grub_keyboard_controller_init): New function prototype.
29334 (grub_console_checkkey): Likewise.
29335 (grub_console_getkey): Likewise.
29337 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
29340 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
29341 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
29343 2008-01-23 Robert Millan <rmh@aybabtu.com>
29345 * kern/i386/pc/init.c (make_install_device): When memdisk image is
29346 present, "(memdisk)/boot/grub" becomes the default prefix.
29348 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
29349 a memdisk tarball with all the modules. Add --overlay=DIR option that
29350 allows users to overlay additional files into the image.
29352 2008-01-23 Robert Millan <rmh@aybabtu.com>
29354 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
29355 and `machine/memory.h'.
29356 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
29357 (_multiboot_mod_SOURCES): New variable.
29358 (_multiboot_mod_CFLAGS): Likewise.
29359 (_multiboot_mod_LDFLAGS): Likewise.
29360 (multiboot_mod_SOURCES): Likewise.
29361 (multiboot_mod_CFLAGS): Likewise.
29362 (multiboot_mod_LDFLAGS): Likewise.
29364 * include/grub/i386/ieee1275/loader.h: New file.
29366 * include/grub/i386/ieee1275/machine.h: Likewise.
29368 * include/grub/i386/ieee1275/memory.h: Likewise.
29370 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
29371 variable declaration.
29372 (grub_os_area_size): Likewise.
29374 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
29375 (grub_lower_mem, grub_upper_mem): New variables.
29376 (grub_stop_floppy): New function (just to make
29377 grub_multiboot2_real_boot() happy).
29379 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
29380 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
29381 (grub_stop): New function.
29382 Include `"../realmode.S"' and `"../loader.S"'.
29384 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
29385 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
29387 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
29388 rely on grub_multiboot2_real_boot() for final boot.
29390 2008-01-22 Robert Millan <rmh@aybabtu.com>
29392 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
29393 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
29394 device that doesn't look like an SD card.
29395 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
29396 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
29397 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
29398 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
29401 2008-01-22 Robert Millan <rmh@aybabtu.com>
29403 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
29404 avoid claiming over our own code.
29406 2008-01-22 Bean <bean123ch@gmail.com>
29408 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
29409 (jpeg_mod_SOURCES): New variable.
29410 (jpeg_mod_CFLAGS): Likewise.
29411 (jpeg_mod_LDFLAGS): Likewise.
29413 * video/readers/jpeg.c : New file.
29415 2008-01-22 Bean <bean123ch@gmail.com>
29417 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
29418 there are no more items.
29420 2008-01-21 Robert Millan <rmh@aybabtu.com>
29422 * kern/mm.c (grub_mm_init_region): Improve debug message.
29424 2008-01-21 Robert Millan <rmh@aybabtu.com>
29426 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
29427 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
29429 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
29431 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
29432 Indicates start of upper memory.
29433 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
29434 (generate_image): Abort when image size is big enough to corrupt
29437 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
29438 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
29439 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
29440 instead of hardcoding 0xA0000.
29441 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
29442 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
29443 instead of hardcoding 0xA0000.
29445 2008-01-21 Robert Millan <rmh@aybabtu.com>
29447 * disk/memdisk.c (memdisk_size): New variable.
29448 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
29450 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
29451 image to dynamic memory.
29452 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
29453 `memdisk_size'. Free memdisk block.
29455 2008-01-21 Robert Millan <rmh@aybabtu.com>
29457 Fix detection of very small filesystems (like tar).
29459 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
29460 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
29461 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
29462 a problem with this disk).
29464 2008-01-21 Robert Millan <rmh@aybabtu.com>
29466 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
29467 on grub_biosdisk_rw_standard() error.
29469 2008-01-21 Robert Millan <rmh@aybabtu.com>
29471 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
29473 * kern/elf.c: Likewise.
29474 * kern/ieee1275/ieee1275.c: Likewise.
29475 * kern/powerpc/ieee1275/openfw.c: Likewise.
29476 * term/ieee1275/ofconsole.c: Likewise.
29478 2008-01-21 Robert Millan <rmh@aybabtu.com>
29480 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
29482 * include/grub/kernel.h (grub_arch_memdisk_addr)
29483 (grub_arch_memdisk_size): Moved from here ...
29485 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
29486 (grub_arch_memdisk_size): ... to here.
29488 2008-01-21 Robert Millan <rmh@aybabtu.com>
29490 Mostly based on bugfix from Bean.
29492 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
29493 attribute with hook() parameter.
29494 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
29496 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
29497 attribute with hook() parameter.
29498 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
29501 2008-01-21 Robert Millan <rmh@aybabtu.com>
29503 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
29504 (pkglib_MODULES): Add `memdisk.mod'.
29505 (memdisk_mod_SOURCES): New variable.
29506 (memdisk_mod_CFLAGS): Likewise.
29507 (memdisk_mod_LDFLAGS): Likewise.
29509 * disk/memdisk.c: New file.
29511 * include/grub/disk.h (grub_disk_dev_id): Add
29512 `GRUB_DISK_DEVICE_MEMDISK_ID'.
29514 * include/grub/i386/pc/kernel.h
29515 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
29516 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
29517 (grub_kernel_image_size): New variable declaration.
29518 (grub_total_module_size): Likewise.
29519 (grub_memdisk_image_size): Likewise.
29521 * include/grub/i386/pc/memory.h
29522 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
29524 * include/grub/kernel.h: Include `<grub/symbol.h>'.
29525 (grub_arch_memdisk_addr): New variable declaration.
29526 (grub_arch_memdisk_size): Likewise.
29528 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
29529 (grub_arch_memdisk_size): Likewise.
29531 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
29532 (codestart): Replace hardcoded `0x100000' with
29533 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
29535 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
29536 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
29537 not NULL, append the contents of the file it refers to, at the end of
29538 the compressed kernel image. Initialize `grub_memdisk_image_size'
29539 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
29540 (options): Add "memdisk"|'m' option.
29541 (main): Parse --memdisk|-m option, and pass user-provided path as
29542 parameter to generate_image().
29544 2008-01-20 Robert Millan <rmh@aybabtu.com>
29546 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
29547 grub_dprintf() calls from here ...
29548 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
29550 2008-01-20 Robert Millan <rmh@aybabtu.com>
29552 Fix detection of "real mode" when /options/real-mode? doesn't exist.
29554 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
29556 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
29557 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
29558 `GRUB_IEEE1275_FLAG_REAL_MODE'.
29559 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
29561 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
29562 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
29564 2008-01-19 Robert Millan <rmh@aybabtu.com>
29566 Get rid of confusing function (superseded by
29567 `grub_ieee1275_get_integer_property')
29568 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
29570 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
29572 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
29573 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
29574 in native endianness from grub_ieee1275_get_integer_property().
29576 2008-01-19 Robert Millan <rmh@aybabtu.com>
29578 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
29579 command after "shut-down", since implementations differ on which
29580 the command for halt is.
29582 2008-01-19 Robert Millan <rmh@aybabtu.com>
29584 * include/grub/i386/linuxbios/console.h: Add header protection.
29585 (grub_keyboard_controller_init): New function prototype.
29586 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
29587 (KEYBOARD_COMMAND_READ): Likewise.
29588 (KEYBOARD_COMMAND_WRITE): Likewise.
29589 (KEYBOARD_SCANCODE_SET1): Likewise.
29590 (grub_keyboard_controller_write): New function.
29591 (grub_keyboard_controller_read): Likewise.
29592 (grub_keyboard_controller_init): Likewise.
29594 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
29595 (grub_console_init): On coreboot/LinuxBIOS, call
29596 grub_keyboard_controller_init().
29598 2008-01-19 Robert Millan <rmh@aybabtu.com>
29600 PowerPC changes provided by Pavel Roskin.
29602 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
29603 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
29604 don't rely on cmain() doing it.
29605 * kern/i386/ieee1275/startup.S (_start): Store %eax in
29606 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
29608 2008-01-16 Robert Millan <rmh@aybabtu.com>
29610 * include/grub/i386/linuxbios/memory.h
29611 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
29612 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
29613 receive `table_header' as argument. Instead, probe for it in the
29614 known memory ranges where it can be present.
29615 (grub_available_iterate): Do not pass a fixed `table_header' address
29616 to grub_linuxbios_table_iterate().
29618 2008-01-15 Robert Millan <rmh@aybabtu.com>
29620 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
29621 * conf/i386-ieee1275.rmk: New file.
29622 * include/grub/i386/ieee1275/console.h: Likewise.
29623 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
29624 * include/grub/i386/ieee1275/kernel.h: Likewise.
29625 * include/grub/i386/ieee1275/time.h: Likewise.
29626 * kern/i386/ieee1275/init.c: Likewise.
29627 * kern/i386/ieee1275/startup.S: Likewise.
29629 2008-01-15 Robert Millan <rmh@aybabtu.com>
29631 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
29632 when pointers are 32-bit (but still do set it to one when they are
29635 2008-01-15 Robert Millan <rmh@aybabtu.com>
29637 * include/grub/ieee1275/ieee1275.h
29638 (grub_ieee1275_get_integer_property): New function prototype.
29640 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
29641 (grub_ieee1275_get_integer_property): New function. Wraps around
29642 grub_ieee1275_get_property() to handle endianness.
29644 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
29645 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
29647 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
29648 (grub_map): Likewise.
29649 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
29651 2008-01-15 Bean <bean123ch@gmail.com>
29653 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
29654 (grub_script_execute_cmdline): Reset grub_errno.
29656 * normal/main.c (read_config_file): Reset grub_errno.
29658 * normal/parse.y (script_init): New.
29659 (script): Move function and menuentry here.
29661 (command): Add delimiter at the end of command.
29662 (commands): Adjust to match the new command.
29663 (commandblock): Remove grub_script_lexer_record_start.
29664 (menuentry): Add grub_script_lexer_record_start, use the new commands.
29665 (if): Use the new commands.
29667 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
29669 2008-01-15 Robert Millan <rmh@aybabtu.com>
29671 * normal/menu.c (run_menu): Move timeout message from here ...
29672 (print_timeout): ... to here.
29673 (run_menu): Use print_timeout() once during initial draw to print
29674 the whole message, and again in every clock tick to update only
29675 the number of seconds.
29677 2008-01-15 Robert Millan <rmh@aybabtu.com>
29679 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
29680 actual size of `available' from grub_ieee1275_get_property(), and
29681 restrict parsing to that bound.
29683 2008-01-15 Christian Franke <franke@computer.org>
29685 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
29686 (argp_program_version): Remove variable.
29687 (argp_program_bug_address): Likewise.
29688 (options): Convert from struct argp_option to struct option.
29689 (struct arguments): Remove.
29690 (parse_opt): Remove.
29691 (usage): New function.
29692 (main): Replace struct args members by simple variables.
29693 Replace argp_parse() by getopt_long().
29694 Add switch to evaluate options.
29695 Add missing "(...)" around root_dev in prefix string.
29697 2008-01-14 Robert Millan <rmh@aybabtu.com>
29699 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
29700 for grub_ieee1275_exit(), in order to improve portability.
29702 2008-01-14 Robert Millan <rmh@aybabtu.com>
29704 * util/grub.d/10_linux.in (prefix): Define.
29705 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
29707 2008-01-13 Pavel Roskin <proski@gnu.org>
29709 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
29710 grub_errno if no errors have been detected.
29712 2008-01-12 Robert Millan <rmh@aybabtu.com>
29714 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
29715 (grub_util_get_dev_abstraction): New function prototype.
29717 * util/getroot.c: Include `<grub/util/getroot.h>'
29718 (grub_util_get_grub_dev): Move detection of abstraction type to ...
29719 (grub_util_get_dev_abstraction): ... here (new function).
29721 * util/grub-probe.c: Convert PRINT_* to an enum. Add
29722 `PRINT_ABSTRACTION'.
29723 (probe): Probe for abstraction type when requested.
29724 (main): Understand `--target=abstraction'.
29726 * util/i386/efi/grub-install.in: Add abstraction module to core
29727 image when it is found to be necessary.
29728 * util/i386/pc/grub-install.in: Likewise.
29729 * util/powerpc/ieee1275/grub-install.in: Likewise.
29731 * util/update-grub_lib.in (font_path): Return system path without
29732 converting to GRUB path.
29733 * util/update-grub.in: Convert system path returned by font_path()
29734 to a GRUB path. Use `grub-probe -t abstraction' to determine what
29735 abstraction module is needed for loading fonts (if any). Export
29736 that as `GRUB_PRELOAD_MODULES'.
29737 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
29740 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
29742 Remove some unused code from reiserfs.
29744 * fs/reiserfs.c (struct grub_reiserfs_key)
29745 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
29746 (struct grub_reiserfs_node_body): Removed.
29747 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
29749 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
29751 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
29753 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
29755 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
29757 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
29759 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
29760 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
29761 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
29763 2008-01-10 Robert Millan <rmh@aybabtu.com>
29765 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
29766 Determines if a file is garbage left by packaging systems, etc.
29767 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
29768 for processing /etc/grub.d scripts.
29769 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
29770 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
29771 as a condition for processing Linux images.
29773 2008-01-10 Pavel Roskin <proski@gnu.org>
29775 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
29776 to compile reiserfs.c on PowerPC.
29778 2008-01-10 Robert Millan <rmh@aybabtu.com>
29780 * kern/device.c (grub_device_iterate): Do not abort device iteration
29781 when one of the devices cannot be opened.
29782 * kern/disk.c (grub_disk_open): Do not account previous failures of
29783 unrelated functions when grub_errno is checked for.
29785 2008-01-08 Robert Millan <rmh@aybabtu.com>
29787 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
29788 `! grub_linux_is_bzimage', change order of address comparison to make
29789 it more intuitive, and improve "too big zImage" error message.
29791 2008-01-08 Robert Millan <rmh@aybabtu.com>
29793 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
29794 `$(update-grub_DATA)'.
29795 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
29798 2008-01-07 Robert Millan <rmh@aybabtu.com>
29800 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
29801 which instruction is modified by grub-setup during installation
29802 (since it wasn't obvious by only looking at this file).
29804 2008-01-07 Robert Millan <rmh@aybabtu.com>
29806 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
29807 listing actual TODO items.
29809 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
29811 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
29813 (grub_reiserfs_get_key_offset): Likewise.
29814 (grub_reiserfs_set_key_offset): Likewise.
29815 (grub_reiserfs_set_key_type): Likewise.
29816 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
29818 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
29819 better to remove the bitfield version completely.
29821 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
29823 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
29824 allocated from the heap, due to the fshelp implementation.
29825 (grub_reiserfs_dir): Free NODE, due to the same reason.
29827 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
29829 Mostly from Vincent Pelletier:
29831 * fs/reiserfs.c: New file.
29833 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
29834 (reiserfs_mod_SOURCES): New variable.
29835 (reiserfs_mod_CFLAGS): Likewise.
29836 (reiserfs_mod_LDFLAGS): Likewise.
29838 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
29839 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
29840 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
29843 2008-01-06 Robert Millan <rmh@aybabtu.com>
29845 * normal/color.c: Remove `<grub/env.h>'.
29847 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
29849 * include/grub/normal.h: Include <grub/env.h>.
29851 2008-01-05 Robert Millan <rmh@aybabtu.com>
29853 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
29854 usage example with `(hd0,1)'.
29855 Reported by Samuel Thibault.
29857 2008-01-05 Robert Millan <rmh@aybabtu.com>
29859 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
29860 (grub_linux_boot_zimage): Rename to ...
29861 (grub_linux_boot): ... this.
29862 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
29863 (grub_linux_boot_zimage): Conditionalize zImage copy.
29865 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
29866 (grub_linux_boot_bzimage): Remove prototype.
29867 (grub_linux_boot_zimage): Rename to ...
29868 (grub_linux_boot): ... this.
29870 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
29871 (grub_linux_boot): Remove function.
29873 2008-01-05 Robert Millan <rmh@aybabtu.com>
29875 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
29876 (grub_env_write_color_highlight): Likewise.
29877 (grub_wait_after_message): Likewise.
29879 * normal/color.c: New file.
29881 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
29882 (normal_mod_DEPENDENCIES): Likewise.
29884 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
29885 (normal_mod_DEPENDENCIES): Likewise.
29887 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
29888 (normal_mod_DEPENDENCIES): Likewise.
29890 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
29891 (normal_mod_DEPENDENCIES): Likewise.
29893 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
29894 for waiting after a message is printed.
29895 * normal/main.c (read_config_file): Likewise.
29896 (grub_normal_init): Register grub_env_write_color_normal() and
29897 grub_env_write_color_highlight() hooks. Mark `color_normal' and
29898 `color_highlight' variables as global.
29900 * normal/menu.c (grub_wait_after_message): New function.
29901 (grub_color_menu_normal): New variable. Replaces ...
29902 (GRUB_COLOR_MENU_NORMAL): ... this macro.
29903 (grub_color_menu_highlight): New variable. Replaces ...
29904 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
29905 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
29906 `GRUB_TERM_COLOR_STANDARD'.
29907 (print_message): Use `grub_setcolorstate' to reload colors. Rename
29908 `normal_code' and `highlight_code' to `old_color_normal' and
29909 `old_color_highlight', respectively.
29910 (grub_menu_init_page): Update colors when drawing the menu, based on
29911 `menu_color_normal' and `menu_color_highlight' variables.
29912 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
29913 a message is printed.
29915 2008-01-05 Robert Millan <rmh@aybabtu.com>
29917 * kern/env.c (grub_env_context_open): Propagate hooks for global
29918 variables to new context.
29920 * kern/main.c (grub_set_root_dev): Export `root' variable.
29922 2008-01-05 Robert Millan <rmh@aybabtu.com>
29924 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
29925 discs unconditionally, since udev and others have options to provide
29928 2008-01-05 Robert Millan <rmh@aybabtu.com>
29930 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
29932 2008-01-04 Christian Franke <franke@computer.org>
29934 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
29937 2008-01-03 Pavel Roskin <proski@gnu.org>
29939 * kern/i386/linuxbios/init.c: Put "void" to all function
29940 declarations with no arguments.
29941 * kern/powerpc/ieee1275/init.c: Likewise.
29942 * term/i386/pc/at_keyboard.c: Likewise.
29943 * term/i386/pc/vga_text.c: Likewise.
29944 * util/grub-mkdevicemap.c: Likewise.
29946 2008-01-02 Robert Millan <rmh@aybabtu.com>
29948 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
29949 message when loaded image is out of bounds.
29950 (grub_multiboot_load_elf64): Likewise.
29952 2008-01-02 Pavel Roskin <proski@gnu.org>
29954 * util/grub.d/10_linux.in: Try version without ".old" when
29955 looking for initrd. It's better to use initrd from the newer
29956 kernel of the same version than no initrd at all.
29958 2008-01-01 Robert Millan <rmh@aybabtu.com>
29960 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
29962 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
29964 * include/grub/video.h: Added grub_video_unmap_color and
29965 grub_video_get_active_render_target.
29966 (grub_video_adapter): Added unmap_color and get_active_render_target.
29968 * video/video.c: Added grub_video_unmap_color and
29969 grub_video_get_active_render_target.
29970 (grub_video_get_info): Changed method to accept NULL pointer as an
29971 argument to allow detection of active video adapter.
29973 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
29974 grub_video_vbe_unmap_color_int.
29975 Added grub_video_vbe_unmap_color and
29976 grub_video_vbe_get_active_render_target.
29977 (grub_video_vbe_adapter): Added unmap_color and
29978 get_active_render_target.
29980 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
29981 with grub_video_vbe_unmap_color_int.
29983 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
29984 (DEFAULT_NORMAL_COLOR): Likewise.
29985 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
29986 (DEFAULT_FG_COLOR): Removed.
29987 (DEFAULT_BG_COLOR): Likewise.
29988 (DEFAULT_CURSOR_COLOR): Changed value.
29989 (grub_virtual_screen): Added standard_color_setting,
29990 normal_color_setting, highlight_color_setting and term_color.
29991 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
29992 (bitmap_width): Added.
29993 (bitmap_height): Likewise.
29994 (bitmap): Likewise.
29995 (set_term_color): Likewise.
29996 (grub_virtual_screen_setup): Changed to use new terminal coloring
29998 (grub_gfxterm_init): Added init for bitmap.
29999 (grub_gfxterm_fini): Added destroy for bitmap.
30000 (redraw_screen_rect): Updated to use background bitmap and new
30002 (scroll_up): Added optimization for case when there is no bitmap.
30003 (grub_gfxterm_cls): Fixed to use correct background color.
30004 (grub_virtual_screen_setcolorstate): Changed to use new terminal
30006 (grub_virtual_screen_setcolor): Likewise.
30007 (grub_virtual_screen_getcolor): Added.
30008 (grub_gfxterm_background_image_cmd): Likewise.
30009 (grub_video_term): Added setcolor and getcolor.
30010 (MOD_INIT): Added registration of background_image command.
30011 (MOD_TERM): Added unregistration for background_image command.
30013 2007-12-30 Pavel Roskin <proski@gnu.org>
30015 * loader/multiboot_loader.c: Fix multiboot command
30016 unregistration. Fix all typos in the word "multiboot".
30018 2007-12-29 Pavel Roskin <proski@gnu.org>
30020 * util/grub.d/10_linux.in: Refactor search for initrd. Add
30021 support for initrd names used in Fedora.
30023 2007-12-26 Bean <bean123ch@gmail.com>
30025 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
30026 (cpio_mod_SOURCES): New variable.
30027 (cpio_mod_CFLAGS): Likewise.
30028 (cpio_mod_LDFLAGS): Likewise.
30030 * fs/cpio.c: New file.
30032 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
30034 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30036 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30040 2007-12-25 Robert Millan <rmh@aybabtu.com>
30042 * include/grub/term.h (struct grub_term): Add `getcolor' function.
30043 (grub_getcolor): New function.
30045 * kern/term.c (grub_getcolor): New function.
30046 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
30047 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
30048 (print_entry): Set normal and highlight colors to
30049 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
30050 respectively, before printing and restore them to old
30052 (grub_menu_init_page): Likewise. Fill an additional colored space
30053 that would otherwise be left blank.
30055 * term/efi/console.c (grub_console_getcolor): New function.
30056 (struct grub_console_term.getcolor): New variable.
30057 * term/i386/pc/console.c (grub_console_getcolor): New function.
30058 (struct grub_console_term.getcolor): New variable.
30059 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
30060 (struct grub_console_term.getcolor): New variable.
30062 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
30063 (struct grub_console_term.setcolor): Remove variable.
30064 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
30065 (struct grub_console_term.setcolor): Remove variable.
30066 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
30067 (struct grub_console_term.setcolor): Remove variable.
30068 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
30069 (struct grub_console_term.setcolor): Remove variable.
30071 2007-12-25 Robert Millan <rmh@aybabtu.com>
30073 * configure.ac: Search for possible unifont.hex locations, and
30074 define UNIFONT_HEX if found.
30076 * Makefile.in (UNIFONT_HEX): Define variable.
30077 (DATA): Rename to ...
30078 (PKGLIB): ... this. Update all users.
30079 (PKGDATA): New variable.
30080 (pkgdata_IMAGES): Rename to ...
30081 (pkglib_IMAGES): ... this. Update all users.
30082 (pkgdata_MODULES): Rename to ...
30083 (pkglib_MODULES): ... this. Update all users.
30084 (pkgdata_PROGRAMS): Rename to ...
30085 (pkglib_PROGRAMS): ... this. Update all users.
30086 (pkgdata_DATA): Rename to ...
30087 (pkglib_DATA): ... this. Update all users.
30088 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
30089 (unicode.pff, ascii.pff): New rules.
30090 (all-local): Add `$(PKGDATA)' dependency.
30091 (install-local): Process `$(PKGDATA)'.
30093 * util/update-grub_lib.in (font_path): Search for *.pff files in
30094 a few more locations, including `${pkgdata}'.
30096 2007-12-23 Robert Millan <rmh@aybabtu.com>
30098 Patch from Bean <bean123ch@gmail.com>:
30099 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
30102 2007-12-21 Bean <bean123ch@gmail.com>
30104 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
30105 (ntfscomp_mod_SOURCES): New variable.
30106 (ntfscomp_mod_CFLAGS): Likewise.
30107 (ntfscomp_mod_LDFLAGS): Likewise.
30109 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
30110 (grub_probe_SOURCES): Likewise.
30111 (grub_emu_SOURCES): Likewise.
30113 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
30114 (grub_emu_SOURCES): Likewise.
30116 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
30117 (grub_emu_SOURCES): Likewise.
30119 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
30120 (grub_emu_SOURCES): Likewise.
30122 * fs/ntfs.c (grub_ntfscomp_func): New variable.
30123 (read_run_list): Renamed to grub_ntfs_read_run_list.
30124 (decomp_nextvcn): Moved to ntfscomp.c.
30125 (decomp_getch): Likewise.
30126 (decomp_get16): Likewise.
30127 (decomp_block): Likewise.
30128 (read_block): Likewise.
30129 (read_data): Partially moved to ntfscomp.c.
30130 (fixup): Change unsigned to grub_uint16_t.
30131 (read_mft): Change unsigned long to grub_uint32_t.
30132 (read_attr): Likewise.
30133 (read_data): Likewise.
30134 (read_run_data): Likewise.
30135 (read_run_list): Likewise.
30136 (read_mft): Likewise.
30138 * fs/ntfscomp.c: New file.
30140 * include/grub/ntfs.h: New file.
30142 2007-12-16 Robert Millan <rmh@aybabtu.com>
30144 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
30145 IDE disk check, since Linux is known to support 20 IDE disks.
30146 Reported by Colin Watson.
30148 2007-12-15 Bean <bean123ch@gmail.com>
30150 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
30151 (lnxboot_img_SOURCES): New variable.
30152 (lnxboot_img_ASFLAGS): Likewise.
30153 (lnxboot_img_LDFLAGS): Likewise.
30155 * boot/i386/pc/lnxboot.S: New file.
30157 2007-11-24 Pavel Roskin <proski@gnu.org>
30159 * configure.ac: Test if '--build-id=none' is supported by the
30160 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
30161 objcopy to generate incorrect binary files (binutils
30162 2.17.50.0.18-1 as shipped by Fedora 8).
30163 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
30164 linking, so that build ID doesn't break the test.
30166 2007-11-24 Pavel Roskin <proski@gnu.org>
30168 * include/grub/i386/time.h: use "void" in the argument list
30169 of grub_cpu_idle().
30170 * include/grub/powerpc/time.h: Likewise.
30171 * include/grub/sparc64/time.h: Likewise.
30173 2007-11-18 Christian Franke <franke@computer.org>
30175 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
30176 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
30177 This fixes the problem that function keys did not work in grub-emu.
30179 2007-11-18 Christian Franke <franke@computer.org>
30181 * disk/host.c (grub_host_open): Remove attribute unused from
30182 name parameter. Add check for "host". This fixes the problem
30183 that grub-emu does not find partitions.
30185 2007-11-18 Christian Franke <franke@computer.org>
30187 * util/hostfs.c (is_dir): New function.
30188 (grub_hostfs_dir): Handle missing dirent.d_type case.
30189 (grub_hostfs_read): Add missing fseek().
30190 (grub_hostfs_label): Clear label pointer. This fixes a crash
30191 of grub-emu on "ls (host)".
30193 2007-11-18 Christian Franke <franke@computer.org>
30195 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
30196 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
30197 to 64 bit boundary by default.
30199 2007-11-18 Bean <bean123ch@gmail.com>
30201 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
30202 (hexdump_mod_SOURCES): New variable.
30203 (hexdump_mod_CFLAGS): Likewise.
30204 (hexdump_mod_LDFLAGS): Likewise.
30206 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30208 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30210 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30212 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30214 * include/grub/hexdump.h: New file.
30216 * commands/hexdump.c: New file.
30218 2007-11-10 Robert Millan <rmh@aybabtu.com>
30220 * commands/i386/pc/play.c (beep_off): Switch order of arguments
30221 in grub_outb() calls.
30222 (beep_on): Likewise.
30224 2007-11-10 Christian Franke <franke@computer.org>
30226 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
30227 (grub_menu_run): Likewise.
30229 2007-11-10 Robert Millan <rmh@aybabtu.com>
30231 * include/grub/i386/efi/machine.h: New file.
30232 * include/grub/i386/linuxbios/machine.h: Likewise.
30233 * include/grub/i386/pc/machine.h: Likewise.
30234 * include/grub/powerpc/ieee1275/machine.h: Likewise.
30235 * include/grub/sparc64/ieee1275/machine.h: Likewise.
30237 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
30238 (serial_hw_io_addr): New variable.
30239 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
30240 instead of `(unsigned short *) 0x400'.
30242 2007-11-10 Bean <bean123ch@gmail.com>
30244 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
30246 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
30248 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
30249 (vga_mod_SOURCES): Added.
30250 (vga_mod_CFLAGS): Likewise.
30251 (vga_mod_LDFLAGS): Likewise.
30253 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
30255 (set_map_mask): Likewise.
30256 (set_read_map): Likewise.
30257 (set_read_address): Likewise.
30258 (vga_font): Removed variable.
30259 (get_vga_glyph): Removed function.
30260 (invalidate_char): Likewise.
30261 (write_char): Changed to use grub_font_get_glyph() for font
30263 (grub_vga_putchar): Likewise.
30264 (grub_vga_getcharwidth): Likewise.
30266 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
30268 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
30270 (pxeboot_img_LDFLAGS): Likewise.
30271 (diskboot_img_LDFLAGS): Likewise.
30272 (kernel_img_LDFLAGS): Likewise.
30274 2007-11-06 Robert Millan <rmh@aybabtu.com>
30276 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
30277 in grub_outb() calls.
30278 (serial_hw_init): Likewise.
30280 2007-11-05 Robert Millan <rmh@aybabtu.com>
30282 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
30283 spaces. Skip non-regular files.
30285 2007-11-05 Robert Millan <rmh@aybabtu.com>
30287 * kern/disk.c (grub_disk_firmware_fini)
30288 (grub_disk_firmware_is_tainted): New variables.
30290 * include/grub/disk.h (grub_disk_firmware_fini)
30291 (grub_disk_firmware_is_tainted): Likewise.
30293 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
30294 (grub_disk_biosdisk_fini): ... to here.
30295 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
30296 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
30297 is set. Register grub_disk_biosdisk_fini() in
30298 `grub_disk_firmware_fini'.
30300 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
30301 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
30302 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
30303 to finish existing firmware disk interface.
30305 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
30306 (ata_mod_SOURCES): New variable.
30307 (ata_mod_CFLAGS): Likewise.
30308 (ata_mod_LDFLAGS): Likewise.
30310 2007-11-05 Robert Millan <rmh@aybabtu.com>
30312 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
30313 (grub_ata_wait): Reimplement using grub_millisleep().
30315 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
30316 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
30318 2007-11-03 Marco Gerards <marco@gnu.org>
30320 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
30321 (CRTC_ADDR_PORT): New macro.
30322 (CRTC_DATA_PORT): Likewise.
30323 (CRTC_CURSOR): Likewise.
30324 (CRTC_CURSOR_ADDR_HIGH): Likewise.
30325 (CRTC_CURSOR_ADDR_LOW): Likewise.
30326 (update_cursor): New function.
30327 (grub_console_real_putchar): Call `update_cursor'.
30328 (grub_console_gotoxy): Likewise.
30329 (grub_console_cls): Set the default color when clearing the
30331 (grub_console_setcursor): Implemented.
30333 2007-11-03 Marco Gerards <marco@gnu.org>
30335 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
30337 (grub_ata_pio_write): Likewise.
30339 (grub_atapi_identify): Wait after issuing an ATA command.
30340 (grub_atapi_packet): Likewise.
30341 (grub_ata_identify): Likewise.
30342 (grub_ata_readwrite): Likewise.
30344 2007-11-03 Marco Gerards <marco@gnu.org>
30346 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
30347 (grub_ata_pio_write): Likewise.
30348 (grub_ata_readwrite): Use `grub_error', instead of
30349 returning `grub_errno'.
30351 2007-11-03 Marco Gerards <marco@gnu.org>
30353 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
30354 grub_ata_pio_write once for every single sector, instead of for
30357 2007-10-31 Robert Millan <rmh@aybabtu.com>
30359 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
30361 * conf/i386-linuxbios.rmk: New file.
30363 * kern/i386/pc/hardware.c: Likewise.
30364 * term/i386/pc/at_keyboard.c: Likewise.
30365 * term/i386/pc/vga_text.c: Likewise.
30367 * include/grub/i386/linuxbios/boot.h: Likewise.
30368 * include/grub/i386/linuxbios/console.h: Likewise.
30369 * include/grub/i386/linuxbios/init.h: Likewise.
30370 * include/grub/i386/linuxbios/kernel.h: Likewise.
30371 * include/grub/i386/linuxbios/loader.h: Likewise.
30372 * include/grub/i386/linuxbios/memory.h: Likewise.
30373 * include/grub/i386/linuxbios/serial.h: Likewise.
30374 * include/grub/i386/linuxbios/time.h: Likewise.
30376 * kern/i386/linuxbios/init.c: Likewise.
30377 * kern/i386/linuxbios/startup.S: Likewise.
30378 * kern/i386/linuxbios/table.c: Likewise.
30380 2007-10-31 Marco Gerards <marco@gnu.org>
30382 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
30383 (ata_mod_SOURCES): New variable.
30384 (ata_mod_CFLAGS): Likewise.
30385 (ata_mod_LDFLAGS): Likewise.
30387 * disk/ata.c: New file.
30389 * include/grub/disk.h (grub_disk_dev_id): Add
30390 `GRUB_DISK_DEV_ATA_ID'.
30392 2007-10-31 Robert Millan <rmh@aybabtu.com>
30394 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
30395 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
30397 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
30398 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
30400 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
30403 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
30405 2007-10-27 Robert Millan <rmh@aybabtu.com>
30407 * include/grub/types.h (ULONG_MAX): Define macro.
30409 2007-10-22 Robert Millan <rmh@aybabtu.com>
30411 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
30413 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
30415 2007-10-22 Robert Millan <rmh@aybabtu.com>
30417 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
30418 (pkgdata_MODULES): Add `biosdisk.mod'.
30419 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
30422 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
30423 (grub_biosdisk_init): Replace with ...
30424 (GRUB_MOD_INIT(biosdisk)): ... this.
30425 (grub_biosdisk_fini): Replace with ...
30426 (GRUB_MOD_FINI(biosdisk)): ... this.
30428 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
30429 (grub_machine_init): Remove call to grub_biosdisk_init().
30430 (grub_machine_fini): Remove call to grub_machine_fini().
30432 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
30434 2007-10-22 Robert Millan <rmh@aybabtu.com>
30436 * include/grub/time.h: New file.
30437 * include/grub/i386/time.h: Likewise.
30438 * include/grub/powerpc/time.h: Likewise.
30439 * include/grub/sparc64/time.h: Likewise.
30441 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
30443 (KERNEL_MACHINE_TIME_HEADER): ... this.
30444 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
30446 (KERNEL_MACHINE_TIME_HEADER): ... this.
30447 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
30449 (KERNEL_MACHINE_TIME_HEADER): ... this.
30451 * kern/i386/efi/init.c: Include `<grub/time.h>'.
30452 (grub_millisleep): New function.
30453 * kern/i386/pc/init.c: Include `<grub/time.h>'.
30454 (grub_millisleep): New function.
30455 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
30456 Remove `grub/machine/time.h' include.
30457 (grub_millisleep): New function.
30458 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
30459 Remove `grub/machine/time.h' include.
30460 (grub_millisleep): New function.
30462 * include/grub/misc.h (grub_div_roundup): New function.
30464 * kern/misc.c: Include `<grub/time.h>'.
30465 (grub_millisleep_generic): New function.
30467 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
30469 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
30471 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
30472 `machine/time.h'. Add `time.h'.
30473 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
30475 2007-10-21 Robert Millan <rmh@aybabtu.com>
30477 * include/grub/misc.h (grub_max): New function.
30479 2007-10-21 Robert Millan <rmh@aybabtu.com>
30481 * util/misc.c (grub_util_info): Call fflush() before returning.
30483 2007-10-20 Robert Millan <rmh@aybabtu.com>
30485 * genmk.rb (Image): Copy `extra_flags' from here ...
30486 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
30488 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
30489 to `argc' and `args' arguments.
30491 2007-10-17 Robert Millan <rmh@aybabtu.com>
30493 * kern/i386/loader.S: New file.
30495 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
30496 * kern/i386/loader.S (grub_linux_prot_size)... to here.
30497 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
30498 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
30499 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
30500 * kern/i386/loader.S (grub_linux_real_addr)... to here.
30501 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
30502 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
30503 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
30504 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
30505 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
30506 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
30507 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
30508 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
30510 * kern/i386/realmode.S: New file.
30512 * kern/i386/pc/startup.S (protstack): Moved from here ...
30513 * kern/i386/realmode.S (protstack)... to here.
30514 * kern/i386/pc/startup.S (gdt): Moved from here ...
30515 * kern/i386/realmode.S (gdt)... to here.
30516 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
30517 * kern/i386/realmode.S (prot_to_real)... to here.
30519 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
30520 `kern/i386/realmode.S'.
30522 2007-10-17 Robert Millan <rmh@aybabtu.com>
30524 * include/grub/i386/loader.h: New file.
30526 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
30527 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
30528 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
30529 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
30530 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
30531 * include/grub/i386/loader.h (grub_linux_prot_size)
30532 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
30533 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
30534 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
30535 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
30537 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
30539 2007-10-15 Robert Millan <rmh@aybabtu.com>
30541 * normal/misc.c (grub_normal_print_device_info): Do not probe for
30542 filesystem when dev->disk is unset.
30543 Do probe for filesystem even when dev->disk->has_partitions is set.
30544 In case a filesystem is found, always report it.
30545 In case it isn't, if dev->disk->has_partitions is set, report that
30546 a partition table was found instead of reporting that no filesystem
30547 could be identified.
30549 2007-10-12 Robert Millan <rmh@aybabtu.com>
30551 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
30552 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
30554 * include/grub/types.h (grub_host_to_target16): New macro.
30555 (grub_host_to_target32): Likewise.
30556 (grub_host_to_target64): Likewise.
30557 (grub_target_to_host16): Likewise.
30558 (grub_target_to_host32): Likewise.
30559 (grub_target_to_host64): Likewise.
30561 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
30562 Renamed from to ...
30563 (GRUB_MOD_ALIGN): ...this. Update all users.
30565 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
30566 grub_host_to_target32.
30567 Replace grub_be_to_cpu32 with grub_target_to_host32.
30568 (load_modules): Likewise.
30569 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
30570 Replace grub_be_to_cpu32 with grub_target_to_host32.
30571 Replace grub_cpu_to_be16 with grub_host_to_target16.
30572 Replace grub_cpu_to_be32 grub_host_to_target32.
30574 2007-10-12 Robert Millan <rmh@aybabtu.com>
30576 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
30577 * util/elf/grub-mkimage.c: ... here.
30579 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
30580 `util/powerpc/ieee1275/grub-mkimage.c'.
30582 2007-10-07 Robert Millan <rmh@aybabtu.com>
30584 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
30585 and make it easier to figure out.
30586 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
30587 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
30588 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
30589 leave us with less than HEAP_MIN_SIZE total heap.
30590 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
30592 2007-10-03 Robert Millan <rmh@aybabtu.com>
30594 * include/grub/i386/io.h: New file.
30595 * commands/i386/pc/play.c (inb): Removed.
30597 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
30599 * term/i386/pc/serial.c (inb): Removed.
30601 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
30603 * term/i386/pc/vga.c (inb): Removed.
30605 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
30608 2007-10-02 Robert Millan <rmh@aybabtu.com>
30610 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
30611 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30612 Reported by Marcin Kurek.
30614 2007-09-07 Robert Millan <rmh@aybabtu.com>
30616 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
30617 SmartFirmware version updates (as released by Sven Luther), and avoid
30618 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
30619 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
30622 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
30624 From Hitoshi Ozeki:
30625 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
30626 when merging two regions.
30628 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
30630 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
30631 * normal/completion.c (grub_normal_do_completion): Likewise.
30632 Reported by Hitoshi Ozeki.
30634 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
30636 Do not use devices at boot in chainloading.
30638 * loader/i386/pc/chainloader.c (boot_drive): New variable.
30639 (boot_part_addr): Likewise.
30640 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
30641 with BOOT_DRIVE and BOOT_PART_ADDR.
30642 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
30643 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
30645 2007-08-29 Robert Millan <rmh@aybabtu.com>
30647 Patch from Simon Peter <dn.tlp@gmx.net>:
30648 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
30649 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
30650 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
30651 util/i386/pc/grub-setup.c_DEPENDENCIES.
30652 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
30653 util/grub-probe.c_DEPENDENCIES.
30654 * conf/powerpc-ieee1275.rmk: Likewise.
30656 2007-08-28 Robert Millan <rmh@aybabtu.com>
30658 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
30659 to tell grub-mkdevicemap how to name devices.
30660 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
30663 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
30664 util/i386/get_disk_name.c.
30665 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
30666 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
30667 util/ieee1275/get_disk_name.c.
30669 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
30671 * DISTLIST: Add util/i386/get_disk_name.c and
30672 util/ieee1275/get_disk_name.c.
30674 * util/grub-mkdevicemap.c: Replace device naming logic with
30675 grub_util_get_disk_name() calls.
30677 2007-08-20 Robert Millan <rmh@aybabtu.com>
30679 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
30680 (so that it works for both plural and singular quantities).
30682 2007-08-05 Robert Millan <rmh@aybabtu.com>
30684 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
30685 so that [xz] isn't taken into account when determining order.
30687 2007-08-02 Marco Gerards <marco@gnu.org>
30689 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
30690 `include/multiboot2.h', `include/grub/elfload.h',
30691 `include/multiboot.h', `include/grub/multiboot.h',
30692 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
30693 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
30694 `kern/elf.c', `loader/multiboot_loader.c',
30695 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
30696 `loader/i386/pc/multiboot2.c',
30697 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
30698 `util/i386/pc/grub-mkrescue.in'. Remove
30699 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
30700 `include/grub/i386/pc/util/biosdisk.h' and
30701 `include/grub/powerpc/ieee1275/multiboot.h'.
30703 2007-08-02 Bean <bean123ch@gmail.com>
30705 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
30706 (ntfs_mod_SOURCES): New variable.
30707 (ntfs_mod_CFLAGS): Likewise.
30708 (ntfs_mod_LDFLAGS): Likewise.
30710 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
30711 (grub_probe_SOURCES): Likewise.
30712 (grub_emu_SOURCES): Likewise.
30714 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
30715 (grub_emu_SOURCES): Likewise.
30717 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
30718 (grub_emu_SOURCES): Likewise.
30720 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
30722 * fs/ntfs.c: New file.
30724 2007-08-02 Bean <bean123ch@gmail.com>
30726 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
30728 * file.h (grub_file): Likewise.
30730 * fshelp.h (grub_fshelp_read_file): Likewise.
30732 * util/i386/pc/grub-setup.c (setup): Likewise.
30733 (save_first_sector): Likewise.
30734 (save_blocklists): Likewise.
30736 * fs/affs.c (grub_affs_read_file): Likewise.
30738 * fs/ext2.c (grub_ext2_read_file): Likewise.
30740 * fs/fat.c (grub_fat_read_data): Likewise.
30742 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
30744 * fs/hfs.c (grub_hfs_read_file): Likewise.
30746 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
30748 * fs/jfs.c (grub_jfs_read_file): Likewise.
30750 * fs/minix.c (grub_minix_read_file): Likewise.
30752 * fs/sfs.c (grub_sfs_read_file): Likewise.
30754 * fs/ufs.c (grub_ufs_read_file): Likewise.
30756 * fs/xfs.c (grub_xfs_read_file): Likewise.
30758 * command/blocklist.c (read_blocklist): Likewise.
30759 (print_blocklist): Likewise.
30761 2007-08-02 Marco Gerards <marco@gnu.org>
30763 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
30766 * disk/host.c: New file.
30768 * util/hostfs.c: Likewise.
30770 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
30771 return `GRUB_ERR_BAD_FS'.
30772 * fs/sfs.c (grub_sfs_mount): Likewise.
30773 * fs/xfs.c (grub_xfs_mount): Likewise.
30775 * include/grub/disk.h (enum grub_disk_dev_id): Add
30776 `GRUB_DISK_DEVICE_HOST_ID'.
30778 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
30780 2007-07-24 Jerone Young <jerone@gmail.com>
30782 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
30783 modules for compilation.
30784 * conf/powerpc-ieee1275.rmk: Likewise.
30786 * include/multiboot.h: Move multiboot definitions to one file. Rename
30787 many definitions to not get grub specific.
30788 * include/multiboot2.h: Create header with multiboot 2 definitions.
30789 * include/grub/multiboot.h: Header for grub specific function
30790 prototypes and definitions.
30791 * include/grub/multiboot2.h: Likewise.
30792 * include/grub/multiboot_loader.h: Likewise.
30793 * include/grub/i386/pc/multiboot.h: Removed.
30794 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
30796 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
30797 and 2 to allow for one multiboot and module commands.
30798 * loader/multiboot2.c: Add multiboot2 functionality.
30799 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
30800 and definition names.
30801 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
30803 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
30804 ieee1275 specific multiboot2 code.
30806 * kern/i386/pc/startup.S: Change headers and definition names for
30807 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
30809 2007-07-22 Robert Millan <rmh@aybabtu.com>
30811 * geninitheader.sh: Process file specified in first parameter rather
30812 than hardcoding grub_modules_init.lst.
30813 * geninit.sh: Likewise. Also, construct header name dynamically rather
30814 than hardcoding grub_modules_init.h.
30816 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
30817 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
30818 grub_probe_init.[ch] and grub_setup_init.[ch].
30820 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
30821 grub_modules_init.h with grub_emu_init.h.
30822 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
30823 grub_probe_init.[ch] files.
30824 * conf/i386-efi.rmk: Likewise.
30825 * conf/i386-pc.rmk: Likewise.
30826 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
30827 grub_setup_init.[ch] files.
30829 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
30830 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
30831 to initialize modules rather than a list of hardcoded functions.
30832 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
30833 grub_init_all() to initialize modules rather than a list of hardcoded
30836 2007-07-22 Robert Millan <rmh@aybabtu.com>
30838 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
30839 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
30841 2007-07-22 Robert Millan <rmh@aybabtu.com>
30843 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
30844 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
30845 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
30846 flag when running on SmartFirmware.
30847 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
30848 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
30851 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
30852 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
30853 rather than decreasing it.
30855 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
30856 there's not enough space to do it, fail in the same way as when it
30857 can't be done because there are no partitions.
30859 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
30860 when nvsetenv failed.
30862 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
30864 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
30865 because this rule is automatically generated.
30866 (grub-mkrescue): Removed for the same reason as above.
30868 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
30870 Migrate to GNU General Public License Version 3.
30872 * COPYING: Replaced with the plain text version of GPLv3.
30874 * config.guess: Updated from gnulib.
30875 * config.sub: Likewise.
30877 * geninit.sh: Output a GPLv3 copyright notice.
30878 * geninitheader.sh: Likewise.
30879 * genmodsrc.sh: Likewise.
30880 * gensymlist.sh.in: Likewise.
30882 * boot/i386/pc/boot.S: Upgraded to GPLv3.
30883 * boot/i386/pc/diskboot.S: Likewise.
30884 * boot/i386/pc/pxeboot.S: Likewise.
30885 * commands/blocklist.c: Likewise.
30886 * commands/boot.c: Likewise.
30887 * commands/cat.c: Likewise.
30888 * commands/cmp.c: Likewise.
30889 * commands/configfile.c: Likewise.
30890 * commands/echo.c: Likewise.
30891 * commands/help.c: Likewise.
30892 * commands/ls.c: Likewise.
30893 * commands/search.c: Likewise.
30894 * commands/terminal.c: Likewise.
30895 * commands/test.c: Likewise.
30896 * commands/videotest.c: Likewise.
30897 * commands/i386/cpuid.c: Likewise.
30898 * commands/i386/pc/halt.c: Likewise.
30899 * commands/i386/pc/play.c: Likewise.
30900 * commands/i386/pc/reboot.c: Likewise.
30901 * commands/i386/pc/vbeinfo.c: Likewise.
30902 * commands/i386/pc/vbetest.c: Likewise.
30903 * commands/ieee1275/halt.c: Likewise.
30904 * commands/ieee1275/reboot.c: Likewise.
30905 * commands/ieee1275/suspend.c: Likewise.
30906 * disk/loopback.c: Likewise.
30907 * disk/lvm.c: Likewise.
30908 * disk/raid.c: Likewise.
30909 * disk/efi/efidisk.c: Likewise.
30910 * disk/i386/pc/biosdisk.c: Likewise.
30911 * disk/ieee1275/ofdisk.c: Likewise.
30912 * font/manager.c: Likewise.
30913 * fs/affs.c: Likewise.
30914 * fs/ext2.c: Likewise.
30915 * fs/fat.c: Likewise.
30916 * fs/fshelp.c: Likewise.
30917 * fs/hfs.c: Likewise.
30918 * fs/hfsplus.c: Likewise.
30919 * fs/iso9660.c: Likewise.
30920 * fs/jfs.c: Likewise.
30921 * fs/minix.c: Likewise.
30922 * fs/sfs.c: Likewise.
30923 * fs/ufs.c: Likewise.
30924 * fs/xfs.c: Likewise.
30925 * hello/hello.c: Likewise.
30926 * include/grub/acorn_filecore.h: Likewise.
30927 * include/grub/arg.h: Likewise.
30928 * include/grub/bitmap.h: Likewise.
30929 * include/grub/boot.h: Likewise.
30930 * include/grub/cache.h: Likewise.
30931 * include/grub/device.h: Likewise.
30932 * include/grub/disk.h: Likewise.
30933 * include/grub/dl.h: Likewise.
30934 * include/grub/elfload.h: Likewise.
30935 * include/grub/env.h: Likewise.
30936 * include/grub/err.h: Likewise.
30937 * include/grub/file.h: Likewise.
30938 * include/grub/font.h: Likewise.
30939 * include/grub/fs.h: Likewise.
30940 * include/grub/fshelp.h: Likewise.
30941 * include/grub/gzio.h: Likewise.
30942 * include/grub/hfs.h: Likewise.
30943 * include/grub/kernel.h: Likewise.
30944 * include/grub/loader.h: Likewise.
30945 * include/grub/lvm.h: Likewise.
30946 * include/grub/misc.h: Likewise.
30947 * include/grub/mm.h: Likewise.
30948 * include/grub/net.h: Likewise.
30949 * include/grub/normal.h: Likewise.
30950 * include/grub/parser.h: Likewise.
30951 * include/grub/partition.h: Likewise.
30952 * include/grub/pc_partition.h: Likewise.
30953 * include/grub/raid.h: Likewise.
30954 * include/grub/rescue.h: Likewise.
30955 * include/grub/script.h: Likewise.
30956 * include/grub/setjmp.h: Likewise.
30957 * include/grub/symbol.h: Likewise.
30958 * include/grub/term.h: Likewise.
30959 * include/grub/terminfo.h: Likewise.
30960 * include/grub/tparm.h: Likewise.
30961 * include/grub/types.h: Likewise.
30962 * include/grub/video.h: Likewise.
30963 * include/grub/efi/api.h: Likewise.
30964 * include/grub/efi/chainloader.h: Likewise.
30965 * include/grub/efi/console.h: Likewise.
30966 * include/grub/efi/console_control.h: Likewise.
30967 * include/grub/efi/disk.h: Likewise.
30968 * include/grub/efi/efi.h: Likewise.
30969 * include/grub/efi/pe32.h: Likewise.
30970 * include/grub/efi/time.h: Likewise.
30971 * include/grub/i386/linux.h: Likewise.
30972 * include/grub/i386/setjmp.h: Likewise.
30973 * include/grub/i386/types.h: Likewise.
30974 * include/grub/i386/efi/kernel.h: Likewise.
30975 * include/grub/i386/efi/loader.h: Likewise.
30976 * include/grub/i386/efi/time.h: Likewise.
30977 * include/grub/i386/pc/biosdisk.h: Likewise.
30978 * include/grub/i386/pc/boot.h: Likewise.
30979 * include/grub/i386/pc/chainloader.h: Likewise.
30980 * include/grub/i386/pc/console.h: Likewise.
30981 * include/grub/i386/pc/init.h: Likewise.
30982 * include/grub/i386/pc/kernel.h: Likewise.
30983 * include/grub/i386/pc/loader.h: Likewise.
30984 * include/grub/i386/pc/memory.h: Likewise.
30985 * include/grub/i386/pc/multiboot.h: Likewise.
30986 * include/grub/i386/pc/serial.h: Likewise.
30987 * include/grub/i386/pc/time.h: Likewise.
30988 * include/grub/i386/pc/vbe.h: Likewise.
30989 * include/grub/i386/pc/vbeblit.h: Likewise.
30990 * include/grub/i386/pc/vbefill.h: Likewise.
30991 * include/grub/i386/pc/vbeutil.h: Likewise.
30992 * include/grub/i386/pc/vga.h: Likewise.
30993 * include/grub/ieee1275/ieee1275.h: Likewise.
30994 * include/grub/ieee1275/ofdisk.h: Likewise.
30995 * include/grub/powerpc/libgcc.h: Likewise.
30996 * include/grub/powerpc/setjmp.h: Likewise.
30997 * include/grub/powerpc/types.h: Likewise.
30998 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
30999 * include/grub/powerpc/ieee1275/console.h: Likewise.
31000 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
31001 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
31002 * include/grub/powerpc/ieee1275/loader.h: Likewise.
31003 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
31004 * include/grub/powerpc/ieee1275/time.h: Likewise.
31005 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
31006 * include/grub/sparc64/libgcc.h: Likewise.
31007 * include/grub/sparc64/setjmp.h: Likewise.
31008 * include/grub/sparc64/types.h: Likewise.
31009 * include/grub/sparc64/ieee1275/console.h: Likewise.
31010 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
31011 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
31012 * include/grub/sparc64/ieee1275/time.h: Likewise.
31013 * include/grub/util/biosdisk.h: Likewise.
31014 * include/grub/util/getroot.h: Likewise.
31015 * include/grub/util/lvm.h: Likewise.
31016 * include/grub/util/misc.h: Likewise.
31017 * include/grub/util/raid.h: Likewise.
31018 * include/grub/util/resolve.h: Likewise.
31019 * io/gzio.c: Likewise.
31020 * kern/device.c: Likewise.
31021 * kern/disk.c: Likewise.
31022 * kern/dl.c: Likewise.
31023 * kern/elf.c: Likewise.
31024 * kern/env.c: Likewise.
31025 * kern/err.c: Likewise.
31026 * kern/file.c: Likewise.
31027 * kern/fs.c: Likewise.
31028 * kern/loader.c: Likewise.
31029 * kern/main.c: Likewise.
31030 * kern/misc.c: Likewise.
31031 * kern/mm.c: Likewise.
31032 * kern/parser.c: Likewise.
31033 * kern/partition.c: Likewise.
31034 * kern/rescue.c: Likewise.
31035 * kern/term.c: Likewise.
31036 * kern/efi/efi.c: Likewise.
31037 * kern/efi/init.c: Likewise.
31038 * kern/efi/mm.c: Likewise.
31039 * kern/i386/dl.c: Likewise.
31040 * kern/i386/efi/init.c: Likewise.
31041 * kern/i386/efi/startup.S: Likewise.
31042 * kern/i386/pc/init.c: Likewise.
31043 * kern/i386/pc/lzo1x.S: Likewise.
31044 * kern/i386/pc/startup.S: Likewise.
31045 * kern/ieee1275/ieee1275.c: Likewise.
31046 * kern/powerpc/cache.S: Likewise.
31047 * kern/powerpc/dl.c: Likewise.
31048 * kern/powerpc/ieee1275/cmain.c: Likewise.
31049 * kern/powerpc/ieee1275/crt0.S: Likewise.
31050 * kern/powerpc/ieee1275/init.c: Likewise.
31051 * kern/powerpc/ieee1275/openfw.c: Likewise.
31052 * kern/sparc64/cache.S: Likewise.
31053 * kern/sparc64/dl.c: Likewise.
31054 * kern/sparc64/ieee1275/init.c: Likewise.
31055 * kern/sparc64/ieee1275/openfw.c: Likewise.
31056 * loader/efi/chainloader.c: Likewise.
31057 * loader/efi/chainloader_normal.c: Likewise.
31058 * loader/i386/efi/linux.c: Likewise.
31059 * loader/i386/efi/linux_normal.c: Likewise.
31060 * loader/i386/pc/chainloader.c: Likewise.
31061 * loader/i386/pc/chainloader_normal.c: Likewise.
31062 * loader/i386/pc/linux.c: Likewise.
31063 * loader/i386/pc/linux_normal.c: Likewise.
31064 * loader/i386/pc/multiboot.c: Likewise.
31065 * loader/i386/pc/multiboot_normal.c: Likewise.
31066 * loader/powerpc/ieee1275/linux.c: Likewise.
31067 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
31068 * normal/arg.c: Likewise.
31069 * normal/cmdline.c: Likewise.
31070 * normal/command.c: Likewise.
31071 * normal/completion.c: Likewise.
31072 * normal/execute.c: Likewise.
31073 * normal/function.c: Likewise.
31074 * normal/lexer.c: Likewise.
31075 * normal/main.c: Likewise.
31076 * normal/menu.c: Likewise.
31077 * normal/menu_entry.c: Likewise.
31078 * normal/misc.c: Likewise.
31079 * normal/parser.y: Likewise.
31080 * normal/script.c: Likewise.
31081 * normal/i386/setjmp.S: Likewise.
31082 * normal/powerpc/setjmp.S: Likewise.
31083 * normal/sparc64/setjmp.S: Likewise.
31084 * partmap/acorn.c: Likewise.
31085 * partmap/amiga.c: Likewise.
31086 * partmap/apple.c: Likewise.
31087 * partmap/gpt.c: Likewise.
31088 * partmap/pc.c: Likewise.
31089 * partmap/sun.c: Likewise.
31090 * term/gfxterm.c: Likewise.
31091 * term/terminfo.c: Likewise.
31092 * term/efi/console.c: Likewise.
31093 * term/i386/pc/console.c: Likewise.
31094 * term/i386/pc/serial.c: Likewise.
31095 * term/i386/pc/vesafb.c: Likewise.
31096 * term/i386/pc/vga.c: Likewise.
31097 * term/ieee1275/ofconsole.c: Likewise.
31098 * util/biosdisk.c: Likewise.
31099 * util/console.c: Likewise.
31100 * util/genmoddep.c: Likewise.
31101 * util/getroot.c: Likewise.
31102 * util/grub-emu.c: Likewise.
31103 * util/grub-mkdevicemap.c: Likewise.
31104 * util/grub-probe.c: Likewise.
31105 * util/lvm.c: Likewise.
31106 * util/misc.c: Likewise.
31107 * util/raid.c: Likewise.
31108 * util/resolve.c: Likewise.
31109 * util/update-grub.in: Likewise.
31110 * util/update-grub_lib.in: Likewise.
31111 * util/grub.d/00_header.in: Likewise.
31112 * util/grub.d/10_hurd.in: Likewise.
31113 * util/grub.d/10_linux.in: Likewise.
31114 * util/i386/efi/grub-install.in: Likewise.
31115 * util/i386/efi/grub-mkimage.c: Likewise.
31116 * util/i386/pc/grub-install.in: Likewise.
31117 * util/i386/pc/grub-mkimage.c: Likewise.
31118 * util/i386/pc/grub-mkrescue.in: Likewise.
31119 * util/i386/pc/grub-setup.c: Likewise.
31120 * util/i386/pc/misc.c: Likewise.
31121 * util/powerpc/ieee1275/grub-install.in: Likewise.
31122 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
31123 * util/powerpc/ieee1275/misc.c: Likewise.
31124 * video/bitmap.c: Likewise.
31125 * video/video.c: Likewise.
31126 * video/i386/pc/vbe.c: Likewise.
31127 * video/i386/pc/vbeblit.c: Likewise.
31128 * video/i386/pc/vbefill.c: Likewise.
31129 * video/i386/pc/vbeutil.c: Likewise.
31130 * video/readers/tga.c: Likewise.
31132 2007-07-02 Robert Millan <rmh@aybabtu.com>
31134 * conf/i386-efi.rmk: Replace obsolete reference to
31135 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
31136 with util/getroot.c.
31137 * conf/powerpc-ieee1275.rmk: Likewise.
31138 * conf/sparc64-ieee1275.rmk: Likewise.
31140 * util/grub-emu.c (main): Fix unchecked pointer handling.
31142 2007-07-02 Robert Millan <rmh@aybabtu.com>
31144 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
31145 invocation to fail, in order to support partition-less media.
31147 * util/i386/pc/grub-install.in: Likewise.
31149 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
31150 which fs or partmap modules are needed (akin to its sister scripts).
31152 Also use grub-probe to get rid of unportable /proc/mounts check.
31154 Print the same informational message that the other scripts do, before
31157 2007-06-23 Robert Millan <rmh@aybabtu.com>
31159 * util/update-grub_lib.in (font_path): New function. Determine whether
31160 a font file can be found and, if so, echo the GRUB path to it.
31162 * util/update-grub.in: Handle multiple terminals depending on user
31163 input, platform availability and font file presence. Propagate
31164 variables of our findings to /etc/grub.d/ children.
31166 * util/grub.d/00_header.in: Handle multiple terminals, based on
31167 environment setup by update-grub.
31169 2007-06-23 Robert Millan <rmh@aybabtu.com>
31171 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
31173 2007-06-21 Robert Millan <rmh@aybabtu.com>
31175 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
31176 indicate end of data section in kernel image.
31177 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
31178 GRUB_KERNEL_MACHINE_DATA_END.
31180 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
31182 * kern/i386/efi/startup.S: Likewise.
31184 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
31185 during image generation. Implement --prefix option to override this
31187 * util/i386/efi/grub-mkimage.c: Likewise.
31189 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
31190 code to make path relative to its root into a separate function.
31192 * util/i386/pc/grub-install.in: Use newly provided
31193 make_system_path_relative_to_its_root() to convert ${grubdir}, then
31194 pass the result to grub-install --prefix.
31196 2007-06-13 Robert Millan <rmh@aybabtu.com>
31198 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
31199 DEFAULT_DEVICE_MAP.
31200 * util/grub-emu.c: Use above definitions from misc.h instead of
31202 * util/grub-mkdevicemap.c: Likewise.
31203 * util/i386/pc/grub-setup.c: Likewise.
31204 * util/grub-probe.c: Likewise.
31205 (probe): Abort with grub_util_error() when either
31206 grub_guess_root_device or grub_util_get_grub_dev fails.
31208 2007-06-12 Robert Millan <rmh@aybabtu.com>
31210 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
31211 "pager" assignment.
31212 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
31214 * util/grub-probe.c (probe): Likewise for "drive_name".
31216 2007-06-11 Robert Millan <rmh@aybabtu.com>
31218 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
31219 not just the cdrom one.
31221 2007-06-11 Robert Millan <rmh@aybabtu.com>
31223 * util/i386/pc/grub-mkrescue.in: Add "set -e".
31224 Add --pkglibdir=DIR option to override pkglibdir.
31225 Mention --image-type=TYPE in help output.
31226 Fix --grub-mkimage (it was a no-op).
31227 Abort gracefully when no parameter is given.
31229 2007-06-11 Robert Millan <rmh@aybabtu.com>
31231 * util/i386/pc/grub-mkrescue.in: New file.
31232 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
31233 * Makefile.in: Handle bin_SCRIPTS.
31235 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
31237 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
31238 list of video modes.
31240 2007-06-06 Robert Millan <rmh@aybabtu.com>
31242 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
31243 file doesn't exist, or if it is in a filesystem grub can't read.
31245 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
31246 not abort if GRUB_DRIVE could not be defined. Rearrange generated
31247 header comment to fit in 80 columns when the variables are resolved.
31249 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
31250 could be identified by update-grub. Remove redundant check for
31251 unifont.pff existence (since convert_system_path_to_grub_path now
31254 2007-06-04 Robert Millan <rmh@aybabtu.com>
31256 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
31258 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
31260 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
31262 2007-06-04 Robert Millan <rmh@aybabtu.com>
31264 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
31266 * include/grub/partition.h: Declare grub_apple_partition_map_init and
31267 grub_apple_partition_map_fini.
31270 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
31271 to access >2 TiB disks).
31273 Print disk->total_sectors with %llu instead of %lu, since this
31274 variable is always 64-bit (prevents wrong disk size from being displayed
31275 on either >2 TiB disk or big-endian CPU).
31277 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
31278 into a generic case that supports all (sane) partition maps.
31280 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
31283 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
31284 and grub_apple_partition_map_fini() after that.
31286 2007-06-01 Robert Millan <rmh@aybabtu.com>
31288 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
31290 * util/grub.d/00_header.in: Only enable gfxterm when
31291 convert_system_path_to_grub_path() succeeds.
31293 2007-05-20 Robert Millan <rmh@aybabtu.com>
31295 * util/update-grub_lib.in: New file.
31296 * DISTLIST: Add update-grub_lib.in.
31297 * conf/common.rmk: Generate update-grub_lib and install it in
31299 * Makefile.in: Add install routine for $(lib_DATA).
31301 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
31302 function provided by update-grub_lib to support arbitrary paths of
31304 * util/update-grub.in: Use convert_system_path_to_grub_path() to
31305 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
31307 2007-05-19 Robert Millan <rmh@aybabtu.com>
31309 * commands/i386/cpuid.c: New module.
31310 * DISTLIST: Add it.
31311 * conf/i386-efi.rmk: Enable cpuid.mod.
31312 * conf/i386-pc.rmk: Likewise.
31314 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
31316 * kern/disk.c (grub_disk_read): Check return value of
31319 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
31321 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
31323 * disk/raid.c (grub_raid_open): Likewise.
31325 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
31327 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
31328 stack instead of on the heap.
31330 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
31331 before doing a read on it.
31333 * configure.ac: Only use -fno-stack-protector for the target
31336 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
31338 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
31339 __attribute_ ((unused)) to mode_type argument.
31341 * util/getroot.c (grub_guess_root_device): Fix #endif.
31343 * kern/misc.c (memcmp): Fix prototype.
31345 * include/grub/partition.h [GRUB_UTIL]
31346 (grub_gpt_partition_map_init): Add prototype.
31347 (grub_gpt_partition_map_fini): Likewise.
31349 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
31350 at the right place.
31352 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
31353 (grub_fat_read_data): Likewise.
31354 (grub_fat_find_dir): Likewise.
31356 * font/manager.c (find_glyph): Make table a const.
31357 (grub_font_get_glyph): Remove bitmap from if statement.
31359 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
31361 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
31362 code, first search for device in /dev/mapper, then in /dev.
31363 (grub_util_get_grub_dev): New function.
31364 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
31366 * util/grub-probe.c (probe): Remove check for RAID, call
31367 grub_util_get_grub_dev() instead of
31368 grub_util_biosdisk_get_grub_dev().
31369 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
31370 grub_util_biosdisk_get_grub_dev().
31371 * util/i386/pc/grub-setup.c (main): Likewise.
31373 2007-05-16 Robert Millan <rmh@aybabtu.com>
31375 * DISTLIST: Update for the latest changes.
31376 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
31377 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
31378 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
31379 grub/util/biosdisk.h.
31380 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
31381 grub/util/biosdisk.h.
31383 2007-05-16 Robert Millan <rmh@aybabtu.com>
31385 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
31387 2007-05-16 Robert Millan <rmh@aybabtu.com>
31389 * util/i386/efi/grub-install.in: New.
31390 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
31391 newly added grub-install.
31392 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
31394 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
31395 grub/util/biosdisk.h.
31396 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
31397 grub/util/biosdisk.h.
31399 2007-05-16 Robert Millan <rmh@aybabtu.com>
31401 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
31402 * include/grub/util/biosdisk.h: ... here.
31403 * util/i386/pc/biosdisk.c: Moved to ...
31404 * util/biosdisk.c: ... here.
31405 * util/i386/pc/getroot.c: Moved to ...
31406 * util/getroot.c: ... here.
31407 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
31408 * util/grub-mkdevicemap.c: ... here.
31409 * util/i386/pc/grub-probe.c: Moved to ...
31410 * util/grub-probe.c: ... here.
31412 2007-05-15 Robert Millan <rmh@aybabtu.com>
31414 * util/update-grub.in: Remove duplicated line in grub.cfg header
31417 2007-05-13 Robert Millan <rmh@aybabtu.com>
31419 * util/update-grub.in: Fix a few assumptions about the devices holding
31420 /, /boot and /boot/grub being the same.
31421 * util/grub.d/00_header.in: Likewise.
31422 * util/grub.d/10_hurd.in: Likewise.
31423 * util/grub.d/10_linux.in: Likewise.
31425 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
31426 patterns. Use that to define the `.old' suffix as older than `'.
31428 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
31430 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
31431 the grub.cfg header message.
31433 2007-05-11 Robert Millan <rmh@aybabtu.com>
31435 * util/update-grub.in: Create device.map if it doesn't already exist,
31436 before attempting to run grub-probe.
31437 Check for grub-probe and grub-mkdevicemap with the same code
31438 grub-install is using.
31441 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
31443 * Makefile.in: Add the datarootdir autoconf variable.
31445 2007-05-09 Robert Millan <rmh@aybabtu.com>
31447 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
31448 fail gracefully if dev->disk->partition == NULL.
31450 2007-05-07 Robert Millan <rmh@aybabtu.com>
31452 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
31453 determine partition map module.
31454 * util/i386/pc/grub-install.in: Use this feature to decide which
31455 partition module to load, instead of hardcoding pc and gpt.
31457 2007-05-07 Robert Millan <rmh@aybabtu.com>
31459 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
31460 source directory differs from build directory.
31462 2007-05-05 Robert Millan <rmh@aybabtu.com>
31464 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
31467 2007-05-05 Robert Millan <rmh@aybabtu.com>
31469 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
31471 2007-05-05 Robert Millan <rmh@aybabtu.com>
31473 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
31474 command-line arguments via ${GRUB_CMDLINE_LINUX}.
31476 2007-05-05 Robert Millan <rmh@aybabtu.com>
31478 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
31479 (grub_probe_SOURCES): Likewise.
31480 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
31481 GPT and initialize dos_part and bsd_part accordingly.
31482 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
31484 (main): Activate gpt module for use during partition identification,
31485 and deactivate it afterwards.
31486 * util/i386/pc/grub-install.in: Add gpt module to core.img.
31487 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
31488 partition identification, and deactivate it afterwards.
31490 2007-05-05 Robert Millan <rmh@aybabtu.com>
31492 * term/i386/pc/console.c (grub_console_fini): Call
31493 grub_term_set_current() before grub_term_unregister().
31495 2007-05-04 Robert Millan <rmh@aybabtu.com>
31497 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
31498 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
31499 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
31500 and update-grub_DATA.
31501 * conf/common.rmk: Build and install update-grub components.
31502 * conf/common.mk: Regenerate.
31503 * util/update-grub.in: New. Core of update-grub.
31504 * util/grub.d/00_header.in: New. Generates grub.cfg header.
31505 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
31506 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
31507 * util/grub.d/README: New. Document grub.d directory layout.
31509 2007-05-01 Robert Millan <rmh@aybabtu.com>
31511 * util/grub-emu.c: Move initialization functions
31512 grub_util_biosdisk_init() and grub_init_all() before
31513 grub_util_biosdisk_get_grub_dev(), which relies on them.
31515 2007-04-19 Robert Millan <rmh@aybabtu.com>
31517 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
31520 2007-04-18 Jerone Young <jerone@gmail.com>
31522 * kernel/elf.c: Add missing parenthesis for conditional statement
31525 2007-04-10 Jerone Young <jerone@gmail.com>
31527 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
31528 continue on and look for device node with real device name.
31530 2007-04-10 Jerone Young <jerone@gmail.com>
31532 * configure.ac: Add argument for autoconf to use transformation
31534 * Makefile.in: Add autoconf package transformation code.
31535 * util/i386/pc/grub-install.in: Likewise.
31536 * util/powerpc/ieee1275/grub-install.in: Likewise.
31538 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
31540 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
31541 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
31542 (EXT2_REVISION): Likewise.
31543 (EXT2_INODE_SIZE): Likewise.
31544 (struct grub_ext2_block_group): Added a missing member
31546 (grub_ext2_read_inode): Divide by the inode size in a superblock
31547 instead of 128 to obtain INODES_PER_BLOCK.
31548 Use the macro EXT2_INODE_SIZE instead of directly using
31549 SBLOCK->INODE_SIZE.
31551 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
31553 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
31554 superblock instead of the structure size to compute an
31555 offset. This fixes the problem that GRUB could not read a
31556 filesystem when inode size is different from 128-byte.
31558 2007-03-05 Marco Gerards <marco@gnu.org>
31560 * normal/main.c (read_config_file): When "menu" is not set, create
31561 an initial context.
31563 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
31565 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
31566 (HEAP_LIMIT): New macro.
31567 (grub_claim_heap): Claim memory up to `heaplimit'.
31569 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
31571 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
31572 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
31573 (_start): Likewise.
31574 (grub_arch_modules_addr): Return address after `_end'.
31575 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
31576 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
31577 (add_segments): Calculate `_end' from phdr size and location.
31578 (ALIGN_UP): Moved to ...
31579 * include/grub/misc.h: here.
31580 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
31582 (GRUB_IEEE1275_MODULE_BASE): Removed.
31584 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
31586 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
31589 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
31591 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
31593 (grub_elf64_load_hook_t): Likewise.
31594 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
31597 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
31599 * kern/mm.c: Update copyright.
31600 (grub_mm_debug): Correct syntax error.
31601 (grub_mm_dump_free): New function.
31602 (grub_debug_free): Call `grub_free'.
31603 * include/grub/mm.h: Update copyright.
31604 (grub_mm_dump_free): Add declaration.
31606 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
31608 * include/grub/ieee1275/ieee1275.h: Update copyright.
31609 * kern/powerpc/ieee1275/init.c: Likewise.
31610 * kern/powerpc/ieee1275/openfw.c: Likewise.
31612 * loader/powerpc/ieee1275/linux.c: Likewise.
31613 * include/grub/elfload.h: Likewise.
31614 * kern/elf.c: Likewise.
31615 (grub_elf32_load): Pass `base' and `size' parameters. Update all
31617 (grub_elf64_load): Likewise.
31618 (grub_elf32_load_segment): Move to a nested function.
31619 (grub_elf64_load_segment): Likewise.
31621 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
31623 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
31625 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
31626 (grub_heap_len): Likewise.
31627 (HEAP_SIZE): New macro.
31628 (grub_claim_heap): New function.
31629 (grub_machine_init): Don't claim heap directly. Call
31631 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
31632 (grub_available_iterate): New function.
31634 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
31636 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
31637 * configure.ac: Use it for testing the HOST and TARGET compilers.
31639 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
31641 * Makefile.in (enable_grub_emu): New variable.
31642 * configure.ac (--enable-grub-emu): New option.
31643 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
31644 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
31645 * conf/i386-pc.rmk: Likewise.
31646 * conf/powerpc-ieee1275.rmk: Likewise.
31647 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
31649 2006-12-12 Marco Gerards <marco@gnu.org>
31651 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
31653 * kern/env.c (grub_env_unset): Don't free the member `value' when
31654 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
31657 * normal/main.c (current_menu): Removed.
31658 (free_menu): Unset the `menu' environment variable.
31659 (grub_normal_menu_addentry): Make use of the environment variable
31660 `menu', instead of using the global `current_menu'. Allocate
31661 memory for the sourcecode of this entry.
31662 (read_config_file): New argument `nested', changed all callers.
31663 Only in the case of a new context, initialize a new menu. Set the
31664 `menu' environment variable.
31665 (grub_normal_execute): Don't set and unset the environment
31666 variable `menu' here anymore. Only free the menu when leaving the
31669 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
31672 2006-12-11 Marco Gerards <marco@gnu.org>
31674 * normal/menu_entry.c (run): Fix off by one bug so the last line
31675 is executed. Move the loader check to outside the loop.
31677 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
31679 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
31681 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
31683 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
31684 the number of sectors. Reported by Andrey Shuvikov
31685 <mr_hyro@yahoo.com>.
31687 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
31689 * kern/disk.c (grub_disk_read): When there is a read error, always
31690 try to read only the necessary data.
31692 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
31694 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
31696 [GRUB_UTIL] (grub_raid_fini): Likewise.
31697 [GRUB_UTIL] (grub_lvm_init): Likewise.
31698 [GRUB_UTIL] (grub_lvm_fini): Likewise.
31699 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
31700 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
31701 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
31702 and grub_raid_fini().
31704 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
31706 * include/grub/types.h (__unused): Rename to UNUSED.
31707 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
31708 (grub_elf64_size): Likewise.
31710 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
31712 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
31713 grub_error_push and grub_error_pop in the error-handling path.
31714 (grub_elf32_load_segment): Only call grub_file_read with non-zero
31717 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
31719 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
31720 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31721 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31722 (kernel_elf_SOURCES): Likewise.
31723 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
31724 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
31725 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
31726 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
31727 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
31728 (elf_mod_SOURCES): New variable.
31729 (elf_mod_CFLAGS): Likewise.
31730 (elf_mod_LDFLAGS): Likewise.
31731 * include/grub/types.h (__unused): New macro.
31732 * include/grub/elfload.h: New file.
31733 * kern/elf.c: Likewise.
31734 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
31735 (ELF32_LOADMASK): New macro.
31736 (ELF64_LOADMASK): Likewise.
31737 (vmlinux): Removed.
31738 (grub_linux_load32): New function.
31739 (grub_linux_load64): Likewise.
31740 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
31741 Use grub_elf_t instead of grub_file_t.
31743 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
31745 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
31746 `catch_result' to struct set_color_args.
31748 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
31750 * normal/menu.c: Include grub/script.h.
31751 * normal/menu_entry.c: Likewise.
31752 * include/grub/normal.h: Do not include grub/script.h.
31754 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
31756 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
31758 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
31760 * kern/disk.c (grub_disk_open): Print debug messages when opening a
31762 (grub_disk_close): Print debug messages when closing a disk.
31763 (grub_disk_read): Print debug messages when disk read fails.
31764 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
31766 * kern/partition.c: Include misc.h.
31767 (grub_partition_iterate): Print debug messages when detecting
31770 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
31772 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
31774 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
31776 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
31778 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
31779 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
31781 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
31783 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
31784 instead of sizeof(lv). Patch by Michael Guntsche.
31786 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
31788 * disk/lvm.c: Rename VGS to VG_LIST.
31789 (grub_lvm_iterate): Change VGS->LV to VG-LV.
31790 (grub_lvm_open): Likewise.
31791 Thanks to Michael Guntsche for finding this bug.
31793 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
31795 * configure.ac (AC_INIT): Bumped to 1.95.
31797 2006-10-14 Robert Millan <rmh@aybabtu.com>
31799 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
31800 with "/dev/.static/dev/md".
31802 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
31804 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
31805 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
31806 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
31807 DRIVE_NAME are always freed.
31809 * util/i386/pc/biosdisk.c (make_device_name): Add one into
31810 DOS_PART, as a DOS partition is counted from one instead of zero
31811 now. Reported by Robert Millan.
31813 2006-10-14 Robert Millan <rmh@aybabtu.com>
31815 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
31816 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
31817 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
31818 string returned by grub_guess_root_device.
31819 * util/i386/pc/grub-setup.c: Likewise.
31820 * util/i386/pc/grub-probefs.c: Likewise.
31822 * util/i386/pc/grub-probefs.c: Rename to ...
31823 * util/i386/pc/grub-probe.c: ... this.
31824 * DISTLIST: Remove grub-probefs, add grub-probe.
31825 * conf/i386-efi.rmk: Likewise.
31826 * conf/i386-pc.rmk: Likewise.
31827 * util/i386/pc/grub-install.in: Likewise.
31829 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
31830 choose which information we want to print.
31832 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
31834 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
31835 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
31836 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
31837 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
31838 video/readers/tga.c and video/i386/pc/vbeutil.c.
31840 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
31842 Added support for RAID and LVM.
31844 * disk/lvm.c: New file.
31845 * disk/raid.c: Likewise.
31846 * include/grub/lvm.h: Likewise.
31847 * include/grub/raid.h: Likewise.
31848 * include/grub/util/lvm.h: Likewise.
31849 * include/grub/util/raid.h: Likewise.
31850 * util/lvm.c: Likewise.
31851 * util/raid.c: Likewise.
31853 * include/grub/disk.h (grub_disk_dev_id): Add
31854 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
31855 (grub_disk_get_size): New prototype.
31856 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
31857 returns a partition.
31858 (grub_disk_get_size): New function.
31860 * kern/i386/pc/init.c (make_install_device): Copy the prefix
31861 verbatim if grub_install_dos_part is -2.
31863 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
31866 * util/i386/pc/grub-setup.c (setup): New argument
31867 MUST_EMBED. Force embedding of GRUB when the argument is
31868 true. Close FILE before returning.
31869 (main): Add support for RAID and LVM.
31871 * conf/common.rmk: Add RAID and LVM modules.
31872 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
31874 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
31876 * kern/misc.c (grub_strstr): New function.
31877 * include/grub/misc.h (grub_strstr): New prototype.
31879 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
31881 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
31883 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
31885 * kern/misc.c (grub_strtoull): Guess the base only if not
31888 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
31890 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
31893 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
31895 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
31897 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
31898 Remove `flags' argument. All callers changed.
31899 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
31900 (IEEE1275_IHANDLE_INVALID): New variable.
31901 (IEEE1275_CELL_INVALID): New variable.
31902 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
31903 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
31904 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
31905 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
31906 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
31907 codes from Open Firmware. All callers updated.
31908 (grub_ieee1275_next_property): Directly return Open Firmware return
31910 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
31911 Standardize error checking from `grub_ieee1275_get_property'.
31912 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
31913 `devalias' to `aliases'. Correct comments. Consolidate error paths.
31915 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
31917 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
31918 `instance_to_package_args' to `instance_to_path_args'.
31920 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
31921 `grub_ieee1275_chosen'.
31923 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
31924 `grub_ieee1275_interpret'.
31926 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
31928 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
31930 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
31932 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
31933 (__cmpdi): Likewise.
31935 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
31936 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
31939 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
31941 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
31942 to type `grub_ssize_t'.
31943 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
31945 2006-09-22 Marco Gerards <marco@gnu.org>
31947 * normal/script.c (grub_script_create_cmdmenu): Skip leading
31950 2006-09-22 Marco Gerards <marco@gnu.org>
31952 * commands/echo.c: New file.
31954 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
31956 * conf/common.rmk (echo_mod_SOURCES): New variable.
31957 (echo_mod_CFLAGS): Likewise.
31958 (echo_mod_LDFLAGS): Likewise.
31960 2006-09-22 Marco Gerards <marco@gnu.org>
31962 * normal/main.c (get_line): Malloc memory instead of using
31963 preallocated memory. Removed the arguments `cmdline' and
31964 `max_len'. Updated all callers.
31966 2006-09-22 Marco Gerards <marco@gnu.org>
31968 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
31969 (normal_mod_DEPENDENCIES): Likewise.
31971 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
31972 (normal_mod_DEPENDENCIES): Likewise.
31974 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
31976 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
31978 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
31980 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
31981 (normal_mod_DEPENDENCIES): Likewise.
31982 * conf/i386-pc.mk: Regenerate.
31983 * conf/i386-efi.mk: Likewise
31984 * conf/common.mk: Likewise.
31985 * conf/powerpc-ieee1275.mk: Likewise.
31986 * conf/sparc64-ieee1275.mk: Likewise.
31988 2006-09-22 Robert Millan <rmh@aybabtu.com>
31990 Sync with i386 version.
31991 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
31992 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
31994 2006-09-21 Robert Millan <rmh@aybabtu.com>
31996 Import from GRUB Legacy (lib/device.c):
31997 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
31998 (init_device_map) [__linux__]: Add support for I2O devices.
32000 2006-09-14 Marco Gerards <marco@gnu.org>
32002 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
32005 2006-09-14 Robert Millan <rmh@aybabtu.com>
32007 * util/i386/pc/grub-install.in: Skip menu.lst when removing
32010 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
32012 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
32013 before adding it to device.map.
32015 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
32017 * genmk.rb: Let GCC generate dependencies the first time it
32018 compiles a file; using the -MD option.
32019 * conf/common.mk: Regenerate.
32020 * conf/i386-pc.mk: Likewise.
32021 * conf/i386-efi.mk: Likewise.
32022 * conf/powerpc-ieee1275.mk: Likewise.
32023 * conf/sparc64-ieee1275.mk: Likewise.
32025 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
32027 Move the prototypes of grub_setjmp and grub_longjmp to
32028 cpu/setjmp.h, so that each architecture may specify different
32031 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
32032 (grub_longjmp): Likewise.
32033 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
32034 (grub_longjmp): Likewise.
32035 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
32036 (grub_longjmp): Likewise.
32038 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
32039 [!GRUB_UTIL] (grub_longjmp): Removed.
32041 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
32043 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
32044 "color!" method does not return any value.
32046 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
32048 * include/grub/bitmap.h: New file.
32050 * include/grub/i386/pc/vbeutil.h: Likewise.
32052 * video/bitmap.c: Likewise.
32054 * video/readers/tga.c: Likewise.
32056 * video/i386/pc/vbeutil.c: Likewise.
32058 * commands/videotest.c: Code cleanup and updated to reflect to new
32061 * term/gfxterm.c: Likewise.
32063 * video/video.c: Likewise.
32065 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
32066 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
32067 (bitmap_mod_SOURCES): New entry.
32068 (bitmap_mod_CFLAGS): Likewise.
32069 (bitmap_mod_LDFLAGS): Likewise.
32070 (tga_mod_SOURCES): Likewise.
32071 (tga_mod_CFLAGS): Likewise.
32072 (tga_mod_LDFLAGS): Likewise.
32074 * include/grub/video.h (grub_video_blit_operators): New enum type.
32075 (grub_video_render_target): Changed as forward declaration and moved
32076 actual definition to be video driver specific.
32077 (grub_video_adapter.blit_bitmap): Added blitting operator.
32078 (grub_video_adapter.blit_render_target): Likewise.
32079 (grub_video_blit_bitmap): Likewise.
32080 (grub_video_blit_render_target): Likewise.
32082 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
32083 driver specific render target definition.
32084 (grub_video_vbe_map_rgba): Added driver internal helper.
32085 (grub_video_vbe_unmap_color): Updated to use
32086 grub_video_i386_vbeblit_info.
32087 (grub_video_vbe_get_video_ptr): Likewise.
32089 * include/grub/i386/pc/vbeblit.h
32090 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
32091 grub_video_i386_vbeblit_info.
32092 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
32093 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
32094 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
32095 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
32096 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
32097 (grub_video_i386_vbeblit_index_index): Likewise.
32098 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
32099 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
32100 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
32101 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
32103 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
32106 * video/i386/pc/vbeblit.c: Updated to reflect changes on
32107 include/grub/i386/pc/vbeblit.h.
32109 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
32110 Updated to use grub_video_i386_vbeblit_info.
32111 (grub_video_i386_vbefill_R8G8B8): Likewise.
32112 (grub_video_i386_vbefill_index): Likewise.
32113 (grub_video_i386_vbefill): Added generic filler.
32115 * video/i386/pc/vbefill.c: Updated to reflect changes on
32116 include/grub/i386/pc/vbefill.h.
32118 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
32119 grub_video_i386_vbeblit_info.
32120 (grub_video_vbe_unmap_color): Likewise.
32121 (grub_video_vbe_blit_glyph): Likewise.
32122 (grub_video_vbe_scroll): Likewise.
32123 (grub_video_vbe_draw_pixel): Removed function.
32124 (grub_video_vbe_get_pixel): Likewise.
32125 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
32126 updated code to use it.
32127 (common_blitter): Added common blitter for render target and bitmap.
32128 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
32129 (grub_video_vbe_blit_render_target): Likewise.
32131 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
32133 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
32134 is in text mode if there is no console control protocol instance
32137 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
32139 * include/grub/video.h: Code cleanup.
32141 * include/grub/i386/pc/vbe.h: Likewise.
32143 * video/i386/pc/vbe.c: Likewise.
32145 * video/i386/pc/vbeblit.c: Likewise.
32147 * video/i386/pc/vbefill.c: Likewise.
32149 * video/video.c: Likewise. Also added more comments.
32151 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
32153 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
32154 (struct grub_biosdisk_dap): Likewise.
32156 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
32157 linkage settings for all functions.
32159 2006-07-12 Marco Gerards <marco@gnu.org>
32161 * configure.ac (--enable-mm-debug): Fix typo.
32163 * genkernsyms.sh.in: Use proper quoting for `CC'.
32165 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
32167 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
32168 (normal_mod_ASFLAGS): Remove "-m32".
32170 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
32172 * util/misc.c: Include config.h.
32173 [!HAVE_MEMALIGN]: Do not include malloc.h.
32174 (grub_memalign): Use posix_memalign, if present. Then, use
32175 memalign, if present. Otherwise, emit an error.
32177 * util/grub-emu.c: Do not include malloc.h.
32179 * include/grub/util/misc.h: Include unistd.h. This is required for
32180 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
32181 D. Eades III <hde@foobar-qux.org>.
32183 * configure.ac (AC_GNU_SOURCE): Added.
32184 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
32187 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
32189 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
32190 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
32192 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
32194 * include/grub/types.h (grub_host_addr_t): Rename to
32195 grub_target_addr_t.
32196 (grub_host_off_t): Rename to grub_target_off_t.
32197 (grub_host_size_t): Rename to grub_target_size_t.
32198 (grub_host_ssize_t): Rename to grub_target_ssize_t.
32199 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
32201 * include/grub/kernel.h (struct grub_module_header): Change type
32202 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
32203 (grub_module_info): Likewise.
32205 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
32207 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
32208 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
32209 Velazquez <jesus.velazquez@gmail.com>.
32211 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
32213 Count partitions from 1 instead of 0 in the string representation
32214 of partitions. Still use 0-based internally.
32216 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
32217 (sun_partition_map_iterate): Use grub_partition_t instead of
32218 struct grub_partition *. Cast DESC->START_CYLINDER to
32219 grub_uint64_t after converting the endian.
32220 (sun_partition_map_probe): Subtract 1 for PARTNUM.
32221 (sun_partition_map_get_name): Add 1 to P->INDEX.
32223 * partmap/pc.c (grub_partition_parse): Subtract 1 for
32225 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
32227 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
32228 zero instead of one.
32229 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
32230 (gpt_partition_map_get_name): Add 1 into P->INDEX.
32232 * partmap/apple.c (apple_partition_map_iterate): Change the type
32233 of POS to unsigned.
32234 (apple_partition_map_probe): Subtract 1 for PARTNUM.
32235 (apple_partition_map_get_name): Add 1 into P->INDEX.
32237 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
32238 of POS to unsigned.
32239 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
32240 calculate the offset of a partition.
32241 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
32242 (amiga_partition_map_get_name): Add 1 into P->INDEX.
32244 * partmap/acorn.c (acorn_partition_map_find): Change the type of
32245 SECTOR to grub_disk_addr_t.
32246 (acorn_partition_map_iterate): Likewise.
32247 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
32248 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
32250 (acorn_partition_map_get_name): Add 1 into P->INDEX.
32252 * kern/i386/pc/init.c (make_install_device): Add 1 into
32253 GRUB_INSTALL_DOS_PART.
32255 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
32258 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
32260 Clean up the code to support 64-bit addressing in disks and
32261 files. This change is not enough for filesystems yet.
32263 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
32264 type of "start" to grub_uint64_t.
32265 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
32266 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
32267 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
32270 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
32271 to grub_disk_addr_t.
32273 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
32276 * partmap/pc.c (pc_partition_map_iterate): Likewise.
32278 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
32281 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
32283 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
32285 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
32287 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
32288 to grub_off_t, to detect an error from grub_file_seek.
32289 (grub_multiboot_load_elf32): Likewise.
32291 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
32292 maximum unsigned long value when an overflow is detected.
32293 (grub_strtoull): New function.
32294 (grub_divmod64): Likewise.
32295 (grub_lltoa): use grub_divmod64.
32297 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
32299 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
32300 the pointer to next character. Use grub_strtoull instead of
32302 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
32303 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
32306 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
32307 return value is signed.
32308 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
32309 test if OFFSET is less than zero, as OFFSET is unsigned now.
32311 * kern/disk.c (struct grub_disk_cache): Change the type of
32312 "sector" to grub_disk_addr_t.
32313 (grub_disk_cache_get_index): Change the type of SECTOR to
32314 grub_disk_addr_t. Calculate the hash with SECTOR casted to
32315 unsigned after shifting.
32316 (grub_disk_cache_invalidate): Change the type of SECTOR to
32318 (grub_disk_cache_unlock): Likewise.
32319 (grub_disk_cache_store): Likewise.
32320 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
32321 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
32322 grub_disk_addr_t and grub_uint64_t, respectively.
32323 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
32324 body, as the value of OFFSET is tweaked by
32325 grub_disk_check_range. Change the types of START_SECTOR, LEN and
32326 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
32328 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
32329 body, as the value of OFFSET is tweaked by
32330 grub_disk_check_range. Change the types of LEN and N to
32333 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
32334 and "saved_offset" to grub_off_t.
32335 (test_header): Cast BUF to char *.
32336 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
32338 (grub_gzio_read): Change the types of OFFSET and SIZE to
32339 grub_off_t and grub_size_t, respectively.
32341 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
32343 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
32344 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
32345 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
32346 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
32347 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
32349 * include/grub/types.h (grub_off_t): Unconditionally set to
32351 (grub_disk_addr_t): Changed to grub_uint64_t.
32353 * include/grub/partition.h (struct grub_partition): Change the
32354 types of "start", "len" and "offset" to grub_disk_addr_t,
32355 grub_uint64_t and grub_disk_addr_t, respectively.
32356 (grub_partition_get_start): Return grub_disk_addr_t.
32357 (grub_partition_get_len): Return grub_uint64_t.
32359 * include/grub/misc.h (grub_strtoull): New prototype.
32360 (grub_divmod64): Likewise.
32362 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
32363 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
32364 grub_off_t, respectively.
32365 All callers and references changed.
32367 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
32368 grub_size_t in "read".
32369 All callers and references changed.
32371 * include/grub/file.h (struct grub_file): Change the types of
32372 "offset" and "size" to grub_off_t and grub_off_t,
32373 respectively. Change the type of SECTOR to grub_disk_addr_t in
32375 (grub_file_read): Change the type of LEN to grub_size_t.
32376 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
32378 (grub_file_size): Return grub_off_t.
32379 (grub_file_tell): Likewise.
32380 All callers and references changed.
32382 * include/grub/disk.h (struct grub_disk_dev): Change the types of
32383 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
32385 (struct grub_disk): Change the type of "total_sectors" to
32386 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
32388 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
32389 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
32390 (grub_disk_write): Likewise.
32391 All callers and references changed.
32393 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
32394 char * for grub_strncmp to silence gcc.
32395 (grub_iso9660_mount): Likewise.
32396 (grub_iso9660_mount): Likewise.
32397 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
32399 (grub_iso9660_iterate_dir): Likewise.
32400 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
32402 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
32403 LEN to grub_disk_addr_t and grub_size_t, respectively.
32405 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
32407 * fs/jfs.c (grub_jfs_read_file): Likewise.
32409 * fs/minix.c (grub_jfs_read_file): Likewise.
32411 * fs/sfs.c (grub_jfs_read_file): Likewise.
32413 * fs/ufs.c (grub_jfs_read_file): Likewise.
32415 * fs/xfs.c (grub_jfs_read_file): Likewise.
32417 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
32418 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
32421 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
32422 BLKNR to -1 instead of returning GRUB_ERRNO.
32423 (grub_ext2_read_file): Change the types of SECTOR and
32424 LEN to grub_disk_addr_t and grub_size_t, respectively.
32426 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
32427 LEN to grub_disk_addr_t and grub_size_t, respectively.
32429 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
32432 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
32433 string. Do not cast SECTOR explicitly.
32435 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
32436 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
32437 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
32438 grub_disk_addr_t and grub_size_t, respectively. If the sector is
32439 over 2TB and LBA mode is not supported, raise an error.
32440 (get_safe_sectors): New function.
32441 (grub_biosdisk_read): Use get_safe_sectors.
32442 (grub_biosdisk_write): Likewise.
32444 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
32445 (grub_efidisk_write): Likewise.
32447 * disk/loopback.c (delete_loopback): Cosmetic changes.
32448 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
32450 (grub_loopback_open): Likewise.
32451 (grub_loopback_read): Likewise. Also, change the type of POS to
32452 grub_off_t, and fix the usage of grub_memset.
32454 * commands/i386/pc/play.c: Include grub/machine/time.h.
32456 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
32459 * commands/configfile.c: Include grub/env.h.
32461 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
32462 GRUB_ERRNO directly instead. Change the type of POS to
32463 grub_off_t. Follow the coding standard.
32465 * commands/blocklist.c: Include grub/partition.h.
32466 (grub_cmd_blocklist): Return an error if the underlying device is
32467 not a disk. Take the starting sector of a partition into account,
32468 if a partition is used.
32470 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
32472 (lba_mode): Support 64-bit addresses.
32473 (chs_mode): Likewise.
32474 (copy_buffer): Adapted to the new offsets of a length field and a
32476 (blocklist_default_start): Allocate 64-bit space.
32478 * boot/i386/pc/boot.S (force_lba): Removed.
32479 (boot_drive): Moved to under KERNEL_SECTOR.
32480 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
32482 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
32484 (lba_mode): Refactored to support a 64-bit address. More size
32486 (setup_sectors): Likewise.
32488 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
32490 * DISTLIST: Added include/grub/i386/linux.h. Removed
32491 include/grub/i386/pc/linux.h
32493 * configure.ac (AC_INIT): Bumped to 1.94.
32495 * config.guess: Updated from gnulib.
32496 * config.sub: Likewise.
32497 * install-sh: Likewise.
32498 * mkinstalldirs: Likewise.
32500 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
32502 * conf/common.rmk (grub_modules_init.lst): Depended on
32503 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
32506 * genmk.rb (PModule::rule): Reverted the previous change.
32508 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
32510 * conf/common.rmk (grub_modules_init.lst): Depends on
32511 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
32512 that the target does not exist before producing.
32513 (grub_modules_init.h): Remove the target before generating.
32514 (grub_emu_init.c): Likewise.
32516 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
32518 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
32520 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
32521 for the target-specific tests. Make sure that we also have the
32522 up-to-date target variables for those tests.
32524 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
32526 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
32527 (PModule::rule): Likewise.
32529 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
32531 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
32532 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
32533 target-specific flags should be prefixed.
32534 (PModule::rule): Likewise.
32536 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
32538 * configure.ac (CMP): Check if cmp is available explicitly.
32540 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
32542 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
32543 (target_cpu): New variable.
32544 (pkglibdir): Use target_cpu instead of host_cpu.
32546 * util/i386/pc/grub-install.in (host_cpu): Removed.
32547 (target_cpu): New variable.
32548 (pkglibdir): Use target_cpu instead of host_cpu.
32550 * util/genmoddep.c: Removed.
32552 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
32553 instead of GRUB_HOST_SIZEOF_VOID_P.
32554 * kern/dl.c: Likewise.
32556 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
32558 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
32559 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
32560 (GRUB_TARGET_SIZEOF_LONG): ... this.
32561 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
32562 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
32563 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
32565 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
32566 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
32567 (GRUB_TARGET_SIZEOF_LONG): ... this.
32568 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
32569 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
32570 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
32572 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
32573 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
32574 (GRUB_TARGET_SIZEOF_LONG): ... this.
32575 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
32576 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
32578 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
32579 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
32580 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
32581 instead of GRUB_HOST_SIZEOF_LONG.
32582 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
32583 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
32584 GRUB_CPU_WORDS_BIGENDIAN.
32585 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
32586 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
32589 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
32590 (genmoddep_SOURCES): Likewise.
32591 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
32592 (genmoddep_SOURCES): Likewise.
32593 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
32594 (genmoddep_SOURCES): Likewise.
32595 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
32597 (genmoddep_SOURCES): Likewise.
32599 * genmoddep.awk: New file.
32601 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
32602 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
32603 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
32604 (PModule::rule): Likewise.
32605 (Program::rule): Likewise.
32606 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
32607 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
32610 * configure.ac: Rewritten intensively to use host and target
32611 instead of build and host, respectively.
32613 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
32614 (host_cpu): Removed.
32615 (target_cpu): New variable.
32616 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
32617 (BUILD_CC): Removed.
32618 (BUILD_CFLAGS): Likewise.
32619 (BUILD_CPPFLAGS): Likewise.
32620 (TARGET_CC): New variable.
32621 (TARGET_CFLAGS): Likewise.
32622 (TARGET_CPPFLAGS): Likewise.
32623 (TARGET_LDFLAGS): Likewise.
32625 (include): Use target_cpu instead of host_cpu.
32626 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
32628 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
32630 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
32632 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
32633 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
32634 field 'false' to 'exec_on_false'.
32635 (grub_script_create_cmdif): Renamed argument names to reflect above
32638 * normal/execute.c (grub_script_execute_cmdif): Likewise.
32640 * normal/script.c (grub_script_create_cmdif): Likewise.
32642 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
32644 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
32646 (grub_hfsplus_btree_recptr): Likewise.
32647 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
32648 FILEBLOCK both to pass a block number and store next block
32650 (grub_hfsplus_read_block): Rewritten heavily to support an extent
32651 overflow file correctly. Specify errors appropriately, because
32652 fshelp expects that GRUB_ERRNO is set when fails. Reuse
32653 grub_hfsplus_btree_recptr to get the pointer to a found key.
32654 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
32657 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
32659 (_linux_mod_SOURCES): New variable.
32660 (_linux_mod_CFLAGS): Likewise.
32661 (_linux_mod_LDFLAGS): Likewise.
32662 (linux_mod_SOURCES): Likewise.
32663 (linux_mod_CFLAGS): Likewise.
32664 (linux_mod_LDFLAGS): Likewise.
32666 * DISTLIST: Added loader/i386/efi/linux.c,
32667 loader/i386/efi/linux_normal.c and
32668 include/grub/i386/efi/loader.h.
32670 * loader/i386/efi/linux.c: New file.
32671 * loader/i386/efi/linux_normal.c: Likewise.
32672 * include/grub/i386/efi/loader.h: Likewise.
32674 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
32676 * commands/blocklist.c: New file.
32678 * DISTLIST: Added commands/blocklist.c.
32680 * term/efi/console.c (grub_console_highlight_color): Use a lighter
32681 color for the background, and a darker color for the foreground.
32682 (grub_console_checkkey): Return READ_KEY.
32683 (grub_console_cls): Set the background to
32684 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
32686 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
32688 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
32689 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
32691 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
32694 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
32695 BG. The spec is wrong again.
32697 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
32699 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
32701 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
32702 commands/blocklist.c.
32703 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32705 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
32706 (blocklist_mod_SOURCES): New variable.
32707 (blocklist_mod_CFLAGS): Likewise.
32708 (blocklist_mod_LDFLAGS): Likewise.
32710 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
32712 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
32714 (lba_mode): Use %eax more intensively to reduce the code size.
32716 2006-05-20 Marco Gerards <marco@gnu.org>
32718 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
32720 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
32722 (script): Accept leading newlines.
32723 (newlines): New rule to describe 0 or more newlines.
32724 (commands): Accept `command' with trailing newline. Fixed the
32725 order in which arguments were passed to `grub_script_add_cmd'.
32726 Accept commands separated by newlines.
32727 (function): Changed to accept newlines.
32728 (menuentry) Rewritten.
32730 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
32731 front of the list, instead of to the end.
32733 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
32735 * util/i386/pc/grub-install.in (bindir): New variable.
32736 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
32737 Shaver <lbgwjl@gmail.com>.
32739 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
32741 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
32742 grub/machine/linux.h
32743 * loader/i386/pc/linux.c: Likewise.
32745 * include/grub/i386/pc/linux.h: Moved to ...
32746 * include/grub/i386/linux.h: ... here.
32748 * include/grub/i386/linux.h (struct linux_kernel_params): New
32751 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
32753 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
32755 (grub_video_vbe_blit_glyph): Likewise.
32756 (grub_video_vbe_blit_bitmap): Likewise.
32757 (grub_video_vbe_blit_render_target): Likewise.
32759 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
32761 * configure.ac (--with-platform): Properly quote the square
32764 2006-05-08 Marco Gerards <marco@gnu.org>
32766 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
32768 (kernel_elf_HEADERS): ...to this. Updated all users.
32769 (grubof_symlist.c): Renamed from this...
32770 (kernel_elf_symlist.c): ...to this. Updated all users.
32771 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
32772 (grubof_SOURCES): Renamed from this...
32773 (kernel_elf_SOURCES): ...to this.
32774 (grubof_HEADERS): Renamed from this...
32775 (kernel_elf_HEADERS): ...to this.
32776 (grubof_CFLAGS): Renamed from this...
32777 (kernel_elf_CFLAGS): ...to this.
32778 (grubof_ASFLAGS): Renamed from this...
32779 (kernel_elf_ASFLAGS): ...to this.
32780 (grubof_LDFLAGS): Renamed from this...
32781 (kernel_elf_LDFLAGS): ...to this.
32783 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
32785 (kernel_elf_HEADERS): ...to this. Updated all users.
32786 (grubof_symlist.c): Renamed from this...
32787 (kernel_elf_symlist.c): ...to this. Updated all users.
32788 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
32789 (grubof_SOURCES): Renamed from this...
32790 (kernel_elf_SOURCES): ...to this.
32791 (grubof_HEADERS): Renamed from this...
32792 (kernel_elf_HEADERS): ...to this.
32793 (grubof_CFLAGS): Renamed from this...
32794 (kernel_elf_CFLAGS): ...to this.
32795 (grubof_ASFLAGS): Renamed from this...
32796 (kernel_elf_ASFLAGS): ...to this.
32797 (grubof_LDFLAGS): Renamed from this...
32798 (kernel_elf_LDFLAGS): ...to this.
32800 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
32801 `kernel.elf' instead of `grubof'.
32803 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
32805 Add --with-platform to configure. Use pkglibdir instead of
32806 pkgdatadir. This is reported by Roger Leigh.
32808 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
32809 (host_vendor): Likewise.
32810 (host_os): Likewise.
32811 (pkgdatadir): Likewise.
32812 (platform): New variable.
32813 (pkglibdir): Likewise.
32814 Use PKGLIBDIR instead of PKGDATADIR.
32816 * util/i386/pc/grub-install.in (datadir): Removed.
32817 (host_vendor): Likewise.
32818 (host_os): Likewise.
32819 (pkgdatadir): Likewise.
32820 (platform): New variable.
32821 (pkglibdir): Likewise.
32822 Use PKGLIBDIR instead of PKGDATADIR.
32824 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
32825 instead of GRUB_DATADIR.
32827 * util/i386/pc/grub-mkimage.c (usage): Likewise.
32829 * util/i386/efi/grub-mkimage.c (usage): Likewise.
32832 * configure.ac (--with-platform): New option.
32833 Use PLATFORM instead of HOST_VENDOR to specify a platform.
32835 * Makefile.in: Include a makefile based on PLATFORM instead of
32837 (pkgdatadir): Not appended by the machine type.
32838 (pkglibdir): Appended by the machine type.
32839 (host_vendor): Removed.
32840 (platform): New variable.
32841 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
32842 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
32843 (uninstall): Likewise.
32845 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
32847 Use the environment context in the menu. Remove the commands
32848 "default" and "timeout", and use variables instead.
32850 * normal/menu.c: Include grub/env.h.
32851 (print_entry): Cast TITLE to silence gcc.
32852 (get_timeout): New function.
32853 (set_timeout): Likewise.
32854 (get_entry_number): Likewise.
32855 (run_menu): Use a default entry, a fallback entry and a timeout
32856 in the environment variables "default", "fallback" and
32857 "timeout". Also, tweak the default entry if it is not within the
32858 current menu entries.
32859 (grub_menu_run): Use a fallback entry in the environment variable
32862 * normal/main.c (read_config_file): Do not initialize
32863 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
32865 (grub_normal_execute): Use a data slot to store the menu.
32867 * include/grub/normal.h (struct grub_menu): Removed default_entry,
32868 fallback_entry and timeout.
32869 (struct grub_menu_list): Removed.
32870 (grub_menu_list_t): Likewise.
32871 (struct grub_context): Likewise.
32872 (grub_context_t): Likewise.
32873 (grub_context_get): Likewise.
32874 (grub_context_get_current_menu): Likewise.
32875 (grub_context_push_menu): Likewise.
32876 (grub_context_pop_menu): Likewise.
32877 (grub_default_init): Likewise.
32878 (grub_default_fini): Likewise.
32879 (grub_timeout_init): Likewise.
32880 (grub_timeout_fini): Likewise.
32882 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
32884 (normal_mod_SOURCES): Removed normal/context.c.
32886 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
32887 commands/default.c, commands/timeout.c and normal/context.c.
32888 (normal_mod_SOURCES): Removed normal/context.c.
32890 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
32891 commands/timeout.c and normal/context.c.
32892 (normal_mod_SOURCES): Removed normal/context.c.
32894 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
32895 commands/default.c, commands/timeout.c and normal/context.c.
32896 (normal_mod_SOURCES): Removed normal/context.c.
32898 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
32900 (default_mod_SOURCES): Removed.
32901 (default_mod_CFLAGS): Likewise.
32902 (default_mod_LDFLAGS): Likewise.
32903 (timeout_mod_SOURCES): Removed.
32904 (timeout_mod_CFLAGS): Likewise.
32905 (timeout_mod_LDFLAGS): Likewise.
32907 * DISTLIST: Removed commands/default.c, commands/timeout.c and
32910 * commands/default.c: Removed.
32911 * commands/timeout.c: Likewise.
32912 * normal/context.c: Likewise.
32914 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
32916 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
32918 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
32920 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
32921 "next" to "prev" for readability.
32922 (struct grub_env_sorted_var): New struct.
32923 (grub_env_context): Renamed to ...
32924 (initial_context): ... this.
32925 (grub_env_var_context): Renamed to ...
32926 (current_context): ... this.
32927 (grub_env_find): Look only at CURRENT_CONTEXT.
32928 (grub_env_context_open): Rewritten to copy exported variables from
32930 (grub_env_context_close): Rewritten according to the new
32931 scheme. Also, add an assertion to prevent the initial context from
32933 (grub_env_insert): Removed the code for the sorted list.
32934 (grub_env_remove): Likewise.
32935 (grub_env_export): Simply mark the variable with
32936 GRUB_ENV_VAR_GLOBAL.
32937 (grub_env_set): A cosmetic change for naming consistency.
32938 (grub_env_get): Likewise.
32939 (grub_env_unset): Likewise.
32940 (grub_env_iterate): Rewritten to sort variables within this
32942 (grub_register_variable_hook): Fixed for naming consistency. Call
32943 grub_env_find again, only if NAME is not found at the first time.
32944 (mangle_data_slot_name): New function.
32945 (grub_env_set_data_slot): Likewise.
32946 (grub_env_get_data_slot): Likewise.
32947 (grub_env_unset_data_slot): Likewise.
32949 * include/grub/env.h (grub_env_var_type): New enum.
32950 (GRUB_ENV_VAR_LOCAL): New constant.
32951 (GRUB_ENV_VAR_GLOBAL): Likewise.
32952 (GRUB_ENV_VAR_DATA): Likewise.
32953 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
32955 (grub_env_set): Replace VAR with NAME for consistency.
32956 (grub_register_variable_hook): Likewise.
32957 (grub_env_export): Specify the name of the argument.
32958 (grub_env_set_data_slot): New prototype.
32959 (grub_env_get_data_slot): Likewise.
32960 (grub_env_unset_data_slot): Likewise.
32962 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
32964 Extend the loader so that GRUB can accept a loader which comes
32965 back to GRUB when a loaded image exits. Also, this change adds
32966 support for a chainloader on EFI.
32968 * term/efi/console.c: Include grub/misc.h.
32969 (grub_console_checkkey): Display a scan code on the top for
32970 debugging. This will be removed once the EFI port gets stable.
32971 Correct the scan code mapping.
32973 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
32974 allocate memory from larger regions, in order to reduce the number
32975 of allocated regions. Otherwise, the MacOSX loader panics.
32976 (filter_memory_map): Avoid less than 1MB for compatibility with
32978 (add_memory_regions): Allocate from the tail of a region, if
32979 possible, to avoid allocating a region near to 1MB, for the MacOSX
32982 * kern/efi/init.c (grub_efi_set_prefix): Specify
32983 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
32985 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
32986 argument IMAGE_HANDLE and specify it to get a loaded image.
32987 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
32988 grub_efi_get_loaded_image.
32989 (grub_efi_get_filename): Divide the length by the size of
32991 (grub_efi_get_device_path): New function.
32992 (grub_efi_print_device_path): Print End Device Path nodes. Divide
32993 the length by the size of grub_efi_char16_t for a file path device
32996 * kern/loader.c (grub_loader_noreturn): New variable.
32997 (grub_loader_set): Accept a new argument NORETURN. Set
32998 GRUB_LOADER_NORETURN to NORETURN.
32999 All callers changed.
33000 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
33003 * include/grub/efi/efi.h (grub_efi_get_device_path): New
33005 (grub_efi_get_loaded_image): Take an argument to specify an image
33008 * include/grub/loader.h (grub_loader_set): Added one more argument
33011 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
33012 instead of grub_efi_open_protocol.
33013 (grub_efidisk_get_device_name): Likewise.
33014 (grub_efidisk_close): Print a newline.
33015 (grub_efidisk_get_device_handle): Fixed to use
33016 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
33017 GRUB_EFI_DEVICE_PATH_TYPE.
33019 * disk/efi/efidisk.c (device_path_guid): Moved to ...
33020 * kern/efi/efi.c (device_path_guid): ... here.
33022 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
33024 (kernel_mod_HEADERS): Added efi/disk.h.
33025 (_chain_mod_SOURCES): New variable.
33026 (_chain_mod_CFLAGS): Likewise.
33027 (_chain_mod_LDFLAGS): Likewise.
33028 (chain_mod_SOURCES): Likewise.
33029 (chain_mod_CFLAGS): Likewise.
33030 (chain_mod_LDFLAGS): Likewise.
33032 * DISTLIST: Added include/grub/efi/chainloader.h,
33033 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
33035 * include/grub/efi/chainloader.h: New file.
33036 * loader/efi/chainloader.c: Likewise.
33037 * loader/efi/chainloader_normal.c: Likewise.
33039 2006-04-30 Marco Gerards <marco@gnu.org>
33041 * commands/configfile.c (grub_cmd_source): New function.
33042 (GRUB_MOD_INIT): Register the commands `source' and `.'.
33043 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
33045 2006-04-30 Marco Gerards <marco@gnu.org>
33047 * normal/execute.c (grub_script_execute_cmd): Change the return
33048 type to `grub_err_t'. Correctly return the error.
33049 (grub_script_execute_cmdline): In case a command line is not a
33050 command or a function, try to interpret it as an assignment.
33052 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
33054 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
33055 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
33056 skip a node whose name is obviously invalid as UTF-16,
33057 i.e. contains a NUL character. Stop the iteration when the last
33058 directory entry is found. Instead of using the return value of
33059 grub_hfsplus_btree_iterate_node, store the value in RET and use
33060 it, because the iterator can be stopped by the last directory
33063 2006-04-30 Marco Gerards <marco@gnu.org>
33065 * include/grub/env.h (grub_env_export): New prototype. Reported
33066 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
33068 2006-04-30 Marco Gerards <marco@gnu.org>
33070 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
33071 size of the extents in a catalog file record.
33073 2006-04-29 Marco Gerards <marco@gnu.org>
33075 * commands/configfile.c (grub_cmd_configfile): Execute the
33076 configfile within its own context.
33078 * include/grub/env.h (grub_env_context_open): New prototype.
33079 (grub_env_context_close): Likewise.
33081 * kern/env.c (grub_env): Removed.
33082 (grub_env_sorted): Likewise.
33083 (grub_env_context): New variable.
33084 (grub_env_var_context): Likewise.
33085 (grub_env_find): Search both the active context and the global
33087 (grub_env_context_open): New function.
33088 (grub_env_context_close): Likewise.
33089 (grub_env_insert): Likewise.
33090 (grub_env_remove): Likewise.
33091 (grub_env_export): Likewise.
33092 (grub_env_set): Changed to use helper functions to avoid code
33094 (grub_env_iterate): Rewritten so both the current context and the
33095 global context are being used.
33097 * normal/command.c (export_command): New function.
33098 (grub_command_init): Register the `export' function.
33100 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
33102 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
33103 explicitly to suppress gcc's warnings.
33104 * fs/fat.c (grub_fat_find_dir): Likewise.
33105 (grub_fat_label): Likewise.
33106 * fs/xfs.c (grub_xfs_read_inode): Likewise.
33107 (grub_xfs_mount): Likewise.
33108 (grub_xfs_label): Likewise.
33109 * fs/affs.c (grub_affs_mount): Likewise.
33110 (grub_affs_label): Likewise.
33111 (grub_affs_iterate_dir): Likewise.
33112 * fs/sfs.c (grub_sfs_mount): Likewise.
33113 (grub_sfs_iterate_dir): Likewise.
33114 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
33115 * fs/hfs.c (grub_hfs_mount): Likewise.
33116 (grub_hfs_cmp_catkeys): Likewise.
33117 (grub_hfs_find_dir): Likewise.
33118 (grub_hfs_dir): Likewise.
33119 (grub_hfs_label): Likewise.
33120 * fs/jfs.c (grub_jfs_mount): Likewise.
33121 (grub_jfs_opendir): Likewise.
33122 (grub_jfs_getent): Likewise.
33123 (grub_jfs_lookup_symlink): Likewise.
33124 (grub_jfs_label): Likewise.
33125 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
33126 (grub_hfsplus_iterate_dir): Likewise.
33127 (grub_hfsplus_btree_iterate_node): Made static.
33129 * util/grub-emu.c (prefix): New variable.
33130 (grub_machine_set_prefix): New function.
33131 (main): Do not set the environment variable "prefix" here. Only
33132 set PREFIX, which is used later by grub_machine_set_prefix.
33134 * include/grub/video.h: Do not include grub/symbol.h.
33135 (grub_video_register): Not exported. This symbol is not defined in
33137 (grub_video_unregister): Likewise.
33138 (grub_video_iterate): Likewise.
33139 (grub_video_setup): Likewise.
33140 (grub_video_restore): Likewise.
33141 (grub_video_get_info): Likewise.
33142 (grub_video_get_blit_format): Likewise.
33143 (grub_video_set_palette): Likewise.
33144 (grub_video_get_palette): Likewise.
33145 (grub_video_set_viewport): Likewise.
33146 (grub_video_get_viewport): Likewise.
33147 (grub_video_map_color): Likewise.
33148 (grub_video_map_rgb): Likewise.
33149 (grub_video_map_rgba): Likewise.
33150 (grub_video_fill_rect): Likewise.
33151 (grub_video_blit_glyph): Likewise.
33152 (grub_video_blit_bitmap): Likewise.
33153 (grub_video_blit_render_target): Likewise.
33154 (grub_video_scroll): Likewise.
33155 (grub_video_swap_buffers): Likewise.
33156 (grub_video_create_render_target): Likewise.
33157 (grub_video_delete_render_target): Likewise.
33158 (grub_video_set_active_render_target): Likewise.
33160 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
33162 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
33164 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
33165 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33166 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33167 instead of $(srcdir)/genkernsyms.sh.
33169 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
33170 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33171 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33172 instead of $(srcdir)/genkernsyms.sh.
33174 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
33175 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33176 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33177 instead of $(srcdir)/genkernsyms.sh.
33179 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
33180 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33181 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33182 instead of $(srcdir)/genkernsyms.sh.
33184 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
33187 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
33189 (gensymlist.sh): New target.
33190 (genkernsyms.sh): Likewise.
33192 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
33193 genkernsyms.sh.in and gensymlist.sh.in.
33195 * genkernsyms.sh: Removed.
33196 * gensymlist.sh: Likewise.
33198 * genkernsyms.sh.in: New file.
33199 * gensymlist.sh.in: Likewise.
33201 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
33203 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
33204 clobber "prefix", since we may have already set it manually.
33206 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
33208 * kern/misc.c (abort): New alias for grub_abort.
33210 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
33212 A new machine-specific function "grub_machine_set_prefix" is
33213 defined. This is called after loading modules, so that a prefix
33214 initialization can use modules. Also, this change adds an
33215 intensive debugging feature for the memory manager via the
33216 configure option "--enable-mm-debug".
33218 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
33221 * kern/sparc64/ieee1275/init.c (abort): Removed.
33222 (grub_stop): Likewise.
33223 (grub_exit): New function.
33224 (grub_set_prefix): Renamed to ...
33225 (grub_machine_set_prefix): ... this.
33226 (grub_machine_init): Do not call grub_set_prefix.
33228 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
33229 (grub_machine_set_prefix): ... this.
33230 (grub_machine_init): Do not call grub_set_prefix.
33232 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
33233 (grub_machine_init): Do not set the prefix here.
33235 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
33237 * kern/efi/init.c: Include grub/mm.h.
33238 (grub_efi_set_prefix): New function.
33240 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
33241 (grub_efi_get_filename): New function.
33242 (grub_print_device_path): Renamed to ...
33243 (grub_efi_print_device_path): ... this.
33245 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
33246 [MM_DEBUG] (grub_realloc): Likewise.
33247 [MM_DEBUG] (grub_free): Likewise.
33248 [MM_DEBUG] (grub_memalign): Likewise.
33249 [MM_DEBUG] (grub_mm_debug): New variable.
33250 [MM_DEBUG] (grub_debug_malloc): New function.
33251 [MM_DEBUG] (grub_debug_free): New function.
33252 [MM_DEBUG] (grub_debug_realloc): New function.
33253 [MM_DEBUG] (grub_debug_memalign): New function.
33255 * kern/misc.c (grub_abort): Print a newline to distinguish
33258 * kern/main.c (grub_main): Call grub_machine_set_prefix and
33259 grub_set_root_dev after loading modules. This is necessary when
33260 setting a prefix depends on modules.
33262 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
33263 (grub_efi_print_device_path): ... this.
33264 (grub_efi_get_filename): New prototype.
33265 (grub_efi_set_prefix): Likewise.
33267 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
33269 (grub_efidisk_get_device_handle): New prototype.
33270 (grub_efidisk_get_device_name): Likewise.
33272 * include/grub/mm.h: Include config.h.
33273 (MM_DEBUG): Removed.
33274 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
33275 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
33276 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
33277 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
33278 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
33279 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
33280 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
33281 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
33282 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
33284 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
33286 * disk/efi/efidisk.c: Include grub/partition.h.
33287 (iterate_child_devices): New function.
33288 (add_device): First, compare only last device path nodes, so that
33289 devices are sorted by the types.
33290 (grub_efidisk_get_device_handle): New function.
33291 (grub_efidisk_get_device_name): Likewise.
33293 * configure.ac (--enable-mm-debug): New option to enable the
33294 memory manager debugging feature. This makes the binary much
33295 bigger, so is disabled by default.
33297 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
33299 Use grub_abort instead of grub_stop, and grub_exit must be
33300 define in each architecture now. Also, this change adds support
33303 * util/i386/pc/grub-probefs.c: Include grub/term.h.
33304 (grub_getkey): New function.
33305 (grub_term_get_current): Likewise.
33307 * util/i386/pc/grub-setup.c: Include grub/term.h.
33308 (grub_getkey): New function.
33309 (grub_term_get_current): Likewise.
33311 * util/misc.c (grub_stop): Renamed to ...
33312 (grub_exit): ... this.
33314 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
33315 (grub_exit): ... this.
33316 (grub_machine_init): Use grub_abort instead of abort.
33317 (grub_stop): Removed.
33319 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
33322 * kern/i386/pc/startup.S (grub_exit): New function.
33323 (cold_reboot): New label.
33325 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
33326 (grub_efi_init): Call grub_efidisk_init.
33327 (grub_efi_fini): Call grub_efidisk_fini.
33329 * kern/efi/efi.c: Include grub/mm.h.
33330 (grub_efi_console_control_guid): Renamed to ...
33331 (console_control_guid): ... this.
33332 (grub_efi_loaded_image_guid): Renamed to ...
33333 (loaded_image_guid): ... this.
33334 (grub_efi_locate_handle): New function.
33335 (grub_efi_open_protocol): Likewise.
33336 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
33337 GRUB_EFI_CONSOLE_CONTROL_GUID.
33338 (grub_efi_exit): Removed.
33339 (grub_stop): Likewise.
33340 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
33341 (grub_exit): New function.
33342 (grub_print_device_path): Likewise.
33344 * kern/rescue.c (grub_rescue_cmd_exit): New function.
33345 (grub_enter_rescue_mode): Register "exit".
33347 * kern/misc.c (grub_real_dprintf): A cosmetic change.
33348 (grub_abort): New function.
33350 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
33352 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
33354 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
33356 * include/grub/efi/efi.h (grub_efi_exit): Removed.
33357 (grub_print_device_path): New prototype.
33358 (grub_efi_locate_handle): Likewise.
33359 (grub_efi_open_protocol): Likewise.
33361 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
33362 * disk/efi/efidisk.c: Likewise.
33364 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
33366 * include/grub/efi/console_control.h
33367 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
33369 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
33370 last 8 bytes as an array.
33371 (GRUB_EFI_DISK_IO_GUID): New macro.
33372 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
33373 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
33374 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
33376 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
33377 (struct grub_efi_device_path): Rename the member "sub_type" to
33379 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
33380 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
33381 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
33382 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
33383 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
33384 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
33385 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
33386 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
33387 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
33388 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
33389 (struct grub_efi_pci_device_path): New structure.
33390 (grub_efi_pci_device_path_t): New type.
33391 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
33392 (struct grub_efi_pccard_device_path): New structure.
33393 (grub_efi_pccard_device_path_t): New type.
33394 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
33395 (struct grub_efi_memory_mapped_device_path): New structure.
33396 (grub_efi_memory_mapped_device_path_t): New type.
33397 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
33398 (struct grub_efi_vendor_device_path): New structure.
33399 (grub_efi_vendor_device_path_t): New type.
33400 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
33401 (struct grub_efi_controller_device_path): New structure.
33402 (grub_efi_controller_device_path_t): New type.
33403 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
33404 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
33405 (struct grub_efi_acpi_device_path): New structure.
33406 (grub_efi_acpi_device_path_t): New type.
33407 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
33408 (struct grub_efi_expanded_acpi_device_path): New structure.
33409 (grub_efi_expanded_acpi_device_path_t): New type.
33410 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
33411 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
33412 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
33413 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
33414 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
33415 (struct grub_efi_atapi_device_path): New structure.
33416 (grub_efi_atapi_device_path_t): New type.
33417 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
33418 (struct grub_efi_fibre_channel_device_path): New structure.
33419 (grub_efi_fibre_channel_device_path_t): New type.
33420 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
33421 (struct grub_efi_1394_device_path): New structure.
33422 (grub_efi_1394_device_path_t): New type.
33423 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
33424 (struct grub_efi_usb_device_path): New structure.
33425 (grub_efi_usb_device_path_t): New type.
33426 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
33427 (struct grub_efi_usb_class_device_path): New structure.
33428 (grub_efi_usb_class_device_path_t): New type.
33429 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
33430 (struct grub_efi_i2o_device_path): New structure.
33431 (grub_efi_i2o_device_path_t): New type.
33432 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
33433 (struct grub_efi_mac_address_device_path): New structure.
33434 (grub_efi_mac_address_device_path_t): New type.
33435 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
33436 (struct grub_efi_ipv4_device_path): New structure.
33437 (grub_efi_ipv4_device_path_t): New type.
33438 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
33439 (struct grub_efi_ipv6_device_path): New structure.
33440 (grub_efi_ipv6_device_path_t): New type.
33441 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
33442 (struct grub_efi_infiniband_device_path): New structure.
33443 (grub_efi_infiniband_device_path_t): New type.
33444 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
33445 (struct grub_efi_uart_device_path): New structure.
33446 (grub_efi_uart_device_path_t): New type.
33447 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
33448 (struct grub_efi_vendor_messaging_device_path): New structure.
33449 (grub_efi_vendor_messaging_device_path_t): New type.
33450 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
33451 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
33452 (struct grub_efi_hard_drive_device_path): New structure.
33453 (grub_efi_hard_drive_device_path_t): New type.
33454 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
33455 (struct grub_efi_cdrom_device_path): New structure.
33456 (grub_efi_cdrom_device_path_t): New type.
33457 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
33458 (struct grub_efi_vendor_media_device_path): New structure.
33459 (grub_efi_vendor_media_device_path_t): New type.
33460 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
33461 (struct grub_efi_file_path_device_path): New structure.
33462 (grub_efi_file_path_device_path_t): New type.
33463 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
33464 (struct grub_efi_protocol_device_path): New structure.
33465 (grub_efi_protocol_device_path_t): New type.
33466 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
33467 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
33468 (struct grub_efi_bios_device_path): New structure.
33469 (grub_efi_bios_device_path_t): New type.
33470 (struct grub_efi_disk_io): New structure.
33471 (grub_efi_disk_io_t): New type.
33472 (struct grub_efi_block_io_media): New structure.
33473 (grub_efi_block_io_media_t): New type.
33474 (struct grub_efi_block_io): New structure.
33475 (grub_efi_block_io_t): New type.
33477 * include/grub/misc.h (grub_stop): Removed.
33478 (grub_exit): New prototype.
33479 (grub_abort): Likewise.
33481 * include/grub/disk.h (enum grub_disk_dev_id): Added
33482 GRUB_DISK_DEVICE_EFIDISK_ID.
33484 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
33485 disk/efi/efidisk.c.
33486 (kernel_syms.lst): Remove the target if an error occurs.
33488 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
33490 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
33491 as it was simply too buggy.
33493 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
33495 * kern/misc.c (grub_lltoa): New function.
33496 (grub_vsprintf): Added support for the long long suffix,
33499 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
33501 * Makefile.in (LDFLAGS): Add variable.
33502 (LD): Remove variable.
33503 * configure.ac: Add -m32 to LDFLAGS.
33504 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
33505 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
33506 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
33507 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
33508 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
33510 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
33511 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
33512 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
33514 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
33516 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
33517 length for unknown glyph.
33519 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
33521 Add support for pre-loaded modules into the EFI port.
33523 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
33524 completely. Accept one more argument DIR. The caller has changed.
33526 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
33528 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
33529 (grub_efi_loaded_image_guid): New variable.
33530 (grub_efi_get_loaded_image): New function.
33531 (grub_arch_modules_addr): Likewise.
33533 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
33536 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
33537 (struct grub_efi_loaded_image): New structure.
33538 (grub_efi_loaded_image_t): New type.
33540 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
33542 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
33543 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
33544 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
33546 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
33548 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
33550 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
33552 * DISTLIST: Added include/grub/efi/console.h,
33553 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
33554 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
33556 * include/grub/efi/console.h: New file.
33557 * include/grub/efi/time.h: Likewise.
33558 * include/grub/i386/efi/kernel.h: Likewise.
33559 * kern/efi/init.c: Likewise.
33560 * kern/efi/mm.c: Likewise.
33561 * term/efi/console.c: Likewise.
33563 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
33564 (grub_stop): Removed.
33565 (grub_get_rtc): Likewise.
33566 (grub_machine_init): Simply call grub_efi_init.
33567 (grub_machine_fini): Call grub_efi_fini.
33569 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
33570 (grub_efi_output_string): Removed.
33571 (grub_efi_stall): New function.
33572 (grub_stop): Likewise.
33573 (grub_get_rtc): Likewise.
33575 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
33576 (grub_efi_stall): New prototype.
33577 (grub_efi_allocate_pages): Likewise.
33578 (grub_efi_free_pages): Likewise.
33579 (grub_efi_get_memory_map): Likewise.
33580 (grub_efi_mm_init): Likewise.
33581 (grub_efi_mm_fini): Likewise.
33582 (grub_efi_init): Likewise.
33583 (grub_efi_fini): Likewise.
33585 * include/grub/i386/efi/time.h: Do not include
33586 grub/symbol.h. Include grub/efi/time.h.
33587 (GRUB_TICKS_PER_SECOND): Removed.
33588 (grub_get_rtc): Likewise.
33590 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
33591 Added padding. The EFI spec is buggy.
33592 (GRUB_EFI_BLACK): New macro.
33593 (GRUB_EFI_BLUE): Likewise.
33594 (GRUB_EFI_GREEN): Likewise.
33595 (GRUB_EFI_CYAN): Likewise.
33596 (GRUB_EFI_RED): Likewise.
33597 (GRUB_EFI_MAGENTA): Likewise.
33598 (GRUB_EFI_BROWN): Likewise.
33599 (GRUB_EFI_LIGHTGRAY): Likewise.
33600 (GRUB_EFI_BRIGHT): Likewise.
33601 (GRUB_EFI_DARKGRAY): Likewise.
33602 (GRUB_EFI_LIGHTBLUE): Likewise.
33603 (GRUB_EFI_LIGHTGREEN): Likewise.
33604 (GRUB_EFI_LIGHTCYAN): Likewise.
33605 (GRUB_EFI_LIGHTRED): Likewise.
33606 (GRUB_EFI_LIGHTMAGENTA): Likewise.
33607 (GRUB_EFI_YELLOW): Likewise.
33608 (GRUB_EFI_WHITE): Likewise.
33609 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
33610 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
33611 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
33612 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
33613 (GRUB_EFI_BACKGROUND_RED): Likewise.
33614 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
33615 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
33616 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
33617 (GRUB_EFI_TEXT_ATTR): Likewise.
33619 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
33620 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
33621 (kernel_mod_HEADERS): Added efi/time.h.
33623 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
33625 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
33626 include/grub/efi/api.h, include/grub/efi/console_control.h,
33627 include/grub/efi/efi.h, include/grub/efi/pe32.h,
33628 include/grub/i386/efi/time.h, kern/efi/efi.c,
33629 kern/i386/efi/init.c, kern/i386/efi/startup.S,
33630 and util/i386/efi/grub-mkimage.c.
33632 * Makefile.in (RMKFILES): Added i386-efi.rmk.
33634 * genmk.rb (PModule#rule): Do not export symbols if
33635 #{prefix}_EXPORTS is set to "no".
33637 * conf/i386-efi.mk: New file.
33638 * conf/i386-efi.rmk: Likewise.
33639 * include/grub/efi/api.h: Likewise.
33640 * include/grub/efi/console_control.h: Likewise.
33641 * include/grub/efi/efi.h: Likewise.
33642 * include/grub/efi/pe32.h: Likewise.
33643 * include/grub/i386/efi/time.h: Likewise.
33644 * kern/efi/efi.c: Likewise.
33645 * kern/i386/efi/init.c: Likewise.
33646 * kern/i386/efi/startup.S: Likewise.
33647 * util/i386/efi/grub-mkimage.c: Likewise.
33649 2006-04-17 Marco Gerards <marco@gnu.org>
33651 * include/grub/script.h: Include <grub/parser.h> and
33652 "grub_script.tab.h".
33653 (struct grub_lexer_param): New struct.
33654 (struct grub_parser_param): Likewise.
33655 (grub_script_create_arglist): Pass the state in an argument.
33656 (grub_script_add_arglist): Likewise.
33657 (grub_script_create_cmdline): Likewise.
33658 (grub_script_create_cmdblock): Likewise.
33659 (grub_script_create_cmdif): Likewise.
33660 (grub_script_create_cmdmenu): Likewise.
33661 (grub_script_add_cmd): Likewise.
33662 (grub_script_arg_add): Likewise.
33663 (grub_script_lexer_ref): Likewise.
33664 (grub_script_lexer_deref): Likewise.
33665 (grub_script_lexer_record_start): Likewise.
33666 (grub_script_lexer_record_stop): Likewise.
33667 (grub_script_mem_record): Likewise.
33668 (grub_script_mem_record_stop): Likewise.
33669 (grub_script_malloc): Likewise.
33670 (grub_script_yylex): Likewise.
33671 (grub_script_yyparse): Likewise.
33672 (grub_script_yyerror): Likewise.
33673 (grub_script_yylex): Likewise.
33674 (grub_script_lexer_init): Return the state.
33676 * normal/lexer.c (grub_script_lexer_state): Removed variable.
33677 (grub_script_lexer_done): Likewise.
33678 (grub_script_lexer_getline): Likewise.
33679 (grub_script_lexer_refs): Likewise.
33680 (script): Likewise.
33681 (newscript): Likewise.
33682 (record): Likewise.
33683 (recording): Likewise.
33684 (recordpos): Likewise.
33685 (recordlen): Likewise.
33686 (grub_script_lexer_init): Return the state instead of setting
33688 (grub_script_lexer_ref): Use the newly added argument for state
33689 instead of globals.
33690 (grub_script_lexer_deref): Likewise.
33691 (grub_script_lexer_record_start): Likewise.
33692 (grub_script_lexer_record_stop): Likewise.
33693 (recordchar): Likewise.
33694 (nextchar): Likewise.
33695 (grub_script_yylex2): Likewise.
33696 (grub_script_yylex): Likewise.
33697 (grub_script_yyerror): Likewise.
33699 * normal/parser.y (func_mem): Removed variable.
33700 (menu_entry): Likewise.
33702 (%lex-param): New parser option.
33703 (%parse-param): Likewise.
33704 (script): Always return the AST.
33705 (argument): Pass the state around.
33706 (arguments): Likewise.
33707 (grubcmd): Likewise.
33708 (commands): Likewise.
33709 (function): Likewise.
33710 (menuentry): Likewise.
33711 (if_statement): Likewise.
33714 * normal/script.c (grub_script_memused): Removed variable.
33715 (grub_script_parsed): Likewise.
33716 (grub_script_malloc): Added a state argument. Use that instead of
33718 (grub_script_mem_record): Likewise.
33719 (grub_script_mem_record_stop): Likewise.
33720 (grub_script_arg_add): Likewise.
33721 (grub_script_add_arglist): Likewise.
33722 (grub_script_create_cmdline): Likewise.
33723 (grub_script_create_cmdif): Likewise.
33724 (grub_script_create_cmdmenu): Likewise.
33725 (grub_script_add_cmd): Likewise.
33726 (grub_script_parse): Setup the state before calling the parser.
33728 2006-04-16 Marco Gerards <marco@gnu.org>
33730 * normal/command.c (grub_command_init): Remove the title command.
33732 * normal/lexer.c (grub_script_yylex): Renamed from this...
33733 (grub_script_yylex2): ... to this.
33734 (grub_script_yylex): New function. Temporary
33735 introduced to filter some tokens.
33736 (grub_script_yyerror): Print a newline.
33738 * normal/main.c (read_config_file): Output information about the
33739 lines that contain errors. Wait for a key after all lines have
33740 been processed. Don't return an empty menu.
33742 * normal/parser.y (func_mem): Don't initialize.
33743 (menu_entry): Likewise.
33744 (err): New variable.
33745 (script): Don't return anything when an error was encountered.
33746 (ws, returns): Removed rules.
33747 (argument): Disabled concatenated variable support.
33748 (arguments): Remove explicit separators.
33749 (grubcmd): Likewise.
33750 (function): Likewise.
33751 (menuentry): Likewise.
33753 (commands): Likewise. Add error handling.
33755 * normal/script.c (grub_script_create_cmdline): If
33756 `grub_script_parsed' is 0, assume the parser encountered an error.
33758 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
33760 * configure.ac: Add support for EFI. Fix the typo
33761 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
33763 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
33765 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
33766 foreign multibyte characters should be shown correctly.
33768 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
33770 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
33772 (read_config_file): Made it to close file before returning.
33774 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
33776 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
33777 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
33778 video/i386/pc/vbefill.c.
33780 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
33781 video/i386/pc/vbefill.c.
33783 * include/grub/video.h (grub_video_blit_format): New enum.
33784 (grub_video_mode_info): Added new member blit_format.
33785 (grub_video_get_blit_format): New function prototype.
33787 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
33788 function prototype.
33789 (grub_video_vbe_map_rgb): Likewise.
33790 (grub_video_vbe_unmap_color): Likewise.
33792 * include/grub/i386/pc/vbeblit.h: New file.
33794 * include/grub/i386/pc/vbefill.h: New file.
33796 * video/video.c (grub_video_get_blit_format): New function.
33797 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
33798 (grub_video_vbe_map_rgb): Likewise.
33799 (grub_video_vbe_unmap_color): Likewise.
33801 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
33803 (grub_video_vbe_blit_render_target): Changed to use more optimized
33805 (grub_video_vbe_setup): Added detection for optimized settings.
33806 (grub_video_vbe_create_render_target): Likewise.
33808 * video/i386/pc/vbeblit.c: New file.
33810 * video/i386/pc/vbefill.c: New file.
33812 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
33814 * font/manager.c (grub_font_get_glyph): Removed font fixup from
33817 * util/unifont2pff.rb: ... and moved it to here. Improved argument
33818 parsing to support both hex and dec ranges. If filename was missing
33819 show usage information.
33821 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
33823 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
33824 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
33826 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
33827 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
33828 (video_mod_SOURCES): Added.
33829 (video_mod_CFLAGS): Likewise.
33830 (video_mod_LDFLAGS): Likewise.
33831 (gfxterm_mod_SOURCES): Likewise.
33832 (gfxterm_mod_CFLAGS): Likewise.
33833 (gfxterm_mod_LDFLAGS): Likewise.
33834 (videotest_mod_SOURCES): Likewise.
33835 (videotest_mod_CFLAGS): Likewise.
33836 (videotest_mod_LDFLAGS): Likewise.
33837 (vesafb_mod_SOURCES): Removed.
33838 (vesafb_mod_CFLAGS): Likewise.
33839 (vesafb_mod_LDFLAGS): Likewise.
33840 (vga_mod_SOURCES): Likewise.
33841 (vga_mod_CFLAGS): Likewise.
33842 (vga_mod_LDFLAGS): Likewise.
33844 * commands/videotest.c: New file.
33846 * font/manager.c (fill_with_default_glyph): Modified to use
33848 (grub_font_get_glyph): Likewise.
33849 (fontmanager): Renamed from this...
33850 (font_manager): ... to this.
33852 * include/grub/font.h (grub_font_glyph): Added new structure.
33853 (grub_font_get_glyph): Modified to use grub_font_glyph.
33855 * include/grub/misc.h (grub_abs): Added as inline function.
33857 * include/grub/video.h: New file.
33859 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
33860 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
33861 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
33862 (grub_vbe_get_controller_info): Renamed from this...
33863 (grub_vbe_bios_get_controller_info): ... to this.
33864 (grub_vbe_get_mode_info): Renamed from this...
33865 (grub_vbe_bios_get_mode_info): ... to this.
33866 (grub_vbe_set_mode): Renamed from this...
33867 (grub_vbe_bios_set_mode): ... to this.
33868 (grub_vbe_get_mode): Renamed from this...
33869 (grub_vbe_bios_get_mode): ... to this.
33870 (grub_vbe_set_memory_window): Renamed from this...
33871 (grub_vbe_bios_set_memory_window): ... to this.
33872 (grub_vbe_get_memory_window): Renamed from this...
33873 (grub_vbe_bios_get_memory_window): ... to this.
33874 (grub_vbe_set_scanline_length): Renamed from this...
33875 (grub_vbe_set_scanline_length): ... to this.
33876 (grub_vbe_get_scanline_length): Renamed from this...
33877 (grub_vbe_bios_get_scanline_length): ... to this.
33878 (grub_vbe_set_display_start): Renamed from this...
33879 (grub_vbe_bios_set_display_start): ... to this.
33880 (grub_vbe_get_display_start): Renamed from this...
33881 (grub_vbe_bios_get_display_start): ... to this.
33882 (grub_vbe_set_palette_data): Renamed from this...
33883 (grub_vbe_bios_set_palette_data): ... to this.
33884 (grub_vbe_set_pixel_rgb): Removed.
33885 (grub_vbe_set_pixel_index): Likewise.
33887 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
33889 (grub_vbe_bios_get_controller_info): ... to this.
33890 (grub_vbe_get_mode_info): Renamed from this...
33891 (grub_vbe_bios_get_mode_info): ... to this.
33892 (grub_vbe_set_mode): Renamed from this...
33893 (grub_vbe_bios_set_mode): ... to this.
33894 (grub_vbe_get_mode): Renamed from this...
33895 (grub_vbe_bios_get_mode): ... to this.
33896 (grub_vbe_set_memory_window): Renamed from this...
33897 (grub_vbe_bios_set_memory_window): ... to this.
33898 (grub_vbe_get_memory_window): Renamed from this...
33899 (grub_vbe_bios_get_memory_window): ... to this.
33900 (grub_vbe_set_scanline_length): Renamed from this...
33901 (grub_vbe_set_scanline_length): ... to this.
33902 (grub_vbe_get_scanline_length): Renamed from this...
33903 (grub_vbe_bios_get_scanline_length): ... to this.
33904 (grub_vbe_set_display_start): Renamed from this...
33905 (grub_vbe_bios_set_display_start): ... to this.
33906 (grub_vbe_get_display_start): Renamed from this...
33907 (grub_vbe_bios_get_display_start): ... to this.
33908 (grub_vbe_set_palette_data): Renamed from this...
33909 (grub_vbe_bios_set_palette_data): ... to this.
33910 (grub_vbe_bios_get_controller_info): Fixed problem with registers
33911 getting corrupted after calling it. Added more pushes and pops.
33912 (grub_vbe_bios_set_mode): Likewise.
33913 (grub_vbe_bios_get_mode): Likewise.
33914 (grub_vbe_bios_get_memory_window): Likewise.
33915 (grub_vbe_bios_set_scanline_length): Likewise.
33916 (grub_vbe_bios_get_scanline_length): Likewise.
33917 (grub_vbe_bios_get_display_start): Likewise.
33918 (grub_vbe_bios_set_palette_data): Likewise.
33920 * normal/cmdline.c (cl_set_pos): Refresh the screen.
33921 (cl_insert): Likewise.
33922 (cl_delete): Likewise.
33924 * term/gfxterm.c: New file.
33926 * term/i386/pc/vesafb.c: Removed file.
33928 * video/video.c: New file.
33930 * video/i386/pc/vbe.c (real2pm): Added new function.
33931 (grub_video_vbe_draw_pixel): Likewise.
33932 (grub_video_vbe_get_video_ptr): Likewise.
33933 (grub_video_vbe_get_pixel): Likewise
33934 (grub_video_vbe_init): Likewise.
33935 (grub_video_vbe_fini): Likewise.
33936 (grub_video_vbe_setup): Likewise.
33937 (grub_video_vbe_get_info): Likewise.
33938 (grub_video_vbe_set_palette): Likewise.
33939 (grub_video_vbe_get_palette): Likewise.
33940 (grub_video_vbe_set_viewport): Likewise.
33941 (grub_video_vbe_get_viewport): Likewise.
33942 (grub_video_vbe_map_color): Likewise.
33943 (grub_video_vbe_map_rgb): Likewise.
33944 (grub_video_vbe_map_rgba): Likewise.
33945 (grub_video_vbe_unmap_color): Likewise.
33946 (grub_video_vbe_fill_rect): Likewise.
33947 (grub_video_vbe_blit_glyph): Likewise.
33948 (grub_video_vbe_blit_bitmap): Likewise.
33949 (grub_video_vbe_blit_render_target): Likewise.
33950 (grub_video_vbe_scroll): Likewise.
33951 (grub_video_vbe_swap_buffers): Likewise.
33952 (grub_video_vbe_create_render_target): Likewise.
33953 (grub_video_vbe_delete_render_target): Likewise.
33954 (grub_video_vbe_set_active_render_target): Likewise.
33955 (grub_vbe_set_pixel_rgb): Remove function.
33956 (grub_vbe_set_pixel_index): Likewise.
33957 (index_color_mode): Remove static variable.
33958 (active_mode): Likewise.
33959 (framebuffer): Likewise.
33960 (bytes_per_scan_line): Likewise.
33961 (grub_video_vbe_adapter): Added new static variable.
33962 (framebuffer): Likewise.
33963 (render_target): Likewise.
33964 (initial_mode): Likewise.
33965 (mode_in_use): Likewise.
33966 (mode_list): Likewise.
33968 2006-03-10 Marco Gerards <marco@gnu.org>
33970 * configure.ac (AC_INIT): Bumped to 1.93.
33972 * DISTLIST: Added `include/grub/hfs.h'.
33974 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
33976 * boot/i386/pc/boot.S (general_error): Before looping, try INT
33977 18H, which might help the BIOS falling back to next boot media.
33979 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
33981 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
33982 Poe Chen <poe.poechen@gmail.com>.
33984 2006-01-17 Marco Gerards <marco@gnu.org>
33986 * include/grub/normal.h: Include <grub/script.h>.
33987 (grub_command_list): Removed struct.
33988 (grub_command_list_t): Removed type.
33989 (grub_menu_entry): Remove members `num' and `command_list'. Add
33990 members `commands' and `sourcecode'.
33991 * include/grub/script.h: Add inclusion guards.
33992 (grub_script_cmd_menuentry): New struct.
33993 (grub_script_execute_menuentry): New prototype.
33994 (grub_script_lexer_record_start): Likewise.
33995 (grub_script_lexer_record_stop): Likewise.
33996 * normal/execute.c (grub_script_execute_menuentry): New function.
33997 * normal/lexer.c (record, recording, recordpos, recordlen): New
33999 (grub_script_lexer_record_start): New function.
34000 (grub_script_lexer_record_stop): Likewise.
34001 (recordchar): Likewise.
34002 (nextchar): Likewise.
34003 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
34004 2048 as the buffer size. Add the tokens `menuentry' and `@'.
34005 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
34006 (current_menu): New variable.
34007 (free_menu): Mainly rewritten.
34008 (grub_normal_menu_addentry): New function.
34009 (read_config_file): Rewritten.
34010 * normal/menu.c (run_menu_entry): Mainly rewritten.
34011 * normal/menu_entry.c (make_screen): Rewritten the code to insert
34013 (run): Mainly rewritten.
34014 * normal/parser.y (menu_entry): New variable.
34015 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
34016 (menuentry): New rule.
34017 (command): Add `menuentry'.
34018 (if_statement): Allow additional returns before `fi'.
34019 * normal/script.c (grub_script_create_cmdmenu): New function.
34021 2006-01-03 Marco Gerards <marco@gnu.org>
34023 * INSTALL: GNU Bison is required.
34024 * configure.ac: Rewritten the test to detect Bison.
34025 * Makefile.in (YACC): New variable. Reported by Xun Sun
34026 <xun.sun.cn@gmail.com>.
34028 2006-01-03 Marco Gerards <marco@gnu.org>
34030 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
34031 the HFS+ filesystem to filesystem blocks.
34032 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
34033 GCC warning is silenced.
34035 2006-01-03 Marco Gerards <marco@gnu.org>
34037 * partmap/apple.c (apple_partition_map_iterate): Convert the data
34038 read from disk from big endian to host byte order.
34040 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
34042 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
34044 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
34045 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
34046 embedded HFS+ filesystem.
34047 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
34048 (grub_hfs_sblock): Move from here...
34049 * include/grub/hfs.h: To here... New file.
34050 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
34052 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
34054 (grub_hfsplus_volheader): Change type of member `magic' to
34056 (grub_hfsplus_data): Add new member `embedded_offset'.
34057 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
34059 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
34060 Calculate the offset.
34062 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34064 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
34066 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
34068 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34070 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
34071 ENV->NAME is NULL after allocating ENV->VALUE.
34073 2005-12-25 Marco Gerards <marco@gnu.org>
34075 * kern/env.c (grub_env_set): Rewritten the error handling code.
34077 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34079 * geninit.sh: Made more robust, and more portable.
34081 2005-12-25 Marco Gerards <marco@gnu.org>
34083 Add support for Apple HFS+ filesystems.
34085 * fs/hfsplus.c: New file.
34087 * DISTLIST: Added `fs/hfsplus.c'.
34089 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
34090 (hfsplus_mod_SOURCES): New variable.
34091 (hfsplus_mod_CFLAGS): Likewise.
34092 (hfsplus_mod_LDFLAGS): Likewise.
34093 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
34094 (grub_setup_SOURCES): Likewise.
34095 (grub_mkdevicemap_SOURCES): Likewise.
34096 (grub_emu_SOURCES): Likewise.
34097 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34099 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
34101 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
34103 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34105 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
34106 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
34107 include/grub/parser.h, include/grub/script.h, kern/parser.c,
34108 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
34109 normal/lexer.c, normal/parser.y, normal/script.c, and
34111 Removed kern/sparc64/cache.c.
34113 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
34114 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
34117 * configure.ac (AC_INIT): Bumped to 1.92.
34119 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
34121 * kern/err.c (grub_error_push): Added new function to support error
34123 (grub_error_pop): Likewise.
34124 (grub_error_stack_items): New local variable to support error stacks.
34125 (grub_error_stack_pos): Likewise.
34126 (grub_error_stack_assert): Likewise.
34127 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
34129 (grub_print_error): Added support to print errors from error stack.
34131 * include/grub/err.h (grub_error_push): Added function prototype.
34132 (grub_error_pop): Likewise.
34134 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
34136 * configure.ac: Accept `powerpc64' as host_cpu.
34137 (amd64): Rename to `biarch32'.
34139 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
34140 non-cacheline-aligned addresses.
34142 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
34143 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
34144 if `size' is non-zero.
34146 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
34148 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
34149 and `cd' to make sure the filename is not prefixed with a
34151 (pkgdata_MODULES): Add `gpt.mod'.
34152 (gpt_mod_SOURCES): New variable.
34153 (gpt_mod_CFLAGS): Likewise.
34154 (gpt_mod_LDFLAGS): Likewise.
34156 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
34158 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
34161 * partmap/gpt.c: New file.
34163 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
34164 GPT partition map is detected.
34166 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
34168 * commands/i386/pc/play.c: New file.
34169 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
34170 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
34173 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
34175 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
34176 ((unused))' to silence gcc warning.
34178 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
34180 * configure.ac: Correct `AC_PROG_YACC' test.
34182 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34184 * util/powerpc/ieee1275/grub-install.in: Run the mount point
34185 check before installing files.
34187 2005-11-22 Mike Small <smallm@panix.com>
34189 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
34190 number regex so multidigit numbers are recognized correctly.
34192 2005-11-22 Mike Small <smallm@panix.com>
34194 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
34195 debugging message before attempting to claim memory.
34196 (grub_rescue_cmd_initrd): Add a claim debugging message and try
34197 multiple addresses in case of failure.
34199 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34201 * term/tparm.c (get_space): Remove empty `if' statement.
34203 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
34205 * kern/parser.c (check_varstate): Rename `state' to 's'.
34207 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34209 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
34210 variable definitions to the beginning of each function. Sort stack
34212 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
34213 `buf' argument to `char *'.
34215 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34217 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
34218 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
34219 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
34220 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
34221 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
34222 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
34223 configfile.mod, search.mod, gzio.mod and test.mod.
34224 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
34225 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
34226 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
34227 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
34228 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
34229 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
34230 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
34231 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
34232 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
34233 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
34234 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
34235 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
34236 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
34237 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
34238 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
34239 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
34240 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
34241 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
34242 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
34243 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
34244 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
34245 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
34246 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
34248 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
34250 (pkgdata_MODULES): Add test.mod.
34252 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34254 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
34255 appending to variables with "+=".
34256 (PModule): Use full pathname to generate *.lst filenames.
34258 * Makefile.in: Fixed list rules moved from genmk.rb.
34259 (.DELETE_ON_ERROR): New special target.
34260 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
34262 * conf/i386-pc.rmk: Include conf/common.mk.
34263 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
34264 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
34265 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
34266 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
34267 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
34268 configfile.mod, search.mod, gzio.mod and test.mod.
34269 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
34270 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
34271 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
34272 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
34273 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
34274 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
34275 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
34276 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
34277 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
34278 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
34279 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
34280 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
34281 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
34282 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
34283 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
34284 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
34285 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
34286 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
34287 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
34288 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
34289 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
34290 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
34291 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
34293 * conf/common.rmk: ... to here. New file.
34295 * conf/common.mk: New file.
34297 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
34299 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
34300 (grub_script.tab.c): ... here.
34302 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
34303 (grub_script.tab.c): ... here.
34305 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
34306 (grub_script.tab.c): ... here.
34308 * normal/command.c (grub_command_find): Fixed a memory leak of
34309 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
34311 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34313 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
34314 "@" which marks the start of a comment on ARM.
34315 (VARIABLE): Likewise.
34317 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34319 Add support for Linux/ADFS partition tables.
34321 * partmap/acorn.c: New file.
34323 * include/grub/acorn_filecore.h: Likewise.
34325 * DISTLIST: Added `partmap/acorn.c' and
34326 `include/grub/acorn_filecore.h'.
34328 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34330 (pkgdata_MODULES): Add `acorn.mod'.
34331 (acorn_mod_SOURCES): New variable.
34332 (acorn_mod_CFLAGS): Likewise.
34334 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
34336 (pkgdata_MODULES): Add `acorn.mod'.
34337 (acorn_mod_SOURCES): New variable.
34338 (acorn_mod_CFLAGS): Likewise.
34340 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
34341 (pkgdata_MODULES): Add `acorn.mod'.
34342 (acorn_mod_SOURCES): New variable.
34343 (acorn_mod_CFLAGS): Likewise.
34344 (acorn_mod_LDFLAGS): Likewise.
34346 * include/types.h (grub_disk_addr_t): New typedef.
34348 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
34350 * geninit.sh: New file.
34352 * geninitheader.sh: Likewise.
34354 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
34355 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
34356 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
34357 * commands/configfile.c (grub_configfile_init)
34358 (grub_configfile_fini): Likewise.
34359 * commands/default.c (grub_default_init, grub_default_fini):
34361 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
34362 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
34363 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
34364 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
34366 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
34367 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
34369 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
34370 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
34372 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
34374 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
34376 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
34377 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
34378 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
34379 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
34380 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
34381 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
34382 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
34383 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
34384 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
34385 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
34386 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
34387 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
34388 * partmap/amiga.c (grub_amiga_partition_map_init)
34389 (grub_amiga_partition_map_fini): Likewise.
34390 * partmap/apple.c (grub_apple_partition_map_init)
34391 (grub_apple_partition_map_fini): Likewise.
34392 * partmap/pc.c (grub_pc_partition_map_init)
34393 (grub_pc_partition_map_fini): Likewise.
34394 * partmap/sun.c (grub_sun_partition_map_init,
34395 grub_sun_partition_map_fini): Likewise.
34396 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
34399 * util/grub-emu.c: Include <grub_modules_init.h>.
34400 (main): Don't initialize and de-initialize any modules directly,
34401 use `grub_init_all' and `grub_fini_all' instead.
34403 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
34404 `grub_vesafb_mod_init'.
34405 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
34407 * term/i386/pc/vga.c (grub_vga_init): Renamed to
34408 `grub_vga_mod_init'. Updated all users.
34409 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
34411 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
34412 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
34415 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
34416 Generate a function to initialize the module in utilities.
34417 Updated all callers.
34418 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
34419 initialize the module in utilities. Updated all callers.
34421 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
34423 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
34424 escape sequence and a literal ^L to clear the screen.
34426 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
34427 when returning from Open Firmware.
34429 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
34431 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
34432 (grub_ofconsole_height): Likewise.
34433 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
34434 manually insert a '\n'.
34435 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
34436 `grub_ofconsole_height'. Return early if these are already set.
34438 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
34440 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
34441 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
34442 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
34443 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
34444 and `normal/script.c'.
34445 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
34446 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34447 (test_mod_SOURCES): New variable.
34448 (test_mod_CFLAGS): Likewise.
34449 (test_mod_LDFLAGS): Likewise.
34450 (pkgdata_MODULES): Add `test.mod'.
34451 (grub_script.tab.c): New rule.
34452 (grub_script.tab.h): Likewise.
34454 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
34456 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34457 `commands/test.c', `normal/execute.c', `normal/lexer.c',
34458 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34459 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
34460 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34461 (test_mod_SOURCES): New variable.
34462 (test_mod_CFLAGS): Likewise.
34463 (pkgdata_MODULES): Add `test.mod'.
34464 (grub_script.tab.c): New rule.
34465 (grub_script.tab.h): Likewise.
34467 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
34469 Add initial scripting support.
34471 * commands/test.c: New file.
34472 * include/grub/script.h: Likewise.
34473 * normal/execute.c: Likewise.
34474 * normal/function.c: Likewise.
34475 * normal/lexer.c: Likewise.
34476 * normal/parser.y: Likewise.
34477 * normal/script.c: Likewise.
34479 * configure.ac: Add `AC_PROG_YACC' test.
34481 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
34482 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
34483 `normal/function.c' and `normal/script.c'.
34484 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
34485 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34486 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
34488 (pkgdata_MODULES): Add `test.mod'.
34489 (grub_script.tab.c): New rule.
34490 (grub_script.tab.h): Likewise.
34492 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
34494 * include/grub/normal.h (grub_test_init): New prototype.
34495 (grub_test_fini): Likewise.
34497 * normal/command.c: Include <grub/script.h>.
34498 (grub_command_execute): Rewritten.
34500 * util/grub-emu.c (main): Call `grub_test_init' and
34503 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
34505 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
34507 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
34508 there are no pending characters.
34510 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
34512 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
34513 `grub_strndup' to drop device arguments. Replace unnecessary
34514 `grub_strndup' with `grub_strdup'.
34516 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
34518 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
34519 `debug' environment variable has been set.
34521 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
34523 * Makefile.in (install-local): Use $(DATA).
34524 (uninstall): Likewise.
34525 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
34526 (sbin_UTILITIES): ... to here.
34527 (sbin_SCRIPTS): New variable.
34528 (grub_install_SOURCES): New variable.
34529 * util/powerpc/ieee1275/grub-install.in: New file.
34530 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
34532 (add_segments): Call `grub_util_get_path'.
34534 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
34536 From Timothy Baldwin:
34537 * commands/ls.c (grub_ls_list_files): Close FILE with
34539 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
34541 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
34543 * include/grub/parser.h: New file.
34545 * kern/parser.c: Likewise.
34547 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
34548 (grub_setup_SOURCES): Likewise.
34549 (grub_probefs_SOURCES): Likewise.
34550 (grub_emu_SOURCES): Likewise.
34551 (kernel_img_HEADERS): Add `parser.h'.
34553 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
34554 (grub_emu_SOURCES): Add `kern/parser.c'.
34555 (grubof_SOURCES): Likewise.
34557 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
34558 (grubof_SOURCES): Add `kern/parser.c'.
34560 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
34562 * kern/misc.c (grub_split_cmdline): Removed function.
34564 * kern/rescue.c: Include <grub/parser.h>.
34565 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
34566 of `grub_split_cmdline'.
34568 * normal/command.c: Include <grub/parser.h>.
34569 (grub_command_execute): Use `grub_parser_split_cmdline' instead
34570 of `grub_split_cmdline'.
34572 * normal/completion.c: Include <grub/parser.h>.
34573 (cmdline_state): New variable.
34574 (iterate_dir): End the filename with a quote depending on the
34575 command line state.
34576 (get_state): new function.
34577 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
34578 split the arguments and determine the current argument. When the
34579 argument string is not quoted, escape all spaces.
34581 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
34583 * normal/sparc64/setjmp.S: New file.
34585 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
34587 * include/grub/sparc64/libgcc.h: New file.
34588 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
34589 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
34590 normal/sparc64/setjmp.c.
34592 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
34594 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
34595 * kern/sparc64/cache.S: New file.
34596 * kern/sparc64/cache.c: Removed.
34597 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
34598 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
34600 (COMMON_LDFLAGS): Add -melf64_sparc.
34601 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
34602 (grubof_SOURCES): Use cache.S instead of cache.c.
34603 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
34604 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
34605 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
34607 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
34608 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
34609 (linux_mod_CFLAGS): Commented out.
34610 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
34611 out because module isn't built.
34612 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
34613 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
34614 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
34615 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
34616 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
34617 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
34618 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
34619 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
34620 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
34621 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
34622 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
34623 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
34624 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
34625 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
34627 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
34629 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
34630 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
34631 longer, because HFS should not be used on PC.
34633 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34635 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
34636 consistently within the loop.
34638 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
34640 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
34641 directory can not be read.
34643 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
34645 * configure.ac (AC_INIT): Increase the version number to 1.91.
34647 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
34648 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
34649 term/i386/pc/serial.c.
34651 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
34653 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
34654 file size must be permitted.
34656 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
34657 between %ah and %al.
34659 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
34661 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
34663 Call the hook with a NUL-terminated filename.
34664 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
34667 * kern/term.c (cursor_state): New variable.
34668 (grub_term_set_current): Reset the cursor state on a new
34670 (grub_setcursor): Rewritten to use CURSOR_STATE.
34671 (grub_getcursor): New function.
34673 * include/grub/term.h (grub_getcursor): New prototype.
34675 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
34676 integers on ARM. Reported by Timothy Baldwin
34677 <T.E.Baldwin99@members.leeds.ac.uk>.
34679 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
34681 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
34683 (grub_sfs_dir): Likewise.
34685 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
34687 Add support for the SFS filesystem.
34689 * fs/sfs.c: New file.
34691 * DISTLIST: Added `fs/sfs.c'.
34693 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
34694 (grub_probefs_SOURCES): Likewise.
34695 (grub_emu_SOURCES): Likewise.
34696 (pkgdata_MODULES): Add `sfs.mod'.
34697 (sfs_mod_SOURCES): New variable.
34698 (sfs_mod_CFLAGS): Likewise.
34699 (sfs_mod_LDFLAGS): Likewise.
34701 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
34702 (pkgdata_MODULES): Add `sfs.mod'.
34703 (sfs_mod_SOURCES): New variable.
34704 (sfs_mod_CFLAGS): Likewise.
34706 * util/grub-emu.c (main): Call `grub_sfs_init' and
34709 * include/grub/fs.h (grub_sfs_init): New prototype.
34710 (grub_sfs_fini): Likewise.
34712 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
34714 Add support for the AFFS filesystem.
34716 * fs/affs.c: New file.
34718 * DISTLIST: Added `fs/affs.c'.
34720 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
34721 (grub_probefs_SOURCES): Likewise.
34722 (grub_emu_SOURCES): Likewise.
34723 (pkgdata_MODULES): Add `affs.mod'.
34724 (affs_mod_SOURCES): New variable.
34725 (affs_mod_CFLAGS): Likewise.
34726 (affs_mod_LDFLAGS): Likewise.
34728 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
34729 (pkgdata_MODULES): Add `affs.mod'.
34730 (affs_mod_SOURCES): New variable.
34731 (affs_mod_CFLAGS): Likewise.
34733 * util/grub-emu.c (main): Call `grub_affs_init' and
34736 * include/grub/fs.h (grub_affs_init): New prototype.
34737 (grub_affs_fini): Likewise.
34739 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
34741 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
34743 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
34745 * configure.ac: Accept `x86_64' as host_cpu. In that case add
34748 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
34751 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
34752 (COMMON_LDFLAGS): New variable.
34753 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
34754 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
34755 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
34756 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
34757 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
34758 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
34759 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
34760 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
34761 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
34762 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
34763 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
34764 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
34765 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
34766 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
34767 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
34769 (normal_mod_ASFLAGS): Add `-m32'.
34771 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
34772 (grub_host_size_t, grub_host_ssize_t): New types.
34773 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
34774 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
34775 `GRUB_HOST_SIZEOF_VOID_P'.
34777 * include/grub/kernel.h (struct grub_module_header): Type of
34778 member offset changed to `grub_host_off_t'. Type of member size
34779 changed to `grub_host_size_t'.
34780 (struct grub_module_info): Type of member offset changed to
34781 `grub_host_off_t'. Type of member size changed to
34782 `grub_host_size_t'.
34784 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
34786 Make GRUB's kernel compliant to Multiboot Specification.
34788 * kern/i386/pc/startup.S (multiboot_header): New label.
34789 (multiboot_entry): Likewise.
34790 (multiboot_trampoline): Likewise.
34792 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
34793 Increased to 0x4A0.
34795 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
34796 put parentheses after a question mark.
34797 [!GRUB_UTIL] (my_mod): New variable.
34799 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
34801 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
34803 Adds support for the XFS filesystem. Btrees are not supported
34806 * fs/xfs.c: New file.
34808 * DISTLIST: Added `fs/xfs.c'.
34810 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
34811 (grub_probefs_SOURCES): Likewise.
34812 (grub_emu_SOURCES): Likewise.
34813 (pkgdata_MODULES): Add `xfs.mod'.
34814 (xfs_mod_SOURCES): New variable.
34815 (xfs_mod_CFLAGS): Likewise.
34817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
34818 (pkgdata_MODULES): Add `xfs.mod'.
34819 (xfs_mod_SOURCES): New variable.
34820 (xfs_mod_CFLAGS): Likewise.
34822 * util/grub-emu.c (main): Call `grub_xfs_init' and
34825 * include/grub/fs.h (grub_xfs_init): New prototype.
34826 (grub_xfs_fini): Likewise.
34829 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
34831 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
34832 color modes, allow greater than 16 colors to be configured as
34835 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
34837 * normal/completion.c (complete_arguments): Add the qualifier
34838 const into OPTIONS.
34840 From Omniflux <omniflux+lists@omniflux.com>:
34841 * include/grub/terminfo.h: New file.
34842 * include/grub/tparm.h: Likewise.
34843 * include/grub/i386/pc/serial.h: Likewise.
34844 * term/terminfo.c: Likewise.
34845 * term/tparm.c: Likewise.
34846 * term/i386/pc/serial.c: Likewise.
34847 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
34849 (terminfo_mod_SOURCES): New variable.
34850 (terminfo_mod_CFLAGS): Likewise.
34851 (serial_mod_SOURCES): Likewise.
34852 (serial_mod_CFLAGS): Likewise.
34854 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
34856 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
34857 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
34858 and kern/powerpc/ieee1275/cmain.c, respectively.
34860 * boot/powerpc/ieee1275/crt0.S: Moved to ...
34861 * kern/powerpc/ieee1275/crt0.S: ... here.
34863 * boot/powerpc/ieee1275/cmain.c: Moved to ...
34864 * kern/powerpc/ieee1275/cmain.c: ... here.
34866 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
34867 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
34868 instead of boot/powerpc/ieee1275/crt0.S and
34869 boot/powerpc/ieee1275/cmain.c, respectively.
34871 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
34872 sectors. It was not used anyway.
34874 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
34876 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
34877 `unused parameter' warning.
34879 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
34881 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
34883 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
34886 2005-08-28 Marco Gerards <metgerards@student.han.nl>
34888 * include/grub/normal.h (enum grub_completion_type): Added
34889 `GRUB_COMPLETION_TYPE_ARGUMENT'.
34891 * normal/cmdline.c (print_completion): Handle
34892 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
34893 * normal/menu_entry.c (store_completion): Likewise.
34895 * normal/completion.c (complete_arguments): New function.
34896 (grub_normal_do_completion): Call `complete_arguments' when the
34897 current words start with a dash.
34899 2005-08-27 Marco Gerards <metgerards@student.han.nl>
34901 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
34902 `gzio.mod' instead of `io.mod').
34904 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
34906 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
34907 (DISTDIRS): Added io and video.
34908 Rewrite the search routine to make an output consistently.
34910 * DISTLIST: Added conf/sparc64-ieee1275.mk,
34911 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
34912 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
34913 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
34914 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
34915 util/powerpc/ieee1275/misc.c.
34917 * include/grub/gzio.h: New file.
34918 * io/gzio.c: Likewise.
34920 * kern/file.c (grub_file_close): Call grub_device_close only if
34921 FILE->DEVICE is not NULL.
34923 * include/grub/mm.h [!NULL] (NULL): New macro.
34925 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
34927 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
34928 (pkgdata_MODULES): Added gzio.mod.
34929 (gzio_mod_SOURCES): New variable.
34930 (gzio_mod_CFLAGS): Likewise.
34932 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
34933 (pkgdata_MODULES): Added gzio.mod.
34934 (gzio_mod_SOURCES): New variable.
34935 (gzio_mod_CFLAGS): Likewise.
34937 * commands/cat.c: Include grub/gzio.h.
34938 (grub_cmd_cat): Use grub_gzfile_open instead of
34941 * commands/cmp.c: Include grub/gzio.h.
34942 (grub_cmd_cmp): Use grub_gzfile_open instead of
34945 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
34946 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
34948 (grub_rescue_cmd_module): Likewise.
34950 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
34952 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
34953 kern/sparc64/ieee1275/init.c because it contains _start.
34954 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
34956 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
34958 * configure.ac: Add support for sparc64 host with ieee1275
34960 * configure: Generated from configure.ac.
34961 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
34963 (grub_ofdisk_read): Likewise.
34964 (grub_ofdisk_open): Use %p to print pointer values, and cast the
34965 pointers as (void *) to remove a warning.
34966 (grub_ofdisk_close): Likewise.
34967 (grub_ofdisk_read): Likewise.
34968 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
34969 returns, so make it return void to remove a warning.
34970 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
34971 Corresponding prototype change.
34972 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
34973 values, and cast the pointers as (void *) to remove a warning.
34974 (grub_mm_dump): Likewise.
34975 * conf/sparc64-ieee1275.mk: New file.
34976 * conf/sparc64-ieee1275.rmk: Likewise.
34977 * include/grub/sparc64/setjmp.h: Likewise.
34978 * include/grub/sparc64/types.h: Likewise.
34979 * include/grub/sparc64/ieee1275/console.h: Likewise.
34980 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
34981 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
34982 * include/grub/sparc64/ieee1275/time.h: Likewise.
34983 * kern/sparc64/cache.c: Likewise.
34984 * kern/sparc64/dl.c: Likewise.
34985 * kern/sparc64/ieee1275/init.c: Likewise.
34986 * kern/sparc64/ieee1275/openfw.c: Likewise.
34988 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
34990 * util/console.c (grub_ncurses_putchar): If C is greater than
34991 0x7f, set C to a question mark.
34992 (grub_ncurses_getcharwidth): New function.
34993 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
34996 * normal/menu.c (print_entry): Made aware of Unicode. First,
34997 convert TITLE to UCS-4, and predict the cursor position by
35000 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
35002 * kern/misc.c (grub_utf16_to_utf8): Likewise.
35004 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
35006 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
35007 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
35010 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
35011 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
35012 grub_strcpy and grub_strlen. Take it into account that a space
35013 character is inserted as a delimiter.
35015 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
35017 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
35018 invalid magic in the error.
35020 * commands/search.c: New file.
35022 * util/grub-emu.c (main): Call grub_search_init and
35025 * kern/rescue.c (grub_rescue_print_disks): Removed.
35026 (grub_rescue_print_devices): New function.
35027 (grub_rescue_cmd_ls): Use grub_device_iterate with
35028 grub_rescue_print_devices instead of grub_disk_dev_iterate with
35029 grub_rescue_print_disks.
35031 * kern/partition.c (grub_partition_iterate): Return the result of
35032 PARTMAP->ITERATE instead of GRUB_ERRNO.
35034 * kern/device.c: Include grub/partition.h.
35035 (grub_device_iterate): New function.
35037 * include/grub/partition.h (grub_partition_iterate): Return int
35038 instead of grub_err_t.
35040 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
35042 [GRUB_UTIL] (grub_search_fini): Likewise.
35044 * include/grub/device.h (grub_device_iterate): New prototype.
35046 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
35048 (pkgdata_MODULES): Added search.mod.
35049 (search_mod_SOURCES): New variable.
35050 (search_mod_CFLAGS): Likewise.
35052 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
35053 (pkgdata_MODULES): Added search.mod.
35054 (search_mod_SOURCES): New variable.
35055 (search_mod_CFLAGS): Likewise.
35057 * commands/ls.c (grub_ls_list_disks): Renamed to ...
35058 (grub_ls_list_devices): ... this, and use grub_device_iterate.
35059 All callers changed.
35061 * DISTLIST: Added commands/search.c.
35063 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
35065 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
35067 (grub_getcharwidth): New function.
35069 * kern/misc.c (grub_utf8_to_ucs4): New function.
35071 * include/grub/term.h (struct grub_term): Added a new member
35073 (grub_getcharwidth): New prototype.
35075 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
35077 * term/i386/pc/console.c (map_char): New function. Segregated from
35078 grub_console_putchar.
35079 (grub_console_putchar): Use map_char.
35080 (grub_console_getcharwidth): New function.
35081 (grub_console_term): Specified grub_console_getcharwidth as
35084 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
35085 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
35087 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
35089 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
35090 on grub_strtoul completely.
35091 (write_char): Declare local variables in the beginning of the
35093 (grub_vesafb_getcharwidth): New function.
35094 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
35097 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
35099 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
35100 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
35101 commands/i386/pc/vbetest.c.
35103 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
35104 call grub_vbe_get_controller_info again, because the returned
35105 information is volatile.
35106 (grub_vbe_set_video_mode): Mostly rewritten.
35107 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
35108 grub_vbe_status_t correctly.
35109 (grub_vbe_get_video_mode_info): Likewise.
35110 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
35111 several if statements.
35113 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
35114 * commands/i386/pc/vbeinfo.c: ... this.
35116 * commands/i386/pc/vbe_test.c: Renamed to ...
35117 * commands/i386/pc/vbetest.c: ... this.
35119 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
35121 (grub_cmd_vbeinfo): ... this. Save video modes before
35122 iterating. Skip a video mode, if it is not available, not enough
35123 information is given or it is monochrome. Show the memory
35124 model. Leave the interpretation of MODEVAR to grub_strtoul
35126 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
35127 (GRUB_MOD_FINI): Likewise.
35129 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
35130 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
35131 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
35132 duplicated grub_env_get. Leave the interpretation of MODEVAR to
35133 grub_strtoul completely.
35134 (real2pm): Removed.
35135 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
35136 (GRUB_MOD_FINI): Likewise.
35138 * normal/misc.c: Include grub/mm.h.
35140 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
35141 vbe_list_modes with vbetest.mod and vbeinfo.mod.
35142 (vbe_list_modes_mod_SOURCES): Removed.
35143 (vbe_list_modes_mod_CFLAGS): Likewise.
35144 (vbe_test_mod_SOURCES): Likewise.
35145 (vbe_test_mod_CFLAGS): Likewise.
35146 (vbeinfo_mod_SOURCES): New variable.
35147 (vbeinfo_mod_CFLAGS): Likewise.
35148 (vbetest_mod_SOURCES): Likewise.
35149 (vbetest_mod_CFLAGS): Likewise.
35151 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
35153 * normal/misc.c: New file.
35155 * DISTLIST: Added normal/misc.c.
35157 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
35158 DISK to HOOK. Call HOOK with DISK.
35159 * partmap/apple.c (apple_partition_map_iterate): Likewise.
35160 * partmap/pc.c (pc_partition_map_iterate): Likewise.
35161 * partmap/sun.c (sun_partition_map_iterate): Likewise.
35163 * normal/menu_entry.c (struct screen): Added a new member
35164 "completion_shown".
35165 (completion_buffer): New global variable.
35166 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
35167 (store_completion): New function.
35168 (complete): Likewise.
35169 (clear_completions): Likewise.
35170 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
35171 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
35172 a tab, call complete.
35174 * normal/completion.c (disk_dev): Removed.
35175 (print_simple_completion): Likewise.
35176 (print_partition_completion): Likewise.
35177 (print_func): New global variable.
35178 (add_completion): Do not take the arguments WHAT or PRINT any
35179 longer. Added a new argument TYPE. Instead of printing directly,
35180 call PRINT_FUNC if not NULL.
35181 All callers changed.
35182 (complete_device): Use a local variable DEV instead of
35183 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
35184 (grub_normal_do_completion): Take a new argument HOOK. Do not
35185 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
35186 empty string, return NULL instead.
35187 All callers changed.
35189 * normal/cmdline.c (print_completion): New function.
35191 * kern/partition.c (grub_partition_iterate): Add an argument DISK
35193 All callers changed.
35195 * kern/disk.c (grub_print_partinfo): Removed.
35197 * include/grub/partition.h (struct grub_partition_map): Add a new
35198 argument DISK into HOOK of ITERATE.
35199 (grub_partition_iterate): Add a new argument DISK to HOOK.
35201 * include/grub/normal.h (enum grub_completion_type): New enum.
35202 (grub_completion_type_t): New type.
35203 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
35204 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
35205 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
35206 (GRUB_COMPLETION_TYPE_FILE): Likewise.
35207 (grub_normal_do_completion): Added a new argument HOOK.
35208 (grub_normal_print_device_info): New prototype.
35210 * include/grub/disk.h (grub_print_partinfo): Removed.
35212 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
35213 (normal_mod_SOURCES): Likewise.
35214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35215 (normal_mod_SOURCES): Likewise.
35217 * commands/ls.c (grub_ls_list_disks): Use
35218 grub_normal_print_device_info instead of grub_print_partinfo. Free
35220 (grub_ls_list_files): Use grub_normal_print_device_info instead of
35221 duplicating the code.
35223 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
35225 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
35226 follow GCS more precisely.
35227 * commands/i386/pc/vbe_test.c: Likewise.
35228 * include/grub/i386/pc/vbe.h: Likewise.
35229 * term/i386/pc/vesafb.c: Likewise.
35230 * video/i386/pc/vbe.c: Likewise.
35232 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
35234 * DISTLIST: Added term/i386/pc/vesafb.c
35235 DISTLIST: Added video/i386/pc/vbe.c
35236 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
35237 DISTLIST: Added commands/i386/pc/vbe_test.c.
35238 * commands/i386/pc/vbe_list_modes.c: New file.
35239 * commands/i386/pc/vbe_test.c: Likewise.
35240 * term/i386/pc/vesafb.c: Likewise.
35241 * video/i386/pc/vbe.c: Likewise.
35242 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
35243 (grub_vbe_probe) Added prototype.
35244 (grub_vbe_set_video_mode) Likewise.
35245 (grub_vbe_get_video_mode) Likewise.
35246 (grub_vbe_get_video_mode_info) Likewise.
35247 (grub_vbe_set_pixel_rgb) Likewise.
35248 (grub_vbe_set_pixel_index) Likewise.
35249 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
35250 (pkgdata_MODULES): Added vesafb.mod.
35251 (pkgdata_MODULES): Added vbe_list_modes.mod.
35252 (pkgdata_MODULES): Added vbe_test.mod.
35253 (vbe_mod_SOURCES): Added.
35254 (vbe_mod_CFLAGS): Likewise.
35255 (vesafb_mod_SOURCES): Likewise.
35256 (vesafb_mod_CFLAGS): Likewise.
35257 (vbe_list_modes_mod_SOURCES): Likewise.
35258 (vbe_list_modes_mod_CFLAGS): Likewise.
35259 (vbe_test_mod_SOURCES): Likewise.
35260 (vbe_test_mod_CFLAGS): Likewise.
35262 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
35264 * normal/command.c (grub_command_execute): If INTERACTIVE is
35265 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
35266 CMDLINE. Disable the pager if INTERACTIVE is true.
35267 All callers are changed.
35269 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
35270 before reading a config file.
35271 * normal/main.c (read_config_file): Even if a command is not
35272 found, register it if it is within an entry.
35274 * util/grub-emu.c: Include sys/types.h and unistd.h.
35275 (options): Added --hold.
35276 (struct arguments): Added a new member "hold".
35277 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
35279 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
35280 cleared by a debugger, if it is not zero.
35282 * include/grub/normal.h (grub_command_execute): Add an argument
35285 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
35287 * DISTLIST: Added include/grub/i386/pc/vbe.h.
35289 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
35291 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
35292 program with another one, because the old one didn't detect a bug
35293 in gcc-3.4. Always use regparm 2, because the new test is still
35294 not enough for gcc-4.0. Someone must investigate a simple test
35295 case which detects a bug in gcc-4.0.
35297 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
35299 * DISTLIST: Added normal/completion.c.
35301 * normal/completion.c: New file.
35303 * term/i386/pc/console.c (grub_console_getwh): New function.
35304 (grub_console_term): Assign grub_console_getwh to getwh.
35306 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
35307 function is defined in normal/completion.c as
35308 grub_normal_do_completion.
35309 (grub_cmdline_get): Use grub_normal_do_completion instead of
35312 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
35313 returns non-zero, otherwise return 0.
35314 (grub_partition_iterate): First, probe the partition map. Then,
35315 call ITERATE only for this partition map.
35317 * kern/misc.c (grub_strncmp): Rewritten.
35319 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
35320 returns non-zero. Otherwise return 0.
35322 * include/grub/partition.h (grub_partition_map_iterate): Return
35323 int instead of void.
35325 * include/grub/normal.h (grub_normal_do_completion): New prototype.
35327 * include/grub/misc.h (grub_strncmp): Change the type of N to
35330 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
35333 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
35334 unsigned explicitly before comparing it with I.
35336 * kern/main.c (grub_env_write_root): Add the attribute unused into
35339 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
35340 normal/completion.c.
35341 (normal_mod_SOURCES): Likewise.
35342 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35343 (normal_mod_SOURCES): Likewise.
35345 * normal/command.c (grub_iterate_commands): If ITERATE returns
35346 non-zero, return one immediately.
35348 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
35350 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
35351 * kern/i386/pc/startup.S: Updated Global Descriptor table's
35353 (grub_vbe_get_controller_info): New function.
35354 (grub_vbe_get_mode_info): Likewise.
35355 (grub_vbe_set_mode): Likewise.
35356 (grub_vbe_get_mode): Likewise.
35357 (grub_vbe_set_memory_window): Likewise.
35358 (grub_vbe_get_memory_window): Likewise.
35359 (grub_vbe_set_scanline_length): Likewise.
35360 (grub_vbe_get_scanline_length): Likewise.
35361 (grub_vbe_set_display_start): Likewise.
35362 (grub_vbe_get_display_start): Likewise.
35363 (grub_vbe_set_palette_data): Likewise.
35364 * include/grub/i386/pc/vbe.h: New file.
35366 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
35368 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
35369 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
35370 * DISTLIST: Likewise.
35371 * kern/ieee1275/of.c: Moved to ...
35372 * kern/ieee1275/ieee1275.c: ... here.
35374 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
35376 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
35377 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
35378 Pass 0 as `end' parameter to grub_strtoul().
35380 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
35382 * include/grub/powerpc/ieee1275/console.h: Do not include
35383 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
35385 (grub_console_cur_color): Remove i386-specific prototype.
35386 (grub_console_real_putchar): Likewise.
35387 (grub_console_checkkey): Likewise.
35388 (grub_console_getkey): Likewise.
35389 (grub_console_getxy): Likewise.
35390 (grub_console_gotoxy): Likewise.
35391 (grub_console_cls): Likewise.
35392 (grub_console_setcursor): Likewise.
35393 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
35394 Include <grub/machine/console.h>.
35395 * term/ieee1275/ofconsole.c: Likewise.
35397 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
35399 * Makefile.in (LIBLZO): New variable.
35401 * configure.ac: Check for LZO version 2.
35403 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
35404 lzo/lzo1x.h instead of lzo1x.h.
35406 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
35409 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
35410 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
35412 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
35413 copying the data from PARTITION to P.
35415 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
35417 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
35418 negative, unload the module.
35420 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
35421 map is "pc_partition_map" but not "pc".
35422 (usage): Fix the description. The options are --boot-image and
35423 --core-image but not --boot-file or --core-file.
35424 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
35425 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
35428 * util/i386/pc/grub-install.in: Do not specify --boot-file or
35429 --core-file. Specify INSTALL_DEVICE as an argument.
35431 * util/console.c: Include config.h.
35432 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
35433 [HAVE_NCURSES_H]: Include ncurses.h.
35434 [HAVE_CURSES_H]: Include curses.h.
35435 [!A_NORMAL] (A_NORMAL): Defined as zero.
35436 [!A_STANDOUT] (A_STANDOUT): Likewise.
35438 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
35440 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
35442 * configure.ac: Check for curses libraries and headers.
35444 * Makefile.in (LIBCURSES): New variable.
35446 * genmk.rb (Script::rule): Set the executable bits.
35448 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
35449 name of the PC partition map is "pc_partition_map" but not "pc".
35451 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
35453 * util/i386/pc/grub-install.in (grub_probefs): New variable.
35454 (modules): Likewise.
35455 (usage): Added descriptions for --modules and --grub-probefs.
35456 Handle --modules and --grub-probefs. Save the arguments in MODULES
35457 and GRUB_PROBEFS, respectively.
35458 Auto-detect a filesystem module against GRUBDIR. If the result is
35459 empty and modules are not specified explicitly, abort the
35460 installation. Add the result to MODULES.
35462 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
35463 disk/powerpc/ieee1275/ofdisk.c,
35464 include/grub/powerpc/ieee1275/init.h and
35465 term/powerpc/ieee1275/ofconsole.c.
35466 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
35467 term/ieee1275/ofconsole.c.
35469 * include/grub/powerpc/ieee1275/console.h: Resurrected.
35471 * COPYING: Upgraded to the latest version. Only the address of the
35472 FSF office has changed.
35474 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
35476 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
35477 kern/ieee1275.c with kern/ieee1275/of.c.
35479 * kern/ieee1275.c: Moved to ...
35480 * kern/ieee1275/of.c: ... here.
35482 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
35484 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
35487 * config.guess: Updated to the latest version from gnulib.
35488 * config.sub: Likewise.
35489 * install.sh: Likewise.
35490 * mkinstalldirs: Likewise.
35492 * include/grub/console.h: Removed. This file is arch-specific. Do
35493 not put this in include/grub.
35495 * include/grub/i386/pc/console.h: Resurrected.
35497 * util/console.c: Include grub/machine/console.h instead of
35499 * util/grub-emu.c: Likewise.
35501 2005-08-04 Marco Gerards <metgerards@student.han.nl>
35503 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
35506 From Vincent Pelletier <subdino2004@yahoo.fr>
35507 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
35508 Redefined to use grub_getwh.
35509 (grub_term): New member named getwh.
35510 (grub_getwh): New prototype.
35511 * kern/term.c (grub_getwh): New function.
35512 * term/i386/pc/console.c (grub_console_getwh): New function.
35513 (grub_console_term): New member `getwh'.
35514 * term/i386/pc/vga.c (grub_vga_getwh): New function.
35515 (grub_vga_term): New member `getwh'.
35516 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
35518 (grub_ofconsole_getw): New function.
35519 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
35520 (grub_ofconsole_term): New field named getwh and new initial
35523 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
35525 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
35526 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
35527 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
35528 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
35529 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
35530 of <grub/machine/ieee1275.h>.
35531 * commands/ieee1275/reboot.c: Likewise.
35532 * boot/powerpc/ieee1275/ieee1275.c: Move ...
35533 * kern/ieee1275.c: ... to here. All users updated. Change all
35534 parameter structs to use new type `grub_ieee1275_cell_t'.
35535 * term/powerpc/ieee1275/ofconsole.c: Move ...
35536 * term/ieee1275/ofconsole.c: ... to here. All users updated.
35537 * disk/powerpc/ieee1275/ofdisk.c: Move ...
35538 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
35539 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
35541 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
35542 Remove unused prototypes. All users updated.
35543 * include/grub/powerpc/ieee1275/console.h: Removed.
35544 * include/grub/powerpc/ieee1275/ieee1275.h: Define
35545 `grub_ieee1275_cell_t'.
35546 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
35547 Cast comparisons with -1 to the correct type.
35548 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
35549 type to match `grub_ieee1275_entry_fn'.
35551 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
35553 * DISTLIST: Added util/i386/pc/grub-probefs.c.
35555 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
35556 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
35558 (grub_probefs_SOURCES): New variable.
35560 * util/i386/pc/grub-probefs.c: New file.
35562 * util/i386/pc/grub-setup.c (main): Call
35563 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
35564 grub_hfs_init and grub_jfs_init to initialize the system. Call
35565 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
35566 grub_pc_partition_map_fini to finish the system.
35568 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
35570 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
35572 (grub_multiboot_load_elf32): Likewise.
35573 (grub_multiboot_is_elf64): Likewise.
35574 (grub_multiboot_load_elf64): Likewise.
35575 (grub_multiboot_load_elf): Likewise.
35576 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
35577 an ELF32 or ELF64 file.
35578 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
35580 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
35581 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
35582 NULL before calling FS->LABEL.
35583 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
35584 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
35585 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
35586 before calling FS->LABEL.
35588 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
35590 * util/i386/pc/grub-install.in (datadir): New variable.
35592 (pkgdatadir): New variable.
35593 (pkglibdir): Removed.
35595 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
35597 * DISTLIST: Added util/i386/pc/grub-install.in.
35599 * util/i386/pc/grub-install.in: New file.
35601 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
35602 (grub_install_SOURCES): Likewise.
35604 * genmk.rb: Added support for scripts.
35605 (Script): New class.
35606 (scripts): New variable.
35608 * Makefile.in (install-local): Install sbin_SCRIPTS by
35610 (uninstall): Remove sbin_SCRIPTS.
35612 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
35613 device, try to get a GRUB device by
35614 grub_util_biosdisk_get_grub_dev.
35617 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
35618 description for --device-map.
35620 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
35622 Change the semantics of variable hooks. They now return strings
35623 instead of error values.
35625 * util/i386/pc/grub-setup.c: Include grub/env.h.
35626 (setup): Use grub_device_set_root instead of grub_env_set.
35628 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
35629 grub_env_get instead of grub_device_set_root and
35630 grub_device_get_root, respectively.
35632 * kern/main.c (grub_env_write_root): New function.
35633 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
35634 grub_env_set instead of grub_device_set_root.
35636 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
35638 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
35639 rather than calling ENV->WRITE_HOOK afterwards.
35640 (grub_env_get): Return the result of ENV->READ_HOOK rather than
35641 passing a pointer of a pointer.
35642 (grub_register_variable_hook): Change the types of "read_hook" and
35643 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
35645 Allocate the default empty string on the heap, because this string
35646 may be freed later.
35648 * kern/device.c: Include grub/env.h.
35649 (grub_device_set_root): Removed.
35650 (grub_device_get_root): Likewise.
35651 (grub_device_open): Use grub_env_get instead of
35652 grub_device_get_root.
35654 * include/grub/env.h (grub_env_read_hook_t): New type.
35655 (grub_env_write_hook_t): Likewise.
35656 (grub_env_var): Change the types of "read_hook" and "write_hook"
35657 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
35658 (grub_register_variable_hook): Likewise.
35660 * include/grub/device.h (grub_device_set_root): Removed.
35661 (grub_device_set_root): Likewise.
35663 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
35664 make sure that DIRNAME terminates with '/', so that
35665 grub_fat_find_dir will fail if PATH is not a directory.
35667 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
35669 Use the qualifier auto for print_files and print_files_long.
35670 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
35672 Put a newline only if there is no error.
35673 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
35676 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
35678 * kern/partition.c (grub_partition_probe): Initialize PART to
35679 NULL. Otherwise, when no partition map is registered, this returns
35682 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
35684 * partmap/apple.c (apple_partition_map_iterate): Check if POS
35685 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
35688 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
35690 * commands/ls.c (grub_ls_list_disks): Print the filesystem
35691 information on each device, if it does not have partitions. Print
35692 "Device" instead of "Disk", because this function is not specific
35695 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
35696 static to ensure that it is put on the memory rather than a
35699 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
35701 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
35702 (grub_cat_init): Likewise.
35703 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
35704 (options): Likewise.
35705 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
35706 (grub_configfile_init): Likewise.
35707 * font/manager.c (GRUB_MOD_INIT): Likewise.
35708 * commands/help.c (GRUB_MOD_INIT): Likewise.
35709 (grub_help_init): Likewise.
35710 * normal/command.c (grub_command_init): Likewise.
35711 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
35712 * disk/loopback.c (grub_loop_init): Likewise.
35713 (GRUB_MOD_INIT): Likewise.
35714 * commands/ls.c (grub_ls_init): Likewise.
35715 (GRUB_MOD_INIT): Likewise.
35716 (options): Likewise.
35717 * commands/boot.c (grub_boot_init): Likewise.
35718 (GRUB_MOD_INIT): Likewise.
35719 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
35720 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
35721 (GRUB_MOD_INIT): Likewise.
35722 * commands/cmp.c (grub_cmp_init): Likewise.
35723 (GRUB_MOD_INIT): Likewise.
35725 * normal/arg.c: Use <> instead of "" to include header files.
35726 (SHORT_ARG_HELP): New macro.
35727 (SHORT_ARG_USAGE): Likewise.
35728 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
35729 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
35731 (find_short): Check if C is 'h' or 'u' explicitly.
35732 (grub_arg_show_help): Use space characters instead of tabs. Treat
35733 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
35734 are shown with --help and --usage only if they are not used for
35735 the command itself.
35736 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
35739 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
35740 const into "longarg". Change the type of "shortarg" to int.
35742 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
35744 * boot/i386/pc/boot.S (boot_drive_check): New label.
35746 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
35749 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
35750 which do not pass a boot drive correctly. Copied from GRUB Legacy.
35752 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
35754 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
35755 When turning off Gate A20, skip the check and return immediately,
35756 because this is not fatal usually.
35758 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
35760 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
35761 be 0x7C00 instead of 0x8000.
35763 * boot/i386/pc/pxeboot.S: Rewritten.
35765 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
35767 (gate_a20_check_state): Read a byte from 0x108000. Invert the
35770 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
35772 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
35773 robustness. This routine now supports a BIOS call and System
35774 Control Port A to modify the gate A20.
35776 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
35777 Increased to 0x440.
35779 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
35781 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
35782 device path and resulting ihandle.
35783 (grub_ofdisk_close): dprintf the ihandle being closed.
35784 (grub_ofdisk_read): dprintf function parameters.
35785 * kern/mm.c (grub_mm_init_region): Likewise.
35786 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
35787 (grub_linux_boot): dprintf the Linux entry point, initrd address and
35788 size, and boot arguments.
35789 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
35790 before loading into memory.
35791 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
35792 before loading into memory.
35794 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
35796 * kern/mm.c: Added much documentation.
35797 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
35798 8, set to 5 instead of 8.
35800 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
35802 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
35804 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
35805 (grub_mkdevicemap_SOURCES): New variable.
35807 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
35808 lib/device.c of GRUB Legacy.
35810 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
35812 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
35813 instead of PATH is NULL.
35815 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
35817 * commands/cmp.c (BUFFER_SIZE): New macro.
35818 (grub_cmd_cmp): Close the right file at the right time. Compare
35819 only data just read. Don't report files of different size as
35820 identical. Dynamically allocate buffers. Move variable
35821 declarations at the beginning of function.
35823 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
35825 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
35828 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
35830 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
35831 when backspace is pressed at beginning of line.
35833 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
35835 * DISTLIST: Added genfslist.sh.
35837 * normal/main.c (fs_module_list): New variable.
35838 (autoload_fs_module): New function.
35839 (read_fs_list): Likewise.
35840 (grub_normal_execute): Call read_fs_list.
35842 * kern/fs.c (grub_fs_autoload_hook): New variable.
35843 (grub_fs_probe): Added support for auto-loading.
35845 * include/grub/normal.h (struct grub_fs_module_list): New struct.
35846 (grub_fs_module_list_t): New type.
35848 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
35849 (grub_fs_autoload_hook): New prototype.
35851 * genfslist.sh: New file.
35853 * genmk.rb: Added a rule to generate a filesystem list.
35855 2005-06-30 Marco Gerards <metgerards@student.han.nl>
35857 * configure.ac: Fix the test for cross-compiling.
35859 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
35860 define GRUB_UTIL anymore.
35862 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
35863 so this function works on other systems than just big endian.
35864 (load_modules): Likewise.
35865 (add_segments): Likewise.
35867 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
35869 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
35870 contains `l' modifier, get a long from va_arg().
35872 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
35874 * kern/mm.c (grub_free): If the next free block which is being
35875 merged is the first free block, set the first block to the block
35877 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
35879 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
35881 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
35882 `grub_ieee1275_chosen'.
35884 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
35886 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
35887 (grub_ieee1275_chosen): New variable.
35888 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
35890 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
35891 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
35892 Rename first argument to `phandle' for consistency.
35893 (grub_ieee1275_get_property_length): Likewise.
35894 (grub_ieee1275_next_property): Likewise. Change type of first argument
35895 to grub_ieee1275_phandle_t.
35896 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
35897 Move export next to declaration.
35898 (grub_ieee1275_chosen): New variable.
35899 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
35900 Correct cosmetic typo.
35901 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
35902 `grub_ieee1275_chosen'.
35903 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
35904 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
35905 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
35906 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
35907 `grub_ieee1275_chosen'.
35909 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
35911 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
35913 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
35914 /chosen/bootargs as "variable=value" pairs.
35916 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
35918 * include/grub/misc.h (grub_dprintf): New macro.
35919 (grub_real_dprintf): New prototype.
35920 (grub_strword): Likewise.
35921 (grub_iswordseparator): Likewise.
35922 * kern/misc.c (grub_real_dprintf): New function.
35923 (grub_strword): Likewise.
35924 (grub_iswordseparator): Likewise.
35926 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
35928 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
35929 (roundup): Remove macro.
35930 (grub_ieee1275_flags): Make static.
35931 (grub_ieee1275_realmode): Remove.
35932 (grub_ieee1275_test_flag): New function.
35933 (grub_ieee1275_set_flag): Likewise.
35934 (find_options): Rename to `grub_ieee1275_find_options'; update
35935 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
35936 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
35937 (cmain): New prototype.
35938 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
35939 `grub_ieee1275_flags' directly.
35940 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
35941 machine/biosdisk.h.
35942 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
35943 Don't include grub/machine/init.h.
35944 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
35945 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
35947 (grub_ieee1275_realmode): Likewise.
35948 (grub_ieee1275_flag): New enum.
35949 (grub_ieee1275_test_flag): New prototype.
35950 (grub_ieee1275_set_flag): New prototype.
35951 * include/grub/powerpc/ieee1275/init.h: Remove file.
35952 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
35953 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
35954 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
35955 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
35957 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
35958 `grub_ieee1275_test_flag'.
35959 (grub_ieee1275_encode_devname): Likewise.
35961 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
35963 * include/grub/powerpc/ieee1275/ieee1275.h
35964 (grub_ieee1275_encode_devname): New prototype.
35965 (grub_ieee1275_get_filename): Likewise.
35966 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
35968 (grub_set_prefix): Likewise.
35969 (grub_machine_init): Call grub_set_prefix.
35970 * kern/powerpc/ieee1275/openfw.c: Fix typos.
35971 (grub_parse_type): New enum.
35972 (grub_ieee1275_get_devargs): New function.
35973 (grub_ieee1275_get_devname): Likewise.
35974 (grub_ieee1275_parse_args): Likewise.
35975 (grub_ieee1275_get_filename): Likewise.
35976 (grub_ieee1275_encode_devname): Likewise.
35978 2005-03-30 Marco Gerards <metgerards@student.han.nl>
35980 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
35981 `grub_loader_unset'.
35983 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
35985 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
35986 instead of grub_ieee1275_interpret.
35987 (grub_halt_init): New function.
35988 (grub_halt_fini): Likewise.
35989 (GRUB_MOD_INIT): Correct message grammar.
35990 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
35991 instead of grub_ieee1275_interpret.
35992 (grub_reboot_init): New function.
35993 (grub_reboot_fini): Likewise.
35994 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
35995 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
35996 util/i386/pc/misc.c with commands/ieee1275/halt.c,
35997 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
35998 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
36000 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
36002 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
36004 (grub_halt): Likewise.
36005 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
36006 (cmain): Remove __attribute__((unused)).
36007 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
36008 (grub_heap_len): Likewise.
36009 (grub_machine_fini): New function.
36010 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
36011 (grub_halt): Likewise.
36012 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
36014 * util/powerpc/ieee1275/misc.c: New file.
36016 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
36018 * DISTLIST: New file.
36019 * gendistlist.sh: Likewise.
36021 * Makefile.in (COMMON_DISTFILES): Removed.
36022 (BOOT_DISTFILES): Likewise.
36023 (CONF_DISTFILES): Likewise.
36024 (DISK_DISTFILES): Likewise.
36025 (FS_DISTFILES): Likewise.
36026 (INCLUDE_DISTFILES): Likewise.
36027 (KERN_DISTFILES): Likewise.
36028 (LOADER_DISTFILES): Likewise.
36029 (TERM_DISTFILES): Likewise.
36030 (UTIL_DISTFILES): Likewise.
36031 (DISTFILES): Likewise.
36032 (uninstall): Uninstall files in $(pkgdata_DATA).
36033 (DISTLIST): New target.
36034 (distdir): Use the contents of the file DISTLIST to get a list of
36037 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
36039 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
36040 descriptor. This is ported from GRUB Legacy.
36042 * gencmdlist.sh: Added an extra semicolon to make it work with
36043 old sed versions. Reported by Robert Bihlmeyer
36044 <robbe@orcus.priv.at>.
36046 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
36048 Automatic loading of commands is supported.
36050 * normal/main.c (read_command_list): New function.
36051 (grub_normal_execute): Call read_command_list.
36053 * normal/command.c (grub_register_command): Return zero or CMD.
36054 Allocate CMD->NAME from the heap.
36055 Initialize CMD->MODULE_NAME to zero.
36056 Find the same name as well. If the same command is found and it is
36057 a dummy command, overwrite members. If it is not a dummy command,
36059 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
36060 (grub_command_find): If a dummy command is found, load a module
36061 and retry to find a command only once.
36063 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
36064 make sure that each command is loaded.
36066 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
36068 (struct grub_command): Remove const from the member `name'.
36069 Add a new member `module_name'.
36070 (grub_register_command): Return grub_command_t.
36072 * commands/help.c (grub_cmd_help): Call grub_command_find to make
36073 sure that each command is loaded.
36075 * genmk.rb (PModule::rule): Specify a module name without the
36076 suffix ".mod" to gencmdlist.sh.
36078 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
36080 * gencmdlist.sh: New file.
36082 * genmk.rb (PModule::rule): Generate a rule for a command list.
36084 Generate command.lst from $(COMMANDFILES).
36086 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
36087 (DATA): Added $(pkgdata_DATA).
36088 (install-local): Install files in $(pkgdata_DATA).
36090 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
36092 * term/i386/pc/vga.c (debug_command): Removed.
36093 (GRUB_MOD_INIT): Do not register the command "debug".
36095 From Hollis Blanchard:
36096 * commands/configfile.c: New file.
36097 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
36098 commands/configfile.c.
36099 (pkgdata_MODULES): Added configfile.mod.
36100 (configfile_mod_SOURCES): New variable.
36101 (configfile_mod_CFLAGS): Likewise.
36102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
36103 commands/configfile.c.
36104 (pkgdata_MODULES): Added configfile.mod.
36105 (configfile_mod_SOURCES): New variable.
36106 (configfile_mod_CFLAGS): Likewise.
36107 * util/grub-emu.c (main): Call grub_configfile_init and
36108 grub_configfile_fini.
36109 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
36111 [GRUB_UTIL] (grub_configfile_fini): Likewise.
36113 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
36115 * normal/arg.c (grub_arg_show_help): Do not show the bug report
36118 * commands/help.c (grub_cmd_help): Do not print newlines after
36119 the last command in print_command_help.
36121 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
36123 * commands/default.h: New file.
36124 * commands/timeout.h: Likewise.
36125 * normal/context.c: Likewise.
36127 * util/misc.c: Do not include sys/times.h.
36128 Include sys/time.h and grub/machine/time.h.
36129 (grub_get_rtc): Rewritten with gettimeofday.
36131 * util/grub-emu.c (main): Call grub_default_init and
36132 grub_timeout_init before grub_normal_init, and call
36133 grub_timeout_fini and grub_default_fini after grub_main.
36135 * util/console.c (grub_ncurses_checkkey): Return the read
36138 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
36141 * normal/main.c (read_config_file): Push MENU. If this fails,
36142 print an error and wait for a user input.
36143 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
36144 If a menu is empty or an error occurs, pop MENU.
36145 (grub_normal_execute): Pop and free MENU after grub_menu_run
36148 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
36150 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
36152 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
36154 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
36156 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
36159 * include/grub/normal.h (struct grub_menu_list): New struct.
36160 (grub_menu_list_t): New type.
36161 (struct grub_context): New struct.
36162 (grub_context_t): New type.
36163 (grub_register_command): Got rid of EXPORT_FUNC.
36164 (grub_unregister_command): Likewise.
36165 (grub_context_get): New prototype.
36166 (grub_context_get_current_menu): Likewise.
36167 (grub_context_push_menu): Likewise.
36168 (grub_context_pop_menu): Likewise.
36169 [GRUB_UTIL] (grub_default_init): Likewise.
36170 [GRUB_UTIL] (grub_default_fini): Likewise.
36171 [GRUB_UTIL] (grub_timeout_init): Likewise.
36172 [GRUB_UTIL] (grub_timeout_fini): Likewise.
36174 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
36175 commands/timeout.c and normal/context.c.
36176 (pkgdata_MODULES): Added default.mod and timeout.mod.
36177 (normal_mod_SOURCES): Added normal/context.c.
36178 (default_mod_SOURCES): New variable.
36179 (default_mod_CFLAGS): Likewise.
36180 (timeout_mod_SOURCES): Likewise.
36181 (timeout_mod_CFLAGS): Likewise.
36182 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
36184 (pkgdata_MODULES): Added default.mod and timeout.mod.
36185 (normal_mod_SOURCES): Added normal/context.c.
36186 (default_mod_SOURCES): New variable.
36187 (default_mod_CFLAGS): Likewise.
36188 (timeout_mod_SOURCES): Likewise.
36189 (timeout_mod_CFLAGS): Likewise.
36191 * Makefile.in (all-local): Added $(MKFILES).
36193 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
36195 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
36196 (grub_emu_SOURCES): Likewise.
36197 (pkgdata_MODULES): Add `sun.mod'.
36198 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
36199 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36201 (pkgdata_MODULES): Add `sun.mod'.
36202 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
36203 * include/grub/partition.h (grub_sun_partition_map_init): New
36205 (grub_sun_partition_map_fini): Likewise.
36206 * partmap/sun.c: New file.
36207 * util/grub-emu.c (main): Initialize and de-initialize the sun
36208 partitionmap support.
36210 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
36212 This implements an Emacs-like menu entry editor.
36214 * normal/menu_entry.c: New file.
36216 * util/console.c (grub_ncurses_putchar): Translate some Unicode
36217 characters to ASCII.
36218 (saved_char): New variable.
36219 (grub_ncurses_checkkey): Rewritten completely.
36220 (grub_ncurses_getkey): Likewise.
36221 (grub_ncurses_init): Call raw instead of cbreak.
36223 * normal/menu.c (print_entry): Do not put a space.
36224 (init_page): Renamed to ...
36225 (grub_menu_init_page): ... this. All callers changed.
36226 (edit_menu_entry): Removed.
36227 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
36229 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
36231 * kern/misc.c (grub_vprintf): Call grub_refresh.
36233 * normal/menu.c (DISP_LEFT): Renamed to ...
36234 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
36235 * normal/menu.c (DISP_UP): Renamed to ...
36236 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
36237 * normal/menu.c (DISP_RIGHT): Renamed to ...
36238 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
36239 * normal/menu.c (DISP_DOWN): Renamed to ...
36240 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
36241 * normal/menu.c (DISP_HLINE): Renamed to ...
36242 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
36243 * normal/menu.c (DISP_VLINE): Renamed to ...
36244 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
36245 * normal/menu.c (DISP_UL): Renamed to ...
36246 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
36247 * normal/menu.c (DISP_UR): Renamed to ...
36248 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
36249 * normal/menu.c (DISP_LL): Renamed to ...
36250 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
36251 * normal/menu.c (DISP_LR): Renamed to ...
36252 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
36253 * normal/menu.c (TERM_WIDTH): Renamed to ...
36254 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
36255 * normal/menu.c (TERM_HEIGHT): Renamed to ...
36256 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
36257 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
36258 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
36259 * normal/menu.c (TERM_MARGIN): Renamed to ...
36260 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
36261 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
36262 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
36263 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
36264 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
36265 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
36266 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
36267 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
36268 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
36269 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
36270 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
36271 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
36272 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
36273 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
36274 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
36275 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
36276 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
36277 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
36278 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
36279 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
36280 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
36281 All callers changed.
36283 * include/grub/normal.h: New prototype.
36285 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
36286 normal/menu_entry.c.
36287 (normal_mod_SOURCES): Likewise.
36288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36289 (normal_mod_SOURCES): Likewise.
36291 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
36293 * include/grub/normal.h (grub_halt_init): New prototype.
36294 (grub_halt_fini): Likewise.
36295 (grub_reboot_init): Likewise.
36296 (grub_reboot_fini): Likewise.
36298 * util/grub-emu.c: Include signal.h.
36299 (main_env): New global variable.
36300 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
36302 (grub_machine_fini): New function.
36303 (main): Call grub_halt_init and grub_reboot_init before
36304 grub_main, and grub_reboot_fini and grub_halt_fini after it.
36305 Call setjmp with MAIN_ENV to go back afterwards.
36306 Call grub_machine_fini right before return.
36308 * include/grub/util/misc.h: Include setjmp.h.
36309 (main_env): New prototype.
36311 * include/grub/kernel.h (grub_machine_fini): New prototype.
36312 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
36313 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
36315 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
36316 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
36317 * term/i386/pc/console.c (grub_console_fini): Likewise.
36319 * util/i386/pc/misc.c: New file.
36321 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
36322 util/i386/pc/misc.c, commands/i386/pc/halt.c and
36323 commands/i386/pc/reboot.c.
36325 2005-02-14 Guillem Jover <guillem@hadrons.org>
36327 * include/grub/dl.h (grub_dl_check_header): New prototype.
36328 (grub_arch_dl_check_header): Change return type to grub_err_t,
36329 remove size parameter and export function. Update all callers.
36330 * kern/dl.c (grub_dl_check_header): New function.
36331 (grub_dl_load_core): Use `grub_dl_check_header' instead of
36332 `grub_arch_dl_check_header'. Check ELF type. Check if sections
36333 are inside the core.
36334 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
36335 independent ELF header checks.
36336 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
36337 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
36338 `grub_dl_check_header' instead of explicit checks. Check for the
36340 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
36341 `grub_dl_check_header' instead of explicit checks. Remove arch
36342 specific ELF header checks.
36344 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
36347 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
36349 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
36350 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
36352 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
36354 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
36355 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
36356 (part_map_iterate): Clear `grub_errno' and return 0 if
36357 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
36358 * partmap/amiga.c (amiga_partition_map_iterate): Return
36359 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
36360 * partmap/apple.c (apple_partition_map_iterate): Likewise.
36362 2005-02-01 Guillem Jover <guillem@hadrons.org>
36364 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
36367 2005-01-31 Marco Gerards <metgerards@student.han.nl>
36369 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
36371 (grub_rescue_cmd_linux): New prototype.
36372 (grub_rescue_cmd_initrd): Likewise.
36373 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
36375 (grub_linux_release_mem): Release the memory for the initrd.
36376 (grub_load_linux): Renamed from this...
36377 (grub_rescue_cmd_linux): ...To this. Changed all callers.
36378 Changed `entry' not to be static. Loop over memory regions to
36379 find another one when the default fails.
36380 (grub_rescue_cmd_initrd): New function.
36381 (grub_linux_init): Remove function.
36382 (grub_linux_fini): Likewise.
36383 (GRUB_MOD_INIT): Register `initrd'.
36384 (GRUB_MOD_FINI): Unregister `initrd'.
36385 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
36387 (grub_linux_normal_fini): Likewise.
36388 (GRUB_MOD_INIT): Register `initrd'.
36389 (GRUB_MOD_FINI): Unregister `initrd'.
36391 2005-01-31 Marco Gerards <metgerards@student.han.nl>
36393 * commands/help.c: New file.
36394 * normal/arg.c (show_help): Renamed to...
36395 (grub_arg_show_help): ... this.
36396 * commands/i386/pc/halt.c: New file.
36397 * commands/i386/pc/reboot.c: Likewise.
36398 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
36399 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
36400 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
36401 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
36403 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36405 (pkgdata_MODULES): Add `help.mod'.
36406 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
36407 * grub/i386/pc/init.h (grub_reboot): New prototype.
36408 (grub_halt): Likewise.
36409 * include/grub/normal.h (grub_arg_show_help): New prototype.
36410 (grub_help_init): Likewise.
36411 (grub_help_fini): Likewise.
36412 * util/grub-emu.c (main): Initialize and deinitialize the help
36415 * normal/cmdline.c (grub_cmdline_get): Doc fix.
36417 * normal/command.c (grub_command_init): Fixed the description of
36418 the `set' and `unset' commands.
36420 2005-01-31 Marco Gerards <metgerards@student.han.nl>
36422 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
36424 * commands/ieee1275/halt.c: New file.
36425 * commands/ieee1275/reboot.c: Likewise.
36426 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
36427 `__attribute__ ((unused))'. Some GCS related fixed.
36428 (grub_suspend_init) [GRUB_UTIL]: Function removed.
36429 (grub_suspend_fini): Likewise.
36430 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
36432 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
36433 (halt_mod_CFLAGS): New variables.
36434 * include/grub/powerpc/ieee1275/ieee1275.h
36435 (grub_ieee1275_interpret): New prototype.
36437 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
36439 * include/grub/misc.h (memmove): New prototype.
36440 (memcpy): Likewise.
36442 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
36444 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
36445 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
36447 2005-01-22 Marco Gerards <metgerards@student.han.nl>
36449 * kern/misc.c (grub_strndup): Function rewritten.
36451 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
36453 * normal/menu.c (TERM_WIDTH): Macro redefined.
36454 (TERM_TOP_BORDER_Y): Likewise.
36455 (draw_border): Replaced while-loop by a for-loop. Make the number
36456 of lines consistent with the number of lines displayed in
36457 print_entries. Added a margin below the rectangle.
36458 (print_entry): Make the entry fit in the rectangle.
36459 (print_entries): Display the scroll arrows next to the right
36462 2005-01-21 Marco Gerards <metgerards@student.han.nl>
36464 * fs/minix.c (grub_minix_find_file): Reserve more space for
36465 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
36466 `grub_strncpy' to copy `path' into it.
36468 2005-01-21 Marco Gerards <metgerards@student.han.nl>
36470 Add the loopback device, a device via which files can be accessed
36473 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
36474 (pkgdata_MODULES): Add loopback.mod.
36475 (loopback_mod_SOURCES): New variable.
36476 (loopback_mod_CFLAGS): Likewise.
36477 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36479 (pkgdata_MODULES): Add loopback.mod.
36480 (loopback_mod_SOURCES): New variable.
36481 (loopback_mod_CFLAGS): Likewise.
36482 * disk/loopback.c: new file.
36483 * include/grub/normal.h (grub_loop_init): New prototype.
36484 (grub_loop_fini): New prototype.
36485 * util/grub-emu.c (main): Initialize and de-initialize loopback
36487 * include/grub/disk.h (grub_disk_dev_id): Add
36488 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
36490 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
36492 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
36494 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
36495 (suspend_mod_SOURCES): New variable.
36496 (suspend_mod_CFLAGS): Likewise.
36497 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
36499 * commands/ieee1275/suspend.c: New file.
36501 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36503 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
36504 ((unused))' to `__attribute__ ((used))'.
36505 (GRUB_MOD_FINI): Likewise.
36506 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
36507 * genmk.rb (PModule): Assign space to common symbols when linking
36510 2005-01-20 Marco Gerards <metgerards@student.han.nl>
36512 * include/grub/mm.h (grub_mm_init_region): Change the type of the
36513 `unsigned' arguments to `grub_size_t'.
36514 (grub_malloc): Likewise.
36515 (grub_realloc): Likewise.
36516 (grub_memalign): Likewise.
36517 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
36518 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
36519 * util/misc.c (grub_malloc): Likewise.
36520 (grub_realloc): Likewise.
36521 * kern/mm.c (get_header_from_pointer): Change the casts to
36522 `unsigned' into a cast to `grub_size_t'.
36524 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
36525 point to `currnode' when `currnode' is changed.
36527 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
36528 Schottelius <nico-linux@schottelius.org>.
36530 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
36532 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
36533 (note_path): Remove variable.
36534 (GRUB_IEEE1275_NOTE_NAME): New macro.
36535 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
36536 (grub_ieee1275_note_hdr): New structure.
36537 (grub_ieee1275_note_desc): Likewise.
36538 (grub_ieee1275_note): Likewise.
36539 (load_note): Remove `dir' argument. All callers updated. Remove
36540 `note_img' and `path'. Do not load a file from `note_path'.
36541 Initialize a struct grub_ieee1275_note and write that to `out'.
36542 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
36544 2005-01-05 Marco Gerards <metgerards@student.han.nl>
36546 * util/misc.c (grub_util_read_image): Revert last change. It
36547 called `grub_util_read_at', which seeks from the beginning of the
36550 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
36552 * TODO: Add note about endianness in grub-mkimage.
36553 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
36555 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
36556 (grub_mkimage_SOURCES): New target.
36557 * include/grub/kernel.h (grub_start_addr): Remove variable.
36558 (grub_end_addr): Likewise.
36559 (grub_total_module_size): Likewise.
36560 (grub_kernel_image_size): Likewise.
36561 (GRUB_MODULE_MAGIC): New constant.
36562 (grub_module_info): New structure.
36563 (grub_arch_modules_addr): New prototype.
36564 (grub_get_end_addr): Remove prototype.
36565 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
36566 * include/grub/powerpc/ieee1275/kernel.h: New file.
36567 * include/grub/util/misc.h (grub_util_get_fp_size): New
36569 (grub_util_read_at): Likewise.
36570 (grub_util_write_image_at): Likewise.
36571 * kern/main.c (grub_get_end_addr): Remove function.
36572 (grub_load_modules): Call grub_arch_modules_addr instead of using
36573 grub_end_addr. Look for a grub_module_info struct in memory. Use
36574 the grub_module_info fields instead of calling grub_get_end_addr
36575 as loop conditions. Move grub_add_unused_region code here.
36576 (grub_add_unused_region): Remove function.
36577 * kern/i386/pc/init.c: Include grub/cache.h.
36578 (grub_machine_init): Remove call to grub_get_end_addr. Remove
36579 one call to add_mem_region.
36580 (grub_arch_modules_addr): New function.
36581 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
36582 (grub_total_module_size): Likewise.
36583 Include grub/machine/kernel.h.
36584 (grub_arch_modules_addr): New function.
36585 * util/grub-emu.c (grub_end_addr): Remove variable.
36586 (grub_total_module_size): Likewise.
36587 (grub_arch_modules_addr): New function.
36588 * util/misc.c: Include unistd.h.
36589 (grub_util_get_fp_size): New function.
36590 (grub_util_read_at): Likewise.
36591 (grub_util_write_image_at): Likewise.
36592 (grub_util_read_image): Call grub_util_read_at.
36593 (grub_util_write_image): Call grub_util_write_image_at.
36594 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
36595 additional memory in kernel_img for a struct grub_module_info.
36596 Fill in that grub_module_info.
36597 * util/powerpc/ieee1275/grub-mkimage.c: New file.
36599 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
36601 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
36603 * include/grub/powerpc/ieee1275/ieee1275.h
36604 (grub_ieee1275_milliseconds): New prototype.
36605 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
36607 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
36608 grub_ieee1275_milliseconds.
36610 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
36612 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
36614 (find_options): New function.
36615 (cmain): Call find_options.
36616 * include/grub/powerpc/ieee1275/ieee1275.h
36617 (grub_ieee1275_realmode): New extern variable.
36618 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
36619 grub_map if grub_ieee1275_realmode is false.
36621 2004-12-29 Marco Gerards <metgerards@student.han.nl>
36623 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
36624 lines are inserted and make it work like readline. Reported by
36625 Vincent Pelletier <subdino2004@yahoo.fr>.
36627 2004-12-28 Marco Gerards <metgerards@student.han.nl>
36629 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
36631 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
36632 `kern/powerpc/cache.S'.
36634 2004-12-27 Marco Gerards <metgerards@student.han.nl>
36636 * genmk.rb: Handle the `Program' class in the main loop. Written
36637 by Johan Rydberg <jrydberg@gnu.org>.
36638 (Program): New class.
36639 (programs): New variable.
36640 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
36641 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
36642 instead of "grub/kernel.h". Include <grub/machine/init.h>.
36643 (help_arch): Function removed.
36644 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
36645 `powerpc/libgcc.h' and `loader.h'.
36646 (pkgdata_PROGRAMS): New variable.
36647 (sbin_UTILITIES): Variable removed.
36648 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
36649 (grubof_SOURCES): Variable re-defined so it only includes the
36650 core functionality.
36651 (grubof_CFLAGS): Remove `-DGRUBOF'.
36652 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
36653 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
36654 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
36655 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
36656 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
36657 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
36658 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
36659 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
36660 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
36661 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
36662 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
36663 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
36664 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
36665 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
36666 (pc_mod_CFLAGS): New variables.
36667 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
36668 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
36669 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
36670 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
36672 * include/grub/i386/pc/init.h (grub_os_area_addr)
36673 (rub_os_area_size): ... to here.
36674 * include/grub/powerpc/ieee1275/ieee1275.h
36675 (grub_ieee1275_entry_fn): Export symbol.
36676 * include/grub/powerpc/ieee1275/init.h: New file.
36677 * include/grub/powerpc/libgcc.h: Likewise.
36678 * include/grub/cache.h: Likewise.
36679 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
36680 <hollis@penguinppc.org>.
36681 * kern/dl.c: Include <grub/cache.h>.
36682 (grub_dl_flush_cache): New function.
36683 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
36685 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
36686 (grub_console_init): Removed prototypes.
36687 (grub_machine_init): Don't initialize the modules anymore.
36688 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
36690 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
36691 Macro undef removed.
36692 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
36693 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
36694 relocation `R_PPC_REL32'. Return an error when the relocation is
36696 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
36697 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
36698 * util/misc.c (grub_arch_sync_caches): Likewise.
36700 2004-12-19 Marco Gerards <metgerards@student.han.nl>
36702 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
36703 `symlist.c', add `grubof_symlist.c'.
36704 (symlist.c): Variable removed.
36705 (grubof_HEADERS): Variable added.
36706 (grubof_symlist.c): New target.
36707 (kernel_syms.lst): Use `grubof_HEADERS' instead of
36708 `kernel_img_HEADERS'.
36709 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
36710 * kern/powerpc/dl.c: New file.
36711 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
36713 (grub_arch_dl_relocate_symbols): Likewise.
36714 (grub_register_exported_symbols): Likewise.
36716 2004-12-13 Marco Gerards <metgerards@student.han.nl>
36718 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
36719 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
36720 to fail instead. Reported by Vincent Pelletier
36721 <subdino2004@yahoo.fr>.
36723 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
36724 it is not allocated. Reported by Vincent Pelletier
36725 <subdino2004@yahoo.fr>.
36727 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
36728 output so the output looks better.
36730 2004-12-04 Marco Gerards <metgerards@student.han.nl>
36732 Modulize the partition map support and add support for the amiga
36735 * commands/ls.c: Include <grub/partition.h> instead of
36736 <grub/machine/partition.h>.
36737 * kern/disk.c: Likewise.
36738 * kern/rescue.c: Likewise.
36739 * loader/i386/pc/chainloader.c: Likewise.
36740 * normal/cmdline.c: Likewise.
36741 * kern/powerpc/ieee1275/init.c: Likewise.
36742 (grub_machine_init): Call `grub_pc_partition_map_init',
36743 `grub_amiga_partition_map_init' and
36744 `grub_apple_partition_map_init'.
36745 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
36746 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
36747 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
36748 `partition.h' and `pc_partition.h'.
36749 (grub_setup_SOURCES): Remove
36750 `disk/i386/pc/partition.c'. Add `kern/partition.c',
36751 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
36752 (grub_emu_SOURCES): Likewise.
36753 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
36754 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
36755 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
36756 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
36757 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
36758 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
36759 (grubof_SOURCES): Likewise.
36760 * disk/i386/pc/partition.c: File removed.
36761 * disk/powerpc/ieee1275/partition.c: Likewise.
36762 * include/grub/powerpc/ieee1275/partition.h: Likewise.
36763 * include/grub/i386/pc/partition.h: Likewise.
36764 * kern/partition.c: New file.
36765 * partmap/amiga.c: Likewise.
36766 * partmap/apple.c: Likewise.
36767 * partmap/pc.c: Likewise.
36768 * include/grub/partition.h: Likewise..
36769 * include/grub/pc_partition.h: Likewise.
36770 * util/grub-emu.c: Include <grub/partition.h> instead of
36771 <grub/machine/partition.h>.
36772 (main): Call `grub_pc_partition_map_init',
36773 `grub_amiga_partition_map_init' and
36774 `grub_apple_partition_map_init' and deinitialize afterwards.
36775 * util/i386/pc/biosdisk.c: Include `#include
36776 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
36777 `<grub/machine/partition.h>'.
36778 * util/i386/pc/grub-setup.c: Likewise.
36779 * util/i386/pc/biosdisk.c: Likewise.
36780 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
36781 partition information in case of a PC partition.
36782 * util/i386/pc/grub-setup.c: Include `#include
36783 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
36784 `<grub/machine/partition.h>'.
36785 (setup): Only access the PC specific partition information in case
36788 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
36790 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
36791 (grub_longjmp): Likewise.
36792 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
36794 * normal/powerpc/setjmp.S: New file.
36795 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
36796 `normal/powerpc/setjmp.S'.
36797 (grubof_CFLAGS): Add `-DGRUBOF'.
36798 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
36799 [GRUB_UTIL && !GRUBOF].
36801 2004-11-16 Marco Gerards <metgerards@student.han.nl>
36803 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
36804 property named `name'. Correctly handle the error returned by
36805 `grub_ieee1275_finddevice' if a device can not be opened.
36807 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
36809 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
36810 `actual' for negativity.
36811 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
36814 2004-11-01 Marco Gerards <metgerards@student.han.nl>
36816 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
36817 (PAGE_OFFSET): New macro.
36818 (CRTC_ADDR_PORT): Likewise.
36819 (CRTC_DATA_PORT): Likewise.
36820 (START_ADDR_HIGH_REGISTER): Likewise.
36821 (START_ADDR_LOW_REGISTER): Likewise.
36822 (GRAPHICS_ADDR_PORT): Likewise.
36823 (GRAPHICS_DATA_PORT): Likewise.
36824 (READ_MAP_REGISTER): Likewise.
36825 (INPUT_STATUS1_REGISTER): Likewise.
36826 (INPUT_STATUS1_VERTR_BIT): Likewise.
36827 (page): New variable.
36828 (wait_vretrace): New function.
36829 (set_read_map): Likewise.
36830 (set_start_address): Likewise.
36831 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
36833 (check_vga_mem): Take the page into account.
36834 (write_char): Likewise.
36835 (write_cursor): Likewise.
36836 (scroll_up): Likewise. Copy the page to the page that is not
36837 shown and switch between both pages.
36838 (grub_vga_putchar): Fix off by one error.
36839 (grub_vga_cls): Wait for the vertical retrace. Take the page into
36842 2004-11-01 Marco Gerards <metgerards@student.han.nl>
36844 Add support for iso9660 (including rockridge).
36846 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
36847 (iso9660_mod_SOURCES): New variable.
36848 (iso9660_mod_CFLAGS): Likewise.
36849 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
36850 * include/grub/fs.h (grub_iso9660_init): New prototype.
36851 * util/grub-emu.c (main): Call `grub_iso9660_init'.
36852 * fs/iso9660.c: New file.
36854 * include/grub/misc.h (grub_strncat): New prototype.
36855 * kern/misc.c (grub_strncat): New function.
36857 * fs/hfs.c (grub_hfs_mount): Translate the error
36858 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
36859 * fs/jfs.c (grub_jfs_mount): Likewise.
36860 * fs/ufs.c (grub_ufs_mount): Likewise.
36862 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
36864 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
36865 which initialized BAT registers.
36866 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
36867 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
36869 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
36870 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
36872 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
36873 (grub_mapclaim): Likewise.
36874 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
36875 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
36878 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
36880 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
36881 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
36882 -ffreestanding and -msoft-float.
36884 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
36886 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
36887 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
36888 set in grub_ieee1275_flags.
36890 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
36892 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
36894 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
36895 grub_console_init first.
36896 Change the memory range used for grub_ieee1275_claim and
36897 grub_mm_init_region.
36898 Print an error message if the claim fails.
36899 Include <grub/misc.h>.
36901 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
36903 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
36904 Call grub_children_iterate for device nodes of type `scsi',
36906 (grub_ofdisk_open): Remove manual device alias resolution.
36907 Fix memory leak when device cannot be opened.
36908 * include/grub/powerpc/ieee1275/ieee1275.h
36909 (grub_children_iterate): New prototype.
36910 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
36912 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
36913 Return -1 if args.size was -1.
36915 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
36917 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
36918 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
36919 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
36920 Open Firmware's memory for it; claim memory from _start to _end.
36921 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
36922 (_end): New extern.
36923 (_start): Zero BSS from __bss_start to _end.
36924 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
36926 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
36928 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
36930 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
36931 -1 if args.base was -1.
36933 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
36935 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
36936 escape sequence instead of a literal ^L. Also call
36937 grub_ofconsole_gotoxy.
36939 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
36941 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
36942 void * arguments to grub_addr_t. All callers updated. Also make
36943 the `result' argument optional.
36944 (grub_ieee1275_release): change void * arguments to grub_addr_t.
36945 All callers updated.
36947 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
36949 * commands/ls.c (grub_ls_list_files): Use the string following the
36950 initial ')', if present, as the filesystem path.
36951 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
36953 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
36955 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
36957 Make the source code of the menu interface more readable.
36959 * normal/menu.c: Include grub/mm.h.
36960 (TERM_WIDTH): New macro.
36961 (TERM_HEIGHT): Likewise.
36962 (TERM_INFO_HEIGHT): Likewise.
36963 (TERM_MARGIN): Likewise.
36964 (TERM_SCROLL_WIDTH): Likewise.
36965 (TERM_TOP_BORDER_Y): Likewise.
36966 (TERM_LEFT_BORDER_X): Likewise.
36967 (TERM_BORDER_WIDTH): Likewise.
36968 (TERM_MESSAGE_HEIGHT): Likewise.
36969 (TERM_BORDER_HEIGHT): Likewise.
36970 (TERM_NUM_ENTRIES): Likewise.
36971 (TERM_FIRST_ENTRY_Y): Likewise.
36972 (TERM_ENTRY_WIDTH): Likewise.
36973 (TERM_CURSOR_X): Likewise.
36974 (draw_border): Use macros instead of magic numbers.
36975 (print_entry): Likewise.
36976 (print_entries): Likewise.
36977 (run_menu): Likewise. Also, handle the key 'e'.
36978 (run_menu_entry): Ignore empty command lines.
36979 (print_message): Added a new argument EDIT. If EDIT is true,
36980 print a different message.
36981 (init_page): Likewise.
36982 (edit_menu_entry): New function. Not implemented yet.
36984 2004-09-17 Marco Gerards <metgerards@student.han.nl>
36986 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
36987 can be loaded from normal mode.
36989 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
36991 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
36992 (multiboot_mod_CFLAGS): New variables.
36993 * loader/i386/pc/linux_normal.c: New file.
36994 * loader/i386/pc/multiboot_normal.c: Likewise.
36996 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
36997 attribute `unused'.
36999 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
37000 `fdiro' to read the mode information from instead of `diro'.
37002 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
37003 looking up a symlink.
37005 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
37007 * normal/command.c (grub_command_execute): Don't parse the
37008 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
37009 flags of the command.
37011 * normal/menu.c (grub_menu_run): Fix typo.
37013 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
37015 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
37017 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
37018 `y + 1' instead of `y - 1'.
37020 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
37022 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
37024 From Hollis Blanchard <hollis@penguinppc.org>:
37025 * kern/misc.c (memmove): New alias for grub_memmove.
37026 (memcmp): New alias for grub_memcmp.
37027 (memset): New alias for grub_memset.
37028 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
37029 Change "int handle" to "grub_ieee1275_phandle_t handle".
37030 * include/grub/powerpc/ieee1275/ieee1275.h
37031 (grub_ieee1275_get_property): Likewise.
37033 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
37035 Added normal mode command `chainloader' as module chain.mod, which
37036 depends on normal.mod and _chain.mod.
37038 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
37039 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
37040 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
37042 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
37043 but arguments parsing moved to ...
37044 (grub_chainloader_cmd): ... here. New function.
37045 * include/grub/i386/pc/chainloader.h: New file.
37046 * loader/i386/pc/chainloader_normal.c: Likewise.
37048 2004-09-11 Marco Gerards <metgerards@student.han.nl>
37050 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
37051 (grub_mkimage_LDFLAGS): Likewise.
37052 (grub_emu_SOURCES): Likewise.
37053 (kernel_img_HEADERS): Added fshelp.h.
37054 * fs/ext2.c: Include <grub/fshelp.h>.
37055 (FILETYPE_REG): New macro.
37056 (FILETYPE_INO_REG): Likewise.
37057 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
37059 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
37061 (grub_fshelp_node): New struct.
37062 (grub_ext2_data): Added member `diropen'. Changed member `inode'
37064 (grub_ext2_get_file_block): Removed function.
37065 (grub_ext2_read_block): New function.
37066 (grub_ext2_read_file): Replaced parameter `data' by `node'.
37067 This function was written.
37068 (grub_ext2_mount): Read the root inode. Create a diropen struct.
37069 (grub_ext2_find_file): Removed function.
37070 (grub_ext2_read_symlink): New function.
37071 (grub_ext2_iterate_dir): Likewise.
37072 (grub_ext2_open): Rewritten.
37073 (grub_ext2_dir): Rewritten.
37074 * include/grub/fshelp.h: New file.
37075 * fs/fshelp.c: Likewise.
37077 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
37079 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
37080 (print_message): Add a missing newline.
37081 (run_menu): Added timeout support.
37082 (run_menu_entry): New local function.
37083 (grub_menu_run): Added support for booting.
37085 * kern/loader.c (grub_loader_is_loaded): New function.
37087 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
37088 (grub_get_rtc): Exported.
37090 * include/grub/i386/pc/time.h: Include grub/symbol.h.
37091 (grub_get_rtc): Exported.
37093 * include/grub/normal.h (struct grub_command_list): Remove
37094 constant from the member `command'.
37096 * include/grub/loader.h (grub_loader_is_loaded): Declared.
37098 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
37100 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
37102 2004-08-28 Marco Gerards <metgerards@student.han.nl>
37104 Add support for the JFS filesystem.
37106 * fs/jfs.c: New file.
37107 * include/grub/fs.h (grub_jfs_init): New prototype.
37108 (grub_jfs_fini): New prototype.
37109 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
37110 (grub_emu_SOURCES): Likewise.
37111 (pkgdata_MODULES): Add jfs.mod.
37112 (jfs_mod_SOURCES): New variable.
37113 (jfs_mod_CFLAGS): Likewise.
37114 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
37115 (grubof_SOURCES): Likewise.
37116 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
37118 * fs/fat.c (grub_fat_find_dir): Convert the filename little
37119 endian to the host endian.
37120 (grub_fat_utf16_to_utf8): Move function from there...
37121 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
37122 the endianness of the source string anymore.
37123 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
37125 2004-08-24 Marco Gerards <metgerards@student.han.nl>
37127 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
37128 (grub_boot_fini) [GRUB_UTIL]: Likewise.
37129 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
37130 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
37132 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
37133 (grub_hfs_iterate_dir): Make the function static. Add prototypes
37134 for `node_found' and `it_dir'.
37135 (grub_hfs_dir): Add prototype for `dir_hook'.
37137 * fs/minix.c (grub_minix_get_file_block): Add prototype for
37138 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
37139 and `indir32' to silence a gcc warning.
37141 * include/grub/fs.h (grub_hfs_init): New prototype.
37142 (grub_hfs_fini): Likewise.
37145 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
37147 Each disk device has its own id now. This is useful to make use
37148 of multiple disk devices.
37150 * include/grub/disk.h (grub_disk_dev_id): New enum.
37151 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
37152 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
37154 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
37155 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
37157 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
37158 GRUB_DISK_DEVICE_OFDISK_ID as an id.
37160 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
37161 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
37163 * include/grub/disk.h (struct grub_disk_dev): Added a new member
37164 "id" which is used by the cache manager.
37166 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
37169 2004-08-18 Marco Gerards <metgerards@student.han.nl>
37171 * fs/hfs.c: New file.
37172 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
37173 (grub_emu_SOURCES): Likewise.
37174 (pkgdata_MODULES): Add hfs.mod.
37175 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
37176 (grubof_SOURCES): Likewise.
37177 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
37179 * include/grub/misc.h (grub_strncasecmp): Add prototype.
37180 * kern/misc.c (grub_strncasecmp): Add function.
37182 2004-08-14 Marco Gerards <metgerards@student.han.nl>
37184 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
37187 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
37188 (grub_ext2_dir): In case the directory entry type is unknown, read
37191 2004-08-02 Peter Bruin <pjbruin@dds.nl>
37193 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
37194 grub_load_linux instead of grub_rescue_cmd_linux as second
37195 argument of grub_rescue_register_command.
37197 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
37199 2004-07-27 Marco Gerards <metgerards@student.han.nl>
37201 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
37203 * commands/boot.c: Remove the check for `GRUB_UTIL'.
37204 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
37205 `loader/powerpc/ieee1275/linux.c',
37206 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
37207 * include/grub/powerpc/ieee1275/ieee1275.h
37208 (grub_ieee1275_release): New prototype.
37209 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
37210 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
37211 normal, boot, linux and linux_normal.
37212 * loader/powerpc/ieee1275/linux.c: New file.
37213 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
37215 2004-07-12 Marco Gerards <metgerards@student.han.nl>
37217 * normal/arg.c (grub_arg_parse): Correct error handling after
37218 reallocating the argumentlist (check if `argl' is not null instead
37219 of checking if `args' is not null).
37220 * kern/mm.c (grub_realloc): Return the same pointer when using the
37221 same region, instead of returning the header address.
37223 2004-07-11 Marco Gerards <metgerards@student.han.nl>
37225 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
37226 one block instead of two when looking for the initial partition.
37227 (grub_partition_probe): Initialize the local variable `p' with 0.
37228 Use base 10 for the grub_strtoul call.
37229 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
37230 need for one local variable.
37231 (grub_strtoul): Don't add the new value to `num', instead of that
37234 2004-07-11 Marco Gerards <metgerards@student.han.nl>
37236 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
37237 (pxeboot_img_SOURCES): New variable.
37238 (pxeboot_img_ASFLAGS): Likewise.
37239 (pxeboot_img_LDFLAGS): Likewise.
37240 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
37241 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
37242 <lode_leroy@hotmail.com>.
37244 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
37246 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
37247 there was no input.
37249 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
37251 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
37252 the history buffer logic.
37254 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
37256 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
37257 (FILETYPE_INO_SYMLINK): New macros.
37258 (grub_ext2_find_file): Check if the node is a directory using the
37259 inode stat information instead of using the filetype in the
37260 dirent. Exclude the first character of an absolute symlink.
37261 (grub_ext2_dir): Mask out the filetype part of the mode member of
37264 2004-05-24 Marco Gerards <metgerards@student.han.nl>
37266 Add support for UFS version 1 and 2. Add support for the minix
37267 filesystem version 1 and 2, both the variants with 14 and 30 long
37270 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
37272 (grub_emu_SOURCES): Likewise.
37273 (pkgdata_MODULES): Add ufs.mod and minix.mod.
37274 (ufs_mod_SOURCES): New variable.
37275 (ufs_mod_CFLAGS): Likewise.
37276 (minix_mod_SOURCES): Likewise.
37277 (minix_mod_CFLAGS): Likewise.
37278 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
37280 (grubof_SOURCES): Likewise.
37281 * fs/ufs.c: New file.
37282 * fs/minix.c: New file.
37283 * include/grub/fs.h (grub_ufs_init): New prototype.
37284 (grub_ufs_fini): Likewise.
37285 (grub_minix_init): Likewise.
37286 (grub_minix_fini): Likewise.
37287 * util/grub-emu.c (main): Initialize and deinitialize UFS and
37290 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
37292 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
37293 commands/ls.c, commands/terminal.c, commands/boot.c,
37294 commands/cmp.c and commands/cat.c.
37295 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
37297 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
37300 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
37302 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
37303 and grub_, respectively. Because the conversion is trivial and
37304 mechanical, I omit the details here. Please refer to the CVS
37305 if you need more information.
37307 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
37309 * include/pupa: Renamed to ...
37310 * include/grub: ... this.
37311 * util/i386/pc/pupa-mkimage.c: Renamed to ...
37312 * util/i386/pc/grub-mkimage.c: ... this.
37313 * util/i386/pc/pupa-setup.c: Renamed to ...
37314 * util/i386/pc/grub-setup.c: ... this.
37315 * util/pupa-emu.c: Renamed to ...
37316 * util/grub-emu.c: ... this.
37318 2004-03-29 Marco Gerards <metgerards@student.han.nl>
37320 Add support for the newworld apple macintosh (PPC). This has been
37321 tested on the powerbook 2000 only. It only adds support for
37322 generic ieee1275 functions, console and disk support. This should
37323 be easy to port to other architectures with support for Open
37326 * configure.ac: Accept the powerpc as host_cpu. In the case of
37327 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
37328 specific tests are only executed while building for the i386.
37329 Inverse test for crosscompile.
37330 * genmk.rb (Utility): Allow assembler files.
37331 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
37332 * conf/powerpc-ieee1275.rmk: New file.
37333 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
37334 * disk/powerpc/ieee1275/partition.c: Likewise.
37335 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
37336 * include/pupa/powerpc/ieee1275/console.h: Likewise.
37337 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
37338 * include/pupa/powerpc/ieee1275/time.h: Likewise.
37339 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
37340 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
37341 * include/pupa/powerpc/ieee1275/loader.h
37342 * include/pupa/powerpc/setjmp.h: Likewise.
37343 * include/pupa/powerpc/types.h: Likewise.
37344 * kern/powerpc/ieee1275/init.c: Likewise.
37345 * kern/powerpc/ieee1275/openfw.c: Likewise.
37346 * term/powerpc/ieee1275/ofconsole.c: Likewise.
37348 These files were written by Johan Rydberg
37349 (jrydberg@night.trouble.net) and I only modified them slightly.
37351 * boot/powerpc/ieee1275/cmain.c: New file.
37352 * boot/powerpc/ieee1275/crt0.S: Likewise.
37353 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
37354 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
37356 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
37358 * Makefile.in: Update copyright.
37359 * genmodsrc.sh: Likewise.
37360 * gensymlist.sh: Likewise.
37361 * term/i386/pc/vga.c: Indent correctly.
37363 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
37364 bugreporting address.
37365 * util/i386/pc/pupa-setup.c (usage): Likewise,
37366 (main): Call pupa_ext2_init and pupa_ext2_fini.
37368 * fs/fat.c (log2): Renamed to ...
37369 (fat_log2): ... this.
37370 All callers changed.
37371 * kern/misc.c (memcpy): Alias to pupa_memmove.
37372 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
37374 * util/console.c (pupa_ncurses_fini): Return 0.
37376 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
37377 Move fail label here.
37378 [__GNU__]: Don't warn when using stat.
37379 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
37380 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
37381 long int. Use strtol instead of strtoul.
37383 2004-03-14 Marco Gerards <metgerards@student.han.nl>
37385 * commands/boot.c: New file.
37386 * commands/cat.c: Likewise.
37387 * commands/cmp.c: Likewise.
37388 * commands/ls.c: Likewise.
37389 * commands/terminal.c: Likewise.
37390 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
37391 (pupa_register_command): Changed interface to match the new
37393 (pupa_command_execute): Changed (almost rewritten) so it uses
37394 pupa_split_command. Added support for setting variables using the
37396 (rescue_command): Changed to work with the new argument parser.
37397 (terminal_command): Moved from here to commands/terminal.c.
37398 (set_command): New function.
37399 (unset_command): New function.
37400 (insmod_command): New function.
37401 (rmmod_command): New function.
37402 (lsmod_command): New function.
37403 (pupa_command_init): Don't initialize the command terminal
37404 anymore. Initialize the commands set, unset, insmod, rmmod and
37406 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
37407 (kernel_img_HEADERS): Add arg.h and env.h.
37408 (pupa_mkimage_LDFLAGS): Add kern/env.c.
37409 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
37410 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
37412 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
37414 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
37415 (boot_mod_SOURCES): New variable.
37416 (terminal_mod_SOURCES): Likewise.
37417 (ls_mod_SOURCES): Likewise.
37418 (cmp_mod_SOURCES): Likewise.
37419 (cat_mod_SOURCES): Likewise.
37421 * normal/arg.c: New file.
37422 * kern/env.c: Likewise.
37423 * include/pupa/arg.h: Likewise.
37424 * include/pupa/env.h: Likewise.
37425 * font/manager.c (font_command): Changed to match argument parsing
37427 (PUPA_MOD_INIT): Likewise.
37428 * hello/hello.c (pupa_cmd_hello): Likewise.
37429 (PUPA_MOD_INIT): Likewise.
37430 * include/pupa/disk.h: Include <pupa/device.h>.
37431 (pupa_print_partinfo): New prototype.
37432 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
37433 (pupa_dl_get_prefix): Likewise.
37434 * include/pupa/misc.h: Include <pupa/err.h>.
37435 (pupa_isgraph): New prototype.
37436 (pupa_isdigit): Likewise.
37437 (pupa_split_cmdline): Likewise.
37438 * include/pupa/normal.h: Include <pupa/arg.h>.
37439 (pupa_command): Changed the prototype of the member `func' to
37440 match the argument parsing interface. Added member `options'.
37441 (pupa_register_command): Updated to match function.
37442 (pupa_arg_parse): New prototype.
37443 (pupa_hello_init) [PUPA_UTIL]: New prototype.
37444 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
37445 (pupa_ls_init) [PUPA_UTIL]: Likewise.
37446 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
37447 (pupa_cat_init) [PUPA_UTIL]: Likewise.
37448 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
37449 (pupa_boot_init) [PUPA_UTIL]: Likewise.
37450 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
37451 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
37452 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
37453 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
37454 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
37455 * kern/disk.c: Include <pupa/file.h>.
37456 (pupa_print_partinfo): New function.
37457 * kern/dl.c: Include <pupa/env.h>.
37458 (pupa_dl_dir): Variable removed.
37459 (pupa_dl_load): Use the environment variable `prefix' instead of
37460 the variable pupa_dl_dir.
37461 (pupa_dl_set_prefix): Function removed.
37462 (pupa_dl_get_prefix): Likewise.
37463 * kern/i386/pc/init.c: Include <pupa/env.h>.
37464 (pupa_machine_init): Use the environment variable `prefix' instead of
37465 using pupa_dl_set_prefix to set the prefix.
37466 * kern/main.c: Include <pupa/env.h>.
37467 (pupa_set_root_dev): Use the environment variable `prefix' instead of
37468 using pupa_dl_get_prefix to get the prefix.
37469 * kern/misc.c: Include <pupa/env.h>.
37470 (pupa_isdigit): New function.
37471 (pupa_isgraph): Likewise.
37472 (pupa_ftoa): Likewise.
37473 (pupa_vsprintf): Added support for printing values of the type
37474 `double'. Make it possible to format variable output when using
37475 formatting like `%1.2%f'.
37476 (pupa_split_cmdline): New function.
37477 * kern/rescue.c: Include <pupa/env.h>.
37478 (next_word): Removed function.
37479 (pupa_rescue_cmd_prefix): Likewise.
37480 (pupa_rescue_cmd_set): New function.
37481 (pupa_rescue_cmd_unset): New function.
37482 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
37483 split the command line instead of splitting it here. Added
37484 support for setting variables using the syntax `foo=bar'. Don't
37485 initialize the prefix command anymore. Initialized the set and
37487 * normal/cmdline.c: Include <pupa/env.h>.
37488 (pupa_tab_complete): Added prototypes for print_simple_completion,
37489 print_partition_completion, add_completion, iterate_commands,
37490 iterate_dev, iterate_part and iterate_dir. Moved code to print
37491 partition information from here to kern/disk.c.
37492 (pupa_cmdline_run): Don't check if the function exists anymore.
37493 * normal/main.c: Include <pupa/env.h>.
37494 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
37495 instead of using pupa_dl_get_prefix to get the prefix.
37496 * term/i386/pc/vga.c: Include <pupa/arg.h>.
37497 (check_vga_mem): Cast pointers to `void *' to silence a gcc
37499 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
37500 (pupa_vga_setcolor): Declare unused variables with `__attribute__
37501 ((unused))' to silence a gcc warning.
37502 (pupa_vga_setcolor): Likewise.
37503 (debug_command): Changed to match argument parsing
37505 * util/pupa-emu.c: Include <pupa/env.h>.
37506 (options): Added 0's for unused fields to silence a gcc warning.
37508 (main): Use the environment variable `prefix' instead of using
37509 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
37510 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
37513 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
37514 * util/misc.c: Include <malloc.h>.
37515 (pupa_malloc): Rewritten so errors are correctly reported.
37516 (pupa_realloc): Likewise.
37517 (pupa_memalign): Likewise.
37518 (pupa_mm_init_region): Declare unused variables with
37519 `__attribute__ ((unused))' to silence a gcc warning.
37520 * normal/i386/setjmp.S: Remove tab at the end of the file to
37521 silence a gcc warning.
37522 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
37523 variables with `__attribute__ ((unused))' to silence a gcc
37525 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
37526 local variable i unsigned to silence a gcc warning.
37528 * kern/term.c: Include <pupa/misc.h>.
37529 (pupa_more_lines): New variable.
37530 (pupa_more): Likewise.
37531 (pupa_putcode): When the pager is active pause at the end of every
37533 (pupa_set_more): New function.
37534 * include/pupa/term.h (pupa_set_more): New prototype.
37537 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
37539 Now this project is GRUB 2 rather than PUPA. The location of
37540 the CVS repository was moved to GRUB's.
37542 * configure.ac: Use bug-grub as the reporting address.
37543 Use GRUB instead of PUPA.
37544 Change the version number to 1.90.
37546 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
37548 * genkernsyms.sh: Updated copyright information.
37549 * genmk.rb: Likewise.
37550 * genmodsrc.sh: Likewise.
37551 * gensymlist.sh: Likewise.
37552 * boot/i386/pc/boot.S: Likewise.
37553 * boot/i386/pc/diskboot.S: Likewise.
37554 * disk/i386/pc/biosdisk.c: Likewise.
37555 * disk/i386/pc/partition.c: Likewise.
37556 * font/manager.c: Likewise.
37557 * fs/ext2.c: Likewise.
37558 * fs/fat.c: Likewise.
37559 * include/pupa/boot.h: Likewise.
37560 * include/pupa/device.h: Likewise.
37561 * include/pupa/disk.h: Likewise.
37562 * include/pupa/dl.h: Likewise.
37563 * include/pupa/elf.h: Likewise.
37564 * include/pupa/err.h: Likewise.
37565 * include/pupa/file.h: Likewise.
37566 * include/pupa/font.h: Likewise.
37567 * include/pupa/fs.h: Likewise.
37568 * include/pupa/kernel.h: Likewise.
37569 * include/pupa/loader.h: Likewise.
37570 * include/pupa/misc.h: Likewise.
37571 * include/pupa/mm.h: Likewise.
37572 * include/pupa/net.h: Likewise.
37573 * include/pupa/normal.h: Likewise.
37574 * include/pupa/rescue.h: Likewise.
37575 * include/pupa/setjmp.h: Likewise.
37576 * include/pupa/symbol.h: Likewise.
37577 * include/pupa/term.h: Likewise.
37578 * include/pupa/types.h: Likewise.
37579 * include/pupa/i386/setjmp.h: Likewise.
37580 * include/pupa/i386/types.h: Likewise.
37581 * include/pupa/i386/pc/biosdisk.h: Likewise.
37582 * include/pupa/i386/pc/boot.h: Likewise.
37583 * include/pupa/i386/pc/console.h: Likewise.
37584 * include/pupa/i386/pc/init.h: Likewise.
37585 * include/pupa/i386/pc/kernel.h: Likewise.
37586 * include/pupa/i386/pc/linux.h: Likewise.
37587 * include/pupa/i386/pc/loader.h: Likewise.
37588 * include/pupa/i386/pc/memory.h: Likewise.
37589 * include/pupa/i386/pc/multiboot.h: Likewise.
37590 * include/pupa/i386/pc/partition.h: Likewise.
37591 * include/pupa/i386/pc/time.h: Likewise.
37592 * include/pupa/i386/pc/vga.h: Likewise.
37593 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
37594 * include/pupa/util/getroot.h: Likewise.
37595 * include/pupa/util/misc.h: Likewise.
37596 * include/pupa/util/resolve.h: Likewise.
37597 * kern/device.c: Likewise.
37598 * kern/disk.c: Likewise.
37599 * kern/dl.c: Likewise.
37600 * kern/err.c: Likewise.
37601 * kern/file.c: Likewise.
37602 * kern/fs.c: Likewise.
37603 * kern/loader.c: Likewise.
37604 * kern/main.c: Likewise.
37605 * kern/misc.c: Likewise.
37606 * kern/mm.c: Likewise.
37607 * kern/rescue.c: Likewise.
37608 * kern/term.c: Likewise.
37609 * kern/i386/dl.c: Likewise.
37610 * kern/i386/pc/init.c: Likewise.
37611 * kern/i386/pc/lzo1x.S: Likewise.
37612 * kern/i386/pc/startup.S: Likewise.
37613 * loader/i386/pc/chainloader.c: Likewise.
37614 * loader/i386/pc/linux.c: Likewise.
37615 * loader/i386/pc/multiboot.c: Likewise.
37616 * normal/cmdline.c: Likewise.
37617 * normal/command.c: Likewise.
37618 * normal/main.c: Likewise.
37619 * normal/menu.c: Likewise.
37620 * normal/i386/setjmp.S: Likewise.
37621 * term/i386/pc/console.c: Likewise.
37622 * term/i386/pc/vga.c: Likewise.
37623 * util/console.c: Likewise.
37624 * util/genmoddep.c: Likewise.
37625 * util/misc.c: Likewise.
37626 * util/pupa-emu.c: Likewise.
37627 * util/resolve.c: Likewise.
37628 * util/unifont2pff.rb: Likewise.
37629 * util/i386/pc/biosdisk.c: Likewise.
37630 * util/i386/pc/getroot.c: Likewise.
37631 * util/i386/pc/pupa-mkimage.c: Likewise.
37632 * util/i386/pc/pupa-setup.c: Likewise.
37634 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
37636 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
37637 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
37638 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
37639 reading and reset it after reading.
37640 (pupa_ext2_close): Return PUPA_ERR_NONE.
37642 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
37644 (struct linux_kernel_header): Add kernel_version and
37646 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
37647 pupa_file_read succeeds.
37648 (pupa_rescue_cmd_initrd): Implement.
37650 2003-12-03 Marco Gerards <metgerards@student.han.nl>
37652 * fs/ext2.c (pupa_ext2_label): New function.
37653 (pupa_ext2_fs): Added label.
37654 * fs/fat.c (pupa_fat_label): New function.
37655 (pupa_fat_fs): Added label.
37656 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
37658 * kern/misc.c (pupa_strndup): New function.
37659 * include/pupa/misc.h (pupa_strndup): New prototype.
37661 * include/pupa/normal.h: Include <pupa/err.h>.
37662 (pupa_set_history): New prototype.
37663 (pupa_iterate_commands): New prototype.
37664 * normal/cmdline.c: Include <pupa/machine/partition.h>,
37665 <pupa/disk.h>, <pupa/file.h>.
37666 (hist_size): New variable.
37667 (hist_lines): Likewise.
37668 (hist_end): Likewise.
37669 (hist_used): Likewise.
37670 (pupa_set_history): New function.
37671 (pupa_history_get): Likewise.
37672 (pupa_history_add): Likewise.
37673 (pupa_history_replace): Likewise.
37674 (pupa_tab_complete): Likewise.
37675 (pupa_cmdline_run): Added tab completion and history buffer. Tab
37676 completion shows partitionnames while completing partitions, this
37677 feature was suggested by Jeff Bailey.
37678 * normal/command.c (pupa_iterate_commands): New function.
37679 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
37680 (pupa_normal_init): Initialize history buffer.
37681 (PUPA_MOD_INIT): Likewise.
37682 (pupa_normal_fini): Free the history buffer.
37683 (PUPA_MOD_FINI): Likewise.
37685 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
37688 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
37689 * configure.ac [i386]: Check for regparam bug.
37690 (NESTED_FUNC_ATTR) [! i386]: Defined.
37692 2003-11-17 Marco Gerards <metgerards@student.han.nl>
37694 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
37695 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
37696 (pupa_emu_SOURCES): New variable.
37697 (pupa_emu_LDFLAGS): Likewise.
37698 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
37699 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
37700 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
37701 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
37702 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
37703 (pupa_jmp_buf): New typedef.
37704 (pupa_setjmp) [PUPA_UTIL]: New macro.
37705 (pupa_longjmp) [PUPA_UTIL]: Likewise.
37706 * include/pupa/term.h (struct pupa_term): New member `refresh'.
37707 (pupa_refresh): New prototype.
37708 * include/pupa/util/getroot.h: New file.
37709 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
37711 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
37712 (pupa_rescue_cmd_cat): Likewise.
37713 (pupa_rescue_cmd_ls): Likewise.
37714 (pupa_rescue_cmd_testload): Likewise.
37715 (pupa_rescue_cmd_lsmod): Likewise.
37716 * normal/cmdline.c (pupa_cmdline_get): Likewise.
37717 * normal/menu.c (run_menu): Likewise.
37718 * kern/term.c (pupa_cls): Likewise.
37719 (pupa_refresh): New function.
37720 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
37721 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
37722 * util/console.c: New file.
37724 * util/i386/pc/getroot.c: New file.
37725 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
37726 (pupa_putchar): New function.
37727 (pupa_refresh): Likewise.
37728 (xgetcwd): Function moved to ...
37729 (strip_extra_slashes): Likewise.
37730 (get_prefix): Likewise.
37731 * util/i386/pc/getroot.c: ... here.
37732 (find_root_device): Function moved and renamed to...
37733 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
37734 Changed all callers.
37735 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
37737 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
37738 Changed all callers.
37739 * util/misc.c (pupa_memalign): New function.
37740 (pupa_mm_init_region): Likewise.
37741 (pupa_register_exported_symbols): Likewise.
37742 (pupa_putchar): Function removed.
37743 * util/pupa-emu.c: New file.
37745 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
37747 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
37748 (_multiboot_mod_SOURCES): New variable.
37749 (_multiboot_mod_CFLAGS): Likewise.
37750 * loader/i386/pc/multiboot.c: New file.
37751 * include/pupa/i386/pc/multiboot.h: Likewise.
37752 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
37753 (pupa_multiboot_real_boot): New function.
37754 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
37755 (pupa_multiboot_real_boot): New prototype.
37756 (pupa_rescue_cmd_multiboot): Likewise
37757 (pupa_rescue_cmd_module): Likewise.
37759 * kern/loader.c (pupa_loader_set): Continue when
37760 pupa_loader_unload_func() fails.
37761 (pupa_loader_unset): New function.
37762 * include/pupa/loader.h (pupa_loader_unset): New prototype.
37764 * kern/misc.c (pupa_stpcpy): New function.
37765 * include/pupa/misc.h (pupa_stpcpy): New prototype.
37767 2003-11-12 Marco Gerards <metgerards@student.han.nl>
37769 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
37770 for available extensions.
37772 * include/pupa/i386/pc/time.h: New file.
37773 * kern/disk.c: Include <pupa/machine/time.h>.
37774 (PUPA_CACHE_TIMEOUT): New macro.
37775 (pupa_last_time): New variable.
37776 (pupa_disk_open): Flush the cache when there was a timeout.
37777 (pupa_disk_close): Reset the timer.
37778 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
37780 * util/misc.c: Include <sys/times.h>
37781 (pupa_get_rtc): New function.
37783 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
37785 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
37787 (pupa_ext2_get_file_block): Use blocks member.
37789 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
37790 first block. Return -1 instead of pupa_errno on error.
37792 2003-10-27 Marco Gerards <metgerards@student.han.nl>
37794 * README: In the pupa-mkimage example use _chain instead of chain
37795 and ext2 instead of fat.
37796 * TODO: Replace ext2fs with jfs as an example. Add an item for
37797 adding journal playback for ext2fs.
37798 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
37799 (pkgdata_MODULES): Added ext2.mod.
37800 (ext2_mod_SOURCES): New variable.
37801 (ext2_mod_CFLAGS): Likewise.
37802 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
37803 * include/pupa/misc.h (pupa_strncpy): New prototype.
37804 (pupa_strcat): Likewise.
37805 (pupa_strncmp): Likewise.
37806 * kern/misc.c (pupa_strcat): Enable function.
37807 (pupa_strncpy): New function.
37808 (pupa_strncmp): Likewise.
37809 * fs/ext2.c: New file.
37811 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
37812 when the read failed before retrying.
37813 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
37814 (_FILE_OFFSET_BITS): Likewise.
37815 * configure.ac: Added AC_SYS_LARGEFILE.
37817 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
37819 * genmk.rb (PModule#rule): Make sure to get only symbol names
37820 from the output of nm.
37821 Reported by Robert Millan <rmh.grub@aybabtu.com>.
37823 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
37825 I forgot to check in these changes for a long time. This adds
37826 incomplete support for VGA console, and this is still very
37827 buggy. Also, a lot of consideration is required for I18N,
37828 UNICODE, and VGA font issues. Therefore, assume that this is
37829 such that "better than nothing".
37831 * font/manager.c: New file.
37832 * include/pupa/font.h: Likewise.
37833 * include/pupa/i386/pc/vga.h: Likewise.
37834 * term/i386/pc/vga.c: Likewise.
37835 * util/unifont2pff.rb: Likewise.
37837 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
37838 (pkgdata_MODULES): Added vga.mod and font.mod.
37839 (vga_mod_SOURCES): New variables.
37840 (vga_mod_CFLAGS): Likewise.
37841 (font_mod_SOURCES): Likewise.
37842 (font_mod_CFLAGS): Likewise.
37844 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
37846 * include/pupa/term.h: Include pupa/err.h.
37847 (struct pupa_term): Added init and fini.
37848 Changed the argument of putchar to pupa_uint32_t.
37850 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
37851 (pupa_console_real_putchar): New prototype.
37852 (pupa_console_putchar): Removed.
37853 (pupa_console_checkkey): Exported.
37854 (pupa_console_getkey): Likewise.
37856 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
37859 * kern/term.c (pupa_term_set_current): Rewritten.
37860 (pupa_putchar): Likewise.
37861 (pupa_putcode): New function.
37863 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
37864 (pupa_console_real_putchar): ... this.
37865 (pupa_vga_set_mode): New function.
37866 (pupa_vga_get_font): Likewise.
37868 * normal/command.c: Include pupa/term.h.
37869 (terminal_command): New function.
37870 (pupa_command_init): Register the command "terminal".
37872 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
37873 (DISP_UP): Likewise.
37874 (DISP_RIGHT): Likewise.
37875 (DISP_DOWN): Likewise.
37876 (DISP_HLINE): Likewise.
37877 (DISP_VLINE): Likewise.
37878 (DISP_UL): Likewise.
37879 (DISP_UR): Likewise.
37880 (DISP_LL): Likewise.
37881 (DISP_LR): Likewise.
37883 * term/i386/pc/console.c (pupa_console_putchar): New function.
37885 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
37887 * util/resolve.c (pupa_util_resolve_dependencies): BUG
37888 FIX. Reverse the path_list.
37890 * include/pupa/normal.h: Export pupa_register_command and
37891 pupa_unregister_command.
37893 * hello/hello.c (pupa_cmd_hello): New module.
37894 * conf/i386-pc.rmk: Added hello.mod.
37896 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
37898 * kern/i386/pc/lzo1x.S: New file.
37900 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
37901 (compress_kernel): New variable.
37902 (generate_image): Heavily modified to support compressing a
37903 large part of the core image.
37905 * util/misc.c (pupa_util_read_image): Fix a file descriptor
37907 (pupa_util_load_image): New function.
37909 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
37910 (pupa_compressed_size): New variable.
37911 (codestart): Enable Gate A20 here.
37912 Decompress the compressed part of the core image.
37913 Rearrange the code to put functions and variables which are
37914 required for initialization in the non-compressed part.
37917 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
37920 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
37922 * include/pupa/i386/pc/kernel.h
37923 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
37924 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
37925 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
37926 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
37927 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
37929 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
37931 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
37932 (Utility#rule): Likewise.
37934 * configure.ac: Check if LZO is available.
37936 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
37938 * include/pupa/normal.h: New file.
37939 * include/pupa/setjmp.h: Likewise.
37940 * include/pupa/i386/setjmp.h: Likewise.
37941 * normal/cmdline.c: Likewise.
37942 * normal/command.c: Likewise.
37943 * normal/main.c: Likewise.
37944 * normal/menu.c: Likewise.
37945 * normal/i386/setjmp.S: Likewise.
37947 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
37948 (pupa_rescue_cmd_initrd): Likewise.
37950 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
37953 * kern/i386/pc/startup.S (translation_table): New variable.
37954 (translate_keycode): New function.
37955 (pupa_console_getkey): Call translate_keycode.
37957 * kern/rescue.c (attempt_normal_mode): New function.
37958 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
37959 it failed, print a message.
37961 * kern/mm.c (pupa_real_malloc): Print more information when a
37962 free magic is broken.
37963 (pupa_free): If the first free header is not free actually, set
37966 * kern/main.c (pupa_load_normal_mode): Just load the module
37968 (pupa_main): Don't print the message
37969 "Entering into rescue mode..." here.
37971 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
37973 (pupa_rescue_cmd_initrd): Likewise.
37974 (pupa_rescue_cmd_initrd): Likewise.
37976 * include/pupa/symbol.h (FUNCTION): Specify the type.
37977 (VARIABLE): Likewise.
37979 * include/pupa/err.h (pupa_err_t): Added
37980 PUPA_ERR_UNKNOWN_COMMAND.
37982 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
37983 (pupa_dl_get_prefix): Likewise.
37985 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
37986 Added _chain.mod and _linux.mod instead of chain.mod and
37988 (chain_mod_SOURCES): Renamed to ...
37989 (_chain_mod_SOURCES): ... this.
37990 (chain_mod_CFLAGS): Renamed to ...
37991 (_chain_mod_CFLAGS): ... this.
37992 (linux_mod_SOURCES): Renamed to ...
37993 (_linux_mod_SOURCES): ... this.
37994 (linux_mod_CFLAGS): Renamed to ...
37995 (_linux_mod_CFLAGS): ... this.
37996 (normal_mod_SOURCES): New variable.
37997 (normal_mod_CFLAGS): Likewise.
37998 (normal_mod_ASFLAGS): Likewise.
38000 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
38002 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
38005 * kern/dl.c (pupa_dl_ref): Refer depending modules
38007 (pupa_dl_unref): Unrefer depending modules recursively.
38008 Don't call pupa_dl_unload implicitly, because PUPA can crash if
38009 a module is unloaded before one depending on that module is
38011 (pupa_dl_unload): Unload depending modules explicitly,
38014 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
38016 * include/pupa/i386/pc/linux.h: New file.
38017 * loader/i386/pc/linux.c: Likewise.
38019 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
38021 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
38022 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
38023 of PUPA_CHAINLOADER_BOOT_SECTOR.
38025 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
38026 (pupa_linux_prot_size): New variable.
38027 (pupa_linux_tmp_addr): Likewise.
38028 (pupa_linux_real_addr): Likewise.
38029 (pupa_linux_boot_zimage): New function.
38030 (pupa_linux_boot_bzimage): Likewise.
38032 * kern/i386/pc/init.c (struct mem_region): New structure.
38033 (MAX_REGIONS): New macro.
38034 (mem_regions): New variable.
38035 (num_regions): Likewise.
38036 (pupa_os_area_addr): Likewise.
38037 (pupa_os_area_size): Likewise.
38038 (pupa_lower_mem): Likewise.
38039 (pupa_upper_mem): Likewise.
38040 (add_mem_region): New function.
38041 (compact_mem_regions): Likewise.
38042 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
38043 the size of the conventional memory and that of so-called upper
38044 memory (before the first memory hole).
38045 Instead of adding each found region to free memory, use
38046 add_mem_region and add them after removing overlaps.
38047 Also, add only 1/4 of the upper memory to free memory. The rest
38048 is used for loading OS images. Maybe this is ad hoc, but this
38049 makes it much easier to relocate OS images when booting.
38051 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
38052 (pupa_enter_rescue_mode): Don't register initrd and module.
38054 * kern/mm.c: Include pupa/dl.h.
38056 * kern/main.c: Include pupa/file.h and pupa/device.h.
38058 * kern/loader.c (pupa_loader_load_module_func): Removed.
38059 (pupa_loader_load_module): Likewise.
38061 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
38064 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
38065 (pupa_linux_tmp_addr): Likewise.
38066 (pupa_linux_real_addr): Likewise.
38067 (pupa_linux_boot_zimage): Likewise.
38068 (pupa_linux_boot_bzimage): Likewise.
38070 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
38071 (pupa_upper_mem): Likewise.
38072 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
38073 module is too dangerous.
38075 * include/pupa/loader.h (pupa_os_area_addr): Declared.
38076 (pupa_os_area_size): Likewise.
38077 (pupa_loader_set): Remove the first argument. Loader doesn't
38078 manage modules or initrd any longer.
38079 (pupa_loader_load_module): Removed.
38081 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
38082 (linux_mod_SOURCES): New variable.
38083 (linux_mod_CFLAGS): Likewise.
38085 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
38087 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
38088 the length of a blocklist correctly.
38090 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
38091 Use ioctl only if the OS file is a block device.
38092 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
38093 not very useful for normal files.
38095 * kern/main.c (pupa_set_root_dev): New function.
38096 (pupa_load_normal_mode): Likewise.
38097 (pupa_main): Call those above.
38099 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
38102 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
38104 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38106 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
38107 (setup): Configure the installed partition information and the
38110 * loader/i386/pc/chainloader.c (my_mod): New variable.
38111 (pupa_chainloader_unload): New function.
38112 (pupa_rescue_cmd_chainloader): Refer itself.
38113 (PUPA_MOD_INIT): Save its own module in MY_MOD.
38115 * kern/i386/pc/startup.S (install_partition): Removed.
38116 (version_string): Likewise.
38117 (config_file): Likewise.
38118 (pupa_install_dos_part): New variable.
38119 (pupa_install_bsd_part): Likewise.
38120 (pupa_prefix): Likewise.
38121 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
38123 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
38125 (make_install_device): New function.
38126 (pupa_machine_init): Set the dl prefix.
38128 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
38129 (buf): Renamed to ...
38130 (linebuf): ... this.
38131 (pupa_rescue_cmd_prefix): New function.
38132 (pupa_rescue_cmd_insmod): Likewise.
38133 (pupa_rescue_cmd_rmmod): Likewise.
38134 (pupa_rescue_cmd_lsmod): Likewise.
38135 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
38138 * kern/mm.c (pupa_memalign): If failed even after invalidating
38139 disk caches, unload unneeded modules and retry.
38141 * kern/misc.c (pupa_memmove): New function.
38142 (pupa_memcpy): Removed.
38143 (pupa_strcpy): New function.
38144 (pupa_itoa): Made static.
38146 * kern/dl.c (pupa_dl_iterate): New function.
38147 (pupa_dl_ref): Likewise.
38148 (pupa_dl_unref): Likewise.
38149 (pupa_dl_unload): Return if succeeded or not.
38150 (pupa_dl_unload_unneeded): New function.
38151 (pupa_dl_unload_all): Likewise.
38152 (pupa_dl_init): Renamed to ...
38153 (pupa_dl_set_prefix): ... this.
38154 (pupa_dl_get_prefix): New function.
38156 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
38157 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
38158 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
38159 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
38160 (pupa_install_dos_part): Declared.
38161 (pupa_install_bsd_part): Likewise.
38162 (pupa_prefix): Likewise.
38163 (pupa_boot_drive): Likewise.
38165 * include/pupa/types.h: Fix a typo.
38167 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
38169 (pupa_memmove): Declared.
38170 (pupa_strcpy): Likewise.
38172 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
38173 pupa_mod_init takes one argument, its own module.
38174 (pupa_dl_unload_unneeded): Declared.
38175 (pupa_dl_unload_all): Likewise.
38176 (pupa_dl_ref): Likewise.
38177 (pupa_dl_unref): Likewise.
38178 (pupa_dl_iterate): Likewise.
38179 (pupa_dl_init): Renamed to ...
38180 (pupa_dl_set_prefix): ... this.
38181 (pupa_dl_get_prefix): Declared.
38183 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
38184 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
38186 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
38187 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
38189 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
38190 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
38192 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
38194 * util/i386/pc/pupa-setup.c (setup): Define the internal
38195 function find_first_partition_start at the top level, because GCC
38196 3.0.x cannot compile internal functions in deeper scopes
38198 (find_root_device): Use lstat instead of stat.
38199 Don't follow symbolic links.
38200 Fix the path-constructing code.
38202 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
38203 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
38204 by a BLKGETSIZE ioctl first, because block devices don't fill
38205 the member st_mode of the structure stat on Linux.
38206 [__linux__] (linux_find_partition): Use a temporary buffer
38207 REAL_DEV for the working space. Copy it to DEV before returning.
38208 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
38209 buffer cache consistent.
38210 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
38211 strncmp. The previous value was merely wrong.
38212 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
38214 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
38215 FAT size is 12. The previous value was merely wrong.
38217 * kern/main.c (pupa_main): Don't split the starting message from
38220 * kern/term.c (pupa_putchar): Put CR after LF instead of before
38221 LF, because BIOS goes crazy about character attributes in this
38224 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
38226 * include/i386/pc/util/biosdisk.h: New file.
38227 * util/i386/pc/biosdisk.c: Likewise.
38228 * util/i386/pc/pupa-setup.c: Likewise.
38230 * Makefile.in (INCLUDE_DISTFILES): Added
38231 include/pupa/i386/pc/util/biosdisk.h.
38232 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
38233 directory util/i386/pc.
38234 (install-local): Added a rule for sbin_UTILITIES.
38235 (uninstall): Likewise.
38237 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
38239 * util/misc.c (xrealloc): New function.
38240 (pupa_malloc): Likewise.
38241 (pupa_free): Likewise.
38242 (pupa_realloc): Likewise.
38243 (pupa_stop): Likewise.
38244 (pupa_putchar): Likewise.
38246 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
38248 * include/pupa/util/misc.h (xrealloc): Declared.
38250 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
38252 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
38253 (PUPA_BOOT_MACHINE_BPB_END): ... this.
38255 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
38256 [PUPA_UTIL] (pupa_fat_fini): Likewise.
38258 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
38259 way should be implemented.
38260 [PUPA_UTIL] (pupa_fat_fini): Likewise.
38262 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
38263 the size of NAME for safety.
38264 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
38267 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
38268 (pupa_setup_SOURCES): Likewise.
38270 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
38272 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
38274 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
38275 bunch of pushl's from pusha, because this destroys the return
38278 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
38280 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
38281 This means that any missing prototypes could be fatal. Also, you
38282 must take care when writing assembly code. See the comments at
38283 the beginning of startup.S, for more details.
38285 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
38286 compilation mechanism.
38287 (pupa_chainloader_real_boot): Likewise.
38288 (pupa_biosdisk_rw_int13_extensions): Likewise.
38289 (pupa_biosdisk_rw_standard): Likewise.
38290 (pupa_biosdisk_check_int13_extensions): Likewise.
38291 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
38292 (pupa_biosdisk_get_diskinfo_standard): Likewise.
38293 (pupa_get_memsize): Likewise.
38294 (pupa_get_mmap_entry): Likewise.
38295 (pupa_console_putchar): Likewise.
38296 (pupa_console_setcursor): Likewise.
38297 (pupa_getrtsecs): Use pushl instead of push.
38299 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
38300 memory instead of the stack for a mmap entry, because some
38301 BIOSes may ignore the maximum size and overflow.
38303 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
38305 * genmk.rb (PModule#rule): Compile automatically generated
38306 sources with module-specific CFLAGS as well as other sources.
38308 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
38310 * configure.ac: Check ld.
38311 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
38312 respectively, before checking endianness and sizes.
38314 * Makefile.in (LD): New variable.
38316 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
38318 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
38320 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
38322 * Changelog: New file.