1 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
6 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8 * util/grub-install.in: Add missing \.
11 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14 (direct_read): Use correct compressed size.
15 (grub_squash_read_data): Likewise.
17 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
19 * docs/grub.texi (Platform limitations): New section.
20 (Platform-specific operations): Likewise.
21 * docs/grub-dev.texi (Porting): Likewise.
23 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
25 IEEE1275 disk write support.
27 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
29 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
30 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
31 and seek loginc to ...
32 (grub_ofdisk_prepare): ... here.
33 (grub_ofdisk_write): Implement.
35 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
37 ARC disk write support.
39 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
40 (reopen): New argument writable. All users updated.
41 Handle required access mode.
42 (grub_arcdisk_write): Implement.
43 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
44 (grub_arc_firmware_vector): Make buffer to write a const buffer.
46 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
48 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
49 (read_sblock): Don't attempt to read superblocks outside the disk size.
51 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
53 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
54 first superblock to find the second one when possible.
56 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
58 * util/grub-install.in: Fix an ARC bug.
59 Print a warning if no platform-specific setup is available.
61 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
63 Use static allocation rather than scratch pointer in reed_solomon.
64 It decreases its size significantly and avoids a variable in .text.
66 * grub-core/lib/reed_solomon.c (scratch): Removed.
67 (chosenstat): New const or static array.
75 (pol_evaluate): Replace x with log_x argument. All users updated.
77 (gauss_solve): Use statically allocated arrays.
78 (rs_recover): Likewise.
79 Calculate syndroms directly.
80 (decode_block): Use statically allocated arrays.
81 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
82 (main) [TEST]: Allow -DTEST -DSTANDALONE.
84 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
86 Eliminate fixed limit on reed solomon decoder length.
88 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
89 rather than hardcoding the address.
90 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
91 no_reed_solomon_length.
92 Move gate_a20 to no-reed-solomon part.
93 Don't force a particular size of no reed-solomon part.
94 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
96 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
97 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
99 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
101 * grub-core/commands/wildcard.c (match_files): Handle filenames
102 without explicit device.
103 (wildcard_expand): Don't add explicit device if not already present.
104 * tests/grub_script_echo1.in: Add a new expansion test.
106 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
108 Replace single-linked with double-linked lists. It results in more
109 compact and more efficient code.
111 * grub-core/kern/list.c (grub_list_push): Moved from here ...
112 * include/grub/list.h (grub_list_push): ... to here. Set prev.
113 (grub_list_remove): Moved from here ...
114 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
115 (grub_prio_list_insert): Set prev.
116 * include/grub/list.h (grub_list): Add prev. All users updated.
118 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
120 Handle newer autotools. Add some missing quotes while on it.
122 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
123 (pkglib_DATA): Move grub-mkconfig_lib from here ...
124 (pkgdata_DATA): ... here.
125 * Makefile.util.def (update-grub_lib): Removed.
126 * conf/Makefile.common (pkglib_DATA): Removed.
127 (pkglib_SCRIPTS): Likewise.
128 (pkgdata_DATA): New variable.
129 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
132 Remove unused variable while on it.
133 * tests/util/grub-shell.in: Likewise.
134 * util/grub-install.in: Likewise.
135 * util/grub-mkconfig.in: Likewise.
136 * util/grub-mknetdir.in: Likewise.
137 * util/grub-mkrescue.in: Likewise.
138 * util/grub-mkstandalone.in: Likewise.
139 * util/grub.d/00_header.in: Likewise.
140 * util/grub.d/10_hurd.in: Likewise.
141 * util/grub.d/10_illumos.in: Likewise.
142 * util/grub.d/10_kfreebsd.in: Likewise.
143 * util/grub.d/10_linux.in: Likewise.
144 * util/grub.d/10_netbsd.in: Likewise.
145 * util/grub.d/10_windows.in: Likewise.
146 * util/grub.d/20_linux_xen.in: Likewise.
147 * util/grub.d/30_os-prober.in: Likewise.
148 * util/update-grub_lib.in: Removed.
150 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
152 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
153 a workaround for intel problem.
155 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
156 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
159 * util/grub-install.in: Support dd'in into PreP partition.
160 * util/grub-probe.c (probe): Support discovering partition type.
161 (main): Support -t msdos_parttype.
163 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
165 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
166 infinite recursion using counter.
167 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
168 init to skip it if the magic check fails.
169 (dec_stream_header): Init s->crc32.
171 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
172 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
173 2012-01-22 Richard Laager <rlaager@wiktel.com>
175 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
177 (find_bestub): Determine correct size.
178 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
179 (scan_disk): Align the size down.
180 Call check pool before find_bestub to have ashift.
182 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
184 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
185 dprintf in no-malloc zone.
187 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
189 * configure.ac: Add back in test for limits.h.
191 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
193 Support 4K-sector NTFS.
195 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
196 (grub_ntfs_data): Remove blocksize.
197 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
198 Remove data argument. All users updated.
200 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
202 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
203 being in .text to avoid dprel references.
204 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
205 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
206 (grub_arch_highmemsize): Likewise.
207 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
208 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
209 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
211 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
213 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
215 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
216 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
218 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
220 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
222 (grub_set_datetime_cmos): Likewise.
224 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
226 Make XZ compression parameters dependent on target and not host CPU.
228 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
229 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
231 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
233 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
234 set but not used variable.
236 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
238 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
239 created when no uuid support is compiled into mkfs.reiser.
241 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
243 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
244 (utf8_to_macroman): Do the opposite.
245 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
247 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
249 * configure.ac: Refise build qemu_mips w/o unifont.
251 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
253 Eliminate grub_min/grub_max prone to overflow usage.
255 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
256 (poll_nonroot_hub): Likewise.
257 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
258 (grub_affs_label): Likewise.
259 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
260 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
261 (grub_hfs_label): Likewise.
262 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
263 * grub-core/fs/zfs/zfs.c (MIN): Remove.
264 (zap_leaf_array_equal): Use grub_size. Remove MIN.
265 (zap_leaf_array_get): Likewise.
266 (dnode_get_path): Likewise.
267 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
268 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
269 * grub-core/script/execute.c (grub_script_break): Likewise.
270 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
272 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
273 * include/grub/misc.h (grub_min): Removed.
274 (grub_max): Likewise.
276 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
278 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
281 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
283 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
285 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
287 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
289 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
291 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
292 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
294 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
296 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
297 rather than a hack for grub_strncasemap.
299 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
301 Support multiple initrds
302 Note: part of this was accidently committed in r3739.
304 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
306 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
307 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
308 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
309 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
310 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
312 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
314 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
315 disks with unknown size.
316 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
318 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
320 Remove defines pertaining to arbitrary limits not affecting GRUB
323 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
324 (EXT2_MAX_SYMLINKCNT): Likewise.
325 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
326 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
327 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
328 (GRUB_PXE_MAX_BLKSIZE): Likewise.
329 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
330 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
331 (DN_MAX_OBJECT_SHIFT): Likewise.
332 (DN_MAX_OFFSET_SHIFT): Likewise.
333 (DN_MAX_OBJECT): Likewise.
334 (DNODES_PER_LEVEL_SHIFT): Likewise.
335 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
336 (SPA_MAXBLOCKSIZE): Likewise.
337 (SPA_BLOCKSIZES): Likewise.
338 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
339 (MZAP_MAX_BLKSZ): Likewise.
341 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
343 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
344 handle NULL appropriately.
347 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
351 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
353 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
354 * configure.ac: Fix efiemu check.
356 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
358 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
360 Reported by: adamwill
362 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
364 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
366 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
368 Fix handling of wide characters in gfxterm.
370 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
371 (clear_char): Likewise.
372 (paint_char): Skip code == NULL chars.
373 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
375 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
377 * grub-core/normal/charset.c: Move comment to right place.
379 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
381 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
382 (GRUB_AFFS_FLAG_FFS): Put back where it was.
383 (grub_affs_mount): Revert the correct version checking.
385 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
387 * docs/grub.texi (Unicode): Mention several other unsupported features.
389 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
391 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
392 case statements as compile-time one.
393 (direct_read): Prevent spurious warnings.
394 (grub_squash_read_data): Likewise.
396 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
398 Various squash4 fixes and LZO and XZ support.
400 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
401 Add xzembed source files.
402 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
403 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
404 (grub_squash_inode): New subtype long_dir.
405 (SQUASH_TYPE_LONG_DIR): New inode type.
406 (COMPRESSION): New enum.
407 (XZBUFSIZ): New const.
408 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
409 (read_chunk): Use data->decompress.
410 (zlib_decompress): New function.
411 (lzo_decompress): Likewise.
412 (xz_decompress): Likewise.
413 (squash_mount): Set new data fields.
414 (grub_squash_iterate_dir): Handle long dir.
415 (squash_unmount): Free xzdec and xzbuf.
416 (grub_squash_open): Check ino type.
417 (direct_read): Stylistic fixes. Use data->decompress.
418 (grub_squash_read_data): Likewise.
419 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
420 (get_byte): Likewise.
421 (grub_zlib_disk_read): Removed.
422 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
423 (GRUB_POSIX_BOOL_DEFINED): New define.
424 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
425 * grub-core/lib/xzembed/xz.h: Addmissing includes.
426 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
427 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
429 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
431 Don't override more informative errors.
433 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
434 * grub-core/font/font.c (open_section): Likewise.
435 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
436 filename. Don't override errors.
437 (grub_cmd_openbsd_ramdisk): Don't override errors.
438 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
439 (grub_cmd_initrd): Likewise.
440 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
441 (grub_cmd_initrd): Likewise.
442 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
443 (grub_cmd_linux): Likewise.
444 (grub_cmd_initrd): Likewise.
445 (grub_cmd_payload): Likewise.
446 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
447 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
448 (grub_cmd_module): Likewise.
449 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
450 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
451 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
452 (grub_cmd_xnu_mkext): Likewise.
453 (grub_cmd_xnu_ramdisk): Likewise.
454 (grub_xnu_check_os_bundle_required): Likewise.
455 (grub_xnu_load_kext_from_dir): Likewise.
456 (grub_cmd_xnu_kextdir): Likewise.
457 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
459 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
461 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
462 as 1024 in block size field. Found on one of my test images.
463 Small optimisation while on it.
465 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
467 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
468 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
469 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
470 performance fixes while on it.
471 (grub_sfs_close): Fix memory leak while on it.
472 (grub_sfs_label): Convert Latin1 to UTF-8.
474 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
476 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
477 space to avoid overflows.
478 (grub_hfs_label): Convert from macroman to UTF-8.
480 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
482 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
484 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
486 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
488 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
490 * unicode: Import Unicode 6.0 data.
492 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
494 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
497 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
499 Avoid cutting in the middle of UTF-8 character.
501 * include/grub/charset.h (grub_getend): New function.
502 * grub-core/script/function.c (grub_script_function_find): Use
504 * grub-core/normal/completion.c (add_completion): Likewise.
506 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
508 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
509 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
510 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
511 (GRUB_UNICODE_TAG_END): Likewise.
512 (GRUB_UNICODE_LAST_VALID): Likewise.
514 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
516 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
517 len and make it smaller. All users updated.
518 * util/import_unicode.py: Put length and not end character.
521 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
523 Make better Unicode-compliant and unify some UTF-8 code pathes.
525 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
527 (grub_is_valid_utf8): Use grub_utf8_process.
528 Check resulting code range.
529 (grub_utf8_to_ucs4): Use grub_utf8_process.
530 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
533 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
535 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
537 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
539 * docs/grub.texi (Filesystems): Mention AFS.
541 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
543 * docs/grub.texi (Filesystems): Clarify restrictions.
544 (Regexp): Mention non-Unicode regexp behaviour.
545 (Other): Mention non-Unicode matching behaviour.
547 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
549 Make HFS implementation use MacRoman.
551 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
552 (macroman): New const array.
553 (macroman_to_utf8): New function.
554 (utf8_to_macroman): Likewise.
555 (grub_hfs_find_dir): Use utf8_to_macroman.
556 (grub_hfs_dir): Use macroman_to_utf8.
557 Set case_insensitive.
559 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
561 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
563 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
565 Integrate hints into autogeneration scripts.
567 * docs/grub.texi (Filesystems): Add a hostdisk example.
568 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
569 (grub-probe): Add ofpath.
570 * gentpl.py: Remove group nosparc64.
571 * grub-core/commands/search.c (cache_entry): New struct.
573 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
574 * grub-core/commands/search_wrap.c (options): Add platform-specific
576 (grub_cmd_search): Handle platform-specific hints.
577 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
578 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
579 (grub_util_biosdisk_data): Likewise.
580 (grub_util_biosdisk_open): Set device_map.
581 (read_device_map): Handle "" as indication of no map.
583 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
584 (grub_util_biosdisk_get_compatibility_hint): New function.
585 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
586 * include/grub/emu/hostdisk.h
587 (grub_util_biosdisk_get_compatibility_hint): New proto.
588 * util/grub-install.in: Don't call grub-mkdevicemap.
589 Add platform-specific hint to load.cfg.
590 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
591 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
592 hints. Set root preliminary to compatibility hint, not to OS name.
593 * util/grub-probe.c (PRINT_*): Add hints.
594 (print): Make static.
595 (escape_of_path): New function.
596 (guess_bios_drive): Likewise.
597 (guess_efi_drive): Likewise.
598 (guess_baremetal_drive): Likewise.
599 (print_full_name): Likewise.
600 (probe): Handle hints.
602 * util/ieee1275/devicemap.c: Removed.
603 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
605 (grub_util_devname_to_ofpath): Return NULL on failure.
607 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
609 * util/getroot.c (grub_util_pull_device): Fix memory leak.
611 * po/POTFILES.in: Regenerated.
613 Allow purely long options
615 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
616 (SHORT_ARG_USAGE): Likewise.
617 (grub_arg_show_help): Compare opt with help_options.
618 (parse_option): Receive opt as argument. If makes big simplificatons.
621 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
623 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
624 Restructure to avoid warning.
626 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
628 * util/grub-install.in: Account for possible escaped comma in device
631 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
633 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
636 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
638 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
639 allocation and zero-setting.
640 (grub_ieee1275_get_devname): Check that alias is complete.
642 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
644 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
647 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
649 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
651 (grub_ofdisk_open): Check and discard ieee1275 prefix.
652 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
655 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
657 * docs/grub.texi (Filesystems): Update.
659 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
661 Support odc, newc and bigendian cpio formats.
663 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
664 * grub-core/Makefile.core.def (newc): New module.
667 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
670 (head) [MODE_ODC]: Adapt for the format.
671 (head) [MODE_NEWC]: Likewise.
672 (head) [!MODE_*]: Write fields of interest as arrays.
673 (MAGIC_USTAR): Removed.
674 (read_number) [MODE_NEWC]: Change to hex.
675 (read_number) [!MODE_*]: Parse binary arrays.
676 (grub_cpio_find_file): Factor out the code for better structure and
677 always use read_number.
678 (grub_cpio_mount): Use MAGIC and MAGIC2.
679 (grub_cpio_dir): Exit on first hook non-0 return.
680 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
681 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
682 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
683 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
684 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
685 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
686 * grub-core/fs/newc.c: New file.
687 * grub-core/fs/odc.c: Likewise.
688 * grub-core/fs/cpio_be.c: Likewise.
690 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
692 Fix handling of tar numbers occupying the whole field.
694 * grub-core/fs/cpio.c (read_number): New function.
695 (grub_cpio_find_file): Use read_number instead of strtoull.
697 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
699 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
700 occupying the whole field size.
702 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
704 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
706 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
708 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
710 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
712 * grub-core/Makefile.core.def (lzma_decompress): Add missing
715 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
717 * util/getroot.c (ESCAPED_PATH_MAX): New define.
718 (mountinfo_entry): Increase the field size to take escaping into
720 (find_root_device_from_libzfs): Add one byte to size of strings for
723 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
725 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
727 * util/grub-setup.c (setup): Likewise.
729 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
731 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
734 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
736 * docs/grub.texi (Internationalisation): New section.
738 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
740 * docs/grub.texi (Loopback booting): New section.
742 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
744 * util/grub-mkstandalone.in: Fix minor typo errors.
746 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
748 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
750 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
751 net/icmp.c and net/icmp6.c.
753 (priority_queue): Likewise.
754 * grub-core/io/bufio.c: Rewritten.
755 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
756 TYPE_WITH_CONFIGFILE_OPTION.
757 (legacy_commands): Add bootp and dhcp.
758 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
759 (grub_legacy_parse): Likewise.
760 * grub-core/lib/priority_queue.c: New file.
761 * grub-core/net/arp.c: Add missing license header.
762 (arp_find_entry): Removed.
763 (arp_find_entry): Likewise.
764 (grub_net_arp_resolve): Rename to ...
765 (grub_net_arp_send_request): ...this.
766 (grub_net_arp_receive): New card argument.
767 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
768 Set router and DNS server.
769 (grub_net_configure_by_dhcp_ack): Handle routing information.
770 (grub_cmd_bootp): Set checksum.
771 (grub_bootp_init): Remove net_dhcp.
772 * grub-core/net/dns.c: New file.
773 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
775 (get_card_packet): Handle allocation.
776 (grub_efinet_findcards): Set mtu.
777 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
778 (get_card_packet): Handle allocation.
780 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
781 (GRUB_MOD_INIT): Set mtu.
782 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
784 (get_card_packet): Handle allocation.
785 (grub_ofnet_findcards): Set mtu.
786 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
788 (grub_net_recv_ethernet_packet): Handle IPv6.
789 * grub-core/net/http.c: New file.
790 * grub-core/net/icmp.c: Likewise.
791 * grub-core/net/icmp6.c: Likewise.
792 * grub-core/net/ip.c (ip6addr): New type.
794 (reassemble): Likewise.
796 (reassembles): New variable.
797 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
799 (send_fragmented): New function.
800 (grub_net_send_ip_packet): Rename to ...
801 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
803 (grub_net_recv_ip_packets): Rename to ...
804 (handle_dgram): ... this. Check checksum. Handle non-UDP.
805 (free_rsm): New function.
806 (free_old_fragments): Likewise.
807 (grub_net_recv_ip4_packets): New function.
808 (grub_net_send_ip6_packet): Likewise.
809 (grub_net_send_ip_packet): Likewise.
810 (grub_net_recv_ip6_packets): Likewise.
811 (grub_net_recv_ip_packets): Likewise.
812 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
813 (LINK_LAYER_CACHE_SIZE): New const.
814 (link_layer_find_entry): New function.
815 (grub_net_link_layer_add_address): Likewise.
816 (grub_net_link_layer_resolve_check): Likewise.
817 (grub_net_link_layer_resolve): Likewise.
818 (grub_net_ipv6_get_slaac): Likewise.
819 (grub_net_ipv6_get_link_local): Likewise.
820 (grub_cmd_ipv6_autoconf): Likewise.
821 (parse_ip): Handle one number representation.
822 (parse_ip6): New functoion.
823 (match_net): Handle IPv6.
824 (grub_net_resolve_address): Handle IPv6 and DNS.
825 (grub_net_resolve_net_address): Handle IPv6.
826 (route_cmp): New function.
827 (grub_net_route_address): Find best route.
828 (grub_net_addr_to_str): Handle IPv6.
829 (grub_net_addr_cmp): New function.
830 (grub_net_add_addr): Register local route.
831 (print_net_address): Handle net address.
832 (grub_net_poll_cards): Retransmit TCP.
833 (grub_net_poll_cards_idle_real): Likewise.
834 (have_ahead): New function.
835 (grub_net_seek_real): Use underlying seek.
836 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
837 * grub-core/net/tcp.c: New file.
838 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
841 (tftp_receive): Handle unordered input.
842 (destroy_pq): New function.
843 (tftp_close): Close pq.
844 * grub-core/net/udp.c: Put missing license header.
845 (grub_net_udp_socket): New function.
846 (udp_socket_register): Likewise.
847 (grub_net_udp_close): Likewise.
848 (grub_net_recv_udp_packet): Check checksum.
849 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
850 * include/grub/misc.h (grub_memchr): New function.
851 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
852 (grub_net_card_driver): Return buf in recv.
853 (grub_net_slaac_mac_list): New struct.
854 (grub_network_level_protocol_id): Add ipv6.
855 (grub_net_network_level_addr): Likewise.
856 (grub_net_network_level_net_addr): Likewise.
857 (grub_net_app_protocol): Add seek.
858 (grub_net_socket): Removed.
859 (grub_net_sockets): Likewise.
860 (grub_net_socket_register): Likewise.
861 (grub_net_socket_unregister): Likewise.
862 (FOR_NET_SOCKETS): Likewise.
863 (grub_net_add_addr): Add const.
864 (GRUB_NET_BOOTP_*): New enum.
865 (grub_net_addr_cmp): New proto.
866 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
867 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
868 (grub_net_hwaddr_to_str): NEw proto.
869 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
870 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
871 (grub_dns_init): New proto.
872 (grub_dns_fini): Likewise.
873 (grub_net_tcp_retransmit): Likewise.
874 (grub_net_link_layer_add_address): Likewise.
875 (grub_net_link_layer_resolve_check): Likewise.
876 (grub_net_link_layer_resolve): Likewise.
877 (grub_net_dns_lookup): Likewise.
878 (grub_net_add_dns_server): Likewise.
879 (grub_net_remove_dns_server): Likewise.
880 (GRUB_NET_TRIES): New const.
881 (GRUB_NET_INTERVAL): Likewise.
882 * include/grub/net/arp.h: Mostly rewritten.
883 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
884 * include/grub/net/ip.h: Mostly rewritten.
885 * include/grub/net/netbuff.h: Indent.
886 * include/grub/net/tcp.h: New file.
887 * include/grub/net/udp.h: Mostly rewritten.
888 * include/grub/priority_queue.h: New file.
889 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
890 (grub_swap_bytes64_compile_time): Likewise.
891 (grub_cpu_to_be16_compile_time): Likewise.
892 (grub_cpu_to_be32_compile_time): Likewise.
893 (grub_cpu_to_be64_compile_time): Likewise.
894 (grub_be_to_cpu64_compile_time): Likewise.
896 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
898 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
899 UINT_TO_PTR with cast.
901 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
903 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
906 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
908 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
911 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
913 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
916 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
918 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
919 Add missing const attribute.
920 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
922 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
925 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
927 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
929 (serpent_setkey): Likewise.
930 (serpent_encrypt_internal): Likewise.
931 (serpent_decrypt_internal): Likewise.
932 (serpent_encrypt): Don't put an alignment-increasing cast.
933 (serpent_decrypt): Likewise.
934 (serpent_test): Likewise.
936 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
938 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
940 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
942 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
944 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
946 (PTR_TO_UINT64): Likewise.
947 (PTR_TO_UINT32): Likewise.
949 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
951 * util/grub-mkimage.c (generate_image): Decrease the higher limit
953 * util/grub-setup.c (setup): Don't add redundancy past the higher load
956 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
958 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
959 text_width > available width a bit more gracefully.
961 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
963 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
964 current address calculation.
966 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
968 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
970 (encode_block): Likewise.
972 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
974 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
977 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
979 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
980 non-RS part to avoid RS messing with GDT.
981 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
982 Increase to suit in realmode routines.
984 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
986 * grub-core/kern/i386/realmode.S: Increase alignment.
987 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
989 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
991 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
993 (syndroms): Compute 0 syndrom.
994 (rs_recover): Use 0 syndrom.
996 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
998 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
1000 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1002 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
1005 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1007 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
1009 (get_top_pad): Likewise.
1010 (get_right_pad): Likewise.
1011 (get_bottom_pad): Likewise.
1013 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1015 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
1017 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1019 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
1020 attribute as the structure isn't guaranteed to be properly aligned.
1021 (grub_efi_pci_device_path): Likewise.
1022 (grub_efi_pccard_device_path): Likewise.
1023 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
1024 specify the size of `memory_type'.
1025 (grub_efi_vendor_device_path): Likewise.
1026 (grub_efi_controller_device_path): Likewise.
1027 (grub_efi_acpi_device_path): Likewise.
1028 (grub_efi_expanded_acpi_device_path): Likewise.
1029 (grub_efi_atapi_device_path): Likewise.
1030 (grub_efi_scsi_device_path): Likewise.
1031 (grub_efi_fibre_channel_device_path): Likewise.
1032 (grub_efi_1394_device_path): Likewise.
1033 (grub_efi_usb_device_path): Likewise.
1034 (grub_efi_usb_class_device_path): Likewise.
1035 (grub_efi_i2o_device_path): Likewise.
1036 (grub_efi_mac_address_device_path): Likewise.
1037 (grub_efi_ipv4_device_path): Likewise.
1038 (grub_efi_ipv6_device_path): Likewise.
1039 (grub_efi_infiniband_device_path): Likewise.
1040 (grub_efi_uart_device_path): Likewise.
1041 (grub_efi_vendor_messaging_device_path): Likewise.
1042 (grub_efi_hard_drive_device_path): Likewise.
1043 (grub_efi_cdrom_device_path): Likewise.
1044 (grub_efi_vendor_media_device_path): Likewise.
1045 (grub_efi_file_path_device_path): Likewise.
1046 (grub_efi_protocol_device_path): Likewise.
1047 (grub_efi_piwg_device_path): Likewise.
1048 (grub_efi_bios_device_path): Likewise.
1050 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1052 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
1053 (grub_ucs4_to_utf8_alloc): Likewise.
1054 (grub_ucs4_to_utf8): Likewise.
1055 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
1056 (grub_ucs4_to_utf8_alloc): Likewise.
1058 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1060 AFFS never uses unicode.
1062 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
1063 (grub_latin1_to_utf8): New inline function.
1064 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
1066 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1068 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
1071 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1073 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
1074 (grub_squash_dirent_header): Likewise.
1075 (read_chunk): Don't double swap.
1076 (grub_squash_iterate_dir): Fix swap sizes.
1078 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1080 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
1082 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1084 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
1085 (grub_hfs_iterate_dir): Likewise.
1087 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1089 Fix video on platforms where unaligned access is forbidden.
1090 Make several optimisations while on it.
1092 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
1093 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1094 (grub_video_fbblit_replace_32bit_1bit): Likewise.
1095 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
1097 (grub_video_fbblit_replace_16bit_1bit):
1098 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1099 (grub_video_fbblit_replace_8bit_1bit): Likewise.
1100 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
1101 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
1102 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
1103 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
1104 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
1105 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
1106 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
1107 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
1108 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
1109 (grub_video_fbblit_replace_index_RGB888): Likewise.
1110 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
1111 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
1112 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
1113 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
1114 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
1115 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
1116 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
1118 (grub_video_fbblit_blend_XXX565_1bit):
1119 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1120 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
1121 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
1123 * grub-core/video/fb/video_fb.c (common_blitter)
1124 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
1125 (grub_video_fb_create_render_target_from_pointer)
1126 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
1127 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
1128 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
1130 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
1132 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1134 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
1135 HH22 and HM10 relocations.
1137 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1139 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
1141 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1143 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
1144 allocation succeeded.
1146 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1148 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
1149 argument a u8 pointer. All users updated.
1150 Handle unaligned buffers.
1152 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1154 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
1155 add_part to workaround compiler bug.
1157 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1159 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
1161 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1163 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
1164 Reserve alignment invariants.
1165 (grub_multiboot_load): Likewise.
1166 (retrieve_video_parameters): Likewise.
1167 (grub_multiboot_make_mbi): Likewise.
1169 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1171 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
1174 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1176 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
1177 (grub_pata_pio_write): Likewise.
1179 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1181 Add noreturn attributes and remove unreachable code.
1183 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
1185 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
1186 code. Mark as noreturn.
1187 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
1188 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
1189 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
1191 * grub-core/kern/main.c (grub_main): Mark as noreturn.
1192 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
1193 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
1194 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
1195 * include/grub/kernel.h (grub_main): Mark as noreturn.
1196 * include/grub/reader.h (grub_rescue_run): Likewise.
1198 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1200 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
1201 redundant declaration.
1203 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1205 * include/grub/net.h (grub_net_network_level_interfaces): Remove
1206 redundant declaration.
1207 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
1209 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1211 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
1212 to ensure alignment.
1213 (grub_hdparm_print_identify): Make argument uint16 * to ensure
1214 alignment. Ensure tmp alignment.
1215 (grub_cmd_hdparm): Ensure buf alignment.
1216 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
1217 to ensure alignment.
1218 (grub_ata_dumpinfo): Ensure text alignment.
1219 (grub_atapi_identify): Preserve alignment invariant.
1220 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
1222 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1224 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
1225 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
1226 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
1227 * include/grub/misc.h (grub_reboot)
1228 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
1229 (grub_halt) [__mips__]: Likewise.
1231 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1233 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
1234 Remove redundant declaration.
1235 (grub_mmap_get_post64): Likewise.
1236 (grub_mmap_get_upper): Likewise.
1237 (grub_mmap_get_lower): Likewise.
1239 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1241 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
1242 uint32_t * to ensure alignment.
1243 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
1245 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1247 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
1248 uint16_t * to ensure alignment.
1249 (sun_pc_partition_map_iterate): Make `block' a union to ensure
1252 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1254 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
1255 to ensure alignment.
1256 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
1258 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1260 * grub-core/fs/ntfs.c (u16at): Make into inline function.
1261 Handle unaligned pointers.
1264 (fixup): Use byte access instead of v16at.
1265 (find_attr): Fix imporper usage of v32at.
1266 (read_data): Likewise.
1267 (list_file): Handle byte-swapping and unaligned strings.
1268 (grub_ntfs_label): Likewise.
1270 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1272 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
1273 as it's not necessarily aligned.
1275 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1277 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
1278 redundant declaration.
1279 (grub_serial_init): Likewise.
1280 (grub_terminfo_init): Likewise.
1282 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1284 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
1286 (ZAP_HASH_IDX): Likewise.
1287 (ZAP_LEAF_HASH_SHIFT): Likewise.
1288 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
1289 (LEAF_HASH): Likewise.
1290 (ZAP_LEAF_NUMCHUNKS): Likewise.
1291 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
1292 alignment invariants. Return pointer. All users updated.
1293 (ZAP_LEAF_ENTRY): Make into inline function.
1296 (xor_out): Use grub_crypto_xor.
1297 (dnode_get_path): Use grub_get_unaligned.
1298 (nvlist_find_value): Likewise.
1299 (grub_zfs_nvlist_lookup_uint64): Likewise.
1300 (grub_zfs_nvlist_lookup_string): Likewise.
1301 (get_nvlist_size): Likewise.
1302 (grub_zfs_open): Likewise.
1303 (fill_fs_info): Likewise.
1304 (grub_zfs_dir): Likewise.
1305 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
1306 alignment invariants.
1307 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
1308 necessarily aligned.
1310 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1312 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
1314 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1316 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
1317 arithmetic to conserve alignment invariants.
1319 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1321 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
1322 redundant declaration.
1323 (grub_efiemu_mm_obtain_request): Likewise.
1324 (grub_efiemu_prepare): Likewise.
1326 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1328 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
1331 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1333 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
1334 case of aunaligned recptr.
1335 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
1337 (grub_hfsplus_btree_search): Handle unaligned index.
1339 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1341 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
1342 to get freetag and skip.
1344 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1346 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
1348 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
1349 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
1351 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1353 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
1354 name for checksum and fix allocation algorithm.
1356 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1358 * include/grub/types.h (grub_properly_aligned_t): New type.
1359 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
1360 (grub_get_unaligned16): Add explicit casts.
1361 (grub_get_unaligned32): Likewise.
1362 (grub_get_unaligned64): Likewise.
1363 (grub_set_unaligned16): New function.
1364 (grub_set_unaligned32): Likewise.
1366 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1368 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
1370 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1372 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
1373 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
1374 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
1376 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1378 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
1381 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1383 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
1384 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
1386 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1388 Unify and improve RAID and crypto xor.
1390 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
1391 changed to grub_crypto_xor
1392 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
1393 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
1394 Use bigger types when possible.
1396 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1398 * grub-core/disk/raid.c (scan_devices): Fix condition.
1400 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1402 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
1403 Make name a const ptr.
1405 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1407 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
1408 first argument a const pointer.
1409 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
1410 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
1412 (grub_children_iterate): Likewise.
1413 (grub_machine_mmap_iterate): Remove redundant declaration.
1415 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1417 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
1418 (grub_cmd_acpi) [!x86]: Disable EBDA.
1420 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1422 Enable UTF8 in gnulib regexp.
1424 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
1425 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
1426 (isupper): Use grub_isupper.
1427 (isascii): New inline function.
1428 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
1429 * grub-core/lib/posix_wrap/wctype.h: Likewise.
1430 * grub-core/normal/charset.c (grub_utf8_process): New function.
1431 (grub_utf8_to_utf16): Use grub_utf8_process.
1432 (grub_encode_utf8_character): New function.
1433 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
1434 * include/grub/charset.h (grub_utf8_process): New declaration.
1435 (grub_encode_utf8_character): Likewise.
1436 * include/grub/misc.h (grub_islower): New inline function.
1437 (grub_isupper): Likewise.
1438 (grub_strchrsub): Moved down to fix the definitions.
1440 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1442 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
1445 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1447 * include/grub/loader.h (grub_loader_register_preboot_hook):
1448 Use struct preboot * and not void * for handle. All users updated.
1449 (grub_loader_unregister_preboot_hook): Likewise.
1451 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
1453 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
1454 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
1455 UTF-16-BE. All users updated.
1456 (grub_hfsplus_cmp_catkey): Fix unicode handling.
1457 (grub_hfsplus_iterate_dir): Likewise.
1458 (grub_hfsplus_label): Likewise.
1460 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
1462 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
1464 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1466 Add missing const qualifiers.
1468 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
1469 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
1470 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
1471 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
1472 (grub_lvm_check_flag): Likewise.
1473 * grub-core/efiemu/i386/coredetect.c
1474 (grub_efiemu_get_default_core_name): Likewise
1475 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
1476 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
1477 * grub-core/fs/ntfs.c (fixup): Likewise.
1478 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
1479 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
1480 (fzap_lookup): Likewise.
1481 (zap_lookup): Likewise.
1482 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
1483 * grub-core/lib/legacy_parse.c (check_option): Likewise.
1484 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
1485 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
1486 (grub_freebsd_add_meta_module): Likewise.
1487 (grub_cmd_freebsd_module): Likewise.
1488 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
1489 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
1490 (grub_xnu_writetree_get_size): Likewise.
1491 (grub_xnu_writetree_toheap_real): Likewise.
1492 (grub_xnu_find_key): Likewise.
1493 (grub_xnu_create_key): Likewise.
1494 (grub_xnu_create_value): Likewise.
1495 (grub_xnu_register_memory): Likewise.
1496 (grub_xnu_check_os_bundle_required): Likewise.
1497 (grub_xnu_scan_dir_for_kexts): Likewise.
1498 (grub_xnu_load_kext_from_dir): Likewise.
1499 * grub-core/normal/color.c (color_list): Likewise.
1500 * grub-core/normal/completion.c (current_word): Likewise.
1501 * grub-core/normal/menu_entry.c (insert_string): Likewise.
1502 * grub-core/term/serial.c (grub_serial_find): Likewise.
1503 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
1504 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
1506 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
1507 (grub_freebsd_add_meta_module): Likewise.
1508 * include/grub/lib/arg.h (grub_arg_option): Likewise.
1509 * include/grub/net.h (grub_net_card_driver): Likewise.
1510 (grub_net_card): Likewise.
1511 (grub_net_app_protocol): Likewise.
1512 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
1513 * include/grub/serial.h (grub_serial_find): Likewise.
1514 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
1515 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
1516 (grub_xnu_create_value): Likewise.
1517 (grub_xnu_find_key): Likewise.
1518 (grub_xnu_scan_dir_for_kexts): Likewise.
1519 (grub_xnu_load_kext_from_dir): Likewise.
1521 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
1522 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
1523 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
1525 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
1527 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
1529 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
1531 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1533 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
1534 (read_device): Fix size calculation.
1536 2011-11-25 Robert Millan <rmh@gnu.org>
1538 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
1539 (find_root_device_from_libzfs): Add zpool output parser to be used
1540 as fallback when libzfs isn't available.
1542 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
1544 * po/Makefile.in.in: Add missing escape-continuation.
1546 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1548 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
1550 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1552 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
1554 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1556 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
1558 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1560 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
1562 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1564 * grub-core/lib/adler32.c: Add missing license specification.
1565 * grub-core/lib/crc64.c: Likewise.
1566 * grub-core/loader/i386/pc/plan9.c: Likewise.
1567 * grub-core/partmap/plan.c: Likewise.
1569 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
1571 Add facility to debug GRUB with gdb under qemu.
1573 * grub-core/gdb_grub.in: New file.
1574 * grub-core/gmodule.pl.in: Likewise.
1575 * grub-core/Makefile.core.def (gmodule.pl): New script.
1576 (gdb_grub): Likewise.
1578 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1580 * util/grub-mount.c (argp_parser): Accept relative pathes.
1581 * util/grub-fstest.c (argp_parser): Likewise.
1583 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1587 * Makefile.util.def (libgrubmods): Add
1588 grub-core/partmap/plan.c.
1589 * docs/grub.texi: Notice Plan9 support.
1590 * grub-core/Makefile.core.def (plan9): New module.
1591 (part_plan): Likewise.
1592 * grub-core/loader/i386/pc/plan9.c: New file.
1593 * grub-core/partmap/plan.c: Likewise.
1594 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
1596 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
1597 * include/grub/mm.h (grub_extend_alloc): New inline function.
1599 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1601 Make Reed-Solomon faster by using power of generator representation of
1604 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
1605 (gf_double_t): Likewise.
1606 (gf_invert): Removed.
1607 (gf_powx): New array.
1608 (gf_powx_inv): Likewise.
1609 (scratch): Move higher.
1610 (gf_reduce): Removed.
1612 (gf_invert): Likewise.
1613 (init_inverts): Replaced with ...
1614 (init_powx): ...this. All users updated.
1615 (pol_evaluate): Replace multiplications with additions.
1616 (rs_encode): Likewise.
1617 (gauss_eliminate): Call gf_invert.
1618 (grub_reed_solomon_add_redundancy): Call init_powx.
1619 (grub_reed_solomon_recover): Call init_powx unconditionally.
1621 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1623 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
1625 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1627 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
1628 disk->partiton for safety.
1630 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1632 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
1634 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
1636 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1638 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
1640 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1642 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
1644 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1646 Fix spaces handling in proc/self/mountinfo.
1648 * util/getroot.c (unescape): New function.
1649 (grub_find_root_device_from_mountinfo): Use unescape.
1651 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1653 Support ZFS embedding.
1655 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
1656 (grub_zfs_fs): Register grub_zfs_embed.
1658 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1660 Fix MIPS compilation.
1662 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
1663 * include/grub/offsets.h: Rename decompressor fields from
1664 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
1665 * util/grub-mkimage.c (image_targets): Use new names.
1667 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1669 Defer multiboot device parsing until we're in compressed part.
1671 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
1672 bsd_part. setdevice has fallen into disuse.
1673 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
1674 (bsd_part): Likewise.
1675 (boot_dev): New variable.
1676 (multiboot_trampoline): Don't parse multiboot device.
1677 Pass multiboot device in %edx.
1678 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
1680 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
1682 * grub-core/kern/i386/pc/startup.S: Save edx.
1683 (grub_boot_drive): Removed.
1684 (grub_install_dos_part): Likewise.
1685 (grub_install_bsd_part): Likewise.
1686 (grub_boot_device): New variable.
1687 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
1688 (grub_install_bsd_part): Likewise.
1689 (grub_boot_drive): Likewise.
1690 (grub_boot_device): New variable.
1691 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
1693 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
1694 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
1695 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
1696 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
1697 * util/grub-install.in: Remove redundant condition.
1699 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1701 Fix bug introduced by previous commit.
1703 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
1705 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1707 Use decompressors framework on i386-pc. It increases core size
1708 by 46 bytes but improves compatibility and maintainability.
1710 * grub-core/Makefile.core.def (lzma_decompress): New image.
1711 (kernel): Add i386_pc_ldflags.
1712 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
1713 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
1714 to real_to_prot, prot_to_real and device info.
1715 * include/grub/offsets.h: Renamed decompressor offsets.
1716 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
1717 (image_target_desc): Remove raw_size and rename decompressor fields.
1718 (compress_kernel): Handle lzma.
1719 (generate_image): Handle decompressors on i386-pc.
1721 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1723 * configure.ac: Add -fno-asynchronous-unwind-tables.
1725 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1727 Move assembly code to C by using intwrap. It increases core size
1728 by 88 bytes but improves compatibility and maintainability.
1730 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
1731 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
1732 ... here. Translated to C.
1733 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
1734 * grub-core/term/i386/pc/console.c (grub_console_getkey):
1735 ... here. Translated to C.
1736 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
1737 * grub-core/term/i386/pc/console.c (grub_console_getxy):
1738 ... here. Translated to C.
1739 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
1740 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
1741 ... here. Translated to C.
1742 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
1743 * grub-core/term/i386/pc/console.c (grub_console_cls):
1744 ... here. Translated to C.
1745 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
1746 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
1747 ... here. Translated to C.
1748 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
1749 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
1751 * grub-core/term/i386/pc/console.c (int10_9): New function.
1752 (grub_console_putchar): Likewise.
1753 * include/grub/i386/pc/console.h: Removed the not anymore shared
1756 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1758 Move grub_chainloader_real_boot out of the kernel.
1760 * grub-core/Makefile.am: Remove machine/loader.h.
1761 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
1763 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
1765 (grub_relocator16_keep_a20_enabled): Likewise.
1766 (grub_relocator16_boot): Fill new variables.
1767 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
1768 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
1770 (grub_chainloader_unload): Likewise.
1771 (grub_chainloader_cmd): Likewise.
1772 * include/grub/i386/pc/loader.h: Removed.
1773 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
1774 and esi. All initialisers updated.
1776 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1777 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
1779 * Makefile.util.def (grub-mount): New util.
1780 * .bzrignore: Add grub-mount.
1781 * configure.ac: Check for fuse and enable grub-mount if available.
1782 * docs/man/grub-mount.h2m: New file.
1783 * util/grub-mount.c: Likewise.
1785 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1787 * grub-core/commands/efi/fixvideo.c: Gettextize.
1788 * grub-core/commands/hashsum.c: Likewise.
1789 * grub-core/commands/i386/cmostest.c: Likewise.
1790 * grub-core/commands/i386/pc/drivemap.c: Likewise.
1791 * grub-core/commands/i386/pc/lsapm.c: Likewise.
1792 * grub-core/commands/i386/pc/sendkey.c: Likewise.
1793 * grub-core/commands/lsmmap.c: Likewise.
1794 * grub-core/commands/menuentry.c: Likewise.
1795 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
1796 * grub-core/commands/setpci.c: Likewise.
1797 * grub-core/loader/i386/bsd.c: Likewise.
1798 * grub-core/loader/i386/linux.c: Likewise.
1799 * util/getroot.c: Likewise.
1800 * util/grub-editenv.c: Likewise.
1801 * util/grub-fstest.c: Likewise.
1802 * util/grub-mkfont.c: Likewise.
1803 * util/grub-mkimage.c: Likewise.
1804 * util/grub-mkpasswd-pbkdf2.c: Likewise.
1805 * util/grub-pe2elf.c: Likewise.
1806 * util/grub-probe.c: Likewise.
1807 * util/grub-setup.c: Likewise.
1808 * util/ieee1275/ofpath.c: Likewise.
1809 * util/misc.c: Likewise.
1810 * util/raid.c: Likewise.
1812 2011-11-11 Robert Millan <rmh@gnu.org>
1814 * util/getroot.c (grub_util_get_geom_abstraction): Remove
1815 __attribute__((unused)) from `os_dev', which *is* being used.
1817 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1819 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
1821 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
1822 GRUB_IA64_DL_GOT_ALIGN.
1823 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
1824 GRUB_IA64_DL_TRAMP_ALIGN.
1826 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1828 Replace grub_fatal with normal errors in i386 linux loader.
1830 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
1831 (allocate_pages): Check find_efi_mmap_size return value.
1832 (grub_e820_add_region): Return error.
1833 (grub_linux_boot): Check mmap return value.
1835 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1837 * grub-core/commands/acpihalt.c: Gettextized.
1838 * grub-core/commands/cacheinfo.c: Likewise.
1839 * grub-core/commands/cmp.c: Likewise.
1840 * grub-core/commands/efi/loadbios.c: Likewise.
1841 * grub-core/commands/gptsync.c: Likewise.
1842 * grub-core/commands/ieee1275/suspend.c: Likewise.
1843 * grub-core/commands/legacycfg.c: Likewise.
1844 * grub-core/commands/memrw.c: Likewise.
1845 * grub-core/commands/minicmd.c: Likewise.
1846 * grub-core/commands/parttool.c: Likewise.
1847 * grub-core/commands/time.c: Likewise.
1848 * grub-core/commands/videoinfo.c: Likewise.
1849 * grub-core/disk/geli.c: Likewise.
1850 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
1851 * grub-core/disk/luks.c: Likewise.
1852 * grub-core/disk/lvm.c: Likewise.
1853 * grub-core/font/font_cmd.c: Likewise.
1854 * grub-core/fs/zfs/zfscrypt.c: Likewise.
1855 * grub-core/fs/zfs/zfsinfo.c: Likewise.
1856 * grub-core/gfxmenu/view.c: Likewise.
1857 * grub-core/kern/emu/hostdisk.c: Likewise.
1858 * grub-core/kern/emu/main.c: Likewise.
1859 * grub-core/kern/emu/misc.c: Likewise.
1860 * grub-core/kern/emu/mm.c: Likewise.
1861 * grub-core/kern/mips/arc/init.c: Likewise.
1862 * grub-core/kern/mips/loongson/init.c: Likewise.
1863 * grub-core/kern/partition.c: Likewise.
1864 * grub-core/lib/i386/halt.c: Likewise.
1865 * grub-core/lib/mips/arc/reboot.c: Likewise.
1866 * grub-core/lib/mips/loongson/reboot.c: Likewise.
1867 * grub-core/loader/i386/pc/chainloader.c: Likewise.
1868 * grub-core/loader/i386/xnu.c: Likewise.
1869 * grub-core/loader/multiboot.c: Likewise.
1870 * grub-core/net/bootp.c: Likewise.
1871 * grub-core/net/net.c: Likewise.
1872 * grub-core/normal/term.c: Likewise.
1873 * grub-core/partmap/bsdlabel.c: Likewise.
1874 * grub-core/parttool/msdospart.c: Likewise.
1875 * grub-core/term/gfxterm.c: Likewise.
1876 * grub-core/term/terminfo.c: Likewise.
1877 * grub-core/video/i386/pc/vbe.c: Likewise.
1878 * util/grub-menulst2cfg.c: Likewise.
1879 * util/grub-mkdevicemap.c: Likewise.
1880 * util/grub-mklayout.c: Likewise.
1881 * util/grub-mkrelpath.c: Likewise.
1882 * util/grub-script-check.c: Likewise.
1883 * util/ieee1275/grub-ofpathname.c: Likewise.
1884 * util/resolve.c: Likewise.
1886 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1888 Support %1$d syntax.
1890 * tests/printf_unit_test.c: New file.
1891 * Makefile.util.def (printf_test): New test.
1892 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
1894 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1896 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
1899 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1901 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
1903 * grub-core/font/font.c (grub_font_load): Likewise.
1905 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1907 * util/grub-macho2img.c: Add comment concerning gettext.
1908 * grub-core/lib/legacy_parse.c: Likewise.
1910 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1912 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
1913 (grub_xvasprintf): Likewise.
1915 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1917 Add const keyword to grub_env_get and gettextize week days.
1919 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
1920 (grub_read_hook_datetime): Return const char *.
1921 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
1923 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
1925 (grub_get_weekday_name): Return const char *. Call gettext.
1926 * grub-core/script/argv.c (grub_script_argv_append): Receive const
1927 char * and len as the argument. All users updated.
1928 (grub_script_argv_split_append): Receive const char *.
1929 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
1930 * include/grub/env.h (grub_env_get): Likewise.
1931 (grub_env_read_hook_t): Return const char *.
1932 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
1933 (grub_script_argv_split_append): Likewise.
1935 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1937 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
1939 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1941 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
1942 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
1944 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1946 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
1949 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1951 Fix mips compilation.
1953 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
1955 (hashes): Use in embed decoder as well (for sizes).
1956 (dec_stream_header): Fix embed decompressor logic.
1957 (dec_stream_footer): Likewise.
1959 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1961 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
1962 an error and not a fatal on unrecognised relocation types.
1964 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1966 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
1967 Issue error rather than printf on unknown arguments.
1969 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1971 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
1974 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1976 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
1979 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1981 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
1982 leftover debug printf.
1984 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1986 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
1988 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1990 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
1993 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1995 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
1997 2011-11-10 Shea Levy <slevy@tieronedesign.com>
1999 Allow all modules to perform serial IO
2001 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
2002 * include/grub/serial.h (grub_serial_port_configure): New inline
2004 (grub_serial_port_fetch): Likewise.
2005 (grub_serial_port_put): Likewise.
2006 (grub_serial_port_fini): Likewise.
2007 (grub_serial_find): New proto.
2009 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2011 Put symlink at the end of the node and fix a potential
2014 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
2015 Make symlink into an array.
2016 (set_rockridge): Set have_symlink and alloc_dirents.
2017 (grub_iso9660_read_symlink): Use new layout.
2018 (grub_iso9660_iterate_dir): Fix memory corruption.
2020 (grub_iso9660_dir): Set have_symlink.
2021 (grub_iso9660_open): Likewise.
2023 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2025 Remove local keyword.
2027 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
2028 (version_test_gt): Likewise.
2029 (version_find_latest): Likewise.
2030 (gettext_printf): Likewise.
2031 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
2033 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2035 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
2037 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2039 Fix ZFS memory and resource leaks.
2041 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
2044 (fill_vdev_info): New parameter inserted. All users updated.
2045 (check_pool_label): Likewise.
2046 (scan_disk): Likewise.
2047 (scan_devices): Close non-inserted disks.
2048 (fzap_iterate): Free l.
2049 (unmount_device): Free children descripto memory.
2051 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2053 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
2054 argument (access out of bounds).
2056 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2058 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
2061 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2063 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
2066 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2068 Fix several memory leaks.
2070 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
2071 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
2072 (grub_cpio_dir): Likewise.
2073 * grub-core/fs/fat.c (grub_fat_label): Likewise.
2074 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
2075 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
2076 (grub_romfs_label): Likewise.
2077 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
2078 (squash_unmount): New function.
2079 (grub_squash_dir): Fix memory leak.
2080 (grub_squash_open): Likewise.
2081 (grub_squash_read): Likewise.
2082 (grub_squash_mtime): Likewise.
2083 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
2084 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
2085 * util/grub-fstest.c (fstest): Likewise.
2087 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2089 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
2090 avoid accessing beyond the array.
2092 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2094 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
2096 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2100 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
2101 (GRUB_AFFS_FLAG_FFS): Removed.
2102 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
2103 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
2104 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
2105 (grub_fshelp_node): Make block 32-bit.
2106 Add block_cache and last_block_cache.
2107 (grub_affs_read_block): Fill and use block cache.
2108 (grub_affs_read_file): Removed.
2109 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
2111 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
2113 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
2115 (grub_affs_close): Free block cache.
2116 (grub_affs_read): Use grub_fshelp_read_file directly.
2118 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2120 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
2123 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2125 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
2127 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
2130 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2132 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
2134 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
2135 byteswap when needed.
2137 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2139 Fix FreeBSD compilation.
2141 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
2142 to avoid circular dependency.
2143 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
2144 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
2145 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
2147 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2149 Fix ZFS crypto error types.
2151 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
2152 (grub_gcm_decrypt): Likewise.
2153 (grub_zfs_load_key_real): Fix error code type. Handle possible error
2156 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2160 * Makefile.util.def (10_illumos): New script.
2161 * configure.ac: Set COND_HOST_ILLUMOS.
2162 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
2163 Support Illumos calls.
2164 (find_partition_start) [__sun__]: Likewise.
2165 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
2166 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
2167 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
2168 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
2170 * util/grub-probe.c (probe) [__sun__]: Do character check.
2171 * util/grub.d/10_illumos.in: New file.
2173 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2175 Support escaped commas in hostdisk.
2177 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
2178 (find_grub_drive): Use unescape_cmp.
2179 (make_device_name): Escape commas.
2181 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2183 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
2185 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2187 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
2190 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2192 Support trampoline jumps on powerpc.
2194 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
2196 (grub_dl_load_segments): Set mod->sz.
2197 (grub_dl_flush_cache): Flush whole space occupied by module, not just
2199 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
2201 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
2203 (trampoline): New struct.
2204 (trampoline_template): New const.
2205 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
2206 * include/grub/dl.h (grub_dl): Add sz element.
2207 [__powerpc__]: Follow __ia64__.
2208 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
2209 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
2210 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
2211 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
2213 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
2217 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
2218 * grub-core/Makefile.core.def (zfscrypt): New module.
2219 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
2220 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
2221 it. All users updated.
2222 (grub_zfs_decrypt): New var.
2223 (grub_zfs_load_key): Likewise.
2224 (zio_checksum_functions): Add SHA256+MAC.
2225 (zio_checksum_verify): Handle incomplete comparison due to MAC.
2226 (zio_read): Handle encrypted blocks.
2227 (zap_verify): Remove incorrect check.
2228 (fzap_iterate): Handle non-standard fzap.
2229 (zap_iterate): Likewise.
2230 (zap_iterate_u64): New function.
2231 (dnode_get_fullpath): Load keys.
2232 * grub-core/fs/zfs/zfscrypt.c: New file.
2233 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
2234 (grub_crypto_ecb_encrypt): Make input const.
2235 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
2236 (grub_crypto_ecb_encrypt): Make input const.
2237 (GRUB_CIPHER_AES): New macro.
2238 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
2239 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
2240 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
2241 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
2242 prefix. All users updated.
2243 (grub_zfs_add_key): New proto.
2244 (grub_zfs_decrypt): Likewise.
2245 (grub_zfs_load_key): Likewise.
2246 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
2247 * util/grub-fstest.c (options): Add -K option.
2248 (argp_parser): Likewise.
2250 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2252 Support zle compression on ZFS.
2254 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
2255 (decomp_table): Add zle.
2256 * include/grub/zfs/zio.h (zio_compress): Add zle.
2258 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2260 Support BtrFS embedding.
2262 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
2263 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
2264 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
2265 * util/grub-setup.c (setup): Use fs embedding if available.
2266 Add additional sanity check.
2268 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2270 * util/grub-install.in: Fix condition for config_opt.
2272 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2274 Support third redundancy strip on raidz3.
2276 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
2277 Return error on singularity. All users updated.
2278 (read_device): Don't stop on 3rd failure on raidz3.
2280 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2282 Support case-insensitive ZFS subvolumes.
2284 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
2286 (zap_hash): Likewise.
2287 (name_cmp): New function.
2288 (zap_leaf_array_equal): New parameter case_insensitive.
2290 (zap_leaf_lookup): Likewise.
2291 (fzap_lookup): Likewise.
2292 (zap_lookup): Likewise.
2293 (dnode_get_path): New parameter case_insensitive. Retrieve case
2294 sensitiviness of a volume. All users updated.
2295 (dnode_get_fullpath): New parameter case_insensitive.
2297 (grub_zfs_dir): Set info.case_insensitiveness.
2299 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2301 Support second redundancy strip on raidz(2,3).
2303 * grub-core/fs/zfs/zfs.c (powx): New array.
2304 (powx_inv): Likewise.
2306 (xor_out): New function.
2308 (recovery): Likewise.
2309 (read_device): Use second redundancy strip.
2311 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2313 Use a power of generator representation of GF(256) multiplication group
2314 to save space time and complexity.
2316 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
2317 (raid6_table2): Likewise.
2319 (powx_inv): Likewise.
2321 (grub_raid_block_mul): Replace with ...
2322 (grub_raid_block_mulx): ...this.
2323 (grub_raid6_init_table): Rewritten.
2324 (grub_raid6_recover): Use power of generator representation.
2326 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2328 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
2329 for the right device.
2331 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2333 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
2334 expected by grub-mkimage and it's more clear since there is no implicit
2337 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2339 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
2341 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
2343 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
2345 * util/grub-mkrescue.in: Fix handling xorriso option.
2347 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2349 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
2352 2011-11-03 crocket <crockabiscuit@gmail.com>
2354 * util/grub.d/10_linux.in: Add Slackware initrd naming.
2356 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2358 XZ CRC64 and SHA256 support.
2360 * Makefile.util.def (libgrubmods): Add crc64.c.
2361 * grub-core/Makefile.core.def (crc64): New module.
2362 * grub-core/lib/crc64.c: New file.
2363 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
2364 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
2366 (MAX_HASH_SIZE): New define.
2367 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
2368 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
2369 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
2370 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
2371 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
2372 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
2373 Handle non-crc32 hashes.
2374 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
2375 (dec_stream_header): Handle non-crc32 hashes.
2376 (dec_stream_footer): Likewise.
2377 (dec_block_header): Likewise.
2378 (dec_main): Likewise.
2379 (xz_dec_init): Likewise.
2380 (xz_dec_reset): Likewise.
2381 (xz_dec_end): Likewise.
2382 * util/import_gcry.py: Add CRC64 line.
2384 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2386 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
2389 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2391 Make reiserfs label retrieval similar to other *_label functions.
2393 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
2394 (REISERFS_MAX_LABEL_LENGTH): Removed.
2395 (REISERFS_LABEL_OFFSET): Likewise.
2396 (grub_reiserfs_label): Rewritten.
2398 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2400 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
2403 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2405 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
2407 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2409 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
2410 drive failure on both raidz and raidz2.
2412 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2414 Fix RAIDZ(2) for >= 5 devices.
2416 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
2417 asize argument. All users updated.
2419 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2423 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
2424 (fill_vdev_info_real): Set ashift.
2425 (read_device): Rewrite RAIDZ part based on reverse engineering.
2427 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2429 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
2430 don't report potentially unavialiable fields in debug output.
2431 (find_path): Fix double-free and memory leak.
2433 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2437 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
2438 (grub_ufs_fs): Always set .label.
2440 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2444 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
2445 (grub_ufs_data): New field log2_blksz.
2446 (grub_ufs_read_file): Use shifts.
2447 (grub_ufs_mount): Check block size and logarithm it.
2449 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2451 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
2454 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2456 Handle symlinks and long names on tar and cpio.
2458 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
2459 (ATTR_FILE): Likewise.
2460 (ATTR_DIR): Likewise.
2461 (ATTR_LNK): Likewise.
2462 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
2463 (grub_cpio_find_file): Fill mode, handle linkname field as well as
2465 (grub_cpio_mount): Zero-fill data.
2466 (handle_symlink): New function.
2467 (grub_cpio_dir): Handle symlinks.
2468 (grub_cpio_open): Likewise.
2469 (grub_cpio_close) [MODE_USTAR]: Free linkname.
2471 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2473 Fix iso9660 filename limitations and fix memory leaks.
2475 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
2476 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
2478 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2480 Fix JFS file name length limitations.
2482 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
2483 (grub_jfs_diropen): Fix maximum filename length.
2484 (grub_jfs_getent): Fix filename length.
2485 (grub_jfs_lookup_symlink): Fix size checks.
2487 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2489 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
2492 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2494 Leverage BFS implementation to read AFS.
2496 * Makefile.util.def (libgrubmods): Add afs.c.
2497 * grub-core/Makefile.core.def (afs): New module
2498 * grub-core/fs/afs.c: New file.
2499 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
2501 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2503 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
2505 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2507 * grub-core/fs/bfs.c: Run indent.
2509 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2511 BFS implementation based on the specification.
2513 * grub-core/fs/bfs.c: New file.
2514 * Makefile.util.def (libgrubmods): Add bfs.c.
2515 * grub-core/Makefile.core.def (bfs): New module.
2517 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2519 * util/grub-fstest.c (cmd_cp): Clarify error message.
2520 (cmd_cmp): Likewise.
2522 2011-10-30 Yves Blusseau <blusseau@zetam.org>
2524 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
2527 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
2529 Remove afs and befs because of copyright problem.
2531 * grub-core/fs/afs.c: Removed.
2532 * grub-core/fs/afs_be.c: Removed.
2533 * grub-core/fs/befs.c: Removed.
2534 * grub-core/fs/befs_be.c: Removed.
2535 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
2536 * grub-core/Makefile.core.def (afs): Removed.
2539 (befs_be): Likewise.
2541 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2543 Prefer rockridge over Joliet.
2545 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
2547 (set_rockridge): ... here.
2548 (grub_iso9660_mount): Check rockridge on the primary label when
2549 discovering. Ignore Joliet if Rockridge is present.
2551 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2553 Use shifts in nilfs2.
2555 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
2556 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
2557 (grub_nilfs2_palloc_entries_per_group): Replace with ...
2558 (grub_nilfs2_log_palloc_entries_per_group): ... this.
2559 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
2560 (grub_nilfs2_entries_per_block): Replaced with ...
2561 (grub_nilfs2_log_entries_per_block_log): ... this.
2562 (grub_nilfs2_blocks_per_group): Replaced with ...
2563 (grub_nilfs2_blocks_per_group_log): ... this.
2564 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
2565 (grub_nilfs2_blocks_per_desc_block_log): ... this.
2566 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
2567 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
2568 (grub_nilfs2_palloc_entry_offset): Replaced ...
2569 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
2570 (grub_nilfs2_dat_translate): Use shifts.
2571 (grub_nilfs2_read_inode): Likewise.
2572 (GRUB_MOD_INIT): Ensure that logs are correct.
2574 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2576 Use shifts in minix filesystem.
2578 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
2579 (GRUB_MINIX_ZONE2SECT): Likewise.
2580 (grub_minix_data): Replace block_size with log_block_size.
2581 (grub_minix_read_file): Use shifts.
2582 (grub_minix_mount): Check block size and take a logarithm.
2584 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2586 Use shifts in squash4.
2588 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
2589 (squash_mount): Check block size and take logarithm.
2590 (direct_read): Use shifts.
2592 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2594 Correct befs block counting logic.
2596 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
2597 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
2598 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
2599 (grub_afs_read_inode): Use block_shift.
2600 (RANGE_SHIFT): New definition.
2601 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
2602 unexpected conditions, use shifts and appropriate types.
2603 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
2605 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2607 * grub-core/disk/raid.c (scan_devices): Check partition.
2608 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
2610 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2612 Support BFS (befs) UUID.
2614 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
2615 (grub_afs_small_data_element_header): New struct.
2616 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
2617 (grub_afs_read_attribute) [MODE_BFS]: New function.
2618 (grub_afs_iterate_dir): Allocate for complete inode.
2619 (grub_afs_mount): Likewise.
2620 (grub_afs_uuid) [MODE_BFS]: New function.
2621 (grub_afs_fs) [MODE_BFS]: Add .uuid.
2623 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2625 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
2626 (zfs_unmount): Fix memory leak.
2628 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2630 Support NTFS reparse points.
2632 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
2633 (symlink_descriptor): New struct.
2634 (grub_ntfs_read_symlink): New function.
2635 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
2636 (grub_ntfs_open): Likewise.
2638 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2640 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
2642 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2644 fstest xnu_uuid subcommand.
2646 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
2647 grub-core/commands/xnu_uuid.c.
2648 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
2649 (fstest): Handle xnu_uuid.
2650 (options): Document xnu_uuid.
2651 (argp_parser): Parse xnu_uuid.
2653 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2655 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
2656 -l argument. Add newline at the end if printing.
2657 (GRUB_MOD_INIT): Document -l.
2659 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2661 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
2663 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2665 ZFS multi-device and version 33 support.
2667 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
2668 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
2669 (grub_zfs_data): Add multidev-ice-related fields.
2670 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
2671 (dva_get_offset): Make dva const.
2672 (zfs_fetch_nvlist): New function.
2673 (fill_vdev_info_real): Likewise.
2674 (fill_vdev_info): Likewise.
2675 (check_pool_label): Likewise.
2676 (scan_disk): Likewise.
2677 (scan_devices): Likewise.
2678 (read_device): Likewise.
2679 (read_dva): Likewise.
2680 (zio_read_gang): Use read_dva.
2681 (zio_read_data): Likewise.
2682 (zap_leaf_lookup): Add missing endian conversion.
2683 (zap_verify): Add missing endian conversion. All users updated.
2684 (fzap_lookup): Likewise.
2685 (fzap_iterate): Likewise.
2686 (dnode_get_path): Handle SA bonus.
2687 (nvlist_find_value): Make input const. All users updated.
2688 (unmount_device): New function.
2689 (zfs_unmount): Use unmount_device.
2690 (zfs_mount): Use scan_disk.
2691 (zfs_mtime): New function.
2692 (grub_zfs_open): Handle system attributes.
2693 (fill_fs_info): Likewise.
2694 (grub_zfs_dir): Likewise.
2695 (grub_zfs_fs): Add mtime.
2696 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
2697 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
2698 (SA_MTIME_OFFSET): Likewise.
2699 (SA_SYMLINK_OFFSET): Likewise.
2700 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
2701 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
2702 (fstest): Support zfsinfo.
2703 (argp_parser): Likewise.
2705 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2707 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
2710 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2714 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
2715 sharing the same block. Iterate over correct number of indices.
2716 (dnode_get_path): Handle symlinks correctly.
2718 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2720 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
2722 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2726 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
2727 (grub_hfsplus_btree_search): Fix types.
2728 (grub_hfsplus_label): Implement.
2730 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2732 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
2734 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2736 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
2738 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2740 Fix symlink handling on iso9660.
2742 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
2744 (grub_iso9660_susp_iterate): Accept zero-size iterate.
2745 (grub_iso9660_read_symlink): Moved most of code ...
2746 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
2748 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2750 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2751 Use union to avoid breaking strict-aliasing rules.
2753 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2755 Support multi-extent iso files.
2757 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
2759 (grub_fshelp_node): Revamp. All users updated.
2761 (read_node): New function.
2762 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
2764 (grub_iso9660_mount): Don't attempt to read sua when there is none.
2765 (get_node_size): New function.
2766 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
2768 Fix memory leak on . and ..
2769 (grub_iso9660_read): Use read_node.
2770 (grub_iso9660_close): Free node.
2772 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2774 Fix tar 4G limit and handle paths containing dot.
2776 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
2777 (canonicalize): New function.
2778 (grub_cpio_find_file): Use canonicalize. Store offs in
2780 (grub_cpio_dir): Use grub_disk_addr_t.
2781 (grub_cpio_open): Likewise.
2783 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2785 Fix handling of uncompressed blocks on squashfs and break 4G limit.
2787 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
2789 (grub_squash_inode): Add long_file and block_size.
2790 (grub_squash_cache_inode): New struct.
2791 (grub_squash_dirent): Make types into enum.
2792 (SQUASH_TYPE_LONG_REGULAR): New type.
2793 (grub_squash_frag_desc): Add field size.
2794 (SQUASH_BLOCK_FLAGS): New enum.
2795 (grub_squash_data): Use grub_squash_cache_inode.
2796 (grub_fshelp_node): Make ino_chunk 64-bit.
2797 (read_chunk): Minor argument change. All users updated.
2798 (squash_mount): Use correct le_to_cpu.
2799 (grub_squash_open): Handle LONG_REGULAR.
2800 (direct_read): New function.
2801 (grub_squash_read_data): Handle blocks correctly.
2803 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2805 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
2807 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2809 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
2811 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2813 Fix 2G limit on ZFS.
2815 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
2817 (uberblock_verify): Likewise.
2818 (dmu_read): Likewise.
2819 (grub_zfs_read): Likewise. Remove invalid cast.
2821 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2823 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
2824 (grub_jfs_blkno): Fix incorrect shift.
2825 (grub_jfs_read_file): Use more appropriate types.
2827 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2829 Support triple indirect on minix2 and minix3.
2831 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
2832 Declare triple_indir_zone.
2833 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
2836 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2840 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
2841 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
2842 Rename ctime to mtime. All users updated.
2843 (grub_minix_get_file_block): Fix types and double indirect computations.
2845 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2847 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
2848 if no label is found.
2849 (grub_fat_iterate_dir): Fix file size type.
2850 (grub_fat_iterate_dir): Likewise.
2852 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2854 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
2856 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
2857 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
2859 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2861 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
2863 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2865 * util/import_gcry.py: Accept space between # and include.
2867 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2869 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
2871 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2873 Fine grainely disable warnings on lexer. Remove Wno-error on it.
2875 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
2876 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
2878 * grub-core/script/yylex.l: Add fine-grained #pragma.
2880 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2882 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
2883 New inline function.
2884 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
2886 (memset) [GRUB_UTIL]: Likewise.
2887 (memcmp) [GRUB_UTIL]: Likewise.
2889 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2891 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
2892 inline function rather than a define.
2894 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2896 * util/grub-setup.c: Add missing include.
2898 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2900 * util/ieee1275/grub-ofpathname.c: Add missing include.
2902 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2904 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
2905 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
2908 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2910 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
2913 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2915 * util/grub-install.in: Add datarootdir as per automake manual
2917 * util/grub-mknetdir.in: Likewise.
2919 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2921 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
2923 * util/grub.d/10_kfreebsd.in: Likewise.
2924 * util/grub.d/10_linux.in: Likewise.
2925 * util/grub.d/10_netbsd.in: Likewise.
2926 * util/grub.d/10_windows.in: Likewise.
2927 * util/grub.d/20_linux_xen.in: Likewise.
2929 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2931 Remove redundant grub_kernel_image_size.
2933 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
2935 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
2936 the small code. It moves it only by few bytes but simplifies the code.
2937 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
2939 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
2940 (grub_kernel_image_size): Removed.
2941 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
2942 (grub_kernel_image_size): Removed.
2943 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
2944 compiled with Apple toolchain.
2945 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
2946 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
2947 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
2948 (grub_total_module_size): Likewise.
2949 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
2951 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
2952 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
2953 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
2954 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
2955 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
2956 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
2957 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
2958 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
2960 (grub_total_module_size): Removed.
2961 * util/grub-mkimage.c (image_target_desc): Remove image_size.
2962 (image_targets): Likewise.
2963 Set .compressed_size to no field on sparc.
2964 (generate_image): Remove kernel_image_size handling.
2966 2011-10-19 Szymon Janc <szymon@janc.net.pl>
2968 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
2969 NULL pointer dereference.
2971 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2973 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
2974 done with a dedicated section.
2976 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
2977 Ensure the correct position of boot_path.
2978 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
2979 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
2981 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
2982 * include/grub/boot.h: Removed. All references removed.
2983 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
2985 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
2987 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2989 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
2992 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2994 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
2996 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2998 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2999 Don't add the bogus brackets.
3001 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3005 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
3006 * grub-core/Makefile.core.def (exfat): New module.
3007 * grub-core/fs/exfat.c: New file.
3008 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
3009 (GRUB_FAT_ATTR_*): Make into an enum.
3010 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
3011 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
3012 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
3013 (GRUB_FAT_MAXFILE): Removed.
3014 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
3015 (grub_current_fat_bpb_t): New type.
3016 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
3017 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
3018 (grub_fat_dir_node_t): New type.
3019 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
3020 (fat_log2) [MODE_EXFAT]: Removed.
3021 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
3022 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
3023 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
3024 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
3025 (grub_fat_label) [MODE_EXFAT]: New function.
3026 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
3027 reserved_first_sector to 0.
3029 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3031 Move grub_reboot out of the kernel.
3033 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
3034 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
3035 * grub-core/lib/efi/reboot.c: ... here.
3036 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
3037 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
3038 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
3039 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
3040 * grub-core/lib/i386/reboot_trampoline.S: ... here.
3041 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
3042 * grub-core/lib/ieee1275/reboot.c: ... here.
3043 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
3044 * grub-core/lib/mips/arc/reboot.c: ... here.
3045 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
3046 * grub-core/lib/mips/loongson/reboot.c: ...here.
3047 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
3048 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
3049 * include/grub/emu/misc.h (grub_reboot): New function declaration.
3050 * include/grub/i386/reboot.h: New file.
3051 * include/grub/mips/loongson/ec.h: Fix includes.
3052 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
3053 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
3054 * grub-core/lib/i386/reboot.c: New file.
3056 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3058 Make grub_prefix into module to fix the arbitrary limit and save
3061 * grub-core/kern/emu/main.c (grub_prefix): Removed.
3062 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
3063 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
3064 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
3065 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
3066 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
3067 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
3068 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
3069 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
3070 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
3071 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
3072 * include/grub/ia64/efi/kernel.h: Removed.
3073 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
3074 (grub_prefix): Removed.
3075 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
3076 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
3077 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
3078 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
3079 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
3080 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
3081 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
3082 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
3083 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
3084 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
3085 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
3086 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
3087 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
3088 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
3089 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
3090 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
3091 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
3092 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
3093 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
3094 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
3095 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
3096 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
3097 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
3098 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
3099 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
3100 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
3101 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
3102 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
3103 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
3105 * util/grub-mkimage.c (image_target_desc): Removed prefix and
3107 (image_targets): Likewise.
3108 (generate_image): Put prefix as a module.
3110 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3112 Replace grub_module_iterate with FOR_MODULES.
3114 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
3115 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
3116 (grub_efi_modules_addr): ...this.
3117 * grub-core/kern/efi/init.c (grub_modbase): New variable.
3118 (grub_efi_init): Set grub_modbase.
3119 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
3120 (grub_modbase): New variable.
3121 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
3122 (grub_modbase): New variable.
3123 (grub_machine_init): Set grub_modbase.
3124 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
3125 (grub_modbase): New variable.
3126 (grub_machine_init): Set grub_modbase.
3127 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
3128 (grub_modbase): New variable.
3129 (grub_machine_init): Set grub_modbase.
3130 * grub-core/kern/main.c (grub_module_iterate): Remove.
3131 (grub_modules_get_end): Use grub_modbase.
3132 (grub_load_modules): Use FOR_MODULES.
3133 (grub_load_config): Likewise.
3134 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
3135 (grub_modbase): New variable.
3136 (grub_machine_init): Set grub_modbase.
3137 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
3138 (grub_modbase): New variable.
3139 (grub_machine_init): Set grub_modbase.
3140 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
3142 (grub_modbase): New variable.
3143 (grub_machine_init): Set grub_modbase.
3144 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
3145 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
3146 (grub_module_iterate): Likewise.
3147 (grub_modbase): New variable declaration.
3148 (FOR_MODULES): New macro.
3150 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3152 * configure.ac: Check for __ctzdi2 and __ctzsi2.
3153 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
3155 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3157 Fix few obvious type discrepancies.
3159 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
3160 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
3161 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
3163 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
3164 and connected types.
3165 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
3167 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
3168 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
3169 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
3170 and connected types.
3172 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3174 Fix python 3.x incompatibilities.
3176 * gentpl.py: Put brackets around print strings.
3177 * util/import_gcry.py: Open explicitly as utf-8.
3178 Use in instead of has_key.
3180 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3182 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
3183 (GRUB_XFS_INO_AGBITS): Make into inline function.
3184 (GRUB_XFS_INO_INOINAG): Likewise.
3185 (GRUB_XFS_INO_AG): Likewise.
3186 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
3187 (GRUB_XFS_EXTENT_OFFSET): Likewise.
3188 (GRUB_XFS_EXTENT_BLOCK): Likewise.
3189 (GRUB_XFS_EXTENT_SIZE): Likewise.
3190 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
3191 (GRUB_XFS_NEXT_DIRENT): Likewise.
3192 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
3193 (grub_xfs_read_file): Fix offset type.
3195 2011-10-15 Robert Millan <rmh@gnu.org>
3197 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
3199 2011-10-15 Robert Millan <rmh@gnu.org>
3201 Fix build problem on FreeBSD and GNU/kFreeBSD.
3203 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
3205 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3207 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
3209 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
3211 (grub_hfsplus_btree_recoffset): Likewise.
3212 (grub_hfsplus_btree_recptr): Likewise.
3213 (grub_hfsplus_find_block): Likewise.
3214 (grub_hfsplus_btree_search): Likewise.
3215 (grub_hfsplus_read_block): Likewise.
3216 (grub_hfsplus_read_file): Likewise.
3217 (grub_hfsplus_mount): Likewise.
3218 (grub_hfsplus_btree_iterate_node): Likewise.
3219 (grub_hfsplus_btree_search): Likewise.
3220 (grub_hfsplus_iterate_dir): Likewise.
3221 (grub_hfsplus_read): A small code simplification.
3223 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3225 * grub-core/kern/emu/hostdisk.c
3226 (convert_system_partition_to_system_disk): Don't assume that children
3227 of mapper nodes are mapper nodes.
3229 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3231 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
3232 * include/grub/misc.h (grub_isxdigit): New function.
3233 * grub-core/video/colors.c (my_isxdigit): Removed. All users
3234 switched to grub_isxdigit.
3235 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
3236 number starting with a letter.
3238 2011-10-09 Robert Millan <rmh@gnu.org>
3240 LVM support for FreeBSD and GNU/kFreeBSD.
3242 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
3244 (LVM_DEV_MAPPER_STRING): Move from here ...
3245 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
3246 * util/getroot.c: Include `<grub/util/lvm.h>'.
3247 (grub_util_get_dev_abstraction): Enable
3248 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
3249 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
3250 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
3251 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
3253 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
3255 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
3256 when LVM abstraction is required for ${GRUB_DEVICE}.
3258 2011-10-06 Szymon Janc <szymon@janc.net.pl>
3260 Add support for LZO compression in GRUB:
3261 - import of minilzo library,
3262 - LZO decompression for btrfs,
3263 - lzop files decompression.
3265 * grub-core/io/lzopio.c: New file.
3266 * grub-core/lib/adler32.c: Likewise.
3267 * grub-core/lib/minilzo/lzoconf.h: Likewise.
3268 * grub-core/lib/minilzo/lzodefs.h: Likewise.
3269 * grub-core/lib/minilzo/minilzo.c: Likewise.
3270 * grub-core/lib/minilzo/minilzo.h: Likewise.
3271 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
3272 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
3273 grub-core/lib/minilzo/minilzo.c to common.
3274 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
3276 * grub-core/Makefile.core.def (btrfs): Likewise.
3277 * grub-core/Makefile.core.def (lzopio): New module.
3278 (adler32): Likewise.
3279 * grub-core/fs/btrfs.c: Include minilzo.h.
3280 (GRUB_BTRFS_COMPRESSION_LZO): New define.
3281 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
3282 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
3283 (grub_btrfs_lzo_decompress): New function.
3284 (grub_btrfs_extent_read): Add support for LZO compression type.
3285 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
3286 (GRUB_USHRT_MAX): Likewise.
3287 (GRUB_UINT_MAX): Likewise.
3288 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
3289 (UINT_MAX): Likewise.
3290 (CHAR_BIT): Likewise.
3291 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
3292 grub-core/lib/posix_wrap/limits.h
3293 (UCHAR_MAX): Likewise.
3294 * include/grub/file.h (grub_file_filter_id): New compression filter
3295 GRUB_FILE_FILTER_LZOPIO.
3296 * include/grub/file.h (grub_file_filter_id): Set
3297 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
3298 * include/grub/types.h (grub_get_unaligned16): New function.
3299 (grub_get_unaligned32): Likewise.
3300 (grub_get_unaligned64): Likewise.
3301 * util/import_gcry.py (cryptolist): Add adler32.
3303 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
3305 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
3306 in perspective decreases the complexity of build system and fixes
3307 compilation right now.
3309 2011-10-01 Ales Nesrsta <starous@volny.cz>
3311 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
3312 (fixed problem related to using UHCI with coreboot).
3314 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
3316 * gentpl.py: Use Autogen macros so that the output template file
3317 (Makefile.tpl) size is reduced.
3319 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
3321 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
3324 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3326 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
3327 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
3329 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3331 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
3334 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3336 Remove extra declaration of sleep for mingw32.
3338 * util/misc.c (sleep) [__MINGW32__]: Removed.
3339 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
3341 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
3343 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
3345 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
3347 (NETBSD_BTINFO_BOOTWEDGE): New definition.
3348 (grub_netbsd_btinfo_bootwedge): New struct.
3349 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
3351 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
3353 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
3355 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
3358 2011-09-28 Andreas Born <futur.andy@googlemail.com>
3360 Fix incorrect identifiers in bash-completion.
3362 * util/bash-completion.d/grub-completion.bash.in
3363 (_grub_mkpasswd-pbkdf2): Rename to ...
3364 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
3365 (_grub_script-check): Rename to ...
3366 (_grub_script_check): ... this. All users updated.
3368 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3370 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
3371 Return 0 if disk isn't biosdisk.
3373 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
3375 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
3377 * Makefile.util.def (grub-fstest): Likewise.
3379 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
3381 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
3382 Get sector size from disk label.
3384 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
3386 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
3387 */README* as well as README*.
3388 Reported by: Axel Beckert.
3390 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3392 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
3393 case of less than 256 MiB of RAM.
3395 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3397 * grub-core/commands/wildcard.c (make_regex): Handle @.
3399 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3401 * util/grub-install.in: Move cryptodisk logic to appropriate place.
3403 2011-08-21 Szymon Janc <szymon@janc.net.pl>
3405 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
3406 AC_LANG_CONFTEST macros.
3408 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3410 Add grub-fstest option to uncompress data for commands.
3412 * util/grub-fstest.c (uncompress): New var.
3413 (options): New option -u.
3415 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3417 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
3418 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
3420 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3422 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
3423 file type was not recognized correctly (not gzip or corrupted).
3425 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3427 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
3428 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
3430 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3432 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
3434 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
3435 video_radeon_fuloong2e.
3436 * grub-core/video/radeon_fuloong2e.c: New file.
3437 * include/grub/video.h (grub_video_id_t): Add new ID
3438 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
3440 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3442 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
3444 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
3445 that PRID matches the detected subplatform and reset the subplatform
3448 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3450 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
3452 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3454 Fix PCI iterating on functions >= 4.
3456 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
3457 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
3459 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
3460 (grub_pci_read): Fix bitmask.
3461 (grub_pci_read_word): Likewise.
3462 (grub_pci_read_byte): Likewise.
3463 (grub_pci_write): Likewise.
3464 (grub_pci_write_word): Likewise.
3465 (grub_pci_write_byte): Likewise.
3467 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3469 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
3470 can still be specified in TARGET_CFLAGS)
3472 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3474 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
3476 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
3477 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
3478 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
3479 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
3480 (FULOONG): Rename to ...
3481 (FULOONG2F): ... this. All users updated.
3482 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
3483 (machtype_fuloong2f_str): ... this.
3484 (machtype_fuloong2e_str): New string.
3485 Check for machtype_fuloong2e_str.
3486 * grub-core/loader/mips/linux.c (loongson_machtypes)
3487 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
3488 * grub-core/term/serial.c (loongson_defserial)
3489 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
3490 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
3492 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
3494 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
3495 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
3496 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
3497 to IMAGE_FULOONG2F_FLASH. All users updated.
3498 (image_targets): Rename images.
3499 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
3501 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3503 Make enable of disk cache statistics code configurable.
3505 * configure.ac: --enable-cache-stats added.
3506 * config.h.in (DISK_CACHE_STATS): New define.
3507 * grub-core/Makefile.core.def (cacheinfo): New command.
3508 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
3509 * grub-core/commands/cacheinfo.c: New file.
3510 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
3511 moved to cacheinfo.c.
3512 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
3514 * include/grub/disk.h: Likewise.
3516 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3518 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
3519 * grub-core/Makefile.am: Likewise.
3521 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3523 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
3526 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3528 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
3530 (grub_jfs_lookup_symlink): Use correct starting inode.
3532 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3534 * util/grub-setup.c (main): Add missing gcry initialisation.
3536 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3538 Don't accept text modes on EFI when booting Linux.
3540 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
3541 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
3543 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
3544 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3546 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
3547 use of "/path/.." as in grub-install for EFI as well as handling
3549 Fixes Debian bug #637768.
3551 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3553 * util/grub-probe.c: Remove duplicate #include.
3555 2011-08-10 Robert Millan <rmh@gnu.org>
3557 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
3559 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
3561 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
3562 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
3564 2011-08-03 Robert Millan <rmh@gnu.org>
3566 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
3568 Reported by: Zachary Bedell
3570 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3572 * configure.ac: The Loongson port requires grub-mkfont due to its
3573 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
3576 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3578 * util/grub-install.in: Don't source grub-mkconfig_lib until after
3579 processing arguments (otherwise help2man fails when GRUB has not yet
3582 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3584 New script grub-mkstandalone.
3586 * Makefile.util.def (grub-mkstandalone): New script.
3587 * docs/man/grub-mkstandalone.h2m: New file.
3588 * util/grub-mkstandalone.in: Likewise.
3590 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3592 Support ATA disks with 4K sectors.
3594 * include/grub/ata.h (grub_ata): New member log_sector_size.
3595 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
3596 (grub_ata_identify): Read sector size.
3597 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
3599 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3601 * util/grub-install.in: Don't use uhci outside of x86.
3603 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3605 * util/grub-mkrescue.in: Add missing quotes.
3607 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3609 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
3612 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3614 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
3616 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3618 * include/grub/video.h: add missing EXPORT_FUND on
3619 grub_video_edid_checksum and grub_video_edid_preferred_mode.
3621 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3623 * include/grub/mips/kernel.h: Fix define conflict.
3625 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3627 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
3630 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
3632 Preferred resolution detection for VBE.
3634 * grub-core/video/video.c (grub_video_edid_checksum): New function.
3635 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
3636 the Flat Panel extension, in line with the X.org VESA driver.
3637 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
3639 (grub_vbe_bios_get_ddc_capabilities): Likewise.
3640 (grub_vbe_bios_read_edid): Likewise.
3641 (grub_vbe_get_preferred_mode): Likewise.
3642 (grub_video_vbe_setup): When the mode is "auto", try to get the
3643 preferred mode from VBE, and use the largest mode that is no larger
3644 than the preferred mode (some BIOSes expose a preferred mode that is
3645 not in their mode list!). If this fails, fall back to 640x480 as a
3646 safe conservative choice.
3647 (grub_video_vbe_get_edid): New function.
3648 (grub_video_vbe_adapter): Add get_edid.
3649 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
3650 (struct grub_video_adapter): Add get_edid.
3651 (grub_video_edid_checksum): Add prototype.
3652 (grub_video_edid_preferred_mode): Likewise.
3653 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
3656 * grub-core/commands/videoinfo.c (print_edid): New function.
3657 (grub_cmd_videoinfo): Print EDID if available.
3659 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
3660 is more appropriate on a wider range of platforms than 640x480.
3661 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
3664 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3666 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
3668 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3670 * po/POTFILES.in: Regenerate.
3672 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3674 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
3675 incorrect memory usage.
3677 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3679 * util/grub-install.in: Source grub-mkconfig_lib.
3681 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
3683 Remove getroot.c from core on emu platform.
3685 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
3687 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
3689 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
3690 * util/getroot.c (get_win32_path): ... here.
3691 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
3692 * util/getroot.c (fini_libzfs): ... here.
3693 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
3694 * util/getroot.c (grub_get_libzfs_handle): ... here.
3695 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
3697 * util/getroot.c (grub_find_zpool_from_dir): ... here.
3698 * grub-core/kern/emu/misc.c
3699 (grub_make_system_path_relative_to_its_root): Moved from here...
3700 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
3701 * grub-core/kern/emu/getroot.c: Moved from here ...
3702 * util/getroot.c: ... here. All users updated.
3703 * grub-core/kern/emu/raid.c: Moved from here ...
3704 * util/raid.c: ... here. All users updated.
3706 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
3708 * po/POTFILES.in: Regenerate.
3710 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3712 Fix compilation on GNU/Linux.
3714 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
3716 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
3717 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
3718 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
3720 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3721 2011-07-07 Michael Gorven <michael@gorven.za.net>
3722 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
3724 LUKS and GELI support.
3726 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
3727 grub-core/disk/luks.c, grub-core/disk/geli.c,
3728 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
3729 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
3730 grub-core/lib/arg.c.
3731 (libgrubmods.a): Remove gcrypts cflags and cppflags.
3732 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
3733 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
3734 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
3735 (grub-bin2h): Add libgcry.a.
3736 (grub-mkimage): Likewise.
3737 (grub-mkrelpath): Likewise.
3738 (grub-script-check): Likewise.
3739 (grub-editenv): Likewise.
3740 (grub-mkpasswd-pbkdf2): Likewise.
3741 (grub-pe2elf): Likewise.
3742 (grub-fstest): Likewise.
3743 (grub-mkfont): Likewise.
3744 (grub-mkdevicemap): Likewise.
3745 (grub-probe): Likewise.
3746 (grub-ofpath): Likewise.
3747 (grub-mklayout): Likewise.
3748 (example_unit_test): Likewise.
3749 (grub-menulst2cfg): Likewise.
3750 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
3751 * grub-core/Makefile.core.def (cryptodisk): New module.
3754 * grub-core/disk/AFSplitter.c: New file.
3755 * grub-core/disk/cryptodisk.c: Likewise.
3756 * grub-core/disk/geli.c: Likewise.
3757 * grub-core/disk/luks.c: Likewise.
3758 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
3760 (grub_util_get_dm_abstraction): New function.
3761 (grub_util_follow_gpart_up): Likewise.
3762 (grub_util_get_geom_abstraction): Likewise.
3763 (grub_util_get_dev_abstraction): Use new functions.
3764 (grub_util_pull_device): Pull GELI and LUKS.
3765 (grub_util_get_grub_dev): Handle LUKS and GELI.
3766 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
3767 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
3768 (follow_geom_up): Removed.
3769 (grub_util_fd_seek): New function.
3770 (open_device): Use grub_util_fd_seek.
3771 (nread): Rename to ..
3772 (grub_util_fd_read): ... this. All users updated.
3773 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
3774 (grub_crypto_cbc_decrypt): Likewise.
3775 (grub_crypto_hmac_write): Likewise.
3776 (grub_crypto_hmac_buffer): Likewise.
3777 (grub_password_get): Extend to util.
3778 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
3780 (gcry_md_spec) [GRUB_UTIL]: Likewise.
3781 * include/grub/cryptodisk.h: New file.
3782 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
3783 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
3785 (grub_util_follow_gpart_up): New proto.
3786 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
3787 (grub_util_fd_read): Likewise.
3788 (grub_cryptodisk_cheat_mount): Likewise.
3789 (grub_util_cryptodisk_print_uuid): Likewise.
3790 (grub_util_get_fd_sectors): Likewise.
3791 * util/grub-fstest.c (mount_crypt): New var.
3792 (fstest): Mount crypto if requested.
3793 (options): New option -C.
3794 (argp_parser): Parse -C.
3795 (main): Init and fini gcry.
3796 * util/grub-install.in: Support cryptodisk install.
3797 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
3798 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
3800 (prepare_grub_to_access_device): Likewise.
3801 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
3802 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
3803 (probe_cryptodisk_uuid): New function.
3804 (probe_abstraction): Likewise.
3805 (probe): Use new functions.
3806 * util/import_gcry.py: Create Makefile.utilgcry.def.
3809 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3811 Lazy device scanning.
3813 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
3814 (grub-setup): Remove util/raid.c.
3815 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
3816 * grub-core/disk/lvm.c (scan_depth): New variable.
3817 (grub_lvm_iterate): Rescan if necessary.
3818 (find_lv): New function based on grub_lvm_open.
3819 (grub_lvm_open): Use find_lv. Rescan on error.
3820 (is_node_readable): New function.
3821 (is_lv_readable): Likewise.
3822 (grub_lvm_scan_device): Skip already found disks.
3823 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
3824 Stop if searched device is found and readable.
3825 * grub-core/disk/raid.c (inscnt): New variable.
3826 (scan_depth): Likewise.
3827 (scan_devices): New function based on grub_raid_register. Abort if
3828 looked for device is found.
3829 (grub_raid_iterate): Rescan if needed.
3830 (find_array): NEw function based on -grub_raid_open.
3831 (grub_raid_open): Use find_array and rescan.
3832 (insert_array): Set became_readable_at.
3833 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
3834 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
3836 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
3837 (grub_util_pull_device): New function.
3838 (grub_util_get_grub_dev): Call grub_util_pull_device.
3839 * util/raid.c: Moved to ..
3840 * grub-core/kern/emu/raid.c: ... here.
3841 (grub_util_raid_getmembers): New parameter "bootable".
3842 All users updated. Support 1.x.
3843 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
3845 * include/grub/disk.h (grub_disk_pull_t): New enum.
3846 (grub_disk_dev): Change iterate prototype.
3848 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
3850 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
3851 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
3852 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
3853 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
3855 * include/grub/util/raid.h: Removed.
3857 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
3859 * po/POTFILES.in: Regenerate.
3861 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
3863 Unify sparc init with other ieee1275.
3865 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
3866 instead of kern/sparc64/ieee1275/init.c.
3867 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
3868 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
3869 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
3870 grub/machine/kernel.h.
3871 (grub_ieee1275_original_stack) [__sparc__]: New variable.
3872 (grub_claim_heap) [__sparc__]: Use sparc version.
3873 (grub_machine_init): Moved args parsing to
3874 (grub_parse_cmdline): ...this.
3875 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
3876 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
3878 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
3880 Move BOOTP to separate file.
3882 * grub-core/Makefile.core.def (net): Add net/bootp.c.
3883 * grub-core/net/net.c: Move all BOOTP functions to
3884 * grub-core/net/bootp.c: ... here.
3886 Use frame interface on PXE.
3888 * grub-core/Makefile.core.def (pxecmd): Removed.
3889 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
3890 * grub-core/commands/i386/pc/pxecmd.c: Removed.
3891 * grub-core/i386/pc/pxe.c: Moved from here ...
3892 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
3893 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
3894 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
3896 EFI network support.
3898 * grub-core/Makefile.core.def (efinet): New module.
3899 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
3901 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
3903 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
3904 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
3905 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
3906 * grub-core/net/drivers/efi/efinet.c: New file.
3907 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
3908 (grub_efi_net_config): New extern var.
3910 Various cleanups and bugfixes.
3912 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
3914 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
3915 disk declared as partition.
3916 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
3918 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
3919 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
3920 (grub_debug_zalloc): Likewise.
3921 (grub_debug_realloc): Likewise.
3922 (grub_debug_memalign): Likewise.
3923 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
3924 Check that target is IPv4.
3925 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
3926 local-mac-address as fallback.
3927 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
3929 * grub-core/net/ip.c (ipchksum): Rename to ...
3930 (grub_net_ip_chksum): ... this. All users updated.
3931 (grub_net_recv_ip_packets): Special handling for DHCP.
3932 * util/grub-mkimage.c (generate_image): Zero-out aout header.
3934 Unify prefix handling
3936 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
3937 (grub_machine_get_bootlocation): ... this.
3938 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
3939 (grub_machine_get_bootlocation): ... this.
3940 (grub_prefix): New variable.
3942 (root_dev): New variable.
3944 (main): Use new variables.
3945 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
3947 (grub_machine_get_bootlocation): ... this.
3948 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
3949 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
3950 (grub_machine_get_bootlocation): ... this.
3951 (grub_machine_set_prefix): Removed.
3952 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
3953 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
3955 (grub_machine_get_bootlocation): ... this.
3956 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
3957 (grub_set_prefix_and_root): ... this. All users updated.
3958 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
3960 (grub_machine_get_bootlocation): ... this.
3961 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
3962 (grub_machine_get_bootlocation): New proto.
3963 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
3965 Less intrusive and more reliable seek on network implementation.
3967 * grub-core/kern/file.c (grub_file_net_seek): Removed.
3968 (grub_file_seek): Don't call grub_file_net_seek.
3969 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
3970 (grub_net_fs_read_real): .. this.
3971 (grub_net_seek_real): Use net->offset.
3972 (grub_net_fs_read): Seek if necessary.
3974 Unify IEEE1275 netwotk config with the other platforms.
3976 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
3978 (grub_machine_get_bootlocation): Support network.
3979 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
3980 Support type and device parsing.
3981 (grub_ieee1275_get_device_type): New function.
3982 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
3984 (grub_ieee1275_net_config_real): ... this.
3985 (grub_ofnet_probecards): Removed.
3986 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
3987 * include/grub/ieee1275/ofnet.h: Removed.
3988 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
3990 (grub_ieee1275_get_device_type): New function.
3992 Unify network device closing across platforms and make more robust.
3994 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
3996 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
3998 * grub-core/net/net.c (grub_net_network_level_interface_register):
4000 (grub_net_card_unregister): Close all interfaces.
4001 (receive_packets): Don't poll if no iterfaces are registered.
4003 (grub_net_fini_hw): New function.
4004 (grub_net_restore_hw): Likewise.
4005 (fini_hnd): New variable.
4006 (GRUB_MOD_INIT): Register preboot hook.
4007 (GRUB_MOD_FINI): Run and unregister preboot hook.
4009 Poll network cards when idle.
4011 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
4012 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
4013 * grub-core/net/net.c (receive_packets): Save last poll time.
4014 (grub_net_poll_cards_idle_real): New function.
4015 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
4016 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
4017 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
4019 Rename ofnet interfaces.
4021 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
4022 (grub_ofnet_findcards): Use ofnet_%s names.
4024 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
4026 Cleanup socket opening.
4028 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
4029 (grub_net_fs_close): Likewise.
4030 (grub_net_fs_read_real): Use eof member.
4031 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
4032 (+grub_net_udp_close): New inline function.
4034 * include/grub/net/tftp.h: Moved to the top of ...
4035 * grub-core/net/tftp.c: ... here.
4036 * include/grub/net/ip.h: Moved mostly to the top of ...
4037 * grub-core/net/ip.c: ... here.
4038 * include/grub/net/ethernet.h: Moved mostly to the top of ...
4039 * grub-core/net/ethernet.c: ... here.
4041 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
4043 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
4046 * include/grub/net/ip.h (ipv4_ini): Removed.
4047 (ipv4_fini): Likewise.
4049 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
4050 (grub_net_send_ip_packets): Likewise.
4052 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4054 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
4055 grub_read_cmos prototype.
4057 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4059 VGA text support in qemu-mips
4061 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
4062 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
4063 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
4065 * grub-core/kern/i386/qemu/init.c: Renamed to ...
4066 * grub-core/kern/vga_init.c: ... this.
4067 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
4068 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
4069 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
4071 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
4072 GRUB_MACHINE_PCI_IO_BASE.
4074 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4076 MIPS qemu flash support.
4078 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
4080 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
4081 (grub_machine_init): Probe memory if its size isn't known.
4082 * util/grub-mkimage.c (image_targets): Add flash targets.
4083 (generate_image): Handle flash targets.
4085 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4087 MIPS qemu at_keyboard support.
4089 * gentpl.py (videoinkernel): Add qemu-mips.
4090 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
4091 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
4092 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
4094 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
4095 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
4096 * grub-core/term/serial.c (grub_serial_register)
4097 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
4099 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4101 CMOS support on sparc.
4103 * gentpl.py (cmos): Add powerpc and sparc.
4104 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
4106 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
4107 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
4108 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
4109 grub_set_datetime_cmos.
4110 * grub-core/lib/ieee1275/cmos.c: New file.
4111 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
4112 (find_rtc): Set no_ieee1275_rtc on error.
4113 (grub_get_datetime): Call grub_get_datetime_cmos on error.
4114 (grub_set_datetime): Call grub_set_datetime_cmos on error.
4115 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
4116 fail. Move value to argument. All users updated
4117 (grub_cmos_write): Likewise.
4118 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
4119 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
4120 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
4121 grub_get_datetime_cmos and grub_set_datetime_cmos.
4123 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
4125 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
4126 sourcing grub-mkconfig_lib.
4127 * util/update-grub_lib.in: Likewise.
4128 * util/grub.d/00_header.in: Likewise.
4129 * util/grub.d/10_hurd.in: Likewise.
4130 * util/grub.d/10_kfreebsd.in: Likewise.
4131 * util/grub.d/10_linux.in: Likewise.
4132 * util/grub.d/10_netbsd.in: Likewise.
4133 * util/grub.d/10_windows.in: Likewise.
4134 * util/grub.d/20_linux_xen.in: Likewise.
4135 * util/grub.d/30_os-prober.in: Likewise.
4137 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
4139 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
4140 default_bg_color rather than black.
4141 (grub_gfxterm_fullscreen): Likewise.
4142 (grub_gfxterm_background_color_cmd): Save new background color in
4145 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4147 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
4149 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4151 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
4154 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4156 Chainloading on coreboot support.
4158 * grub-core/Makefile.core.def (chain): Add coreboot.
4159 * grub-core/loader/i386/coreboot/chainloader.c: New file.
4161 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4163 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
4166 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4168 Implement time command.
4170 * grub-core/Makefile.core.def (time): New module.
4171 * grub-core/commands/time.c: New file.
4172 * grub-core/script/parser.y: Remove "time" keyword.
4173 * grub-core/script/yylex.l: Likewise.
4175 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4177 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
4179 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4181 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
4182 when handling leftovers.
4184 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4186 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
4187 so that help2man doesn't fail.
4189 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4191 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
4192 type in pointers on sparc64.
4193 (get_card_packet): Likewise.
4195 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
4197 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
4199 (grub_cmd_videoinfo): Fetch current video mode.
4201 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4203 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
4204 because of underlying system restrictions.
4206 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4208 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
4211 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4213 Coreboot video support.
4215 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
4217 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
4218 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
4220 * grub-core/kern/i386/int.S: ... here.
4221 * grub-core/video/i386/pc/vbe.c: Updated includes.
4222 * grub-core/video/i386/pc/vga.c: Likewise.
4223 * include/grub/i386/coreboot/memory.h
4224 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
4225 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
4226 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
4227 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
4229 * include/grub/i386/pc/vga.h: Removed. All users updated.
4231 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4233 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
4234 definitions for dprintf.
4235 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
4237 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4239 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
4241 (get_card_packet): Likewise.
4243 2011-06-26 Yves Blusseau <blusseau@zetam.org>
4245 Display the path of the file when file is not found
4247 * grub-core/fs/fat.c: Display the filename when file is not found.
4248 * grub-core/fs/fshelp.c: Likewise.
4249 * grub-core/fs/hfs.c: Likewise.
4250 * grub-core/fs/jfs.c: Likewise.
4251 * grub-core/fs/minix.c: Likewise.
4252 * grub-core/fs/ufs.c: Likewise.
4253 * grub-core/fs/btrfs.c: Likewise.
4254 * grub-core/commands/i386/pc/play.c: Likewise.
4256 2011-06-26 Szymon Janc <szymon@janc.net.pl>
4258 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
4259 pointer checks before calling grub_free().
4260 * grub-core/commands/wildcard.c (match_devices): Likewise.
4261 * grub-core/commands/wildcard.c (match_files): Likewise.
4262 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
4263 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
4264 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
4265 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
4266 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
4267 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
4268 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
4269 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
4270 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
4272 2011-06-25 Patrick <p55@mailinator.com>
4274 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
4276 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4278 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
4279 (grub_pxe_send): Likewise.
4280 (GRUB_MOD_INIT): Fix types.
4282 2011-06-24 Szymon Janc <szymon@janc.net.pl>
4284 * grub-core/io/xzio.c: Fix code style issues
4286 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4287 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
4289 Network infrastructure.
4290 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
4292 * include/grub/net/arp.h: New file.
4293 * include/grub/net/device.h: Likewise.
4294 * include/grub/net/ethernet.h: Likewise.
4295 * include/grub/net/ip.h: Likewise.
4296 * include/grub/net/netbuff.h: Likewise.
4297 * include/grub/net/tftp.h: Likewise.
4298 * include/grub/net/udp.h: Likewise.
4299 * include/grub/ieee1275/ofnet.h: Likewise.
4300 * include/grub/emu/export.h: Likewise.
4301 * include/grub/net.h: Likewise.
4302 * grub-core/net/arp.c: Likewise.
4303 * grub-core/net/ethernet.c: Likewise.
4304 * grub-core/net/ip.c: Likewise.
4305 * grub-core/net/udp.c: Likewise.
4306 * grub-core/net/tftp.c: Likewise.
4307 * grub-core/net/netbuff.c: Likewise.
4308 * grub-core/net/net.c: Likewise.
4309 * grub-core/net/drivers/emu/emunet.c: Likewise.
4310 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
4311 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
4313 * grub-core/Makefile.core.def (net): New module.
4317 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
4319 * grub-core/kern/device.c (grub_net_open) : New variable.
4320 (grub_device_open): Handle network device.
4321 (grub_device_close): Likewise.
4322 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
4323 (grub_grubnet_fini): Likewise.
4324 (grub_file_seek): Seek in network device.
4325 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
4326 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
4328 (grub_machine_fini): Call grub_grubnet_fini.
4329 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
4331 (grub_ieee1275_get_aliasdevname): New function.
4332 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
4333 Add unofficial Solaris network info.
4334 (grub_multiboot_make_mbi): Likewise.
4335 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
4336 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
4337 * include/grub/device.h (grub_fs): Removed.
4338 * include/grub/err.h (grub_err_t): Add network-related values.
4339 * include/grub/i386/pc/pxe.h: Removed bootp parts.
4340 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
4341 (grub_ieee1275_get_aliasdevname): New proto.
4342 * include/grub/net.h: Rewritten.
4344 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4346 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
4349 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4351 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
4352 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
4353 it truncates the output.
4354 Reported by: Ximin Luo.
4356 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4358 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
4360 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4362 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
4363 partmap before abstraction.
4365 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
4367 * util/grub-mkconfig_lib.in: Add missing quotes.
4369 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4371 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
4372 old method if mountinfo would return /dev/root and /dev/root doesn't
4375 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4379 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
4380 (decomp_table): Add zlib entries.
4381 (zio_read): USe 8 bits for compression function rather than 3.
4382 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
4384 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4386 * grub-core/disk/ahci.c: Add missing license statements.
4387 * grub-core/fs/romfs.c: Likewise.
4388 * grub-core/lib/ia64/setjmp.S: Likewise.
4389 * grub-core/loader/i386/pc/freedos.c: Likewise.
4390 * grub-core/loader/ia64/efi/linux.c: Likewise.
4391 * grub-core/video/colors.c: Likewise.
4392 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
4394 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4398 * grub-core/Makefile.core.def (ata_pthru): Removed.
4401 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
4403 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
4405 (grub_hdparm_do_check_powermode_cmd): Likewise.
4406 (grub_hdparm_do_smart_cmd): Likewise.
4407 (grub_hdparm_set_val_cmd): Likewise.
4408 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
4409 * grub-core/disk/ahci.c: New file.
4410 * grub-core/disk/ata.c: Factor out the low-level part into ...
4411 * grub-core/disk/pata.c: ... here.
4412 * grub-core/disk/ata_pthru.c: Contents moved to ...
4413 * grub-core/disk/pata.c: ... here.
4414 * grub-core/disk/scsi.c (grub_scsi_names): New array.
4415 (grub_scsi_iterate): Use grub_scsi_names.
4416 (grub_scsi_open): Likewise.
4417 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
4418 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
4419 (grub_ata_regs_t): New struct.
4420 (grub_disk_ata_pass_through_parms): Likewise.
4421 (grub_ata_device): Renamed to ...
4422 (grub_ata): ... this.
4423 (grub_ata_dev): New struct.
4424 Removed all low-level inline functions.
4425 * include/grub/scsi.h: Add PATA and AHCI subsystems.
4426 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
4427 iterate hooks and open. All users updated.
4428 * util/grub-install.in: Handle AHCI disk module.
4430 2011-06-23 Szymon Janc <szymon@janc.net.pl>
4432 Add support for DRI and RSTn markers in JPEG files.
4434 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
4435 (JPEG_MARKER_RST0): Likewise.
4436 (JPEG_MARKER_RST1): Likewise.
4437 (JPEG_MARKER_RST2): Likewise.
4438 (JPEG_MARKER_RST3): Likewise.
4439 (JPEG_MARKER_RST4): Likewise.
4440 (JPEG_MARKER_RST5): Likewise.
4441 (JPEG_MARKER_RST6): Likewise.
4442 (JPEG_MARKER_RST7): Likewise.
4443 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
4444 (grub_jpeg_decode_dri): New function.
4445 (grub_jpeg_decode_sos): Move image data related part into
4446 grub_jpeg_decode_data function.
4447 (grub_jpeg_decode_data): New function.
4448 (grub_jpeg_reset): New function.
4449 (grub_jpeg_decode_jpeg): Handle new markers.
4451 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4453 * util/ieee1275/ofpath.c (check_sas): Close fd.
4454 (main): Free of_path.
4455 Reported by: David Volgyes <dvolgyes>.
4457 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4459 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
4460 Reported by: David Volgyes <dvolgyes>.
4462 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4464 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
4466 Reported by: David Volgyes <dvolgyes>.
4468 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4470 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
4472 Reported by: David Volgyes <dvolgyes>.
4474 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4476 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
4477 Prevent memory leak.
4479 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4481 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
4483 Reported by: David Volgyes <dvolgyes>.
4485 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4487 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
4488 to continue if allocation is failed.
4490 Reported by: David Volgyes <dvolgyes>.
4492 2011-06-23 David Volgyes <dvolgyes>
4494 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
4497 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4499 Fix spurious warning.
4501 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
4502 (acorn_partition_map_find): Use .bin member.
4504 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4506 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
4507 /dev/root as a valid device.
4509 2011-06-23 Jim Meyering <meyering@redhat.com>
4511 Avoid NULL deref in grub_device_open.
4513 * grub-core/kern/device.c (grub_device_open): Don't dereference
4514 a NULL pointer upon failed grub_env_get.
4516 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4518 Support non-512B sectors and agglomerate reads.
4520 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
4521 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
4522 (disk_io_guid): Removed.
4523 (make_devices): Locate solely by BlockIO.
4524 (grub_efidisk_open): Fill log_sector_size and total_sectors.
4525 (grub_efidisk_read): Use read_blocks.
4526 (grub_efidisk_write): Use write_blocks.
4527 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
4529 (get_safe_sectors): Handle non-512B sectors.
4530 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
4532 (grub_biosdisk_write): Handle non-512B sectors.
4533 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
4534 (grub_scsi_read): Remove special non-512B block handling (now handled
4536 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
4537 and do sanity checks.
4538 (grub_disk_adjust_range): Handle non-512B sectors.
4539 (transform_sector): New function.
4540 (grub_disk_read_small): Likewise.
4541 (grub_disk_read): Rewritten.
4542 (grub_disk_write): Handle non-512B sectors.
4543 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
4545 (open_device): Use log_sector_size.
4546 (grub_util_biosdisk_read): Likewise.
4547 (grub_util_biosdisk_write): Likewise.
4548 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
4550 (pc_partition_map_embed): Likewise.
4551 * include/grub/disk.h (grub_disk): New field log_sector_size.
4552 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
4553 (GRUB_DISK_CACHE_BITS): Increased to 6.
4554 * util/grub-fstest.c (fstest): New command testload.
4555 (argp_parser): Likewise.
4557 2011-06-16 Robert Millan <rmh@gnu.org>
4559 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
4560 `ata' driver on kernel of FreeBSD 9.
4562 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
4563 (get_ataraid_disk_name): New functions.
4564 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
4565 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
4566 get_ataraid_disk_name() and get_ada_disk_name().
4568 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
4570 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
4573 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
4575 * docs/grub.texi (Obtaining and Building GRUB): Substitute
4576 `ftp.gnu.org' for `alpha.gnu.org'.
4578 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4580 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
4581 partitions under /dev/disk/by-id/.
4583 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4585 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
4586 after ten consecutive open failures. Scanning all the way up to
4587 10000 is excessive and can cause serious performance problems in
4588 some configurations.
4589 Fixes Ubuntu bug #787461.
4591 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4593 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
4596 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
4597 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4599 Don't stat devices unless we have to.
4601 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
4603 (grub_guess_root_device): Use already known os_dev if possible.
4604 * grub-core/kern/emu/hostdisk.c
4605 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
4606 if device is known to be a dm one.
4608 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
4610 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
4611 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
4612 Reported by: Pawel Tecza.
4614 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
4616 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
4617 (lsefisystab): Likewise.
4619 (lsefimmap): Likewise.
4620 (hdparm): Enable on qemu-mips.
4621 (setjmp): Add ia64 nodist.
4622 (serial): Simplify tags.
4624 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4626 * Makefile.util.def (grub-ofpathname): Install manual page.
4628 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4630 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
4632 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4634 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
4636 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4638 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
4641 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4643 Use full 64-bit division.
4645 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
4646 (grub_divmod64): ... this.
4647 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
4650 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4652 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
4655 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4657 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
4658 to avoid accidents when debugging with 'sh -x'.
4659 * grub-core/gensyminfo.sh.in: Likewise.
4660 * tests/example_scripted_test.in: Likewise.
4661 * tests/grub_cmd_regexp.in: Likewise.
4662 * tests/grub_script_blanklines.in: Likewise.
4663 * tests/grub_script_dollar.in: Likewise.
4664 * tests/grub_script_expansion.in: Likewise.
4665 * tests/grub_script_final_semicolon.in: Likewise.
4666 * tests/partmap_test.in: Likewise.
4667 * tests/util/grub-shell-tester.in: Likewise.
4668 * tests/util/grub-shell.in: Likewise.
4670 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4672 Move gfxmenu color handling to video, so that gfxterm can use it
4675 * grub-core/gfxmenu/named_colors.c: Move to ...
4676 * grub-core/video/colors.c: ... here. Rename
4677 grub_gui_get_named_color to grub_video_get_named_color.
4678 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
4679 * grub-core/video/colors.c (my_isxdigit): ... here.
4680 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
4682 * grub-core/video/colors.c (parse_hex_color_component): ... here.
4683 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
4685 * grub-core/video/colors.c (grub_video_parse_color): ... here.
4687 * include/grub/gui.h (grub_gui_color_t): Move to ...
4688 * include/grub/video.h (grub_video_rgba_color_t): ... here.
4689 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
4690 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
4691 * include/grub/gui.h (grub_gui_map_color): Move to ...
4692 * include/grub/video.h (grub_video_map_rgba_color): ... here.
4693 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
4695 * include/grub/video.h (grub_video_get_named_color): ... here.
4696 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
4697 * include/grub/video.h (grub_video_parse_color): ... here.
4699 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
4701 (gfxmenu): Remove gfxmenu/named_colors.c.
4702 (video) [videomodules]: Add video/colors.c.
4704 Add a background_color command.
4706 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
4708 (GRUB_MOD_INIT): Register background_color command.
4709 (GRUB_MOD_FINI): Unregister background_color command.
4710 (redraw_screen_rect): Allow blend/replace of text layer to be
4711 controlled independently from whether there is a background bitmap.
4712 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
4715 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4717 Patch BPB in ntldr and chainloader --bpb.
4719 * grub-core/fs/fat.c: Include grub/fat.h.
4720 (grub_fat_bpb): Moved to ...
4721 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
4722 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
4724 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
4726 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
4728 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
4730 (grub_chainloader_cmd): Patch BPB if --bpb is given.
4731 (GRUB_MOD_INIT): Show --bpb.
4732 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
4733 * grub-core/normal/main.c (features): New variable.
4734 (GRUB_MOD_INIT): Set feature_* variables.
4735 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
4737 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
4739 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4741 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
4744 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4746 FreeDOS direct loading support.
4748 * docs/grub.texi (Supported OS): Add FreeDOS.
4749 * grub-core/Makefile.core.def (freedos): New module.
4750 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
4752 (grub_relocator16_boot): Handle %ebx.
4753 * grub-core/lib/i386/relocator16.S: Likewise.
4754 * grub-core/loader/i386/pc/freedos.c: New file.
4756 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4758 Long Linux command line support.
4760 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
4761 (maximal_cmdline_size): New variable.
4762 (allocate_pages): Use maximal_cmdline_size.
4763 (grub_cmd_linux): Set and use maximal_cmdline_size.
4764 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
4765 (allocate_pages): Use maximal_cmdline_size.
4766 (grub_cmd_linux): Set and use maximal_cmdline_size.
4767 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
4768 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
4771 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4772 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4774 Improve devmapper support
4776 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
4777 (grub_util_is_lvm): New function.
4778 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
4779 than lvm if not dmraid.
4780 Handle mapped md nodes.
4781 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
4782 (grub_util_device_is_mapped): ... this. Make always available. All users
4784 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
4785 (convert_system_partition_to_system_disk): Handle lvm, mpath and
4787 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
4789 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4791 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
4793 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
4794 * grub-core/modinfo.sh.in: New file.
4795 * grub-core/Makefile.core.def (modinfo.sh): New script.
4796 * util/grub-mknetdir.in: Use modinfo.sh.
4797 * util/grub-mkrescue.in: Likewise.
4799 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4801 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
4802 Fix potential usage of Elf32 instead of Elf64 when compiling on
4803 32-bit architecture. Add endianness macros while on it.
4805 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4807 Use mipsel- rather than mips- in directories involving mipsel ports to
4808 allow both endiannesses coexist.
4810 * configure.ac: proparate target_cpu=mipsel rather than resetting to
4811 mips. All conditions adjusted.
4812 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
4814 * util/grub-install.in: Adjust conditions to take renaming into account.
4815 * util/grub-mkimage.c (image_targets): Likewise. New target
4816 mips-qemu_mips-elf for bigendian mips.
4818 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4820 Avoid unnecessary copying on MIPS.
4822 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
4823 early if src == dest.
4824 * util/grub-mkimage.c (generate_image): Arange for src == dest if
4825 compression is none.
4827 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4829 Reduce memory footprint on SGI by putting modules before the kernel
4830 as opposed to after.
4832 * grub-core/Makefile.core.def (kernel): Increase linking address.
4833 (none_decompress): Likewise.
4834 (xz_decompress): Likewise.
4835 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
4837 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
4839 (grub_arch_modules_addr): New function.
4840 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
4841 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
4842 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
4844 * grub-core/kern/mips/startup.S (total_size): Rename to ...
4845 (grub_total_modules_size): ... this. Make global.
4846 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
4847 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
4849 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
4850 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
4851 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
4852 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
4853 * util/grub-mkimage.c (image_target_desc): New flag
4854 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
4855 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
4856 (generate_image): Handle images with modules before kernel.
4858 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4860 Prevent potential loss of memory map by overwrite on qemu-mips.
4862 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
4863 Save ram size in $s4.
4864 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
4865 All users changed to grub_arch_memsize.
4866 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
4868 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
4869 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
4870 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
4873 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4875 * .bzrignore: Remove grub-dumpbios.
4877 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4879 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
4880 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
4881 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
4882 existing options which append).
4883 * docs/grub.texi (Simple configuration): Document new options.
4884 Reported by: Ian Jackson. Fixes Debian bug #617538.
4886 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4888 * util/grub-fstest.c (cmd_cat): New function.
4889 (fstest): Handle CMD_CAT.
4891 (argp_parser): Handle cat.
4893 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4895 * Makefile.util.def (grub-bin2h): Don't install.
4896 * docs/man/grub-bin2h.h2m: Remove.
4898 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4900 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
4903 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4905 Reenable qemu-mips port.
4907 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
4908 Fix small arc bug while on it.
4909 * gentpl.py: Handle qemu_mips.
4910 * grub-core/Makefile.am: Likewise.
4911 * grub-core/Makefile.core.def: Likewise.
4912 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
4913 inappropriate includes.
4914 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
4915 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
4916 * grub-core/kern/main.c (grub_modules_get_end)
4917 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
4918 * grub-core/kern/mips/qemu-mips: Moved to ..
4919 * grub-core/kern/mips/qemu_mips: ... this.
4920 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
4921 (grub_machine_init): Call terminfo_init and serial_init.
4922 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
4923 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
4925 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
4927 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
4928 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
4929 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
4930 * include/grub/mips/qemu_mips/cmos.h: New file.
4931 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
4932 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
4934 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
4935 Use correct mips-style address.
4936 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
4937 (GRUB_TICKS_PER_SECOND): Removed.
4938 (grub_get_rtc): Likewise.
4939 (grub_cpu_idle): Likewise.
4940 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
4942 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
4943 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
4944 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
4945 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
4946 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
4947 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
4948 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
4949 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
4951 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4955 * Makefile.util.def (libgrubmods.a): Add dvh.c.
4956 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
4958 * configure.ac: New target mips-arc.
4959 * gentpl.py: Likewise.
4960 * grub-core/Makefile.am: Likewise.
4961 * grub-core/Makefile.core.def: Likewise.
4962 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
4963 (none_decompress): Likewise.
4964 (lsdev): New module.
4965 (datetime): Use lib/arc/datetime.c on ARC.
4966 (part_dvh): New module.
4967 * grub-core/commands/arc/lsdev.c: New file.
4968 * grub-core/disk/arc/arcdisk.c: Likewise.
4969 * grub-core/kern/mips/arc/init.c: Likewise.
4970 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
4972 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
4974 (grub_arch_dl_relocate_symbols): Likewise.
4975 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
4976 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
4977 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
4979 * grub-core/lib/arc/datetime.c: New file.
4980 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
4981 pci.h on non-loongson.
4982 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
4983 (grub_linux_boot): Set unused registers to 0.
4984 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
4985 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
4986 * grub-core/mmap/mips/uppermem.c: ...here.
4987 * grub-core/partmap/dvh.c: New file.
4988 * grub-core/term/arc/console.c: Likewise.
4989 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
4990 (grub_terminfo_set_current): Add terminal "arc".
4991 (grub_terminfo_readkey): Support ARC sequences.
4992 * include/grub/arc/arc.h: New file.
4993 * include/grub/arc/console.h: Likewise.
4994 * include/grub/disk.h (grub_disk_dev_id): Add
4995 GRUB_DISK_DEVICE_ARCDISK_ID.
4996 * include/grub/mips/arc/kernel.h: New file.
4997 * include/grub/mips/arc/memory.h: Likewise.
4998 * include/grub/mips/arc/time.h: Likewise.
4999 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
5000 * include/grub/mips/kernel.h (grub_halt): ... here.
5001 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
5003 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
5004 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
5005 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
5006 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
5008 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
5010 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
5011 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
5012 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
5013 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
5014 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
5015 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
5016 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
5017 (grub_phys_addr_t): Moved from here ...
5018 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
5019 (grub_vtop): Moved from here ...
5020 * include/grub/mips/memory.h (grub_vtop): ... here.
5021 (grub_map_memory): Moved from here ...
5022 * include/grub/mips/memory.h (grub_map_memory): ... here.
5023 (grub_unmap_memory): Moved from here ...
5024 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
5025 (grub_machine_mmap_iterate): Moved from here ...
5026 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
5027 (grub_mmap_get_lower): Moved from here ...
5028 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
5029 (grub_mmap_get_upper): Moved from here ...
5030 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
5031 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
5033 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
5034 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
5036 * include/grub/mips/time.h (grub_get_rtc): ... here.
5037 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
5039 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
5040 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
5042 * include/grub/mips/time.h (grub_cpu_idle): ... here.
5043 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
5045 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
5046 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
5047 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
5048 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
5049 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
5050 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
5051 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
5052 (GRUB_MACHINE_LINK_ADDR): Likewise.
5053 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
5055 * util/grub-install.in: Run dvhtool on ARC.
5056 * util/grub-mkimage.c (image_targets): Add mips-arc.
5057 (generate_image): Handle ECOFF output for mips-arc.
5059 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5061 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
5064 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5066 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
5067 after enabling port.
5069 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5071 Skip incorrect USB devices.
5073 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
5075 * include/grub/usb.h (grub_usb_err_t): New enum value
5076 GRUB_USB_ERR_BADDEVICE.
5078 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5080 Fuloong video init support.
5082 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
5084 (grub_vga_read_arx): New function.
5085 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
5087 (framebuffer): New members io, mmioptr and mmiobase.
5088 (read_sis_cmd): New function.
5089 (write_sis_cmd): Likewise.
5090 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
5091 rather than 640x400.
5092 * grub-core/video/sis315_init.c: New file.
5094 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5096 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
5098 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
5099 to grub_dl_register_symbol.
5101 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5103 Fix compilation errors.
5105 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
5107 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
5108 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
5109 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
5110 to loongson machines.
5112 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5114 Several FS mtime support.
5116 * grub-core/fs/affs.c (grub_affs_time): New struct.
5117 (grub_affs_file): New field mtime.
5118 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
5119 type. Removed 'size'. New field 'di'. All users updated.
5120 (grub_affs_mount): Simplify checsum checking.
5121 (grub_affs_iterate_dir): New helper grub_affs_create_node.
5122 (grub_affs_dir): Handle mtime.
5123 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
5124 (grub_cpio_dir): Likewise.
5125 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
5126 (grub_hfs_filerec): New field mtime.
5127 (grub_hfs_dir): Handle mtime.
5128 (grub_hfs_mtime): New function.
5129 (grub_hfs_fs): Register grub_hfs_mtime.
5130 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
5131 (grub_iso9660_dir): New field mtime.
5132 (grub_fshelp_node): New field dirent.
5133 (iso9660_to_unixtime): New function.
5134 (iso9660_to_unixtime2): Likewise.
5135 (grub_iso9660_read_symlink): Use node->dirent.
5136 (grub_iso9660_iterate_dir): Likewise.
5137 (grub_iso9660_dir): Set mtime.
5138 (grub_iso9660_mtime): New function.
5139 (grub_iso9660_fs): Register grub_iso9660_mtime.
5140 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
5141 (grub_jfs_inode): New fields atime, ctime and mtime.
5142 (grub_jfs_dir): Set mtime.
5143 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
5144 * grub-core/fs/ntfs.c (list_file): Set mtime.
5145 (grub_ntfs_dir): Likewise.
5146 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
5147 (grub_reiserfs_iterate_dir): Set mtime.
5148 (grub_reiserfs_dir): Likewise.
5149 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
5150 (grub_fshelp_node): Likewise.
5151 (grub_sfs_iterate_dir): Set mtime.
5152 (grub_sfs_dir): Likewise.
5153 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
5154 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
5155 (grub_xfs_inode): New fields atime, mtime, ctime.
5156 (grub_xfs_dir): Set mtime.
5157 * include/grub/datetime.h (grub_datetime2unixtime): New function.
5158 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
5159 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
5161 Support UDF symlinks.
5163 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
5164 (grub_ufs_read_symlink): New function. All users updated.
5166 Check amiga partmap checksum.
5168 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
5169 (grub_amiga_partition): Likewise.
5170 (amiga_partition_map_checksum): New function.
5171 (amiga_partition_map_iterate): Check checksum.
5173 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5177 * Makefile.util.def (libgrubmods.a): Add romfs.
5178 * grub-core/Makefile.core.def (romfs): New module.
5179 * grub-core/fs/romfs.c: New file.
5181 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5183 Squashfs v4 support.
5185 * Makefile.util.def (libgrubmods.a): Add squash4.
5186 * grub-core/Makefile.core.def (squash4): New module.
5187 * grub-core/fs/squash4.c: New file.
5188 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
5189 disk_input_start, disk_input.
5190 (get_byte): Handle disk_input.
5191 (grub_zlib_disk_read): New function.
5192 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
5194 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5195 2011-05-15 Feiran Zheng <famcool@gmail.com>
5197 * Makefile.util.def (libgrubmods.a): Add minix3.
5198 * grub-core/Makefile.core.def (minix3): New module.
5199 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
5200 (GRUB_MINIX_BSIZE): Removed.
5201 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
5202 (grub_minix_ino_t): New type.
5203 (grub_minix_le_to_cpu_ino): New macro.
5204 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
5205 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
5206 (grub_minix_data): New field block_size.
5207 (grub_minix_read_file): Handle 64-bit correctly.
5208 * grub-core/fs/minix3.c: New file.
5210 2011-05-15 Tristan Gingold <gingold@free.fr>
5211 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
5212 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5216 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
5217 * configure.ac: Add ia64-efi target.
5218 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
5219 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
5220 * gentpl.py: Add ia64_efi platform.
5221 Rename x86_efi to efi and Add ia64-efi. All users updated.
5222 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
5223 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
5224 Remove kern/generic/rtc_get_time_ms.c on EFI.
5225 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
5226 kern/ia64/dl_helper.c on ia64-efi.
5227 Add kern/emu/cache.c on emu.
5228 (linux): Use on loader/ia64/efi/linux.c on ia64.
5229 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
5230 whether symbol is a function.
5231 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
5232 (grub_symbol): New field 'isfunc'.
5233 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
5234 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
5235 (grub_dl_load_segments): Place all sections into the same region.
5236 [__ia64__]: Create trampolines and got.
5237 [GRUB_MACHINE_EMU]: Call mprotect.
5238 (grub_dl_resolve_symbols): Resolve symbol type as well.
5239 [__ia64__]: Create function descriptors.
5240 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
5241 (grub_rtc_get_time_ms): ... this. Expressions simplified.
5242 (grub_get_rtc): New function.
5243 * grub-core/kern/emu/cache.c [__ia64__]: New file.
5244 * grub-core/kern/emu/cache.S: Renamed to ...
5245 * grub-core/kern/emu/cache_s.S: ... this.
5246 [__ia64__]: Add a nop.
5247 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
5248 [__ia64__]: New function.
5249 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
5250 * grub-core/kern/ia64/dl.c: New file.
5251 * grub-core/kern/ia64/dl_helper.c: Likewise.
5252 * grub-core/kern/ia64/efi/init.c: New file.
5253 * grub-core/kern/ia64/efi/startup.S: Likewise.
5254 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
5255 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
5256 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
5257 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
5258 * grub-core/loader/ia64/efi/linux.c: New file.
5259 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
5260 (GRUB_MOD_DEP): Likewise.
5261 (grub_dl) [__ia64__]: New fields got and tramp.
5262 (grub_dl): New field 'base'.
5263 (grub_dl_register_symbol): New argument isfunc. All users updated.
5264 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
5265 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
5266 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
5267 (grub_ia64_dl_get_tramp_got_size): New proto.
5268 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
5269 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
5270 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
5271 * include/grub/efi/api.h: Skip call wrappers on ia64.
5272 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
5273 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
5274 * include/grub/elf.h (ELF_ST_INFO): New definition.
5275 * include/grub/ia64/efi/kernel.h: New file.
5276 * include/grub/ia64/efi/memory.h: Likewise.
5277 * include/grub/ia64/efi/time.h: Likewise.
5278 * include/grub/ia64/kernel.h: Likewise.
5279 * include/grub/ia64/setjmp.h: Likewise (from glibc).
5280 * include/grub/ia64/time.h: New file.
5281 * include/grub/ia64/types.h: Likewise.
5282 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
5283 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
5285 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
5286 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
5287 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
5288 * util/grub-mkimage.c (image_target_desc): New field pe_target.
5290 (EFI64_HEADER_SIZE): New definition. All users updated.
5291 (image_targets): Add ia64-efi.
5292 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
5293 jumpers_addr. All users updated.
5294 Create function descriptors.
5295 (count_funcs): New function.
5296 (unaligned_uint32): New struct.
5297 (MASK20): New definition.
5299 (MASKF21): Likewise.
5300 (add_value_to_slot_20b): New function.
5301 (add_value_to_slot_21_real): Likewise.
5302 (add_value_to_slot_21): Likewise.
5303 (ia64_kernel_trampoline): New struct.
5304 (nopm): New variable.
5306 (make_trampoline): New function.
5307 (relocate_addresses): Handle ia64.
5308 (make_reloc_section): Likewise.
5309 (load_image): Likewise.
5311 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5313 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
5314 warning. Move variables before code while on it.
5316 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5320 * configure.ac: Rename yeeloong platform to loongson. All users updated.
5321 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
5322 * grub-core/boot/mips/loongson/fuloong.S: New file.
5323 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
5324 Explicitly init CS5536.
5325 [FULOONG]: Don't use serial until CS5536 is available.
5326 Set GPIO based on dumps.
5327 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
5328 [FULOONG]: Handle GPIO and memory controller differences.
5329 Parse machine type in $a2.
5330 * grub-core/boot/mips/startup_raw.S: Determine and save the
5332 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
5333 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
5334 init on architecture type.
5335 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
5336 SIS315E. Don't init at_keyboard on fuloong.
5337 (grub_halt): Support Fuloong.
5338 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
5339 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
5340 (loongson_machtypes): New array.
5341 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
5343 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
5344 config. All users updated. Handle CS5536 serial.
5345 * grub-core/term/serial.c (grub_serial_register): Conditionalise
5346 default port on machine type. Register serial as inactive.
5347 * grub-core/video/sis315pro.c: New file.
5348 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
5350 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
5351 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
5352 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
5353 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
5354 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
5355 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
5357 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
5358 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
5360 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
5361 (grub_arch_machine): New extern var.
5362 * include/grub/mips/loongson/serial.h
5363 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
5364 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
5365 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
5366 (GRUB_MACHINE_SERIAL_PORT0): ... this.
5367 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
5368 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
5369 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
5370 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
5371 * include/grub/term.h (grub_term_register_input_inactive): New inline
5373 (grub_term_register_output_inactive): Likewise.
5374 * include/grub/video.h (grub_video_driver_id): New value
5375 GRUB_VIDEO_DRIVER_SIS315PRO.
5376 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
5377 New field "names". All users updated.
5378 New field value IMAGE_FULOONG_FLASH.
5379 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
5381 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
5383 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
5384 and add some clarification.
5386 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5388 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
5389 platforms if kernel is compressed.
5391 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5393 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
5394 unused modules since currently referrence counter isn't reliable and
5395 there isn't much memory to recover there anyway.
5397 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5399 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
5400 rather than resetting it to allow modules to reference themselves
5403 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5405 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
5406 counter on dependencies since grub_dl_unref already handles this.
5408 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5410 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
5411 on error if not already done.
5413 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5415 Fix few potential memory misusage.
5417 * grub-core/font/font.c (load_font_index): Don't free char_index to
5419 (grub_font_load): Zero-fill font at alloc for safety.
5420 Close file on error.
5421 (free_font): Free bmp_idx.
5423 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5425 * docs/grub.texi (Installation): Fix several outdated claims.
5427 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5429 Handle module_license on windows.
5431 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
5433 (insert_string): Make argument const char * instead of char *.
5434 (write_section_data): Handle long section names.
5435 Handle module_license.
5437 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5439 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
5440 handle class-free menuentries.
5441 (grub_normal_add_menu_entry): Add a check to be sure.
5443 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5445 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
5448 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5450 * configure.ac: Bump version to 1.99.
5452 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5454 Give ATA device a bit more time on first try in order to allow disks
5457 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
5458 if dev->present is 1. Reset dev->present on failure.
5459 (grub_ata_device_initialize): Set dev->present to 1.
5460 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
5461 (grub_ata_device): New member 'present'.
5463 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5465 * util/grub-mkimage.c (generate_image): Update hash.
5467 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5469 Flush caches on DMA memory.
5471 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
5472 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
5473 (grub_dma_free): Likewise.
5474 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
5476 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5478 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
5479 to avoid asm treating ld and sd as macros.
5481 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5483 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
5486 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5488 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
5489 grub_decompress_core since later would fail if grub_decompress_core
5492 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5494 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
5495 R_MIPS_JALR since it's used by newer compiler.
5497 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5499 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
5501 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5503 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
5504 file_path to 0 for surety.
5505 (grub_chainloader_boot): Set exit_data to NULL.
5506 Unset the loader once done.
5507 (grub_cmd_chainloader): Fix confusing error message if file is empty.
5509 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5511 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
5512 unknown key into a dprintf.
5514 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5516 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
5517 on first non-existant partition.
5519 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5521 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
5523 Reported by: Mark Korenberg.
5525 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5527 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
5530 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5532 * util/grub-mkimage.c (main): Explicitely flush and sync the output
5533 before closing to ensure that it will be readable by grub-setup.
5535 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5537 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
5538 (devpath_1): Use MAKE_PIWG_PATH.
5539 (devpath_2): Likewise.
5540 (devpath_3): Likewise.
5541 (devpath_4): Likewise.
5542 (devpath_5): Likewise.
5543 (devpath_6): Likewise.
5545 The appleldr.mod was checked that to be binary identical to previous
5548 2011-05-05 Zach <mikezackles>
5550 Support 2010 Macbooks.
5552 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
5553 (devs): Add devpath_6.
5555 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5557 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
5558 /dev/random. /dev/urandom is good enough for our purposes (salting).
5560 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5562 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
5564 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5566 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
5569 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5571 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
5572 and not 0 on failure.
5574 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5576 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
5577 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
5578 disk; otherwise grub_fs_probe will not fall back to the next
5580 (grub_pxefs_open): Likewise, for consistency.
5581 Reported and tested by: Ezekiel Grave.
5583 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5585 * tests/partmap_test.in: Don't hardcode path to parted.
5586 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
5588 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
5590 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
5591 of `ls' to find out which devices are available.
5593 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5595 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
5596 than source address for efi mmap buffer.
5598 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5600 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
5601 wrong action on non-detecting the magic.
5603 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5605 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
5606 already supplied by another part of the module (fixes compilation on
5609 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5611 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
5612 match the one used by mdadm.
5614 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5616 * po/README: Add instructions for creating po/LINGUAS.
5618 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5620 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
5623 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
5624 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
5625 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
5626 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
5627 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
5628 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
5629 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
5630 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
5631 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
5632 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
5633 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
5634 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
5635 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
5636 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
5637 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
5638 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
5639 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
5640 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
5641 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
5642 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
5643 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
5644 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
5646 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5648 * grub-core/kern/emu/getroot.c
5649 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
5650 test that was incorrectly reintroduced in r3214.
5651 Reported by: Ian Dall. Fixes Savannah bug #33133.
5653 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5655 Fix stack pointer handling in 16-bit relocator.
5657 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
5658 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
5659 Fixes Ubuntu bug #683904.
5661 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5663 * configure.ac: Bump version to 1.99~rc2.
5665 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5667 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
5668 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
5669 * grub-core/lib/x86_64/setjmp.S: Likewise.
5670 * grub-core/lib/mips/setjmp.S: Likewise.
5671 * grub-core/lib/powerpc/setjmp.S: Likewise.
5672 * grub-core/lib/sparc64/setjmp.S: Likewise.
5674 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5676 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
5677 * grub-core/lib/efi/datetime.c: Likewise.
5679 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5681 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
5683 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
5684 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
5685 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
5687 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5689 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
5691 (grub_gfxterm_term_init): Likewise.
5693 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5695 Take into account the decorations the computing menu entry width.
5697 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
5698 (grub_gfxmenu_create_box): Register get_border_width.
5699 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
5701 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
5704 2011-04-18 Endres Puschner <code@e7p.de>
5706 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
5707 Don't skip first class.
5709 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5711 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
5713 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
5715 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5717 Complete 64-bit division support.
5719 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
5720 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
5721 * include/grub/misc.h (grub_divmod64): Rename to ...
5722 (grub_divmod64_full): ... this.
5723 (grub_divmod64): New inline function.
5725 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5727 * util/grub-mkimage.c (generate_image): Add forgotten comma.
5729 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5731 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
5732 performing the necessary test.
5734 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5736 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
5737 (kfreebsd.elf): Likewise.
5738 (pc-chainloader.elf): Likewise.
5739 (ntldr.elf): Likewise.
5741 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5743 Identify RAID by its UUID rather than (guessed) name.
5745 * grub-core/disk/raid.c (ascii2hex): New function.
5746 (grub_raid_open): Accept mduuid/%s specification.
5747 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
5748 (get_mdadm_uuid): ... this.
5749 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
5751 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
5753 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
5756 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
5758 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
5760 * util/grub.d/20_linux_xen.in: Likewise.
5762 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
5764 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
5765 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
5767 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
5768 Build a list of relevant visible mounts using the mnt_id and
5769 parent_mnt_id fields, and then scan that list at the end.
5771 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5773 * docs/grub.texi (normal): New section.
5774 (normal_exit): New section.
5775 (Embedded configuration): Add reference to normal.
5776 (GRUB only offers a rescue shell): Likewise.
5777 * docs/grub-dev.texi (Error Handling): Fix typo.
5779 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5781 * NEWS: Drop obsolete entry about probe-only btrfs support.
5783 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5785 * util/import_gcry.py: Fix typo.
5787 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5789 * NEWS: Add btrfs support.
5791 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5792 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
5794 BtrFS support. Written by me (Vladimir) with important bugfixes and
5795 even more important testing by Colin.
5797 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
5798 * grub-core/Makefile.core.def (btrfs): Add crc.c.
5799 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
5800 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
5801 mem_input_off and mem_input. All users updated to accept in-RAM input.
5802 (gzio_seek): New function.
5803 (test_zlib_header): Likewise.
5804 (grub_gzio_read): Likewise.
5805 (grub_zlib_decompress): Likewise.
5806 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
5807 Accept partial and non-virtual mounts.
5808 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
5809 avoid receiving /dev/dm-X as device.
5810 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
5811 Handle bind and partial mounts.
5812 * grub-core/lib/crc.c: New file.
5813 * include/grub/deflate.h: Likewise.
5814 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
5816 * include/grub/lib/crc.h: New file.
5818 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5820 Implement automatic module license checking according to new GNU
5823 * grub-core/kern/dl.c (grub_dl_check_license): New function.
5824 (grub_dl_load_core): Use grub_dl_check_license.
5825 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
5826 (GRUB_MOD_LICENSE): Likewise.
5827 (GRUB_MOD_DUAL_LICENSE): Likewise.
5828 All modules updated.
5830 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
5832 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
5833 reserved_first_sector to 1. btrfs reserves plenty of space for boot
5835 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
5837 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5839 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
5841 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5843 * util/grub-fstest.c (read_file): Report GRUB error if file opening
5846 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5848 * grub-core/kern/file.c (grub_file_open): Don't take into account the
5849 parenthesis in the middle of the filename.
5851 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5853 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
5854 rather than trying to put initrd way too high.
5855 Reported by: Ryan Lortie <desrt@desrt.ca>
5857 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5859 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
5860 improperly removed string.
5862 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5864 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
5866 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
5867 (open_device) Likewise.
5868 (grub_util_biosdisk_close): Likewise.
5869 Reported by: Mark Korenberg.
5871 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
5873 * util/grub-mkconfig_lib.in: Add missing quotes.
5875 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
5877 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
5880 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5882 Dynamically count the number of lines for the lower banner.
5884 * grub-core/normal/menu_entry.c (per_term_screen): New member
5886 (print_down): Use num_entries.
5887 (update_screen): Likewise.
5888 (grub_menu_entry_run): Set num_entries.
5889 * grub-core/normal/menu_text.c (menu_viewer_data): New member
5891 (grub_print_message_indented): Move real part to ...
5892 (grub_print_message_indented_real): ... here. Additional argument
5894 (draw_border): Additional argument num_entries.
5895 (print_message): Additional argument dry_run.
5896 (print_entries): Receive menu viewer data.
5897 (grub_menu_init_page): New argment num_entries.
5898 (menu_text_set_chosen_entry): Use num_entries.
5899 (grub_menu_try_text): Likewise.
5900 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
5902 (grub_ucs4_count_lines): New function.
5903 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
5904 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
5905 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
5906 (grub_term_border_height): Likewise.
5907 (grub_term_num_entries): Likewise.
5909 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5911 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
5912 Remove now unused string.
5914 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
5916 * docs/grub-dev.texi (Finding your way around): Update for 1.99
5918 (Getting started): GRUB is developed in Bazaar now, not Subversion.
5920 (Comment): Fix typo.
5921 (Getting started): General copy-editing.
5922 (Typical Development Experience): Likewise.
5923 (Error Handling): Likewise.
5924 (Video API): Likewise.
5926 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
5928 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
5931 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5933 * util/grub-mkimage.c (main): Handle special naming of yeeloong
5936 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
5938 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
5939 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
5942 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5944 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
5945 grub_strcpy since the lines aren't necessarily 0-terminated.
5947 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5949 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
5952 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5954 * grub-core/commands/probe.c (options): Argument to set isn't optional.
5955 (GRUB_MOD_INIT): DEVICE isn't optional.
5957 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5959 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
5960 word on new line if it's too long anyway. Fixes a hang.
5962 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5964 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
5966 * util/grub-setup.c (main): Reuse md device name if available.
5967 * util/raid.c (grub_util_raid_getmembers): Receive device name and
5968 not GRUB name as argument.
5969 Based on patch by: Florian Wagner <fwagner>.
5971 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5973 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
5974 Place mbi on low memory for better compatibility.
5976 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5978 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
5980 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5981 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
5983 * autogen.sh: Ensure that collate and ctype locale is C.
5984 * conf/Makefile.common: Likewise.
5986 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5988 * grub-core/normal/menu.c: Add missing include.
5990 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5992 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
5994 2011-04-08 Martin Zuther <mzuther@mzuther.de>
5996 * util/grub-mkconfig.in: Ignore emacsen backup.
5998 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6000 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
6002 (grub_util_biosdisk_close): Likewise.
6004 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6006 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
6007 const attribute and use grub_isdigit.
6009 2011-04-06 Andrey <dev_null@ukr.net>
6011 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
6014 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6016 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
6017 useful grub_dprintf's.
6019 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6021 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
6023 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6025 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
6027 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6029 Output errors if theme loading failed.
6031 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
6032 grub_gfxterm_fullscreen on error paths to ...
6033 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
6034 theme loading error.
6036 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6038 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
6039 space for older compilers.
6040 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
6042 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6044 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
6045 and report them as not RAID members since they are useless for GRUB.
6046 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6048 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6050 Increase LVM implementation robustness in order not to crash on
6051 configurations like pvmove. Previously code assumed that in some places
6052 only lvs or only pvs are used whereas it seems that they are used
6055 * grub-core/disk/lvm.c (read_node): New function.
6056 (read_lv): Use read_node.
6057 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
6058 Match volumes only at the end when all lvs are found. Take both
6059 pvs (first) and lvs (second) into account.
6060 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
6061 mirror_* into node_*. All users updated.
6062 (grub_lvm_stripe): Merge this ...
6063 (grub_lvm_mirror): ... and this ...
6064 (grub_lvm_node): ... into this. All users updated.
6066 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6068 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
6069 of function to allow further scanning for LVMs.
6071 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6073 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
6074 on failed seek as it breaks open fd reusage.
6076 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6078 * util/grub-install.in: Add a recommendation to use --recheck before
6081 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6083 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
6086 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6088 GRUB developper manual based on existing Internals section and
6089 contributions by the various authors with active copyright assignment.
6091 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
6092 * docs/font_char_metrics.png: New file.
6093 * docs/font_char_metrics.txt: Likewise.
6094 * docs/grub-dev.texi: Likewise.
6095 * docs/grub.texi (Internals): Move from here ...
6096 * docs/grub-dev.texi: ... here.
6098 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6100 Store the loopback device as data on loopback grub_disk structures,
6101 rather than the file it points to. This fixes use of freed memory
6102 if an existing loopback device is replaced.
6104 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
6105 disk->data, not dev->file.
6106 (grub_loopback_read): Adjust file assignment to match.
6107 Fixes Ubuntu bug #742967.
6109 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6111 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
6112 when replacing an existing device.
6114 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6116 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
6119 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
6121 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
6122 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
6123 (grub_jfs_read_inode): Likewise.
6124 (grub_jfs_opendir): Likewise. Remove now useless casts.
6125 (grub_jfs_getent): Likewise.
6126 Make ino a grub_uint32_t rather than int.
6127 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
6128 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
6129 division and module with bit operations.
6130 (grub_jfs_find_file): Make ino a grub_uint32_t.
6131 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
6133 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6135 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
6136 warning. (This was in fact always initialised before use, but GCC
6137 wasn't smart enough to prove that.)
6138 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6140 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6142 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
6144 (efi_wrap_1): Likewise.
6145 (efi_wrap_2): Likewise.
6146 (efi_wrap_3): Likewise.
6147 (efi_wrap_4): Likewise.
6148 (efi_wrap_5): Likewise.
6149 (efi_wrap_6): Likewise.
6150 (efi_wrap_10): Likewise.
6151 Based on information by: Red Hat/Peter Jones.
6153 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
6155 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
6156 set-but-not-used variable.
6158 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
6160 * docs/grub.texi (Simple configuration): Be more explicit about
6161 GRUB_DEFAULT, and add an example.
6162 Reported by: Leslie Rhorer.
6164 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6166 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
6169 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
6171 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
6172 * util/grub.d/20_linux_xen.in: Likewise.
6174 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6176 * util/grub.d/10_linux.in: Try alternative config filenames where
6177 we parse config file.
6178 * util/grub.d/20_linux_xen.in: Likewise.
6180 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
6182 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
6183 * util/grub.d/20_linux_xen.in: Likewise.
6185 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6187 * grub-core/disk/raid.c (insert_array): Add few potentially
6188 useful grub_util_info.
6189 (grub_raid_register): Likewise.
6191 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6193 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
6194 Preserve partition number in mdadm code path.
6196 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6198 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
6199 few potentially useful grub_util_info.
6201 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6203 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
6205 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6207 * docs/grub.texi (default): Use @example rather than nested
6208 itemized lists to avoid breaking gendocs.
6210 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6212 * docs/grub.texi (Future): Update.
6214 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6216 * docs/grub.texi (Environment): New chapter.
6217 (Changes from GRUB Legacy): Link to "Environment block" section for
6218 details of limitations.
6219 (Simple configuration): Likewise. Link to documentation of gfxmode
6220 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
6222 (Shell-like scripting): Note that normal variables are stored in the
6224 (gettext): Link to documentation of lang and locale_dir.
6225 (list_env): New section.
6226 (load_env): New section.
6227 (save_env): New section.
6229 (Reporting bugs): Fix typo.
6231 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6233 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
6236 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6238 * grub-core/term/at_keyboard.c (set_scancodes)
6239 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
6241 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6243 * docs/grub.texi (Menu-specific commands): Remove some semantics
6244 that were true in GRUB Legacy but not in GRUB 2.
6245 (submenu): New section.
6246 (false): New section.
6247 (read): New section.
6248 (true): New section.
6250 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6252 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
6254 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6256 * docs/grub.texi (Simple configuration): Explain some of the
6257 current limitations of grub-mkconfig.
6258 Reported by: Leslie Rhorer.
6260 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6262 Old macs search for boot.efi rather than for bootia32.efi.
6264 * util/grub-install.in: Copy bootia32.efi to boot.efi.
6265 * util/grub-mkrescue.in: Likewise.
6266 Suggested by: Peter Jones.
6268 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6270 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
6272 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6274 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
6275 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
6276 (grub_lvm_mirror): New struct.
6277 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
6278 (grub_lvm_iterate): Iterate only visible volumes.
6279 (grub_lvm_read): Factor out to ..
6280 (read_lv): ... this. Support mirrors.
6281 (grub_lvm_read): New wrapper function.
6282 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
6283 stripped or mirrored.
6285 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6287 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
6289 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6291 * docs/grub.texi (loopback): New section.
6293 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6295 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
6298 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6300 * docs/grub.texi (BIOS installation): New section, partly based on
6301 previous text in other sections.
6302 (Installing GRUB using grub-install): Replace BIOS discussion with a
6306 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6308 * grub-core/kern/emu/hostdisk.c (find_partition_start)
6309 [HAVE_DIOCGDINFO]: Add safety checks.
6311 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6313 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
6314 per default compiled in kernel and prior to 8.0 isn't shipped at all.
6316 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6318 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
6319 real_sb->size is zero (e.g. RAID-0), get the disk size from
6320 real_sb->data_size instead.
6321 Fixes Ubuntu bug #743136.
6323 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6325 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
6326 printf clauses for printing size and start.
6328 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6330 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
6331 Reported and tested by: Timothy Nikkel.
6333 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6335 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
6336 (dirty_region_add_real): ... this.
6337 (dirty_region_add): Don't discard margin refresh when performing
6340 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6342 * grub-core/lib/relocator.c (allocate_regstart)
6343 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
6344 terminals are capabple of malloc-free operation.
6345 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
6346 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
6348 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
6350 * util/grub-setup.c: Copy the partition table zone if floppy support
6351 is disabled, even if no partition table is found.
6353 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
6354 during POST if an invalid partition table is contained in the PBR
6355 of the active partition when GRUB is installed to a partition.
6357 2011-03-28 Colin Watson <cjwatson@debian.org>
6359 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
6362 2011-03-28 Colin Watson <cjwatson@debian.org>
6364 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
6365 to be specific about what kind of RAID device we're scanning for.
6367 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
6369 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
6370 return freed string.
6372 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6374 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
6376 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6378 Use libgeom on FreeBSD to detect partitions.
6380 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
6381 (grub-mkrelpath): Likewise.
6382 (grub-script-check): Likewise.
6383 (grub-editenv): Likewise.
6384 (grub-mkpasswd-pbkdf2): Likewise.
6385 (grub-fstest): Likewise.
6386 (grub-mkfont): Likewise.
6387 (grub-mkdevicemap): Likewise.
6388 (grub-probe): Likewise.
6389 (grub-setup): Likewise.
6390 (grub-ofpathname): Likewise.
6391 (grub-mklayout): Likewise.
6392 (example_unit_test): Likewise.
6393 (grub-menulst2cfg): Likewise.
6394 * grub-core/Makefile.core.def (grub-emu): Likewise.
6395 (grub-emu-lite): Likewise.
6396 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
6397 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
6398 define HAVE_DIOCGDINFO.
6399 (follow_geom_up) [FreeBSD]: New function.
6400 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
6401 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
6402 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
6403 unconditionally of HAVE_DIOCGDINFO.
6405 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6407 Fix FreeBSD compilation problem.
6409 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
6410 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
6412 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
6414 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
6415 Switch back to page zero before loading a kernel, since some kernel
6416 drivers expect that.
6417 Thanks to: Felix Kuehling.
6419 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6421 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
6422 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
6423 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
6425 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6427 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
6428 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
6430 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6432 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
6433 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
6436 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6438 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
6439 for modules headers when counting the needed allocation size.
6441 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6443 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
6444 if no ASCII character is found to prevent crash.
6446 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
6448 * grub-core/video/bitmap.c (match_extension): Ignore case.
6450 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6452 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
6454 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6456 * grub-core/script/parser.y: Declare "time" as valid argument.
6458 2011-03-23 Peter Jones <pjones@redhat.com>
6460 Fix incorrect assert failure reporting.
6462 * grub-core/tests/example_functional_test.c (example_test): Add
6464 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
6465 (failure_start): ...this. Check that malloc succeeded.
6466 Don't call xvasprintf. Return failure struct.
6467 (failure_append_vtext): New function.
6468 (failure_append_text): Likewise.
6469 (add_failure): Likewise.
6470 (grub_test_assert_helper): Likewise.
6471 * include/grub/test.h (grub_test_assert_helper): New declaration.
6472 (grub_test_assert): Macro rewritten.
6474 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6476 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
6478 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6480 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
6482 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6484 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
6485 into GRUB-style one.
6487 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6489 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
6490 error and not grub_errno.
6491 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
6493 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6495 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
6496 GRUB_USB_SPEED_NONE in case of failure and not the error code.
6498 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6500 * grub-core/efiemu/i386/pc/cfgtables.c
6501 (grub_machine_efiemu_init_tables): Make declaration a prototype.
6502 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
6503 (grub_xnu_unlock): Likewise.
6504 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
6506 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6508 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
6509 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
6510 * grub-core/commands/hashsum.c (aliases): Likewise.
6511 * grub-core/commands/setpci.c (pci_registers): Likewise.
6512 * grub-core/disk/usbms.c (attach_hook): Likewise.
6513 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
6514 (zio_checksum_table): Likewise.
6515 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
6516 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
6517 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
6518 * grub-core/lib/relocator.c (leftovers): Likewise.
6519 (extra_blocks): Likewise.
6520 * grub-core/loader/i386/bsd.c (relocator): Likewise.
6521 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
6522 (modules_last): Likewise.
6523 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
6524 (devices): Likewise.
6525 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
6526 (modules_last): Likewise.
6527 * grub-core/normal/auth.c (users): Likewise.
6528 * grub-core/normal/context.c (initial_menu): Likewise.
6529 (current_menu): Likewise.
6530 * grub-core/normal/crypto.c (crypto_specs): Likewise.
6531 * grub-core/term/serial.c (grub_serial_ports): Likewise.
6532 (grub_serial_terminfo_input_template): Likewise.
6533 (grub_serial_terminfo_output_template): Likewise.
6534 (grub_serial_terminfo_input): Likewise.
6535 (grub_serial_terminfo_output): Likewise.
6536 (registered): Likewise.
6537 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
6539 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6541 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
6542 grub_video_mode_type_t.
6543 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
6544 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
6545 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
6547 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6549 * util/grub-install.in: Correct the x86-64 name as x86_64.
6551 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
6553 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
6554 initial chunk read from the kernel always includes GRUB's multiboot
6555 header, which is now outside the first sector.
6557 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6559 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
6560 cached mmap_size, so that this works correctly when called multiple
6562 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
6564 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6566 * docs/grub.texi (Simple configuration): Tidy up formatting.
6568 2011-03-07 Szymon Janc <szymon@janc.net.pl>
6570 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
6571 Set-but-not-used variable removed.
6573 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6575 Workaround yet another IEEE1275 bug.
6577 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6578 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
6579 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
6580 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
6582 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6583 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
6585 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6587 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
6590 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
6592 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
6593 empty, since in that case we can only generate either nothing or a
6594 syntactically invalid configuration file.
6595 Reported by: Michal Suchanek. Fixes Debian bug #612898.
6597 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
6599 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
6600 (Making a GRUB bootable CD-ROM): Likewise.
6601 (Invoking grub-mkrescue): New section.
6602 Reported by: Yann Dirson. Fixes Debian bug #612585.
6604 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
6606 * util/grub-install.in: Remove unnecessary brackets from tr
6608 * util/grub.d/10_hurd.in: Likewise.
6609 * util/grub.d/10_kfreebsd.in: Likewise.
6610 * util/grub.d/10_linux.in: Likewise.
6611 * util/grub.d/20_linux_xen.in: Likewise.
6612 Reported by: Jamie Heilman. Fixes Debian bug #612564.
6614 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
6616 * include/grub/file.h (not_easly_seekable): Rename to ...
6617 (not_easily_seekable): ... this. Update all users.
6619 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
6621 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
6624 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6626 * util/grub-mkimage.c (generate_image): Refuse to create the images
6627 bigger than the actual flash (512K) in Loongson machines. 512K is also
6628 the biggest chip supported by them.
6630 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6632 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
6634 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
6636 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
6639 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6641 * util/grub-install.in: Ignore install device on platforms
6642 where it doesn't make sense. Always use UUIDs except on pc, efi and
6644 Reported by: Daniel Kahn Gillmor.
6646 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6648 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
6650 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6652 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
6653 (iterate_real): Don't rely on partition being non-NULL.
6655 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6657 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
6658 supported platforms. Put a compile time assert for this rather than
6659 generate a warning with 32-bit shift.
6661 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6663 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
6664 logical expression more readable.
6666 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6668 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
6669 even if some elements have a name.
6670 Reported by: Alexander GQ Gerasiov.
6672 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
6674 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
6675 path unreadable if `grub-probe -t abstraction' fails, for example if
6676 memberlist fails on an LVM volume group.
6677 Reported by: Darius Jahandarie.
6679 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
6681 * docs/grub.texi (Simple configuration): Document
6682 GRUB_PRELOAD_MODULES.
6684 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
6686 * .bzrignore: Remove nonexistent grub-pbkdf2.
6688 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6690 * configure.ac: Bump version to 1.99~rc1.
6692 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
6694 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
6697 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6699 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
6702 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6704 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
6706 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6708 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
6711 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6713 Fix compilation on cygwin.
6715 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
6716 -R .drectve on cygwin.
6717 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
6718 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
6719 (COND_CYGWIN): New condition.
6720 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
6721 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
6722 not @TARGET_OBJ2ELF@.
6723 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
6724 type to determine whether aux is to be used.
6726 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6728 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
6729 realpath'ed device string.
6730 Handle floppy (somewhat).
6731 Issue error in unknown case rather than garbage.
6732 Reported by: Axel Beckert.
6734 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6736 * util/grub.d/00_header.in (load_video): Handle the case when no video
6738 Thanks to: Axel Beckert.
6740 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6742 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
6743 variable. Fixes problem on big endian platforms.
6745 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6747 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
6748 It doesn't work well there.
6750 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6752 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
6754 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
6755 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
6758 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6760 Use alias->path rather than buggy "canon".
6762 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
6763 (ofdisk_hash_add): New argument curcan. All users updated.
6765 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
6767 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
6769 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6771 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
6772 loadmask before doing any calculations. Use correct type for offset.
6773 (grub_linux_load64): Likewise.
6775 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
6777 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
6779 (console_grub_equivalences_unshift): Likewise.
6780 Reported by: Daniel Dehennin.
6782 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6784 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
6785 (set_env_limn_ro): Likewise.
6786 (GRUB_MOD_INIT): Likewise.
6787 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
6788 ARRAY_SIZE while on it.
6789 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
6790 * grub-core/normal/context.c (grub_env_export): Move from here ...
6791 * grub-core/kern/env.c (grub_env_export): ... here.
6792 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
6794 * grub-core/kern/main.c (grub_main): Export root and prefix.
6795 * include/grub/env.h (grub_env_export): Export.
6796 Reported by: Seth Goldberg.
6798 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6800 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
6801 Take into account space used by ELF sections and multiboot palette.
6802 Reported by: Grégoire Sutre.
6804 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6808 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6810 Pass more appropriate video id to Linux.
6812 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
6813 grub_video_get_driver_id and variable gfxpayloadforcelfb to
6815 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
6816 shift params->lfb_size.
6817 * include/grub/i386/linux.h: Make an enume out of have_vga values.
6819 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6821 * util/grub-menulst2cfg.c: Add missing include of misc.h.
6823 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6825 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
6826 separator and pass bootpath/devid even if only one of them is available.
6827 Reported by: Seth Goldberg.
6829 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6831 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
6832 implementations bug on them.
6834 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
6836 (filter_memory_map): Likewise.
6838 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6840 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
6841 Reported by: nebuchadnezzar.
6843 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6845 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
6846 Reported by: nebuchadnezzar.
6848 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6850 Submenu default support.
6852 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
6853 auto_boot. All users updated.
6855 Handle chosen and default with submenus.
6856 (grub_menu_execute_with_fallback): Declared static.
6857 Don't notify failure if autobooted. Upper level does it.
6858 (menuentry_eq): New function.
6859 (get_entry_number): Use menuentry_eq.
6860 (show_menu): New parameter "autobooted". All users updated.
6861 (grub_show_menu): Likewise.
6862 * include/grub/normal.h (grub_show_menu): Likewise.
6863 * include/grub/menu.h (grub_menu_execute_entry): Removed.
6864 (grub_menu_execute_with_fallback): Likewise.
6866 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6868 * util/grub-mklayout.c (usage): Update help text.
6870 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6872 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
6874 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6876 * util/grub-menulst2cfg.c (main): Trim the line.
6878 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6880 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
6881 (grub_machine_init): Don't check amount of low memory as reportedly
6882 INT 12h can be broken and if low memory is too low we wouldn't have
6883 gotten into grub_machine_init anyway.
6885 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6887 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
6888 (grub_machine_mmap_iterate): Take low memory into account
6890 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6892 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
6896 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6898 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
6901 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
6903 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
6904 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
6906 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
6908 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
6909 openbsd and netbsd types being in part_bsd module.
6911 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6913 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
6914 (_FILE_OFFSET_BITS): Likewise.
6915 Reported by: Seth Goldberg.
6917 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
6919 * configure.ac: Check for libdevmapper header.
6921 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6923 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
6925 (fzap_lookup): Likewise.
6926 (dnode_get): Likewise.
6927 (make_mdn): Likewise.
6928 (zfs_mount): Likewise.
6929 (fzap_iterate): Use temporary pointer to avoid aliasing.
6930 (grub_zfs_read): Likewise.
6931 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
6932 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
6933 pointers to avoid aliasing.
6934 (grub_cmd_xnu_kernel64): Likewise.
6935 (grub_xnu_load_driver): Likewise.
6937 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6939 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
6941 (grub_cmd_terminal_output): Likewise.
6942 Reported and tested by: Grégoire Sutre.
6944 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6946 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
6948 Reported and tested by: Grégoire Sutre.
6950 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6952 * configure.ac: Do CPU substitution even if it's specified explicitly.
6953 Reported and tested by: Alain Greppin.
6955 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6957 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
6958 Reported and tested by: Alain Greppin.
6960 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6962 Satisfy some bison versions need for inttypes.h.
6964 * grub-core/lib/posix_wrap/inttypes.h: New file.
6965 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
6966 (int16_t): Likewise.
6967 (int32_t): Likewise.
6968 (int64_t): Likewise.
6969 Reported and tested by: Alain Greppin.
6971 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6973 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
6974 Silence spurious warning.
6975 Reported and tested by: Alain Greppin.
6977 2011-01-07 Szymon Janc <szymon@janc.net.pl>
6979 * docs/grub.texi (Support automatic decompression): Update with xz
6980 decompression support.
6982 2011-01-07 Szymon Janc <szymon@janc.net.pl>
6984 Improve loaders' kernel command line handling.
6986 * grub-core/lib/cmdline.c: New file.
6987 * include/grub/lib/cmdline.h: Likewise.
6988 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
6989 grub_create_loader_cmdline to create kernel command line.
6990 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6991 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
6992 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
6993 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
6994 (linux): Add lib/cmdline.c on common.
6996 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6998 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
6999 inopos might be unaligned.
7001 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7003 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
7004 endian transformations.
7005 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7006 Based on report by: Doug Nazar.
7008 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
7010 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
7011 array->members[i].start_sector.
7012 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
7014 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7016 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
7017 Reported and tested by: Grégoire Sutre.
7019 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
7021 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
7022 avoid causing test failures by clearing the screen.
7024 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
7026 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
7027 Fix prefix check to handle the case where dir ends with a slash
7028 (most significantly, "/" itself).
7029 Reported by: Michael Vogt.
7031 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7033 Run terminfo_cls on initing terminfo output to clear the screen and
7034 move the cursor to (0,0).
7036 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
7037 Call grub_terminfo_output_init.
7038 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
7039 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
7040 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
7042 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7044 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
7047 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7049 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
7052 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7054 The E820 type 5 is BADRAM, not EXEC_CODE.
7056 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
7057 (GRUB_E820_BADRAM): New define.
7058 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
7059 into reserved. Propagate BADRAM.
7060 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
7061 (GRUB_E820_BADRAM): New define.
7063 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7065 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
7066 Ignore the memory post-4G.
7067 (grub_relocator_firmware_alloc_region): Additional debug statement.
7069 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7071 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
7073 Reported by: David Pravec.
7075 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7077 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
7080 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7082 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
7084 (grub_reed_solomon_recover): Likewise.
7086 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7088 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
7090 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7092 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
7095 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
7097 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
7098 descriptions of extract_legacy_entries_source and
7099 extract_legacy_entries_configfile.
7100 Reported by: Seung Soo, Ha.
7102 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
7104 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
7105 on devices that do not implement function 0.
7107 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
7109 * grub-core/fs/hfsplus.c: Make parent unsigned.
7110 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
7112 (grub_hfsplus_cmp_extkey): Likewise
7114 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7116 * util/grub-install.in: Correctly use bootloader_id and not
7117 GRUB_DISTRIBUTOR on efibootmgr line.
7119 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7121 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
7123 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
7125 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
7126 Xen and reorder menu item wording to make it clearer that this entry
7127 will launch Xen. Print separate messages when loading Xen and
7130 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7132 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
7133 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
7134 loop in case of incorrect amiga partmap.
7136 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7138 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
7139 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
7142 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7144 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
7146 Reported by: crocket
7148 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7150 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
7152 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
7154 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7156 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
7158 (grub_cmd_xnu_kextdir): Likewise.
7159 (grub_cmd_xnu_splash): Likewise.
7161 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7163 Avoid using Reed-Solomon with 0 redundancy.
7165 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
7166 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
7168 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
7169 (grub_reed_solomon_recover): Likewise.
7171 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7173 Don't use disk subsystem in freebsd_boot.
7175 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
7176 (freebsd_biosdev): Likewise.
7177 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
7178 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
7180 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7182 Handling of files of unknown size is currently limited. They can't be
7183 used e.g. for initrd or modules. Moreover gzip handling of not
7184 easily seekable files is buggy. Disable unknown file size for now. May
7185 be inefficient but works.
7187 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
7188 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
7190 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
7192 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
7195 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
7197 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
7199 2010-12-25 Shea Levy <shlevy>
7201 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
7203 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7205 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
7206 Windows Server 2008.
7207 Reported by: Devin Giddings.
7209 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7211 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
7212 writing an error message because of async power management.
7213 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
7214 (grub_reboot): Likewise.
7216 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
7218 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
7219 keep unit tests from failing when they shouldn't.
7221 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7223 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
7224 previous patch increased the size of the RS code by 20 bytes (at
7225 least with gcc-4.4), so increase this by 20 bytes to match.
7226 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
7228 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7230 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
7231 scratch area. Make sure to initialise chosen in standalone mode as
7232 well as non-standalone.
7233 Reported by: Robert Hooker and Andy Whitcroft.
7234 Tested by: Andy Whitcroft.
7236 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7238 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
7239 constructing a new unescaped string and passing it to grub_xputs in
7240 one go, rather than passing characters to grub_printf one at a time.
7242 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7244 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
7247 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7249 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
7250 comment. Add an extra layer of quotation, requiring the output of
7251 this function to be used in a printf format string.
7252 (gettext_printf): New function.
7253 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
7254 Extract translatable strings from here-documents and use a temporary
7255 variable instead, so that xgettext can find them.
7256 * util/grub.d/10_kfreebsd.in: Likewise.
7257 * util/grub.d/10_linux.in: Likewise.
7258 * util/grub.d/20_linux_xen.in: Likewise.
7260 * po/grub.d.sed: New file.
7261 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
7262 arguments. Set c-format flags on all strings extracted from
7263 util/grub.d/ (xgettext refuses to include these itself for strings
7264 it extracted from a shell file, but these really are c-format).
7266 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7268 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
7269 Avoid next pointing to nowhere.
7271 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7273 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
7274 rather than assuming than rootblock is exactly in the middle.
7275 (grub_affs_label): Likewise.
7277 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7279 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
7280 reserved_first_sector to 0.
7281 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
7282 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
7283 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
7285 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7287 Fix handling of UTF-16 UDF labels.
7289 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
7290 (read_string): .. here.
7291 (grub_udf_label): Use read_string.
7293 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
7295 * grub-core/normal/menu_entry.c (run): Execute commands from menu
7296 editor under argument scope.
7297 Reported by: Jordan Uggla
7299 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7301 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
7303 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
7305 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
7306 line, and other keys scroll an entire page (previous handling was
7307 for \r and \n to scroll a page and other keys to scroll two lines).
7309 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7311 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
7312 Set ptrdest to correct get_physical_target_address rather than
7313 incorrect get_virtual_current_address.
7315 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
7317 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
7318 correct cat to grub_uint8_t * rather than grub_uint32_t *.
7320 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
7322 * .bzrignore: Ignore grub-core/rs_decoder.S.
7324 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
7326 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
7327 .mo/.mo.gz opening sequence to ...
7328 (grub_mofile_open_lang): ... here.
7329 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
7330 * util/grub.d/00_header.in (grub_lang): Include country part of
7332 Reported by: Mario Limonciello.
7334 2010-12-09 Robert Millan <rmh@gnu.org>
7336 * NEWS: Document addition of ZFS support.
7338 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
7340 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
7341 rather than `/ 2', as the latter requires -Wa,--divide which would
7342 require bumping our minimum binutils version.
7344 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
7346 * util/grub-script-check.c (main): Print script line number on
7349 2010-12-01 Robert Millan <rmh@gnu.org>
7351 * grub-core/fs/zfs/zfs.c: New file.
7352 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
7353 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
7354 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
7355 * grub-core/fs/zfs/zfsinfo.c: Likewise.
7357 * include/grub/zfs/dmu.h: Likewise.
7358 * include/grub/zfs/dmu_objset.h: Likewise.
7359 * include/grub/zfs/dnode.h: Likewise.
7360 * include/grub/zfs/dsl_dataset.h: Likewise.
7361 * include/grub/zfs/dsl_dir.h: Likewise.
7362 * include/grub/zfs/sa_impl.h: Likewise.
7363 * include/grub/zfs/spa.h: Likewise.
7364 * include/grub/zfs/uberblock_impl.h: Likewise.
7365 * include/grub/zfs/vdev_impl.h: Likewise.
7366 * include/grub/zfs/zap_impl.h: Likewise.
7367 * include/grub/zfs/zap_leaf.h: Likewise.
7368 * include/grub/zfs/zfs.h: Likewise.
7369 * include/grub/zfs/zfs_acl.h: Likewise.
7370 * include/grub/zfs/zfs_znode.h: Likewise.
7371 * include/grub/zfs/zil.h: Likewise.
7372 * include/grub/zfs/zio.h: Likewise.
7373 * include/grub/zfs/zio_checksum.h: Likewise.
7375 * Makefile.util.def: Build ZFS into libgrubmods.
7376 * grub-core/Makefile.core.def: Build zfs.mod.
7378 2010-11-30 Szymon Janc <szymon@janc.net.pl>
7380 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
7382 * grub-core/commands/wildcard.c (match_files): Likewise.
7384 2010-11-30 Robert Millan <rmh@gnu.org>
7386 * grub-core/loader/i386/bsd.c
7387 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
7388 whether kernel is loaded using grub_loader_is_loaded(), rather
7389 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
7390 certain error conditions.
7392 2010-11-30 Robert Millan <rmh@gnu.org>
7394 * grub-core/commands/echo.c: Include `<grub/term.h>'.
7395 (grub_cmd_echo): Call grub_refresh() after printing a message.
7397 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
7399 Avoid using tricks for initialising endian variables.
7401 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
7403 (GRUB_MOD_INIT): Don't byte-swap.
7404 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
7405 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
7406 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
7407 (grub_swap_bytes32_compile_time): Likewise.
7408 (grub_cpu_to_le32_compile_time): Likewise.
7409 (grub_cpu_to_le16_compile_time): Likewise.
7411 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
7413 * util/grub-setup.c (setup): Stop recommending --force. People who
7414 understand the dangers of blocklists are able to find this option
7415 anyway and the ones who don't shouldn't use it anyway.
7417 2010-11-26 Robert Millan <rmh@gnu.org>
7419 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
7422 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
7424 Fix LVM-on-RAID probing.
7426 * util/grub-probe.c (probe): Remember which disk was detected as
7427 RAID (perhaps an LVM physical volume). Use that disk's raidname
7428 rather than that of the top-level disk.
7430 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7432 Fix cmdline argument quotes for setparams command of menuentry
7435 * grub-core/commands/menuentry.c (setparams_prefix): Use single
7436 quotes for arguments.
7437 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7438 grub_strchrsub function instead.
7440 * include/grub/misc.h (grub_strchrsub): New function.
7442 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7444 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
7445 effort by skipping "." and ".." entries up-front.
7446 Suggested by: Michael Lazarev.
7448 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7450 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
7451 ldflags to ldadd, to fix link line ordering.
7452 (none_decompress): Likewise.
7454 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7456 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
7458 (grub-emu-lite): Remove kern/emu/cache.S.
7460 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7462 * util/deviceiter.c (compare_devices): If the by-id link for a
7463 device couldn't be resolved, fall back to sorting by the by-id link
7464 rather than segfaulting.
7465 Reported and tested by: Daniel Mierswa.
7467 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7469 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
7470 ldflags, to fix link line ordering.
7472 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7474 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
7475 linkers are picky about this.
7477 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7479 * grub-core/Makefile.am (command.lst): Adjust sed expression
7480 ordering so that extended and priority commands aren't treated as
7483 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7485 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
7486 Remove byte-swapping function calls, which are not valid in
7487 structure initialisers.
7488 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
7490 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
7491 grub_gpt_partition_type_bios_boot.
7493 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7495 Fix test program build on GNU/kFreeBSD.
7497 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
7498 $(LIBNVPAIR)' library dependencies.
7500 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7502 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
7504 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7506 * util/grub-install.in: Remove excessive quoting that broke
7507 installations to RAID devices.
7509 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7511 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
7512 bootloader version instead of 0.
7514 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7516 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
7519 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7521 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
7522 retrieve the metadat sector if size isn't known.
7523 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7525 2010-11-18 Robert Millan <rmh@gnu.org>
7527 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
7530 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
7532 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
7534 Reported by: Jordan Uggla.
7536 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7538 Make better UTF compliant.
7540 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
7541 sequences as incorrect.
7542 (grub_is_valid_utf8): Likewise.
7543 (grub_utf8_to_ucs4): Likewise.
7544 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
7545 (grub_ucs4_to_utf8_alloc): Likewise.
7546 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
7548 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7550 Make legacy_source behave like source.
7552 * grub-core/commands/legacycfg.c (legacy_file): Don't call
7554 (grub_cmd_legacy_source): Call grub_show_menu if needed.
7556 2010-11-16 Colin Watson <cjwatson@debian.org>
7558 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
7559 (-Wunused implies -Wunused-parameter, but not vice versa).
7561 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
7563 * configure.ac: Make error messages less confusing by testing for
7564 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
7565 accepted, but produces a diagnostic if something else is wrong).
7567 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7569 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
7570 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
7572 (grub_keyboard_controller_init)
7573 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
7574 read the initial state since controller isn't inited yet.
7576 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7578 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
7579 allocate_regbeg may need to create new chunk header.
7581 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7583 Fix quoting in legacy parser.
7585 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
7587 (grub_legacy_parse): Likewise.
7588 Reported by: Jordan Uggla.
7589 Tested by: Jordan Uggla.
7591 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7593 Don't add -lgcc on i386 and x86_64.
7595 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
7596 * conf/Makefile.common (LDADD_KERNEL): Likewise.
7597 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
7599 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7601 * configure.ac: Add -Wno-trampolines when supported.
7603 2010-11-14 Modestas Vainius <modax@debian.org>
7605 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
7608 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7610 Add generic logical block size support for UDF.
7612 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
7613 (GRUB_UDF_BLKSZ): Removed.
7614 (struct grub_udf_data): New field "lbshift" to hold the logical block
7615 size of the file system in log2 format. All users updated.
7616 (sblocklist): Change type to unsigned.
7617 (grub_udf_mount): Change type of "sblklist" to unsigned.
7618 Move AVDP search before VRS recognition, because the latter requires
7619 knowledge of the logical block size, which is detected during the
7621 Detect and validate logical block size during AVDP search, adding
7622 support for block sizes 512, 1024 and 4096.
7623 Make VRS recognition independent of block size.
7625 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7627 Properly handle deleted files on UDF.
7629 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
7630 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
7633 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7635 Support reading files larger than 2 GiB.
7637 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
7638 "offset" to grub_off_t.
7639 (grub_udf_read_file): Likewise for parameter "pos".
7641 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7643 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
7645 (Simple configuration): Refer to Changes from GRUB Legacy about
7646 save_env availability.
7648 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7650 * util/grub-install.in: Ignore empty partition table detection
7651 instead of trying to include part_ module.
7653 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7655 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
7656 LVM on RAID support.
7658 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7660 Properly define WORDS_BIGENDIAN in wrapped environments.
7662 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
7664 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
7666 Reported by: Manoel Rebelo Abranches.
7667 Tested by: Manoel Rebelo Abranches.
7669 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7671 * util/grub-mkconfig.in: Fix quoting.
7673 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7675 Support big ext2 files.
7677 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
7678 (grub_ext2_read_block): Support triple indirect blocks.
7679 (grub_ext2_read_file): Use 64-bit types and read size_high.
7680 (grub_ext2_open): Read size_high.
7681 Reported by: Ximin Luo.
7682 Tested by: Manoel Rebelo Abranches.
7684 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7686 * util/grub-install.in: Handle filenames containing spaces.
7687 Reported by: Jordan Uggla.
7688 Tested by: Jordan Uggla.
7690 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7692 * util/grub-mkconfig.in (grub_script_check): New variable.
7693 Use grub_script_check instead of grub-script-check.
7694 Reported by: Barry Jackson.
7696 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7698 * docs/grub.texi (menu): Correct the order.
7699 Reported by: D. Hugh Redelmeier.
7701 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7703 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
7706 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
7708 * include/grub/elfload.h (grub_elf32_size): New parameter.
7710 Return maximum segments alignment.
7711 (grub_elf64_size): Likewise.
7712 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
7713 Return maximum segments alignment.
7714 (grub_elf64_size): Likewise.
7715 * grub-core/loader/powerpc/ieee1275/linux.c:
7716 (grub_linux_claimmap_iterate): New function. Uses the
7717 "available" property in the "memory" node for memory allocation
7718 for kernel in the PowerPC loader.
7719 (grub_linux_load32): Correctly find linux entry point offset.
7720 (grub_linux_load64): Likewise.
7722 2010-11-07 Robert Millan <rmh@gnu.org>
7724 On mips-yeeloong, build with -march=loongson2f when this flag is
7725 available (GCC >= 4.4).
7726 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
7728 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
7729 or otherwise add -march=mips3.
7731 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
7733 Suppress shell expansion on echo '*' and echo "*" like cases.
7734 Reported by: Jordan Uggla.
7736 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
7737 string arguments before shell expansion.
7738 * tests/grub_cmd_echo.in: New testcases.
7740 2010-11-07 Robert Millan <rmh@gnu.org>
7742 * conf/mips-qemu-mips.rmk: Remove stale file from previous
7745 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
7747 * grub-core/kern/emu/hostdisk.c
7748 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
7750 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7752 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
7753 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
7754 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
7756 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7758 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
7760 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7762 * util/grub-install.in: Replace useless recomendation to pass
7763 --modules with a recomendation to report a bug.
7765 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7767 Properly register serial terminfo.
7768 Reported by: Jordan Uggla
7770 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
7772 (grub_serial_terminfo_output_template): Likewise.
7773 (grub_cmd_serial): Register "serial" with terminfo.
7774 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
7775 grub_serial_terminfo_output.
7777 2010-11-05 Robert Millan <rmh@gnu.org>
7779 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
7782 2010-11-05 Robert Millan <rmh@gnu.org>
7784 On Yeeloong, pass machine type information to Linux.
7786 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
7787 (LOONGSON_MACHTYPE): New macro, set to
7788 "machtype=lemote-yeeloong-2f-8.9inches".
7789 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
7790 additional argument to Linux.
7792 2010-11-04 Robert Millan <rmh@gnu.org>
7794 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
7795 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
7796 (its SATA disks are detected as slaveless IDE master drives on
7798 Reported by Carsten Aulbert.
7800 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
7802 * util/bin2h.c (main): Fix spelling error in generated output.
7804 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
7806 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
7808 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7810 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
7811 vga= option is supplied.
7813 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7815 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
7816 * util/grub.d/10_kfreebsd.in: Likewise.
7817 * util/grub.d/10_linux.in: Likewise.
7818 * util/grub.d/20_linux_xen.in: Likewise.
7820 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7822 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
7823 argument as an argument to no-argument option.
7825 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7827 * util/grub.d/10_linux.in: Add missing load_video with explicit
7828 GRUB_GFXPAYLOAD_LINUX.
7830 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7832 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
7834 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7836 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
7837 elements with invlid index.
7838 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7839 * grub-core/disk/raid.c (insert_array): Automatically reallocate
7841 * include/grub/raid.h (grub_raid_member): New struct.
7842 (grub_raid_array): Transform devices and start_sector into usage of
7843 grub_raid_member. All users updated
7844 (allocated_devs): New member.
7846 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7848 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
7851 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
7853 NetBSD build fix for getline function conflict from gnulib.
7855 * Makefile.util.def (libgrubkern.a): New library for grub kernel
7856 components that depend on gnulib headers.
7857 (libgrubmods.a): Renamed from earlier libgrub.a.
7858 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
7860 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7862 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
7863 install rather than creating a broken install.
7865 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7867 * util/grub-setup.c (argp): Remove misleading example of installing to
7870 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7872 * util/grub-setup.c (setup): Clarify the error message.
7874 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7876 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
7878 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7880 * grub-core/kern/emu/misc.c
7881 (grub_make_system_path_relative_to_its_root)
7882 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
7884 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7886 * grub-core/kern/emu/misc.c
7887 (grub_make_system_path_relative_to_its_root): Revert r2882.
7889 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
7891 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
7892 useless field head. All users updated.
7893 (free_subchunk): Correct handling of IN_REGION subchunk.
7895 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
7897 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
7898 (Supported kernels): Likewise.
7900 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
7902 Make mktemp invocations portable.
7904 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
7905 exit if mktemp fails.
7906 * tests/grub_script_blockarg.in: Likewise.
7907 * tests/partmap_test.in: Likewise.
7908 * tests/util/grub-shell-tester.in: Likewise.
7909 * tests/util/grub-shell.in: Likewise.
7910 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7911 * Makefile.am: Likewise, and chain shell commands with `&&'
7913 * util/grub-mkrescue.in: Use the same explicit template as above, and
7914 exit if mktemp fails.
7916 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
7918 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
7919 Linux kernel, reported by Dennis Schridde.
7921 2010-10-17 Szymon Janc <szymon@janc.net.pl>
7923 * grub-core/normal/auth.c (grub_auth_check_authentication):
7924 Set-but-not-used variable removed.
7926 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7928 * docs/grub.texi (GNU/Linux): Document APM unavailability with
7929 32-bit linux protocol.
7931 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7933 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
7934 cursor shape for sanity.
7936 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7938 * docs/grub.texi (Installation): Document buggy BIOS install.
7940 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7942 * docs/grub.texi (Installation): Indent.
7944 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7946 * util/grub-setup.c (setup): New parameter allow_floppy.
7947 (arguments): New member allow_floppy.
7948 (argp_parser): Handle --allow-floppy.
7949 (main): Pass allow_floppy.
7950 * util/grub-install.in: New option --allow-floppy passed though to
7953 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7955 * util/grub-install.in: Handle partitionless disks.
7957 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7959 * util/grub-setup.c (setup): Don't clean blocklists before readability
7962 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7964 * docs/grub.texi (Installation): Document embedding zone. Remove
7965 obsolete grub-install example.
7967 2010-10-16 Szymon Janc <szymon@janc.net.pl>
7969 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
7970 Set-but-not-used variable ifdef'ed.
7971 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
7972 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
7974 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
7975 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
7976 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
7977 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
7978 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
7979 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
7980 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
7981 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
7982 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
7983 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
7984 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
7987 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7989 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
7990 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
7993 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7995 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
7996 synonym to _S5_. Needed for some DSDTs.
7998 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8000 Userspace ACPI parser debugging.
8002 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
8003 headers and add relevant defines. Don't include standard headers.
8004 (main) [GRUB_DSDT_TEST]: New function.
8005 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
8006 Don't declare functions.
8008 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8010 Remove dead grub_efi_mm_fini.
8012 * grub-core/kern/efi/mm.c (allocated_page): Removed.
8013 (ALLOCATED_PAGES_SIZE): Likewise.
8014 (MAX_ALLOCATED_PAGES): Likewise.
8015 (allocated_pages): Likewise.
8016 (grub_efi_allocate_pages): Don't record allocated pages.
8017 (grub_efi_free_pages): Likewise.
8018 (grub_efi_mm_init): Likewise.
8019 (grub_efi_mm_fini): Removed.
8021 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8023 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
8024 (grub_efi_mm_init): Take into account the memory map size increase.
8026 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8028 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
8029 (serial_hw_put): Wait based on real time rather than port reads. Don't
8031 * include/grub/serial.h (grub_serial_port): New field broken.
8033 2010-10-16 Robert Millan <rmh@gnu.org>
8035 * grub-core/kern/emu/misc.c
8036 (grub_make_system_path_relative_to_its_root): Fix premature return
8037 when processing non-root ZFS filesystems.
8038 Reported by Sergio Talens-Oliag.
8040 2010-10-15 Robert Millan <rmh@gnu.org>
8042 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
8043 guarantee compressed ones are processed first.
8045 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
8047 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
8048 grub_efiemu_autocore.
8050 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
8052 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
8054 (grub_console_getkey): Use correct jae opcode rather than ja.
8056 2010-10-12 Robert Millan <rmh@gnu.org>
8058 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
8059 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
8060 variable. All references updated.
8062 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
8064 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
8066 Correctly distinguish mdraid flavours.
8068 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
8069 (insert_array): New argument raid.
8070 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
8071 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
8072 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
8074 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
8076 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
8077 handling of special keys.
8079 2010-10-02 Aleš Nesrsta <starous@volny.cz>
8081 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
8082 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
8084 2010-10-02 Aleš Nesrsta <starous@volny.cz>
8086 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
8087 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
8089 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
8090 Use right endpoint when querying descriptor.
8092 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
8094 Clear out 0x80 color bit on EFI.
8096 Reported by: decoder and meta tech.
8098 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
8099 (grub_console_setcolorstate): Clear out 0x80 bit.
8100 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
8101 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
8102 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
8104 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
8106 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
8109 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8111 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
8112 mo_file after freeing.
8114 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8116 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
8118 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8120 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
8123 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8125 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
8128 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8130 Put terminfo into core on ieee1275 and yeeloong (needed for console).
8132 * gentpl.py: New groups terminfoinkernel and terminfomodule.
8133 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
8134 and terminfo.h when needed.
8135 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
8136 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
8137 (terminfo): Enable only on terminfokernel.
8139 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
8140 * include/grub/lib/arg.h: Likewise.
8141 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
8142 incorrect usage of ->.
8144 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8146 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
8147 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
8149 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8151 Fix coreboot compilation.
8153 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
8154 Take VBE info into account even if only text is supported.
8155 (fill_vbe_info): Take into account the case when only VGA text
8157 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
8158 on coreboot, multiboot and qemu.
8160 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8162 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
8164 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
8166 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8168 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
8171 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8173 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
8174 if they were BSD-style.
8176 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8178 * grub-core/boot/i386/pc/lnxboot.S: Replace
8179 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
8180 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
8182 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8184 Write embedding zone using Reed-Solomon.
8186 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
8187 * grub-core/Makefile.am (rs_decoder.S): New target.
8188 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
8189 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
8190 (multiboot): Move to RS part.
8191 (post_reed_solomon): New label.
8192 (grub_boot_drive): Move to non-RS part since it's modified in memory
8194 Include rs_decoder.S.
8195 * grub-core/lib/reed_solomon.c: New file.
8196 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
8198 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
8199 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
8200 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
8201 * include/grub/partition.h (grub_partition_map): Change prototype of
8202 embed to allow returning additional sectors.
8203 * include/grub/reed_solomon.h: New file.
8204 * util/grub-setup.c (setup): Handle Reed-Solomon.
8206 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
8208 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
8209 i386 and x86-64 definedness tests.
8211 2010-09-27 Yves Blusseau <blusseau@zetam.org>
8213 Fix generation of kernel_syms.lst
8215 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
8218 2010-09-26 Robert Millan <rmh@gnu.org>
8220 Support degraded ZFS arrays in "grub-probe -t device" resolution.
8222 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
8223 the pool is an array of devices, iterate through it and return the
8224 first device that passes a stat() test (instead of blindly returning
8227 2010-09-26 Robert Millan <rmh@gnu.org>
8229 Build fixes for GNU/kFreeBSD.
8231 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
8232 to programs that require ZFS conversion.
8233 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
8234 kernels that don't have FLOPPY_MAJOR.
8236 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
8238 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
8240 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
8244 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
8245 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
8246 mdraid09 and mdraid1x.
8248 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
8250 Re-enable grub-extras.
8252 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
8253 avoid confusing Automake. Run autogen only twice, once for the top
8254 level and once for grub-core. Add Makefile.util.def and
8255 Makefile.core.def from extra modules to the appropriate autogen
8256 invocations. If Makefile.common exists in an extra module, include
8257 it in both Makefile.util.am and grub-core/Makefile.core.am;
8258 similarly, include any Makefile.util.common file in Makefile.util.am
8259 and any Makefile.core.common file in grub-core/Makefile.core.am.
8260 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
8261 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
8262 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
8263 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
8265 * gentpl.py (gvar_add): Turn GVARS into a set.
8266 (global_variable_initializers): Sort global variables on output.
8267 (vars_init): New function.
8268 (first_time): Likewise.
8269 (library): Ensure that non-global variable initialisations are
8270 emitted before the first time we emit code for a library block.
8271 Append to variables rather than setting them. Only emit
8272 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
8273 each conditional path.
8274 (program): installdir() emits an Autogen macro, so must be passed to
8275 var_add rather than gvar_add.
8278 (rules): New function, centralising handling for different target
8279 types. Set up Guile association lists for first_time and vars_init,
8280 and send most output to a diversion so that variable initialisations
8281 can be emitted first.
8282 (module_rules): Use new rules function.
8283 (kernel_rules): Likewise.
8284 (image_rules): Likewise.
8285 (library_rules): Likewise.
8286 (program_rules): Likewise.
8287 (script_rules): Likewise.
8288 (data_rules): Likewise.
8290 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
8292 * .bzrignore: Add contrib and grub-core/contrib. Remove
8293 grub-core/Makefile.gcry.am.
8295 2010-09-24 Yves Blusseau <blusseau@zetam.org>
8297 * grub-core/lib/LzFind.c: Add missing include.
8298 * grub-core/lib/LzmaEnc.c: Likewise.
8299 * grub-core/script/lexer.c: Likewise.
8300 * grub-core/script/yylex.l: Likewise.
8301 * util/grub-macho2img.c: Likewise.
8302 * util/grub-menulst2cfg.c: Likewise.
8303 * util/grub-mklayout.c: Likewise.
8304 * util/grub-mkpasswd-pbkdf2.c
8305 * util/grub-mkrelpath.c: Likewise.
8306 * util/resolve.c: Likewise.
8308 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
8310 * Makefile.util.def (example_unit_test): Add
8311 grub-core/gnulib/libgnu.a.
8313 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
8315 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
8317 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
8319 Support xz compression on yeeloong.
8321 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
8322 * configure.ac: Check for LZMA.
8323 * grub-core/Makefile.core.def (xz_decompress): New target.
8324 (none_decompress): Likewise.
8325 * grub-core/boot/decompressor/minilib.c: New file.
8326 * grub-core/boot/decompressor/none.c: Likewise.
8327 * grub-core/boot/decompressor/xz.c: Likewise.
8328 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
8329 * grub-core/kern/mips/cache_flush.S: Likewise.
8330 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
8331 * grub-core/kern/mips/startup.S: Move first stage to ...
8332 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
8334 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
8335 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
8336 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
8337 Allocate statically.
8338 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
8339 Allocate statically or use scratch. Don't check CRC32.
8340 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
8341 Allocate statically. Don't check CRC32.
8342 * include/grub/decompressor.h: New file.
8343 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
8345 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
8346 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
8347 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
8348 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
8349 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
8350 * util/grub-mkimage.c (grub_compression_t): New type.
8351 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
8352 (image_target_desc): New field default_compression.
8353 (image_targets): Adjust yeeloong targets.
8354 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
8355 (compress_kernel): New parameter comp.
8356 (generate_image): Likewise. Handle new compression case.
8357 (options): New option --compression
8359 (main): Handle new option.
8361 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
8363 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
8365 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
8367 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
8368 typo in __i386__ conditional.
8370 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
8372 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
8375 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
8377 Implement EFI and ACPI multiboot2 extensions.
8379 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
8380 new tags as supported.
8381 (acpiv2_size): New function.
8382 (grub_multiboot_get_mbi_size): Take new tags into account.
8383 (grub_multiboot_make_mbi): Add new tags.
8384 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
8386 2010-09-21 Aleš Nesrsta <starous@volny.cz>
8388 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
8389 Added missing configuration of USB device.
8391 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8393 * grub-core/normal/menu_entry.c (run): Make sure we always return
8396 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8398 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
8399 NumberOfPages is UINT64 according to the UEFI specification, not
8400 UINTN. Fix printf format.
8402 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8404 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
8405 `err' to grub_usb_err_t.
8406 Reported and tested by: KESHAV P.R.
8408 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8410 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
8411 tpart non-const, so that we can assign to it. (Since this is a
8412 typedef, the constness refers to the pointer rather than what it
8415 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8417 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
8418 $(top_srcdir)/grub-core/gnulib as well as
8419 $(top_builddir)/grub-core/gnulib.
8420 Reported by: KESHAV P.R.
8422 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8424 * util/grub-install.in: Fix the bootloader ID option to be
8425 consistently --bootloader-id, not --bootloader_id.
8426 Reported by: KESHAV P.R.
8428 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8430 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
8431 check hash checksum." consistently translatable.
8433 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8435 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
8438 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8440 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
8441 (GRUB_MOD_INIT): Register sha1sum command.
8442 (GRUB_MOD_FINI): Unregister sha1sum command.
8444 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8446 Keep boot and grub directory names in sync with utils scripts
8448 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
8449 * config.h.in: Add previous macros.
8450 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
8451 * util/grub-install.in: Use $bootdir and $grubdir variables.
8453 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8455 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
8456 convert partition names to disk names if the new `convert' parameter
8458 (grub_util_biosdisk_get_grub_dev): If opening the disk device
8459 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
8460 disk in its own right. This can happen with Xen disk images.
8462 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8464 * util/grub-editenv.c: Update strings to avoid warnings when generating
8466 * util/grub-setup.c: Likewise.
8468 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8470 * configure.ac: Change version to 1.99~beta0.
8472 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8474 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
8476 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
8478 * include/multiboot.h: Resynced with specification.
8479 * include/multiboot2.h: Likewise.
8481 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8483 Fix po directory handling.
8485 * configure.ac: Create po/Makefile.in rather than po/Makefile.
8486 * grub-core/gnulib/Makefile.am: Import gettext module.
8487 * m4/gnulib-cache.m4: Likewise.
8488 * m4/gnulib-comp.m4: Likewise.
8489 * m4/gettext.m4: New file, from gnulib.
8490 * m4/glibc2.m4: Likewise.
8491 * m4/iconv.m4: Likewise.
8492 * m4/intdiv0.m4: Likewise.
8493 * m4/intl.m4: Likewise.
8494 * m4/intldir.m4: Likewise.
8495 * m4/intlmacosx.m4: Likewise.
8496 * m4/intmax.m4: Likewise.
8497 * m4/inttypes-pri.m4: Likewise.
8498 * m4/lcmessage.m4: Likewise.
8499 * m4/lib-ld.m4: Likewise.
8500 * m4/lib-link.m4: Likewise.
8501 * m4/lib-prefix.m4: Likewise.
8502 * m4/lock.m4: Likewise.
8503 * m4/nls.m4: Likewise.
8504 * m4/po.m4: Likewise.
8505 * m4/printf-posix.m4: Likewise.
8506 * m4/progtest.m4: Likewise.
8507 * m4/threadlib.m4: Likewise.
8508 * m4/uintmax_t.m4: Likewise.
8509 * m4/visibility.m4: Likewise.
8510 * po/Makefile.am: Remove.
8511 * po/Makefile.in.in: New file, from gettext.
8512 ($(DOMAIN).pot-update): Support POTFILES-shell.
8513 * po/Makevars: New file.
8514 * po/POTFILES-shell: Rename to ...
8515 * po/POTFILES-shell.in: ... this. Update.
8516 * po/POTFILES: Rename to ...
8517 * po/POTFILES.in: ... this. Update.
8518 * po/Rules-quot: New file, from gettext.
8519 * po/boldquot.sed: Likewise.
8520 * po/en@boldquot.header: Likewise.
8521 * po/en@quot.header: Likewise.
8522 * po/insert-header.sin: Likewise.
8523 * po/quot.sed: Likewise.
8524 * po/remove-potcdate.sin: Likewise.
8526 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8528 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
8530 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8532 * util/grub.d/20_linux_xen.in: Use submenus.
8534 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8538 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
8539 parameter submenu. All users updated.
8540 * grub-core/normal/main.c (free_menu): Rename to ...
8541 (grub_normal_free_menu): ... this. Made global.
8542 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
8544 * grub-core/normal/menu_entry.c (screen): New field submenu.
8545 (make_screen): Set submenu.
8546 (run): Open new context if requested.
8547 * include/grub/menu.h (grub_menu_entry): New field submenu.
8548 * include/grub/normal.h (grub_normal_free_menu): New proto.
8550 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8552 Menu entries extractor.
8554 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
8556 (GRUB_MOD_INIT): Register new variants.
8557 (GRUB_MOD_FINI): Unregister new variants.
8558 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
8559 into grub_cmd_legacy_source.
8560 (grub_cmd_legacy_source): Implement extractor variants.
8561 (GRUB_MOD_INIT): Register new variants.
8562 (GRUB_MOD_FINI): Unregister new variants.
8563 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
8565 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
8566 search as an extractor.
8567 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
8568 test as an extractor.
8569 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
8571 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
8572 (grub_env_new_context): New function.
8573 (grub_env_context_open): Likewise.
8574 (grub_env_extractor_open): Likewise.
8575 (grub_env_extractor_close): Likewise.
8576 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
8577 grub_extractor_level.
8578 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
8579 * include/grub/env.h (grub_env_extractor_open): New proto.
8580 (grub_env_extractor_close): Likewise.
8581 * include/grub/normal.h (grub_extractor_level): New external variable.
8583 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8585 Make cutmem accept a region specification.
8586 Suggested by: Samuel Thibault
8588 * grub-core/mmap/mmap.c (parsemem): New function.
8589 (grub_cmd_cutmem): Handle new arguments.
8591 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8595 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
8596 (GRUB_MOD_INIT): Register new command.
8597 (GRUB_MOD_FINI): Unregister new command.
8599 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8601 Support some annoying BSD and Minix subpartitions.
8603 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
8604 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
8605 Properly handle concatenation.
8606 * grub-core/kern/device.c (grub_device_iterate): Likewise.
8607 * grub-core/normal/completion.c (iterate_partition): Likewise.
8608 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
8609 contain partition. All users updated.
8610 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
8612 (grub_openbsdlabel_partition_map): Likewise.
8613 (bsdlabel_partition_map_iterate): Rename to ..
8614 (iterate_real): ... this. New arguments sector, freebsd and pmap.
8615 (bsdlabel_partition_map_iterate): New function.
8616 (netopenbsdlabel_partition_map_iterate): Likewise.
8617 (netbsdlabel_partition_map_iterate): Likewise.
8618 (openbsdlabel_partition_map_iterate): Likewise.
8619 (GRUB_MOD_INIT): Register new partmaps.
8620 (GRUB_MOD_FINI): Unregister new partmaps.
8621 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
8622 (grub_partition_msdos_iterate): ... this. All users updated.
8623 Don't support embedding other than in a minix partition.
8624 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
8626 * include/grub/partition.h (grub_partition): New field msdostype.
8627 * util/grub-install.in: Handle openbsd and netbsd types being in
8630 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8632 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
8634 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
8635 * grub-core/Makefile.core.def (mdraid): Renamed to ...
8636 (mdraid09): ... this.
8637 (mdraid1x): New module.
8638 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
8639 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
8641 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8643 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
8646 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8648 * grub-core/commands/efi/lsefimmap.c: Correct header.
8651 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8653 * util/grub-editenv.c (argp_parser): Don't pass translated strings
8654 as printf format strings; the translations might contain '%' which
8655 could cause a crash.
8657 * util/grub-fstest.c (argp_parser): Likewise.
8658 * util/grub-setup.c (argp_parser): Likewise.
8661 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8663 Use argp in grub-fstest.
8665 * util/grub-fstest.c: Don't include getopt.h.
8667 (root): New variable.
8668 (args_count): Likewise.
8670 (num_disks): Likewise.
8673 (debug_str): Likewise.
8675 (options): Transformed to argp.
8677 (main): Split argument parsing into ...
8678 (argp_parser): ... this. Changed to argp format.
8679 (argp): New variable.
8680 (main): Use argp_parse.
8682 2010-09-20 Tristan Gingold <gingold@free.fr>
8683 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
8684 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8686 * grub-core/commands/efi/lsefimmap.c: New file.
8687 * grub-core/Makefile.core.def (lsefimmap): New module.
8688 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
8690 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8692 Pause the execution (10s max) if any errors are displayed so the user
8693 has a chance to see them.
8695 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
8696 (grub_print_error): Increment grub_err_printed_errors.
8697 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
8698 execution if any errors were displayed.
8699 (show_menu): Remove old code for pause.
8700 * grub-core/normal/menu_entry.c (run): Likewise.
8701 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
8703 (grub_normal_get_char_counter): Likewise.
8704 * include/grub/err.h (grub_err_printed_errors): New external variable.
8705 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
8707 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8709 Support multiboot VBE info.
8711 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
8712 Take VBE info into account.
8713 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
8714 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
8715 Call fill_vbe_info when appropriate.
8716 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
8717 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
8719 (grub_multiboot_get_mbi_size): Take new tags into account.
8720 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
8721 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
8722 Call fill_vbe_tag when appropriate.
8723 (grub_multiboot_make_mbi): Properly align tags.
8724 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
8726 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
8728 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
8730 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8732 Suport manual terminal geometry specification.
8734 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
8735 Save state in grub_ofconsole_terminfo_output.
8736 (grub_ofconsole_term): Use grub_terminfo_getwh.
8737 (grub_ofconsole_getwh): Removed.
8738 * grub-core/term/serial.c (grub_serial_getwh): Removed.
8739 (grub_serial_term): Use grub_terminfo_getwh.
8740 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
8741 (options): New struct.
8742 (OPTION_*): New enum.
8743 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
8744 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
8746 (grub_terminfo_getwh): New proto.
8747 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
8749 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8751 Handle legacy "terminal" command.
8753 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
8755 (legacy_commands): Add terminal and title.
8756 (grub_legacy_parse): Handle terminal. Simplify title handling.
8758 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8760 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
8761 parameters overflow.
8763 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8765 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
8768 * docs/grub.texi (Shell-like scripting): Document `!'.
8769 (Network): Simplify using new i386-pc-pxe format. Mention
8774 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8776 * Makefile.am (SUBDIRS): Restore "."; it's important to force
8777 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
8780 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8782 * grub-core/commands/efi/lsefisystab.c: Correct header.
8783 * grub-core/commands/efi/lssal.c: Likewise.
8784 * grub-core/commands/testload.c: Likewise.
8786 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8788 * util/grub-mkrescue.in: Add explicit root argument to --set to
8789 prevent the UUID being interpreted as an argument to --set (matches
8790 previous change to prepare_grub_to_access_device).
8792 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8794 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
8795 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
8796 the verbosity of later #ifs.
8797 (find_partition_start): Define this function on FreeBSD too.
8798 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
8800 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
8803 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8805 * util/grub-editenv.c: Use argp instead of getopt.
8807 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8809 * util/grub-setup.c: Use argp instead of getopt.
8811 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8813 Use gnulib-tool to create gnulib source files.
8815 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
8816 grub-core/gnulib directories
8817 * .bzignore: Add **/.deps and autogenerated gnulib files
8818 * configure.ac: Assign auxiliary directory to build-aux, add invocation
8819 of gnulib macros, add grub-core/gnulib/Makefile
8820 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
8821 include m4 directory to aclocal.
8822 * Makefile.util.def: Remove direct compilation of gnulib source files
8823 and use the new grub-core/gnulib/libgnu.a.
8824 * build-aux/config.rpath: move config.rpath from top directory to
8826 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
8828 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
8829 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
8830 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
8832 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
8835 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8837 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
8838 grub-core/genmod.sh and grub-core/gensyminfo.sh
8840 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
8842 Add a test for echo command options.
8844 * tests/grub_cmd_echo.in: New test.
8845 * Makefile.util.def: Rules for new test.
8847 2010-09-20 Szymon Janc <szymon@janc.net.pl>
8849 Remove crc.mod and move crc command to hashsum.mod.
8850 Remove lib/crc.c - users updated to use gcrypt implementation.
8852 * grub-core/commands/crc.c: Removed.
8853 * grub-core/Makefile.core.def (crc): Module removed.
8854 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
8855 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
8856 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
8857 * grub-core/lib/crc.c: Removed.
8858 * include/grub/lib/crc.h: Removed.
8859 * Makefile.util.def (crc): Remove lib/crc.c
8860 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
8861 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
8862 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
8863 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
8864 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
8865 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
8867 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8869 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
8871 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8873 Split config.h for util and core.
8875 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
8878 (BSS_START_SYMBOL): Likewise.
8879 (END_SYMBOL): Likewise.
8880 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
8881 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
8882 * config.h.in: New file.
8883 * configure.ac: Use config-util.h as config define file.
8884 Rename MACHINE into GRUB_MACHINE. All users updated.
8885 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
8887 (NESTED_FUNC_ATTR): Likewise.
8888 Substitue new variables.
8889 (COND_HAVE_ASM_USCORE): New conditional.
8890 * grub-core/Makefile.am (ASM_PREFIX): New variable.
8891 (kernel_syms.lst): Use ASM_PREFIX.
8892 * grub-core/kern/emu/console.c: Include config-util.h.
8893 * grub-core/kern/emu/misc.c: Likewise.
8894 * grub-core/kern/emu/mm.c: Likewise.
8895 * include/grub/emu/misc.h: Likewise.
8896 * include/grub/libgcc.h: Likewise.
8898 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8900 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
8902 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
8903 Fix GRUB_TERM_KEY_* constants usage.
8904 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
8906 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8908 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
8910 * grub-core/bus/usb/uhci.c: Remove empty define.
8911 (grub_uhci_check_transfer): Add missing cast.
8912 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
8914 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
8916 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
8918 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8920 * grub-core/Makefile.core.def (legacycfg): Add
8921 lib/i386/pc/vesa_modes_table.c on emu.
8923 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
8925 Reduce number of temporary files generated by build system.
8927 * grub-core/gencmdlist.sh: Removed.
8928 * grub-core/genfslist.sh: Removed.
8929 * grub-core/genhandlerlist.sh: Removed.
8930 * grub-core/genmodsrc.sh: Removed.
8931 * grub-core/genpartmaplist.sh: Removed.
8932 * grub-core/genparttoollist.sh: Removed.
8933 * grub-core/gentermiinallist.sh: Removed.
8934 * grub-core/genvideolist.sh: Removed.
8936 * grub-core/genmod.sh.in: New file.
8937 * grub-core/gensyminfo.sh.in: New file.
8939 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
8940 * conf/Makefile.extra-dist: Update with new files.
8941 * gentpl.py: Remove rules related to unnecessary temporary files.
8942 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
8944 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
8946 * grub-core/bus/usb/uhci.c: Remove empty #define.
8947 * grub-core/genmoddep.awk: Updated with new syminfo format.
8948 * util/bash-completion.d/Makefile.am: Add config.log to
8951 2010-09-19 Yves Blusseau <blusseau@zetam.org>
8953 * Makefile.util.def: Add forgotten $(LIBINTL) library.
8955 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
8957 * util/grub-mkconfig.in: Check the config script for syntax errors
8960 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
8961 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8963 * Makefile.util.def (grub-install): Use util/grub-install.in on all
8965 * util/grub-install.in: Add EFI and IEEE1275 support.
8966 * util/i386/efi/grub-install.in: Removed.
8967 * util/ieee1275/grub-install.in: Likewise.
8969 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8971 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
8972 (grub_cmd_cmosclean): Likewise.
8973 (GRUB_MOD_INIT): Register command cmosclean.
8974 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
8975 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
8977 2010-09-18 Carles Pina i Estany <carles@pina.cat>
8978 2010-09-18 Aleš Nesrsta <starous@volny.cz>
8979 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8981 Add keyboard layouts support.
8983 * Makefile.util.def (grub-mklayout): New file.
8984 (grub-kbdcomp): New script.
8985 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
8986 Add keyboard_layouts.h.
8987 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
8988 commands/boot.c on yeeloong.
8989 (keylayouts): New module.
8990 * grub-core/bus/usb/ohci.c
8991 * grub-core/bus/usb/uhci.c
8992 * grub-core/bus/usb/usbhub.c (rescan): New variable.
8993 (grub_usb_add_hub): Poll interrupt pipe for device handling.
8994 (attach_root_port): Likewise.
8995 (poll_nonroot_hub): Likewise.
8996 (grub_usb_poll_devices): Likewise.
8997 (detach_device): Close transfer.
8998 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
9000 (grub_usb_bulk_setup_readwrite): Likewise.
9001 (grub_usb_bulk_finish_readwrite): Likewise.
9002 * grub-core/commands/keylayouts.c: New file.
9003 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
9004 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
9006 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
9008 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
9009 * include/grub/keyboard_layouts.h: New file.
9010 * util/grub-mklayout.c: New file.
9011 * util/grub-kbdcomp.in: Likewise.
9013 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9017 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
9018 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
9020 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
9021 (grub_upper_mem): Likewise.
9022 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
9023 * include/grub/memory.h (grub_memory_type_t): New enum.
9026 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9028 * grub-core/Makefile.core.def (lsapm): New module.
9029 * grub-core/commands/i386/pc/lsapm.c: New file.
9030 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
9031 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
9033 * include/grub/i386/pc/apm.h: New file.
9034 * include/multiboot.h (multiboot_apm_info): New struct.
9036 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9038 GRUB-legacy configuration file support.
9040 * Makefile.util.def (grub-menulst2cfg): New util.
9041 * docs/man/grub-menulst2cfg.h2m: New file.
9042 * grub-core/Makefile.core.def (legacycfg): New module.
9043 * grub-core/commands/legacycfg.c: New file.
9044 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
9045 (grub_normal_add_menu_entry): ... this.
9046 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
9047 (grub_normal_set_password): ...this.
9048 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
9049 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
9050 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
9051 * grub-core/lib/legacy_parse.c: New file.
9052 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
9053 * include/grub/i386/pc/vesa_modes_table.h: New file.
9054 * include/grub/legacy_parse.h: Likewise.
9055 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
9056 * util/grub-menulst2cfg.c: New file.
9058 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9060 * grub-core/kern/emu/hostdisk.c
9061 (convert_system_partition_to_system_disk): Initialise node.
9063 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9065 * grub-core/kern/emu/hostdisk.c
9066 (convert_system_partition_to_system_disk): Fix devmapper memory pool
9068 Reported and based on patch by: Modestas Vainius.
9070 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9072 Fix DM-RAID probing with recent versions of device-mapper udev
9075 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
9076 canonicalise device paths under /dev/mapper/.
9077 (convert_system_partition_to_system_disk): Compare the
9078 uncanonicalised path to /dev/mapper/ rather than the canonicalised
9079 path, since device nodes under /dev/mapper/ are often symlinks.
9081 2010-09-17 Yves Blusseau <blusseau@zetam.org>
9083 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
9085 2010-09-16 Yves Blusseau <blusseau@zetam.org>
9087 * configure.ac: Avoid some annoying error messages if freetype-config
9088 program is not found.
9090 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9092 Support RAID on virtio devices, and others.
9094 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
9096 [__MINGW32__] (grub_find_device): ... this.
9097 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
9098 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
9099 reasonable default if dir is NULL.
9100 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
9102 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
9103 (grub_guess_root_device): Update callers.
9104 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
9106 * util/raid.c (grub_util_getdiskname): Remove.
9107 (grub_util_raid_getmembers): Use grub_find_device rather than
9108 grub_util_getdiskname.
9110 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9112 * docs/grub.texi (serial): Remove obsolete comment about GRUB
9113 needing to be compiled with serial support.
9114 (ls): Indicate that multiple files are accepted.
9115 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
9116 indicate that multiple files are accepted.
9118 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9120 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
9121 libgrub_a_init.c, and util/bash-completion.d/grub.
9123 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9125 * util/grub-setup.c (setup): Fix incorrect container semantics.
9127 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9129 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
9131 Reported by: J. Nick Terry
9133 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9135 Move embedding routines to partmap sources files.
9137 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
9138 [GRUB_UTIL]: New variable.
9139 (gpt_partition_map_iterate): Set part.parent.
9140 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
9141 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
9142 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
9144 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
9145 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
9146 (grub_partition_map) [GRUB_UTIL]: New field embed.
9147 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
9148 (setup): Use ->embed.
9150 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9152 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
9154 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
9155 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
9157 2010-09-15 Yves Blusseau <blusseau@zetam.org>
9159 Add function to get completions from usage.
9161 * util/bash-completion.d/grub-completion.bash.in: Add function to get
9162 completions from usage. Use LC_ALL=C to get options properly.
9164 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9166 * grub-core/gnulib/basename-lgpl.c: Imported.
9167 * grub-core/gnulib/basename.c: Likewise.
9168 * grub-core/gnulib/dirname-lgpl.c: Likewise.
9169 * grub-core/gnulib/dirname.c: Likewise.
9170 * grub-core/gnulib/dirname.h: Likewise.
9171 * grub-core/gnulib/stripslash.c: Likewise.
9173 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9175 * grub-core/gnulib/error.c: Resynced.
9176 * grub-core/gnulib/getopt.c: Likewise.
9177 * grub-core/gnulib/getopt_int.h: Likewise.
9178 * grub-core/gnulib/regex.h: Likewise.
9179 * grub-core/gnulib/regex_internal.c: Likewise.
9180 * grub-core/gnulib/regex_internal.h: Likewise.
9182 2010-09-15 Szymon Janc <szymon@janc.net.pl>
9184 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
9185 CRC calculations and validity checks.
9186 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
9189 2010-09-15 Szymon Janc <szymon@janc.net.pl>
9191 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
9193 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9195 Fix incorrect echo options handling.
9196 Reported by: Yves Blusseau.
9198 * include/grub/command.h (grub_command_flags_t): New flags
9199 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
9200 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
9201 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
9203 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9205 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
9207 (GRUB_COMMAND_FLAG_MENU): Likewise.
9208 (GRUB_COMMAND_FLAG_BOTH): Likewise.
9209 (GRUB_COMMAND_FLAG_TITLE): Removed.
9210 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
9211 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
9212 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
9213 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
9214 (grub_command_flags_t): New enum. All users updated.
9216 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
9218 Fix solaris compilation.
9220 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
9221 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
9222 (grub-emu-list): Likewise.
9224 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9226 Remove deprecated root command.
9228 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
9231 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9233 * util/i386/pc/grub-setup.c: Merge this ...
9234 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
9235 * util/grub-setup.c: ... into this.
9236 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
9239 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9241 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
9244 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9246 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
9249 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9251 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
9252 explicit root argument to set to prevent UUID to be interpreted as
9255 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9257 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
9259 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9261 Don't export grub_gate_a20.
9263 * grub-core/kern/i386/pc/init.c: Remove leftovers.
9264 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
9266 (grub_gate_a20): ... this. All users updated.
9267 * include/grub/i386/pc/init.h: Removed. All users updated.
9269 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9271 Create euro.pf2 which supports most European languages.
9273 * Makefile.am (grubdata_DATA): Add euro.pf2.
9274 (euro.pf2): New target.
9275 (CLEANFILES): Add euro.pf2.
9277 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9279 * configure.ac: Disable emu-usb by default to prevent inadvertent
9282 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9284 Disable usbserial on grub-emu since our libusb code isn't good enough
9287 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
9288 (usbserial_pl2303): Likewise.
9289 (usbserial_ftdi): Likewise.
9291 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9293 * include/grub/disk.h (grub_disk): Remove has_partitions.
9295 * disk/loopback.c (grub_loopback): Remove has_partitions.
9297 (options): Remove partitions. All users updated.
9298 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
9299 * util/i386/pc/grub-setup.c (setup): copy partition table only when
9300 actual partition table is found.
9302 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9304 Remove readability checks (too many false negatives).
9306 * util/grub-install.in: Remove readability checks.
9307 * util/grub-mkconfig.in: Likewise.
9308 * util/grub.d/10_hurd.in: Likewise.
9309 * util/grub.d/10_kfreebsd.in: Likewise.
9310 * util/grub.d/10_linux.in: Likewise.
9311 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
9314 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9316 Enable acpi shutdown on all ACPI platforms.
9318 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
9319 on coreboo, multiboot and EFI.
9320 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
9321 (grub_acpi_halt): Likewise.
9322 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
9323 (grub_cmd_halt): Don't call grub_acpi_halt directly.
9324 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
9325 * grub-core/lib/i386/halt.c (grub_halt)
9326 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
9328 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9330 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
9333 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9335 * grub-core/video/efi_gop.c: Fix over-80-chars line.
9336 * grub-core/video/efi_uga.c: Likewise.
9338 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9340 Filter devaliases and never open same device twice.
9342 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
9343 (last_ihandle): Likewise.
9344 (ofdisk_hash_ent): New member shortest.
9345 (ofdisk_hash_add): Add canonical path too.
9346 (scan): New function.
9347 (grub_ofdisk_iterate): Iterate over hashed entries.
9348 (compute_dev_path): Don't add :0.
9349 (grub_ofdisk_open): Don't really open the disk.
9350 (grub_ofdisk_close): Avoid closing unrelated disk.
9351 (grub_ofdisk_read): Implement reopen logic.
9352 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
9354 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
9357 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9361 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
9362 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
9363 right address. Add sparc64_ieee1275_ldflags.
9364 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
9365 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
9366 to grub_host_to_target_addr
9367 (load_image): Likewise.
9369 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9371 * grub-core/normal/completion.c (complete_file): Handle device
9373 Fix based on patch by Doug Nazar.
9375 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9377 grub-mknetdir script.
9379 * Makefile.util.def (grub-mknetdir): New module.
9380 * tests/util/grub-shell.in: Support boot=net
9381 * util/grub-mknetdir.in: New file.
9383 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9385 videoinfo on non-vbe.
9387 * grub-core/Makefile.core.def (vbeinfo): Removed.
9389 (videoinfo): New module.
9390 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
9391 * grub-core/commands/i386/pc/vbetest.c: Removed.
9392 * grub-core/commands/videoinfo.c: New file.
9393 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
9395 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
9397 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
9398 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
9399 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
9400 mode_number. New parameter mode. All users updated.
9401 (grub_video_gop_iterate): New function.
9402 (grub_video_efi_gop): New member iterate.
9403 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
9404 (grub_vbe_set_video_mode): Remove setting useless fields.
9405 (vbe2videoinfo): New function.
9406 (grub_video_vbe_iterate): Likewise.
9407 (grub_video_vbe_setup): Use vbe2videoinfo.
9408 (grub_video_vbe_print_adapter_specific_info): New function.
9409 (grub_video_vbe_adapter): New fields iterate and
9410 print_adapter_specific_info.
9411 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
9413 (grub_video_mode_info): New field mode_number.
9414 (grub_video_adapter): New fields iterate and
9415 print_adapter_specific_info.
9417 2010-09-13 Tristan Gingold <gingold@free.fr>
9418 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
9419 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9421 * grub-core/commands/efi/lsefisystab.c: New file.
9422 * grub-core/commands/efi/lssal.c: Likewise.
9423 * grub-core/Makefile.core.def (lsacpi): New module.
9424 (lsefisystab): Likewise.
9425 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
9426 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
9427 (grub_efi_sal_system_table): New struct.
9428 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
9429 (grub_efi_sal_system_table_memory_descriptor): Likewise.
9430 (grub_efi_sal_system_table_platform_features): Likewise.
9431 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
9432 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
9433 (grub_efi_sal_system_table_ap_wakeup): Likewise.
9434 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
9436 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9438 Support explicit user claim that a device is BIOS-visible.
9440 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
9441 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
9442 * grub-core/kern/emu/hostdisk.c
9443 (convert_system_partition_to_system_disk): Support mdX.
9444 (find_system_device): New parameter add. All users updated.
9445 (grub_util_biosdisk_is_present): New function.
9446 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
9449 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9451 Search hints support.
9453 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
9456 2010-09-13 Yves Blusseau <blusseau@zetam.org>
9458 Bash completion script for util commands
9460 * Makefile.am: Add util/bash-completion.d directory
9461 * configure.ac: Likewise.
9462 * util/bash-completion.d/Makefile.am: New file.
9463 * util/bash-completion.d/grub-completion.bash.in: Likewise.
9465 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9467 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
9468 (print_backlog): set backlog_ucs4 and backlog_glyphs.
9469 Reported by: Yves Blusseau.
9471 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9473 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
9474 partition size and offset.
9476 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9478 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
9480 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9482 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
9484 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9486 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
9487 (grub_xvasprintf): Likewise.
9489 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9491 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
9493 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9495 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
9496 args ending with NULL.
9498 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9500 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
9503 2010-09-11 Szymon Janc <szymon@janc.net.pl>
9505 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
9507 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9509 Shutdown using ACPI.
9511 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
9512 * grub-core/commands/acpihalt.c: New file.
9513 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
9514 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
9515 (grub_acpi_halt): New proto.
9516 (GRUB_ACPI_SLP_EN): New const.
9517 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
9518 (GRUB_ACPI_OPCODE_*): New enum.
9519 (GRUB_ACPI_EXTOPCODE_*): Likewise.
9521 2010-09-11 Tristan Gingold <gingold@free.fr>
9522 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
9523 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9525 * commands/lsacpi.c: New file.
9526 * grub-core/Makefile.core.def (lsacpi): New module.
9527 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
9528 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
9529 (grub_acpi_madt_entry_header): New struct.
9530 (grub_acpi_madt): Likewise.
9531 (grub_acpi_madt_entry_interrupt_override): Likewise.
9532 (grub_acpi_madt_entry_sapic): Likewise.
9533 (grub_acpi_madt_entry_lsapic): Likewise.
9534 (grub_acpi_madt_entry_platform_int_source): Likewise.
9535 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
9536 (PRIuGRUB_UINT32_T): Likewise.
9537 (PRIxGRUB_UINT64_T): Likewise.
9539 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9541 Implement loading palette on ieee1275_fb.
9543 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
9544 (have_setcolors): Likewise.
9545 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
9546 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
9547 (grub_video_ieee1275_set_palette): Implement.
9549 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9550 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
9552 * util/grub-install.in (grub_partition): New variable.
9553 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
9554 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
9555 Fixes a bug reported by Yves Blusseau.
9557 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9561 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
9562 =grub_cpu_flush_cache on all mips and not only yeeloong.
9563 * configure.ac (COND_mips): New conditional.
9564 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
9566 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
9567 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
9568 [GRUB_LINKER_HAVE_INIT]: New function.
9569 (grub_emu_post_init): Likewise.
9570 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
9571 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
9572 * include/grub/cache.h (_mips): Include mips/cache.h.
9573 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
9574 LVM and RAID prototypes.
9575 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
9576 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
9579 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9581 * util/grub-install.in: Don't try to verify core.img until after
9582 running grub-mkimage to create it.
9584 2010-09-10 Robert Millan <rmh@gnu.org>
9586 * util/grub.d/10_hurd.in: Add misc readability checks.
9587 * util/grub.d/10_kfreebsd.in: Likewise.
9588 * util/grub.d/10_linux.in: Likewise.
9590 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9592 * util/grub-install.in: ${imgext} won't be defined here until the
9593 install branch is merged. For the meantime, only verify core.img on
9594 i386-pc and sparc64-ieee1275 platforms.
9596 2010-09-10 Robert Millan <rmh@gnu.org>
9598 Solaris support in grub_find_zpool_from_dir(). Thanks
9599 Seth Goldberg for referring to getextmntent() facility.
9601 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
9603 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
9605 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
9606 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
9607 method for finding zpool name.
9609 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9611 grub-fstest needs the host and hostfs modules while other utilities
9612 actively require those modules to be absent, so grub-fstest needs
9613 its own initialisation and finalisation code.
9615 * Makefile.am (grub_fstest.pp): New target.
9616 (grub_fstest_init.lst): Likewise.
9617 (grub_fstest_init.c): Likewise.
9618 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
9620 2010-09-10 Robert Millan <rmh@gnu.org>
9622 * configure.ac: Check for `struct statfs.f_fstypename' and
9623 `struct statfs.f_mntfromname'.
9625 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
9626 kFreeBSD-specific code.
9628 2010-09-10 Robert Millan <rmh@gnu.org>
9630 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
9631 on ZFS. Now non-main filesystems are supported as / too.
9633 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
9635 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
9636 and grub-core/disk/host.c to ...
9637 (grub-fstest): ... here. Having the host disk implementation
9638 present confuses grub-probe and other utility programs.
9640 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
9641 when writing to a file, not when writing to stdout.
9643 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
9645 * tests/partmap_test.in: New test for partitions.
9646 * Makefile.util.def: Rules for new test.
9648 2010-09-09 Robert Millan <rmh@gnu.org>
9650 * util/grub-probe.c (probe): Fix a pair of unhandled error
9653 2010-09-09 Robert Millan <rmh@gnu.org>
9655 Basic Btrfs support (detection and UUID).
9657 * grub-core/fs/btrfs.c: New file.
9658 * Makefile.util.def (library): Register btrfs.c.
9659 * grub-core/Makefile.core.def: Likewise.
9661 2010-09-08 Robert Millan <rmh@gnu.org>
9663 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
9664 with (optional) parameters to specify device and relative path.
9665 * util/grub-install.in: Use is_path_readable_by_grub() to
9666 verify readability of a few critical files.
9667 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
9668 verify readability of grub.cfg.new.
9670 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
9672 Split minix.mod into minix.mod and minix2.mod.
9674 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
9675 * grub-core/Makefile.core.def (minix2): New module.
9676 * grub-core/fs/minix.c: Use definitions instead of runtime version
9678 * grub-core/fs/minix2.c: New file.
9680 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9682 Add new --boot-directory option to replace --root-directory
9684 * util/grub-install.in: Add new --boot-directory option
9685 * util/grub-reboot.in: Likewise.
9686 * util/grub-set-default.in: Likewise.
9688 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9690 * util/grub-mkconfig.in: Use new variable.
9692 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9694 * configure.ac: Define some useful variables.
9696 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
9698 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9699 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
9700 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
9701 Use terminfo and don't use cursor-on/cursor-off unless it's known
9703 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
9704 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
9706 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
9708 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
9709 starts with "(,", fill the drive containing the loaded image in
9710 between those two characters, but expect that a full partition
9711 specification including partition map names will follow.
9713 2010-09-08 Robert Millan <rmh@gnu.org>
9715 * configure.ac: Remove `--enable-grub-fstest' option.
9716 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
9718 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
9719 `grub-fstest' instead of `grub-probe' for readability verification.
9720 * util/grub-probe.c (probe): Remove readability verification kludge.
9722 2010-09-08 Robert Millan <rmh@gnu.org>
9724 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
9725 initializing `GRUB_FS'.
9727 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
9729 Not command (!) support to GRUB script.
9731 * tests/grub_script_not.in: New test.
9732 * Makefile.util.def: Rules for new test.
9734 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
9735 ! command as a special case.
9736 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
9738 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9740 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
9743 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9745 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
9747 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9749 * docs/grub.texi (Shell-like scripting): Documentation for break,
9750 continue, shift and return commands.
9752 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
9754 Rename CD-ROM to cd on BIOS.
9756 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
9758 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
9760 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9762 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
9763 * util/grub-probe.c (main): Likewise.
9764 * util/i386/pc/grub-setup.c (main): Likewise.
9765 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
9766 Reported and debugged by: alexxy
9768 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9770 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
9773 2010-09-05 Jo Shields <directhex@apebox.org>
9775 * util/grub.d/30_os-prober.in: Add missing classes.
9777 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9779 * docs/grub.texi (Theme file format): Document new position format.
9781 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9783 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
9784 a table. Use @code instead of @verbatim.
9786 2010-09-05 Colin D Bennett <colin@gibibit.com>
9788 Gfxmenu documentation.
9790 * docs/grub.texi (Theme file format): New chapter.
9792 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9794 * grub-core/Makefile.core.def (xzio): New module.
9795 * grub-core/io/xzio.c: New file.
9796 * grub-core/lib/xzembed/xz.h: New file (from xembed).
9797 * grub-core/lib/xzembed/xz_config.h: Likewise.
9798 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
9799 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
9800 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
9801 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
9802 * grub-core/lib/xzembed/xz_private.h: Likewise.
9803 * grub-core/lib/xzembed/xz_stream.h: Likewise.
9804 * include/grub/file.h (grub_file_filter_id): New compression filter
9805 GRUB_FILE_FILTER_XZIO.
9807 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9809 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
9810 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
9813 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9815 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
9816 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
9818 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9820 Uncompressed checksum support.
9822 * grub-core/commands/hashsum.c (options): Add option --uncompress.
9823 (check_list): New parameter uncompress.
9824 (grub_cmd_hashsum): Handle --uncompress.
9826 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9828 Reintroduce testload.
9830 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
9832 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
9833 (GRUB_MOD_INIT): New function.
9834 (GRUB_MOD_FINI): Likewise.
9835 * grub-core/Makefile.core.def (testload): New module.
9837 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9839 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
9840 (uint8_t): New type.
9841 (uint16_t): Likewise.
9842 (uint32_t): Likewise.
9843 (uint64_t): Likewise.
9845 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9847 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
9849 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9851 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
9853 (grub_gzfile_open): Removed. All users updated.
9854 (GRUB_MOD_INIT): New function.
9855 (GRUB_MOD_FINI): Likewise.
9856 * grub-core/kern/file.c (grub_file_filters_all): New variable.
9857 (grub_file_filters_enabled): Likewise.
9858 (grub_file_open): Handle filters.
9859 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
9860 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
9861 * include/grub/file.h (grub_file_filter_id_t): New type.
9862 (grub_file_filter_t): Likewise.
9863 (grub_file_filters_all): New extern variable.
9864 (grub_file_filters_enabled): Likewise.
9865 (grub_file_filter_register): New inline function.
9866 (grub_file_filter_unregister): Likewise.
9867 (grub_file_filter_disable): Likewise.
9868 (grub_file_filter_disable_compression): Likewise.
9869 * include/grub/gzio.h: Removed.
9871 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9873 Filename expansion support for wildcards in GRUB script.
9875 * tests/grub_script_expansion.in: New test.
9876 * Makefile.util.def: Rule for new test.
9878 * grub-core/commands/wildcard.c: New file, implements filename
9879 expansion support for GRUB script.
9880 * grub-core/Makefile.core.def: Rule update for regexp.mod.
9881 * grub-core/script/argv.c: Cosmetic changes.
9882 * grub-core/script/execute.c (grub_script_arglist_to_argv):
9883 Refactored to perform wildcard expansion on arguments.
9884 * include/grub/script_sh.h (grub_script_wildcard_translator): New
9887 * tests/util/grub-shell.in: Fix quoting for read input.
9889 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9891 Support for updating environment variables with matched substrings
9894 * tests/grub_cmd_regexp.in: New test.
9895 * Makefile.util.def: Rule for new test.
9897 * grub-core/commands/regexp.c: New option -s to update environment
9898 variables with regexp matches.
9900 2010-09-04 Szymon Janc <szymon@janc.net.pl>
9902 * include/grub/file.h (grub_file): New member not_easly_seekable.
9903 (grub_file_seekable): New inline function.
9904 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
9906 (grub_gzio_open): Set not_easly_seekable.
9907 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
9908 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
9910 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9912 Support for options to appear multiple times on cmdline.
9914 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
9915 * grub-core/commands/extcmd.c: Support for repeatable option.
9916 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
9917 repeatable option support.
9919 Refactor menuentry into a regular command.
9921 * grub-core/commands/menuentry.c: New file, menuentry command
9923 * grub-core/Makefile.core.def: Rule update for normal.mod.
9924 * grub-core/normal/main.c: Moved menuentry creation to
9925 grub-core/commands/menuentry.c.
9926 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
9927 (grub_menu_execute_entry_real): Removed.
9928 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
9930 (grub_script_execute_menuentry): Removed.
9931 * grub-core/script/parser.y (menuentry): Removed.
9932 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
9933 * grub-core/script/yylex.l (menuentry): Removed.
9934 * include/grub/menu.h (grub_menu_init): New prototype.
9935 (grub_menu_fini): New prototype.
9936 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
9937 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
9938 (grub_script_execute_sourcecode): New prototype.
9940 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9942 "return" command for GRUB script functions.
9944 * tests/grub_script_return.in: New test.
9945 * Makefile.util.def: Rules for new test.
9947 * grub-core/script/execute.c (grub_script_return): New function.
9948 * grub-core/script/main.c: Register/unregister return commaond.
9949 * include/grub/script_sh.h (grub_script_return): New prototype.
9951 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9953 "setparams" command to update positional parameters.
9955 * tests/grub_script_setparams.in: New test.
9956 * Makefile.util.def: Rules for new test.
9958 * grub-core/script/argv.c (grub_script_argv_make): New function.
9959 * grub-core/script/execute.c (replace_scope): New function.
9960 (grub_script_setparams): New function.
9961 * grub-core/script/lexer.c: Remove unused variables.
9962 * grub-core/script/main.c: Register/unregister setparams command.
9963 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
9964 (grub_script_setparams): New prototype.
9966 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9968 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
9971 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9973 Support for passing block of commands as an argument to extcmds.
9975 * Makefile.util.def: Rules for new test.
9976 * tests/grub_script_blockarg.in: New test.
9977 * grub-core/tests/test_blockarg.c: New file, block argument
9978 command used in the test.
9980 * include/grub/extcmd.h (grub_extcmd_context): New struct.
9981 (grub_register_extcmd_prio): New function prototype.
9982 (grub_extcmd_dispatcher): New function prototype.
9983 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
9985 * include/grub/script_sh.h (struct grub_script): New members
9986 `children', `next_siblings' and `refcnt' for block arguments and
9988 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
9989 (grub_script_arg): New member `script' for block argument.
9990 (grub_script_argv): New member `script' for block argument.
9991 (grub_parser_param): New member `scripts' for block argument.
9992 (grub_script_mem_free): New extern function prototype.
9993 (grub_script_ref): New function prototype.
9994 (grub_script_unref): New function prototype.
9996 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
9997 extcmd form to support block arguments.
9998 * grub-core/script/argv.c: Block arguments support.
9999 * grub-core/script/execute.c: Likewise.
10000 * grub-core/script/lexer.c: Likewise.
10001 * grub-core/script/main.c: Likewise.
10002 * grub-core/script/script.c: Likewise.
10003 * grub-core/script/parser.y: Likewise. New `block' and `block0'
10006 * grub-core/commands/acpi.c: Update extcmd implementations with
10007 grub_extcmd_context_t.
10008 * grub-core/commands/cat.c: Likewise.
10009 * grub-core/commands/echo.c: Likewise.
10010 * grub-core/commands/extcmd.c: Likewise.
10011 * grub-core/commands/hashsum.c: Likewise.
10012 * grub-core/commands/hdparm.c: Likewise.
10013 * grub-core/commands/help.c: Likewise.
10014 * grub-core/commands/hexdump.c: Likewise.
10015 * grub-core/commands/i386/cpuid.c: Likewise.
10016 * grub-core/commands/i386/pc/drivemap.c: Likewise.
10017 * grub-core/commands/i386/pc/halt.c: Likewise.
10018 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10019 * grub-core/commands/iorw.c: Likewise.
10020 * grub-core/commands/keystatus.c: Likewise.
10021 * grub-core/commands/loadenv.c: Likewise.
10022 * grub-core/commands/ls.c: Likewise.
10023 * grub-core/commands/lspci.c: Likewise.
10024 * grub-core/commands/memrw.c: Likewise.
10025 * grub-core/commands/probe.c: Likewise.
10026 * grub-core/commands/search_wrap.c: Likewise.
10027 * grub-core/commands/setpci.c: Likewise.
10028 * grub-core/commands/sleep.c: Likewise.
10029 * grub-core/disk/loopback.c: Likewise.
10030 * grub-core/hello/hello.c: Likewise.
10031 * grub-core/loader/i386/bsd.c: Likewise.
10032 * grub-core/loader/xnu.c: Likewise.
10033 * grub-core/term/gfxterm.c: Likewise.
10034 * grub-core/term/serial.c: Likewise.
10035 * grub-core/tests/lib/functional_test.c: Likewise.
10037 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10039 Multi-line quoted strings support.
10041 * grub-core/script/lexer.c (append_newline): Removed.
10042 (grub_script_lexer_yywrap): Refactored.
10043 (grub_script_lexer_init): Refactored.
10044 * grub-core/script/yylex.l (yywrap): New function.
10045 (grub_lexer_resplit): New function.
10046 (grub_lexer_unput): New function.
10047 * include/grub/script_sh.h (grub_lexer_param): New members, unput
10049 * tests/grub_script_echo1.in: Added few more testcases.
10051 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
10053 * grub-core/kern/misc.c: Don't add abort alias in utils.
10054 Reported by: echoline.
10056 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
10058 Add missing files into "make dist" tarball for other platforms.
10060 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
10061 * conf/Makefile.common (dist_noinst_DATA): New variable.
10062 * conf/Makefile.extra-dist: Added missing make dist files.
10063 * grub-core/Makefile.core.def: Likewise.
10065 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
10067 Compress grub_prefix.
10069 * grub-core/boot/i386/pc/lnxboot.S: Use
10070 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
10071 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
10072 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
10073 GRUB_MACHINE_PREFIX_END. All users updated.
10074 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
10075 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
10077 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10078 * util/grub-mkimage.c (image_target_desc): Change data_end to
10079 prefix_end. All users updated.
10081 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
10083 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
10085 (grub_openbsd_boot): Likewise.
10086 (grub_netbsd_boot): Likewise.
10087 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
10088 (grub_xnu_boot): Likewise.
10090 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10092 * configure.ac: Clean LIBS variable after tests.
10094 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10096 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
10098 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10100 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
10101 echo if libdevmapper will be used.
10103 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
10105 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
10106 constant for the same file.
10108 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10110 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
10112 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10114 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
10117 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10119 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
10120 required by the boot protocol.
10122 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
10123 ebp and edi members.
10124 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
10125 state.ebp and state.edi.
10126 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
10127 %ebp and %edi according to grub_relocator32_ebp and
10128 grub_relocator32_edi respectively.
10129 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
10132 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10134 Add i386-pc-pxe image target.
10136 * util/grub-mkimage.c (image_target_desc): New enum value
10138 (image_targets): New target i386-pc-pxe.
10139 (generate_image): Handle i386-pc-pxe image.
10141 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10145 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
10146 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
10148 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
10149 (grub_pxe_pxenv): Correct type.
10151 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10153 * NEWS: Document most of the important changes since 1.98.
10155 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10157 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
10158 generated manual page) a little.
10160 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10162 * docs/grub.texi: Add myself as an author.
10164 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
10166 * Makefile.util.def (libgrub.a): Add missing sunpc.
10167 Reported by: Seth Goldberg.
10169 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10171 Interrupt wrapping and code simplifications.
10173 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
10174 x86_noieee1275 which are functionaly equivalent in this case.
10175 (grub-install): Make source on each platform explicit. Enable on
10177 * gentpl.py (x86_efi_pc): Removed group.
10178 (x86_noefi): Likewise.
10179 (i386_noefi): Likewise.
10180 (x86_noieee1275): Likewise.
10181 (i386_noieee1275): Likewise.
10182 (i386_noefi_noieee1275): Likewise.
10183 (i386_pc_qemu_coreboot): Likewise.
10184 (i386_coreboot_multiboot): Likewise.
10185 (i386_pc_coreboot_multiboot_qemu): Likewise.
10186 (x86_noefi_mips): Likewise.
10187 (noieee1275): Likewise.
10188 (ieee1275_mips): Likewise.
10189 (noemu_noieee1275): Likewise.
10192 (videoinkernel): Likewise.
10193 (videomodules): Likewise.
10194 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
10195 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
10196 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
10197 include/grub/loader.h, include/grub/msdos_partition.h,
10198 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
10199 include/grub/machine/console.h, include/grub/machine/vga.h,
10200 include/grub/machine/vbe.h, include/grub/machine/init.h,
10201 include/grub/machine/kernel.h, include/grub/cpu/time.h,
10202 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
10203 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
10204 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
10205 * grub-core/Makefile.core.def (kernel): Explicit the source for
10206 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
10207 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
10208 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
10209 Use videoinkernel tag.
10210 (usb): Enable on all usb.
10211 (usbserial_common): Likewise.
10212 (usbserial_pl2303): Likewise.
10213 (usbserial_ftdi): Likewise.
10214 (uhci): Enable on all x86.
10215 (ohci): Enable on all pci.
10216 (cmostest): Enable on all CMOS.
10217 (acpi): Include commands/acpi.c on all platforms.
10218 (halt): Add relevant lib/*/halt.c.
10219 (hdparm): Enable on all pci.
10221 (usbtest): Enable on all usb.
10222 (ata): Enable on all pci.
10223 (ata_pthru): Likewise.
10224 (usbms): Enable on all usb.
10225 (usb_keyboard): Likewise.
10226 (font): Use tag videomodules.
10228 (datetime): Use tag cmos. Enable on all noemu.
10229 (mmap): Use tags common and x86.
10230 (gfxterm): Use tag videomodules.
10231 (bitmap): Likewise.
10232 (bitmap_scale): Likewise.
10233 (video_fb): Likewise.
10235 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
10236 adjust padding accordingly. All users updated.
10237 (grub_ohci_transaction): Fix bad format specification.
10238 (GRUB_MOD_INIT): Add asserts for struct size.
10239 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
10240 (grub_alloc_td): Likewise.
10241 (grub_free_queue): Likewise.
10242 (grub_uhci_transfer): Likewise.
10243 (grub_uhci_transaction): Fix bad format specification.
10244 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
10245 (grub_usb_bulk_readwrite): Likewise.
10246 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
10247 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
10249 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
10251 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
10252 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
10253 Transformed into C.
10254 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
10255 Moved from here ...
10256 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
10257 ... here. Transformed into C. Made static.
10258 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
10259 Moved from here ...
10260 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
10261 ... here. Transformed into C. Made static.
10262 * grub-core/kern/i386/pc/startup.S
10263 (grub_biosdisk_check_int13_extensions): Moved from here ...
10264 * grub-core/disk/i386/pc/biosdisk.c
10265 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
10267 * grub-core/kern/i386/pc/startup.S
10268 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
10269 * grub-core/disk/i386/pc/biosdisk.c
10270 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
10271 Transformed into C. Made static.
10272 * grub-core/kern/i386/pc/startup.S
10273 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
10274 * grub-core/disk/i386/pc/biosdisk.c
10275 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
10276 Transformed into C. Made static.
10277 * grub-core/kern/i386/pc/startup.S
10278 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
10279 * grub-core/disk/i386/pc/biosdisk.c
10280 (grub_biosdisk_get_diskinfo_standard): ... here.
10281 Transformed into C. Made static.
10282 * grub-core/kern/i386/pc/startup.S
10283 (grub_biosdisk_get_num_floppies): Moved from here ...
10284 * grub-core/disk/i386/pc/biosdisk.c
10285 (grub_biosdisk_get_num_floppies): ... here.
10286 Transformed into C. Made static.
10287 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
10289 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
10290 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
10291 Transformed into C. Made static.
10292 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
10293 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
10294 Transformed into C. Made static.
10295 * grub-core/kern/i386/ieee1275/init.c: Removed.
10296 * grub-core/kern/i386/misc.S: Likewise.
10297 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
10298 Splitted from here ...
10299 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
10300 Transformed into C. Made static. All users updated.
10301 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
10302 Transformed into C. Made static. All users updated.
10303 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
10305 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
10306 Transformed into C. Made static. All users updated.
10307 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
10309 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
10310 Transformed into C. Made static. All users updated.
10311 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
10312 Removed (replaced by C version).
10313 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
10315 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
10316 Transformed into C. Made static.
10317 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
10319 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
10320 ... here. Transformed into C.
10321 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
10323 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
10324 ... here. Transformed into C.
10325 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
10327 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
10328 ... here. Transformed into C. Made static.
10329 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
10331 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
10332 ... here. Transformed into C.
10333 * grub-core/kern/i386/pc/startup.S
10334 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
10335 * grub-core/video/i386/pc/vbe.c
10336 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
10337 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
10339 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
10340 ... here. Transformed into C.
10341 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
10343 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
10344 ... here. Transformed into C.
10345 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
10347 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
10348 ... here. Transformed into C.
10349 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
10351 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
10352 ... here. Transformed into C.
10353 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
10355 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
10356 ... here. Transformed into C. Made static.
10357 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
10359 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
10360 ... here. Transformed into C. Made static.
10361 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
10363 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
10364 ... here. Transformed into C. Made static.
10365 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
10366 pxe_rm_entry as third argument.
10367 (grub_bios_interrupt): New function.
10368 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
10369 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
10370 of calling grub_stop.
10371 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
10372 * grub-core/lib/efi/halt.c (grub_halt): ...here.
10373 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
10374 * grub-core/lib/emu/halt.c (grub_halt): ... here.
10375 * grub-core/lib/i386/halt.c: Moved from here ...
10376 * grub-core/lib/i386/halt.c: ... here.
10377 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
10378 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
10379 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
10381 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
10382 * include/grub/i386/coreboot/init.h: Removed.
10383 * include/grub/i386/multiboot/init.h: Likewise.
10384 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
10385 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
10386 * include/grub/i386/pc/int.h: New file.
10387 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
10388 (grub_pxe_scan): Removed.
10389 (grub_pxe_call): Update prototype.
10390 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
10392 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
10393 * include/grub/i386/qemu/init.h: Removed.
10394 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
10396 (grub_halt): Likewise.
10397 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
10398 (grub_reboot): Likewise.
10399 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
10400 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
10401 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
10403 2010-08-30 Robert Millan <rmh@gnu.org>
10405 * NEWS: Document addition of ZFS support in `grub-install' and
10408 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
10410 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
10413 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10415 Remove leftover embedding of font objects.
10417 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
10418 * util/grub-install.in (font): Removed.
10419 * util/grub-mkimage.c (generate_image): Remove font support. All users
10422 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10424 Remove leftover embedding of font objects.
10426 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
10427 * util/grub-install.in (font): Removed.
10428 * util/grub-mkimage.c (generate_image): Remove font support. All users
10431 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10433 * docs/grub.texi (Network): Fix reference to pxe_blksize.
10434 Reported by: Ian Turner
10436 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10438 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
10439 timeout to avoid indefinite boot stalling.
10441 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10443 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
10444 (grub_env_write_color_highlight): Likewise.
10446 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10448 * grub-core/normal/term.c (print_more): Return to normal and not
10449 to standard state after printing "---MORE---".
10451 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10453 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
10454 Mask out the bit 0x80 since it has other meaning that specifiing color.
10456 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10458 New relocator. Allows for more kernel support and more straightforward
10461 * Makefile.am (BOOTTARGET): New variable.
10462 (QEMU32): Likewise.
10463 (linux.init.x86_64): New target.
10464 (linux.init.i386): Likewise.
10465 (multiboot.elf): Likewise.
10466 (kfreebsd.elf): Likewise.
10467 (kfreebsd.aout): Likewise.
10468 (pc-chainloader.elf): Likewise.
10469 (pc-chainloader.bin): Likewise.
10470 (ntldr.elf): Likewise.
10471 (ntldr.bin): Likewise.
10472 (multiboot2.elf): Likewise.
10473 (kfreebsd.init.x86_64): Likewise.
10474 (kfreebsd.init.i386): Likewise.
10475 (knetbsd.init.i386): Likewise.
10476 (kopenbsd.init.i386): Likewise.
10477 (knetbsd.init.x86_64): Likewise.
10478 (kopenbsd.init.x86_64): Likewise.
10479 (linux-initramfs.i386): Likewise.
10480 (linux-initramfs.x86_64): Likewise.
10481 (kfreebsd-mfsroot.i386.img): Likewise.
10482 (knetbsd.image.i386): Likewise.
10483 (kopenbsd.image.i386): Likewise.
10484 (kopenbsd.image.x86_64): Likewise.
10485 (knetbsd.miniroot-image.i386.img): Likewise.
10486 (kfreebsd-mfsroot.x86_64.img): Likewise.
10487 (knetbsd.image.x86_64): Likewise.
10488 (knetbsd.miniroot-image.x86_64.img): Likewise.
10489 (kfreebsd-mfsroot.i386.gz): Likewise.
10490 (bootcheck-kfreebsd-i386): Likewise.
10491 (kfreebsd-mfsroot.x86_64.gz): Likewise.
10492 (bootcheck-kfreebsd-x86_64): Likewise.
10493 (knetbsd.miniroot-image.i386.gz): Likewise.
10494 (bootcheck-knetbsd-i386): Likewise.
10495 (bootcheck-kopenbsd-i386): Likewise.
10496 (bootcheck-kopenbsd-x86_64): Likewise.
10497 (knetbsd.miniroot-image.x86_64.gz): Likewise.
10498 (bootcheck-knetbsd-x86_64): Likewise.
10499 (bootcheck-linux-i386): Likewise.
10500 (bootcheck-linux-x86_64): Likewise.
10501 (bootcheck-linux16-i386): Likewise.
10502 (bootcheck-linux16-x86_64): Likewise.
10503 (bootcheck-multiboot): Likewise.
10504 (bootcheck-multiboot2): Likewise.
10505 (bootcheck-kfreebsd-aout): Likewise.
10506 (bootcheck-pc-chainloader): Likewise.
10507 (bootcheck-ntldr): Likewise.
10508 (CLEANFILES): Add new targets.
10509 (BOOTCHECKS): New variable.
10510 (.PHONY): Add bootchecks.
10511 (SUCCESSFUL_BOOT_STRING): New variable.
10512 (BOOTCHECK_TIMEOUT): Likewise.
10513 (bootcheck): New target
10514 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
10515 * configure.ac: Correct efiemu excuse.
10516 * docs/grub.texi (Supported kernels): New chapter.
10517 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
10518 include/grub/mm_private.h. Simplify inclusion of
10519 include/grub/boot.h, include/grub/loader.h
10520 and include/grub/msdos_partition.h
10521 (KERNEL_HEADER_FILES) [i386_coreboot]:
10522 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
10523 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
10524 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
10525 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
10526 include/grub/machine/loader.h.
10527 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
10528 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
10530 (pci.mod): Enable on i386-multiboot.
10531 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
10532 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
10534 (relocator.mod): Rewritten.
10535 (aout.mod): Enable on all x86.
10536 (bsd.mod): Likewise.
10537 (ntldr.mod): New module.
10538 (linux.mod): Use loader/i386/linux.c on all x86.
10539 (xnu.mod): Enable on all x86.
10540 (vga_text.mod): disable on EFI and QEMU.
10541 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
10542 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
10543 * grub-core/efiemu/loadcore.c: Likewise.
10544 * grub-core/efiemu/main.c: Likewise.
10545 (grub_efiemu_exit_boot_services): Removed.
10546 (grub_efiemu_finish_boot_services): Likewise.
10547 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
10549 * grub-core/efiemu/i386/nocfgtables.c: New file.
10550 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
10551 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
10552 (grub_efi_finish_boot_services): Moved from here ...
10553 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
10554 Fille finish memory map and related data.
10555 (finish_mmap_buf): New variable.
10556 (grub_efi_uintn_t finish_mmap_size): Likewise.
10557 (grub_efi_uintn_t finish_key): Likewise.
10558 (grub_efi_uintn_t finish_desc_size): Likewise.
10559 (grub_efi_uint32_t finish_desc_version): Likewise.
10560 (grub_efi_is_finished): Likewise.
10561 (grub_efi_get_memory_map): Use saved memory map if EFI is already
10563 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
10564 (grub_elf64_phdr_iterate): Likewise.
10565 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
10566 (grub_os_area_size): Likewise.
10567 (grub_machine_init): Don't reserve os area.
10568 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
10569 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10570 * grub-core/kern/i386/loader.S: Removed.
10571 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
10572 (grub_os_area_size): Likewise.
10573 (grub_machine_init): Don't reserve os area.
10574 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
10575 Don't call grub_dl_unload_all.
10576 Don't include loader.S.
10577 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
10578 Declare the memory after _end as available.
10579 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
10580 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
10581 (GRUB_MM_ALLOC_MAGIC): Moved from here...
10582 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
10583 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
10584 * include/grub/mm_private.h (grub_mm_header): ... here.
10585 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
10586 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
10587 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
10588 (grub_mm_region): ..here. Removed addr. Added pre_size.
10590 * grub-core/kern/mm.c (base): Renamed to ...
10591 (grub_mm_base): ... this. Made global.
10592 (grub_real_malloc): Alloc from end of region.
10593 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
10594 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
10595 * grub-core/kern/powerpc/cache_flush.S: ... here.
10596 * grub-core/lib/efi/relocator.c: New file.
10597 * grub-core/lib/i386/relocator.c: Rewritten.
10598 * grub-core/lib/i386/relocator16.S: New file.
10599 * grub-core/lib/i386/relocator32.S: Likewise.
10600 * grub-core/lib/i386/relocator64.S: Likewise.
10601 * grub-core/lib/i386/relocator_asm.S: Rewritten.
10602 * grub-core/lib/i386/relocator_common.S: New file.
10603 * grub-core/lib/ieee1275/relocator.c: Likewise.
10604 * grub-core/lib/mips/relocator.c: Rewritten.
10605 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
10606 stylistic adjustments.
10607 * grub-core/lib/powerpc/relocator.c: New file.
10608 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
10609 * grub-core/lib/relocator.c: Rewritten.
10610 * grub-core/lib/x86_64/relocator_asm.S: New file.
10611 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
10612 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
10613 (bsd_tag): New struct.
10614 (tags): New variable.
10615 (tags_last): Likewise.
10616 (netbsd_module): New struct.
10617 (netbsd_mods): New variable.
10618 (netbsd_mods_last): Likewise.
10619 (openbsd_opts): New parameter "serial".
10620 (OPENBSD_SERIAL_ARG): New definition.
10621 (netbsd_opts): New parameter "serial".
10622 (NETBSD_SERIAL_ARG): New definition.
10623 (grub_freebsd_add_meta): Reorganised into ...
10624 (grub_bsd_add_meta): ...this. All users updated.
10625 (grub_freebsd_add_mmap): Reorganised into ...
10626 (generate_e820_mmap): ...this...
10627 (grub_bsd_add_mmap): ...and this. All users updated.
10628 (grub_freebsd_list_modules): Use tags.
10629 (grub_netbsd_add_meta_module): New function.
10630 (grub_netbsd_list_modules): Likewise.
10631 (grub_freebsd_boot): Use relocator and finish EFI.
10632 (grub_openbsd_boot): Likewise.
10633 (grub_netbsd_setup_video): New function.
10634 (grub_netbsd_add_modules): Likewise.
10635 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
10637 (grub_bsd_unload): Unload tags.
10638 (grub_bsd_load_aout): Use relocator.
10639 (grub_bsd_elf32_size_hook): New function.
10640 (grub_bsd_elf32_hook): Use relocator.
10641 (grub_bsd_elf64_size_hook): New function.
10642 (grub_bsd_elf64_hook): Use relocator.
10643 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
10644 (grub_bsd_load): Zero-out openbsd_ramdisk.
10645 (grub_bsd_load): Use relocator.
10646 (grub_cmd_openbsd): Support serial.
10647 (grub_cmd_netbsd): Support modules.
10648 (grub_cmd_freebsd_module): Use relocator.
10649 (grub_netbsd_module_load): New function.
10650 (grub_cmd_netbsd_module): Likewise.
10651 (grub_cmd_openbsd_ramdisk): Likewise.
10652 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
10654 (GRUB_MOD_FINI): Unregister new commands.
10655 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
10656 (grub_freebsd_load_elfmodule_obj): Use relocator.
10657 (grub_freebsd_load_elfmodule): Likewise.
10658 (grub_freebsd_load_elf_meta): Likewise.
10659 (grub_netbsd_load_elf_meta): New function.
10660 (grub_openbsd_find_ramdisk): Likewise.
10661 * grub-core/loader/i386/bsd_helper.S: Removed.
10662 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
10663 * grub-core/loader/i386/bsd_trampoline.S: Removed.
10664 * grub-core/loader/i386/efi/linux.c: Likewise.
10665 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
10666 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
10667 (DEFAULT_VIDEO_MODE): Likewise.
10668 (real_mode_target): New variable.
10669 (prot_mode_target): Likewise.
10670 (initrd_mem_target): Likewise.
10671 (relocator): Likewise.
10672 (efi_mmap_buf): Likewise.
10673 (efi_mmap_size): Likewise.
10674 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
10675 (free_pages): Use relocator.
10676 (allocate_pages): Account for efi_mmap and use relocator. Return error.
10677 (grub_linux_setup_video): Return error.
10678 (grub_linux_trampoline_start): Removed.
10679 (grub_linux_trampoline_end): Likewise.
10680 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
10681 andd video parameters depending on firmware.
10682 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
10683 [GRUB_MACHINE_EFI]: Pass EFI parameters.
10684 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
10685 (grub_cmd_initrd): Use relocator.
10686 * grub-core/loader/i386/linux_trampoline.S: Removed.
10687 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
10688 (elf_sec_entsize): Likewise.
10689 (elf_sec_shstrndx): Likewise.
10690 (elf_sections): Likewise.
10691 (grub_multiboot_load): Use relocator.
10692 (grub_multiboot_get_mbi_size): Account for sections.
10693 (grub_multiboot_make_mbi): Use relocator and support sections.
10694 (grub_multiboot_add_elfsyms): New function.
10695 (grub_multiboot_free_mbi): Free sections.
10696 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
10697 (grub_linux_real_target): Likewise.
10698 (grub_linux_real_chunk): Likewise.
10699 (grub_linux16_prot_size): Likewise.
10700 (grub_linux16_boot): Use relocator.
10701 (grub_linux_unload): Unload relocator.
10702 (grub_cmd_linux): Use relocator.
10703 (grub_cmd_initrd): Likewise.
10704 * grub-core/loader/i386/pc/ntldr.c: New file.
10705 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
10706 Don't try to guess CPU frequency.
10707 (grub_xnu_set_video): Stretch bitmap.
10708 (grub_xnu_boot): Use relocator.
10709 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
10710 (grub_linux_unload): Free relocator.
10711 (grub_linux_load32): Use relocator.
10712 (grub_linux_load64): Likewise.
10713 (grub_cmd_initrd): Likewise.
10714 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
10715 (grub_multiboot_unload): Unload relocator.
10716 (grub_cmd_multiboot): Use relocator.
10717 (grub_cmd_module): Likewise.
10718 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
10719 Use relocator and support sections.
10720 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
10721 (elf_sec_entsize): Likewise.
10722 (elf_sec_shstrndx): Likewise.
10723 (elf_sections): Likewise.
10724 (grub_multiboot_load): Use relocator.
10725 (grub_multiboot_get_mbi_size): Account for sections.
10726 (grub_multiboot_make_mbi): Use relocator and support sections.
10727 (grub_multiboot_add_elfsyms): New function.
10728 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
10729 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
10730 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
10731 Prototype changed. All users updated.
10732 (grub_xnu_align_heap): Simplified.
10733 (grub_xnu_writetree_toheap): Likewise.
10734 (grub_xnu_unload): Unload relocator.
10735 (grub_cmd_xnu_kernel): Use relocator.
10736 (grub_cmd_xnu_kernel64): Likewise.
10737 (grub_xnu_register_memory): Simplified.
10738 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
10739 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
10741 (grub_console_checkkey): Likewise.
10742 (grub_console_getkey): Likewise.
10743 (grub_console_getwh): Likewise.
10744 (grub_console_getxy): Likewise.
10745 (grub_console_gotoxy): Likewise.
10746 (grub_console_cls): Likewise.
10747 (grub_console_setcolorstate): Likewise.
10748 (grub_console_setcursor): Likewise.
10749 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
10750 * grub-core/tests/boot/kbsd.init-i386.S: New file.
10751 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
10752 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
10753 * grub-core/tests/boot/kernel-8086.S: Likewise.
10754 * grub-core/tests/boot/kernel-i386.S: Likewise.
10755 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
10756 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
10757 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
10758 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
10759 * grub-core/tests/boot/knetbsd.cfg: Likewise.
10760 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
10761 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
10762 * grub-core/tests/boot/linux.cfg: Likewise.
10763 * grub-core/tests/boot/linux.init-i386.S: Likewise.
10764 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
10765 * grub-core/tests/boot/linux16.cfg: Likewise.
10766 * grub-core/tests/boot/multiboot.cfg: Likewise.
10767 * grub-core/tests/boot/multiboot2.cfg: Likewise.
10768 * grub-core/tests/boot/ntldr.cfg: Likewise.
10769 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
10770 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
10771 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
10773 * include/grub/dl.h (grub_dl_unload_all): Removed.
10774 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
10775 (grub_efi_finish_boot_services): Change prototype.
10776 (grub_efi_is_finished): New variable.
10777 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
10779 (grub_efiemu_finish_boot_services): Removed.
10780 (grub_machine_efiemu_init_tables): New prototype.
10781 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
10782 (grub_elf64_phdr_iterate): Likewise.
10783 * include/grub/i386/bsd.h: Include relocator.h.
10784 (freebsd_tag_header): New struct.
10785 (grub_openbsd_bios_mmap): Removed.
10786 (grub_unix_real_boot): Removed.
10787 (grub_freebsd_load_elfmodule32): Changed prototype.
10788 (grub_freebsd_load_elfmodule_obj64): Likewise.
10789 (grub_freebsd_load_elf_meta32): Likewise.
10790 (grub_freebsd_load_elf_meta64): Likewise.
10791 (grub_freebsd_add_meta): Removed.
10792 (grub_netbsd_load_elf_meta32): New prototype.
10793 (grub_netbsd_load_elf_meta64): Likewise.
10794 (grub_bsd_add_meta): Likewise.
10795 (grub_openbsd_ramdisk_descriptor): New struct.
10796 (grub_openbsd_find_ramdisk32): New prototype.
10797 (grub_openbsd_find_ramdisk64): Likewise.
10798 * include/grub/i386/coreboot/loader.h: Removed.
10799 * include/grub/i386/efi/loader.h: Likewise.
10800 * include/grub/i386/ieee1275/loader.h: Likewise.
10801 * include/grub/i386/linux.h (linux_kernel_header): Change void *
10803 * include/grub/i386/loader.h: Removed.
10804 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
10806 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
10807 (grub_phys_addr_t): New type.
10808 (grub_vtop): New inline function.
10809 (grub_map_memory): Likewise.
10810 (grub_unmap_memory): Likewise.
10811 * include/grub/i386/multiboot/loader.h: Removed.
10812 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
10813 (NETBSD_BTINFO_CONSOLE): New definition.
10814 (NETBSD_BTINFO_SYMTAB): Likewise.
10815 (NETBSD_BTINFO_MODULES): Likewise.
10816 (NETBSD_BTINFO_FRAMEBUF): Likewise.
10817 (grub_netbsd_bootinfo): New struct.
10818 (grub_netbsd_btinfo_common): Use explicit bitsize.
10819 (grub_netbsd_btinfo_mmap_entry): Removed.
10820 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
10821 (grub_netbsd_btinfo_bootdisk): New struct.
10822 (grub_netbsd_btinfo_symtab): Likewise.
10823 (grub_netbsd_btinfo_serial): Likewise.
10824 (grub_netbsd_btinfo_modules): Likewise.
10825 (grub_netbsd_btinfo_framebuf): Likewise.
10826 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
10827 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
10829 (grub_openbsd_bootargs): Use explicit bitsize.
10830 (grub_openbsd_bootarg_console): New struct.
10831 (GRUB_OPENBSD_COM_MAJOR): New definition.
10832 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
10833 * include/grub/i386/pc/efiemu.h: Removed.
10834 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
10835 * include/grub/i386/qemu/loader.h: Removed.
10836 * include/grub/i386/relocator.h: Rewritten.
10837 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
10838 * include/grub/mips/memory.h: New file.
10839 * include/grub/mips/multiboot.h: Rewritten.
10840 * include/grub/mips/relocator.h: Rewritten.
10841 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
10842 (grub_vtop): New function.
10843 (grub_map_memory): Likewise.
10844 (grub_unmap_memory): Likewise.
10845 * include/grub/misc.h (ALIGN_DOWN): New definition.
10846 * include/grub/mm.h (grub_mm_check_real): New proto.
10847 (GRUB_MM_CHECK): New definition.
10848 * include/grub/mm_private.h: New file.
10849 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
10850 (grub_multiboot_get_mbi_size): Removed.
10851 (grub_multiboot_make_mbi): Change prottype.
10852 (grub_multiboot_set_accepts_video): New proto.
10853 (grub_multiboot_add_elfsyms): Likewise.
10854 (grub_multiboot_payload_eip): New variable.
10855 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
10857 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
10859 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
10860 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
10861 * include/grub/powerpc/ieee1275/loader.h: Removed.
10862 * include/grub/powerpc/memory.h: New file.
10863 * include/grub/powerpc/relocator.h: Likewise.
10864 * include/grub/relocator.h: Likewise.
10865 * include/grub/relocator_private.h: Likewise.
10866 * include/grub/sparc64/ieee1275/loader.h: Removed.
10867 * include/grub/x86_64/memory.h: New file.
10868 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
10869 (grub_xnu_heap_malloc): Likewise.
10870 (grub_xnu_heap_real_start): Removed.
10871 (grub_xnu_heap_start): Likewise.
10872 (grub_xnu_relocator): New variable.
10873 (grub_xnu_heap_target_start): Likewise.
10874 * tests/util/grub-shell.in: Support non-pc.
10875 * util/grub-mkimage.c (image_targets): Fix multiboot target.
10877 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10879 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
10881 (grub_bidi_logical_to_visual): Check that malloc succeded.
10882 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
10884 (grub_xputs_normal): Likewise.
10886 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10888 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
10891 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10893 * grub-core/efiemu/runtime/efiemu.sh: Removed.
10895 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10897 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
10899 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10901 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
10904 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
10906 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
10908 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10910 * grub-core/normal/term.c (print_more): Fix a memory leak.
10911 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
10912 (grub_xputs_normal): Likewise.
10914 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10916 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
10917 the begining of the string
10919 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10921 * grub-core/script/script.c (grub_script_parse): Free parsed on
10924 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10926 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
10929 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10931 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
10934 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10936 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
10937 (scroll_up): Fix a memory leak.
10939 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10941 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
10944 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
10946 Handle USB pendrives exposed as floppies.
10948 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
10950 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
10951 Check for partitions on all devices.
10953 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
10955 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
10956 (readkey): Likewise.
10958 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10960 Multiple variable names support to "export" command.
10962 * normal/context.c (grub_cmd_export): "export" command supports
10963 multiple variable names.
10965 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
10967 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
10968 --target=drive output to Mach device name.
10970 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
10972 New Automake based build system for GRUB.
10974 * ABOUT-NLS: New file.
10975 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
10976 in Makefile.util.def file.
10977 * Makefile.util.def: New file. Autogen build definitions file for
10979 * conf/Makefile.common: New file. Common variables for GRUB host
10980 utils and target modules.
10981 * conf/Makefile.extra-dist: New file. Extra files for make dist.
10982 * docs/Makefile.am: New file. Automake file for docs.
10983 * gentpl.py: New file. Python script to generate Autogen
10985 * grub-core/Makefile.am: New file. GRUB target modules' rules
10986 that doesn't fit in Makefile.core.def file.
10987 * grub-core/Makefile.core.def: New file. Autogen build
10988 definitions file for GRUB target modules.
10989 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
10990 specific setjmp.S file.
10991 * po/Makefile.am: New file.
10993 * .bzrignore: New ignores.
10994 * INSTALL: New requirements, without Ruby.
10995 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
10996 * autogen.sh: Updated to invoke autogen as necessary.
10997 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
10998 and defines for Automake conditionals.
10999 * geninit.sh: Refactoring.
11001 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
11003 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
11006 * include/grub/test.h: Fix functional test modules' naming.
11007 * grub-core/tests/example_functional_test.c: Fix test module name.
11009 * util/misc.c: Hosted versions' of grub functions for libgrub.a
11010 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
11011 * util/grub-editenv.c: Likewise.
11012 * util/grub-fstest.c: Likewise.
11013 * util/grub-mkdevicemap.c: Likewise.
11014 * util/grub-mkfont.c: Likewise.
11015 * util/grub-mkimage.c: Likewise.
11016 * util/grub-mkpasswd-pbkdf2.c: Likewise.
11017 * util/grub-probe.c: Likewise.
11018 * util/grub-script-check.c: Likewise.
11019 * util/i386/pc/grub-setup.c: Likewise.
11020 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11022 * tests/util/grub-shell.in: Fix override directory path.
11023 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
11024 * util/import_gcry.py: Create Makefile.gcry.def file instead.
11026 * util/lvm.c: Update #includes.
11027 * util/raid.c: Likewise.
11028 * util/resolve.c: Likewise.
11029 * grub-core/bus/emu/pci.c: Likewise.
11030 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
11031 * grub-core/lib/posix_wrap/string.h: Likewise.
11032 * grub-core/kern/emu/main.c: Likewise.
11034 * grub-core/gensymlist.sh: New file. Script for generating kernel
11036 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
11038 * grub-core/gentrigtables.c: Fix unused variable warnings.
11040 * Makefile.in: Removed.
11041 * conf/any-emu.rmk: Removed.
11042 * conf/common.rmk: Removed.
11043 * conf/i386-coreboot.rmk: Removed.
11044 * conf/i386-efi.rmk: Removed.
11045 * conf/i386-ieee1275.rmk: Removed.
11046 * conf/i386-multiboot.rmk: Removed.
11047 * conf/i386-pc.rmk: Removed.
11048 * conf/i386-qemu.rmk: Removed.
11049 * conf/i386.rmk: Removed.
11050 * conf/mips-yeeloong.rmk: Removed.
11051 * conf/mips.rmk: Removed.
11052 * conf/powerpc-ieee1275.rmk: Removed.
11053 * conf/sparc64-ieee1275.rmk: Removed.
11054 * conf/tests.rmk: Removed.
11055 * conf/x86-efi.rmk: Removed.
11056 * conf/x86_64-efi.rmk: Removed.
11057 * gendistlist.sh: Removed.
11058 * geninitheader.sh: Removed.
11059 * genkernsyms.sh.in: Removed.
11060 * genmk.rb: Removed.
11061 * gensymlist.sh.in: Removed.
11062 * mkinstalldirs: Removed.
11064 * grub-core/boot: ... to here.
11066 * grub-core/bus: ... to here.
11067 * commands: Moved ...
11068 * grub-core/commands: ... to here.
11070 * grub-core/disk: ... to here.
11071 * efiemu: Moved ...
11072 * grub-core/efiemu: ... to here.
11074 * grub-core/font: ... to here.
11076 * grub-core/fs: ... to here.
11077 * gencmdlist.sh: Moved ...
11078 * grub-core/gencmdlist.sh: ... to here.
11079 * genemuinit.sh: Moved ...
11080 * grub-core/genemuinit.sh: ... to here.
11081 * genemuinitheader.sh: Moved ...
11082 * grub-core/genemuinitheader.sh: ... to here.
11083 * genfslist.sh: Moved ...
11084 * grub-core/genfslist.sh: ... to here.
11085 * genhandlerlist.sh: Moved ...
11086 * grub-core/genhandlerlist.sh: ... to here.
11087 * genmoddep.awk: Moved ...
11088 * grub-core/genmoddep.awk: ... to here.
11089 * genmodsrc.sh: Moved ...
11090 * grub-core/genmodsrc.sh: ... to here.
11091 * genpartmaplist.sh: Moved ...
11092 * grub-core/genpartmaplist.sh: ... to here.
11093 * genparttoollist.sh: Moved ...
11094 * grub-core/genparttoollist.sh: ... to here.
11095 * genterminallist.sh: Moved ...
11096 * grub-core/genterminallist.sh: ... to here.
11097 * gentrigtables.c: Moved ...
11098 * grub-core/gentrigtables.c: ... to here.
11099 * genvideolist.sh: Moved ...
11100 * grub-core/genvideolist.sh: ... to here.
11101 * gettext: Moved ...
11102 * grub-core/gettext: ... to here.
11103 * gfxmenu: Moved ...
11104 * grub-core/gfxmenu: ... to here.
11105 * gnulib: Moved ...
11106 * grub-core/gnulib: ... to here.
11108 * grub-core/hello: ... to here.
11110 * grub-core/hook: ... to here.
11112 * grub-core/io: ... to here.
11114 * grub-core/kern: ... to here.
11116 * grub-core/lib: ... to here.
11117 * loader: Moved ...
11118 * grub-core/loader: ... to here.
11120 * grub-core/mmap: ... to here.
11121 * normal: Moved ...
11122 * grub-core/normal: ... to here.
11123 * partmap: Moved ...
11124 * grub-core/partmap: ... to here.
11125 * parttool: Moved ...
11126 * grub-core/parttool: ... to here.
11127 * script: Moved ...
11128 * grub-core/script: ... to here.
11130 * grub-core/term: ... to here
11131 * tests/example_functional_test.c: Moved ...
11132 * grub-core/tests/example_functional_test.c: ... to here.
11133 * tests/lib/functional_test.c: Moved ...
11134 * grub-core/tests/lib/functional_test.c: ... to here.
11135 * tests/lib/test.c: Moved ...
11136 * grub-core/tests/lib/test.c: ... to here.
11138 * grub-core/video: ... to here.
11140 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
11142 Replace --enable-grub-emu-modules with grub-emu-lite.
11144 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
11147 * include/grub/emu/misc.h (grub_emu_init): New prototype.
11148 * kern/emu/full.c: New file. For grub-emu specific initialization.
11149 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
11150 * kern/emu/main.c: Call initialization function grub_emu_init.
11152 * Makefile.in: Include grub-emu-lite in install.
11153 * commands/parttool.c: Use grub_no_autoload to differentiate
11154 between grub-emu and grub-emu-lite.
11155 * include/grub/misc.h: New variable grub_no_autoload.
11157 * conf/any-emu.rmk: New rules for grub-emu-lite.
11158 * configure.ac: Remove --enable-grub-emu-modules.
11159 * genmk.rb: Cleanup unnecessary rules.
11160 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
11162 * normal/main.c: Don't load list files on grub-emu-lite.
11163 * util/misc.c (grub_arch_sync_caches): Removed.
11165 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
11167 * kern/mips/startup.S (grub_prefix): Update comment to refer to
11168 grub-mkimage rather than grub-mkelfimage.
11169 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
11171 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
11173 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
11174 a key after CapsLock or NumLock. It's just a qemu bug.
11176 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
11178 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
11179 needed by libusb wrapper.
11181 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
11183 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
11185 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
11187 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
11188 --nounzip is passed.
11190 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
11192 USB hotunplugging and USB serial support.
11194 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
11195 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
11196 (grub_uhci_transfer): Respect timeout and set *actual.
11197 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
11198 non-standard length.
11199 (grub_usb_device_attach): Autoload modules.
11200 (GRUB_MOD_INIT): Set grub_term_poll_usb.
11201 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
11202 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
11204 (grub_usb_add_hub): Fill nports and children.
11205 (attach_root_port): Receive hub instead of controller.
11206 All users updated. Fill hub->devices.
11207 (grub_usb_root_hub): Allocate hub->devices.
11208 (detach_device): New function.
11209 (poll_nonroot_hub): Fill children and detach devices.
11210 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
11211 actual arguments. All users updated.
11212 (grub_usb_bulk_read_extended): New function.
11213 * bus/usb/serial/common.c: New file.
11214 * bus/usb/serial/ftdi.c: Likewise.
11215 * bus/usb/serial/pl2303.c: Likewise.
11216 * commands/terminal.c (handle_command): Support wildcard.
11217 * commands/usbtest.c: Output "Unknown" instead of empty string.
11218 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
11219 (usbserial_common_mod_SOURCES): New variable.
11220 (usbserial_common_mod_CFLAGS): Likewise.
11221 (usbserial_common_mod_LDFLAGS): Likewise.
11222 (pkglib_MODULES): Add usbserial_pl2303.mod.
11223 (usbserial_pl2303_mod_SOURCES): New variable.
11224 (usbserial_pl2303_mod_CFLAGS): Likewise.
11225 (usbserial_pl2303_mod_LDFLAGS): Likewise.
11226 (pkglib_MODULES): Add usbserial_ftdi.mod.
11227 (usbserial_ftdi_mod_SOURCES): New variable.
11228 (usbserial_ftdi_mod_CFLAGS): Likewise.
11229 (usbserial_ftdi_mod_LDFLAGS): Likewise.
11230 (pkglib_MODULES): Add serial.mod.
11231 (serial_mod_SOURCES): New variable.
11232 (serial_mod_CFLAGS): Likewise.
11233 (serial_mod_LDFLAGS): Likewise.
11234 * conf/i386-pc.rmk: Likewise.
11235 * conf/mips-yeeloong.rmk: Likewise.
11236 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
11237 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
11238 * disk/usbms.c (first_available_slot): New variable.
11239 (grub_usbms_attach): Don't reuse free slots due to potential cache
11241 * include/grub/serial.h: Moved to ..
11242 * include/grub/ns8250.h: ...this.
11243 * include/grub/serial.h: New file.
11244 * include/grub/term.h (grub_term_poll_usb): New variable.
11245 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
11246 readkey. All users updated.
11247 (grub_terminfo_output_state): Pass term to put.
11248 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
11249 (grub_usb_controller_dev): Add timeout and actual arguments to
11250 transfer. All users updated.
11251 (grub_usb_interface): New field detach_data.
11252 (grub_usb_device): New fields children and nports.
11253 (grub_usb_ep_type_t): New type.
11254 (grub_usb_get_ep_type): New function.
11255 (grub_usb_bulk_read_extended): Likewise.
11256 * include/grub/usbdesc.h (grub_usb_desc): New type.
11257 * include/grub/usbserial.h: New file.
11258 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
11259 * kern/term.c (grub_term_poll_usb): New variable.
11260 (grub_getkey): Call grub_term_poll_usb if set.
11261 (grub_checkkey): Likewise.
11262 (grub_getkeystatus): Likewise.
11263 * term/serial.c: Moved controller-specific parts to ...
11264 * term/ns8250.c: ... here.
11265 * term/serial.c: Mostly rewritten.
11266 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
11269 2010-08-20 Robert Millan <rmh@gnu.org>
11271 Make kFreeBSD code more generic to support ext2fs as root, ufs as
11272 a separate module and maybe other interesting combinations.
11274 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
11275 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
11276 (kfreebsd_entry): Add generic filesystem module load routine.
11277 Map GRUB `ext2' to kFreeBSD `ext2fs'.
11279 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
11281 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
11282 "numcenter" (I misunderstood the purpose of this entry).
11283 * docs/grub.texi (sendkey): Likewise.
11285 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
11287 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
11288 status flag options; simply omitting the option is equivalent and
11289 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
11290 (keysym_table): Rename "num5numlock" to "numlock".
11291 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
11292 can uniformly say that only the last of multiple `sendkey'
11293 invocations has any effect.
11294 * docs/grub.texi (sendkey): New section.
11296 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
11298 * commands/i386/pc/sendkey.c (options): Fix three typos.
11300 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11302 Implement sendkey support.
11304 * commands/i386/pc/sendkey.c: New file.
11305 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
11306 (sendkey_mod_SOURCES): New variable.
11307 (sendkey_mod_CFLAGS): Likewise.
11308 (sendkey_mod_LDFLAGS): Likewise.
11310 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
11312 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
11313 fix warnings from Autoconf.
11315 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
11317 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
11318 to avoid false positives with some assemblers that output things
11319 like "someprefix_func" as part of their output.
11321 2010-08-15 Robert Millan <rmh@gnu.org>
11323 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
11325 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
11326 grub_get_libzfs_handle() errors.
11328 2010-08-14 Robert Millan <rmh@gnu.org>
11330 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
11331 filesystem is not ZFS.
11333 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11335 Fix for misspelled color names defaulting to black/black (bug
11336 reported by Doug Nazar)
11338 * include/grub/normal.h (grub_parse_color_name_pair): Add return
11339 status to prototype.
11340 * normal/color.c (grub_parse_color_name_pair): Return failure
11342 (grub_env_write_color_normal): Ignore bad color names.
11343 (grub_env_write_color_highlight): Likewise.
11344 * normal/main.c (GRUB_MOD_INIT): Set default color names.
11346 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11348 "shift" command support to GRUB script.
11350 * include/grub/script_sh.h (grub_script_shift): New prototype.
11351 * script/execute.c (grub_script_shift): New function.
11352 * script/main.c (grub_script_init): Register shift command.
11353 (grub_script_fini): Unregister shift command.
11354 * util/grub-script-check.c (grub_script_cmd_shift): New function.
11356 * tests/grub_script_shift.in: New testcase.
11357 * conf/tests.rmk: Rules for new testcase.
11359 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11361 "continue" command support to GRUB script.
11363 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
11364 (grub_script_break): Continue support.
11365 * script/main.c (grub_script_init): Register continue command.
11366 (grub_script_fini): Unregister continue command.
11368 * tests/grub_script_continue.in: New testcase.
11369 * conf/tests.rmk: Rules for new testcase.
11371 2010-08-12 BVK Chaitanya <bvk@dbook>
11373 "break" command support to GRUB script.
11375 * conf/common.rmk: Rule updates to grub-script-check.
11376 * include/grub/misc.h (grub_min): New function.
11377 * include/grub/script_sh.h (grub_script_init): New prototype.
11378 (grub_script_fini): New prototype.
11379 (grub_script_break): New prototype.
11380 * script/main.c (grub_script_init): New function.
11381 (grub_script_fini): New function.
11382 * script/execute.c (grub_script_break): New function.
11383 * normal/main.c: Calls to grub_script_{init,fini}.
11384 * util/grub-script-check.c (grub_script_break): New function.
11386 * tests/grub_script_break.in: New testcase.
11387 * conf/tests.rmk: Rules for new test case.
11389 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11391 Function parameters support to GRUB script.
11393 * script/yylex.l (VARIABLE): Regular expression update.
11394 * script/function.c (grub_script_function_call): Moved ...
11395 * script/execute.c (grub_script_function_call): ... to here.
11396 (grub_script_execute_arglist_to_argv): Removed.
11397 (grub_script_arglist_to_argv): New function.
11398 * script/argv.c: New file.
11399 (grub_script_argv_free): New function.
11400 (grub_script_argv_next): Likewise.
11401 (grub_script_argv_append): Likewise.
11402 (grub_script_argv_split_append): Likewise.
11403 * include/grub/script_sh.h (grub_script_argv): New struct.
11404 (grub_script_argv_free): New function.
11405 (grub_script_argv_next): Likewise.
11406 (grub_script_argv_append): Likewise.
11407 (grub_script_argv_split_append): Likewise.
11409 * conf/common.rmk (normal.mod): New source script/argv.c.
11411 * tests/grub_script_echo1.in: More tests.
11412 * tests/grub_script_vars1.in: Likewise.
11413 * tests/grub_script_functions.in: New test case.
11414 * conf/tests.rmk: Rules for new testcase.
11416 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11418 Remove grub_script_cmdblock struct.
11420 * include/grub/script_sh.h: Remove grub_script_cmdblock.
11421 * script/parser.y: Likewise.
11422 * script/execute.c: Rename cmdblock suffix to cmdlist.
11423 * script/script.c: Likewise.
11424 * util/grub-script-check.c: Likewise.
11426 2010-08-11 Yves Blusseau <blusseau@zetam.org>
11428 * .bzrignore: add grub-macho2img
11430 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
11432 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
11434 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
11436 Remove the dump of sm712 initialisation sequence.
11438 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
11439 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
11440 (GRUB_VGA_IO_MISC_WRITE): Likewise.
11441 (GRUB_VGA_CR_*): Added many registers.
11442 (GRUB_VGA_SR_*): Likewise.
11443 (GRUB_VGA_GR_*): Likewise.
11444 (grub_vga_write_arx): New function.
11445 (grub_video_hw_config): New struct.
11446 (grub_vga_set_geometry): New function.
11447 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
11448 GRUB_PCI_CLASS_SUBCLASS_VGA.
11449 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
11450 * video/sm712.c (grub_sm712_write_reg): New function
11451 (grub_sm712_read_reg): Likewise.
11452 (grub_sm712_sr_write): Likewise.
11453 (grub_sm712_gr_write): Likewise.
11454 (grub_sm712_cr_write): Likewise.
11455 (grub_sm712_write_arx): Likewise.
11456 (grub_sm712_cr_shadow_write): Likewise.
11457 (grub_sm712_write_dda_lookup): Likewise.
11458 (grub_video_sm712_setup): Initialise the video rather then
11459 blindly replay the dump.
11460 (main) [TEST]: Add a routine to be able to compile as standalone for
11462 * video/sm712_init.c (sm712_init): Removed.
11463 (sm712_sr_seq1): New array.
11464 (sm712_sr_seq2): Likewise.
11466 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11468 * include/grub/vga.h: Add missing grub/pci.h include.
11470 2010-08-10 Yves Blusseau <blusseau@zetam.org>
11472 * util/grub-macho2img.c (main): fix typo
11474 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11476 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
11477 (grub_vga_gr_read): Likewise.
11478 (grub_vga_cr_write): Likewise.
11479 (grub_vga_cr_read): Likewise.
11480 (grub_vga_sr_write): Likewise.
11481 (grub_vga_sr_read): Likewise.
11482 (grub_vga_palette_read): Likewise.
11483 (grub_vga_palette_write): Likewise.
11484 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
11485 (grub_sm712_sr_read): New function.
11486 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
11487 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
11489 2010-08-09 Robert Millan <rmh@gnu.org>
11491 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
11492 out unused variables on non-ZFS build.
11494 2010-08-08 Robert Millan <rmh@gnu.org>
11496 Fix path generation for sub-filesystems in ZFS.
11498 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
11501 2010-08-08 Robert Millan <rmh@gnu.org>
11503 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
11505 2010-08-08 Robert Millan <rmh@gnu.org>
11507 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
11508 exist, issue a proper error message (rely on `ls' for translated
11511 2010-08-08 Robert Millan <rmh@gnu.org>
11513 Fix grub-probe invocation.
11515 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
11517 2010-08-04 Robert Millan <rmh@gnu.org>
11519 * configure.ac: Remove checks for getfsstat() and getmntany().
11520 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
11521 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
11522 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
11523 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
11524 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
11526 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
11527 via find_mount_point_from_dir() and getfsstat() / getmntany().
11529 2010-08-04 Robert Millan <rmh@gnu.org>
11531 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11532 (grub_find_zpool_from_mount_point): Merge into ...
11533 (grub_find_zpool_from_dir): ... this.
11534 * kern/emu/misc.c: Likewise.
11537 (grub_make_system_path_relative_to_its_root): Replace
11538 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
11539 with grub_find_zpool_from_dir().
11540 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
11542 2010-08-04 Robert Millan <rmh@gnu.org>
11544 Support OpenSolaris in ZFS device resolution.
11546 * configure.ac: Check for getmntany().
11547 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
11548 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
11551 2010-08-03 Robert Millan <rmh@gnu.org>
11553 Fix grub-emu build.
11555 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
11556 * include/grub/emu/misc.h: ... here.
11558 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
11559 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
11561 * util/misc.c: Remove `<grub/util/libzfs.h>'.
11562 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
11563 (grub_get_libzfs_handle): Move to ...
11564 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
11565 (grub_get_libzfs_handle): ... here.
11567 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
11569 * script/execute.c (grub_script_execute_cmdline): Check for NULL
11570 as command name case.
11572 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
11574 * disk/raid.c (insert_array): Select unique numbers for named arrays
11575 as well, for use as keys in the disk cache.
11577 2010-08-01 Robert Millan <rmh@gnu.org>
11579 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
11580 kFreeBSD device name, except on ZFS where the filesystem label is
11582 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
11583 `/boot/zfs/zpool.cache'.
11584 Set mountfrom kernel variable using ${kfreebsd_device}.
11586 2010-08-01 Robert Millan <rmh@gnu.org>
11588 Make it even harder to use uninitialized `libzfs_handle' (and
11589 make the interface a bit simpler).
11591 * include/grub/util/misc.h (grub_util_init_libzfs)
11592 (libzfs_handle): Remove.
11593 (grub_get_libzfs_handle): New prototype.
11595 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
11597 (grub_util_init_libzfs): Remove.
11598 (grub_get_libzfs_handle): New function.
11600 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
11601 grub_get_libzfs_handle() to obtain a libzfs handle instead of
11602 accessing `libzfs_handle' directly.
11604 2010-08-01 Robert Millan <rmh@gnu.org>
11606 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11607 (grub_find_zpool_from_mount_point): New function prototypes.
11609 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
11610 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
11612 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
11613 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
11614 `static' attribute.
11616 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
11617 finding zpool from mount point into ...
11618 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
11620 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
11621 requested path is part of a ZFS pool, use
11622 grub_find_zpool_from_mount_point() to detect its filesystem name,
11623 and generate a path with `/fsname@path' syntax.
11625 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11627 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
11628 (void) rather than () so that this is a proper prototype.
11630 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11632 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
11634 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11636 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
11637 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
11639 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11641 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
11643 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11645 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
11647 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11649 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
11650 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
11651 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
11652 disable gfxpayload.
11653 (Shell-like scripting): Add real content.
11654 (Serial terminal): Suggest `terminal_input serial; terminal_output
11655 serial' rather than putting the two commands on separate lines,
11656 since console input will be inoperative after the first command.
11657 (menuentry): Document --class, --users, and --hotkey options.
11658 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
11659 Vladimir Serbinenko).
11661 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11662 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11664 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
11666 2010-08-01 Robert Millan <rmh@gnu.org>
11668 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11669 (grub_find_zpool_from_mount_point): New function prototypes.
11671 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
11672 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
11674 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
11675 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
11676 `static' attribute.
11678 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
11679 finding zpool from mount point into ...
11680 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
11682 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
11683 requested path is part of a ZFS pool, use
11684 grub_find_zpool_from_mount_point() to detect its filesystem name,
11685 and generate a path with `/fsname@path' syntax.
11687 2010-08-01 Robert Millan <rmh@gnu.org>
11689 Prevent accidental use of uninitialized libzfs_handle.
11691 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
11692 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
11693 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
11695 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11697 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
11698 util/grub.d/10_linux.in). Fixes Debian bug #591093.
11700 2010-08-01 Robert Millan <rmh@gnu.org>
11702 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
11704 2010-07-31 Robert Millan <rmh@gnu.org>
11706 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
11708 2010-07-31 Robert Millan <rmh@gnu.org>
11710 * kern/emu/misc.c: Add missing license header.
11712 2010-07-31 Robert Millan <rmh@gnu.org>
11714 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
11716 * include/grub/util/libnvpair.h: Include `<config.h>'.
11717 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
11718 declaring libnvpair prototypes ourselves.
11719 * include/grub/util/libzfs.h: Include `<config.h>'.
11720 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
11721 declaring libzfs prototypes ourselves.
11723 (libzfs_handle): Moved to ...
11724 * include/grub/util/misc.h (libzfs_handle): ... here.
11725 Include `<grub/util/libzfs.h>'.
11727 2010-07-30 Robert Millan <rmh@gnu.org>
11729 * include/grub/emu/misc.h: Add missing license header.
11731 2010-07-30 Robert Millan <rmh@gnu.org>
11733 Enable `grub-probe -t device' resolution on ZFS.
11735 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
11736 * include/grub/util/libnvpair.h: New file.
11737 * include/grub/util/libzfs.h: New file.
11739 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
11740 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
11741 `<grub/util/libnvpair.h>'.
11742 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
11744 (find_mount_point_from_dir): New static function.
11745 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
11747 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
11748 find_root_device_from_libzfs() before ressorting to find_root_device().
11750 * include/grub/util/misc.h (grub_util_init_libzfs): New function
11752 * util/misc.c: Include `<grub/util/libzfs.h>'.
11753 (grub_util_init_libzfs): New function.
11754 [HAVE_LIBZFS] (libzfs_handle): New global variable.
11755 [HAVE_LIBZFS] (fini_libzfs): New static function.
11756 (grub_util_init_libzfs): New function.
11757 * util/grub-probe.c (main): Call grub_util_init_libzfs().
11759 2010-07-30 Robert Millan <rmh@gnu.org>
11761 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
11762 (xmalloc, xrealloc, xstrdup, xasprintf): Add
11763 `warn_unused_result' attribute.
11764 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
11765 (grub_xasprintf, grub_xvasprintf): Likewise.
11766 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
11768 2010-07-29 Robert Millan <rmh@gnu.org>
11770 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
11771 (probe): Handle `PRINT_FS_LABEL'.
11772 (main): Handle `-t fs_label'.
11774 2010-07-29 Robert Millan <rmh@gnu.org>
11776 * configure.ac: Remove grub-mkisofs checks.
11778 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
11780 * util/ieee1275/grub-install.in: Don't use empty grub_device.
11781 Reported by: Lennart Sorensen.
11783 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11785 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
11786 prior to terminal_input/terminal_output separation. It's been over 1.5
11787 years and those versions weren't widely deployed.
11789 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
11791 * disk/raid.c (insert_array): Don't count named arrays when looking
11792 for unused array numbers.
11793 Reported and tested by: Michael Guntsche.
11795 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11797 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
11798 implementation of this so that grub-emu links again, with a note
11799 that this should support hotplugging in the future.
11801 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11803 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
11805 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11807 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
11809 (grub_loopback_close): Remove empty function.
11810 (grub_loopback_dev): Remove close method.
11812 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11814 Disable EFI cursor when the EFI console becomes inactive.
11816 * term/efi/console.c (grub_efi_console_init): New function.
11817 (grub_efi_console_fini): New function.
11818 (grub_console_term_output): Register init and fini methods.
11820 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11822 * tests/util/grub-shell-tester.in: Remove bashism and declare as
11825 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11827 * disk/loopback.c (grub_loopback): Replace filename with file.
11828 (delete_loopback): Handle new semantics.
11829 (grub_cmd_loopback): Likewise.
11830 (grub_loopback_iterate): Likewise.
11831 (grub_loopback_close): Likewise.
11833 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11835 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
11837 Reported by: Tito Keitel.
11839 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11841 * docs/grub.texi (Naming convention): Document new naming convention.
11843 2010-07-20 Vadim Solomin <vadic052@gmail.com>
11844 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11846 Generate device.map in something closer to the old ordering.
11848 * util/deviceiter.c (struct device): New declaration.
11849 (compare_file_names): Rename to ...
11850 (compare_devices): ... this. Sort by kernel name in preference to
11851 the stable by-id name, but keep the latter as a fallback comparison.
11852 Update header comment.
11853 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
11854 of `struct device' rather than of plain file names.
11856 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
11858 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
11861 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11863 * commands/acpi.c (setup_common_tables): Use sizeof instead of
11865 (setv1table): Likewise.
11867 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11869 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
11870 removing the homehost if present.
11871 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
11872 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
11873 removing the homehost if present.
11874 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
11876 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
11878 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
11879 parameter. Set its pointer target to 0.
11880 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
11881 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
11882 `data_offset' value from the superblock for 1.x metadata.
11883 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
11884 data on the device.
11885 (insert_array): Record the start sector of data on the device.
11886 (grub_raid_register): Pass start_sector parameters to
11887 grub_raid_list->detect and insert_array.
11888 * include/grub/raid.h (struct grub_raid_array): Add start_sector
11890 (struct grub_raid): Add start_sector parameter to `detect'.
11892 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
11893 __attribute__ ((packed)), leaving a comment.
11894 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
11895 (grub_mdraid_detect_09): ... here and ...
11896 (grub_mdraid_detect_1x): ... here.
11898 2010-07-20 Peter Henn <peter.henn@web.de>
11900 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
11901 chunk size and disk size, which are already given as sector counts
11902 as distinct from the 0.90 units. Fetch the correct device number
11903 from the role table instead of using the table index.
11905 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
11907 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
11908 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
11909 (WriteMostly1): New macro.
11910 Set array->name to NULL for metadata format 0.90. Add support for
11911 metadata 1.x. Fix some comments.
11912 * disk/raid.c (): Add support for name based RAID arrays. Fix a
11914 * util/getroot.c (grub_util_get_grub_dev): Add support for
11915 /dev/md/name style devices.
11917 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11919 * .bzrignore: Ignore 20_linux_xen.
11921 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
11923 * util/import_unicode.py: Remove unnecessary imports.
11925 2010-07-17 Aleš Nesrsta <starous@volny.cz>
11927 Hotplugging and USB hub support.
11929 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
11930 (grub_ohci): Likewise.
11931 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
11932 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
11933 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
11934 (GRUB_OHCI_CTRL_EDS): Likewise.
11935 (GRUB_OHCI_BULK_EDS): Likewise.
11936 (GRUB_OHCI_TDS): Likewise.
11937 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
11938 (grub_ohci_ed_phys2virt): New function.
11939 (grub_ohci_virt_to_phys): Likewise.
11940 (grub_ohci_td_phys2virt): Likewise.
11941 (grub_ohci_td_virt2phys): Likewise.
11942 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
11944 (grub_ohci_find_ed): New function.
11945 (grub_ohci_alloc_td): Likewise.
11946 (grub_ohci_free_td): Likewise.
11947 (grub_ohci_free_tds): Likewise.
11948 (grub_ohci_transfer): Use previously allocated memory.
11949 (grub_ohci_portstatus): Reset status changed bit.
11950 (grub_ohci_detect_dev): Supply status changed.
11951 (grub_ohci_fini_hw): Free memory.
11952 (grub_ohci_restore_hw): Reallocate memory.
11953 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
11954 Reset status change.
11955 (grub_uhci_detect_dev): Supply status_change.
11956 * bus/usb/usb.c (attach_hooks): New var.
11957 (grub_usb_device_attach): New function.
11958 (grub_usb_register_attach_hook_class): Likewise.
11959 (grub_usb_unregister_attach_hook_class): Likewise.
11960 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
11961 (grub_usb_add_hub): Reset connection changed bit.
11962 (attach_root_port): New function.
11963 (grub_usb_root_hub): Likewise.
11964 (poll_nonroot_hub): Likewise.
11965 (grub_usb_poll_devices): Likewise.
11966 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
11967 * disk/usbms.c (grub_usbms_open): Use device hooks.
11968 (grub_usbms_iterate) :Poll devices.
11969 (grub_usbms_finddevs): Split into ...
11970 (grub_usbms_attach): ... this ...
11971 (grub_usbms_attach): ... and this.
11972 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
11974 (grub_usb_interface): New fields attached and detach_hook.
11975 (grub_usb_attach_hook_class): New type.
11976 (grub_usb_attach_desc): New struct.
11977 (grub_usb_register_attach_hook_class): New function.
11978 (grub_usb_unregister_attach_hook_class): Likewise.
11979 (grub_usb_poll_devices): Likewise.
11980 (grub_usb_device_attach): Likewise.
11981 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
11982 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
11984 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11986 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
11987 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
11988 delta determination style. Works with most NetBSD partitions too.
11990 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11992 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
11993 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
11995 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11997 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
11999 2010-07-14 Anton Blanchard <anton@samba.org>
12001 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
12004 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12006 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
12008 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12010 * kern/partition.c (grub_partition_check_containment): New function to
12011 check that a partition is physically contained in a parent. Since
12012 offsets are relative (and non-negative), this reduces to checking that
12013 the partition ends before its parent.
12014 (grub_partition_map_probe): Discard out-of-range sub-partitions.
12015 (grub_partition_iterate): Likewise.
12016 * include/grub/partition.h (grub_partition_map): Slightly more detailed
12018 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
12019 partitions that start before their parent, and add debug printfs.
12021 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
12023 * Makefile.in (.SUFFIX): Spell correctly, as ...
12024 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
12025 bare module name without `.mod', e.g. `test') tried to invoke a
12028 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
12030 * README: Point to the Info manual.
12032 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
12034 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
12035 2nd superblock position from partition size.
12037 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
12039 * Makefile.in (MAINTAINER_CLEANFILES): Remove
12040 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
12041 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
12044 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12046 Restructure SCSI .id handling.
12047 Reported and tested by: Aleš Nesrsta.
12049 * disk/ata.c (grub_atapi_close): Removed. All users updated.
12050 (grub_atapi_dev): Changed .name to "ata". New field .id.
12051 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
12052 (grub_usbms_dev): New field .id.
12053 * disk/scsi.c (grub_scsi_iterate): Generate name.
12054 (grub_scsi_open): Parse name.
12055 * include/grub/scsi.h (grub_make_scsi_id): New function.
12056 (grub_scsi_dev): Change iterate and open to number instead of naming
12057 busses. All users updated.
12058 (grub_scsi): Remove name. Add .bus.
12060 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12062 * commands/help.c (grub_cmd_help): Fix a typo.
12064 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12066 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
12067 Reported and tested by: Colin Watson.
12069 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12071 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
12074 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12076 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
12078 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
12080 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
12083 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12085 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
12086 and disk/raid6_recover.c.
12087 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
12088 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
12090 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12092 * term/gfxterm.c (repaint_schedulded): Rename to ...
12093 (repaint_scheduled): ... this. Update all callers.
12094 (repaint_was_schedulded): Rename to ...
12095 (repaint_was_scheduled): ... this. Update all callers.
12097 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12099 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
12100 which we expect to be handled by upper layers.
12102 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
12104 * bus/usb/usbhub.c: #include time.h header.
12106 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12108 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
12109 entry_name also for entries without stat blocks (e.g. ".."); fixes
12110 corruption of the first entry in a directory.
12112 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12114 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
12115 after setting gfxterm as the active terminal. GRUB_BACKGROUND
12116 doesn't work otherwise.
12118 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12120 * docs/grub.texi (Features): Update list of supported file systems.
12121 (GNU/Linux): Update for GRUB 2.
12122 (Serial terminal): Remove mention of --disable-serial, which was a
12123 GRUB Legacy configure option. Update instructions to use
12124 `terminal_input' and `terminal_output' rather than `terminal'.
12125 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
12126 configuration' and `Installing GRUB using grub-install'.
12127 (Menu entry editor): Update for GRUB 2.
12128 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
12129 Document new -a, -u, and -v options.
12130 (initrd): New section.
12131 (initrd16): New section.
12132 (linux): New section.
12133 (linux16): New section.
12134 (search): The `var' argument to `--set' is optional.
12135 (GRUB only offers a rescue shell): Go into a little more detail on
12138 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12140 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
12142 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12144 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
12145 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
12147 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12149 * util/i386/pc/grub-setup.c (setup): Rename prefix to
12150 install_prefix, in line with install_dos_part and install_bsd_part.
12151 Add new prefix variable, which is copied to install_prefix after
12152 comparing core.img in memory with the one read from disk in the
12153 no-embedding case, and use that rather than overwriting
12154 install_prefix immediately when installing to a partition.
12155 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
12158 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
12160 * configure.ac: Avoid == in test command, it's not portable.
12161 * util/grub.d/30_os-prober.in: Likewise.
12163 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
12165 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
12167 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
12169 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
12170 multiple (top-level) partmaps.
12172 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12174 * util/i386/efi/grub-install.in: Don't use empty grub_device.
12175 Reported by: Tino Keitel.
12177 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12179 Bidi and diacritics support.
12181 * Makefile.in (widthspec.bin): New target.
12182 (widthspec.h): Likewise.
12183 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
12184 * autogen.sh: Generate unidata.c.
12185 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
12186 * commands/ls.c (grub_ls_list_devices): Likewise.
12187 (grub_ls_list_files): Likewise.
12188 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
12189 (grub_mini_cmd_lsmod): Likewise.
12190 * commands/read.c: Likewise.
12191 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
12192 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
12193 * lib/arg.c (grub_arg_show_help): Likewise.
12194 * lib/crypto.c (grub_password_get): Likewise.
12195 * normal/auth.c (grub_username_get): Likewise.
12196 * normal/misc.c (grub_normal_print_device_info): Likewise.
12197 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
12198 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
12199 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
12200 (normal/charset.c_DEPENDENCIES): New variable.
12201 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
12202 (pkglib_MODULES): Remove charset.mod.
12203 (charset_mod_SOURCES): Removed.
12204 (charset_mod_CFLAGS): Likewise.
12205 (charset_mod_LDFLAGS): Likewise.
12206 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
12207 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
12209 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12210 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12211 (kernel_img_HEADERS): Add terminfo.h.
12212 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
12213 Fill ->font. Reverse ascii bitmaps.
12214 (grub_font_get_xheight): New function.
12215 * font/font.c (grub_font_get_string_width): Moved from here ...
12216 * gfxmenu/font.c (grub_font_get_string_width): ... here.
12217 * font/font.c (grub_font_draw_string): Moved from here ...
12218 * gfxmenu/font.c (grub_font_draw_string): ... here.
12219 * font/font.c (grub_font_dup_glyph): New function.
12220 (grub_font_blit_glyph): Likewise.
12221 (grub_font_blit_glyph_mirror): Likewise.
12222 (blit_comb): Likewise.
12223 (grub_font_construct_dry_run): Likewise.
12224 (grub_font_get_constructed_device_width): Likewise.
12225 (grub_font_construct_glyph): Likewise.
12226 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
12227 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
12228 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
12229 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
12230 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
12231 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
12232 (grub_font_get_xheight): New proto.
12233 (grub_font_get_constructed_device_width): Likewise.
12234 (grub_font_construct_glyph): Likewise.
12235 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
12236 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
12237 * include/grub/font.h (grub_font_draw_string): Moved from here ...
12238 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
12239 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
12240 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
12241 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
12242 (grub_console_getcharwidth): Likewise.
12243 * include/grub/misc.h (grub_xputs): New proto.
12244 (grub_puts): Inlined.
12245 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
12246 (grub_normal_get_line_counter): Removed.
12247 (grub_install_newline_hook): Likewise.
12248 (grub_normal_get_char_counter): New proto.
12249 (grub_normal_reset_more): Likewise.
12250 (grub_xputs_normal): Likewise.
12251 * include/grub/powerpc/ieee1275/console.h: Removed.
12252 * include/grub/sparc64/ieee1275/console.h: Likewise.
12253 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
12254 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
12255 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
12256 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
12257 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
12258 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
12259 (grub_term_input): Pass reference to self. All users updated.
12260 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
12261 Pass reference to self. New fields normal_color, highlight_color and
12262 data. All users updated.
12263 (grub_putchar): Removed.
12264 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
12265 (grub_unicode_estimate_width): New function.
12266 (grub_term_getcharwidth): Add defaults.
12267 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
12268 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
12269 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
12270 (grub_cls): Remove EXPORT_FUNC.
12271 (grub_setcolorstate): Inline.
12272 (grub_newline_hook): Removed.
12273 * include/grub/terminfo.h: Rewritten. All users updated.
12274 * include/grub/unicode.h: New file.
12275 * include/grub/video.h (grub_video_signed_rect): New type.
12276 * kern/emu/console.c (grub_console_highlight_color): Removed.
12277 (grub_console_normal_color): Likewise.
12278 (grub_console_standard_color): Made static.
12279 (grub_ncurses_putchar): Remove mapping.
12280 (grub_ncurses_getcharwidth): Removed.
12281 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
12282 (grub_ncurses_setcolor): Removed.
12283 (grub_ncurses_getcolor): Likewise.
12284 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
12285 (grub_console_putchar): ... this.
12286 (grub_console_putchar): Handle argument difference.
12287 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
12288 console_init_early and console_init_lately.
12289 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
12290 * kern/misc.c (grub_puts): Removed.
12291 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
12292 (grub_vsnprintf_real): Remove str = NULL support.
12293 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
12294 * normal/charset.c (grub_utf8_to_ucs4): ... here.
12295 * kern/term.c (grub_putcode): Renamed to ...
12296 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
12297 (grub_putchar): Removed.
12298 (grub_xputs_dumb): New function.
12299 (grub_xputs): New variable.
12300 * lib/charset.c: Move from here ...
12301 * normal/charset.c: ... to here.
12302 (grub_ucs4_to_utf8): New function.
12303 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
12304 (join_types): New variable.
12305 (unpack_join): New function.
12306 (bidi_types): New variable.
12307 (unpack_bidi): New function.
12308 (get_bidi_type): Likewise.
12309 (get_join_type): Likewise.
12310 (is_mirrored): Likewise.
12311 (grub_unicode_get_comb_type): Likewise.
12312 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
12313 (is_type_after): Likewise.
12314 (grub_unicode_aglomerate_comb): Likewise.
12315 (bidi_line_wrap): Likewise.
12316 (grub_bidi_line_logical_to_visual): Likewise.
12317 (grub_bidi_logical_to_visual): Likewise.
12318 (grub_unicode_mirror_code): Likewise.
12319 (grub_unicode_shape_code): Likewise.
12320 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
12321 Don't use grub_putchar.
12322 * normal/main.c (grub_normal_init_page): Use grub_putcode.
12323 (grub_normal_reader_init): Likewise.
12324 (grub_xputs_saved): New variable.
12325 (GRUB_MOD_INIT): Set grub_xputs.
12326 (GRUB_MOD_FINI): Restore grub_xputs.
12327 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
12328 (menu_init): Avoid printing gfxmenu error.
12329 (show_menu): Use grub_normal_get_char_counter.
12330 * normal/menu_entry.c (update_screen): Fix out-of-array.
12331 (complete): Avoid NULL dereferencing.
12332 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
12333 * normal/menu_text.c (print_spaces): Removed.
12334 (grub_print_ucs4): Likewise.
12335 (grub_print_message_indented): Use grub_print_ucs4.
12336 (print_message): Use grub_putcode.
12337 (print_entry): Hanlde diacritics.
12338 * normal/term.c (term_state): New type.
12339 (grub_more_lines): Removed.
12340 (term_states): New variable.
12341 (grub_normal_line_counter): Renamed to ..
12342 (grub_normal_char_counter): ...this. All users updated.
12343 (grub_normal_get_line_counter): Renamed to ...
12344 (grub_normal_get_char_counter): ... this.
12345 (grub_normal_reset_more): New function.
12346 (process_newline): Removed.
12347 (print_more): New function.
12348 (grub_install_newline_hook): Removed.
12349 (map_code): New function.
12350 (grub_puts_terminal): Use grub_print_ucs4.
12351 (putglyph): New function.
12352 (putcode_real): Likewise.
12353 (grub_putcode): Use putcode_real.
12354 (get_maxwidth): New function.
12355 (get_startwidth): Likewise.
12356 (print_ucs4_terminal): Likewise.
12357 (find_term_state): Likewise.
12358 (put_glyphs_terminal): Likewise.
12359 (print_backlog): Likewise.
12360 (print_ucs4_real): Likewise.
12361 (grub_print_ucs4): Likewise.
12362 (grub_xputs_normal): Likewise.
12363 * term/efi/console.c (grub_console_putchar): Output diacritics.
12364 (grub_console_getcharwidth): Removed.
12365 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
12366 * term/gfxterm.c (clear_char): Free chars.
12367 (scroll_up): Avoid leaking memory.
12368 (grub_gfxterm_putchar): Support diacritics.
12369 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
12370 * term/i386/pc/console.c (grub_console_term_output): Declare as
12371 GRUB_TERM_CODE_TYPE_VGA.
12372 * term/i386/pc/vga.c (grub_vga_term): Declare as
12373 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
12374 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
12375 GRUB_TERM_CODE_TYPE_VGA.
12376 * term/i386/vga_common.c (map_char): Removed.
12377 (grub_console_putchar): Likewise.
12378 (grub_console_getcharwidth): Likewise.
12379 * term/ieee1275/ofconsole.c: Simplify using terminfo.
12380 (colors): Reordered to match terminfo.
12381 (grub_ofconsole_normal_color): Removed.
12382 (grub_ofconsole_writeesc): Likewise.
12383 (grub_ofconsole_highlight_color): Likewise.
12384 (grub_ofconsole_getcharwidth): Likewise.
12385 (grub_ofconsole_setcolorstate): Likewise.
12386 (grub_ofconsole_setcolor): Likewise.
12387 (grub_ofconsole_getcolor): Likewise.
12388 (grub_ofconsole_readkey): Renamed to ...
12389 (readkey): ... this. Remove escape sequence handling. Return -1 on no
12391 (grub_ofconsole_checkkey): Removed.
12392 (grub_ofconsole_getkey): Likewise.
12393 (grub_ofconsole_getxy): Likewise.
12394 (grub_ofconsole_gotoxy): Likewise.
12395 (grub_ofconsole_cls): Likewise.
12396 (grub_ofconsole_refresh): Likewise.
12397 (grub_ofconsole_terminfo_input): New struct.
12398 (grub_ofconsole_terminfo_output): Likewise.
12399 (grub_ofconsole_term_input): Use terminfo.
12400 (grub_ofconsole_term_output): Likewise.
12401 (grub_console_init): Split into ...
12402 (grub_console_init_early): ...this and ...
12403 (grub_console_init_lately): ...this. Use terminfo.
12404 (grub_ofconsole_putchar): Renamed to ...
12405 (put): ... this. Remove mapping.
12406 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
12407 * term/serial.c: Simplify using terminfo.
12410 (keep_track): Likewise.
12411 (registered): Likewise.
12412 (input_buf): Likewise.
12413 (npending): Likewise.
12414 (serial_translate_key_sequence): Likewise.
12415 (fill_input_buf): Likewise.
12416 (grub_serial_checkkey): Likewise.
12417 (grub_serial_getkey): Likewise.
12418 (grub_serial_getxy): Likewise.
12419 (grub_serial_gotoxy): Likewise.
12420 (grub_serial_putchar): Likewise.
12421 (grub_serial_cls): Likewise.
12422 (grub_serial_setcolorstate): Likewise.
12423 (grub_serial_setcursor): Likewise.
12424 (serial_hw_init): Use serial_hw_fetch.
12425 (grub_serial_terminfo_input): New variable.
12426 (grub_serial_terminfo_output): Likewise.
12427 (grub_serial_term_input): Use terminfo.
12428 (grub_serial_term_output): Likewise.
12429 * term/terminfo.c (putstr): Use put.
12430 (grub_terminfo_all_free): New function
12431 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
12432 (grub_terminfo_output_register): New function.
12433 (grub_terminfo_output_unregister): Likewise.
12434 (grub_terminfo_getxy): Likewise.
12435 (grub_terminfo_readkey): Likewise.
12436 (grub_terminfo_checkkey): Likewise.
12437 (grub_terminfo_getkey): Likewise.
12438 (grub_terminfo_input_init): Likewise.
12439 (print_terminfo): Likewise.
12440 (grub_cmd_terminfo): Handle encoding.
12441 (grub_terminfo_gotoxy): Track position.
12442 (grub_terminfo_cls): Likewise.
12443 (grub_terminfo_putchar): Likewise.
12444 (grub_terminfo_setcolorstate): Handle colors
12445 (grub_terminfo_cursor_on): This ...
12446 (grub_terminfo_cursor_off): ... and this merged into ...
12447 (grub_terminfo_setcursor): ... this.
12448 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
12449 * unicode/ArabicShaping.txt: New file (imported from Unicode).
12450 * unicode/BidiMirroring.txt: Likewise.
12451 * unicode/UnicodeData.txt: Likewise.
12452 * unicode/COPYING: Likewise.
12453 * util/grub-editenv.c (grub_putchar): Removed.
12454 (grub_xputs_real): New function.
12455 (grub_xputs): New variable.
12456 * util/grub-fstest.c (grub_putchar): Removed.
12457 (grub_xputs_real): New function.
12458 (grub_xputs): New variable.
12459 * util/grub-mkdevicemap.c (grub_putchar): Removed.
12460 (grub_xputs_real): New function.
12461 (grub_xputs): New variable.
12462 * util/grub-probe.c (grub_putchar): Removed.
12463 (grub_xputs_real): New function.
12464 (grub_xputs): New variable.
12465 * util/grub-script-check.c (grub_putchar): Removed.
12466 (grub_xputs_real): New function.
12467 (grub_xputs): New variable.
12468 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
12469 (grub_xputs_real): New function.
12470 (grub_xputs): New variable.
12471 * util/import_unicode.py: New file.
12472 * util/grub-mkfont.c (ft_errmsgs): New array.
12473 (grub_glyph_info): Make bitmap a pointer.
12474 (file_formats): New type WIDTH_SPEC.
12475 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
12476 (options): Add width-spec.
12478 (add_char): Renamed to ...
12479 (add_glyph): ... this.
12480 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
12481 (glyph_replace): New type.
12482 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
12483 (add_char): New function.
12484 (add_subst): Likewise.
12485 (process_cursive): Likewise.
12486 (add_font): Handle GSUB.
12487 (write_font_width_spec): New function.
12488 (main): Sort glyphs.
12489 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
12490 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
12491 * kern/term.c (grub_cls): Moved from here...
12492 * normal/term.c (grub_cls): ... here.
12494 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12496 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
12497 suitable for using within the format argument of printf when
12498 converting grub_size_t.
12499 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
12500 "x" to convert grub_size_t arguments.
12502 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12504 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
12506 (list_get_minimal_size): Take selection box into account.
12508 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12510 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
12513 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12515 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
12516 devices when iterating over /dev/disk/by-id; they will be handled
12517 later if appropriate, which they aren't always (e.g. LVM).
12519 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12521 * include/grub/misc.h (grub_reboot): Declare as noreturn.
12522 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
12524 (grub_halt): Likewise.
12525 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
12527 (grub_halt): Don't return, even if all of shut-down, power-off, and
12530 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12532 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
12533 arguments, not three.
12535 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12537 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
12538 * util/grub.d/10_linux.in: Use it to check for LVM, so that
12539 LVM-on-RAID is handled correctly.
12541 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12543 * docs/grub.texi (Changes from GRUB Legacy): New section.
12544 (Future): Fix typo.
12546 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12548 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
12549 grub.d/README accidentally ends up executable for one reason or
12550 another. Ignore it.
12552 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12554 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
12555 (gpt_partition_map_iterate): Support non-512B sectors.
12557 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12559 * kern/efi/init.c (grub_efi_init): Disable watchdog.
12560 Tested by: Seth Goldberg.
12562 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12564 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
12565 Properly align mbi.
12566 Reported by: Seth Goldberg.
12568 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12570 * util/grub-mkrescue.in: Avoid module duplication.
12572 2010-07-01 Sean Finney <seanius@seanius.net>
12574 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
12576 2010-07-01 Sean Finney <seanius@seanius.net>
12578 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
12580 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12582 * disk/lvm.c (grub_lvm_checkvalue): New function.
12583 (grub_lvm_check_flag): Likewise.
12585 2010-07-01 Robert Millan <rmh@gnu.org>
12587 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
12588 Support 'p' as partition separator on kernel of FreeBSD (used
12590 (grub_util_biosdisk_get_grub_dev): Likewise.
12592 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12594 Yeeloong firmware port.
12596 * boot/mips/yeeloong/fwstart.S: New file.
12597 * bus/cs5536.c (gpiodump): New const.
12598 (set_io_space): New function.
12599 (set_iod): Likewise.
12600 (set_p2d): Likewise.
12601 (grub_cs5536_init_geode): Likewise.
12602 * commands/mips/yeeloong/lsspd.c: New file.
12603 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
12604 (serial_mod_SOURCES): New variable.
12605 (serial_mod_CFLAGS): Likewise.
12606 (serial_mod_LDFLAGS): Likewise.
12607 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
12608 term/terminfo.c and term/tparm.c.
12609 (pkglib_IMAGES): Add fwstart.img.
12610 (fwstart_img_SOURCES): New variable.
12611 (fwstart_img_CFLAGS): Likewise.
12612 (fwstart_img_ASFLAGS): Likewise.
12613 (fwstart_img_LDFLAGS): Likewise.
12614 (fwstart_img_FORMAT): Likewise.
12615 (pkglib_MODULES): Add lsspd.mod.
12616 (lsspd_mod_SOURCES): New variable.
12617 (lsspd_mod_CFLAGS): Likewise.
12618 (lsspd_mod_LDFLAGS): Likewise.
12619 (pkglib_MODULES): Add halt.mod.
12620 (halt_mod_SOURCES): New variable.
12621 (halt_mod_CFLAGS): Likewise.
12622 (halt_mod_LDFLAGS): Likewise.
12623 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
12624 (serial_mod_SOURCES): Removed.
12625 (serial_mod_CFLAGS): Likewise.
12626 (serial_mod_LDFLAGS): Likewise.
12627 * disk/ata.c (check_device): New function.
12628 (grub_ata_device_initialize): Use check_device.
12629 (grub_ata_iterate): Recheck devices.
12630 (grub_ata_open): Likewise.
12631 (grub_atapi_iterate): Likewise.
12632 (grub_atapi_open): Likewise.
12633 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
12634 (GRUB_ATA_CH1_PORT1): Likewise.
12635 (GRUB_ATA_CH0_PORT2): Likewise.
12636 (GRUB_ATA_CH1_PORT2): Likewise.
12637 * include/grub/mips/loongson.h: New file.
12638 * include/grub/mips/yeeloong/ec.h: Likewise.
12639 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
12640 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
12641 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
12642 * include/grub/misc.h (grub_halt): Declare as noreturn.
12643 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
12644 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
12645 (UART_ENABLE_FIFO_TRIGGER1): New definition.
12646 (UART_ENABLE_DTRRTS): Likewise.
12647 (UART_ENABLE_MODEM): Removed.
12648 (UART_ENABLE_OUT2): New const.
12649 * include/grub/term.h (grub_term_register_input_active): New function.
12650 (grub_term_register_output_active): Likewise.
12651 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
12653 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
12654 (init_pci): New function.
12655 (grub_machine_init): Execute platform init when firmware. Init serial.
12656 (grub_halt): Implement.
12657 (grub_exit): Likewise.
12658 (grub_reboot): Likewise.
12659 * term/serial.c (serial_hw_init): Update macros.
12660 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
12661 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
12662 (image_targets): New target mipsel-yeeloong-flash.
12663 (generate_image): Support IMAGE_YEELOONG_FLASH.
12664 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
12665 (grub_video_sm712_setup): Init card.
12666 (grub_video_sm712_set_palette): Removed.
12667 * video/sm712_init.c: New file.
12669 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
12671 * Makefile.in (install-local): Temporarily prepend $(builddir) to
12672 PATH when running help2man and then run it on the unadorned
12673 executable names, rather than passing $(builddir)/* paths to
12674 help2man. This avoids the build directory ending up in generated
12677 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
12679 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
12680 to avoid accidents when debugging with 'sh -x'.
12681 * util/grub-mkrescue.in: Likewise.
12682 * util/grub.d/00_header.in: Likewise.
12683 * util/grub.d/10_hurd.in: Likewise.
12684 * util/grub.d/10_kfreebsd.in: Likewise.
12685 * util/grub.d/10_linux.in: Likewise.
12686 * util/grub.d/10_netbsd.in: Likewise.
12687 * util/grub.d/10_windows.in: Likewise.
12688 * util/grub.d/20_linux_xen.in: Likewise.
12689 * util/grub.d/30_os-prober.in: Likewise.
12690 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12692 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
12694 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
12695 last character in the buffer.
12696 Reported by: Vladimir Serbinenko.
12698 2010-06-29 Robert Millan <rmh@gnu.org>
12700 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
12701 (Command-line and menu entry commands): Document `badram' command.
12703 2010-06-28 Robert Millan <rmh@gnu.org>
12705 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
12706 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
12707 command using ${GRUB_BADRAM} as parameter.
12709 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12711 * docs/grub.texi (Device map): New section.
12712 (Themes): New section (stub).
12713 * Makefile.in (docs/grub.info): The info documentation now builds
12714 without errors. Make sure it stays that way.
12716 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12718 Use normal parser for menu entries.
12719 Reported by: Thomas Frauendorfer
12721 * include/grub/parser.h (grub_parser_execute): Don't export.
12722 * normal/menu.c (grub_menu_execute_entry_real): New function.
12723 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
12725 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12727 * docs/grub.texi (Embedded configuration): New section (replacing
12728 old "Preset Menu" stub).
12729 (Images): New section.
12730 (configfile): Note that any menu entries defined in `file' are shown
12733 2010-06-28 Josh Triplett <josh@joshtriplett.org>
12735 * mmap/i386/pc/mmap_helper.S: Set CF on return.
12737 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12739 * util/grub-install.in: Add --debug-image= option.
12741 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12743 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
12746 * util/deviceiter.c (check_device): Rename to ...
12747 (check_device_readable_unique): ... this. Update all callers.
12748 Maintain and check a list of which devices (by canonicalized name)
12749 have already been seen.
12750 (clear_seen_devices): New function.
12751 (compare_file_names) [__linux__]: New function.
12752 (grub_util_iterate_devices): Clear the list of seen devices on exit
12753 and (just in case) on entry.
12754 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
12755 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
12756 seen-devices list, superseded by general code in check_device.
12758 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12760 * commands/cat.c (options): New variable.
12761 (grub_cmd_cat): Parse options. If the --dos option is given, print
12762 DOS-style "\r\n" line endings as simple newlines (Debian bug
12764 (GRUB_MOD_INIT): Use extcmd.
12765 (GRUB_MOD_FINI): Likewise.
12766 * docs/grub.texi (cat): Document --dos.
12768 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12770 XEN with Linux grub-mkconfig support.
12772 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
12773 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
12774 GRUB_CMDLINE_XEN_DEFAULT.
12775 * util/grub.d/20_linux_xen.in: New file.
12777 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12779 Initialise VGA video on qemu ourselves.
12781 * boot/i386/qemu/boot.S: Don't call 0xc000.
12782 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
12783 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
12784 (kernel_img_HEADERS): Add pci.h.
12785 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
12786 * configure.ac: Force unifont on qemu and yeeloong.
12787 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
12788 (grub_vga_palette_write): Use correct register.
12789 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
12790 Call grub_qemu_init_cirrus.
12791 * kern/i386/qemu/init.c: New file.
12792 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
12794 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
12796 2010-06-26 Pavel Roskin <proski@gnu.org>
12798 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
12801 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
12803 * docs/grub.texi (Simple configuration): Explain that
12804 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
12805 set to `true' to disable their respective recovery entries, not
12808 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
12810 Make the `source' command slightly faster.
12812 * normal/main.c (grub_normal_execute): Don't re-read list files when
12815 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
12817 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
12818 field position and mask size to red fields from mode_info, not
12820 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
12821 Remove redundant tag->common.framebuffer_type assignment.
12822 Reported by: Seth Goldberg.
12824 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
12826 Sync up other versions of the Linux loader with Robert Millan's
12827 change of 2010-01-09, "Make loader output a bit more user-friendly".
12829 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
12831 (grub_cmd_linux): Likewise.
12832 (grub_cmd_initrd): Likewise.
12833 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
12834 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12836 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
12838 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
12839 larger than MEMORY_MAP_SIZE.
12841 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
12843 Fix parallel build.
12845 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
12847 * script/parser.y: #include grub_script.tab.h header.
12849 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12851 Support >3GiB and <16MiB RAM in i386-qemu.
12853 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
12854 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
12855 (grub_lower_mem): Removed.
12856 (grub_upper_mem): Likewise.
12857 (mem_size): Made static.
12858 (above_4g): New variable.
12859 (grub_machine_mmap_init): Detect small mem_size and above_4g.
12860 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
12863 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12865 Cirrus 5446 and Bochs video cards support.
12867 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
12869 (video_cirrus_mod_SOURCES): New variable.
12870 (video_cirrus_mod_CFLAGS): Likewise.
12871 (video_cirrus_mod_LDFLAGS): Likewise.
12872 (video_bochs_mod_SOURCES): Likewise.
12873 (video_bochs_mod_CFLAGS): Likewise.
12874 (video_bochs_mod_LDFLAGS): Likewise.
12875 * include/grub/vga.h: New file.
12876 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
12877 (grub_video_fb_set_page_t): New type.
12878 (grub_video_fb_setup): New prototype.
12879 (grub_video_fb_swap_buffers): Likewise.
12880 (grub_video_fb_get_info_and_fini): Likewise.
12881 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
12882 (CRTC_DATA_PORT): Likewise.
12883 (CRTC_CURSOR): Likewise.
12884 (CRTC_CURSOR_ADDR_HIGH): Likewise.
12885 (CRTC_CURSOR_ADDR_LOW): Likewise.
12886 (CRTC_CURSOR_DISABLE): Likewise.
12887 (update_cursor): Use grub_vga_cr_write.
12888 (grub_vga_text_setcursor): Likewise.
12889 * video/bochs.c: New file.
12890 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
12891 (palette): Likewise.
12892 (palette_size): Likewise.
12893 (framebuffer): New variable.
12894 (grub_video_fb_init): Use 'framebuffer'.
12895 (grub_video_fb_fini): Likewise.
12896 (grub_video_fb_get_info): Likewise.
12897 (grub_video_fb_get_palette): Likewise.
12898 (grub_video_fb_set_palette): Likewise.
12899 (grub_video_fb_set_viewport): Likewise.
12900 (grub_video_fb_get_viewport): Likewise.
12901 (grub_video_fb_map_color): Likewise.
12902 (grub_video_fb_map_rgb): Likewise.
12903 (grub_video_fb_map_rgba): Likewise.
12904 (grub_video_fb_unmap_color): Likewise.
12905 (grub_video_fb_unmap_color_int): Likewise.
12906 (grub_video_fb_fill_rect): Likewise.
12907 (grub_video_fb_blit_bitmap): Likewise.
12908 (grub_video_fb_blit_render_target): Likewise.
12909 (grub_video_fb_scroll): Likewise.
12910 (grub_video_fb_create_render_target): Likewise.
12911 (grub_video_fb_doublebuf_blit_init): Likewise.
12912 (grub_video_fb_set_active_render_target): Handle doublebuffering.
12913 (doublebuf_pageflipping_update_screen): New function.
12914 (doublebuf_pageflipping_init): Likewise.
12915 (grub_video_fb_setup): Likewise.
12916 (grub_video_fb_swap_buffers): Likewise.
12917 (grub_video_fb_get_info_and_fini): Likewise.
12918 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
12920 (doublebuf_pageflipping_commit): Restructured into ...
12921 (doublebuf_pageflipping_set_page): ... this.
12922 (doublebuf_pageflipping_update_screen): Removed.
12923 (doublebuf_pageflipping_init): Likewise.
12924 (double_buffering_init): Likewise.
12925 (grub_video_vbe_setup): Use grub_video_fb_setup.
12926 (grub_video_vbe_swap_buffers): Removed.
12927 (grub_video_vbe_set_active_render_target): Likewise.
12928 (grub_video_vbe_get_active_render_target): Likewise.
12929 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
12930 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
12931 grub_video_fb_set_active_render_target and
12932 grub_video_fb_get_active_render_target.
12933 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
12934 (SEQUENCER_DATA_PORT): Likewise.
12935 (MAP_MASK_REGISTER): Likewise.
12936 (CRTC_ADDR_PORT): Likewise.
12937 (CRTC_DATA_PORT): Likewise.
12938 (START_ADDR_HIGH_REGISTER): Likewise.
12939 (START_ADDR_LOW_REGISTER): Likewise.
12940 (GRAPHICS_ADDR_PORT): Likewise.
12941 (GRAPHICS_DATA_PORT): Likewise.
12942 (READ_MAP_REGISTER): Likewise.
12943 (INPUT_STATUS1_REGISTER): Likewise.
12944 (INPUT_STATUS1_VERTR_BIT): Likewise.
12945 (get_map_mask): Use grub_vga_sr_read.
12946 (set_map_mask): Use grub_vga_sr_write.
12947 (set_read_map): Use grub_vga_gr_write.
12948 (set_start_address): Use grub_vga_cr_write.
12949 * video/sm712.c (framebuffer): Remove leftover fields.
12951 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
12953 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
12954 setting GRUB_VIDEO_BACKEND. Make it available as a user override
12955 instead. Replace the gfxterm backend check with a check that
12956 ${GRUB_PREFIX}/video.lst is non-empty.
12957 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
12959 (load_video): New generated function. Call it before loading
12960 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
12961 * util/grub.d/10_linux.in (linux_entry): Call load_video.
12962 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
12963 * docs/grub.texi (Simple configuration): Document
12964 GRUB_VIDEO_BACKEND.
12966 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12968 Use video functions in linux and xnu loaders.
12970 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
12971 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
12972 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
12973 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
12974 loader/i386/pc/linux.c.
12975 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
12976 (find_line_len): Removed.
12977 (find_framebuf): Likewise.
12978 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
12979 * loader/i386/efi/xnu.c: Removed.
12980 * loader/i386/pc/xnu.c: Moved from here...
12981 * loader/i386/xnu.c: ...here.
12983 Enable priorities in video drivers.
12985 * include/grub/video.h (grub_video_adapter_prio_t): New type.
12986 (grub_video_adapter): New field prio.
12987 (grub_video_register): Respect prio when inserting.
12988 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
12989 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
12990 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
12991 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
12992 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
12993 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
12994 * video/sm712.c (grub_video_sm712_adapter): Likewise.
12998 * include/grub/video.h (grub_video_driver_id_t): New value
12999 GRUB_VIDEO_DRIVER_SDL.
13000 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
13002 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13004 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
13005 argument to printf.
13006 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
13008 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13010 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
13011 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
13013 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13015 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
13016 directly, and recommend grub-install instead.
13017 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
13019 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13021 Fix i386-pc prefix handling with nested partitions (Debian bug
13022 #585068). Note that the case where the core image is booted using
13023 multiboot and relocated from its original location still requires
13026 * kern/i386/pc/init.c (make_install_device): If the prefix starts
13027 with "(,", fill the boot drive in between those two characters, but
13028 expect that a full partition specification including partition map
13030 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
13031 specified, write a prefix without the drive name but including a
13032 full partition specification.
13034 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
13036 * util/grub-mkconfig.in: Ignore non-option arguments, for
13037 compatibility with older versions (before 2010-06-12) which did the
13038 same. In particular, this makes it easier to ship an update-grub
13039 wrapper which is compatible with that used with GRUB Legacy (Debian
13042 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
13044 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
13045 for manual page generation.
13047 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
13049 * po/POTFILES: Remove leftover commands/handler.c.
13051 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
13053 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
13054 left this script non-functional.
13056 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
13058 * docs/man/grub-emu.h2m: New file.
13060 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
13062 * docs/grub.texi (Commands): Document reduced command set in rescue
13064 (cpuid): New section.
13066 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
13068 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
13069 new partition naming style.
13070 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
13072 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
13074 Add "-o grub.iso" like cmdline options support.
13076 * util/grub-install.in: Improve cmdline option parsing.
13077 * util/grub-mkconfig.in: Likewise.
13078 * util/grub-mkrescue.in: Likewise.
13079 * util/grub-reboot.in: Likewise.
13080 * util/grub-set-default.in: Likewise.
13081 * util/i386/efi/grub-install.in: Likewise.
13082 * util/ieee1275/grub-install.in: Likewise.
13083 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13085 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13087 * .bzrignore: Ignore 41_custom.
13089 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
13091 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
13093 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13095 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
13096 prototype declarations.
13098 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
13099 generating fs, partmap, and video lists.
13100 * include/grub/fs.h (grub_fs_register): Omit prototype if
13101 GRUB_LST_GENERATOR is defined.
13102 * include/grub/partition.h (grub_partition_map_register): Likewise.
13103 * include/grub/video.h (grub_video_register): Likewise.
13105 2010-06-12 Javier Martín <lordhabbit@gmail.com>
13107 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
13109 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
13111 * util/grub-mkrescue.in: Support --xorriso argument.
13113 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13115 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
13116 Suggested by: Thomas Schmitt.
13118 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13120 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
13121 Suggested by: Thomas Schmitt.
13123 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13125 custom.cfg support.
13127 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
13128 * util/grub.d/41_custom.in: New file.
13130 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13132 * util/grub-mkrescue.in (make_image): Remove sh module, which has
13133 been merged back into normal.
13135 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
13137 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
13138 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
13140 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
13142 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
13143 when generating manual pages.
13144 * docs/man/grub-bin2h.h2m: New file.
13145 * docs/man/grub-editenv.h2m: New file.
13146 * docs/man/grub-fstest.h2m: New file.
13147 * docs/man/grub-install.h2m: New file.
13148 * docs/man/grub-macho2img.h2m: New file.
13149 * docs/man/grub-mkconfig.h2m: New file.
13150 * docs/man/grub-mkdevicemap.h2m: New file.
13151 * docs/man/grub-mkfont.h2m: New file.
13152 * docs/man/grub-mkimage.h2m: New file.
13153 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
13154 * docs/man/grub-mkrelpath.h2m: New file.
13155 * docs/man/grub-mkrescue.h2m: New file.
13156 * docs/man/grub-ofpathname.h2m: New file.
13157 * docs/man/grub-pe2elf.h2m: New file.
13158 * docs/man/grub-probe.h2m: New file.
13159 * docs/man/grub-reboot.h2m: New file.
13160 * docs/man/grub-script-check.h2m: New file.
13161 * docs/man/grub-set-default.h2m: New file.
13162 * docs/man/grub-setup.h2m: New file.
13164 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
13166 Use FOR_* macros instead of *_iterate whenever possible.
13168 * commands/handler.c: Removed.
13169 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
13170 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
13171 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13172 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
13173 (grub_probe_SOURCES): Remove kern/parser.c.
13174 (util/grub-script-check.c_DEPENDENCIES): Removed.
13175 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
13176 and grub_script_check_init.c.
13177 (grub_script_check_init.lst): Removed.
13178 (grub_script_check_init.h): Likewise.
13179 (grub_script_check_init.c): Likewise.
13180 (pkglib_MODULES): Remove handler.mod and sh.mod.
13181 (handler_mod_SOURCES): Removed.
13182 (handler_mod_CFLAGS): Likewise.
13183 (handler_mod_LDFLAGS): Likewise.
13184 (normal_mod_SOURCES): Remove normal/handler.c.
13185 Add script/main.c, script/script.c, script/execute.c,
13186 script/function.c, script/lexer.c, grub_script.tab.c
13187 and grub_script.yy.c.
13188 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13189 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13190 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
13191 (grub_setup_SOURCES): Remove kern/parser.c.
13192 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13193 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
13194 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
13195 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13196 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13197 (grub_setup_SOURCES): Remove kern/parser.c.
13198 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13199 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
13200 * include/grub/command.h (grub_command_iterate): Removed.
13201 (FOR_COMMANDS): New macro.
13202 * include/grub/dl.h (grub_dl): New member next.
13203 (grub_dl_iterate): Removed.
13204 (grub_dl_head): New variable declaration.
13205 (FOR_DL_MODULES): New macro.
13206 * include/grub/fs.h: Include list.h.
13207 (grub_fs): Make next first element.
13208 (grub_fs_list): New variable declaration.
13209 (grub_fs_register): Make inline.
13210 (grub_fs_unregister): Likewise.
13211 (grub_fs_iterate): Removed.
13212 (FOR_FILESYSTEMS): New macro.
13213 * include/grub/handler.h: Removed.
13214 * include/grub/list.h (grub_list_hook_t): Removed.
13215 (grub_list_test_t): Likewise.
13216 (grub_list_pop): Likewise.
13217 (grub_list_iterate): Likewise.
13218 (grub_list_insert): Likewise.
13219 (FOR_LIST_ELEMENTS): New macro.
13220 * include/grub/parser.h (grub_parser_class): Removed.
13221 (grub_parser_register): Likewise.
13222 (grub_parser_unregister): Likewise.
13223 (grub_parser_get_current): Likewise.
13224 (grub_parser_set_current): Likewise.
13225 (grub_register_rescue_parser): Likewise.
13226 (grub_rescue_parse_line): New function.
13227 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
13228 * include/grub/script_sh.h (grub_script_function_list): New variable
13230 (FOR_SCRIPT_FUNCTIONS): New macro.
13231 (grub_script_function_iterate): Removed.
13232 (grub_normal_parse_line): New prototype.
13233 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
13234 (FOR_DISABLED_TERM_INPUTS): Likewise.
13235 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
13236 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
13237 * include/grub/video.h (grub_video_adapter): Move 'next' to first
13239 (grub_video_register): Inline.
13240 (grub_video_unregister): Likewise.
13241 (grub_video_adapter_list): New variable declaration.
13242 (grub_video_iterate): Removed.
13243 (FOR_VIDEO_ADAPTERS): New macro.
13244 * kern/dl.c (grub_dl_list): Removed. All users updated.
13245 (grub_dl_iterate): Removed.
13246 * kern/fs.c (grub_fs_list): Make global.
13247 (grub_fs_register): Removed.
13248 (grub_fs_unregister): Likewise.
13249 (grub_fs_iterate): Likewise.
13250 * kern/handler.c: Removed.
13251 * kern/list.c (grub_list_pop): Removed.
13252 (grub_list_iterate): Likewise.
13253 (grub_list_insert): Likewise.
13254 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
13255 (grub_prio_list_insert): Don't use grub_list_insert.
13256 * kern/main.c (grub_register_rescue_parser): Don't call
13257 grub_register_rescue_parser.
13258 * kern/parser.c (grub_parser_class): Removed.
13259 (grub_parser_execute): Use grub_rescue_parse_line.
13260 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
13261 (grub_rescue_parser): Removed.
13262 (grub_register_rescue_parser): Likewise.
13263 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
13264 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
13265 (grub_auth_check_authentication): Likewise.
13266 * normal/completion.c (iterate_command): Removed.
13267 (grub_normal_do_completion): Use FOR_COMMANDS.
13268 * normal/handler.c: Removed.
13269 * normal/main.c (read_config_file): Remove parser changing.
13270 (grub_normal_execute): Don't call read_handler_list.
13271 (grub_normal_read_line_real): Statically allocate prompt.
13272 (grub_cmdline_run): Use grub_normal_parse_line.
13273 (GRUB_MOD_FINI): Don't call free_handler_list.
13274 * normal/menu_entry.c (run): Likewise.
13275 * script/function.c (grub_script_function_list): Make global.
13276 (grub_script_function_iterate): Removed.
13277 * script/main.c (grub_normal_parse_line): Make global.
13278 (grub_sh_parser): Removed.
13279 (GRUB_MOD_INIT): Likewise.
13280 (GRUB_MOD_FINI): Likewise.
13281 * tests/lib/functional_test.c (grub_functional_test): Use
13283 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
13284 (grub_test_run): Use FOR_LIST_ELEMENTS.
13285 * tests/lib/unit_test.c (main): Likewise.
13286 * util/deviceiter.c (grub_util_iterate_devices): Don't use
13288 * util/grub-fstest.c (grub_term_input_class): Removed.
13289 (grub_term_output_class): Likewise.
13290 * util/grub-probe.c: Likewise.
13291 * util/i386/pc/grub-setup.c: Likewise.
13292 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13293 * util/grub-script-check.c (main): Don't call grub_init_all and
13295 * video/video.c (grub_video_adapter_list): Make global.
13296 (grub_video_register): Removed.
13297 (grub_video_unregister): Likewise.
13298 (grub_video_iterate): Likewise.
13300 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
13302 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
13303 reported by Henrique Ferreiro.
13305 2010-06-09 Robert Millan <rmh@gnu.org>
13307 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
13308 ones, when both are available.
13310 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13312 Make --version uniform and avoid hard-coded program name.
13314 * util/grub-mkimage.c (main): Use `program_name' instead of
13316 * util/i386/pc/grub-setup.c (main): Likewise.
13317 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
13318 * util/grub-install.in: Save the basename of $0 in $self, and use the
13319 latter in informational messages. Use the same format for --version
13320 as the binary programs.
13321 * util/grub-mkconfig.in: Likewise.
13322 * util/grub-mkrescue.in: Likewise.
13323 * util/grub-reboot.in: Likewise.
13324 * util/grub-set-default.in: Likewise.
13325 * util/i386/efi/grub-install.in: Likewise.
13326 * util/ieee1275/grub-install.in: Likewise.
13327 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13329 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13331 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
13332 embedding area. Use <= instead of == when checking for non-emptiness.
13334 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13336 * configure.ac: Add `.' to the directories searched for unifont.
13338 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13340 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
13343 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13345 * docs/grub.texi (History): Expand to cover GRUB 2.
13346 (Serial terminal): Refer to `terminal_input' and `terminal_output'
13347 commands, not `terminal'.
13348 (serial): Likewise.
13349 (terminal_input): New section.
13350 (terminal_output): New section.
13351 (uppermem): New section (stub).
13352 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
13354 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13356 * docs/grub.texi (Security): Menu entries are unrestricted by
13357 default, not restricted to superusers as I had previously thought.
13358 Reword to account for this.
13360 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13362 * kern/emu/misc.c (device_mapper_null_log): New function.
13363 (grub_device_mapper_supported): New function.
13364 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
13366 * kern/emu/hostdisk.c (find_partition_start): Check whether
13367 device-mapper is supported before trying to use it.
13368 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
13370 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13372 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
13373 (File name syntax): Likewise.
13374 (help): --all is no longer supported in GRUB 2. Be more precise
13375 about pattern matching.
13377 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13379 * normal/completion.c (grub_normal_do_completion): When completing
13380 arguments to "set" and the current word contains an equals sign,
13381 skip to after the equals sign before starting completion.
13383 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13385 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
13387 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13389 * docs/grub.texi (Network): New section.
13390 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
13391 `(nd)' as in GRUB Legacy.
13392 (pxe_unload): New section.
13394 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13396 * docs/grub.texi (Troubleshooting): `echo' is not usually available
13397 in the rescue shell, so recommend using `set' instead. Thanks,
13400 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13402 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
13403 (password): New section.
13404 (password_pbkdf2): New section.
13405 (search): New section.
13406 (Security): New section.
13407 (Troubleshooting): New section, currently very incomplete.
13408 (Invoking grub-mkpasswd-pbkdf2): New section.
13409 (Internals): New section, currently very incomplete.
13411 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13413 * util/grub.d/00_header.in: Add some more quoting (of
13414 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
13416 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
13418 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13420 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
13421 to `count', fixing variable shadowing that broke the -c option.
13423 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
13425 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
13426 in case they contain spaces.
13428 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
13430 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
13431 "part_" to partmap module names, in line with grub-install.
13432 Reported by: Jindřich Makovička (Debian bug #584426).
13434 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
13436 * util/grub-mkimage.c: Make target-related error messages slightly
13437 more helpful; -O talks about "format". Explicitly point to the use
13438 of -O if no target is specified.
13439 Reported by: Didier Raboud (Debian bug #584415).
13441 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
13443 * INSTALL: Document several build requirements for optional features
13444 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
13446 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
13448 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
13449 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
13450 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
13452 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13454 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
13455 Thanks to Jordan Uggla for spotting this.
13457 2010-06-02 Aleš Nesrsta <starous@volny.cz>
13459 Finally make USB usable.
13461 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
13462 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
13463 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
13464 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
13465 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
13466 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
13467 (GRUB_OHCI_FSMPS): Likewise.
13468 (GRUB_OHCI_PERIODIC_START): Likewise.
13469 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
13470 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
13471 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
13472 (GRUB_OHCI_SET_PORT_RESET): Likewise.
13473 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
13474 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
13475 (grub_ohci_transaction): Likewise.
13476 (grub_ohci_transfer): Improve condition detection algorithms.
13477 Handle toggle property. Program the transactions correctly.
13478 Improve error handling. Various important fixups.
13479 (grub_ohci_portstatus): Put register writes in right order.
13480 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
13481 (grub_uhci_transfer): Don't show "failed" message on success.
13482 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
13484 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
13485 determine its size.
13486 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
13487 before initialization is completed. Use IN direction for empty
13488 transfers. Use last_trans and compute toggle.
13489 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
13490 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
13491 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
13492 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
13493 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
13494 (grub_usb_device): Increase toggle to 256.
13495 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
13496 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
13497 GRUB_USBMS_SUBCLASS_SFF8070.
13498 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
13499 (grub_scsi_inquiry): New member page and alloc_length.
13500 (grub_scsi_request_sense): New structure.
13501 (grub_scsi_request_sense_data): Likewise.
13502 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
13504 * disk/scsi.c (grub_scsi_request_sense): New function.
13505 (grub_scsi_test_unit_ready): Likewise.
13506 (grub_scsi_inquiry): Fill new fields.
13507 (grub_scsi_read_capacity): Likewise.
13508 (grub_scsi_read10): Add request sense at the end.
13509 (grub_scsi_read12): Likewise.
13510 (grub_scsi_write10): Likewise.
13511 (grub_scsi_write12): Likewise.
13512 (grub_scsi_open): Add Test Unit Ready.
13513 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
13514 Support additional subclasses. Con't clear halt yet. Activate the
13515 proper config. Calculate LUNs correctly.
13516 (grub_usbms_transfer): Various important fixups.
13518 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13520 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
13521 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
13522 (grub_ohci_fini_hw): New function.
13523 (grub_ohci_restore_hw): Likewise.
13524 (GRUB_MOD_INIT(ohci)): Register preboot hook.
13525 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
13526 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
13528 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13530 Dedicated DMA allocations.
13532 * bus/pci.c (grub_memalign_dma32): New function
13533 (grub_dma_free): Likewise.
13534 (grub_dma_get_virt): Likewise.
13535 (grub_dma_get_phys): Likewise.
13536 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
13537 (grub_ohci_pci_iter): Use dma32_alloc.
13538 (grub_ohci_transfer): Likewise.
13539 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
13540 (grub_usb_bulk_readwrite): Likewise.
13541 * include/grub/pci.h: Add declarations.
13543 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13547 * bus/cs5536.c: New file.
13548 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
13549 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
13550 (cs5536_mod_SOURCES): New variable.
13551 (cs5536_mod_CFLAGS): Likewise.
13552 (cs5536_mod_LDFLAGS): Likewise.
13553 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
13555 (kernel_img_SOURCES): Add bus/cs5536.c.
13556 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
13558 (usb_mod_SOURCES): New variable.
13559 (usb_mod_CFLAGS): New variable.
13560 (usb_mod_LDFLAGS): New variable.
13561 (usbtest_mod_SOURCES): New variable.
13562 (usbtest_mod_CFLAGS): New variable.
13563 (usbtest_mod_LDFLAGS): New variable.
13564 (ohci_mod_SOURCES): New variable.
13565 (ohci_mod_CFLAGS): New variable.
13566 (ohci_mod_LDFLAGS): New variable.
13567 (usbms_mod_SOURCES): New variable.
13568 (usbms_mod_CFLAGS): New variable.
13569 (usbms_mod_LDFLAGS): New variable.
13570 (usb_keyboard_mod_SOURCES): New variable.
13571 (usb_keyboard_mod_CFLAGS): New variable.
13572 (usb_keyboard_mod_LDFLAGS): New variable.
13573 * include/grub/smbus.h: New file.
13574 * include/grub/cs5536.h: New file.
13576 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13578 * util/grub.d/00_header.in: Add safety check to make sure that
13579 ${locale_dir} exists before trying to probe it.
13581 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13583 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
13584 per the GNU Coding Standards; this is now too obscure to be worth
13587 (chainloader): Remove cross-reference to `SCO UnixWare'.
13589 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13591 * docs/grub.texi (Chain-loading): New section.
13592 (DOS/Windows): New section, borrowed from GRUB Legacy with details
13593 adjusted for GRUB 2.
13594 (SCO UnixWare): Likewise.
13596 (chainloader): Add reference to `Block list syntax'.
13597 (drivemap): New section.
13598 (parttool): New section.
13600 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13602 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
13604 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
13605 (Installing GRUB using grub-install): Remove reference to the grub
13606 shell; mention `grub-mkimage' and `grub-setup' instead.
13607 (Invoking grub-install): Likewise.
13608 (Interface): Add reference to `Menu entry editor'.
13609 (serial): Remove `--device' option.
13611 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13613 * docs/grub.texi (Configuration): New section, documenting
13614 configuration file generation using grub-mkconfig. I've left a slot
13615 for documenting the full shell scripting format but have not yet
13616 started on writing that up.
13617 (Invoking grub-mkconfig): New section.
13619 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13621 * docs/grub.texi (direntry): Remove grub-terminfo reference.
13622 (GNU GRUB manual): Likewise.
13623 (General commands): Update description of `terminfo' for GRUB 2.
13625 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13627 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
13628 (GRUB_MOD_INIT): Fix capitalisation.
13629 * docs/grub.texi (Command-line and menu entry commands): Document
13630 gettext and gptsync commands.
13632 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13634 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
13635 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
13637 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
13639 Add btrfs probing support, currently only in the single-device case.
13641 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
13643 (grub_guess_root_device): Call find_root_device_from_mountinfo
13644 before looking in /dev.
13646 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13648 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
13649 GRUB_DISK_SIZE_UNKNOWN.
13650 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
13652 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
13654 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
13655 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
13656 corrupted or not synced properly.
13658 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13660 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
13661 Reported by: Seth Goldberg.
13663 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13665 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
13667 Reported by: Seth Goldberg.
13669 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13671 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
13672 Reported by: Seth Goldberg.
13674 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13676 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
13677 64-bit address as signed on MIPS.
13679 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
13681 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
13682 to the empty string.
13684 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
13686 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
13688 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
13689 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
13690 * kern/misc.c (__enable_execute_stack): Disable on
13693 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
13695 Make grub-probe work with symbolic links under /dev/mapper as well
13696 as with real block devices. The Linux world seems to be (at best)
13697 in transition here, and GRUB shouldn't get caught in the middle.
13699 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
13702 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13704 * util/grub-script-check.c (main): Ensure defined behaviour on empty
13705 input files (in which case exit zero).
13707 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13709 * kern/emu/misc.c (canonicalize_file_name): realpath can still
13710 return NULL for various reasons even if it has a maximum-length
13711 buffer: for example, there might be a symlink loop, or the path
13712 might exceed PATH_MAX. If this happens, return NULL.
13714 2010-05-27 Robert Millan <rmh@gnu.org>
13716 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
13717 partmap module to handle cross-partmap setups.
13718 Reported by Orestes Mas. Gràcies!
13720 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13722 * util/grub-mkrescue.in: Initialise override_dir rather than
13723 assuming that it's unset or empty in the environment.
13725 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
13727 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
13728 variable index into p_index to suppress a warning with -Wshadow.
13730 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
13732 * INSTALL: Added flex >= 2.5.35 requirement.
13734 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13736 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
13738 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13742 * commands/i386/cmostest.c: New file.
13743 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
13744 (cmostest_mod_SOURCES): New variable.
13745 (cmostest_mod_CFLAGS): Likewise.
13746 (cmostest_mod_LDFLAGS): Likewise.
13747 * conf/i386-pc.rmk: Likewise.
13748 * docs/grub.texi (Vendor power-on keys): New section.
13749 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
13750 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
13751 and GRUB_BUTTON_CMOS_ADDRESS.
13752 * util/grub.d/00_header.in: Handle powering-on by separate button.
13754 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13756 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
13757 Removed drawing_scrollbar argument. All users updated
13759 Reported by Jo Shields
13761 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13763 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
13764 buffer since gfxterm handles double repaint.
13766 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13768 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
13769 * term/gfxterm.c (real_scroll): Likewise.
13771 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13773 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
13774 before calling BIOS.
13776 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13778 * include/grub/i18n.h: Always enable grub_gettext.
13780 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13782 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
13783 partition naming style.
13785 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
13787 * util/grub-mkconfig.in: Fix handling of -o so that it works when
13788 not the first option.
13790 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
13792 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
13794 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
13796 * util/misc.c: Move inclusion of <limits.h> to ...
13797 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
13799 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
13801 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
13802 Fix merge error in NetBSD code.
13803 (find_partition_start) [__NetBSD__]: Likewise.
13805 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
13807 Fix grub-mkrescue usage unit testing.
13809 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
13811 2010-05-18 Christian Franke <franke@computer.org>
13813 * util/grub.d/10_windows.in: Use path names instead of
13814 drive letters to prevent warning from Cygwin 1.7.
13815 Add drivemap command to menuentry if needed.
13817 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
13819 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
13820 gnumach and gnumach.gz.
13822 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13824 * include/grub/i18n.h (gettext): Inline instead of using #define.
13825 (grub_gettext): Likewise.
13828 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13830 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
13831 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
13832 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
13833 (main): Add a slash after pkglibdirroot.
13835 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13837 * util/grub-install.in: Add missing "in" keyword.
13839 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13841 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
13842 Reported by: Seth Goldberg.
13844 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13846 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
13848 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13850 * configure.ac: Check for Linux device-mapper support.
13852 * util/hostdisk.c (device_is_mapped): New function.
13853 (find_partition_start): New function, partly broken out from
13854 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
13855 device-mapper support added.
13856 (linux_find_partition): Use find_partition_start.
13857 (convert_system_partition_to_system_disk): Add `st' argument.
13858 Support Linux /dev/mapper/* devices if device-mapper support is
13859 available; only DM-RAID devices are understood at present.
13860 (find_system_device): Add `st' argument. Pass it to
13861 convert_system_partition_to_system_disk.
13862 (grub_util_biosdisk_get_grub_dev): Pass stat result to
13863 find_system_device and convert_system_partition_to_system_disk. Use
13864 find_partition_start.
13866 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
13867 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
13868 * util/deviceiter.c [__linux__]: Define MINOR.
13869 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
13870 * util/mkdevicemap.c (grub_putchar): New function.
13871 (grub_getkey): New function.
13872 (grub_refresh): New function.
13873 (main): Set debug=all if -v -v is used.
13875 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13877 Fix build with non-GNU libcs.
13879 * util/misc.c (canonicalize_file_name): Move to ...
13880 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
13881 grub_make_system_path_relative_to_its_root.
13883 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13885 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
13886 we handle finding grub-mkimage. Default to finding grub-mkimage in
13887 ${bindir} with program_transform_name applied, and provide a
13888 --grub-mkimage option to override this.
13890 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13892 Remove grub-mkisofs.
13894 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
13895 (grub_mkisofs_SOURCES): Removed.
13896 (grub_mkisofs_CFLAGS): Removed.
13897 * util/mkisofs/defaults.h: Removed.
13898 * util/mkisofs/eltorito.c: Likewise.
13899 * util/mkisofs/exclude.h: Likewise.
13900 * util/mkisofs/hash.c: Likewise.
13901 * util/mkisofs/include/: Likewise.
13902 * util/mkisofs/include/fctldefs.h: Likewise.
13903 * util/mkisofs/include/mconfig.h: Likewise.
13904 * util/mkisofs/include/prototyp.h: Likewise.
13905 * util/mkisofs/include/statdefs.h: Likewise.
13906 * util/mkisofs/iso9660.h: Likewise.
13907 * util/mkisofs/joliet.c: Likewise.
13908 * util/mkisofs/match.c: Likewise.
13909 * util/mkisofs/match.h: Likewise.
13910 * util/mkisofs/mkisofs.c: Likewise.
13911 * util/mkisofs/mkisofs.h: Likewise.
13912 * util/mkisofs/msdos_partition.h: Likewise.
13913 * util/mkisofs/multi.c: Likewise.
13914 * util/mkisofs/name.c: Likewise.
13915 * util/mkisofs/rock.c: Likewise.
13916 * util/mkisofs/tree.c: Likewise.
13917 * util/mkisofs/write.c: Likewise.
13919 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13921 Unify grub-mkimage accross platforms.
13923 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
13924 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
13925 (grub_mkelfimage_SOURCES): Removed.
13926 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
13927 (util/grub-mkimage.c_DEPENDENCIES): .. this.
13928 (bin_UTILITIES): Add grub-mkimage.
13929 (grub_mkimage_SOURCES): New variable.
13930 (kernel_img_HEADERS): Remove machine/kernel.h.
13931 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
13932 (pkglib_PROGRAMS): Add kernel.img.
13933 (kernel_img_HEADERS): Add machine/kernel.h.
13934 (kernel_img_FORMAT): Removed.
13935 (bin_UTILITIES): Remove grub-mkimage.
13936 (grub_mkimage_SOURCES): Removed.
13937 (grub_mkimage_CFLAGS): Likewise.
13938 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13939 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
13940 (pkglib_PROGRAMS): Add kernel.img.
13941 (bin_UTILITIES): Remove grub-mkimage.
13942 (grub_mkimage_SOURCES): Removed.
13943 (grub_mkimage_CFLAGS): Likewise.
13944 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13945 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
13946 (pkglib_PROGRAMS): Add kernel.img.
13947 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
13948 (pkglib_PROGRAMS): Add kernel.img.
13949 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
13950 (grub_mkimage_SOURCES): Removed.
13951 (grub_mkimage_CFLAGS): Likewise.
13952 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13953 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
13954 (pkglib_PROGRAMS): Add kernel.img.
13955 (bin_UTILITIES): Remove grub-mkimage.
13956 (grub_mkimage_SOURCES): Removed.
13957 (grub_mkimage_CFLAGS): Likewise.
13958 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13959 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
13960 (grub_mkimage_SOURCES): Removed.
13961 (grub_mkimage_CFLAGS): Likewise.
13962 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13963 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
13964 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
13965 (grub_pe32_optional_header): ... this.
13966 (grub_pe64_optional_header): ... and this. All users updated.
13967 (GRUB_PE32_PE32_MAGIC): Split into ..
13968 (GRUB_PE32_PE32_MAGIC): .. this.
13969 (GRUB_PE32_PE64_MAGIC): .. and this.
13970 (GRUB_PE32_SIGNATURE_SIZE): New definition.
13971 * include/grub/elf.h (PT_GNU_STACK): New definition.
13972 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
13973 * include/grub/i386/efi/kernel.h: Likewise.
13974 * include/grub/i386/kernel.h: Likewise.
13975 * include/grub/i386/pc/kernel.h: Likewise.
13976 * include/grub/i386/qemu/boot.h: Likewise.
13977 * include/grub/mips/kernel.h: Likewise.
13978 * include/grub/mips/qemu-mips/kernel.h: Likewise.
13979 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13980 * include/grub/powerpc/kernel.h: Likewise.
13981 * include/grub/sparc64/ieee1275/boot.h: Likewise.
13982 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13983 * include/grub/sparc64/kernel.h: Likewise.
13984 * include/grub/x86_64/efi/kernel.h: Likewise.
13985 * include/grub/x86_64/kernel.h: Likewise.
13986 * include/grub/offsets.h: New file.
13987 * include/grub/kernel.h (grub_module_info): Split into ...
13988 (grub_module_info32): ... this.
13989 (grub_module_info64): ... and this.
13990 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
13991 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
13992 (grub_boot_blocklist): Moved from here ...
13993 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
13994 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
13995 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
13996 * include/grub/types.h (grub_target_to_host16): Removed.
13997 (grub_target_to_host32): Likewise.
13998 (grub_target_to_host64): Likewise.
13999 (grub_host_to_target16): Likewise.
14000 (grub_host_to_target32): Likewise.
14001 (grub_host_to_target64): Likewise.
14002 (grub_host_to_target_addr): Likewise.
14004 Support grub-mkrescue for efi, coreboot and qemu.
14006 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
14007 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
14008 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
14009 * util/grub-mkrawimage.c: Moved from here ...
14010 * util/grub-mkimage.c: ... here. All users updated.
14011 (ALIGN_ADDR): Use image_target.
14012 (TARGET_NO_FIELD): New const.
14013 (image_target_desc): New type.
14014 (image_targets): New array.
14015 (grub_target_to_host64): Use image_target.
14016 (grub_target_to_host32): Likewise.
14017 (grub_target_to_host16): Likewise.
14018 (grub_host_to_target64): Likewise.
14019 (grub_host_to_target32): Likewise.
14020 (grub_host_to_target16): Likewise.
14021 (grub_host_to_target_addr): Likewise.
14022 (generate_image): Handle multiimage.
14023 (main): Require -O parameter. All users updated.
14024 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
14025 util/efi/grub-mkimage.c
14026 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
14027 New option --rom-directory.
14029 * util/i386/efi/grub-mkimage.c: Removed.
14030 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
14031 (grub_target_to_host32): Likewise.
14032 (grub_target_to_host64): Likewise.
14033 (grub_host_to_target16): Likewise.
14034 (grub_host_to_target32): Likewise.
14035 (grub_host_to_target64): Likewise.
14036 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
14037 (grub_target_to_host32): Likewise.
14038 (grub_target_to_host64): Likewise.
14039 (grub_host_to_target16): Likewise.
14040 (grub_host_to_target32): Likewise.
14041 (grub_host_to_target64): Likewise.
14043 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
14045 Source tree is reorganized for emu build.
14047 * include/grub/util/console.h: Move from here...
14048 * include/grub/emu/console.h: ...to here.
14049 * include/grub/util/getroot.h: Move from here...
14050 * include/grub/emu/getroot.h: ...to here.
14051 * include/grub/util/hostdisk.h: Move from here...
14052 * include/grub/emu/hostdisk.h: ...to here.
14053 * util/console.c: Move from here...
14054 * kern/emu/console.c: ...to here.
14055 * util/getroot.c: Move from here...
14056 * kern/emu/getroot.c: ...to here.
14057 * util/grub-emu.c: Move from here...
14058 * kern/emu/main.c: ...to here.
14059 * util/hostdisk.c: Move from here...
14060 * kern/emu/hostdisk.c: ...to here.
14061 * util/hostfs.c: Move from here...
14062 * kern/emu/hostfs.c: ...to here.
14063 * util/mm.c: Move from here...
14064 * kern/emu/mm.c: ...to here.
14065 * util/pci.c: Move from here...
14066 * bus/emu/pci.c: ...to here.
14067 * util/sdl.c: Move from here...
14068 * video/emu/sdl.c: ...to here.
14069 * util/time.c: Move from here...
14070 * kern/emu/time.c: ...to here.
14071 * util/usb.c: Move from here...
14072 * bus/usb/emu/usb.c: ...to here.
14074 * include/grub/emu/misc.h: New header for grub-emu functions.
14075 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
14077 * conf/any-emu.rmk: Rule updates for above renames.
14078 * conf/common.rmk: Likewise.
14079 * conf/i386-pc.rmk: Likewise.
14080 * conf/i386-qemu.rmk: Likewise.
14081 * conf/mips.rmk: Likewise.
14082 * conf/sparc64-ieee1275.rmk: Likewise.
14083 * conf/x86-efi.rmk: Likewise.
14085 * disk/lvm.h: #include updates for above renames.
14086 * util/grub-mkrelpath.c: Likewise.
14087 * util/grub-probe.c: Likewise.
14088 * util/i386/pc/grub-setup.c: Likewise.
14089 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14090 * kern/emu/console.c: Likewise.
14091 * kern/emu/getroot.c: Likewise.
14092 * kern/emu/hostdisk.c: Likewise.
14093 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
14095 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
14096 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
14097 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
14098 * util/misc.c: Remove grub-emu functions.
14100 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14103 Reported by: Thorsten Grützmacher.
14105 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
14107 (circprog_set_property): Register and unregister timeout hook.
14108 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
14109 (label_destroy): Free template. and unregister hook.
14110 (label_set_state): New function.
14111 (label_set_property): Handle templates and hooks.
14112 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
14114 (progress_bar_set_property): Register and unregister timeout hook.
14115 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
14116 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
14117 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
14118 (update_timeout_visit): Removed.
14119 (update_timeouts): New function.
14120 (redraw_timeouts): Likewise.
14121 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
14122 (grub_gfxmenu_clear_timeout): Likewise.
14123 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
14124 (grub_gfxmenu_timeout_notify): Likewise.
14125 (grub_gfxmenu_timeout_notifications): New external variable.
14126 (grub_gfxmenu_timeout_register): New function.
14127 (grub_gfxmenu_timeout_unregister): Likewise.
14129 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14131 Transform (broken) vga terminal into (working) vga video driver.
14133 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
14134 video/i386/pc/vga.c.
14135 * include/grub/video.h (grub_video_driver_id):
14136 Add GRUB_VIDEO_DRIVER_VGA.
14137 * term/i386/pc/vga.c: Renamed to ...
14138 * video/i386/pc/vga.c: ...this
14139 (DEBUG_VGA): Removed.
14140 (CHAR_WIDTH): Likewise.
14141 (CHAR_HEIGHT): Likewise.
14142 (TEXT_WIDTH): Likewise.
14143 (TEXT_HEIGHT): Likewise.
14144 (DEFAULT_FG_COLOR): Likewise.
14145 (DEFAULT_BG_COLOR): Likewise.
14146 (colored_char): Likewise.
14149 (cursor_state): Likewise.
14150 (fg_color): Likewise.
14151 (bg_color): Likewise.
14152 (text_buf): Likewise.
14155 (framebuffer): New variable.
14156 (set_read_map): Disabled.
14157 (setup): New variable.
14158 (is_target): Likewise.
14159 (grub_vga_mod_init): Likewise.
14160 (grub_vga_mod_fini): Likewise.
14161 (check_vga_mem): Likewise.
14162 (write_char): Likewise.
14163 (write_cursor): Likewise.
14164 (scroll_up): Likewise.
14165 (grub_vga_putchar): Likewise.
14166 (grub_vga_getcharwidth): Likewise.
14167 (grub_vga_getwh): Likewise.
14168 (grub_vga_getxy): Likewise.
14169 (grub_vga_gotoxy): Likewise.
14170 (grub_vga_cls): Likewise.
14171 (grub_vga_setcolorstate): Likewise.
14172 (grub_vga_setcursor): Likewise.
14173 (grub_video_vga_init): New function.
14174 (grub_video_vga_setup): Likewise.
14175 (grub_video_vga_fini): Likewise.
14176 (update_target): Likewise.
14177 (grub_video_vga_blit_bitmap): Likewise.
14178 (grub_video_vga_blit_render_target): Likewise.
14179 (grub_video_vga_set_active_render_target): Likewise.
14180 (grub_video_vga_get_active_render_target): Likewise.
14181 (grub_video_vga_swap_buffers): Likewise.
14182 (grub_video_vga_set_palette): Likewise.
14183 (grub_video_vga_get_info_and_fini): Likewise.
14184 (grub_vga_term): Removed.
14185 (grub_video_vga_adapter): New variable.
14186 (GRUB_MOD_INIT): Register a video driver instead of terminal.
14187 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
14189 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14191 * video/readers/jpeg.c: Indented.
14193 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14195 Various jpeg cleanups.
14197 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
14198 (grub_jpeg_decode_quan_table): Use sizeof.
14199 (grub_jpeg_decode_du): Use ARRAY_SIZE.
14201 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
14203 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
14204 tables. Ignore non-last ac bit.
14205 (grub_jpeg_decode_quan_table): Likewise.
14207 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14209 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
14210 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
14211 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14212 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
14213 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
14214 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
14216 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14218 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
14221 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14223 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
14225 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14227 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
14230 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14232 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
14235 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14237 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
14240 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14242 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
14244 2010-05-01 Christian Franke <franke@computer.org>
14246 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
14247 Remove broken Cygwin path conversion.
14248 * util/misc.c: [__CYGWIN__] Add include and define.
14249 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
14251 (make_system_path_relative_to_its_root): Simplify loop, replace early
14253 [__CYGWIN__] Add conversion to win32 path.
14254 Include "/" case in trailing slash removal.
14256 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14258 * kern/main.c (grub_load_config): Fix copy-pasted comment.
14259 Reported by: Seth Goldberg
14261 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14263 * commands/help.c (grub_cmd_help): Fix a typo.
14264 Reported by: Seth Goldberg
14266 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14268 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
14270 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
14271 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
14272 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
14273 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
14274 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
14275 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
14276 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
14277 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
14278 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
14279 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
14280 * normal/context.c (GRUB_MOD_INIT): Likewise.
14281 * normal/main.c (GRUB_MOD_INIT): Likewise.
14282 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
14283 * term/serial.c (GRUB_MOD_INIT): Likewise.
14284 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
14286 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14288 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
14291 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14293 * commands/iorw.c: New file.
14294 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
14295 (iorw_mod_SOURCES): New variable.
14296 (iorw_mod_CFLAGS): Likewise.
14297 (iorw_mod_LDFLAGS): Likewise.
14299 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14303 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
14304 * normal/main.c (hotkey_aliases): New variable.
14305 (grub_normal_add_menu_entry): Parse "--hotkey".
14306 * normal/menu_text.c (run_menu): Handle hotkeys.
14308 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14310 * kern/i386/coreboot/init.c (grub_machine_init): Call
14311 grub_machine_mmap_init on qemu.
14313 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14315 * boot/i386/qemu/boot.S: Add a missing .code16.
14317 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14319 Use LBIO on coreboot.
14321 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
14322 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
14323 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
14325 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
14326 grub_machine_mmap_init on coreboot.
14327 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
14328 GRUB_LINUXBIOS_MEMBER_LINK.
14329 (grub_machine_mmap_iterate): Fix declaration.
14330 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
14332 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14334 Split coreboot and multiboot ports.
14336 * conf/i386-multiboot.rmk: New file.
14337 * configure.ac: Add multiboot port.
14338 * include/grub/i386/multiboot/boot.h: New file.
14339 * include/grub/i386/multiboot/console.h: Likewise.
14340 * include/grub/i386/multiboot/init.h: Likewise.
14341 * include/grub/i386/multiboot/kernel.h: Likewise.
14342 * include/grub/i386/multiboot/loader.h: Likewise.
14343 * include/grub/i386/multiboot/memory.h: Likewise.
14344 * include/grub/i386/multiboot/serial.h: Likewise.
14345 * include/grub/i386/multiboot/time.h: Likewise.
14346 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
14347 * loader/multiboot.c: Likewise.
14348 * loader/multiboot_mbi2.c: Likewise.
14349 * util/grub-mkrescue.in: Generate multiboot rescue.
14351 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14353 * kern/parser.c (grub_parser_execute): Cope with read-only config.
14355 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14357 Merge handling of input and output terminals. Fix a hang.
14359 * commands/terminal.c (abstract_terminal): New struct.
14360 (handle_command): New function. Based on grub_cmd_terminal_input.
14361 (grub_cmd_terminal_input): Use handle_command.
14362 (grub_cmd_terminal_output): Use handle_command.
14364 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
14366 Fix comment handling.
14368 * tests/grub_script_comments.in: New testcase.
14369 * conf/tests.rmk: Rules for new testcase.
14370 * script/yylex.l: Updated flex rules.
14372 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14374 * docs/grub.texi (play): Document that zero pitches produce rests.
14375 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
14378 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
14380 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
14383 2010-04-26 Christian Franke <franke@computer.org>
14385 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
14386 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
14387 (grub_get_prefix): Remove function.
14388 * util/grub-emu.c (main): Replace grub_get_prefix () call by
14389 make_system_path_relative_to_its_root ().
14390 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
14392 2010-04-24 Christian Franke <franke@computer.org>
14394 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
14395 (kernel_img_LDFLAGS): Remove -static-libgcc.
14397 2010-04-24 Christian Franke <franke@computer.org>
14399 * configure.ac: Do not CHECK_BSS_START_SYMBOL
14400 and CHECK_END_SYMBOL if grub-emu is built.
14401 Unset TARGET_OBJ2ELF if grub-emu is built
14402 without module support.
14404 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
14408 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
14409 (grub_fstest_SOURCES): Likewise.
14410 (pkglib_MODULES): Add nilfs2.mod.
14411 (nilfs2_mod_SOURCES): New variable.
14412 (nilfs2_mod_CFLAGS): Likewise.
14413 (nilfs2_mod_LDFLAGS): Likewise.
14414 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
14415 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
14416 * fs/nilfs2.c: New file.
14418 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
14420 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
14423 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
14425 Add grub-mkconfig support for NetBSD.
14427 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
14428 * util/grub-mkconfig.in: export new NetBSD specific variables.
14429 * po/POTFILES-shell: added 10_netbsd.in.
14430 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
14432 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
14434 Fix emu build with grub-emu-pci and grub-emu-modules.
14436 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
14438 * include/grub/libpciaccess.h: New file.
14439 * conf/any-emu.rmk: Update kernel headers for emu build.
14441 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14443 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
14445 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14447 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
14449 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14451 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
14452 Retrieve chosen/bootpath if bootpath isn't hardcoded.
14453 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
14454 util/ieee1275/ofpath.c.
14455 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
14456 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
14457 * include/grub/sparc64/ieee1275/boot.h
14458 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
14459 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
14460 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
14461 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
14463 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
14464 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
14465 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
14468 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14470 * util/grub-mkconfig.in: Corrected two == equality tests.
14471 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
14472 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
14473 expect a number appended to it.
14474 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
14475 expects a number appended to it.
14477 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14479 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
14481 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14483 * util/hostdisk.c (make_device_name): Change to new partition naming.
14485 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14487 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
14489 2010-04-17 Christian Franke <franke@computer.org>
14491 * Makefile.in: Add missing localedir setting.
14493 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
14495 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
14496 mistake in r2156. Noticed by Anthony Fok.
14498 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
14500 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
14502 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
14504 Fix a spurious, uninitialized variable warning.
14506 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
14507 Initialize variable, shdr.
14508 (grub_freebsd_load_elfmodule): Likewise.
14509 (grub_freebsd_load_elf_meta): Likewise.
14511 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
14513 Fix for escaped dollar in double quoted strings.
14515 * script/yylex.l: Updated flex rules.
14516 * conf/tests.rmk: Rule for new testcase.
14517 * tests/grub_script_dollar.in: New testcase.
14519 2010-04-13 Carles Pina i Estany <carles@pina.cat>
14520 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
14522 Enclose all translated strings in grub.cfg in single quotes, and
14523 escape them appropriately (Ubuntu bug #552921).
14525 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
14526 * util/grub.d/10_hurd.in: Use it.
14527 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
14528 * util/grub.d/10_linux.in (linux_entry): Likewise.
14530 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14532 Fix cygwin compilation.
14534 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
14535 * include/grub/misc.h (__register_frame_info)
14536 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
14537 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
14538 * kern/misc.c (__register_frame_info)
14539 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
14540 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
14542 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14544 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
14546 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14548 Unify libgcc processing.
14550 * Makefile.in (kernel_img_LDFLAGS): New variable.
14551 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
14552 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
14554 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
14555 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
14556 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
14557 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
14558 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
14559 overwriting. Remove -lgcc and -static-libgcc
14560 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
14561 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
14562 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
14563 (kernel_img_LDFLAGS): Append instead of overwriting.
14564 Remove -lgcc and -static-libgcc
14565 * conf/sparc64-ieee1275.rmk: Likewise.
14566 * include/grub/powerpc/libgcc.h: Move to ...
14567 * include/grub/libgcc.h: .. this.
14568 * include/grub/libgcc.h: Don't export most of the function on x86.
14569 (__bswapsi2): New export.
14570 (__bswapdi2): Likewise.
14571 * include/grub/mips/libgcc.h: Removed.
14572 * include/grub/sparc64/libgcc.h: Likewise.
14574 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14576 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
14577 disk_info_msg (conflicts with gettexting into languages with cases).
14579 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
14581 Add grub-probe support for NetBSD.
14583 * util/getroot.c (find_root_device): Convert block device to
14584 character device on NetBSD.
14585 * util/probe.c (probe): Require character device on NetBSD.
14586 * util/hostdisk.c: NetBSD specific headers.
14587 (configure_device_driver): new function to tune device driver
14588 parameters (currently only for NetBSD floppy driver).
14589 (grub_util_biosdisk_open): NetBSD specific code (get disk size
14590 via disklabel ioctl).
14591 (open_device): call configure_device_driver on NetBSD.
14592 (convert_system_partition_to_system_disk): NetBSD specific code.
14593 (device_is_wholedisk): Likewise.
14594 (grub_util_biosdisk_get_grub_dev): Likewise.
14595 (make_device_name): Fixed a typo in bsd_part_str.
14596 * configure.ac: check for opendisk() and getrawpartition() on
14597 NetBSD and set LIBUTIL.
14598 * Makefile.in: add LIBUTIL to LIBS.
14600 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
14604 * util/grub-script-check.c: Better help message.
14606 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
14610 * configure.ac: Flex version check.
14611 * conf/common.rmk: Add -Wno-error to sh.mod.
14612 * script/yylex.l: Remove all #pragma.
14614 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14616 * include/grub/util/misc.h (canonicalise_file_name): Add missing
14618 Reported by: Seth Goldberg.
14620 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14622 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
14623 Rename "module" to "module2".
14624 Reported by: Seth Goldberg.
14626 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14628 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
14630 Reported by: Seth Goldberg.
14632 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14634 * lib/posix_wrap/locale.h: Add missing file.
14635 Reported by: Seth Goldberg.
14637 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14639 grub-emu module load support.
14641 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
14642 NO_DYNAMIC_MODULES switched to this.
14643 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
14644 (CFLAGS): Likewise.
14645 * conf/any-emu.rmk: Generate symlist.
14646 (kernel_img_HEADERS): Add util/datetime.h.
14647 (kernel_img_HEADERS) [sdl]: Add sdl.h.
14648 (kernel_img_HEADERS) [libusb]: Add libusb.h.
14649 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
14650 kern/$(target_cpu)/cache.S.
14651 * configure.ac (grub-emu-modules): New option.
14652 * genmk.rb: Handle multiple source lists.
14653 * include/grub/sdl.h: New file.
14654 * include/grub/libusb.h: Likewise.
14655 * util/grub-emu.c (main): Hanle (host) root.
14656 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
14657 GRUB_ERR_UNKNOWN_DEVICE.
14658 * util/misc.c: Move mm functions to ...
14659 * util/mm.c: ... here. All users updated.
14661 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14663 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
14664 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
14666 (maintainer-clean): Remove libgcrypt-grub.
14668 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14670 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
14672 2010-04-09 EFI Coder <eficoder@hotmail.com>
14674 * normal/menu_text.c (print_message): Clean up the message and show
14675 the Fn information when on EFI
14676 * term/efi/console.c (grub_console_checkkey): Add F4 support.
14678 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14680 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
14682 * normal/crypto.c (read_crypto_list): Likewise.
14683 * normal/dyncmd.c (read_command_list): Likewise.
14684 * normal/term.c (read_terminal_list): Likewise.
14685 * normal/main.c (read_lists): Use explicit prefix.
14686 (read_lists_hook): Use read_lists.
14687 (grub_normal_execute): Likewise.
14689 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14691 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
14692 Reported by: Thomas Schmitt.
14693 Add -no-emul-boot to grub-mkisofs parameters.
14695 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14697 * font/font.c: Indented.
14699 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
14701 Elif support to GRUB script (by Deepak Vankadaru).
14703 * tests/grub_script_if.in: New testcase.
14704 * conf/tests.rmk: Rule for new testcase.
14705 * script/parser.y: Grammar rules for elif.
14707 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
14709 While and until loops support to GRUB script.
14711 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
14712 (grub_script_create_cmdwhile): New function prototype.
14713 (grub_script_execute_cmdwhile): New function prototype.
14714 * script/execute.c (grub_script_execute_cmdwhile): New function.
14715 * script/parser.y (command): New commands.
14716 (whilecmd): New grammar rule.
14717 (untilcmd): New grammar rule.
14718 * script/script.c (grub_script_create_cmdwhile): New function.
14719 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
14722 * tests/grub_script_while1.in: New testcase.
14723 * conf/tests.rmk: Rule for new testcase.
14725 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14727 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
14730 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
14732 GRUB_BACKGROUND support.
14734 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
14735 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
14737 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14739 Load fonts and modules for gfxmenu in grub-mkconfig.
14740 Idea by: Mario Vazquez
14742 * util/grub.d/00_header.in: Load pf2 and image modules.
14744 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14746 grub-mkconfig multiple terminal support.
14748 * util/grub-mkconfig.in: Handle multiple terminals correctly.
14749 * util/grub.d/00_header.in: Likewise.
14751 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14753 * Makefile.in: Specify files explicitly instead of using $< and $@ since
14754 we use cd $(srcdir).
14756 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
14758 * util/grub.d/10_linux.in: Only use the first word of
14759 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
14760 spaces in GRUB_DISTRIBUTOR.
14761 * util/grub.d/10_kfreebsd.in: Likewise.
14762 * util/grub.d/10_hurd.in: Likewise.
14764 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
14766 Fix unit testing framework for Qemu 0.12.
14768 * tests/util/grub-shell.in: Remove -serial stdio option.
14770 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14772 POSIX header file wrappers.
14774 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
14776 * lib/posix_wrap/ctype.h: Likewise.
14777 * lib/posix_wrap/errno.h: Likewise.
14778 * lib/posix_wrap/langinfo.h: Likewise.
14779 * lib/posix_wrap/limits.h: Likewise.
14780 * lib/posix_wrap/localcharset.h: Likewise.
14781 * lib/posix_wrap/stdint.h: Likewise.
14782 * lib/posix_wrap/stdio.h: Likewise.
14783 * lib/posix_wrap/stdlib.h: Likewise.
14784 * lib/posix_wrap/string.h: Likewise.
14785 * lib/posix_wrap/sys/types.h: Likewise.
14786 * lib/posix_wrap/unistd.h: Likewise.
14787 * lib/posix_wrap/wchar.h: Likewise.
14788 * lib/posix_wrap/wctype.h: Likewise.
14789 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
14790 (grub_script.yy.h): Likewise.
14791 * script/yylex.l: Remove POSIX emulation #defines.
14792 * Makefile.in (POSIX_CFLAGS): New variable.
14793 (GNULIB_UTIL_CFLAGS): Likewise.
14797 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
14798 (regexp_mod_SOURCES): New variable.
14799 (regexp_mod_CFLAGS): Likewise.
14800 (regexp_mod_LDFLAGS): Likewise.
14801 * commands/regexp.c: New file.
14802 * gnulib/regcomp.c: New file. Imported from gnulib.
14803 * gnulib/regex.c: Likewise.
14804 * gnulib/regex_internal.c: Likewise.
14805 * gnulib/regex_internal.h: Likewise.
14806 * gnulib/regexec.c: Likewise.
14807 * gnulib/regex.h: Likewise.
14809 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14811 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
14812 unsupported video mode types.
14814 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14816 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
14818 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14820 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
14821 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
14823 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
14825 Remove unused grub_vga_get_font.
14827 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
14828 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
14830 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14832 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
14833 * include/grub/misc.h: Likewise.
14835 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14837 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
14838 for which failure is fatal.
14840 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14842 * util/grub-install.in: Use mkdir -p to create grub directory.
14843 * util/i386/efi/grub-install.in: Likewise.
14844 * util/ieee1275/grub-install.in: Likewise.
14846 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14848 * Makefile.in (LEX): new variable.
14850 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14852 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
14853 `=' and added double quotes on operands of this equality test.
14855 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
14857 * Makefile.in (uninstall): Remove a leftover debug echo.
14858 Reported by: Grégoire Sutre
14860 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
14862 MIPS multiboot2 support.
14864 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
14865 (multiboot2_mod_SOURCES): New variable.
14866 (multiboot2_mod_CFLAGS): Likewise.
14867 (multiboot2_mod_LDFLAGS): Likewise.
14868 (multiboot2_mod_ASFLAGS): Likewise.
14869 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
14871 (MULTIBOOT_ENTRY_REGISTER): Likewise.
14872 (MULTIBOOT_MBI_REGISTER): Likewise.
14873 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
14874 (MULTIBOOT_ELF32_MACHINE): Likewise.
14875 (MULTIBOOT_ELF64_MACHINE): Likewise.
14876 * include/grub/mips/multiboot.h: New file.
14877 * include/grub/video.h (grub_video_driver_id): New type
14878 GRUB_VIDEO_DRIVER_SM712.
14879 (grub_video_get_info_and_fini): Export.
14880 (grub_video_get_palette): Likewise.
14881 (grub_video_get_driver_id): Likewise.
14882 * include/multiboot2.h: Resynced with spec.
14883 * loader/i386/multiboot.c: Moved from here ...
14884 * loader/multiboot.c: ... here. All users updated.
14885 (grub_multiboot_boot): Use platform-specific macros.
14886 * loader/i386/multiboot_elfxx.c: Moved from here ...
14887 * loader/multiboot_elfxx.c: ... here. All users updated.
14888 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
14889 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
14890 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
14892 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14894 Import gnulib argp module.
14896 * gnulib/argp-ba.c: New file.
14897 * gnulib/argp-eexst.c: Likewise.
14898 * gnulib/argp-fmtstream.c: Likewise.
14899 * gnulib/argp-fmtstream.h: Likewise.
14900 * gnulib/argp-fs-xinl.c: Likewise.
14901 * gnulib/argp-help.c: Likewise.
14902 * gnulib/argp-namefrob.h: Likewise.
14903 * gnulib/argp-parse.c: Likewise.
14904 * gnulib/argp-pin.c: Likewise.
14905 * gnulib/argp-pv.c: Likewise.
14906 * gnulib/argp-pvh.c: Likewise.
14907 * gnulib/argp-version-etc.c: Likewise.
14908 * gnulib/argp-version-etc.h: Likewise.
14909 * gnulib/argp-xinl.c: Likewise.
14910 * gnulib/argp.h: Likewise.
14912 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14914 * kern/device.c (grub_device_iterate): Clear errors after failed
14917 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14919 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
14920 returned by firmware.
14922 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14924 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
14925 compilation on coreboot and qemu
14927 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
14929 * include/multiboot2.h: Resync with spec.
14931 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
14933 Multiboot2 tag support
14935 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
14936 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
14937 Remove loader/multiboot_loader.c.
14938 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
14939 (grub_multiboot2_real_boot): Likewise.
14940 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
14941 (grub_get_multiboot_mmap_count): New proto.
14942 (grub_fill_multiboot_mmap): Likewise.
14943 (grub_multiboot_set_video_mode): Likewise.
14944 (grub_multiboot_set_console): Likewise.
14945 (grub_multiboot_load): Likewise.
14946 (grub_multiboot_load_elf): Likewise.
14947 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
14948 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
14949 * include/multiboot.h: Resynced with specification.
14950 * include/multiboot2.h: Resynced with specification.
14951 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
14952 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
14953 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
14954 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
14956 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
14957 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
14958 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
14960 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
14962 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
14963 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
14965 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
14966 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
14967 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
14969 * loader/i386/multiboot_mbi2.c: New file.
14971 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
14973 Resync with gnulib.
14975 * Makefile.in (GNULIB_CFLAGS): New variable.
14976 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
14977 (grub_script_check_CFLAGS): New variable.
14978 * gnulib/alloca.h: Resync with gnulib.
14979 * gnulib/error.c: Likewise.
14980 * gnulib/error.h: Likewise.
14981 * gnulib/fnmatch.c: Likewise.
14982 * gnulib/fnmatch_loop.c: Likewise.
14983 * gnulib/getdelim.c: Likewise.
14984 * gnulib/getline.c: Likewise.
14985 * gnulib/getopt.c: Likewise.
14986 * gnulib/getopt1.c: Likewise.
14987 * gnulib/getopt_int.h: Likewise.
14988 * gnulib/gettext.h: Likewise.
14989 * gnulib/progname.c: Likewise.
14990 * gnulib/progname.h: Likewise.
14992 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
14994 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
14995 which is the case with --disabled-nls.
14997 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
14998 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
14999 * util/misc.c: Likewise.
15000 * util/mkisofs/mkisofs.c: Likewise.
15001 * util/mkisofs/mkisofs.h: Likewise.
15003 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
15005 Simplify Apple CC support.
15007 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
15008 Add 0 byte at the end not to have a symbol with empty target.
15009 * mmap/i386/pc/mmap_helper.S: Likewise.
15010 * genmk.rb: Ignore errors 2030 and 2050.
15011 * kern/i386/pc/startup.S: Use LOCAL when possible.
15013 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
15015 Testcase and the fix for final semicolon on cmdline.
15017 * tests/grub_script_final_semicolon.in: New testcase.
15018 * conf/tests.rmk: Rules for the new testcase.
15019 * script/parser.y: Grammar fix.
15021 2010-03-26 BVK Chaitanya <bvk@localhost>
15023 Blank lines testcase for GRUB script.
15025 * tests/grub_script_blanklines.in: New testcase.
15026 * conf/tests.rmk: Rules for the new testcase.
15028 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15030 Don't use __FILE__.
15032 * genmk.rb: Add -DGRUB_FILE to all C targets.
15033 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
15034 * include/grub/list.h: Likewise.
15035 * include/grub/misc.h: Likewise.
15036 * include/grub/mm.h: Likewise.
15037 * include/grub/test.h: Likewise.
15038 * kern/mm.c: Likewise.
15039 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
15041 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15043 Sunpc partitions support.
15045 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
15046 (grub_fstest_SOURCES): Likewise.
15047 (pkglib_MODULES): Add part_sunpc.mod.
15048 (part_sunpc_mod_SOURCES): New variable.
15049 (part_sunpc_mod_CFLAGS): Likewise.
15050 (part_sunpc_mod_LDFLAGS): Likewise.
15051 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
15052 * partmap/sunpc.c: New file.
15054 2010-03-26 BVK Chaitanya <bvk@localhost>
15056 For loop support to GRUB script.
15058 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
15059 (grub_script_create_cmdfor): New function prototype.
15060 (grub_script_execute_cmdfor): New function prototype.
15061 * script/execute.c (grub_script_execute_cmdfor): New function.
15062 * script/parser.y (command): New for command.
15063 (forcmd): New grammar rule.
15064 * script/script.c (grub_script_create_cmdfor): New function.
15065 * util/grub-script-check.c (grub_script_execute_cmdfor): New
15067 * tests/grub_script_for1.in: New testcase.
15068 * conf/tests.rmk: Rules for new testcase.
15070 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15074 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
15075 'partition' is NULL, grub_partition_get_start already does that.
15076 * commands/loadenv.c (check_blocklists): Likewise.
15077 (write_blocklists): Likewise.
15078 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
15079 (grub_fstest_SOURCES): Likewise.
15080 (pkglib_MODULES): Add part_bsd.mod.
15081 (part_bsd_mod_SOURCES): New variable.
15082 (part_bsd_mod_CFLAGS): Likewise.
15083 (part_bsd_mod_LDFLAGS): Likewise.
15084 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
15085 (grub_emu_SOURCES): Likewise.
15086 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15087 * include/grub/bsdlabel.h: New file.
15088 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
15090 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
15091 (grub_partition_map_list): New variable.
15092 (grub_partition_map_register): Inline.
15093 (grub_partition_map_unregister): Likewise.
15094 (FOR_PARTITION_MAPS): New macro.
15095 (grub_partition_map_iterate): Removed.
15096 (grub_partition_get_start): Handle nested partitions.
15097 * include/grub/msdos_partition.h: Remove bsd-related entries.
15098 (grub_pc_partition): Remove.
15099 * kern/disk.c (grub_disk_close): Free partition data.
15100 (grub_disk_adjust_range): Handle nested partitions.
15101 * kern/partition.c (grub_partition_map_probe): New function.
15102 (grub_partition_probe): Parse name to number, handle subpartitions.
15103 (get_partmap): New function.
15104 (grub_partition_iterate): Handle subpartitions.
15105 (grub_partition_get_name): Likewise.
15106 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
15107 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
15108 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
15109 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
15111 (acorn_partition_map_probe): Remove.
15112 (acorn_partition_map_get_name): Likewise.
15113 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
15115 Set 'index' to 0 since there can be only one partition entry per sector.
15116 (amiga_partition_map_probe): Remove.
15117 (amiga_partition_map_get_name): Likewise.
15118 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
15120 Set 'offset' and 'index' to real positions of partitions.
15121 (apple_partition_map_probe): Remove.
15122 (apple_partition_map_get_name): Likewise.
15123 * partmap/bsdlabel.c: New file.
15124 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
15126 Allocate 'data' so it can be correctly freed.
15127 Set 'index' to offset inside sector.
15128 (gpt_partition_map_probe): Remove.
15129 (gpt_partition_map_get_name): Likewise.
15130 * partmap/msdos.c (grub_partition_parse): Remove.
15131 (pc_partition_map_iterate): Don't force raw access.
15133 Make 'ext_offset' a local variable.
15134 (pc_partition_map_probe): Remove.
15135 (pc_partition_map_get_name): Remove.
15136 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
15138 (sun_partition_map_probe): Remove.
15139 (sun_partition_map_get_name): Likewise.
15140 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
15141 (grub_pcpart_type): Likewise.
15142 * util/hostdisk.c (open_device): Handle new numbering scheme.
15143 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
15144 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
15145 * util/grub-probe.c (probe_partmap): Handle nested paritions.
15146 * util/grub-install.in: Insert all subpartition modules.
15147 * util/ieee1275/grub-install.in: Likewise.
15149 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
15151 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
15154 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
15156 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
15158 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
15160 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
15161 match where 'make install' puts them.
15162 * util/i386/efi/grub-install.in: Likewise.
15164 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
15166 * .bzrignore: Add gentrigtables, grub-script-check,
15167 grub_script_check_init.c, grub_script_check_init.h, and
15170 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
15172 * kern/parser.c: Indented.
15174 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
15176 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
15178 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
15180 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
15181 alpha_mask_size == 0 case.
15183 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
15185 GRUB shell lexer and parser improvements.
15187 * conf/any-emu.rmk: Build rule updates.
15188 * conf/common.rmk: Likewise.
15189 * conf/i386-coreboot.rmk: Likewise.
15190 * conf/i386-efi.rmk: Likewise.
15191 * conf/i386-ieee1275.rmk: Likewise.
15192 * conf/i386-pc.rmk: Likewise.
15193 * conf/powerpc-ieee1275.rmk: Likewise.
15194 * conf/x86_64-efi.rmk: Likewise.
15196 * configure.ac: Configure check for flex.
15198 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
15200 (grub_lexer_param): Struct member updates.
15201 (grub_parser_param): Likewise.
15202 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
15203 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
15204 (grub_script_lexer_init): Prototype update.
15205 (grub_script_lexer_record_start): Likewise.
15206 (grub_script_lexer_record_stop): Likewise.
15207 (grub_script_lexer_yywrap): New function prototype.
15208 (grub_script_lexer_fini): Likewise.
15209 (grub_script_execute_argument_to_string): Removed by...
15210 (grub_script_execute_argument_to_argv): ...better version.
15212 * script/execute.c (ROUND_UPTO): New macro.
15213 (grub_script_execute_cmdline): Out of memory fixes.
15214 (grub_script_execute_menuentry): Likewise.
15215 (grub_script_execute_argument_to_string): Removed. Update all
15217 (grub_script_execute_argument_to_argv): ...better version.
15218 * script/function.c (grub_script_function_create): Use
15219 grub_script_execute_argument_to_argv instead of
15220 grub_script_execute_argument_to_string.
15222 * script/lexer.c (check_varstate): Removed.
15223 (check_textstate): Removed.
15224 (grub_script_lexer_record_start): Likewise.
15225 (grub_script_lexer_record_stop): Likewise.
15226 (recordchar): Replaced with...
15227 (grub_script_lexer_record): ...new function.
15228 (nextchar): Removed.
15229 (grub_script_lexer_init): Rewritten.
15230 (grub_script_yylex): Rewritten.
15231 (append_newline): New function.
15232 (grub_script_lexer_yywrap): New function.
15233 (grub_script_lexer_fini): New function.
15234 (grub_script_yyerror): Sets error flag.
15236 * script/yylex.l: New file.
15237 (grub_lexer_yyfree): Wrapper for flex yyffre.
15238 (grub_lexer_yyalloc): Likewise.
15239 (grub_lexer_yyrealloc): Likewise.
15240 * script/parser.y: Refactored.
15242 * script/script.c (grub_script_arg_add): Out of memory fixes.
15243 (grub_script_add_arglist): Likewise.
15244 (grub_script_create_cmdline): Likewise.
15245 (grub_script_create_cmdmenu): Likewise.
15246 (grub_script_add_cmd): Likewise.
15247 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
15248 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
15251 * tests/grub_script_echo1.in: New testcase.
15252 * tests/grub_script_vars1.in: New testcase.
15253 * tests/grub_script_echo_keywords.in: New testcase.
15255 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15257 Remove some redundancy in build system.
15259 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
15260 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
15261 (TARGET_LDFLAGS): Add -nostdlib.
15262 (TARGET_IMG_LDFLAGS): Likewise.
15263 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
15264 anything since mmap isn't available.
15265 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
15267 (pkglib_MODULES): Remove reboot.mod.
15268 (reboot_mod_SOURCES): Removed.
15269 (reboot_mod_CFLAGS): Likewise.
15270 (reboot_mod_LDFLAGS): Likewise.
15271 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
15272 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
15273 (DEFSYMFILES): Add kernel_syms.lst.
15274 (kernel_img_HEADERS): Add common headers.
15275 (symlist.c): New target.
15276 (kernel_syms.lst): Likewise.
15277 (pkglib_MODULES): Add memdisk.mod.
15278 (memdisk_mod_SOURCES): New variable.
15279 (memdisk_mod_CFLAGS): Likewise.
15280 (memdisk_mod_LDFLAGS): Likewise.
15281 (pkglib_MODULES): Add reboot.mod.
15282 (reboot_mod_SOURCES): New variable.
15283 (reboot_mod_CFLAGS): Likewise.
15284 (reboot_mod_LDFLAGS): Likewise.
15285 (pkglib_MODULES): Add date.mod.
15286 (date_mod_SOURCES): New variable.
15287 (date_mod_CFLAGS): Likewise.
15288 (date_mod_LDFLAGS): Likewise.
15289 (pkglib_MODULES): Add datehook.mod.
15290 (datehook_mod_SOURCES): New variable.
15291 (datehook_mod_CFLAGS): Likewise.
15292 (datehook_mod_LDFLAGS): Likewise.
15293 (pkglib_MODULES): Add lsmmap.mod.
15294 (lsmmap_mod_SOURCES): New variable.
15295 (lsmmap_mod_CFLAGS): Likewise.
15296 (lsmmap_mod_LDFLAGS): Likewise.
15297 (pkglib_MODULES): Add boot.mod.
15298 (boot_mod_SOURCES): New variable.
15299 (boot_mod_CFLAGS): Likewise.
15300 (boot_mod_LDFLAGS): Likewise.
15301 * conf/i386-coreboot.rmk: Removed redundant parts.
15302 * conf/i386-ieee1275.rmk: Likewise.
15303 * conf/i386-pc.rmk: Likewise.
15304 * conf/mips-yeeloong.rmk: Likewise.
15305 * conf/mips.rmk: Likewise.
15306 * conf/powerpc-ieee1275.rmk: Likewise.
15307 * conf/sparc64-ieee1275.rmk: Likewise.
15308 * conf/x86_64-efi.rmk: Likewise.
15309 * conf/i386-coreboot.rmk: Moved qemu parts ..
15310 * conf/i386-qemu.rmk: ... here
15311 * conf/i386-efi.rmk: Moved common parts to...
15312 * conf/x86-efi.rmk: ... here.
15313 * conf/i386.rmk: Added modules common to all x86 variants.
15314 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
15315 * disk/memdisk.c: Remove grub/machine/kernel.h.
15316 * gensymlist.sh.in: Include symbol.h.
15317 * hook/datehook.c: Correct module name.
15318 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
15319 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
15320 * include/grub/i386/efi/serial.h: New file.
15321 * include/grub/x86_64/efi/serial.h: Likewise.
15322 * util/time.c: Likewise.
15323 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
15325 2010-03-14 Colin King <colin.king@ubuntu.com>
15326 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
15328 Shrink the pre-partition-table part of boot.img by eight bytes.
15330 * boot/i386/pc/boot.S (ERR): New macro.
15331 (chs_mode): Use ERR.
15332 (geometry_error): Likewise.
15333 (hd_probe_error): Remove. This is only used once, so we wrwite
15335 (read_error): Instead of printing read_error_string, just set up
15336 %si and fall through to ...
15337 (error_message): ... this new function, also used by ERR.
15339 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
15341 Speed up consecutive hostdisk operations on the same device.
15343 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
15344 (grub_util_biosdisk_open): Initialise disk->data.
15345 (struct linux_partition_cache): New structure.
15346 (linux_find_partition): Cache partition start positions; these are
15347 expensive to compute on every read and write.
15348 (open_device): Cache open file descriptor in disk->data, so that we
15349 don't have to reopen it and flush the buffer cache for consecutive
15350 operations on the same device.
15351 (grub_util_biosdisk_close): New function.
15352 (grub_util_biosdisk_dev): Set `close' member.
15354 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
15355 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
15356 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
15357 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
15358 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
15360 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15362 Compile parts of grub-emu as modules.
15364 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
15365 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
15366 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
15367 (all-local): Add $(GRUB_EMU).
15368 (install-local): Install $(GRUB_EMU).
15369 (uninstall): Uninstall $(GRUB_EMU).
15370 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
15371 * kern/dl.c: Likewise.
15372 * commands/sleep.c: Not include machine/time.h.
15373 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
15374 (COMMON_CFLAGS): Likewise.
15375 (sbin_UTILITIES): Remove grub-emu.
15376 (grub_emu_SOURCES): Removed.
15377 (kernel_img_RELOCATABLE): New variable.
15378 (pkglib_PROGRAMS): Add kernel.img.
15379 (kernel_img_SOURCES): New variable
15380 (kernel_img_CFLAGS): Likewise.
15381 (kernel_img_LDFLAGS): Likewise.
15382 (TARGET_NO_STRIP): Likewise.
15383 (TARGET_NO_DYNAMIC_MODULES): Likewise.
15384 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
15385 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
15386 (grub-emu): New target.
15387 (GRUB_EMU): New variable.
15388 * configure.ac: Whitelist -emu as possible x86_64 architecture.
15389 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
15390 * loader/xnu.c: Likewise.
15391 * include/grub/pci.h: Likewise.
15392 * genemuinit.sh: New file.
15393 * genemuinitheader.sh: Likewise.
15394 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
15395 Support TARGET_NO_DYNAMIC_MODULES.
15396 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
15397 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
15398 * disk/loopback.c: Likewise.
15399 * font/font_cmd.c: Likewise.
15400 * partmap/acorn.c: Likewise.
15401 * partmap/amiga.c: Likewise.
15402 * partmap/apple.c: Likewise.
15403 * partmap/gpt.c: Likewise.
15404 * partmap/msdos.c: Likewise.
15405 * partmap/sun.c: Likewise.
15406 * parttool/msdospart.c: Likewise.
15407 * term/gfxterm.c: Likewise.
15408 * video/bitmap.c: Likewise.
15409 * video/readers/jpeg.c: Likewise.
15410 * video/readers/png.c: Likewise.
15411 * video/readers/tga.c: Likewise.
15412 * video/video.c: Likewise.
15413 * util/grub-emu.c (read_command_list): Removed.
15414 (main): Don't call util_init_nls.
15415 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
15416 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
15418 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15420 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
15421 date.mod, datehook.mod.
15422 (datetime_mod_SOURCES): New variable.
15423 (datetime_mod_CFLAGS): Likewise.
15424 (datetime_mod_LDFLAGS): Likewise.
15425 (date_mod_SOURCES): Likewise.
15426 (date_mod_CFLAGS): Likewise.
15427 (date_mod_LDFLAGS): Likewise.
15428 (datehook_mod_SOURCES): Likewise.
15429 (datehook_mod_CFLAGS): Likewise.
15430 (datehook_mod_LDFLAGS): Likewise.
15431 * conf/sparc64-ieee1275.rmk: Likewise.
15432 * lib/ieee1275/datetime.c: New file.
15434 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15436 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
15437 (ieee1275_fb_mod_SOURCES): New variable.
15438 (ieee1275_fb_mod_CFLAGS): Likewise.
15439 (ieee1275_fb_mod_LDFLAGS): Likewise.
15440 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
15442 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
15443 (HEAP_MAX_ADDR): Likewise.
15444 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
15446 Correct stop condition.
15447 (grub_ieee1275_devices_iterate): New function.
15448 * video/ieee1275.c: New file.
15450 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15452 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
15454 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
15456 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
15457 SCRATCH_PAD_DISKBOOT as scratch.
15458 (bootit): Pass Openfirmware pointer in %o4.
15459 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
15461 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
15462 with util/grub-mkrawimage.c.
15463 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
15464 * include/grub/aout.h (AOUT_MID_SUN): New definition.
15465 (grub_aout_get_type) [GRUB_UTIL]: Removed.
15466 (grub_aout_load) [GRUB_UTIL]: Likewise.
15467 * include/grub/kernel.h (grub_modules_get_end): New proto.
15468 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
15469 (SCRATCH_PAD_BOOT): New definition.
15470 (SCRATCH_PAD_DISKBOOT): Likewise.
15471 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
15472 * include/grub/sparc64/ieee1275/ieee1275.h
15473 (grub_ieee1275_original_stack): New variable
15474 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
15476 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
15477 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
15478 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
15479 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
15480 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
15481 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
15482 (grub_platform_image_format_t): New type.
15483 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
15484 * kern/main.c (grub_modules_get_end)
15485 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
15486 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
15487 (codestart): Switch stacks.
15488 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
15490 (grub_heap_init): Use grub_modules_get_end.
15491 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
15493 * util/grub-mkrawimage.c (generate_image): Support sparc64.
15495 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
15497 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
15499 * util/grub-mkrescue.in: Base ISO UUID on UTC.
15501 2010-03-08 Matt Kraai <kraai@ftbfs.org>
15503 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
15506 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
15508 * genmoddep.awk: Output all missing symbols and not only first.
15510 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15512 * NEWS: Put the date of 1.98 release.
15514 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15516 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
15519 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15521 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
15522 completition in the middle of string.
15524 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15526 * util/grub-mkrescue.in: Use mktemp with explicit template.
15528 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15530 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
15532 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15534 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
15537 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15539 Fix FreeBSD compilation.
15541 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
15542 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
15544 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15546 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
15548 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15550 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
15552 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15554 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
15556 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
15558 Support relative image path in theme file.
15560 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
15561 (image_set_property): Handle theme_dir and relative path.
15563 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15565 * configure.ac: Alias amd64 to x86_64.
15567 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15569 * NEWS: mention multiboot on EFI.
15571 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15573 * kern/main.c (grub_load_modules): Handle errors from init functions of
15576 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15578 * normal/autofs.c (autoload_fs_module): Handle errors.
15580 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15582 Disable linux.mod on qemu-mips since it's not functional and leads
15583 to compilation failure.
15585 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
15586 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
15587 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
15588 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
15589 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
15590 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
15591 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
15592 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
15593 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
15594 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
15595 Reported by: BVK Chaitanya
15597 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
15599 * INSTALL: Add gettext as a dependency and add qemu to a new section
15600 "Prerequisites for make-check".
15602 2010-03-04 Christian Franke <franke@computer.org>
15604 * util/grub-pe2elf.c: Add missing include "progname.h".
15606 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15608 * normal/crypto.c (read_crypto_list): Fix a typo.
15609 Reported by: Seth Goldberg.
15611 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15613 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
15614 Reported by: Seth Goldberg.
15616 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15618 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
15621 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15623 * genmk.rb: Remove terminal*.lst in make clean.
15624 Reported by: Seth Goldberg.
15626 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15628 * util/i386/efi/grub-install.in: Copy gettext files.
15630 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15632 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
15634 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15636 Wait for user entry basing on presence of output rather than on errors.
15638 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
15639 (grub_install_newline_hook): Likewise.
15640 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
15641 * normal/menu.c (show_menu): Check line_counter to determine presence
15643 * normal/term.c (grub_normal_line_counter): New variable.
15644 (grub_normal_get_line_counter): New function.
15645 (grub_install_newline_hook): Likewise.
15647 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15649 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
15651 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15653 * configure.ac: Update version to 1.98.
15655 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15657 * util/grub.d/10_linux.in (linux_entry): Don't default to
15658 gfxpayload=keep if Linux doesn't support video handover.
15660 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
15662 Don't compile video modules on yeeloong since video subsystem is part
15665 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
15666 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
15667 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
15668 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
15669 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
15670 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
15671 * include/grub/bitmap_scale.h: Likewise.
15672 * include/grub/bufio.h: Likewise.
15673 * include/grub/font.h: Likewise.
15674 * include/grub/gfxterm.h: Likewise.
15675 * include/grub/video.h: Likewise.
15676 * include/grub/vbe.h: Don't include video_fb.h.
15677 * video/i386/pc/vbe.c: Include video_fb.h.
15678 * commands/i386/pc/vbetest.c: Include video.h.
15680 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
15682 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
15683 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
15684 default entry if GRUB_SAVEDEFAULT=true. This allows using
15685 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
15686 saving a new default on every boot.
15688 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
15690 * normal/crypto.c (read_crypto_list): Fix a memory leak.
15691 * normal/term.c (read_terminal_list): Likewise.
15692 * normal/main.c (grub_normal_init_page): Likewise.
15693 (grub_normal_read_line_real): Likewise.
15695 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
15697 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
15699 Reported by: Seth Goldberg.
15701 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
15703 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
15704 duplicate declaration of `start'.
15706 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
15708 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
15710 Reported by: Georgy Buranov
15712 2010-02-20 Carles Pina i Estany <carles@pina.cat>
15714 * util/grub-mkrawimage.c (usage): Change string formatting to
15717 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15719 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
15722 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
15724 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
15725 Reported by: Michael Suchanek.
15727 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15729 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
15730 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
15732 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
15734 Remove any reference to non-free fonts.
15736 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
15737 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
15738 uses non-free components.
15739 * font/font.c (grub_font_get_name): Remove example name.
15740 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
15741 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15742 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
15743 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
15745 2010-02-16 Georgy Buranov <gburanov@gmail.com>
15747 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
15749 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
15751 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
15753 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
15755 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
15757 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
15759 * gensymlist.sh.in: Use TARGET_CC instead of CC.
15761 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15763 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
15764 * docs/grub.texi (Command-line and menu entry commands): Document play
15767 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15769 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
15770 parse arguments as inline tempo and notes. Move code for playing notes
15772 (play): ... new function.
15774 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15776 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
15777 grub_uint16_t instead of short.
15778 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
15779 disk from little endian to cpu endianness.
15781 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
15783 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
15784 GRUB_TICKS_PER_SECOND instead of 120.
15786 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15788 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
15789 escape sequence after \e.
15791 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15793 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
15794 non-ASCII characters.
15796 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15798 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
15799 set root in single quotes to prevent \, from being unescaped.
15801 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15803 Prevent unknown commands from stopping menuentry execution.
15805 * script/execute.c (grub_script_execute_cmdline): Print error after
15808 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15810 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
15811 Reported by: Pavel Pisa.
15813 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15815 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
15817 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15819 Merge grub_ieee1275_map_physical into grub_map and rename to
15822 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
15823 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
15825 * kern/ieee1275/openfw.c (grub_map): Rename to ...
15826 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
15828 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
15830 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15832 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
15833 opening and not after.
15835 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15837 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
15840 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15842 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
15843 (alloc_phys): Use ALIGN_UP instead of align_addr.
15845 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15847 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
15849 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15851 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
15853 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15855 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
15858 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15860 Fix over-4GiB seek on sparc64.
15862 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
15863 Replace pos_i and pos_lo with pos. All users updated.
15864 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
15866 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
15868 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
15871 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15873 * util/grub-mkrawimage.c (main): Call set_program_name.
15875 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15877 Properly align 64-bit targets.
15879 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
15880 (generate_image): Use ALIGN_ADDR.
15882 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15884 Properly create cross-endian images.
15886 * include/grub/types.h (grub_host_to_target_addr): New macro
15887 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
15889 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15891 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
15893 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15895 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
15897 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
15898 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
15899 (grub_linux_boot): Divide by 64K when on VESA.
15901 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15903 Support GRUB_GFXPAYLOAD_LINUX.
15905 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
15906 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
15908 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15910 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
15911 to show messages instead of discarding them.
15912 Process errors after executing command and not before. Keep old method
15915 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
15917 * configure.ac: Check for ft2build.h.
15919 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15921 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
15923 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15925 * genkernsyms.sh.in: Use TARGET_CC.
15927 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
15931 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15933 * include/grub/multiboot2.h: Remove leftover file.
15934 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
15935 * include/grub/partition.h [GRUB_UTIL]: Likewise.
15937 2010-02-07 Yves Blusseau <blusseau@zetam.org>
15939 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
15941 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15943 Fix warnings in grub-emu when compiling with maximum warning options.
15945 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
15946 (grub_arch_modules_addr): Return 0 and not NULL.
15947 * util/misc.c (ENABLE_RELOCATABLE): New definition.
15948 (xstrdup): Use newstr instead of dup.
15949 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
15950 of disk to dsk to avoid shadowing.
15951 (find_free_slot): Fix prototype.
15952 * util/getroot.c (grub_util_is_dmraid): Make static.
15953 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
15954 Add missing prototype.
15955 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
15957 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15959 * loader/i386/linux.c (grub_linux_setup_video): Handle error
15962 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15964 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
15967 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15969 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
15970 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
15971 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
15972 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
15973 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
15974 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
15976 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15978 * include/grub/err.h (grub_err_printf): Don't export.
15980 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15982 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
15984 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15986 * include/grub/i18n.h (grub_gettext_dummy): Removed.
15987 * kern/misc.c (grub_gettext_dummy): Make static.
15989 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15991 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
15993 * kern/term.c (grub_putchar): Likewise.
15995 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15997 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
15998 buggy hook call and memory leak.
16000 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16002 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
16004 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16006 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
16008 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16010 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
16012 Return grub_errno on allocation error.
16014 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16016 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
16018 2010-02-06 Yves Blusseau <blusseau@zetam.org>
16020 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
16021 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
16023 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16025 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
16027 (grub_pxefs_open): Likewise.
16029 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
16031 * util/grub.d/10_hurd.in: Add --class information to menuentries.
16032 * util/grub.d/10_kfreebsd.in: Likewise.
16033 * util/grub.d/10_linux.in: Likewise.
16035 2010-02-06 Colin D Bennett <colin@gibibit.com>
16037 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
16038 (gfxmenu_mod_SOURCES): New variable.
16039 (gfxmenu_mod_CFLAGS): Likewise.
16040 (gfxmenu_mod_LDFLAGS): Likewise.
16041 * include/grub/term.h (grub_term_set_current_output): Declare
16043 * docs/gfxmenu-theme-example.txt: New file.
16044 * gfxmenu/gfxmenu.c: Likewise.
16045 * gfxmenu/gui_box.c: Likewise.
16046 * gfxmenu/gui_canvas.c: Likewise.
16047 * gfxmenu/gui_circular_progress.c: Likewise.
16048 * gfxmenu/gui_image.c: Likewise.
16049 * gfxmenu/gui_label.c: Likewise.
16050 * gfxmenu/gui_list.c: Likewise.
16051 * gfxmenu/gui_progress_bar.c: Likewise.
16052 * gfxmenu/gui_string_util.c: Likewise.
16053 * gfxmenu/gui_util.c: Likewise.
16054 * gfxmenu/icon_manager.c: Likewise.
16055 * gfxmenu/model.c: Likewise.
16056 * gfxmenu/named_colors.c: Likewise.
16057 * gfxmenu/theme_loader.c: Likewise.
16058 * gfxmenu/view.c: Likewise.
16059 * gfxmenu/widget-box.c: Likewise.
16060 * include/grub/gfxmenu_model.h: Likewise.
16061 * include/grub/gfxmenu_view.h: Likewise.
16062 * include/grub/gfxwidgets.h: Likewise.
16063 * include/grub/gui.h: Likewise.
16064 * include/grub/gui_string_util.h: Likewise.
16065 * include/grub/icon_manager.h: Likewise.
16067 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16069 Agglomerate scrolling in gfxterm.
16071 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
16072 (grub_virtual_screen_setup): Initialise 'total_screen'.
16073 (write_char): Split to ...
16074 (paint_char): ... this ...
16075 (write_char): ... and this.
16076 (paint_char): Handle delayed scrolling.
16077 (draw_cursor): Likewise.
16078 (scroll_up): Split to ...
16079 (real_scroll): ... this ...
16080 (scroll_up): ... and this.
16081 (real_scroll): Handle multi-line scroll and draw below-the-bottom
16083 (grub_gfxterm_refresh): Call real_scroll.
16085 2010-02-06 Colin D Bennett <colin@gibibit.com>
16087 * include/grub/misc.h (grub_iscntrl): New inline function.
16088 (grub_isalnum): Likewise.
16089 (grub_strtol): Likewise.
16091 2010-02-06 Colin D Bennett <colin@gibibit.com>
16093 * normal/menu_text.c (get_entry_number): Move from here ...
16094 * normal/menu.c (get_entry_number): ... moved here.
16095 * include/grub/menu.h (grub_menu_get_default_entry_index):
16097 * normal/menu.c (grub_menu_get_default_entry_index): New function.
16098 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
16099 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
16100 (grub_menu_viewer_should_return): Likewise.
16101 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
16102 * normal/menu_text.c (run_menu): Enable menu switching.
16103 * normal/menu_viewer.c (should_return): New variable.
16104 (menu_viewer_changed): Likewise.
16105 (grub_menu_viewer_show_menu): Handle menu viewer changes.
16106 (grub_menu_viewer_should_return): New function.
16107 (menuviewer_write_hook): Likewise.
16108 (grub_menu_viewer_init): Likewise.
16110 2010-02-06 Colin D Bennet <colin@gibibit.com>
16111 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16113 Support for gfxterm in a window.
16115 * include/grub/gfxterm.h: New file.
16116 * include/grub/video.h (struct grub_video_rect): New declaration.
16117 (grub_video_rect_t): Likewise.
16118 * term/gfxterm.c (struct grub_gfxterm_window): New type.
16119 (refcount): New variable.
16120 (render_target): Likewise.
16121 (window): Likewise.
16122 (repaint_callback): Likewise.
16123 (grub_virtual_screen_setup): Use 'render_target'.
16124 (init_window): New function.
16125 (grub_gfxterm_init_window): Likewise.
16126 (grub_gfxterm_init): Check reference counter.
16128 (destroy_window): New function.
16129 (grub_gfxterm_destroy_window): Likewise.
16130 (grub_gfxterm_fini): Check reference counter.
16131 Use destroy_window.
16132 (redraw_screen_rect): Restore viewport.
16133 Use 'render_target' and 'window'.
16134 Call 'repaint_callback'.
16135 (write_char): Use 'render_target'.
16136 (draw_cursor): Likewise.
16137 (scroll_up): Restore viewport.
16138 Use 'render_target' and 'window'.
16139 Call 'repaint_callback'.
16140 (grub_gfxterm_cls): Likewise.
16141 (grub_gfxterm_refresh): Use 'window'.
16142 (grub_gfxterm_set_repaint_callback): New function.
16143 (grub_gfxterm_background_image_cmd): Use 'window'.
16144 (grub_gfxterm_get_term): New function.
16145 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
16147 2010-02-06 Colin D Bennett <colin@gibibit.com>
16149 Bitmap scaling support.
16151 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
16152 (bitmap_scale_mod_SOURCES): New variable.
16153 (bitmap_scale_mod_CFLAGS): Likewise.
16154 (bitmap_scale_mod_LDFLAGS): Likewise.
16155 * include/grub/bitmap_scale.h: New file.
16156 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
16157 (background_image_cmd_options): New variable.
16158 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
16159 (cmd): Rename and change type to ...
16160 (background_image_cmd_handle): ... this. All users updated.
16161 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
16162 * video/bitmap_scale.c: New file.
16164 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16168 * Makefile.in (LIBSDL): New variable.
16169 (enable_grub_emu_sdl): Likewise.
16170 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
16171 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
16172 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
16173 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
16174 * util/sdl.c: New file.
16176 2010-02-06 Colin D Bennett <colin@gibibit.com>
16177 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16179 Double buffering support.
16181 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
16182 * include/grub/video.h: Update comment.
16183 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
16185 (grub_video_fb_doublebuf_blit_init): New prototype.
16186 * term/gfxterm.c (scroll_up): Support double buffering.
16187 (grub_gfxterm_refresh): Likewise.
16188 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
16189 (grub_video_fb_doublebuf_blit_init): Likewise.
16190 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
16191 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
16192 'displayed_page', 'render_page' and 'update_screen'.
16193 (grub_video_vbe_fini): Free offscreen buffer.
16194 (doublebuf_pageflipping_commit): New function.
16195 (doublebuf_pageflipping_update_screen): Likewise.
16196 (doublebuf_pageflipping_init): Likewise.
16197 (double_buffering_init): Likewise.
16198 (grub_video_vbe_setup): Enable doublebuffering.
16199 (grub_video_vbe_swap_buffers): Implement.
16200 (grub_video_vbe_set_active_render_target): Handle double buffering.
16201 (grub_video_vbe_get_active_render_target): Likewise.
16202 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
16203 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
16204 (grub_video_vbe_enable_double_buffering): Likewise.
16205 (grub_video_vbe_swap_buffers): Use update_screen.
16206 (grub_video_set_mode): Use double buffering.
16208 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
16210 * maintainance/gentrigtables.py: Remove.
16211 * lib/trig.c: Likewise.
16213 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
16215 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
16217 (trigtables.c): New rule.
16218 (gentrigtables): Likewise.
16219 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
16221 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
16223 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
16226 2010-02-06 Colin D Bennet <colin@gibibit.com>
16228 Trigonometry support.
16230 * include/grub/trig.h: New file.
16231 * lib/trig.c: Likewise.
16232 * maintainance/gentrigtables.py: Likewise.
16233 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
16234 (trig_mod_SOURCES): New variable.
16235 (trig_mod_CFLAGS): Likewise.
16236 (trig_mod_LDFLAGS): Likewise.
16238 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16240 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
16243 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16245 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
16248 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
16250 * util/hostdisk.c (open_device): Don't use partition device when reading
16251 before the partition.
16252 (grub_util_biosdisk_read): Don't read from partition and before the
16253 partition in single operation.
16254 (grub_util_biosdisk_write): Don't write to partition and before the
16255 partition in single operation.
16257 2010-02-03 Torsten Landschoff <torsten@debian.org>
16259 * kern/disk.c (grub_disk_read): Fix offset computation when reading
16262 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
16264 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
16266 (grub_biosdisk_write): Refuse to write to CDROM.
16268 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
16270 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
16272 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
16274 * font/font.c (find_glyph): Check that bmp_idx is available before
16276 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
16277 with (font == NULL).
16279 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
16281 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
16283 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
16285 * include/grub/script_sh.h (sourcecode): Add const qualifier.
16286 * util/grub-script-check.c (getline): Fix empty lines case.
16288 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
16290 * Makefile.in (check): Exit with fail status when one of the tests
16292 * tests/example_functional_test.c (example_test): Fix reversed assert.
16293 * tests/example_unit_test.c (example_test): Likewise.
16295 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
16297 * util/grub.d/10_linux.in: This script does not use any of the
16298 contents of gettext.sh, only the external command `gettext', so stop
16299 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
16300 the same prefix as GRUB.)
16301 * util/grub.d/10_kfreebsd.in: Likewise.
16303 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16305 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
16308 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16310 * kern/disk.c (grub_disk_read): Fix offset computation when reading
16313 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16315 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
16316 having a 4KiB and not 32KiB buffer size.
16318 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16320 * util/hostfs.c: Include `<errno.h>'.
16321 (grub_hostfs_read): Handle errors from fseeko() and fread().
16323 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16325 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
16326 loop when using read hooks on files whose size isn't sector-aligned.
16328 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16330 Remove unused parameter.
16332 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
16333 (grub_iso9660_open): Remove initialization of `data->length'.
16335 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16337 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
16338 memleak conditions.
16340 2010-01-27 Carles Pina i Estany <carles@pina.cat>
16342 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
16343 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
16345 2010-01-26 Carles Pina i Estany <carles@pina.cat>
16347 * util/bin2h.c (usage): Fix warning (space after backslash).
16349 2010-01-26 Carles Pina i Estany <carles@pina.cat>
16351 * font/font.c: Include `grub/fontformat.h.
16352 Remove font file format constants.
16353 (grub_font_load): Use the new macros.
16354 * include/grub/fontformat.h: New file.
16355 * util/grub-mkfont.c: Include `grub/fontformat.c'.
16356 (write_font_pf2): Use the new macros.
16358 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
16360 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
16363 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
16365 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
16367 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
16368 (_start): Macroify `0x7F'.
16370 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
16371 (make_install_device): Use "(pxe)" as fallback prefix when booting
16374 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
16376 * configure.ac: Reset LIBS after check for libgcc symbols.
16378 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
16380 * util/hostdisk.c (open_device): Add trailing newline to debug
16383 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
16385 * configure.ac: Check for `limits.h'.
16386 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
16388 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
16390 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
16391 capitalize error strings.
16393 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
16395 * util/grub.d/10_hurd.in: Add a recovery mode.
16397 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
16399 * configure.ac: Check for libgcc symbols with -nostdlib.
16401 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
16403 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
16405 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16407 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
16408 stack since heap may be unavailable at that point.
16409 (grub_ofconsole_gotoxy): Likewise.
16411 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16413 * configure.ac: Check for _restgpr_14_x.
16414 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
16415 and _savegpr_* prototypes.
16417 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
16419 Use generic grub_reboot() for i386-efi.
16421 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
16422 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
16423 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
16425 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16427 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
16428 presence of "prefix" variable as it breaks when normal.mod is
16431 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16433 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
16434 stack since heap is unavailable at that point.
16436 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16438 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
16439 (grub_freebsd_bootinfo): Rewritten.
16440 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
16442 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16444 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
16446 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
16448 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
16451 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
16453 * util/misc.c (make_system_path_relative_to_its_root): Change the work
16454 around for handling "/" to the correct fix. Fix a memory leak. Use
16455 xstrdup instead of strdup.
16457 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16459 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
16461 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16463 Optimise glyph lookup by Basic Multilingual Plane lookup array.
16465 * font/font.c (struct grub_font): New member 'bmp_idx'.
16466 (font_init): Initialise 'bmp_idx'.
16467 (load_font_index): Fill 'bmp_idx'.
16468 (find_glyph): Make inline. Use bmp_idx for BMP characters.
16470 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16472 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
16475 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16477 Move context handling out of the kernel.
16479 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
16480 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
16481 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
16482 * conf/i386-efi.rmk: Likewise.
16483 * conf/i386-ieee1275.rmk: Likewise.
16484 * conf/i386-pc.rmk: Likewise.
16485 * conf/powerpc-ieee1275.rmk: Likewise.
16486 * conf/sparc64-ieee1275.rmk: Likewise.
16487 * conf/x86_64-efi.rmk: Likewise.
16488 * include/grub/env.h: Include grub/menu.h.
16489 (grub_env_var_type): Removed.
16490 (grub_env_var): Replaced field 'type' with 'global'.
16491 (grub_env_find): New prototype.
16492 (grub_env_context_open): Remove EXPORT_FUNC.
16493 (grub_env_context_close): Likewise.
16494 (grub_env_export): Likewise.
16495 (grub_env_set_data_slot): Removed.
16496 (grub_env_get_data_slot): Likewise.
16497 (grub_env_unset_data_slot): Likewise.
16498 (grub_env_unset_menu): New prototype.
16499 (grub_env_set_menu): Likewise.
16500 (grub_env_get_menu): Likewise.
16501 * include/grub/env_private.h: New file.
16502 * include/grub/normal.h (grub_context_init): New prototype.
16503 (grub_context_fini): Likewise.
16504 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
16505 * normal/context.c (grub_cmd_export): ... to here.
16506 * kern/env.c: Include env_private.h.
16507 (HASHSZ): Moved to include/grub/env_private.h.
16508 (grub_env_context): Likewise.
16509 (grub_env_sorted_var): Likewise.
16510 (current_context): Renamed from this ...
16511 (grub_current_context): ...to this. 'static' removed. All users updated.
16512 (grub_env_find): Removed 'static'.
16513 (grub_env_context_open): Moved to normal/context.c.
16514 (grub_env_context_close): Likewise.
16515 (grub_env_export): Likewise.
16516 (mangle_data_slot_name): Removed.
16517 (grub_env_set_data_slot): Likewise.
16518 (grub_env_get_data_slot): Likewise.
16519 (grub_env_unset_data_slot): Likewise.
16520 * kern/main.c (grub_set_root_dev): Don't export root.
16521 It will be done later.
16522 (grub_main): Don't export prefix.
16523 It will be done later.
16524 * normal/context.c: New file.
16525 * normal/main.c (free_menu): Use grub_env_unset_menu.
16526 (grub_normal_add_menu_entry): Use grub_env_get_menu.
16527 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
16528 (GRUB_MOD_INIT(normal)): Call grub_context_init.
16529 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
16531 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16535 * commands/setpci.c: New file.
16536 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
16537 (setpci_mod_SOURCES): New variable.
16538 (setpci_mod_CFLAGS): Likewise.
16539 (setpci_mod_LDFLAGS): Likewise.
16541 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16543 Byte-addressable PCI configuration space.
16545 * bus/pci.c (grub_pci_make_address): Use byte address instead of
16547 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
16548 GRUB_PCI_REG_CACHELINE.
16549 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
16550 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
16551 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
16552 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
16553 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
16554 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
16555 grub_pci_make_address.
16556 (lock_rom_area): Likewise.
16557 * commands/lspci.c (grub_lspci_iter): Use macroses
16558 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
16559 of grub_pci_make_address.
16560 * disk/ata.c (grub_ata_pciinit): Likewise.
16561 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
16562 (GRUB_PCI_REG_VENDOR): Likewise.
16563 (GRUB_PCI_REG_DEVICE): Likewise.
16564 (GRUB_PCI_REG_COMMAND): Likewise.
16565 (GRUB_PCI_REG_STATUS): Likewise.
16566 (GRUB_PCI_REG_REVISION): Likewise.
16567 (GRUB_PCI_REG_CLASS): Likewise.
16568 (GRUB_PCI_REG_CACHELINE): Likewise.
16569 (GRUB_PCI_REG_LAT_TIMER): Likewise.
16570 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
16571 (GRUB_PCI_REG_BIST): Likewise.
16572 (GRUB_PCI_REG_ADDRESSES): Likewise.
16573 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16574 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16575 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16576 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16577 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16578 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16579 (GRUB_PCI_REG_CIS_POINTER): Likewise.
16580 (GRUB_PCI_REG_SUBVENDOR): Likewise.
16581 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
16582 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
16583 (GRUB_PCI_REG_CAP_POINTER): Likewise.
16584 (GRUB_PCI_REG_IRQ_LINE): Likewise.
16585 (GRUB_PCI_REG_IRQ_PIN): Likewise.
16586 (GRUB_PCI_REG_MIN_GNT): Likewise.
16587 (GRUB_PCI_REG_MAX_LAT): Likewise.
16588 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
16589 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
16590 * video/efi_uga.c (find_framebuf): Likewise.
16591 * video/sm712.c (grub_video_sm712_setup): Likewise.
16592 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
16595 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16597 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
16598 can be reliably determined to be supported.
16600 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16602 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
16603 that VESA is supported.
16604 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
16607 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16609 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
16611 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16613 * util/misc.c (make_system_path_relative_to_its_root): Work around
16614 special-casing of "/", as previous incarnation of this routine did.
16616 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16618 Fix any-emu compilation.
16620 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
16621 * grub_bin2h_SOURCES: New variable.
16623 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16625 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
16627 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16629 * util/grub.d/00_header.in: Fix handling of locale_dir.
16631 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16633 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
16634 as possible unifont location (Gentoo).
16635 Reported by: Alexander Brüning
16637 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16639 Don't try to generate lists for kernel.img.
16641 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
16642 (pkglib_MODULES): Remove kernel.img.
16643 (kernel_img_EXPORTS): Removed.
16644 (kernel_img_RELOCATABLE): New variable.
16645 * conf/x86_64-efi.rmk: Likewise.
16646 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
16648 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16650 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
16651 grub_xasprintf or grub_snprintf.
16652 (grub_vsprintf): Likewise.
16653 (grub_snprintf): New proto.
16654 (grub_vsnprintf): Likewise.
16655 (grub_xasprintf): Likewise.
16656 (grub_xvasprintf): Likewise.
16657 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
16658 (grub_sprintf): Removed.
16659 (grub_vsnprintf): New function.
16660 (grub_snprintf): Likewise.
16661 (grub_xvasprintf): Likewise.
16662 (grub_xasprintf): Likewise.
16663 (grub_vsprintf): Renamed to ...
16664 (grub_vsnprintf_real): ...this. New argument max_len.
16666 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
16668 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
16669 fix grub-script-check warning.
16671 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16673 * include/grub/font.h (grub_font_load): Fix prototype.
16675 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16677 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
16679 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16681 * include/grub/x86_64/at_keyboard.h: New file.
16683 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16685 * loader/mips/linux.c: Include missing grub/i18n.h.
16687 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16689 * normal/menu.c (notify_execution_failure): Clarify error message.
16691 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16693 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
16694 return value (and revert all return statements). Update users.
16696 2010-01-20 Dan Merillat <debian@dan.merillat.org>
16698 * kern/device.c (grub_device_iterate): Allocate new part_ent
16699 structure based on sizeof (*p) rather than sizeof (p->next), to
16700 account for structure padding.
16702 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
16703 disk is NULL, which might happen for LVM physical volumes with no
16706 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16708 * loader/mips/linux.c (grub_cmd_initrd)
16709 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
16711 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16713 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
16714 (grub_video_video_init, grub_video_bitmap_init)
16715 (grub_font_manager_init, grub_term_gfxterm_init)
16716 (grub_at_keyboard_init): New extern declarations.
16717 (grub_machine_init): Initialize gfxterm and at_keyboard.
16719 * kern/main.c (grub_main): Revert grub_printf delay kludge.
16721 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
16722 `gfxterm.mod' into core image.
16724 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16725 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16726 (kernel_img_FORMAT): Copy to ...
16728 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16729 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16730 (kernel_img_FORMAT): ... here, and ...
16732 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16733 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16734 (kernel_img_FORMAT): ... here.
16736 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
16737 and input (at_keyboard) terminals in kernel.
16738 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
16740 (pkglib_MODULES): Remove `pci.mod'.
16741 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
16742 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
16743 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
16744 (at_keyboard_mod_LDFLAGS): Remove variables.
16746 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
16748 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
16750 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
16752 * include/grub/mips/libgcc.h: Only export symbols for functions
16753 that libgcc provides.
16755 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
16759 * bus/bonito.c: New file.
16760 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
16761 GRUB_PCI_NUM_DEVICES.
16762 * term/i386/pc/serial.c: Move to ...
16763 * term/serial.c: ... here. All users updated.
16764 * util/i386/pc/grub-mkimage.c: Move to ...
16765 * util/grub-mkrawimage.c: ... here. All users updated.
16766 * term/i386/pc/at_keyboard.c: Move to ...
16767 * term/at_keyboard.c: ... here. All users updated.
16768 * conf/mips-qemu-mips.rmk: New file.
16769 * conf/mips-yeeloong.rmk: Likewise.
16770 * conf/mips.rmk: Likewise.
16771 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
16773 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
16775 (grub_ata_pciinit): Support CS5536.
16776 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
16777 * font/font_cmd.c (loadfont_command): Open file before passing it to
16779 (pseudo_file_read): New function.
16780 (pseudo_file_close): Likewise.
16781 (pseudo_fs): New structure.
16782 (load_font_module): New function.
16783 (GRUB_MOD_INIT(font_manager)): Load embedded font.
16784 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
16785 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
16786 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
16787 * include/grub/i386/at_keyboard.h: Split into ...
16788 * include/grub/at_keyboard.h: ... this ...
16789 * include/grub/i386/at_keyboard.h: ... and this.
16790 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
16792 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
16794 (grub_elf64_size): Likewise.
16795 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
16797 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
16798 * include/grub/i386/coreboot/serial.h: Rewritten.
16799 * include/grub/i386/ieee1275/serial.h: Include
16800 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
16801 * include/grub/i386/pc/serial.h: Moved from here ...
16802 * include/grub/serial.h: ... to here. All users updated.
16803 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
16804 (GRUB_PCI_NUM_BUS): Likewise.
16805 (GRUB_PCI_NUM_DEVICES): Likewise.
16806 (grub_pci_device_map_range): Add missing volatile keyword.
16807 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
16808 * include/grub/mips/at_keyboard.h: New file.
16809 * include/grub/mips/cache.h: Likewise.
16810 * include/grub/mips/io.h: Likewise.
16811 * include/grub/mips/kernel.h: Likewise.
16812 * include/grub/mips/libgcc.h: Likewise.
16813 * include/grub/mips/pci.h: Likewise.
16814 * include/grub/mips/qemu-mips/boot.h: Likewise.
16815 * include/grub/mips/qemu-mips/kernel.h: Likewise.
16816 * include/grub/mips/qemu-mips/loader.h: Likewise.
16817 * include/grub/mips/qemu-mips/memory.h: Likewise.
16818 * include/grub/mips/qemu-mips/serial.h: Likewise.
16819 * include/grub/mips/qemu-mips/time.h: Likewise.
16820 * include/grub/mips/relocator.h: Likewise.
16821 * include/grub/mips/time.h: Likewise.
16822 * include/grub/mips/types.h: Likewise.
16823 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
16824 * include/grub/mips/yeeloong/boot.h: Likewise.
16825 * include/grub/mips/yeeloong/kernel.h: Likewise.
16826 * include/grub/mips/yeeloong/loader.h: Likewise.
16827 * include/grub/mips/yeeloong/memory.h: Likewise.
16828 * include/grub/mips/yeeloong/pci.h: Likewise.
16829 * include/grub/mips/yeeloong/serial.h: Likewise.
16830 * include/grub/mips/yeeloong/time.h: Likewise.
16831 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
16832 * kern/elf.c (grub_elf32_size): New parameter. All users
16834 (grub_elf64_size): Likewise.
16835 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
16836 Load modules before saying "Welcome to GRUB!".
16837 Call grub_refresh after saying "Welcome to GRUB!".
16838 * kern/mips/cache.S: New file.
16839 * kern/mips/cache_flush.S: Likewise.
16840 * kern/mips/dl.c: Likewise.
16841 * kern/mips/init.c: Likewise.
16842 * kern/mips/qemu-mips/init.c: Likewise.
16843 * kern/mips/startup.S: Likewise.
16844 * kern/mips/yeeloong/init.c: Likewise.
16845 * kern/term.c (grub_putcode): Handle NULL terminal.
16846 (grub_getcharwidth): Likewise.
16847 (grub_getkey): Likewise.
16848 (grub_checkkey): Likewise.
16849 (grub_getkeystatus): Likewise.
16850 (grub_getxy): Likewise.
16851 (grub_getwh): Likewise.
16852 (grub_gotoxy): Likewise.
16853 (grub_cls): Likewise.
16854 (grub_setcolorstate): Likewise.
16855 (grub_setcolor): Likewise.
16856 (grub_getcolor): Likewise.
16857 (grub_refresh): Likewise.
16858 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
16859 (write_jump): Add hatch nop.
16860 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
16861 * lib/mips/setjmp.S: New file.
16862 * loader/mips/linux.c: Likewise.
16863 * term/i386/pc/at_keyboard.c: Move from here ...
16864 * term/at_keyboard.c: ... to here.
16865 * term/i386/pc/serial.c: Moved from here ...
16866 * term/serial.c: ... to here. All users updated.
16867 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
16868 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
16869 (serial_translate_key_sequence): Avoid deadlock.
16870 (grub_serial_getkey): Handle backspace.
16871 (grub_serial_putchar): Fix newline handling.
16872 * util/i386/pc/grub-mkimage.c: Move from here ...
16873 * util/grub-mkrawimage.c: ... to here. All users updated.
16874 (generate_image): New parameters 'font_path' and 'format'.
16875 Support embedding font.
16876 Use grub_host_to_target* instead of grub_cpu_to_le*.
16877 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
16878 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
16879 (options): New option "--font".
16881 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
16882 (main): Handle "--font".
16883 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
16884 (grub_virtual_screen_setup): Set bg_color_display.
16885 (redraw_screen_rect): Use bg_color_display instead of incorrect
16887 (grub_gfxterm_cls): Likewise.
16888 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
16889 Support embedding config file.
16890 (add_segments): Likewise.
16891 (options): New option "--config".
16892 (main): Handle "--config".
16893 * video/sm712.c: New file.
16895 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16897 Fix parallel builds.
16899 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
16900 font.c depend on ascii.h).
16902 2010-01-12 Carles Pina i Estany <carles@pina.cat>
16904 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
16906 2010-01-11 Carles Pina i Estany <carles@pina.cat>
16908 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
16909 By default: disabled.
16910 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
16913 2010-01-10 Carles Pina i Estany <carles@pina.cat>
16915 * font/font.c: Update copyright years.
16916 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
16918 2010-01-10 Carles Pina i Estany <carles@pina.cat>
16920 * font/font.c: Include `ascii.h'.
16921 (ASCII_BITMAP_SIZE): New macro.
16922 (ascii_font_glyph): Define.
16923 (ascii_glyph_lookup): New function.
16924 (grub_font_get_string_width): Change comment. If glyph not found, use
16925 ascii_glyph_lookup.
16926 (grub_font_get_glyph_with_fallback): If glyph not available returns
16927 ascii_glyph_lookup.
16928 * util/grub-mkfont.c (file_formats): New enum.
16929 (options): Add `ascii-bitmaps' new option.
16930 (usage): Add `asii-bitmaps' new option.
16931 (write_font_ascii_bitmap): New function.
16932 (write_font): Rename to ...
16933 (write_font_p2): ... this. Remove print_glyphs call.
16934 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
16935 used. Call print_glyphs.
16936 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
16938 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
16940 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
16941 (grub_bin2h_SOURCES): New variable.
16942 * util/bin2h.c: New file.
16944 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16946 * include/multiboot.h: Resynced with spec.
16947 * include/multiboot2.h: Likewise.
16948 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
16949 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
16951 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16953 * include/grub/term.h (grub_term_register_input,
16954 grub_term_register_output): Check return of terminal init()
16955 routines, and abort if errors are raised.
16957 * commands/terminal.c: Update copyright year.
16959 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16961 * commands/terminal.c (grub_cmd_terminal_input)
16962 (grub_cmd_terminal_output): Check return of terminal init()
16963 routines, and abort if errors are raised.
16965 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
16967 * include/grub/i386/bsd.h: Fix include pathes.
16969 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
16971 Add missing *BSD copyright headers.
16973 * include/grub/aout.h: Add BSD licence.
16974 * include/grub/i386/bsd.h: Parts under different licences moved to ...
16975 * include/grub/i386/freebsd_linker.h: ... here,
16976 * include/grub/i386/freebsd_reboot.h: ... here,
16977 * include/grub/i386/netbsd_bootinfo.h: ... here,
16978 * include/grub/i386/netbsd_reboot.h: ... here,
16979 * include/grub/i386/openbsd_bootarg.h: ... here,
16980 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
16981 licence to each file.
16983 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16985 * acinclude.m4: Remove `nop' assembly instruction; it's not
16986 implemented by all architectures.
16988 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16990 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
16991 ELILO. This is no longer necessary.
16993 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
16995 Added new tool, grub-scrit-check to verify grub.cfg syntax.
16997 * util/grub-script-check.c: grub-script-check tool.
16998 * conf/common.rmk: Make rules for grub-script-check.
17000 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17002 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
17003 spotting it back in 2008. Shame on me for forgetting he did.
17005 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
17007 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17009 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
17010 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
17011 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
17012 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
17013 (GRUB_VIDEO_TYPE_EFI): Rename to ...
17014 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
17016 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
17018 * include/grub/test.h: Add license header.
17019 * tests/example_functional_test.c: Likewise.
17020 * tests/example_unit_test.c: Likewise.
17021 * tests/lib/functional_test.c: Likewise.
17022 * tests/lib/test.c: Likewise.
17023 * tests/lib/unit_test.c: Likewise.
17025 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
17027 Use flag-based instead of hook-based video mode selection and "auto"
17030 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
17031 (grub_video_set_mode): Changed prototype. All users updated.
17032 (grub_video_check_mode_flag): New inline function.
17033 * video/video.c (parse_modespec): New function.
17034 (grub_video_set_mode): Parse flags and keywords.
17036 2010-01-17 Carles Pina i Estany <carles@pina.cat>
17038 * util/misc.c (grub_util_info): Fix the order of the parameters in a
17041 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
17043 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
17045 2010-01-16 Carles Pina i Estany <carles@pina.cat>
17047 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
17049 * util/grub-emu.c (usage): Likewise.
17050 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
17051 * util/i386/efi/grub-mkimage.c (usage): Likewise.
17052 * util/i386/pc/grub-mkimage.c (usage): Likewise.
17053 * util/i386/pc/grub-setup.c (usage): Likewise.
17055 2010-01-16 Carles Pina i Estany <carles@pina.cat>
17057 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
17059 (grub_util_info): Likewise.
17060 (grub_util_error): Likewise.
17061 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
17062 and/or new lines in `grub_util_warna', `grub_util_info',
17063 `grub_util_error' calls.
17064 * util/getroot.c: Likewise.
17065 * util/grub-editenv.c: Likewise.
17066 * util/grub-emu.c: Likewise.
17067 * util/grub-fstest.c: Likewise.
17068 * util/grub-mkdevicemap.c: Likewise.
17069 * util/grub-mkfont.c: Likewise.
17070 * util/grub-mkpasswd-pbkdf2.c: Likewise.
17071 * util/grub-mkrelpath.c: Likewise.
17072 * util/grub-pe2elf.c: Likewise.
17073 * util/grub-probe.c: Likewise.
17074 * util/hostdisk.c: Likewise.
17075 * util/i386/efi/grub-mkimage.c: Likewise.
17076 * util/i386/pc/grub-mkimage.c: Likewise.
17077 * util/i386/pc/grub-setup.c: Likewise.
17078 * util/ieee1275/ofpath.c: Likewise.
17079 * util/mkisofs/eltorito.c: Likewise.
17080 * util/mkisofs/rock.c: Likewise.
17081 * util/mkisofs/write.c: Likewise.
17082 * util/raid.c: Likewise.
17083 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
17084 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17086 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17088 Enable multiboot on non-pc.
17090 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
17091 multiboot.mod and multiboot2.mod to ...
17092 * conf/i386.rmk (pkglib_MODULES): ... here.
17093 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
17095 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
17096 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
17098 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
17099 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
17101 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
17102 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
17104 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
17105 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
17107 (ata_mod_SOURCES): Removed.
17108 (ata_mod_CFLAGS): Likewise.
17109 (ata_mod_LDFLAGS): Likewise.
17110 (relocator_mod_SOURCES): Removed.
17111 (relocator_mod_CFLAGS): Likewise.
17112 (relocator_mod_ASFLAGS): Likewise.
17113 (relocator_mod_LDFLAGS): Likewise.
17115 * include/grub/x86_64/multiboot.h: New file.
17116 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
17119 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17121 Video multiboot support.
17123 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
17125 * include/multiboot.h: Resynced with multiboot specification.
17126 * include/multiboot2.h: Likewise.
17127 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
17128 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
17129 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
17130 (HAS_VGA_TEXT): Likewise.
17131 (accepts_video): New variable.
17132 (grub_multiboot_set_accepts_video): New function.
17133 (grub_multiboot_get_mbi_size): Account for video structures.
17134 (set_video_mode): New function.
17135 (retrieve_video_parameters): Likewise.
17136 (grub_multiboot_make_mbi): Fill video fields.
17138 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17142 * include/grub/video.h (grub_video_driver_id): New type.
17143 (grub_video_adapter): New member 'id'. All users updated.
17144 (grub_video_get_driver_id): New proto.
17145 * video/video.c (grub_video_get_driver_id): New function.
17147 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17149 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
17152 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17154 * normal/cmdline.c (print_completion): Gettextizze.
17156 2001-01-14 Carles Pina i Estany <carles@pina.cat>
17158 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
17160 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17162 * gettext/gettext.c (grub_gettext_translate): Push and pop
17164 (grub_gettext_delete_list): Change comment style.
17165 * kern/err.c (grub_error): Gettextizze.
17166 (grub_fatal): Gettextizze.
17168 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
17170 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
17171 (grub_linux16_real_boot): ... this.
17172 * kern/i386/loader.S: Likewise.
17173 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
17174 (grub_linux16_boot): New function. Switches to text mode and calls
17175 grub_linux16_real_boot().
17177 * loader/i386/bsd.c: Include `<grub/video.h>'.
17178 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
17179 text mode before calling grub_unix_real_boot().
17181 * loader/i386/multiboot.c: Include `<grub/video.h>'.
17182 (grub_multiboot_boot): Switch to text mode before calling
17183 grub_relocator32_boot().
17185 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
17186 (grub_chainloader_boot): Switch to text mode before calling
17187 grub_chainloader_real_boot().
17189 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17190 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17192 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
17195 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17196 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17198 * util/grub.d/00_header.in: Define a "savedefault" function for use
17200 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
17202 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17203 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17205 * util/grub-mkconfig_lib.in (save_default_entry): Only set
17206 saved_entry if boot_once is unset.
17207 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
17208 previous saved entry (i.e. grub-reboot).
17210 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17212 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
17214 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17216 * util/grub.d/00_header.in: Use `set var=val' rather than plain
17218 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
17220 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17222 * util/grub-reboot.in: Fix --version output.
17223 * util/grub-set-default.in: Likewise.
17225 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17227 * util/grub.d/00_header.in: Silently ignore zero-sized environment
17230 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17232 * util/grub.d/00_header.in: Quote the value assigned to `default',
17233 in case it contains spaces.
17235 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17237 * util/grub.d/30_os-prober.in: Fix merge error that moved a
17238 `save_default_entry' call from the macosx case to the linux case.
17240 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17241 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
17243 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
17244 in `chosen' environment variable.
17245 * normal/menu_text.c (get_entry_number): Check if the variable
17246 matches the title of a menu entry.
17247 (run_menu): Pass menu to get_entry_number.
17249 * util/grub-reboot.in: New file.
17250 * util/grub-set-default.in: New file.
17251 * conf/common.rmk (grub-reboot): New utility.
17252 (grub-set-default): New utility.
17254 * util/grub-mkconfig_lib.in (save_default_entry): New function.
17255 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
17256 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
17257 move it to `saved_entry' for the next boot. Load environment on
17259 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
17260 * util/grub.d/10_hurd.in: Likewise.
17261 * util/grub.d/10_linux.in (linux_entry): Likewise.
17262 * util/grub.d/10_windows.in: Likewise.
17263 * util/grub.d/30_os-prober.in: Likewise.
17265 * util/grub-install.in: Create environment block.
17266 * util/i386/efi/grub-install.in: Likewise.
17267 * util/ieee1275/grub-install.in: Likewise.
17268 * util/sparc64/ieee1275/grub-install.in: Likewise.
17270 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
17272 Unit testing framework for GRUB.
17274 * Makefile.in: Test framework build rules for 'make check'.
17275 * conf/tests.rmk: Build rules for individual tests and framework.
17277 * include/grub/test.h: Header file for whitebox tests.
17278 * tests/lib/functional_test.c: Framework support for whitebox
17280 * tests/lib/test.c: Common whitebox testing code for unit and
17282 * tests/lib/unit_test.c: Framework support for whitebox unit
17285 * tests/util/grub-shell-tester.in: Support utility for grub-script
17287 * tests/util/grub-shell.in: Utility to execute grub-script
17288 commands in a Qemu instance.
17290 * tests/example_functional_test.c: Example whitebox functional
17292 * tests/example_grub_script_test.in: Example grub-script test.
17293 * tests/example_scripted_test.in: Example scripted test.
17294 * tests/example_unit_test.c: Example whitebox unit test.
17296 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
17298 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
17299 Add loader/i386/multiboot_mbi.c.
17300 (multiboot2_mod_SOURCES): Likewise.
17301 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
17302 (multiboot2_mod_SOURCES): Likewise.
17303 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
17304 (grub_multiboot_make_mbi): Likewise.
17305 (grub_multiboot_free_mbi): Likewise.
17306 (grub_multiboot_init_mbi): Likewise.
17307 (grub_multiboot_add_module): Likewise.
17308 (grub_multiboot_set_bootdev): Likewise.
17309 * loader/i386/multiboot.c (mbi): Removed.
17310 (mbi_dest): Likewise.
17311 (alloc_mbi): New variable.
17312 (grub_multiboot_payload_size): Removed. All users updated.
17313 (grub_multiboot_pure_size): New variable.
17314 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
17315 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
17316 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
17317 (grub_fill_multiboot_mmap): Likewise.
17318 (grub_multiboot_get_bootdev): Likewise.
17319 (grub_multiboot): Use multiboot_mbi functions.
17320 * loader/i386/multiboot_mbi.c: New file.
17322 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17324 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
17325 it would result in module crash.
17327 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17329 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
17330 (grub_ofconsole_getwh): Split to ...
17331 (grub_ofconsole_getwh): ... this.
17332 (grub_ofconsole_dimensions): ...and this.
17333 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
17335 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
17337 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
17339 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17341 * loader/i386/pc/multiboot2.c: Removed stalled file.
17343 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17345 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
17346 Reported by: Grégoire Sutre
17348 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
17350 * util/misc.c (canonicalize_file_name): New function.
17351 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
17352 instead of realpath().
17354 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
17356 * util/grub-install.in (usage): Clarify meaning of --root-directory,
17357 and make it clearer that it's optional. Based on confusion
17360 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17362 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
17363 in premature implicit newline.
17365 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17367 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
17368 which resulted in garbled command line at the end of screen.
17370 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17372 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
17373 initialization with similar approach as with other Linux loaders.
17375 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17377 Fix i386-ieee1275 build.
17379 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
17380 and grub_term_height() for video_{width,height} initialization.
17382 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17384 Fix grub-emu build.
17386 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
17388 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17389 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
17391 Support for multiple terminals.
17393 * Makefile.in (pkglib_DATA): terminal.lst.
17394 (terminal.lst): New target.
17395 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
17396 (GRUB_MOD_INIT(handler)): Likewise.
17397 (GRUB_MOD_FINI(handler)): Likewise.
17398 * commands/help.c (grub_cmd_help): Handle multiple terminals.
17399 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
17400 * commands/sleep.c (do_print): Use grub_term_restore_pos.
17401 (grub_cmd_sleep): Use grub_term_save_pos.
17402 * commands/terminal.c: New file.
17403 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
17404 commands/terminal.c and lib/charset.c.
17405 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
17406 (pkglib_MODULES): Add terminal.mod.
17407 (terminal_mod_SOURCES): New variable.
17408 (terminal_mod_CFLAGS): Likewise.
17409 (terminal_mod_LDFLAGS): Likewise.
17410 * genhandlerlist.sh: Don't handle terminals.
17411 * genmk.rb: Generate terminal-*.lst.
17412 * genterminallist.sh: New file.
17413 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
17414 (grub_is_valid_utf8): Likewise.
17415 (grub_utf8_to_ucs4_alloc): Likewise.
17416 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
17417 (grub_menu_register_viewer): Changed argument.
17418 (grub_menu_try_text): New proto.
17419 (grub_gfxmenu_try_hook): New declaration.
17420 * include/grub/normal.h (grub_normal_exit_level): New declaration.
17421 (grub_menu_init_page): Additional argument term.
17422 (grub_normal_init_page): Likewise.
17423 (grub_cmdline_get): Arguments simplified.
17424 (grub_utf8_to_ucs4_alloc): Removed.
17425 (grub_print_ucs4): Additional argument term.
17426 (grub_getstringwidth): Likewise.
17427 (grub_print_message_indented): Likewise.
17428 (grub_menu_text_register_instances): New proto.
17429 (grub_show_menu): Likewise.
17430 (read_terminal_list): Likewise.
17431 (grub_set_more): Likewise.
17432 * include/grub/parser.h: Include handler.h.
17433 * include/grub/reader.h: Rewritten.
17434 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
17435 (GRUB_TERM_WIDTH): Changed to function.
17436 (GRUB_TERM_HEIGHT): Likewise.
17437 (GRUB_TERM_BORDER_WIDTH): Likewise.
17438 (GRUB_TERM_BORDER_HEIGHT): Likewise.
17439 (GRUB_TERM_NUM_ENTRIES): Likewise.
17440 (GRUB_TERM_ENTRY_WIDTH): Likewise.
17441 (GRUB_TERM_CURSOR_X): Likewise.
17442 (grub_term_input_class): Likewise.
17443 (grub_term_output_class): Likewise.
17444 (grub_term_outputs_disabled): New declaration.
17445 (grub_term_inputs_disabled): Likewise.
17446 (grub_term_outputs): Likewise.
17447 (grub_term_inputs): Likewise.
17448 (grub_term_register_input): Rewritten.
17449 (grub_term_register_output): Likewise.
17450 (grub_term_unregister_input): Likewise.
17451 (grub_term_unregister_output): Likewise.
17452 (FOR_ACTIVE_TERM_INPUTS): New macro.
17453 (FOR_DISABLED_TERM_INPUTS): Likewise.
17454 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
17455 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
17456 * include/grub/terminfo.h: Add oterm argument to all protypes.
17457 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
17458 Use grub_rescue_run.
17459 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
17461 * kern/reader.c: Removed. All users updated.
17462 * kern/rescue_reader.c (grub_rescue_init): Removed.
17463 (grub_rescue_reader): Likewise.
17464 (grub_register_rescue_reader): Likewise.
17465 (grub_rescue_run): New function based on kern/reader.c.
17466 * kern/term.c: Adapted for multiterm.
17467 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
17468 (grub_is_valid_utf8): Likewise.
17469 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
17470 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
17472 * loader/i386/linux.c (grub_linux_boot): Likewise.
17473 * normal/auth.c (grub_username_get): New function.
17474 (grub_auth_check_authentication): Use grub_username_get.
17475 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
17476 * normal/color.c: Adapt for multiterm.
17477 * normal/main.c (read_config_file): Don't use grub_reader_loop.
17478 (grub_normal_init_page): Additional argument term.
17479 (read_lists): Call read_terminal_lists.
17480 (grub_enter_normal_mode): Call grub_cmdline_run.
17481 Handle grub_normal_exit_level.
17482 (grub_cmd_normal): Make reentrant.
17483 (grub_cmd_normal_exit): New function.
17484 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
17485 * normal/menu.c: Adapt for multiterm.
17486 * normal/menu_entry.c: Likewise.
17487 * normal/menu_text.c: Likewise.
17488 * normal/menu_viewer.c: Removed. All users updated.
17489 * normal/term.c: New file.
17490 * util/console.c: Change order of includes to workaround a bug in
17492 * term/terminfo.c: New argument oterm on all exported functions.
17494 * util/grub-editenv.c (grub_term_input_class): Removed.
17495 (grub_term_output_class): Likewise.
17497 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
17499 Make loader output a bit more user-friendly.
17501 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
17502 is being loaded. Likewise for the Hurd.
17504 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
17505 that kernel of FreeBSD ${version} is being loaded.
17507 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
17509 (grub_cmd_initrd): Likewise.
17510 * util/grub.d/10_linux.in (linux_entry): Print message indicating
17511 that Linux ${version} is being loaded. Likewise for initrd.
17513 2010-01-09 Carles Pina i Estany <carles@pina.cat>
17515 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
17517 2010-01-08 Carles Pina i Estany <carles@pina.cat>
17519 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
17520 (GRUB_MOD_INIT): Gettextizze.
17521 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
17522 (GRUB_MOD_INIT): Gettextizze.
17523 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
17524 (grub_cmd_linux): Capitalise Linux.
17525 (GRUB_MOD_INIT): Gettextizze.
17526 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
17527 (grub_cmd_linux): Capitalise Linux.
17528 (GRUB_MOD_INIT): Gettextizze.
17529 * loader/i386/linux.c: Include `<grub/i18n.h>'.
17530 (grub_cmd_linux): Capitalise Linux.
17531 (GRUB_MOD_INIT): Gettextizze.
17532 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
17533 (GRUB_MOD_INIT): Gettextizze.
17534 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
17535 (grub_cmd_linux): Capitalise Linux.
17536 (GRUB_MOD_INIT): Gettextizze.
17537 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
17538 (grub_cpu_xnu_init): Gettextizze.
17539 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
17540 (GRUB_MOD_INIT): Gettextizze.
17541 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
17542 (GRUB_MOD_INIT): Gettextizze.
17543 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
17544 (grub_linux_load64): Capitalise Linux.
17545 (GRUB_MOD_INIT): Gettextizze.
17546 * loader/xnu.c: Include `<grub/i18n.h>'.
17547 (GRUB_MOD_INIT): Gettextizze.
17548 * po/POTFILES: Add `loader/efi/appleloader.c',
17549 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
17550 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
17551 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
17552 `loader/i386/xnu.c', `loader/multiboot_loader.c',
17553 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
17554 and `loader/xnu.c'.
17556 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17558 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
17560 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17562 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
17563 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
17564 * util/mkisofs/mkisofs.c (main): Readjust --version output.
17566 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17568 Reset Multiboot 2 support. New loader implements the draft in
17569 /branches/multiboot2 and shares as much code as possible with the
17570 production Multiboot 1 implementation.
17572 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
17573 * loader/multiboot2.c: Likewise.
17574 * loader/i386/multiboot_helper.S: Likewise.
17575 * include/multiboot2.h: Replace with latest version from the draft
17576 in /branches/multiboot2.
17578 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
17579 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
17580 and `loader/multiboot2.c'.
17581 (pkglib_MODULES): Add `multiboot2.mod'.
17582 (multiboot2_mod_SOURCES): New variable.
17583 (multiboot2_mod_LDFLAGS): Likewise.
17584 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
17586 * conf/i386-pc.rmk: Likewise.
17588 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
17589 (multiboot_mod_SOURCES): Remove variable.
17590 (multiboot_mod_LDFLAGS): Likewise.
17591 (multiboot_mod_CFLAGS): Likewise.
17593 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
17594 `<multiboot2.h>' instead of `<multiboot.h>'.
17595 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
17596 (MULTIBOOT_HEADER_MAGIC): New macros.
17598 * loader/multiboot_loader.c (module_version_status): Remove variable.
17599 (find_multi_boot2_header): Remove function.
17600 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
17601 logic. Always check for the Multiboot version we're compiling for.
17602 (grub_cmd_module_loader): Likewise.
17603 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
17604 command instead of `multiboot'.
17606 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17608 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
17609 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
17612 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17613 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17615 Fix breakage introduced with previous commit.
17617 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
17619 * normal/handler.c (read_handler_list): Revert part of previous commit
17620 affecting this file.
17621 * normal/main.c (read_lists): Move read_handler_list() call back to ...
17622 (grub_normal_execute): ... here.
17624 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17626 Merge prefix-redefinition-fix branch.
17628 * normal/autofs.c (read_fs_list): Make function capable of being
17629 run multiple times, gracefuly replacing the previous data
17631 * normal/dyncmd.c (read_command_list): Likewise.
17632 * normal/handler.c (read_handler_list): Likewise.
17633 * normal/main.c (read_lists): New function. Calls all the
17634 list reading functions.
17635 (grub_normal_execute): Use read_lists() instead of calling all
17636 list reading functions explicitly. Register read_lists() as a
17637 variable hook attached to ${prefix}.
17639 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17641 Merge crypto branch.
17643 * Makefile.in (pkglib_DATA): Add crypto.lst.
17644 (crypto.lst): New target.
17645 * commands/hashsum.c: New file.
17646 * commands/password.c (check_password): Use grub_crypto_memcmp.
17647 * commands/password_pbkdf2.c: New file.
17648 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
17649 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
17650 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
17651 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
17652 -I$(srcdir)/lib/libgcrypt_wrap.
17653 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
17654 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
17655 password_pbkdf2.mod.
17656 (crypto_mod_SOURCES): New variable.
17657 (crypto_mod_CFLAGS): Likewise.
17658 (crypto_mod_LDFLAGS): Likewise.
17659 (hashsum_mod_SOURCES): New variable.
17660 (hashsum_mod_CFLAGS): Likewise.
17661 (hashsum_mod_LDFLAGS): Likewise.
17662 (pbkdf2_mod_SOURCES): New variable.
17663 (pbkdf2_mod_CFLAGS): Likewise.
17664 (pbkdf2_mod_LDFLAGS): Likewise.
17665 (password_pbkdf2_mod_SOURCES): New variable.
17666 (password_pbkdf2_mod_CFLAGS): Likewise.
17667 (password_pbkdf2_mod_LDFLAGS): Likewise.
17668 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
17669 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
17670 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
17671 Include conf/gcry.rmk.
17672 * include/grub/auth.h: Rewritten.
17673 * include/grub/crypto.h: New file.
17674 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
17675 * include/grub/normal.h (read_crypto_list): New prototype.
17676 * lib/crypto.c: New file.
17677 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
17678 * lib/pbkdf2.c: Likewise.
17679 * normal/auth.c (grub_auth_strcmp): Removed.
17680 (grub_iswordseparator): Likewise.
17681 (grub_auth_strword): Likewise.
17682 (is_authenticated): Use grub_strword.
17683 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
17684 and grub_strword. Pass entered password to authentication callback.
17685 * normal/crypto.c: New file.
17686 * normal/main.c: Call read_crypto_list.
17687 * util/grub-mkpasswd-pbkdf2.c: New file.
17688 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
17690 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
17692 Fix descent and ascent calculation.
17694 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
17695 (options): New option "asce".
17697 (add_char): Ignore invalid glyphs for descent calculation.
17698 Calculate ascent from actual content.
17699 (print_glyphs): Use 'asce'.
17700 (write_font): Likewise. Allow ascent override.
17701 (main): Handle "asce" option.
17703 2010-01-06 Carles Pina i Estany <carles@pina.cat>
17705 * kern/err.c: Include `<grub/i18n.h>'.
17706 (grub_print_error): Add full stop. Gettextizze.
17707 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
17708 (grub_bsd_load_elf): Capitalise ELF.
17709 (grub_cmd_freebsd_loadenv): Add `s' in error string.
17710 (grub_cmd_freebsd_module): Likewise.
17711 (grub_cmd_freebsd_module_elf): Likewise.
17712 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
17714 2010-01-06 Carles Pina i Estany <carles@pina.cat>
17716 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
17717 * commands/search_file.c (HELP_MESSAGE): New macro.
17718 * commands/search_label.c (HELP_MESSAGE): Likewise.
17719 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
17720 * po/POTFILES: Add `commands/search_file.c',
17721 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
17722 `commands/search.c'.
17724 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
17726 * config.rpath: Update from Gnulib.
17728 2010-01-05 Yves Blusseau <blusseau@zetam.org>
17730 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
17732 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
17734 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
17736 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17738 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
17739 arguments to fread so that we get a return value in bytes, rather
17740 than something that will normally be rounded down to 0.
17741 Adjust error handling to avoid producing garbage when size_t is not
17742 the same size as long long.
17744 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17746 * util/mkisofs/write.c (padblock_write): Check return value of
17749 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
17751 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
17754 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
17756 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
17758 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
17759 instead of manual alignment.
17760 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
17761 verbose). Avoid attempts to read past end of the device
17762 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
17763 but GRUB_DISK_CACHE_SIZE may exceed that).
17765 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
17767 * commands/crc.c (grub_cmd_crc): Abort on read errors.
17768 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
17771 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17773 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
17775 (grub_efi_piwg_device_path): New structure
17776 (grub_efi_piwg_device_path_t): New type.
17777 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
17778 (devpath_1): Transform to a structure. All users updated.
17779 (devpath_2): Likewise.
17780 (devpath_3): Likewise.
17781 (devpath_4): Likewise.
17782 (devpath_5): Likewise.
17784 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17786 * loader/efi/appleloader.c: Restored. Update all users.
17788 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17790 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
17792 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
17793 (struct boot_blocklist): Move from here ...
17794 * include/grub/i386/pc/boot.h [ASM_FILE]
17795 (struct grub_boot_blocklist): ... to here. Update all users.
17796 (setup): Only initialize `start' member of `first_block'
17797 structure. Add assert() calls to verify the other members.
17799 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
17800 (generate_image): Fix broken blocklist length initialization.
17801 Add assert() call to verify blocklist `segment' field.
17803 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17805 * loader/efi/appleloader.c: Remove. Update all users.
17807 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17809 * boot/i386/pc/boot.S: Update copyright year.
17810 * boot/i386/pc/cdboot.S: Likewise.
17811 * boot/i386/pc/diskboot.S: Likewise.
17812 * boot/i386/pc/lnxboot.S: Likewise.
17813 * boot/i386/pc/pxeboot.S: Likewise.
17814 * bus/pci.c: Likewise.
17815 * commands/cmp.c: Likewise.
17816 * commands/help.c: Likewise.
17817 * commands/hexdump.c: Likewise.
17818 * commands/i386/pc/halt.c: Likewise.
17819 * commands/i386/pc/play.c: Likewise.
17820 * commands/i386/pc/vbeinfo.c: Likewise.
17821 * commands/ls.c: Likewise.
17822 * commands/test.c: Likewise.
17823 * disk/dmraid_nvidia.c: Likewise.
17824 * disk/i386/pc/biosdisk.c: Likewise.
17825 * disk/ieee1275/nand.c: Likewise.
17826 * disk/ieee1275/ofdisk.c: Likewise.
17827 * disk/lvm.c: Likewise.
17828 * disk/raid.c: Likewise.
17829 * disk/raid6_recover.c: Likewise.
17830 * disk/scsi.c: Likewise.
17831 * fs/affs.c: Likewise.
17832 * fs/cpio.c: Likewise.
17833 * fs/ext2.c: Likewise.
17834 * fs/hfs.c: Likewise.
17835 * fs/iso9660.c: Likewise.
17836 * fs/ntfs.c: Likewise.
17837 * fs/sfs.c: Likewise.
17838 * fs/udf.c: Likewise.
17839 * fs/ufs.c: Likewise.
17840 * fs/xfs.c: Likewise.
17841 * gencmdlist.sh: Likewise.
17842 * genmk.rb: Likewise.
17843 * include/grub/disk.h: Likewise.
17844 * include/grub/efi/api.h: Likewise.
17845 * include/grub/efi/efi.h: Likewise.
17846 * include/grub/efi/pe32.h: Likewise.
17847 * include/grub/elf.h: Likewise.
17848 * include/grub/fs.h: Likewise.
17849 * include/grub/i386/at_keyboard.h: Likewise.
17850 * include/grub/i386/pc/memory.h: Likewise.
17851 * include/grub/i386/pc/vbe.h: Likewise.
17852 * include/grub/i386/pci.h: Likewise.
17853 * include/grub/i386/tsc.h: Likewise.
17854 * include/grub/ieee1275/ieee1275.h: Likewise.
17855 * include/grub/ntfs.h: Likewise.
17856 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
17857 * include/grub/sparc64/libgcc.h: Likewise.
17858 * include/grub/symbol.h: Likewise.
17859 * include/grub/types.h: Likewise.
17860 * include/multiboot2.h: Likewise.
17861 * io/gzio.c: Likewise.
17862 * kern/device.c: Likewise.
17863 * kern/disk.c: Likewise.
17864 * kern/efi/efi.c: Likewise.
17865 * kern/efi/mm.c: Likewise.
17866 * kern/elf.c: Likewise.
17867 * kern/file.c: Likewise.
17868 * kern/i386/dl.c: Likewise.
17869 * kern/i386/pc/init.c: Likewise.
17870 * kern/i386/pc/startup.S: Likewise.
17871 * kern/ieee1275/ieee1275.c: Likewise.
17872 * kern/ieee1275/init.c: Likewise.
17873 * kern/main.c: Likewise.
17874 * kern/mm.c: Likewise.
17875 * kern/powerpc/dl.c: Likewise.
17876 * kern/sparc64/dl.c: Likewise.
17877 * kern/x86_64/dl.c: Likewise.
17878 * lib/hexdump.c: Likewise.
17879 * loader/efi/appleloader.c: Likewise.
17880 * loader/i386/ieee1275/linux.c: Likewise.
17881 * loader/i386/pc/chainloader.c: Likewise.
17882 * loader/i386/pc/linux.c: Likewise.
17883 * loader/i386/pc/multiboot2.c: Likewise.
17884 * loader/ieee1275/multiboot2.c: Likewise.
17885 * loader/multiboot2.c: Likewise.
17886 * loader/multiboot_loader.c: Likewise.
17887 * loader/powerpc/ieee1275/linux.c: Likewise.
17888 * normal/completion.c: Likewise.
17889 * normal/menu_entry.c: Likewise.
17890 * partmap/apple.c: Likewise.
17891 * util/grub.d/10_hurd.in: Likewise.
17892 * util/hostfs.c: Likewise.
17893 * video/readers/png.c: Likewise.
17895 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
17897 * include/grub/misc.h (GNUC_PREREQ): New macro.
17898 (ATTRIBUTE_ERROR): New macro.
17899 * include/grub/list.h (grub_bad_type_cast_real): Use
17902 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17904 * normal/menu_text.c (print_message): Change messages.
17906 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17908 * normal/menu_entry.c (store_completion): Gettextizze.
17910 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17912 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
17914 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17916 * po/POTFILES: Sort correctly.
17918 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17920 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
17921 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
17922 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
17924 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
17925 summary. Gettextizze the strings.
17926 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
17927 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
17928 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
17930 (GRUB_MOD_INIT): Remove command name from summary.
17931 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
17933 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
17934 * term/i386/pc/serial.c (options): Add full stops.
17935 (GRUB_MOD_INIT): Remove command name from the summary.
17937 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17939 * commands/acpi.c: Gettextizze help strings and/or options. Include
17940 `grub/i18n.h' if needed.
17941 * commands/blocklist.c: Likewise.
17942 * commands/boot.c: Likewise.
17943 * commands/cat.c: Likewise.
17944 * commands/cmp.c: Likewise.
17945 * commands/configfile.c: Likewise.
17946 * commands/crc.c: Likewise.
17947 * commands/date.c: Likewise.
17948 * commands/echo.c: Likewise.
17949 * commands/efi/fixvideo.c: Likewise.
17950 * commands/efi/loadbios.c: Likewise.
17951 * commands/gptsync.c: Likewise.
17952 * commands/halt.c: Likewise.
17953 * commands/handler.c: Likewise.
17954 * commands/hdparm.c: Likewise.
17955 * commands/hexdump.c: Likewise.
17956 * commands/i386/cpuid.c: Likewise.
17957 * commands/i386/pc/drivemap.c: Likewise.
17958 * commands/i386/pc/halt.c: Likewise.
17959 * commands/i386/pc/pxecmd.c: Likewise.
17960 * commands/i386/pc/vbeinfo.c: Likewise.
17961 * commands/i386/pc/vbetest.c: Likewise.
17962 * commands/ieee1275/suspend.c: Likewise.
17963 * commands/keystatus.c: Likewise.
17964 * commands/loadenv.c: Likewise.
17965 * commands/ls.c: Likewise.
17966 * commands/lsmmap.c: Likewise.
17967 * commands/lspci.c: Likewise.
17968 * commands/memrw.c: Likewise.
17969 * commands/minicmd.c: Likewise.
17970 * commands/parttool.c: Likewise.
17971 * commands/password.c: Likewise.
17972 * commands/probe.c: Likewise.
17973 * commands/read.c: Likewise.
17974 * commands/reboot.c: Likewise.
17975 * commands/search.c: Likewise.
17976 * commands/sleep.c: Likewise.
17977 * commands/test.c: Likewise.
17978 * commands/true.c: Likewise.
17979 * commands/usbtest.c: Likewise.
17980 * commands/videotest.c: Likewise.
17981 * commands/xnu_uuid.c: Likewise.
17982 * disk/loopback.c: Likewise.
17983 * hello/hello.c: Likewise.
17984 * loader/i386/bsd.c: Likewise.
17985 * term/i386/pc/serial.c: Likewise.
17986 * po/POTFILES: Add new files.
17988 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
17990 * term/i386/pc/at_keyboard.c
17991 (keyboard_controller_wait_untill_ready): Rename to ...
17992 (keyboard_controller_wait_until_ready): ... this. Update all users.
17994 2010-01-01 Carles Pina i Estany <carles@pina.cat>
17996 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
17997 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
17998 string using string width.
17999 * normal/menu_text.c (grub_print_message_indented): Use
18000 grub_print_spaces and not print_spaces.
18001 (print_timeout): Likewise.
18002 (print_spaces): Move to...
18003 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
18005 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
18007 Import from Gnulib.
18009 * gnulib/getdelim.c: New file.
18010 * gnulib/getline.c: Likewise.
18012 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
18014 * include/grub/list.h (grub_assert_fail): Removed.
18015 (grub_bad_type_cast_real): New function.
18016 (grub_bad_type_cast): New macro.
18017 (GRUB_AS_LIST): Use grub_bad_type_cast.
18018 (GRUB_AS_LIST_P): Likewise.
18019 (GRUB_AS_NAMED_LIST): Likewise.
18020 (GRUB_AS_NAMED_LIST_P): Likewise.
18021 (GRUB_AS_PRIO_LIST): Likewise.
18022 (GRUB_AS_PRIO_LIST_P): Likewise.
18023 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
18025 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
18027 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
18030 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
18032 * configure.ac: Check for TARGET_CFLAGS initialization before we
18033 initialize it ourselves (sigh).
18034 Move a few modifications to TARGET_CFLAGS to be unconditional
18035 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
18038 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
18039 * term/i386/pc/at_keyboard.c
18040 (keyboard_controller_wait_untill_ready): Likewise.
18041 (keyboard_controller_led): Rename `led_status' paramter to avoid
18044 2009-12-28 Carles Pina i Estany <carles@pina.cat>
18046 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
18049 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18051 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
18053 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18055 * normal/menu_text.c (grub_print_message_indented): Prevent
18056 past-the-end-of-array dereference.
18058 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18060 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
18061 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
18063 2009-12-27 Carles Pina i Estany <carles@pina.cat>
18065 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
18066 * normal/main.c (grub_normal_read_line): Remove a space from the
18069 2009-12-27 Carles Pina i Estany <carles@pina.cat>
18071 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
18072 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18073 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
18074 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
18075 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18076 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18077 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18079 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18081 * video/readers/jpeg.c (cmd): Declare.
18082 (grub_cmd_jpegtest): Use `grub_command_t' type.
18083 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18085 (GRUB_MOD_FINI): Use `cmd' to unregister.
18086 * video/readers/png.c (cmd): Declare.
18087 (grub_cmd_pngtest): Use `grub_command_t' type.
18088 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18090 (GRUB_MOD_FINI): Use `cmd' to unregister.
18091 * video/readers/tga.c (cmd): Declare.
18092 (grub_cmd_tgatest): Use `grub_command_t' type.
18093 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18095 (GRUB_MOD_FINI): Use `cmd' to unregister.
18097 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18099 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
18101 * kern/corecmd.c (grub_register_core_commands): Likewise.
18102 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
18103 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
18104 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
18105 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18106 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
18107 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
18108 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
18109 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
18110 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18111 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18112 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18113 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
18114 * normal/handler.c (insert_handler): Likewise.
18115 * normal/main.c (GRUB_MOD_INIT): Likewise.
18116 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
18118 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18120 * commands/help.c (grub_cmd_help): Print the command name before the
18122 (GRUB_MOD_INIT): Remove command name from the summary.
18123 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
18125 * lib/arg.c (find_long): Print the command name before the summary.
18126 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
18128 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
18129 * commands/cat.c (GRUB_MOD_INIT): Likewise.
18130 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
18131 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
18132 * commands/crc.c (GRUB_MOD_INIT): Likewise.
18133 * commands/date.c (GRUB_MOD_INIT): Likewise.
18134 * commands/echo.c (GRUB_MOD_INIT): Likewise.
18135 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
18136 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
18137 * commands/handler.c (GRUB_MOD_INIT): Likewise.
18138 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
18139 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
18140 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
18141 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
18142 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
18143 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
18144 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
18145 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
18146 * commands/ls.c (GRUB_MOD_INIT): Likewise.
18147 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
18148 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
18149 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
18150 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
18151 * commands/password.c (GRUB_MOD_INIT): Likewise.
18152 * commands/probe.c (GRUB_MOD_INIT): Likewise.
18153 * commands/read.c (GRUB_MOD_INIT): Likewise.
18154 * commands/search.c (GRUB_MOD_INIT): Likewise.
18155 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
18156 * commands/test.c (GRUB_MOD_INIT): Likewise.
18157 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
18158 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
18159 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
18160 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
18161 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
18162 * lib/arg.c (GRUB_MOD_INIT): Likewise.
18163 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
18164 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
18165 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18166 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
18167 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
18168 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
18169 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
18170 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
18172 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18174 Use search command for preliminar UUID search.
18176 * commands/search.c: Split into ...
18177 * commands/search_wrap.c: ...this
18178 * commands/search.c: ...and this.
18179 * commands/search_file.c: New file.
18180 * commands/search_label.c: New file.
18181 * commands/search_uuid.c: New file.
18182 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
18183 Add commands/search_wrap.c, commands/search_file.c,
18184 commands/search_label.c and commands/search_uuid.c.
18185 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
18186 (search_mod_SOURCES): Set to commands/search_wrap.c.
18187 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
18189 (search_fs_file_mod_SOURCES): New variable.
18190 (search_fs_file_mod_CFLAGS): Likewise.
18191 (search_fs_file_mod_LDFLAGS): Likewise.
18192 (search_label_mod_SOURCES): Likewise.
18193 (search_label_mod_CFLAGS): Likewise.
18194 (search_label_mod_LDFLAGS): Likewise.
18195 (search_fs_uuid_mod_SOURCES): New variable.
18196 (search_fs_uuid_mod_CFLAGS): Likewise.
18197 (search_fs_uuid_mod_LDFLAGS): Likewise.
18198 (fs_file_mod_SOURCES): Removed.
18199 (fs_file_mod_CFLAGS): Likewise.
18200 (fs_file_mod_LDFLAGS): Likewise.
18201 (fs_uuid_mod_SOURCES): Removed.
18202 (fs_uuid_mod_CFLAGS): Likewise.
18203 (fs_uuid_mod_LDFLAGS): Likewise.
18204 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
18205 Set to util/grub-install.in.
18206 * disk/fs_file.c: Removed.
18207 * disk/fs_uuid.c: Likewise.
18208 * include/grub/search.h: New file.
18209 * util/grub-install.in: Handle sparc64.
18210 Create and use load.cfg.
18211 * util/sparc64/ieee1275/grub-install.in: Removed.
18213 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18215 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
18216 Ignore return status if CF is cleared.
18217 (grub_biosdisk_get_diskinfo_standard): Likewise.
18219 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
18221 * term/i386/pc/at_keyboard.c
18222 (keyboard_controller_wait_untill_ready): New function.
18223 (grub_keyboard_controller_write, grub_keyboard_controller_read)
18224 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
18225 for keyboard polling, rather than duplicate the same loop. This
18226 saves a few bytes in code size.
18228 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18230 Support for (pxe[:server[:gateway]]) syntax and
18231 use environment variable for PXE.
18233 * commands/i386/pc/pxecmd.c (options): Removed.
18234 (print_ip): Removed.
18235 (grub_cmd_pxe): Removed
18236 (grub_cmd_pxe_unload): New function.
18237 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
18238 (grub_pxe_your_ip): Made static.
18239 (grub_pxe_default_server_ip): Likewise.
18240 (grub_pxe_default_gateway_ip): Likewise.
18241 (grub_pxe_blksize): Likewise.
18242 (parse_ip): New function.
18243 (grub_pxe_open): Support server and gateway specification.
18244 (grub_pxe_close): Free disk->data.
18245 (grub_pxefs_open): Use disk->data.
18246 (grub_pxefs_read): Likewise.
18247 (grub_env_write_readonly): New function.
18248 (set_mac_env): Likewise.
18249 (set_env_limn_ro): Likewise.
18250 (parse_dhcp_vendor): Likewise.
18251 (grub_pxe_detect): Set the environment variables.
18252 (set_ip_env): New function.
18253 (write_ip_env): Likewise.
18254 (grub_env_write_pxe_default_server): Likewise.
18255 (grub_env_write_pxe_default_gateway): Likewise.
18256 (grub_env_write_pxe_blocksize): Likewise.
18257 (GRUB_MOD_INIT(pxe)): Set environment variables.
18258 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
18259 (grub_pxe_mac_addr_t): ... this. All users updated.
18260 (grub_pxe_your_ip): Removed.
18261 (grub_pxe_server_ip): Likewise.
18262 (grub_pxe_gateway_ip): Likewise.
18263 (grub_pxe_blksize): Likewise.
18265 2009-12-25 Carles Pina i Estany <carles@pina.cat>
18267 * commands/help.c: Include `<grub/i18n.h>'.
18268 (grub_cmd_help): Gettextizze.
18269 (GRUB_MOD_INIT): Likewise.
18270 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
18271 (GRUB_MOD_INIT): Gettextizze.
18272 * commands/search.c: Include `<grub/i18n.h>'.
18273 (options): Gettextizze.
18274 (GRUB_MOD_INIT): Gettextizze.
18275 * lib/arg.c: Include `<grub/i18n.h>'.
18276 (help_options): Gettextizze.
18277 (find_long): Likewise.
18278 (grub_arg_show_help): Likewise.
18279 * normal/dyncmd.c: Include `<grub/i18n.h>'.
18280 (read_command_list): Gettextizze.
18281 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
18282 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
18284 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
18286 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
18287 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
18288 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
18289 (led_status): New variable.
18290 (keyboard_controller_led): New function.
18291 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
18292 update led status for caps lock, num lock and scroll lock.
18294 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
18296 * util/hostdisk.c (open_device): Fix a comment.
18298 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18300 * util/grub-install.in (host_os): New variable.
18301 * util/i386/efi/grub-install.in (host_os): Likewise.
18303 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18305 * util/mkisofs/write.c (padblock_write): Abort when given an
18306 excedingly large embed image, instead of silently truncating it.
18308 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18310 * include/multiboot.h: Indentation fixes.
18312 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18314 * include/multiboot.h (struct multiboot_aout_symbol_table)
18315 (struct multiboot_elf_section_header_table): New structure
18316 declarations (stolen from GRUB Legacy).
18317 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
18320 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
18321 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
18324 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18326 * include/multiboot.h: Make comments src2texi-friendly.
18328 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18330 For consistency with [multiboot]/docs/boot.S.
18332 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
18333 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
18334 (MULTIBOOT_MAGIC2): Rename from this ...
18335 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
18337 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18339 * include/multiboot.h: Remove `<grub/types.h>'.
18340 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
18341 types. Update all users.
18343 2009-12-25 Carles Pina i Estany <carles@pina.cat>
18345 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
18346 `couldn't' and `can not' by `cannot'.
18347 * commands/i386/pc/drivemap.c: Likewise.
18348 * disk/ata.c: Likewise.
18349 * disk/ieee1275/nand.c: Likewise.
18350 * fs/affs.c: Likewise.
18351 * fs/fat.c: Likewise.
18352 * fs/hfs.c: Likewise.
18353 * fs/hfsplus.c: Likewise.
18354 * fs/iso9660.c: Likewise.
18355 * fs/jfs.c: Likewise.
18356 * fs/minix.c: Likewise.
18357 * fs/reiserfs.c: Likewise.
18358 * fs/sfs.c: Likewise.
18359 * fs/udf.c: Likewise.
18360 * fs/ufs.c: Likewise.
18361 * fs/xfs.c: Likewise.
18362 * loader/powerpc/ieee1275/linux.c: Likewise.
18363 * loader/sparc64/ieee1275/linux.c: Likewise.
18364 * util/grub-probe.c: Likewise.
18365 * util/misc.c: Likewise.
18367 2009-12-24 Carles Pina i Estany <carles@pina.cat>
18369 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
18371 * commands/acpi.c: Likewise.
18372 * commands/blocklist.c: Likewise.
18373 * commands/efi/loadbios.c: Likewise.
18374 * commands/i386/pc/drivemap.c: Likewise.
18375 * commands/loadenv.c: Likewise.
18376 * commands/memrw.c: Likewise.
18377 * commands/password.c: Likewise.
18378 * commands/videotest.c: Likewise.
18379 * disk/ata.c: Likewise.
18380 * disk/ata_pthru.c: Likewise.
18381 * disk/dmraid_nvidia.c: Likewise.
18382 * disk/ieee1275/nand.c: Likewise.
18383 * disk/ieee1275/ofdisk.c: Likewise.
18384 * disk/loopback.c: Likewise.
18385 * disk/lvm.c: Likewise.
18386 * disk/mdraid_linux.c: Likewise.
18387 * disk/raid.c: Likewise.
18388 * disk/raid6_recover.c: Likewise.
18389 * disk/scsi.c: Likewise.
18390 * efiemu/main.c: Likewise.
18391 * efiemu/mm.c: Likewise.
18392 * efiemu/pnvram.c: Likewise.
18393 * efiemu/symbols.c: Likewise.
18394 * font/font.c: Likewise.
18395 * fs/cpio.c: Likewise.
18396 * fs/hfsplus.c: Likewise.
18397 * fs/iso9660.c: Likewise.
18398 * fs/jfs.c: Likewise.
18399 * fs/minix.c: Likewise.
18400 * fs/ntfs.c: Likewise.
18401 * fs/ntfscomp.c: Likewise.
18402 * fs/reiserfs.c: Likewise.
18403 * fs/ufs.c: Likewise.
18404 * fs/xfs.c: Likewise.
18405 * gettext/gettext.c: Likewise.
18406 * include/grub/auth.h: Likewise.
18407 * kern/elf.c: Likewise.
18408 * kern/file.c: Likewise.
18409 * kern/ieee1275/init.c: Likewise.
18410 * kern/ieee1275/mmap.c: Likewise.
18411 * kern/ieee1275/openfw.c: Likewise.
18412 * kern/powerpc/dl.c: Likewise.
18413 * kern/sparc64/dl.c: Likewise.
18414 * lib/arg.c: Likewise.
18415 * loader/i386/bsd.c: Likewise.
18416 * loader/i386/bsdXX.c: Likewise.
18417 * loader/i386/efi/linux.c: Likewise.
18418 * loader/i386/efi/xnu.c: Likewise.
18419 * loader/i386/ieee1275/linux.c: Likewise.
18420 * loader/i386/linux.c: Likewise.
18421 * loader/i386/multiboot.c: Likewise.
18422 * loader/i386/pc/linux.c: Likewise.
18423 * loader/i386/pc/multiboot2.c: Likewise.
18424 * loader/i386/xnu.c: Likewise.
18425 * loader/ieee1275/multiboot2.c: Likewise.
18426 * loader/macho.c: Likewise.
18427 * loader/machoXX.c: Likewise.
18428 * loader/multiboot2.c: Likewise.
18429 * loader/multiboot_loader.c: Likewise.
18430 * loader/powerpc/ieee1275/linux.c: Likewise.
18431 * loader/sparc64/ieee1275/linux.c: Likewise.
18432 * loader/xnu.c: Likewise.
18433 * loader/xnu_resume.c: Likewise.
18434 * mmap/i386/pc/mmap.c: Likewise.
18435 * normal/menu_viewer.c: Likewise.
18436 * partmap/acorn.c: Likewise.
18437 * partmap/amiga.c: Likewise.
18438 * partmap/apple.c: Likewise.
18439 * script/lexer.c: Likewise.
18440 * term/gfxterm.c: Likewise.
18441 * term/i386/pc/serial.c: Likewise.
18442 * term/i386/pc/vga.c: Likewise.
18443 * term/ieee1275/ofconsole.c: Likewise.
18444 * term/terminfo.c: Likewise.
18445 * video/bitmap.c: Likewise.
18446 * video/efi_gop.c: Likewise.
18447 * video/efi_uga.c: Likewise.
18448 * video/fb/video_fb.c: Likewise.
18449 * video/i386/pc/vbe.c: Likewise.
18450 * video/readers/tga.c: Likewise.
18451 * video/video.c: Likewise.
18453 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
18455 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
18456 * commands/lspci.c: Likewise.
18457 * commands/probe.c: Likewise.
18458 * commands/xnu_uuid.c: Likewise.
18459 * conf/i386-coreboot.rmk: Likewise.
18460 * conf/i386-efi.rmk: Likewise.
18461 * conf/i386-ieee1275.rmk: Likewise.
18462 * conf/i386-pc.rmk: Likewise.
18463 * conf/powerpc-ieee1275.rmk: Likewise.
18464 * conf/sparc64-ieee1275.rmk: Likewise.
18465 * conf/x86_64-efi.rmk: Likewise.
18466 * fs/i386/pc/pxe.c: Likewise.
18467 * gettext/gettext.c: Likewise.
18468 * include/grub/efi/graphics_output.h: Likewise.
18469 * include/grub/i386/pc/memory.h: Likewise.
18470 * kern/env.c: Likewise.
18471 * kern/i386/qemu/startup.S: Likewise.
18472 * lib/i386/pc/biosnum.c: Likewise.
18473 * lib/i386/relocator.c: Likewise.
18474 * lib/i386/relocator_asm.S: Likewise.
18475 * lib/relocator.c: Likewise.
18476 * loader/i386/bsd.c: Likewise.
18477 * loader/i386/multiboot.c: Likewise.
18478 * loader/i386/pc/chainloader.c: Likewise.
18479 * loader/i386/xnu.c: Likewise.
18480 * loader/xnu.c: Likewise.
18481 * normal/main.c: Likewise.
18482 * normal/menu_text.c: Likewise.
18483 * util/getroot.c: Likewise.
18484 * util/grub-mkconfig_lib.in: Likewise.
18485 * util/grub.d/00_header.in: Likewise.
18486 * util/i386/pc/grub-mkimage.c: Likewise.
18487 * util/mkisofs/eltorito.c: Likewise.
18488 * util/mkisofs/exclude.h: Likewise.
18489 * util/mkisofs/hash.c: Likewise.
18490 * util/mkisofs/iso9660.h: Likewise.
18491 * util/mkisofs/joliet.c: Likewise.
18492 * util/mkisofs/mkisofs.c: Likewise.
18493 * util/mkisofs/mkisofs.h: Likewise.
18494 * util/mkisofs/multi.c: Likewise.
18495 * util/mkisofs/name.c: Likewise.
18496 * util/mkisofs/rock.c: Likewise.
18497 * util/mkisofs/tree.c: Likewise.
18498 * util/mkisofs/write.c: Likewise.
18499 * video/efi_gop.c: Likewise.
18501 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
18503 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
18506 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18508 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
18509 * genmk.rb (class SCRIPT): Modify the target file instead of source.
18511 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18513 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
18514 (GRUB_MOD_INIT(memrw)): Update help line.
18516 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18518 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
18519 Use grub_extcmd_t. All users updated.
18520 (options): New variable.
18521 (grub_cmd_read): Restructure for readability. Support "-v" option.
18522 (grub_cmd_write): Restructure for readability.
18524 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18526 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
18528 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18530 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
18531 with the actual contents of the correspondending make variable.
18532 * util/grub-mkrescue.in (pkglib_DATA): New variable.
18533 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
18534 specifying `*.lst' and `efiemu??.o'
18536 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18538 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
18539 after function name.
18540 Noticed by Rene Engelhard <rene@debian.org>.
18542 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18544 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
18545 (options): New variable.
18546 (iospace): Likewise.
18547 (grub_lspci_iter): List IO spaces if "-i" was given.
18548 (grub_cmd_lspci): Parse options.
18549 (GRUB_MOD_INIT(lspci)): Use extcmd.
18550 (GRUB_MOD_FINI(lspci)): Likewise.
18552 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18554 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
18555 `function' keyword.
18556 Patch by Tony Mancill <tmancill@debian.org>.
18558 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18560 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
18561 (grub_uhci_portstatus): Likewise.
18562 (grub_uhci_portstatus): Add necessary delay.
18563 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
18565 2009-12-21 Carles Pina i Estany <carles@pina.cat>
18567 * commands/acpi.c (options): Fix capitalizations and/or full stops.
18568 (GRUB_MOD_INIT): Likewise.
18569 * commands/boot.c (GRUB_MOD_INIT): Likewise.
18570 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
18571 * commands/echo.c (options): Fix capitalizations and/or full stops.
18572 * commands/efi/loadbios.c (enable_rom_area): Likewise.
18573 (enable_rom_area): Likewise.
18574 (GRUB_MOD_INIT): Likewise.
18575 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
18576 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
18577 * commands/handler.c (GRUB_MOD_INIT): Likewise.
18578 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
18579 * commands/hexdump.c (options): Likewise.
18580 * commands/i386/cpuid.c (options): Likewise.
18581 (GRUB_MOD_INIT): Likewise.
18582 * commands/i386/pc/drivemap.c (options): Likewise.
18583 (GRUB_MOD_INIT): Likewise.
18584 * commands/i386/pc/halt (options): Likewise.
18585 (GRUB_MOD_INIT): Likewise.
18586 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
18587 * commands/i386/pc/pxecmd.c (options): Likewise.
18588 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
18589 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
18590 * commands/keystatus.c (options): Likewise.
18591 (GRUB_MOD_INIT): Likewise.
18592 * commands/loadenv.c (options): Likewise.
18593 * commands/ls.c (options): Likewise.
18594 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
18595 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
18596 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
18597 * commands/parttool.c (helpmsg): Likewise.
18598 * commands/probe.c (options): Likewise.
18599 * commands/read.c (GRUB_MOD_INIT): Likewise.
18600 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
18601 * commands/search.c (options): Likewise.
18602 * commands/sleep.c (options): Likewise.
18603 * commands/test.c (GRUB_MOD_INIT): Likewise.
18604 * commands/true.c (GRUB_MOD_INIT): Likewise.
18605 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
18606 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
18607 * lib/arg.c (help_options): Likewise.
18608 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
18610 * po/POTFILES: Add `commands/loadenv.c'.
18612 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
18614 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
18615 instead of specifying them explicit.
18617 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18619 * NEWS: Add grub-probe support for GNU/Hurd.
18621 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18623 * NEWS: gettext was added after 1.97.
18625 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18627 * util/mkisofs/msdos_partition.h: New file (based on
18628 include/grub/msdos_partition.h).
18629 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
18630 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
18631 (ld_options, main): Recognize --protective-msdos-label.
18632 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
18633 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
18634 (padblock_write): If `use_protective_msdos_label' is set, patch a
18635 protective DOS-style label in the output image.
18637 * util/grub-mkrescue.in: Use --protective-msdos-label.
18639 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18641 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
18644 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18646 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
18648 (ld_options, main): Recognize `--embedded-boot'.
18649 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
18651 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
18652 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
18653 (padblock_write): Likewise. Rewrite to support embedded boot image.
18655 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
18656 for BIOS-based disk boot instead of only ElTorito.
18658 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18660 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
18661 build (not needed for bootstrap).
18663 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18665 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
18666 from i386-pc build (not needed for bootstrap).
18667 Rewrite a pair of strings.
18669 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18671 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
18673 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
18675 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
18677 2009-12-21 Andreas Born <futur.andy@googlemail.com>
18679 * kern/env.c (grub_env_context_open): Mark exported variable for
18682 2009-12-21 Andreas Born <futur.andy@googlemail.com>
18684 * kern/env.c (grub_env_export): Create nonexistent variables before
18687 2009-12-20 Carles Pina i Estany <carles@pina.cat>
18689 * include/grub/auth.h: Include `<grub/i18n.h>'.
18690 (GRUB_GET_PASSWORD): Gettextizze string.
18691 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
18693 (grub_utf8_to_ucs4_alloc): Fix indentation.
18694 (grub_print_ucs4): Likewise.
18695 (grub_getstringwidth): Likewise.
18696 (print_message_indented): New declaration.
18697 * normal/auth.c: Include `<grub/i18n.h>'.
18698 (grub_auth_check_authentication): Gettexttize string.
18699 * normal/cmdline.c: Include `<grub/i18n.h>'.
18700 (grub_cmdline_get): Gettextizze.
18701 * normal/color.c: Include `<grub/i18n.h>'.
18702 (grub_parse_color_name_pair): Gettexttize strings.
18703 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
18704 string (use `print_message_indented').
18705 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
18706 `include/grub/normal.h'.
18707 (print_message_indented): Renamed to ...
18708 (grub_print_message_indented): ... this. Remove `static' qualifer (now
18709 used in normal/main.c).
18710 (print_message): Use `grub_print_message_indented' instead of
18711 `print_message_indented'.
18712 (print_timeout): Likewise.
18713 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
18714 (grub_normal_print_device_info): Gettexttize strings.
18715 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
18717 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18719 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
18720 of arguments. Return number of tokens and not arguments. All users
18723 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18725 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
18726 non-MSDOS paritions.
18728 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18730 * include/grub/types.h (UNUSED): Removed since it conflicts with
18731 NetBSD headers. All users changed to direct __attribute__ ((unused)).
18732 Reported by Grégoire Sutre.
18734 2009-12-19 Carles Pina i Estany <carles@pina.cat>
18736 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
18737 (grub_print_ucs4_alloc): Likewise.
18738 (grub_getstringwidth): Likewise.
18739 * normal/main.c (grub_normal_init_page): Gettextize version string.
18740 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
18741 (getstringwidth): Renamed to ...
18742 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
18743 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
18744 (grub_print_ucs4): Remove `static' qualifer (now used in
18746 * po/POTFILES: Add normal/main.c.
18748 2009-12-19 Carles Pina i Estany <carles@pina.cat>
18750 * normal/menu_text.c (STANDARD_MARGIN): New macro.
18751 (print_message_indented): Add `margin_left' and `margin_right'
18753 (print_message): Update `print_message_indented' calls. Adds '\n' to the
18755 (print_timeout): Use `print_message_indented' to print the message.
18756 Deletes `second_stage' parameter.
18757 (run_menu): Update `print_timeout' calls.
18759 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18761 Fix console palette on OpenFirmware.
18763 * term/ieee1275/ofconsole.c (MAX): Removed.
18764 (colors): Redone based on VGA palette.
18765 (grub_ofconsole_setcolor): Discard brightness bit since only 8
18766 colors are supported.
18767 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
18769 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18771 Fix potential EfiEmu double prepare.
18773 * efiemu/main.c (prepared): New variable
18774 (grub_efiemu_unload): Set prepare to '0'.
18775 (grub_efiemu_prepare): Return if already prepared. Set prepared.
18777 set_virtual_address_map support.
18779 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
18781 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
18783 (grub_efiemu_crc32): Likewise.
18784 (grub_efiemu_crc64): Likewise.
18785 (grub_efiemu_set_virtual_address_map): Likewise.
18786 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
18788 (grub_autoefi_set_virtual_address_map): Likewise.
18789 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
18790 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
18791 Restructure flow to accomodate it.
18792 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
18793 (grub_efiemu_crc): Recompute CRC32.
18794 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
18795 (efiemu_ptv_relocated): ... this. Made global. All users updated.
18796 * efiemu/symbols.c (relocated_handle): New variable.
18797 (grub_efiemu_free_syms): Free relocated_handle.
18798 (grub_efiemu_alloc_syms): Allocate relocated_handle.
18799 (grub_efiemu_write_sym_markers): New function.
18800 (grub_efiemu_set_virtual_address_map): Likewise.
18802 Newer XNU parameters.
18804 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
18805 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
18806 (grub_xnu_fill_devicetree): New prototype.
18807 (grub_xnu_heap_real_start): New variable.
18808 * loader/xnu.c (get_name_ptr): New function.
18809 (grub_xnu_load_driver): Fill namelen and name.
18811 64-bit xnu support.
18813 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
18814 and 'loader/macho64.c'.
18815 * conf/i386-pc.rmk: Likewise.
18816 * conf/x86_64-efi.rmk: Likewise.
18817 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
18818 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
18819 * include/grub/macho.h (grub_macho_segment64): New structure.
18820 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
18821 (grub_macho_size32): ... to this.
18822 (grub_macho32_get_entry_point): Renamed from ...
18823 (grub_macho_get_entry_point32): ... to this.
18824 (grub_macho_contains_macho64): New prototype.
18825 (grub_macho_size64): Likewise.
18826 (grub_macho_get_entry_point64): Likewise.
18827 (grub_macho32_load): Renamed from ...
18828 (grub_macho_load32): ... to this.
18829 (grub_macho32_filesize): Renamed from ...
18830 (grub_macho_filesize32): ... to this.
18831 (grub_macho32_readfile): Renamed from ...
18832 (grub_macho_readfile32): ... to this.
18833 (grub_macho_filesize64): New prototype.
18834 (grub_macho_readfile64): Likewise.
18835 (grub_macho_parse32): Likewise.
18836 (grub_macho_parse64): Likewise.
18837 * loader/macho.c: Split into ...
18838 * loader/machoXX.c: ... and this. Replace 32 with XX.
18839 * loader/macho32.c: New file.
18840 * loader/macho64.c: Likewise.
18841 * loader/xnu.c (grub_xnu_is_64bit): New variable.
18842 (grub_cmd_xnu_kernel): Make 32-bit only.
18843 (grub_cmd_xnu_kernel64): New function.
18844 (grub_xnu_load_driver): Support Mach-O 64.
18845 (grub_cmd_xnu_mkext): Likewise.
18846 * util/grub.d/30_os-prober.in (osx_entry): New function.
18847 Generate entries for 64-bit boot too.
18849 Eliminate ad-hoc tree format in XNU and EfiEmu.
18851 * efiemu/main.c (grub_efiemu_prepare): Update comment.
18852 * efiemu/pnvram.c: Rewritten to use environment variables.
18855 Inline utf16_to_utf8.
18857 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
18858 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
18860 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
18862 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
18863 * commands/usbtest.c (grub_usb_get_string): ... move here.
18864 (usb_print_str): Fix error handling.
18865 * include/grub/usb.h (grub_usb_get_string): Remove.
18867 UTF-8 to UTF-16 transformation.
18869 * conf/common.rmk (pkglib_MODULES): Add charset.mod
18870 (charset_mod_SOURCES): New variable.
18871 (charset_mod_CFLAGS): Likewise.
18872 (charset_mod_LDFLAGS): Likewise.
18873 * include/grub/utf.h: New file.
18874 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
18876 Support for device properties.
18878 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
18879 (grub_xnu_devprop_device_header): Likewise.
18880 (grub_xnu_devprop_device_descriptor): Likewise.
18881 (grub_xnu_devprop_add_device): New prototype.
18882 (grub_xnu_devprop_remove_device): Likewise.
18883 (grub_xnu_devprop_remove_property): Likewise.
18884 (grub_xnu_devprop_add_property_utf8): Likewise.
18885 (grub_xnu_devprop_add_property_utf16): Likewise.
18886 (grub_cpu_xnu_init): Likewise.
18887 (grub_cpu_xnu_fini): Likewise.
18888 (grub_cpu_xnu_unload): Likewise.
18889 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
18890 (property_descriptor): Likewise.
18891 (devices): New variable.
18892 (grub_xnu_devprop_remove_property): New function.
18893 (grub_xnu_devprop_add_device): Likewise.
18894 (grub_xnu_devprop_remove_device): Likewise.
18895 (grub_xnu_devprop_add_property): Likewise.
18896 (grub_xnu_devprop_add_property_utf8): Likewise.
18897 (grub_xnu_devprop_add_property_utf16): Likewise.
18898 (hextoval): Likewise.
18899 (grub_cpu_xnu_fill_devprop): Likewise.
18900 (grub_cmd_devprop_load): Likewise.
18901 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
18902 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
18903 (cmd_devprop_load): New variable.
18904 (grub_cpu_xnu_init): New function.
18905 (grub_cpu_xnu_fini): Likewise.
18906 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
18907 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
18908 (grub_cmd_xnu_devtree): Likewise.
18909 (hextoval): New function.
18910 (unescape): Likewise.
18911 (grub_xnu_fill_devicetree): Likewise.
18913 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
18914 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
18916 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18918 Workaround for broken ATI VBE.
18920 * video/i386/pc/vbe.c (last_set_mode): New variable.
18921 (grub_vbe_set_video_mode): Set 'last_set_mode'.
18922 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
18923 (grub_video_vbe_setup): Don't check for reserved flag.
18925 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
18927 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
18928 the `find' command.
18930 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
18932 UUID support for HFS.
18934 * fs/hfs.c (grub_hfs_uuid): New function.
18935 (grub_hfs_fs): New value .uuid.
18936 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
18938 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
18940 Fix a segfault with parsing unknown long options.
18942 * util/grub-mkrelpath.c (options): Zero terminate it.
18944 2009-12-13 Carles Pina i Estany <carles@pina.cat>
18946 * include/grub/misc.h (grub_puts): New declaration.
18947 (grub_puts_): Likewise.
18948 * kern/misc.c (grub_puts): New definition.
18949 (grub_puts_): Likewise.
18951 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
18953 * util/grub-probe.c (probe): Improve error message.
18955 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
18957 * loader/i386/multiboot_elfxx.c
18958 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
18961 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
18963 Relocator framework
18965 * loader/i386/xnu_helper.S: Removed. All users updated.
18966 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
18967 (relocator_mod_SOURCES): New variable.
18968 (relocator_mod_CFLAGS): Likewise.
18969 (relocator_mod_LDFLAGS): Likewise.
18970 (relocator_mod_ASFLAGS): Likewise.
18971 * conf/x86_64.rmk: Likewise.
18972 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
18973 (grub_multiboot_payload_entry_offset): Likewise.
18974 (grub_multiboot_forward_relocator): Likewise.
18975 (grub_multiboot_forward_relocator_end): Likewise.
18976 (grub_multiboot_backward_relocator): Likewise.
18977 (grub_multiboot_backward_relocator_end): Likewise.
18978 (grub_multiboot_payload_eip): New variable.
18979 (grub_multiboot_payload_orig): Likewise.
18980 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
18981 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
18982 * include/grub/i386/memory.h
18983 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
18984 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
18985 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
18986 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
18987 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
18988 * include/grub/i386/relocator.h: New file.
18989 * include/grub/x86_64/relocator.h: Likewise.
18990 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
18991 (XNU_RELOCATOR): New macro.
18992 (grub_xnu_launcher_start): Remove.
18993 (grub_xnu_launcher_end): Likewise.
18994 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
18995 (grub_xnu_heap_real_start): Remove.
18996 (grub_xnu_heap_start): Change to void *. All users updated.
18997 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
18998 * lib/i386/relocator.c: New file.
18999 * lib/i386/relocator_asm.S: Likewise.
19000 * lib/i386/relocator_backward.S: Likewise.
19001 * lib/mips/relocator.c: Likewise.
19002 * lib/mips/relocator_asm.S: Likewise.
19003 * lib/relocator.c: Likewise.
19004 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
19006 (playground): Likewise.
19007 (grub_multiboot_payload_orig): New variable.
19008 (grub_multiboot_payload_dest): Likewise.
19009 (grub_multiboot_payload_size): Likewise.
19010 (grub_multiboot_payload_eip): Likewise.
19011 (grub_multiboot_payload_esp): Likewise.
19012 (grub_multiboot_boot): Use grub_relocator32_boot.
19013 (grub_multiboot_unload): Free relocators.
19014 (grub_multiboot): Setup stack. Use relocators.
19015 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
19016 (grub_multiboot_load_elfXX): Use relocators.
19017 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
19018 (grub_multiboot_payload_size): Likewise.
19019 (grub_multiboot_payload_dest): Likewise.
19020 (grub_multiboot_payload_entry_offset): Likewise.
19021 (grub_multiboot_forward_relocator): Likewise.
19022 (grub_multiboot_backward_relocator): Likewise.
19023 (grub_multiboot_real_boot): Likewise.
19024 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
19025 (grub_xnu_entry_point): Likewise.
19026 (grub_xnu_arg1): Likewise.
19027 (grub_xnu_stack): Likewise.
19028 (grub_xnu_launch): Removed.
19029 (grub_xnu_boot_resume): New function.
19030 (grub_xnu_boot): Use relocators.
19031 * loader/i386/xnu_helper.S: Removed.
19032 * loader/xnu.c (grub_xnu_heap_start): New variable.
19033 (grub_xnu_heap_size): Likewise.
19034 (grub_xnu_heap_malloc): Use relocators.
19035 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
19037 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
19039 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
19042 2009-12-13 Carles Pina i Estany <carles@pina.cat>
19044 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
19045 GRUB_ERR_NONE before calling grub_env_set.
19047 2009-12-12 Robert Millan <rmh@aybabtu.com>
19049 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
19050 * genmk.rb (video): New variable.
19051 (CLEANFILES, VIDEOFILES): Add #{video}.
19052 (#{video}): New target rule.
19053 * genvideolist.sh: New file.
19054 * Makefile.in (pkglib_DATA): Add video.lst.
19055 (video.lst): New target rule.
19056 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
19058 * util/grub.d/30_os-prober.in: Replace `vbe' with
19059 ${GRUB_VIDEO_BACKEND}.
19061 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
19063 * THANKS: Add David Miller.
19065 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
19067 libpciaccess support.
19069 * Makefile.in (LIBPCIACCESS): New variable.
19070 (enable_grub_emu_pci): Likewise.
19071 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
19072 util/pci.c and commands/lspci.c.
19073 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
19074 * configure.ac (grub-emu-pci): New option.
19075 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
19076 (grub_pci_device_unmap_range): Likewise.
19077 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
19078 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
19079 (grub_pci_address_t) [!GRUB_UTIL]: New type.
19080 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
19081 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
19082 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
19083 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
19084 * include/grub/pciutils.h: New file.
19085 * util/pci.c: Likewise.
19087 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
19089 * util/misc.c: Don't include <errno.h> twice.
19091 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
19093 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
19094 name in an error message.
19095 (grub_biosdisk_rw): Likewise.
19097 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19099 Eliminate NTFS 4Gib barrier.
19101 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
19102 (read_run_data): Likewise.
19103 (grub_ntfs_read_run_list): Likewise.
19104 (grub_ntfs_read_block): Likewise.
19105 (grub_ntfs_iterate_dir): Likewise.
19106 (read_mft): Likewise.
19107 (read_data): Likewise.
19109 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
19110 to avoid 64-bit division
19111 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
19112 (grub_ntfs_rlst): Use grub_disk_addr_t.
19114 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19116 Eliminate grub-fstest 4Gib barrier.
19118 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
19119 (read_file): Fix error reporting.
19121 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19123 Eliminate hexdump 4Gib barrier.
19125 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
19126 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
19128 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19130 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
19133 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
19135 Remove miscellaneous files in distclean target.
19137 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
19139 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
19141 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
19142 if they're already set. This resolves the conflict between my
19143 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
19144 fixing the --grub-probe option again.
19145 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
19146 change on 2009-10-06, so that we now once again source
19147 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
19149 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
19151 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
19152 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
19153 `util/devicemap.c'.
19155 2009-12-08 Carles Pina i Estany <carles@pina.cat>
19157 * include/grub/misc.h (grub_printf_): New declaration.
19158 * kern/misc.c (grub_printf_): New definition.
19159 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
19160 instead of `grub_printf' and `_'.
19161 * normal/menu_entry.c (store_completion): Likewise.
19163 (grub_menu_entry_run): Likewise.
19164 * normal/menu_text.c (grub_wait_after_message): Likewise.
19165 (notify_booting): Likewise.
19166 (notify_fallback): Likewise.
19167 (notify_execution_failure): Likewise.
19169 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
19171 * configure.ac: Check for vasprintf.
19172 * util/misc.c (asprintf): Move allocation from here ...
19173 (vasprintf): ... to here. New function.
19174 (xasprintf): New function.
19175 * include/grub/util/misc.h (vasprintf, xasprintf): Add
19177 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19178 * util/grub-mkfont.c (write_font): Likewise.
19179 * util/grub-probe.c (probe): Likewise.
19180 * util/hostdisk.c (make_device_name): Likewise.
19182 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
19184 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
19185 anything even prefixed with 'cdrom' as a cdrom.
19187 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
19189 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
19192 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19194 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
19195 grub_gettext_msg_list.
19196 (grub_gettext_gettranslation_from_position): Return const char *
19198 (grub_gettext_translate): Add the translated strings into a list,
19199 returns from the list if existing there.
19200 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
19201 (grub_gettext_delete_list): Delete the list.
19202 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
19203 lang environment variable is changed.
19204 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
19206 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
19208 Rename kernel.mod to kernel.img.
19210 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
19211 (kernel_mod_EXPORTS): Rename to ...
19212 (kernel_img_EXPORTS): ... this.
19213 (kernel_mod_SOURCES): Rename to ...
19214 (kernel_img_SOURCES): ... this.
19215 (kernel_mod_HEADERS): Rename to ...
19216 (kernel_img_HEADERS): ... this. All users updated.
19217 (kernel_mod_CFLAGS): Rename to ...
19218 (kernel_img_CFLAGS): ... this.
19219 (kernel_mod_ASFLAGS): Rename to ...
19220 (kernel_img_ASFLAGS): ... this.
19221 (kernel_mod_LDFLAGS): Rename to ...
19222 (kernel_img_LDFLAGS): ... this.
19223 * conf/x86_64-efi.rmk: Likewise.
19224 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
19225 (read_kernel_image): ... this. All users updated.
19226 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
19228 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19230 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
19231 (print_spaces): New function.
19232 (grub_print_ucs4): New function.
19233 (getstringwidth): New function.
19234 (print_message_indented): New function.
19235 (print_message): Gettexttize strings using print_message_indented.
19236 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
19238 (get_entry_number): Gettextize and uses dynamic terminal width.
19239 (notify_booting, notify_fallback, notify_execution_failure):
19241 * normal/menu_entry.c (store_completion): Cleanup the gettextized
19244 (grub_menu_entry_run): Likewise.
19245 * PO/POTFILES: Add normal/menu_entry.c.
19247 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
19249 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
19251 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19253 * util/grub-install.in: Install gettext .mo files.
19254 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
19256 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19258 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
19261 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
19263 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
19264 non-firmware-dependant one in realmode.S takes precedence.
19266 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
19268 * commands/halt.c: Replace misc arch-specific headers with
19270 * commands/reboot.c: Likewise.
19271 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
19273 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
19274 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
19275 (kernel_img_SOURCES): ... to here.
19277 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
19278 * include/grub/i386/pc/init.h: Likewise.
19279 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
19280 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
19282 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
19284 * include/grub/i386/halt.h: Remove.
19285 * include/grub/i386/reboot.h: Likewise.
19287 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
19289 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
19291 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
19292 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
19293 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
19295 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
19296 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19297 (usage): Add missing comma in printf.
19299 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
19301 Use the same reboot approach on i386 coreboot and qemu as we do on
19304 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
19305 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
19306 * kern/i386/reboot.c: Remove.
19307 * include/grub/i386/reboot.h (grub_reboot): Export function.
19308 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
19309 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
19310 0xf000:0xfff0 instead of 0xffff:0x0000.
19311 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
19312 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
19314 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
19316 Fix $srcdir != $objdir build.
19318 * Makefile.in (po/%.po): Rewrite as ...
19319 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
19321 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
19323 Fix GNU/Hurd grub-install crash.
19324 * util/grub-probe.c (probe): Try to access `path' only when it is not
19327 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19329 Correct module naming.
19331 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
19332 (GRUB_MOD_INIT(efi_uga)): ... to this
19333 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
19334 (GRUB_MOD_FINI(efi_uga)): ... to this
19335 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
19336 (GRUB_MOD_INIT(efi_gop)): ... to this
19337 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
19338 (GRUB_MOD_FINI(efi_gop)): ... to this
19340 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
19342 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
19344 (usage): Translate `arg' strings using gettext().
19345 Thanks to Jordi Mallach for the suggestion.
19347 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19349 GOP support. Based on patch from Bean
19350 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
19352 * video/efi_gop.c: New file.
19353 * include/grub/efi/graphics_output.h: Likewise.
19354 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
19355 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
19357 * conf/x86_64-efi.rmk: Likewise.
19359 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19361 Rename efi_fb to efi_uga.
19363 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
19365 (efi_fb_mod_SOURCES): Rename this ...
19366 (efi_uga_mod_SOURCES): ... to this.
19367 (efi_fb_mod_CFLAGS): Rename this ...
19368 (efi_uga_mod_CFLAGS): ... to this.
19369 (efi_fb_mod_LDFLAGS): Rename this ...
19370 (efi_uga_mod_LDFLAGS): ... to this.
19371 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
19373 (efi_fb_mod_SOURCES): Rename this ...
19374 (efi_uga_mod_SOURCES): ... to this.
19375 (efi_fb_mod_CFLAGS): Rename this ...
19376 (efi_uga_mod_CFLAGS): ... to this.
19377 (efi_fb_mod_LDFLAGS): Rename this ...
19378 (efi_uga_mod_LDFLAGS): ... to this.
19379 * video/efi_fb.c: Move this ...
19380 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
19382 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19384 * po/README: New file. Explain our PO file workflow.
19386 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19388 * po/ChangeLog: Remove. Move relevant entries back to ...
19389 * ChangeLog: ... here.
19390 * po/ca.po: Remove (now handled by TLP).
19391 * po/id.po: Likewise.
19392 * po/zh_CN.po: Likewise.
19393 * Makefile.in (LINGUAS): Initialize in a way that supports
19396 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19398 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
19399 reliing on po/LINGUAS.
19400 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
19401 (po/%.po): ... this.
19403 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19405 * util/i386/efi/grub-mkimage.c: Include "progname.h".
19406 (main): Use `program_name' instead of nonexistent `progname'.
19408 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19410 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19411 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
19413 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
19415 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
19417 * conf/i386-efi.rmk: Likewise.
19418 * conf/i386-ieee1275.rmk: Likewise.
19419 * conf/powerpc-ieee1275.rmk: Likewise.
19420 * conf/sparc64-ieee1275.rmk: Likewise.
19421 * conf/x86_64-efi.rmk: Likewise.
19423 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19425 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
19427 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19429 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
19431 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
19433 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
19434 (grub_mkdevicemap_SOURCES): New variable.
19435 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
19436 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
19437 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
19438 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
19439 (grub_mkdevicemap_SOURCES): Remove.
19440 * conf/i386-efi.rmk: Likewise.
19441 * conf/i386-ieee1275.rmk: Likewise.
19442 * conf/i386-pc.rmk: Likewise.
19443 * conf/powerpc-ieee1275.rmk: Likewise.
19444 * conf/sparc64-ieee1275.rmk: Likewise.
19445 * conf/x86_64-efi.rmk: Likewise.
19446 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
19447 (usage): Fix strings to use `program_name'.
19448 (main): Initialize gettext.
19449 * util/grub-editenv.c: Likewise.
19450 * util/grub-emu.c: Likewise.
19451 * util/grub-fstest.c: Likewise.
19452 * util/grub-mkdevicemap.c: Likewise.
19453 * util/grub-mkfont.c: Likewise.
19454 * util/grub-mkrelpath.c: Likewise.
19455 * util/grub-pe2elf.c: Likewise.
19456 * util/grub-probe.c: Likewise.
19457 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
19458 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
19459 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19461 * util/misc.c: Include `"progname.h"'.
19462 (progname): Remove variable.
19463 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
19465 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19467 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
19468 printf and print a newline after the menuentry header line.
19469 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
19471 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19473 autoconf >= 2.60 support $(localedir).
19475 * INSTALL: Note that autoconf 2.60 is required.
19476 * configure.ac (AC_PREREQ): Bump to 2.60.
19477 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
19478 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
19480 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
19482 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
19485 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19487 * normal/main.c (grub_normal_read_line): Fix off-by-one
19490 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19492 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
19493 "parser.grub" in grub_command_execute() call.
19495 2009-11-24 Carles Pina i Estany <carles@pina.cat>
19497 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
19498 * conf/i386-efi.rmk: Likewise.
19499 * conf/i386-ieee1275.rmk: Likewise.
19500 * conf/i386-pc.rmk: Likewise.
19501 * conf/powerpc-ieee1275.rmk: Likewise.
19502 * conf/sparc64-ieee1275.rmk: Likewise.
19503 * conf/x86_64-efi.rmk: Likewise.
19504 * gettext/gettex.c: Include <grub/i18n.h>.
19505 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
19507 * include/grub/i18n.h: ... to here
19508 * include/grub/i18n.h: ... to here.
19509 * kern/misc.c: Include <grub/i18n.h>
19510 (grub_gettext_dummy): Move above user.
19512 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19514 * util/Makefile.in (install-local): Convert a `for' into a normal
19517 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
19519 * autogen.sh: Add automake call.
19520 * config.guess: Remove.
19521 * config.sub: Likewise.
19522 * install-sh: Likewise.
19524 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19526 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
19528 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19530 * util/Makefile.in (install-local): Convert a make `$(foreach)'
19531 function to a normal shell `for'.
19533 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19535 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19537 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19539 * util/grub-mkrelpath.c: New file.
19540 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
19541 (grub_mkrelpath_SOURCES): New variable.
19542 * include/grub/util/misc.h: New function prototype.
19543 * util/misc.c (make_system_path_relative_to_its_root): New function.
19545 * util/grub-mkconfig_lib.in (bindir): New variable.
19546 (grub_mkrelpath): Likewise.
19547 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
19549 * util/probe.c (probe): Make the file path relative to its root.
19550 Change a info message to use the GRUB path. Enable again the
19551 check if we can read the file with GRUB facilities.
19553 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
19556 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19558 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
19561 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19563 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
19566 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19568 * util/getroot.c (grub_util_is_dmraid): New function.
19569 (grub_util_get_dev_abstraction): Treat dmraid and multipath
19570 devices as normal ones, not as LVM.
19572 2009-11-23 Carles Pina i Estany <carles@pina.cat>
19574 * conf/common.rmk: Add grub-gettext_lib target and updates
19575 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
19577 * gettext/gettext.c: New file. (Reads mo files).
19578 * include/grub/file.h (grub_file_pread): New prototype.
19579 * include/grub/i18n.h (_): New prototype.
19580 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
19582 * kern/misc.c (grub_gettext_dummy): New function.
19583 * normal/menu_text.c: Include <grub/i18n.h>.
19584 * normal/menu_text.c (print_timeout): Gettexttize string.
19585 * normal/menu_text.c (print_message): Gettexttize string.
19586 * po/POTFILES: Add `normal/menu_text.c'.
19587 * po/ca.po: Add new translations.
19588 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
19589 gettext module and defines locale_dir and lang in grub.cfg.
19590 * NEWS: Add gettext support.
19592 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19594 * util/hostdisk.c: Include `<grub/i18n.h>'.
19595 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
19596 (make_device_name): Rewrite using asprintf.
19597 (convert_system_partition_to_system_disk): Replace 0 with NULL.
19598 (find_system_device): If a device is not found, generate one just
19599 by reusing the OS path name.
19600 (read_device_map): Make it permissible for device.map not to exist.
19602 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19604 * script/sh/execute.c: Move from here ...
19605 * script/execute.c: ... to here. Update all users.
19606 * script/sh/function.c: Move from here ...
19607 * script/function.c: ... to here. Update all users.
19608 * script/sh/lexer.c: Move from here ...
19609 * script/lexer.c: ... to here. Update all users.
19610 * script/sh/main.c: Move from here ...
19611 * script/main.c: ... to here. Update all users.
19612 * script/sh/parser.y: Move from here ...
19613 * script/parser.y: ... to here. Update all users.
19614 * script/sh/script.c: Move from here ...
19615 * script/script.c: ... to here. Update all users.
19617 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19619 * configure.ac: Detect all `emu' platforms. Define
19620 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
19621 --enable-grub-emu logic. Disable include/grub/machine
19622 symlink on `emu' platforms.
19624 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
19625 * gensymlist.sh.in: Likewise.
19627 * include/grub/i386/coreboot/machine.h: Remove file.
19628 * include/grub/i386/efi/machine.h: Likewise.
19629 * include/grub/i386/ieee1275/machine.h: Likewise.
19630 * include/grub/i386/pc/machine.h: Likewise.
19631 * include/grub/i386/qemu/machine.h: Likewise.
19632 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19633 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19634 * include/grub/x86_64/efi/machine.h: Likewise.
19636 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
19637 * commands/halt.c: Likewise.
19638 * commands/reboot.c: Likewise.
19639 * include/grub/autoefi.h: Likewise.
19640 * include/grub/i386/at_keyboard.h: Likewise.
19641 * include/grub/i386/kernel.h: Likewise.
19642 * include/grub/i386/loader.h: Likewise.
19643 * include/grub/i386/pc/memory.h: Likewise.
19644 * kern/dl.c: Likewise.
19645 * kern/i386/coreboot/init.c: Likewise.
19646 * loader/i386/bsd.c: Likewise.
19647 * loader/i386/linux.c: Likewise.
19648 * loader/multiboot_loader.c: Likewise.
19649 * term/i386/pc/serial.c: Likewise.
19650 * term/usb_keyboard.c: Likewise.
19652 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
19653 `<grub/machine/machine.h>'
19654 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
19655 * util/misc.c: Remove `<grub/machine/machine.h>' and
19656 `<grub/machine/time.h>'.
19658 * Makefile.in (enable_grub_emu): Remove variable.
19659 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
19661 * conf/any-emu.rmk: New file.
19662 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
19663 (grub_emu_init.c): Move from here ...
19664 * conf/any-emu.rmk: ... to here.
19666 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
19667 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
19668 * conf/any-emu.rmk: ... to here.
19670 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19672 * include/grub/parser.h (grub_parser_register): Document need
19673 of `name' parameter.
19674 * normal/main.c (grub_normal_read_line): Simplify prompt string.
19675 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
19678 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19680 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
19682 * include/grub/i18n.h (N_): New macro.
19683 * util/mkisofs/mkisofs.h: Likewise.
19684 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
19686 (usage): Use gettext() to translate help strings when printing them.
19688 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19690 Based on patch from Bean
19691 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
19693 * video/efi_fb.c: New file.
19694 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
19695 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
19697 * conf/x86_64-efi.rmk: Likewise.
19699 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
19701 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
19702 * util/i386/pc/grub-setup.c: Likewise.
19704 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
19706 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
19708 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
19709 file_get_storage_info to implement grub_guess_root_device.
19711 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19713 * Makefile.in (target): Use make's builtin $(shell) function
19714 instead of calling directly $(SHELL) to create the locale directories,
19715 inside the $(foreach) function.
19717 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19719 * util/grub-mkrescue.in: Print an error and usage if output option
19720 has not been given.
19722 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19724 Patch from Loïc Minier <loic.minier@ubuntu.com>.
19725 * util/grub.d/30_os-prober.in: Cope with Linux entries where
19726 root and /boot are on different devices.
19728 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19730 Fix build for srcdir != objdir.
19732 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
19733 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
19735 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
19736 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
19737 reference for input.
19739 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19741 * util/grub-mkrescue.in: Use source directory direcly (without copiing
19742 or hardlinking it). Remove -J option, Joliet is not compatible with
19743 multiple source directories.
19745 2009-11-21 Carles Pina i Estany <carles@pina.cat>
19746 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19748 * util/grub-mkrescue.in: Recognize `--override-directory' option.
19749 (process_input_dir): New function. Process an arbitrary input
19751 Misc adjustments to support both "override mode" and system-wide mode.
19753 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
19755 * configure.ac (UNIFONT_BDF): Rename to ...
19756 (FONT_SOURCE): ... this. Update all users.
19758 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
19760 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
19761 to the list of unifont files to look for.
19763 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19765 Patch from Joe Auricchio <jauricchio@gmail.com>
19766 * commands/minicmd.c (grub_mini_cmd_clear): New function.
19767 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
19768 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
19770 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
19772 * Makefile.in (install-local): Add a missing backslash.
19774 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
19776 * include/grub/x86_64/io.h: New file.
19778 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19780 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
19781 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
19782 Include `"progname.h"'.
19783 (main): Initialize gettext.
19784 * util/i386/pc/grub-setup.c: Gettexttize.
19785 * util/i386/pc/grub-mkimage.c: Likewise.
19787 * Makefile.in (po/*.po): Redefine as ...
19788 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
19790 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
19792 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19794 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
19795 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
19796 (program_name): Remove.
19797 (main): Initialize gettext support.
19798 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
19799 Include `<libintl.h>'.
19802 * util/mkisofs/eltorito.c: Gettexttize.
19803 * util/mkisofs/joliet.c: Likewise.
19804 * util/mkisofs/mkisofs.c: Likewise.
19805 * util/mkisofs/multi.c: Likewise.
19806 * util/mkisofs/rock.c: Likewise.
19807 * util/mkisofs/tree.c: Likewise.
19808 * util/mkisofs/write.c: Likewise.
19810 * po/POTFILES: Update with new files.
19812 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19814 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
19815 * util/mkisofs/iso9660.h: Likewise.
19816 * util/mkisofs/joliet.c: Likewise.
19817 * util/mkisofs/mkisofs.c: Likewise.
19818 * util/mkisofs/mkisofs.h: Likewise.
19819 * util/mkisofs/rock.c: Likewise.
19820 * util/mkisofs/tree.c: Likewise.
19821 * util/mkisofs/write.c: Likewise.
19823 * util/mkisofs/eltorito.c (rcsid): Remove.
19824 * util/mkisofs/hash.c: Likewise.
19825 * util/mkisofs/joliet.c: Likewise.
19826 * util/mkisofs/name.c: Likewise.
19827 * util/mkisofs/rock.c: Likewise.
19828 * util/mkisofs/tree.c: Likewise.
19829 * util/mkisofs/write.c: Likewise.
19831 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19833 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
19834 instead of static allocation.
19835 * util/mkisofs/match.h: Likewise.
19837 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19839 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
19840 and `util/grub.d/10_linux.in'.
19841 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
19842 translatable Shell files.
19844 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19846 * Makefile.in ($(srcdir)/aclocal.m4): New target.
19848 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19850 * INSTALL: Document Automake is needed for bootstrap.
19851 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
19852 * util/grub.d/10_kfreebsd.in (bindir): New variable.
19853 Add gettext initialization.
19854 (kfreebsd_entry): Make menuentry output translatable.
19856 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19858 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
19859 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
19860 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
19861 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
19862 (LINGUAS): Auto-generate using `po/LINGUAS'.
19863 * po/LINGUAS: New file.
19865 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19867 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
19869 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
19870 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
19871 bindtextdomain() calls for gettext initialization.
19873 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19875 * gnulib/progname.c: New file (imported from Gnulib).
19876 * gnulib/progname.h: Likewise.
19877 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19878 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
19879 (usage): Replace `progname' with `program_name'.
19880 (main): Use set_program_name() for program name initialization.
19882 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19884 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
19886 * Makefile.in (CPPFLAGS): ... to here.
19888 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19890 * aclocal.m4: Move from here ...
19891 * acinclude.m4: ... to here.
19892 * autogen.sh: Add call to `aclocal'.
19893 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
19895 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19897 * Makefile.in (CLEANFILES): Add `po/*.mo'.
19898 (LINGUAS): New variable.
19899 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
19900 (install-local): Install MO files.
19901 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
19902 * include/grub/i18n.h: New file.
19903 * po/POTFILES: New file.
19904 * po/ca.po: New file.
19905 * util/grub.d/10_linux.in (bindir): New variable.
19906 Add gettext initialization.
19907 (linux_entry): Make menuentry output translatable.
19908 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
19909 (usage): Make --help output translatable.
19910 (main): Initialize gettext.
19912 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19914 * import_gcry.py: New file (written by Vladimir with minor
19916 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
19918 * INSTALL: Document that Python is required for bootstrap.
19920 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19922 Import ciphers from libgcrypt 1.4.4.
19924 * lib/libgcrypt/cipher/ChangeLog
19925 * lib/libgcrypt/cipher/ac.c
19926 * lib/libgcrypt/cipher/arcfour.c
19927 * lib/libgcrypt/cipher/bithelp.h
19928 * lib/libgcrypt/cipher/blowfish.c
19929 * lib/libgcrypt/cipher/camellia-glue.c
19930 * lib/libgcrypt/cipher/camellia.c
19931 * lib/libgcrypt/cipher/camellia.h
19932 * lib/libgcrypt/cipher/cast5.c
19933 * lib/libgcrypt/cipher/cipher.c
19934 * lib/libgcrypt/cipher/crc.c
19935 * lib/libgcrypt/cipher/des.c
19936 * lib/libgcrypt/cipher/dsa.c
19937 * lib/libgcrypt/cipher/ecc.c
19938 * lib/libgcrypt/cipher/elgamal.c
19939 * lib/libgcrypt/cipher/hash-common.c
19940 * lib/libgcrypt/cipher/hash-common.h
19941 * lib/libgcrypt/cipher/hmac-tests.c
19942 * lib/libgcrypt/cipher/md.c
19943 * lib/libgcrypt/cipher/md4.c
19944 * lib/libgcrypt/cipher/md5.c
19945 * lib/libgcrypt/cipher/primegen.c
19946 * lib/libgcrypt/cipher/pubkey.c
19947 * lib/libgcrypt/cipher/rfc2268.c
19948 * lib/libgcrypt/cipher/rijndael-tables.h
19949 * lib/libgcrypt/cipher/rijndael.c
19950 * lib/libgcrypt/cipher/rmd.h
19951 * lib/libgcrypt/cipher/rmd160.c
19952 * lib/libgcrypt/cipher/rsa.c
19953 * lib/libgcrypt/cipher/seed.c
19954 * lib/libgcrypt/cipher/serpent.c
19955 * lib/libgcrypt/cipher/sha1.c
19956 * lib/libgcrypt/cipher/sha256.c
19957 * lib/libgcrypt/cipher/sha512.c
19958 * lib/libgcrypt/cipher/tiger.c
19959 * lib/libgcrypt/cipher/twofish.c
19960 * lib/libgcrypt/cipher/whirlpool.c
19962 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19964 Fix build for systems without error().
19966 * gnulib/error.c: New file (imported from Gnulib).
19967 * gnulib/error.h: Likewise.
19968 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
19969 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
19970 (this variable is now used by error()).
19972 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
19974 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
19975 instead of relying that char is signed.
19977 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
19979 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
19980 blocksize different from specified.
19981 (grub_pxefs_read): Likewise.
19983 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
19985 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
19987 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
19988 (grub_ata_readwrite): Likewise. Update 2 format strings.
19989 (grub_atapi_read): Likewise.
19991 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
19992 * conf/i386.rmk (pkglib_MODULES): ... to here ...
19993 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
19994 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
19995 (ata_mod_LDFLAGS): Move from here ...
19996 * conf/i386.rmk: ... to here ...
19997 * conf/x86_64-efi.rmk: ... and here.
19998 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
19999 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
20001 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
20003 Relicense multiboot.h, with RMS' blessing.
20005 * include/multiboot.h: Change to X11 license.
20007 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
20009 Support --version in grub-mkisofs.
20011 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
20012 (OPTION_VERSION): New macro.
20013 (ld_options): Recognize --version.
20014 (usage): Move `program_name' from here ...
20015 (program_name): ... to here. Add `static' qualifier.
20016 (main): Recognize `OPTION_VERSION'.
20018 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
20020 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
20021 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
20023 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
20025 Fix help2man generation for mkisofs.
20027 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
20028 (usage): Send output to stdout (rather than stderr).
20030 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
20032 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
20033 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
20034 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
20035 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
20036 (bin_SCRIPTS): Add `grub-mkfloppy'.
20037 (grub_mkfloppy_SOURCES): New variable.
20039 * util/grub-mkrescue.in: New file.
20040 * util/i386/pc/grub-mkfloppy.in: New file.
20042 * util/i386/coreboot/grub-mkrescue.in: Remove.
20043 * util/i386/pc/grub-mkrescue.in: Remove.
20045 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20047 * include/grub/multiboot.h (struct grub_multiboot_header): Move
20049 * include/multiboot.h (struct multiboot_header): ... to here. Update
20051 * include/grub/multiboot.h (struct grub_multiboot_info): Move
20053 * include/multiboot.h (struct multiboot_info): ... to here. Update
20055 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
20057 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
20059 * include/grub/multiboot.h (struct grub_mod_list): Move
20061 * include/multiboot.h (struct multiboot_mod_list): ... to here.
20064 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20066 * include/multiboot2.h (multiboot_word): Rename from this ...
20067 (multiboot2_word): ... to this. Update all users.
20068 (multiboot_header): Rename from this ...
20069 (multiboot2_header): ... to this. Update all users.
20070 (multiboot_tag_header): Rename from this ...
20071 (multiboot2_tag_header): ... to this. Update all users.
20072 (multiboot_tag_start): Rename from this ...
20073 (multiboot2_tag_start): ... to this. Update all users.
20074 (multiboot_tag_name): Rename from this ...
20075 (multiboot2_tag_name): ... to this. Update all users.
20076 (multiboot_tag_module): Rename from this ...
20077 (multiboot2_tag_module): ... to this. Update all users.
20078 (multiboot_tag_memory): Rename from this ...
20079 (multiboot2_tag_memory): ... to this. Update all users.
20080 (multiboot_tag_unused): Rename from this ...
20081 (multiboot2_tag_unused): ... to this. Update all users.
20082 (multiboot_tag_end): Rename from this ...
20083 (multiboot2_tag_end): ... to this. Update all users.
20085 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20087 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
20088 this platform we should support Multiboot1 first.
20090 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
20091 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
20092 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
20094 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
20096 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
20097 of write calls (converting them to fwrite() if they aren't already).
20098 (get_torito_desc): Likewise.
20099 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
20101 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
20103 * util/i386/pc/grub-install.in: Move from here ...
20104 * util/grub-install.in: ... to here. Update all users.
20106 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
20108 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
20110 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
20112 Support for El Torito without floppy emulation.
20114 * util/mkisofs/eltorito.c: Include `<errno.h>'.
20115 (init_boot_catalog): Improve error handling.
20116 (get_torito_desc): Don't use floppy emulation unless requested by
20117 user. Patch boot information table when requested via
20118 `-boot-info-table'.
20119 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
20120 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
20121 (use_boot_info_table): New variables.
20122 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
20123 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
20124 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
20125 `--eltorito-emul-floppy'.
20126 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
20127 and `OPTION_ELTORITO_EMUL_FLOPPY'.
20128 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
20129 (use_boot_info_table, get_731): New prototypes.
20130 * util/mkisofs/write.c (get_731): New function.
20132 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
20134 Fix the generation of the man page.
20136 * util/pc/i386/grub-install.in: Source
20137 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
20139 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
20141 Large file support for grub-mkisofs.
20143 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
20144 * util/mkisofs/mkisofs.c (next_extent, last_extent)
20145 (session_start): Upgrade type to `uint64_t'. Update all users.
20146 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
20147 (struct directory_entry): Upgrade type of `starting_block' and
20148 `size' to `uint64_t'. Update all users.
20149 (struct deferred): Remove unused structure.
20150 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
20152 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
20153 file is larger than `UINT32_MAX'.
20154 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
20155 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
20157 (struct deferred_write): Upgrade type of `extent' and `size' to
20158 `uint64_t'. Update all users.
20159 (last_extent_written): Upgrade type to `uint64_t'. Update all
20161 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
20162 Update all users. Upgrade type of `remain' to `int64_t' and
20163 `use' to `size_t'. Use error() to handle fread() errors.
20164 (write_files): Rely on write_one_file() rather than calling
20165 xfwrite() directly.
20167 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
20169 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
20171 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20173 * util/mkisofs/fnmatch.c: Remove.
20174 * util/mkisofs/getopt1.c: Likewise.
20175 * util/mkisofs/getopt.c: Likewise.
20176 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
20177 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
20178 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
20179 `gnulib/getopt1.c' and `gnulib/getopt.c'.
20180 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
20182 * configure.ac: Detect `mingw32msvc' host_os.
20183 Check for lstat(), getuid() and getgid().
20185 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
20186 instances of `u_char' with `uint8_t'.
20188 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
20189 [!HAVE_GETUID] (getuid): New function (stub).
20190 [!HAVE_GETGID] (getgid): Likewise.
20191 [!HAVE_LSTAT] (lstat): Likewise.
20192 [!S_IROTH] (S_IROTH): New macro (dummy).
20193 [!S_IRGRP] (S_IRGRP): Likewise.
20195 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20197 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
20198 conditional expression).
20200 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20202 Import from Gnulib.
20204 * gnulib/fnmatch.c: New file.
20205 * gnulib/fnmatch.h: Likewise.
20206 * gnulib/fnmatch_loop.c: Likewise.
20207 * gnulib/getopt.c: Likewise.
20208 * gnulib/getopt.h: Likewise.
20209 * gnulib/getopt1.c: Likewise.
20210 * gnulib/getopt_int.h: Likewise.
20211 * gnulib/gettext.h: Likewise.
20213 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20215 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
20216 * normal/handler.c (read_handler_list): Likewise.
20218 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20222 * kern/command.c (grub_register_command_prio): Use
20223 grub_zalloc() instead of explicitly zeroing data.
20224 * kern/list.c: Include `<grub/mm.h>'.
20225 (grub_named_list_find): Replace `0' with `NULL'.
20226 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
20227 (fs_module_list): Change type to `grub_named_list_t'. Update all
20229 * normal/dyncmd.c (read_command_list): Add space between function
20230 call and parenthesis.
20231 * normal/handler.c (read_handler_list): Likewise.
20233 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20235 * normal/auth.c (punishment_delay): Moved from here ...
20236 (grub_auth_strcmp): ... to here (inside function).
20238 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20240 * include/grub/list.h (struct grub_named_list): Remove `const'
20241 qualifier from `name'.
20242 (struct grub_prio_list): Likewise.
20244 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20246 * normal/auth.c: Include `<grub/time.h>'.
20247 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
20249 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20251 * normal/auth.c (punishment_delay): New variable.
20252 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
20253 (grub_auth_check_authentication): Punish failed login attempts with
20254 an incremental (2^N) delay.
20256 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20258 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
20259 path with $(srcdir).
20261 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
20263 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
20265 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20267 * util/i386/coreboot/grub-mkrescue.in: New file.
20268 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
20271 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
20272 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
20273 * configure.ac: Add header and function checks to satisfy grub-mkisofs
20275 * util/mkisofs/defaults.h: New file.
20276 * util/mkisofs/eltorito.c: Likewise.
20277 * util/mkisofs/exclude.h: Likewise.
20278 * util/mkisofs/fnmatch.c: Likewise.
20279 * util/mkisofs/getopt.c: Likewise.
20280 * util/mkisofs/getopt1.c: Likewise.
20281 * util/mkisofs/hash.c: Likewise.
20282 * util/mkisofs/include/fctldefs.h: Likewise.
20283 * util/mkisofs/include/mconfig.h: Likewise.
20284 * util/mkisofs/include/prototyp.h: Likewise.
20285 * util/mkisofs/include/statdefs.h: Likewise.
20286 * util/mkisofs/iso9660.h: Likewise.
20287 * util/mkisofs/joliet.c: Likewise.
20288 * util/mkisofs/match.c: Likewise.
20289 * util/mkisofs/match.h: Likewise.
20290 * util/mkisofs/mkisofs.c: Likewise.
20291 * util/mkisofs/mkisofs.h: Likewise.
20292 * util/mkisofs/multi.c: Likewise.
20293 * util/mkisofs/name.c: Likewise.
20294 * util/mkisofs/rock.c: Likewise.
20295 * util/mkisofs/tree.c: Likewise.
20296 * util/mkisofs/write.c: Likewise.
20298 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
20300 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
20303 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20305 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
20306 `grub-mkimage' (and use $0 when possible).
20308 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20310 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
20311 error message for excessively large memory map.
20313 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20315 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
20318 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20320 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
20321 message for coreboot users.
20323 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
20325 Fix build with GNU gold.
20327 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
20328 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
20329 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
20331 * aclocal.m4: Likewise.
20333 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
20335 * configure.ac (AC_PREREQ): Bump to 2.59d.
20336 * INSTALL: Make it more clear when Autoconf and Ruby are
20337 needed and when to run `./autogen.sh'.
20339 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20341 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
20344 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20346 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
20348 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20350 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
20351 giving it to GNU Mach.
20353 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20355 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
20356 GNU partition number to get internal GRUB partition number.
20358 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20360 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
20361 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
20363 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
20365 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
20366 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
20369 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
20371 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
20373 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
20377 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
20378 `-isystem=$(srcdir)/include'.
20380 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
20382 * util/i386/pc/grub-install.in: Remove hint that device.map should be
20383 checked (grub-install doesn't currently rely on it).
20385 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
20389 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
20390 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
20391 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
20392 * conf/i386-ieee1275.rmk: Likewise.
20393 * conf/i386-pc.rmk: Likewise.
20394 * conf/powerpc-ieee1275.rmk: Likewise.
20395 * conf/sparc64-ieee1275.rmk: Likewise.
20396 * conf/x86_64-efi.rmk: Likewise.
20398 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20400 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
20402 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20404 * include/grub/misc.h: Stop checking for APPLE_CC.
20406 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20408 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
20409 doesn't cause an infinite call loop.
20411 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
20413 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
20416 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20418 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
20420 * Makefile.in: Likewise.
20422 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20424 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
20426 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20428 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
20430 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20432 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
20434 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20436 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
20438 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
20440 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20442 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
20443 in $(MAKEINFO) invocation. This makes it clear in output that
20444 errors are being ignored.
20446 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20448 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
20450 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
20451 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
20452 * conf/i386-ieee1275.rmk: Likewise.
20453 * conf/i386-pc.rmk: Likewise.
20454 * conf/powerpc-ieee1275.rmk: Likewise.
20455 * conf/sparc64-ieee1275.rmk: Likewise.
20456 * conf/x86_64-efi.rmk: Likewise.
20458 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
20460 * util/grub-editenv.c (main): If only a command is given, use
20461 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
20462 (usage): FILENAME is now optional and has a default.
20464 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
20466 Improve grub-mkconfig performance when there are several menu
20467 entries on a single filesystem.
20469 * util/grub.d/10_linux.in (linux_entry): Cache the output of
20470 prepare_grub_to_access_device.
20471 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
20472 * util/grub.d/30_os-prober.in: Likewise.
20474 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20476 * util/grub.d/10_freebsd.in: Remove.
20477 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
20478 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
20480 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20482 * docs/grub.cfg: Fix example usage of *BSD loaders.
20484 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20486 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
20487 grub_util_error() call.
20489 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20491 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
20492 `reserved_first_sector' member.
20493 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
20494 `reserved_first_sector' to 1.
20495 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
20496 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
20497 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
20498 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
20499 filesystems which begin at first sector.
20500 (options): New option --skip-fs-probe.
20501 (main): Handle --skip-fs-probe and pass it to setup().
20503 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20505 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
20506 (memset): Fix function prototype.
20508 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20509 2009-10-25 Vasily Averin <vvs@parallels.com>
20511 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
20512 `dirent.direntlen == 0'.
20514 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20516 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
20518 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
20520 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20522 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
20523 `__trampoline_setup' and `__ucmpdi2'.
20524 * include/grub/powerpc/libgcc.h: Only export symbols for functions
20525 that libgcc provides.
20527 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20529 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
20530 * include/grub/sparc64/libgcc.h (memset): Likewise.
20531 * include/grub/misc.h (memset, memcmp): New function prototypes.
20533 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20535 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
20537 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
20539 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20541 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
20542 * docs/grub.cfg: Compensate for recent change in multiboot
20543 loader (since 2009-08-14 it won't pass filename to payload).
20544 * util/grub.d/10_hurd.in: Likewise.
20546 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
20548 * config.guess: Update to latest version from config git
20550 * config.sub: Likewise.
20552 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
20554 Fix build on sparc64.
20556 * configure.ac: Perform checks for libgcc symbols before
20557 adding `-nostdlib' to LDFLAGS.
20559 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20561 Let user specify OpenBSD root device.
20563 * loader/i386/bsd.c (openbsd_root): New variable.
20564 (openbsd_opts): New option 'root'.
20565 (OPENBSD_ROOT_ARG): New macro.
20566 (grub_openbsd_boot): Use 'openbsd_root'.
20567 (grub_cmd_openbsd): Fill 'openbsd_root'.
20569 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20571 * NEWS: Misc adjustments.
20573 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20575 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
20577 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20579 * configure.ac: Bump version to 1.97.
20581 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
20583 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
20584 -mno-3dnow on x86 architectures. Some toolchains enable these
20585 features by default, but they rely on registers that aren't enabled
20586 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
20588 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
20590 Make entry text a bit more readable.
20592 * util/grub.d/10_linux.in: Add `with' before `Linux'.
20594 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20596 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
20598 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20600 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
20603 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20605 * configure.ac: Add missing dollar.
20607 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20609 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
20611 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
20612 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
20614 * include/grub/sparc64/libgcc.h: Likewise. Use
20615 preprocessor conditionals.
20617 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
20619 * conf/common.rmk (grub-dumpbios): Remove rule.
20620 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
20621 * util/grub-dumpbios.in: Remove file.
20623 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
20625 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
20626 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
20628 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
20629 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
20632 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
20633 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
20634 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
20635 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
20638 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
20640 * term/tparm.c: Switch to GPLv3.
20642 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
20644 * include/grub/i386/cpuid.h: Add header protection.
20646 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
20648 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
20650 * include/grub/i386/cpuid.h: New file.
20651 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
20652 (has_longmode): Rename to ...
20653 (grub_cpuid_has_longmode): ... this. Update all users. Remove
20654 `static' attribute.
20655 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
20656 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
20657 on a CPU that doesn't implement AMD64 instruction set.
20659 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20661 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
20662 that version.texi is rebuilt on version number changes.
20664 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20666 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
20669 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20671 * util/i386/pc/grub-install.in: Source
20672 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
20673 that the --grub-probe option will work.
20674 * util/sparc64/ieee1275/grub-install.in: Likewise.
20676 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
20678 * configure.ac: Bump version to 1.97~beta4.
20680 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
20682 Resync grub-mkdevicemap in x86_64-efi.
20684 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
20685 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
20686 `util/devicemap.c'.
20688 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
20690 * util/grub-editenv.c (create_envblk_file): Write new block with a
20691 .new suffix and then rename it into place, to ensure atomic
20694 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
20696 Do not automatically install headers.
20698 * Makefile.in (include_DATA): Remove. Update all users.
20700 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
20702 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
20703 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
20705 * util/osdetect.lua: Remove.
20706 * script/lua/lauxlib.c: Likewise.
20707 * script/lua/ldebug.c: Likewise.
20708 * script/lua/grub_main.c: Likewise.
20709 * script/lua/lauxlib.h: Likewise.
20710 * script/lua/ldebug.h: Likewise.
20711 * script/lua/ltablib.c: Likewise.
20712 * script/lua/liolib.c: Likewise.
20713 * script/lua/lstrlib.c: Likewise.
20714 * script/lua/lualib.h: Likewise.
20715 * script/lua/ldo.c: Likewise.
20716 * script/lua/ldump.c: Likewise.
20717 * script/lua/ldo.h: Likewise.
20718 * script/lua/loslib.c: Likewise.
20719 * script/lua/lundump.c: Likewise.
20720 * script/lua/grub_lib.c: Likewise.
20721 * script/lua/ldblib.c: Likewise.
20722 * script/lua/lundump.h: Likewise.
20723 * script/lua/lmem.c: Likewise.
20724 * script/lua/grub_lib.h: Likewise.
20725 * script/lua/lmathlib.c: Likewise.
20726 * script/lua/lstate.c: Likewise.
20727 * script/lua/ltm.c: Likewise.
20728 * script/lua/lvm.c: Likewise.
20729 * script/lua/lmem.h: Likewise.
20730 * script/lua/lstate.h: Likewise.
20731 * script/lua/ltm.h: Likewise.
20732 * script/lua/ltable.c: Likewise.
20733 * script/lua/lvm.h: Likewise.
20734 * script/lua/llex.c: Likewise.
20735 * script/lua/lgc.c: Likewise.
20736 * script/lua/grub_lua.h: Likewise.
20737 * script/lua/loadlib.c: Likewise.
20738 * script/lua/lfunc.c: Likewise.
20739 * script/lua/lopcodes.c: Likewise.
20740 * script/lua/lparser.c: Likewise.
20741 * script/lua/ltable.h: Likewise.
20742 * script/lua/llex.h: Likewise.
20743 * script/lua/lgc.h: Likewise.
20744 * script/lua/lfunc.h: Likewise.
20745 * script/lua/lbaselib.c: Likewise.
20746 * script/lua/lopcodes.h: Likewise.
20747 * script/lua/lparser.h: Likewise.
20748 * script/lua/lzio.c: Likewise.
20749 * script/lua/linit.c: Likewise.
20750 * script/lua/lobject.c: Likewise.
20751 * script/lua/llimits.h: Likewise.
20752 * script/lua/lstring.c: Likewise.
20753 * script/lua/lzio.h: Likewise.
20754 * script/lua/lapi.c: Likewise.
20755 * script/lua/lcode.c: Likewise.
20756 * script/lua/lua.h: Likewise.
20757 * script/lua/lobject.h: Likewise.
20758 * script/lua/lstring.h: Likewise.
20759 * script/lua/lapi.h: Likewise.
20760 * script/lua/lcode.h: Likewise.
20761 * script/lua/luaconf.h: Likewise.
20763 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
20765 * docs/grub.texi (Command-line and menu entry commands): Document
20766 date and echo commands.
20768 2009-09-24 Pavel Roskin <proski@gnu.org>
20770 * include/grub/kernel.h (struct grub_module_header): Remove
20771 `grub_module_header_types'. Make `type' unsigned. Make `size'
20772 32-bit on all platforms.
20773 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
20774 8-bit field. Use grub_host_to_target32() for `size'.
20775 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
20776 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
20777 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
20779 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20781 Fix "lost keypress" bug in at_keyboard.
20783 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
20784 Checks for readyness of input buffer (without flushing it).
20785 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
20786 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
20788 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20790 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
20791 size check within GRUB_MACHINE_PCBIOS section.
20793 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20795 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
20797 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
20798 KEYBOARD_ISREADY check.
20799 (grub_at_keyboard_checkkey): Rename to ...
20800 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
20801 Remove gratuitous cast.
20803 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
20805 * configure.ac: Call AC_PROG_MKDIR_P.
20806 * Makefile.in (docs/stamp-vti): Create docs directory. Create
20807 version.texi in $(builddir) rather than $(srcdir).
20808 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
20809 to makeinfo's @include search path.
20811 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
20813 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
20815 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
20817 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
20820 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
20822 Build info documentation. Some code borrowed from Automake.
20824 * configure.ac: Check for makeinfo.
20825 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
20826 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
20828 (MOSTLYCLEANFILES): Add vti.tmp.
20829 (docs/version.texi, docs/stamp-vti): Update automatically.
20830 (docs/grub.info): Build info documentation. Use --force and ignore
20832 (all-local): Add $(INFOS).
20833 (install-local): Install info files.
20834 (uninstall): Uninstall info files.
20835 * docs/version.texi: Remove from revision control. This file is
20836 automatically generated on build now.
20837 * gendistlist.sh: Add `*.info'.
20839 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
20841 * kern/term.c: Fix indentation.
20843 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
20845 * util/hostdisk.c: Fix a comment.
20847 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
20849 Fix regression introduced in r2539.
20851 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
20854 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
20856 * util/grub.d/30_os-prober.in: Don't throw away stderr from
20857 os-prober. Under normal operation, it does not print anything to
20858 stderr; if it does, we need to debug it, and throwing away stderr
20859 makes that excessively difficult.
20861 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
20863 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
20865 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
20867 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
20868 AC_LANG_PROGRAM from autoconf.
20869 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
20870 prototypes (fixes warning).
20872 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
20873 `--disable-werror' was used.
20875 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
20877 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
20878 uninitialized `lastaddr'.
20880 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20882 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
20884 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
20886 * commands/test.c (get_fileinfo): Return immediately if
20887 grub_fs_probe fails.
20889 2009-09-14 José Martínez <xosemp@gmail.com>
20891 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
20893 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
20895 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
20898 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
20900 * configure.ac: Remove --enable-grub-pe2elf. Only build
20901 grub-pe2elf when needed by the build system itself.
20902 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
20904 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20906 * configure.ac: Bump version to 1.97~beta3.
20907 * docs/version.texi: Likewise.
20909 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20911 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
20912 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
20914 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
20915 (grub_linux_setup_video): ... to here (with some adjustments).
20917 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20919 Fix memory corruption issue (spotted by Colin Watson).
20921 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
20922 causing returned size to be stored in an incorrect memory location.
20923 Fix use of uninitialized value when storing the returned size.
20925 2009-09-12 Yves Blusseau <blusseau@zetam.org>
20927 Change clean rules to properly remove files
20929 * genmk.rb: add new clean rules
20930 * Makefile.in (clean): add the new targets
20931 (mostlyclean): likewise
20933 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
20935 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
20937 * fs/ntfs.c (init_file): Understand 64-bit sizes for
20938 non-resident files.
20940 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
20942 * configure.ac: Don't look for help2man when cross-compiling. Fixes
20943 part of bug #27349.
20945 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
20947 * util/grub-mkconfig.in: Make the created config mode 400 and
20948 print a warning if it fails.
20950 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
20952 * util/grub.d/40_custom.in: Ask user to type custom entries below
20953 comment, rather than below 'exec tail' line.
20955 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
20957 * util/grub.d/40_custom.in: Make sure that the explanatory text is
20958 visible in grub.cfg.
20960 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
20962 * util/grub.d/40_custom.in: Make it a little clearer how to use this
20965 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
20967 * docs/grub.cfg: Add an example menu entry for memtest86+.
20969 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
20971 * config.guess: Update to latest version from config git.
20972 * config.sub: Likewise.
20974 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
20976 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
20977 unknown-command case. Fixes bug #27320.
20979 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
20981 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
20982 `help' if the command exists.
20984 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
20986 * INSTALL: Require GCC 4.1.3 or later.
20988 2009-09-06 Yves Blusseau <blusseau@zetam.org>
20990 * Makefile.in (RMKFILES): add i386-qemu.rmk
20991 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
20992 $(srcdir)/stamp-h.in
20994 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
20996 * util/grub-probe.c (probe): Comment out buggy codepath, which
20997 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
20998 should be re-enabled after 1.97.
21000 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
21002 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
21005 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
21007 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
21008 unnecessary calls to grub_error.
21010 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
21012 * NEWS: Mention `keystatus' and Unicode fonts.
21014 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
21016 * configure.ac: Bump version to 1.97~beta2.
21017 * docs/version.texi: Likewise.
21019 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
21021 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
21022 containing unwind information in some cases where it previously did
21023 not. Use -fno-dwarf2-cfi-asm if available to restore the old
21024 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
21027 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
21029 Embedding loadenv module into grub-emu
21031 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
21033 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
21034 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
21035 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
21036 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
21037 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
21038 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
21040 2009-09-03 Magnus Granberg <zorry@ume.nu>
21042 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
21043 include -fPIE in the default specs.
21044 * configure.ac: Check if pie_possible is yes and add -fno-PIE
21047 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
21049 * INSTALL: Note that GNU Bison 2.3 or later is required.
21051 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
21053 * kern/i386/pc/startup.S: Fix typo.
21055 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21057 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
21060 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21062 * docs/grub.texi (Naming convention): Describe one-based partition
21064 (Device syntax): Likewise.
21065 (File name syntax): Likewise.
21066 (Block list syntax): Likewise.
21067 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
21069 (File name syntax): Likewise.
21070 (Command-line and menu entry commands): Document acpi, blocklist,
21071 crc, export, insmod, keystatus, ls, set, and unset commands.
21073 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21075 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
21076 to avoid implying that only one of --shift, --ctrl, or --alt may be
21079 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21081 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
21082 rather than comparing against S_IFREG, which will almost never work.
21084 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
21086 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
21087 (write_blocklists): Likewise.
21089 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
21091 * script/lua/grub_lua.h (fputs): Supply a format string as the first
21092 argument to grub_printf.
21094 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
21096 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
21099 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21101 * kern/file.c (grub_file_read): Spelling fix
21103 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21105 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
21106 loading of headers in some cases.
21108 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
21110 * configure.ac: Bump version to 1.97~beta1.
21111 * docs/version.texi: Likewise.
21113 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21115 * include/grub/i386/xnu.h: Add license header.
21116 include grub/err.h explicitly.
21118 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
21120 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
21121 to `ufs' in the vfs.root.mountfrom kernel parameter.
21123 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
21125 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
21127 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
21128 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
21130 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
21131 `ARRAY_SIZE' macro.
21133 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21135 * kern/file.c (grub_file_read): Check offset.
21136 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
21137 * fs/jfs.c (grub_jfs_read_file): Likewise.
21138 * fs/ntfs.c (grub_ntfs_read): Likewise.
21139 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
21140 * fs/minix.c (grub_minix_read_file): Correct offset check.
21141 * fs/ufs.c (grub_ufs_read_file): Likewise.
21143 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21145 * term/i386/pc/console.c (bios_data_area): Cast
21146 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
21148 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21150 1-bit optimised blitters.
21152 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
21154 (grub_video_fbblit_replace_24bit_1bit): Likewise.
21155 (grub_video_fbblit_replace_16bit_1bit): Likewise.
21156 (grub_video_fbblit_replace_8bit_1bit): Likewise.
21157 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
21158 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
21159 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
21160 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
21162 (grub_video_fbblit_replace_24bit_1bit): Likewise.
21163 (grub_video_fbblit_replace_16bit_1bit): Likewise.
21164 (grub_video_fbblit_replace_8bit_1bit): Likewise.
21165 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
21166 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
21167 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
21168 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
21170 * video/video.c (grub_video_get_blit_format): Return
21171 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
21173 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21175 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
21176 the first argument to grub_printf.
21178 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21179 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
21181 Add `getkeystatus' terminal method. Add a new `keystatus' command
21184 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
21185 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
21186 modifier key bitmasks.
21187 (struct grub_term_input): Add `getkeystatus' member.
21188 (grub_getkeystatus): Add prototype.
21189 * kern/term.c (grub_getkeystatus): New function.
21191 * include/grub/i386/pc/memory.h
21192 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
21193 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
21195 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
21196 (grub_console_term_input): Set `getkeystatus' member.
21197 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
21199 (grub_usb_keyboard_getreport): Likewise.
21200 (grub_usb_keyboard_checkkey): Likewise.
21201 (grub_usb_keyboard_getkeystatus): New function.
21202 (grub_usb_keyboard_term): Set `getkeystatus' member.
21204 * commands/keystatus.c: New file.
21205 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
21206 (keystatus_mod_SOURCES): New variable.
21207 (keystatus_mod_CFLAGS): Likewise.
21208 (keystatus_mod_LDFLAGS): Likewise.
21209 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
21210 commands/keystatus.c.
21211 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21212 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21213 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21215 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21216 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21218 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21220 Split befs.mod and afs.mod into *_be.mod and *.mod
21222 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
21223 (grub_fstest_SOURCES): Likewise.
21224 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
21225 (afs_be_mod_SOURCES): New variable.
21226 (afs_be_mod_CFLAGS): Likewise.
21227 (afs_be_mod_LDFLAGS): Likewise.
21228 (befs_be_mod_SOURCES): Likewise.
21229 (befs_be_mod_CFLAGS): Likewise.
21230 (befs_be_mod_LDFLAGS): Likewise.
21231 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
21232 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21233 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21234 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21235 (grub_emu_SOURCES): Likewise.
21236 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21237 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21238 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21239 * fs/afs_be.c: New file.
21240 * fs/befs_be.c: New file.
21241 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
21242 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
21243 (U16): Replaced with ...
21244 (grub_afs_to_cpu16): ...this. All users updated.
21245 (U32): Replaced with ...
21246 (grub_afs_to_cpu32): ...this. All users updated.
21247 (U64): Replaced with ...
21248 (grub_afs_to_cpu64): ...this. All users updated.
21249 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
21250 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
21251 (grub_afs_validate_sblock): Check only one endianness.
21252 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
21253 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
21254 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
21255 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
21256 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
21257 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
21258 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
21259 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
21261 2009-08-26 Bean <bean123ch@gmail.com>
21263 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
21265 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
21266 (grub_xfs_inode_block): Change return type to grub_uint64_t.
21267 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
21269 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21271 NetBSD memory map support.
21273 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
21274 (grub_netbsd_btinfo_mmap_header): New structure.
21275 (grub_netbsd_btinfo_mmap_entry): Likewise.
21276 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
21278 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21280 Enable bsd.mod on coreboot.
21282 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
21283 (bsd_mod_SOURCES): New variable.
21284 (bsd_mod_CFLAGS): Likewise.
21285 (bsd_mod_LDFLAGS): Likewise.
21286 (bsd_mod_ASFLAGS): Likewise.
21287 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
21288 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
21290 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21292 Cleanup NetBSD root support.
21294 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
21295 grub_bsd_get_device.
21298 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
21300 * util/grub.d/00_header.in: Move check for the video backend of
21301 gfxterm from here ...
21302 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
21303 a suitable video backend.
21305 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21307 Fix breakage in grub-setup.
21309 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
21310 "msdos_partition_map".
21312 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21314 Fix breakage in normal/auth.c.
21316 * normal/auth.c (grub_iswordseparator): New function.
21318 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21320 Authentication support.
21322 * commands/password.c: New file.
21323 * conf/common.rmk (pkglib_MODULES): Add password.mod.
21324 (password_mod_SOURCES): New variable.
21325 (password_mod_CFLAGS): Likewise.
21326 (password_mod_LDFLAGS): Likewise.
21327 (normal_mod_SOURCES): Add normal/auth.c.
21328 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
21330 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21331 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21332 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21334 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21335 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21336 * include/grub/auth.h: New file.
21337 * include/grub/err.h (grub_err_t): New enum value
21338 GRUB_ERR_ACCESS_DENIED.
21339 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
21341 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
21342 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
21344 * normal/auth.c: New file.
21345 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
21346 (grub_cmdline_run): Don't allow to go to command line without
21348 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
21349 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
21350 menuentry without superuser rights.
21351 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
21352 user isn't a superuser.
21354 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21356 Save space by inlining misc.c functions.
21358 * kern/misc.c (grub_iswordseparator): Made static.
21359 * kern/misc.c (grub_strcat): Moved from here ...
21360 * include/grub/misc.h (grub_strcat): ... here. Inlined.
21361 * kern/misc.c (grub_strncat): Moved from here ...
21362 * include/grub/misc.h (grub_strncat): ... here. Inlined.
21363 * kern/misc.c (grub_strcasecmp): Moved from here ...
21364 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
21365 * kern/misc.c (grub_strncasecmp): Moved from here ...
21366 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
21367 * kern/misc.c (grub_isalpha): Moved from here ...
21368 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
21369 * kern/misc.c (grub_isdigit): Moved from here ...
21370 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
21371 * kern/misc.c (grub_isgraph): Moved from here ...
21372 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
21373 * kern/misc.c (grub_tolower): Moved from here ...
21374 * include/grub/misc.h (grub_tolower): ... here. Inlined.
21376 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21378 * script/sh/function.c (grub_script_function_find): Cut error message
21379 not to flood terminal.
21380 * script/sh/lexer.c (grub_script_yylex): Remove command line length
21382 * script/sh/script.c (grub_script_arg_add): Duplicate string.
21384 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
21386 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
21387 `report' grub_uint8_t *.
21388 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
21389 Use a 50-millisecond timeout rather than just repeating
21390 grub_usb_keyboard_getreport 50 times.
21391 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
21393 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21395 Rename *_partition_map to part_*
21397 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
21398 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
21399 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
21400 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
21402 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
21404 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
21405 * util/grub-probe.c (probe_partmap): Don't transform partition name
21406 to get module name.
21408 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21410 Fix OpenBSD and NetBSD support.
21412 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
21413 memory address conflict.
21414 (OPENBSD_MMAP_ACPI): New definition.
21415 (OPENBSD_MMAP_NVS): Likewise.
21416 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
21417 and OPENBSD_MMAP_NVS.
21418 Add memory map terminator
21419 Explicit cast when calling grub_unix_real_boot.
21420 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
21422 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21424 Let user specify NetBSD root device.
21426 * loader/i386/bsd.c (netbsd_root): New variable.
21427 (netbsd_opts): New option 'root'.
21428 (NETBSD_ROOT_ARG): New macro.
21429 (grub_netbsd_boot): Use 'netbsd_root'.
21430 (grub_bsd_unload): Free 'netbsd_root'.
21431 (grub_cmd_netbsd): Fill 'netbsd_root'.
21433 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21435 Support for 64-bit NetBSD.
21437 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
21438 point when booting non-FreeBSD.
21440 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21442 Support --no-smp and --no-acpi for NetBSD.
21444 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
21445 (NETBSD_AB_NOACPI): Likewise.
21446 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
21447 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
21449 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21451 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
21453 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
21454 errors. Call grub_error when needed.
21456 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21458 * commands/search.c (search_fs): Try searching without autoload first.
21459 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
21460 filesystem module explicitly for faster booting.
21462 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21464 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
21466 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21468 * util/grub.d/30_os-prober.in: Disable os-prober if
21469 `GRUB_DISABLE_OS_PROBER' was set to true.
21471 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
21473 * partmap/pc.c: Rename to ...
21474 * partmap/msdos.c: ... this. Update all users.
21475 (grub_pc_partition_map): Rename to ...
21476 (grub_msdos_partition_map): ... this. Update all users.
21478 * parttool/pcpart.c: Rename to ...
21479 * parttool/msdospart.c: ... this. Update all users.
21481 * include/grub/pc_partition.h: Rename to ...
21482 * include/grub/msdos_partition.h: ... this. Update all users.
21483 (grub_pc_partition_bsd_entry): Rename to ...
21484 (grub_msdos_partition_bsd_entry): ... this. Update all users.
21485 (grub_pc_partition_disk_label): Rename to ...
21486 (grub_msdos_partition_disk_label): ... this. Update all users.
21487 (grub_pc_partition_entry): Rename to ...
21488 (grub_msdos_partition_entry): ... this. Update all users.
21489 (grub_pc_partition_mbr): Rename to ...
21490 (grub_msdos_partition_mbr): ... this. Update all users.
21491 (grub_pc_partition): Rename to ...
21492 (grub_msdos_partition): ... this. Update all users.
21493 (grub_pc_partition_is_empty): Rename to ...
21494 (grub_msdos_partition_is_empty): ... this. Update all users.
21495 (grub_pc_partition_is_extended): Rename to ...
21496 (grub_msdos_partition_is_extended): ... this. Update all users.
21497 (grub_pc_partition_is_bsd): Rename to ...
21498 (grub_msdos_partition_is_bsd): ... this. Update all users.
21500 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
21501 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
21502 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
21503 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
21504 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
21505 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
21506 (gpt_mod_LDFLAGS): Rename to ...
21507 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
21508 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
21509 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
21510 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
21511 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
21512 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
21513 (part_gpt_mod_LDFLAGS): ... this.
21514 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
21515 `pcpart.mod' to `msdospart.mod'.
21516 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
21518 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
21519 (msdospart_mod_LDFLAGS): ... this.
21521 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21523 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
21524 (openbsd_opts): Likewise.
21525 (netbsd_opts): Likewise.
21526 (freebsd_flags): Added 0 terminator.
21527 (openbsd_flags): Likewise.
21528 (netbsd_flags): Likewise.
21529 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
21530 (grub_cmd_freebsd): Transformed into extended command.
21531 (grub_cmd_openbsd): Likewise.
21532 (grub_cmd_netbsd): Likewise.
21533 (cmd_freebsd): Changed type to grub_extcmd_t.
21534 (cmd_openbsd): Likewise.
21535 (cmd_netbsd): Likewise.
21536 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
21537 grub_cmd_openbsd as extended commands.
21538 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
21539 cmd_netbsd and cmd_openbsd
21541 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
21543 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
21545 2009-08-21 Pavel Roskin <proski@gnu.org>
21547 * Makefile.in (install-local): When checking if a file is in the
21548 build directory, use "test -e" to detect symlinks.
21550 * Makefile.in (install-local): Remove all files in
21551 $(DESTDIR)$(pkglibdir) before installing new files there.
21553 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21555 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
21558 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21560 * util/grub-mkconfig.in: Don't use gfxterm by default if not
21561 explicitly specified by the user.
21563 2009-08-18 Pavel Roskin <proski@gnu.org>
21565 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
21566 grub_uint8_t pointer for data.
21567 * include/grub/fbutil.h (struct grub_video_fbblit_info):
21569 * video/fb/fbutil.c: Remove unnecessary casts.
21571 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21575 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
21576 (grub_vbe_set_video_mode): Save active mode info
21577 only after setting the mode.
21578 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
21581 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21583 Rename variables for clarity.
21585 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
21586 (active_vbe_mode_info): ... this. All users updated.
21587 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
21589 (initial_mode): Rename to ...
21590 (initial_vbe_mode): ... this. All users updated.
21591 (mode_in_use): Rename to ..
21592 (vbe_mode_in_use): ... this. All users updated.
21593 (mode_list): Rename to ..
21594 (vbe_mode_list): ... this. All users updated.
21595 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
21596 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
21597 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
21598 'mode_list_size' to 'vbe_mode_list_size'.
21599 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
21600 'best_mode_info' to 'best_vbe_mode_info' and
21601 'best_mode' to 'best_vbe_mode'
21603 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21605 Remove duplicate grub_video_fb_get_video_ptr.
21607 * include/grub/fbutil.h (get_data_ptr): Rename to ...
21608 (grub_video_fb_get_video_ptr): ... this.
21609 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
21610 * video/fb/fbutil.c: Add comment about addressing.
21611 (get_data_ptr): Rename to ...
21612 (grub_video_fb_get_video_ptr): ... this. All users updated.
21613 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
21615 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
21617 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
21618 grub_dprintf() that was just added.
21620 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
21622 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
21623 (DEFAULT_VIDEO_MODE): Remove macros.
21624 (grub_linux_boot): Remove assumption that Linux has FB support,
21625 and use "text" as default video mode.
21627 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
21629 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
21631 * fs/fat.c (grub_fat_read_data): Likewise.
21633 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21635 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
21637 (grub_module): Likewise.
21639 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21641 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
21642 mbi->cmdline but free playground.
21644 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21646 Handle group offset on UFS1.
21648 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
21649 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
21651 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21653 Split ufs.mod into ufs1.mod and ufs2.mod.
21655 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
21656 (grub_fstest_SOURCES): Likewise.
21657 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
21658 (ufs_mod_SOURCES): Remove.
21659 (ufs_mod_CFLAGS): Likewise.
21660 (ufs_mod_LDFLAGS): Likewise.
21661 (ufs1_mod_SOURCES): New variable.
21662 (ufs1_mod_CFLAGS): Likewise.
21663 (ufs1_mod_LDFLAGS): Likewise.
21664 (ufs2_mod_SOURCES): New variable.
21665 (ufs2_mod_CFLAGS): Likewise.
21666 (ufs2_mod_LDFLAGS): Likewise.
21667 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
21668 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
21670 (grub_emu_SOURCES): Likewise.
21671 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21672 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21673 (grub_setup_SOURCES): Likewise.
21674 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21675 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
21676 (grub_setup_SOURCES): Likewise.
21677 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
21679 * fs/ufs2.c: New file.
21680 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
21682 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21686 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
21687 subsystem at the end.
21688 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
21689 (video_fb_mod_SOURCES): New variable.
21690 (video_fb_mod_CFLAGS): Likewise.
21691 (video_fb_mod_LDFLAGS): Likewise.
21692 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
21693 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
21694 * video/i386/pc/vbeblit.c: Moved from here ...
21695 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
21696 * video/i386/pc/vbefill.c: Moved from here ...
21697 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
21698 * video/i386/pc/vbeutil.c: Moved from here ...
21699 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
21700 * include/grub/i386/pc/vbeblit.h: Moved from here ...
21701 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
21702 * include/grub/i386/pc/vbefill.h: Moved from here ...
21703 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
21704 * include/grub/i386/pc/vbeutil.h: Moved from here ...
21705 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
21706 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
21707 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
21708 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
21709 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
21710 (grub_video_adapter): Added 'get_info_and_fini'.
21711 (grub_video_get_info_and_fini): New prototype.
21712 (grub_video_set_mode): make modestring const char *.
21713 * loader/i386/linux.c (grub_linux_setup_video): Use
21714 grub_video_get_info_and_fini.
21715 (grub_linux_boot): Move modesetting just before booting.
21716 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
21717 grub_video_get_info_and_fini.
21718 * video/i386/pc/vbe.c: Moved framebuffer part ...
21719 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
21720 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
21721 grub_video_fbstd_colors and grub_video_fb_set_palette.
21722 (grub_video_vbe_init): Clear 'framebuffer' variable and use
21723 grub_video_fb_init.
21724 (grub_video_vbe_fini): Use grub_video_fb_fini.
21725 (grub_video_vbe_setup): Use framebuffer.render_target instead of
21726 render_target and use grub_video_fb_set_active_render_target and
21727 grub_video_fb_set_palette.
21728 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
21729 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
21730 (grub_video_vbe_adapter): Use framebuffer.
21731 * video/video.c (grub_video_get_info_and_fini): New function.
21732 (grub_video_set_mode): Make modestring const char *.
21733 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
21734 values are already initialised.
21736 2009-08-14 Pavel Roskin <proski@gnu.org>
21738 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
21740 * boot/i386/pc/diskboot.S: Likewise.
21741 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
21742 sectors allow compilation on MacOSX.
21743 * conf/i386-pc.rmk: Enable unconditional compilation of
21746 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
21748 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
21749 * util/grub.d/00_header.in: Enter interruptible sleep if
21750 GRUB_HIDDEN_TIMEOUT is set.
21752 2009-08-13 Yves Blusseau <blusseau@zetam.org>
21754 * include/grub/symbol.h: Add the LOCAL macro.
21755 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
21756 starting with "L_".
21758 2009-08-13 Pavel Roskin <proski@gnu.org>
21760 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
21761 any modern compilers we support.
21763 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
21764 Use local labels starting with "L_" so that Apple assembler
21765 knows they are local.
21767 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
21769 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
21770 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
21771 (bsd_kernel_types): ... this enum.
21773 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
21774 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
21775 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
21777 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
21778 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
21779 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
21782 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
21784 * util/grub-dumpdevtree: Moved from here ...
21785 * util/i386/efi/grub-dumpdevtree: ... to here.
21786 (hexify): New function. Converts a string to its hex version.
21787 Generate hex versions of "efi" and "device-properties" by calling
21788 hexify() on the ASCII strings rather than by hardcoding numbers.
21790 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
21792 * fs/jfs.c: Update copyright year.
21794 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
21796 * util/grub.d/00_header.in: Fix a comment.
21797 * util/grub.d/10_linux.in: Likewise.
21798 * util/grub.d/10_windows.in: Likewise.
21799 * util/grub.d/10_hurd.in: Likewise.
21801 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
21803 * util/grub-mkconfig.in: Allow the user to specify the used font
21806 2009-08-08 Pavel Roskin <proski@gnu.org>
21808 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
21809 available, xfs.mod needs it now.
21811 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
21812 the "g" modifier in sed when the intention is to strip something
21813 once. This fixes comparison of kernels with multiple dashes.
21815 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
21816 on it. Add missing space before closing bracket. Fix
21817 misleading formatting.
21819 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21821 * docs/grub.texi: Major overhaul. Remove all sections that are
21822 specific to GRUB Legacy, or mostly composed of Legacy-specific
21825 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21827 * docs/version.texi: New file. Provides version information for
21830 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21832 * docs/grub.texi: Update CVS information to SVN.
21833 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
21835 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21837 * util/grub-mkconfig.in: Remove a wrong `fi'.
21839 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21841 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
21842 (grub_jfs_uuid): New function.
21843 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
21845 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21847 * util/grub-mkconfig_lib.in (font_path): Move the functionality
21849 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
21850 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
21852 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21854 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
21855 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
21858 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
21859 not just "vmlinu[zx]".
21860 Moved from here ...
21861 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
21864 * util/grub.d/10_linux.in (find_latest): Moved from here ...
21865 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
21868 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21870 * util/grub.d/10_freebsd.in: Use an absolute device path for
21871 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
21873 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
21875 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
21876 handling of multiple abstraction modules.
21878 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
21880 Fix a bug resulting in black screen when loading Linux using a
21883 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
21886 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
21887 (grub_vbe_bios_getset_dac_palette_width): New function.
21888 (grub_vbe_bios_get_dac_palette_width)
21889 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
21890 grub_vbe_bios_getset_dac_palette_width()).
21892 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
21893 check for return status.
21894 (grub_vbe_get_video_mode_info): When getting information for a packed
21895 mode (<= 8 bpp), obtain DAC palette width using
21896 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
21897 {red,green,blue}_mark_size.
21899 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
21901 * commands/search.c (options): Fix help output to match actual code.
21903 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
21905 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
21908 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21910 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
21911 on XFS or ReiserFS.
21913 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21915 Support Apple partition map with sector size different from 512 bytes.
21917 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
21918 (apple_partition_map_iterate): Respect 'aheader.blocksize'
21919 and 'apart.partmap_size'.
21921 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21922 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
21926 * commands/i386/cpuid.c (options): New variable.
21927 (grub_cmd_cpuid): Return real error.
21928 (GRUB_MOD_INIT(cpuid)): Declare options.
21930 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
21932 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
21935 2009-07-31 Bean <bean123ch@gmail.com>
21937 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
21939 (grub_fshelp_node): Move inode field to the end.
21940 (grub_xfs_data): Remove inode field.
21941 (grub_xfs_inode_block): Calculate inode size using sblock.
21942 (grub_xfs_inode_offset): Likewise.
21943 (grub_xfs_read_inode): Calculate inode size using sblock.
21944 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
21945 (grub_xfs_iterate_dir): Calculate inode size using sblock.
21946 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
21947 to match inode size.
21948 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
21949 not accessible when data is null.
21950 (grub_xfs_open): Likewise.
21952 2009-07-31 Bean <bean123ch@gmail.com>
21954 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
21955 Don't change pv->disk if it's already set.
21957 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
21958 (grub_raid_register): ... here.
21959 (grub_raid_rescan): Removed.
21961 * include/grub/raid.h (grub_raid_rescan): Removed.
21963 * util/grub-fstest.c: Remove include file <grub/raid.h>.
21964 (fstest): Replace grub_raid_rescan with module fini function followed
21967 * util/grub-probe.c: Add include file <grub/raid.h>.
21968 (probe_raid_level): New function.
21969 (probe): Detect abstraction by walking the disk device, support two
21970 level of abstraction (LVM on RAID) when detecting partition map.
21972 2009-07-31 Pavel Roskin <proski@gnu.org>
21974 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
21975 to grub_zalloc(), it was erroneous.
21976 Reported by Bean <bean123ch@gmail.com>
21978 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
21980 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
21981 embedding zone, not only the first one.
21983 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
21985 * term/gfxterm.c (clear_char): New function.
21986 (grub_virtual_screen_setup): Use clear_char.
21987 (scroll_up): Likewise.
21988 (grub_virtual_screen_cls): Likewise.
21990 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
21992 * util/deviceiter.c (get_acceleraid_disk_name): New static
21994 (grub_util_iterate_devices): Handle Accelraid devices.
21995 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
21997 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
21999 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
22000 separator for the suggested gfxpayload string (';' collides with the
22001 parser and needs escaping).
22003 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
22005 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
22006 Clear direction flag before jumping to OS.
22007 (grub_multiboot2_real_boot): Likewise.
22009 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
22011 * util/i386/pc/grub-install: Fix parsing of --disk-module
22014 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
22016 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
22019 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
22021 * util/grub-mkconfig.in (package_version): New variable.
22022 Use it do display the version.
22024 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
22026 * kern/file.c (grub_file_open): Revert to previous check with
22029 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
22031 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
22032 from help line. It's out of sync with code.
22034 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
22036 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
22037 entries on failed boot.
22039 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
22041 * kern/file.c (grub_file_open): Fix an error check.
22043 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
22045 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
22046 partition map couldn't be identified.
22048 2009-07-23 Pavel Roskin <proski@gnu.org>
22050 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
22051 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
22052 case of little endian words becomes just an optimization.
22053 Respect const modifier.
22054 (md5_final): Use code that doesn't depend on endianness.
22056 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
22057 to avoid loss of upper bits if align is unsigned and shorter
22060 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
22062 UUID support for UFS
22064 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
22065 (grub_ufs_uuid): New function.
22066 (grub_ufs_fs): add .uuid
22068 2009-07-21 Pavel Roskin <proski@gnu.org>
22070 * kern/dl.c (grub_dl_check_header): Make static.
22072 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
22074 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
22075 add drivemap for Vista. It breaks Windows 7.
22077 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
22079 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
22082 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22086 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
22087 (grub_fstest_SOURCES): Likewise.
22088 (pkglib_MODULES): Add befs.mod.
22089 (befs_mod_SOURCES): New variable.
22090 (befs_mod_CFLAGS): Likewise.
22091 (befs_mod_LDFLAGS): Likewise.
22092 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22093 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22094 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22095 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22096 (grub_setup_SOURCES): Likewise.
22097 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22098 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22099 (grub_setup_SOURCES): Likewise.
22100 * fs/befs.c: New file.
22101 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
22102 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
22103 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
22104 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
22105 (B_KEY_INDEX_ALIGN): New declaration.
22106 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
22107 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
22108 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
22109 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
22110 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
22111 (grub_afs_mount) [MODE_BFS]: Likewise.
22112 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
22113 (grub_afs_fs): Use GRUB_AFS_FSNAME
22114 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
22115 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
22116 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
22117 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
22119 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
22121 * util/getroot.c (find_root_device): Add support for MacOSX.
22122 * util/hostdisk.c: Likewise.
22124 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22126 * font/font.c (find_glyph): Check whether a font is present to avoid
22127 segmentation fault.
22129 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
22131 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
22133 2009-07-20 Pavel Roskin <proski@gnu.org>
22135 * configure.ac: Trim excessively wordy excuses.
22137 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22139 Add symlink, mtime and label support to AtheFS.
22141 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
22142 (grub_afs_iterate_dir): Handle symlinks.
22143 (grub_afs_open): Use grub_afs_read_symlink.
22144 (grub_afs_dir): Likewise.
22146 (grub_afs_label): New function.
22147 (grub_afs_fs): Add grub_afs_label.
22148 (grub_afs_read_symlink): New function.
22150 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22152 Fix AtheFS support.
22154 * fs/afs.c: Fix comments style.
22155 (grub_afs_blockrun): Declare as packed.
22156 (grub_afs_datastream): Likewise.
22157 (grub_afs_bnode): Likewise.
22158 (grub_afs_btree): Likewise.
22159 (grub_afs_sblock): Likewise.
22160 Declare `name' as char.
22161 (grub_afs_inode): Declare as packed.
22162 Change void *vnode to grub_uint32_t unused.
22163 (grub_afs_iterate_dir): Check that key_size is positive.
22164 (grub_afs_mount): Don't read superblock twice.
22165 (grub_afs_dir): Don't free node in case of error,
22166 grub_fshelp_find_file already handles this.
22167 (grub_afs_open): Likewise.
22169 2009-07-19 Pavel Roskin <proski@gnu.org>
22171 * Makefile.in: Remove LIBLZO and enable_lzo.
22172 * conf/i386-pc.rmk: Remove lzo support.
22173 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
22174 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
22176 * kern/i386/pc/lzo1x.S: Remove.
22177 * kern/i386/pc/startup.S: Remove lzo support.
22178 * util/i386/pc/grub-mkimage.c: Likewise.
22180 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
22182 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
22183 * fs/xfs.c (grub_xfs_dir): Likewise.
22184 * fs/afs.c (grub_afs_dir): Likewise.
22185 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
22186 (grub_iso9660_open): Likewise.
22187 * fs/jfs.c (grub_jfs_open): Likewise.
22188 * fs/ext2.c (grub_ext2_dir): Likewise.
22189 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
22190 * script/sh/lexer.c (grub_script_yylex): Likewise.
22192 2009-07-16 Pavel Roskin <proski@gnu.org>
22194 * configure.ac: Never add "-c" to CFLAGS.
22196 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
22198 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
22199 grub_cv_cc_efiemu should be used.
22201 * configure.ac: Typo fixes.
22203 * kern/mm.c (grub_zalloc): New function.
22204 (grub_debug_zalloc): Likewise.
22205 * include/grub/mm.h: Declare grub_zalloc() and
22206 grub_debug_zalloc().
22207 * util/misc.c (grub_zalloc): New function.
22208 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
22209 instead of grub_malloc(), remove unneeded initializations.
22210 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
22211 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
22212 * commands/parttool.c (grub_cmd_parttool): Likewise.
22213 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
22214 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
22215 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
22216 * disk/usbms.c (grub_usbms_finddevs): Likewise.
22217 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
22218 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
22219 (grub_cmd_efiemu_pnvram): Likewise.
22220 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
22221 * fs/iso9660.c (grub_iso9660_mount): Likewise.
22222 (grub_iso9660_iterate_dir): Likewise.
22223 * fs/jfs.c (grub_jfs_opendir): Likewise.
22224 * fs/ntfs.c (list_file): Likewise.
22225 (grub_ntfs_mount): Likewise.
22226 * kern/disk.c (grub_disk_open): Likewise.
22227 * kern/dl.c (grub_dl_load_core): Likewise.
22228 * kern/elf.c (grub_elf_file): Likewise.
22229 * kern/env.c (grub_env_context_open): Likewise.
22230 (grub_env_set): Likewise.
22231 (grub_env_set_data_slot): Likewise.
22232 * kern/file.c (grub_file_open): Likewise.
22233 * kern/fs.c (grub_fs_blocklist_open): Likewise.
22234 * loader/i386/multiboot.c (grub_module): Likewise.
22235 * loader/xnu.c (grub_xnu_create_key): Likewise.
22236 (grub_xnu_create_value): Likewise.
22237 * normal/main.c (grub_normal_add_menu_entry): Likewise.
22238 (read_config_file): Likewise.
22239 * normal/menu_entry.c (make_screen): Likewise.
22240 * partmap/sun.c (sun_partition_map_iterate): Likewise.
22241 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
22242 * script/sh/script.c (grub_script_parse): Likewise.
22243 * video/bitmap.c (grub_video_bitmap_create): Likewise.
22244 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
22245 * video/readers/png.c (grub_png_output_byte): Likewise.
22246 (grub_video_reader_png): Likewise.
22248 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22250 Enable all targets that can be built by default
22252 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
22253 grub-mkfont and grub-fstest if they can be built
22255 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22257 Fix hang and segmentation fault in grub-emu-usb
22259 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
22260 * util/usb.c (grub_libusb_devices): likewise
22261 (grub_libusb_init): rename to ...
22262 (GRUB_MOD_INIT (libusb)):...this
22263 (grub_libusb_fini): rename to ..
22264 (GRUB_MOD_FINI (libusb)):...this
22265 * disk/usbms.c (grub_usbms_transfer): fix retry logic
22266 * include/grub/disk.h (grub_raid_init): removed, it's useless
22267 (grub_raid_fini): likewise
22268 (grub_lvm_init): likewise
22269 (grub_lvm_fini): likewise
22270 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
22273 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22277 * Makefile.in (LIBUSB): new macro
22278 * genmk.rb (Utility/print_tail): new method
22279 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
22280 (top level): call util.print_tail at the end.
22282 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22284 Make FreeBSD accept zpool.cache
22286 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
22287 type is /boot/zfs/zpool.cache
22289 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22293 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
22294 correct wrong typedef
22295 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
22297 2009-07-15 Pavel Roskin <proski@gnu.org>
22299 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
22300 * kern/disk.c (struct grub_disk_cache): Likewise.
22302 * commands/probe.c (options): Typo fix.
22304 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
22305 Increase to 0x5a to accommodate FAT32. Adjust other offsets
22307 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
22309 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
22310 the end of "Error" to make the message more readable.
22312 * boot/i386/pc/boot.S (kernel_segment): Remove.
22313 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
22316 * boot/i386/pc/boot.S (boot_version): Remove.
22317 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
22320 * include/grub/i386/pc/boot.h: Sort all offsets.
22321 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
22322 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
22323 * boot/i386/pc/boot.S: Assert location of every offset listed in
22324 include/grub/i386/pc/boot.h.
22326 2009-07-13 Pavel Roskin <proski@gnu.org>
22328 * include/grub/i386/coreboot/machine.h: Rename
22329 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
22330 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
22331 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
22333 * kern/dl.c: Force native word size to suppress warnings when
22334 compiling grub-emu.
22336 * kern/device.c (grub_device_iterate): Change struct part_ent to
22337 hold the name, not a pointer to it. Use one grub_malloc() per
22338 partition, not two. Free partition_name if grub_malloc() fails.
22339 Set ents to NULL only before grub_partition_iterate() is called.
22341 2009-07-11 Bean <bean123ch@gmail.com>
22343 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
22346 2009-07-10 Bean <bean123ch@gmail.com>
22347 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
22349 * kern/ieee1275/openfw.c (grub_children_iterate)
22350 (grub_devalias_iterate): Fix size evaluation for property or path
22351 strings, which was broken since r2132.
22353 2009-07-07 Pavel Roskin <proski@gnu.org>
22355 * commands/search.c (search_file): Merge into ...
22356 (search_fs): ... this. Accept search type as argument.
22357 (grub_cmd_search): Pass search type to search_fs().
22359 * include/grub/util/console.h: New file.
22360 * util/console.c: Use it instead of grub/machine/console.h.
22361 * util/grub-emu.c: Likewise.
22363 * lib/arg.c (find_long_option): Remove.
22364 (find_long): Add `len' argument, make `s' const char *.
22365 (grub_arg_parse): Parse long options in place, not in a
22368 2009-07-06 Pavel Roskin <proski@gnu.org>
22370 * commands/search.c (search_fs): Fix potential NULL pointer
22373 * commands/search.c (search_fs): Replace QUID macro with quid_fn
22376 2009-07-06 Daniel Mierswa <impulze@impulze.org>
22378 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
22381 2009-07-05 Pavel Roskin <proski@gnu.org>
22383 * include/grub/i386/linux.h (struct linux_kernel_params):
22384 Restore padding3, it's still needed.
22386 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
22388 * util/osdetect.lua: Likewise.
22390 2009-07-05 Bean <bean123ch@gmail.com>
22392 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
22394 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
22395 (grub_lua_getenv): Likewise.
22396 (grub_lua_setenv): Likewise.
22397 (save_errno): New function.
22398 (push_result): Likewise.
22399 (grub_lua_enum_device): Likewise.
22400 (grub_lua_enum_file): Likewise.
22401 (grub_lua_file_open): Likewise.
22402 (grub_lua_file_close): Likewise.
22403 (grub_lua_file_seek): Likewise.
22404 (grub_lua_file_read): Likewise.
22405 (grub_lua_file_getline): Likewise.
22406 (grub_lua_file_getsize): Likewise.
22407 (grub_lua_file_getpos): Likewise.
22408 (grub_lua_file_eof): Likewise.
22409 (grub_lua_file_exist): Likewise.
22410 (grub_lua_add_menu): Likewise.
22412 * script/lua/grub_lua.h (isupper): New inline function.
22413 (islower): Likewise.
22414 (ispunct): Likewise.
22415 (isxdigit): Likewise.
22416 (strcspn): Change to normal function.
22417 (strpbkr): New function declaration.
22418 (memchr): Likewise.
22420 * script/lua/grub_main.c (scan_str): New function.
22421 (strcspn): Likewise.
22422 (strpbrk): Likewise.
22423 (memchr): Likewise.
22425 * script/lua/linit.c (lualibs): Enable the string library.
22427 * util/osdetect.lua: New file.
22429 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
22431 * include/grub/i386/linux.h (struct linux_kernel_params): Add
22432 `capabilities' member.
22434 2009-07-02 Pavel Roskin <proski@gnu.org>
22436 * genparttoollist.sh: Add missing newline at the end.
22438 2009-07-01 Pavel Roskin <proski@gnu.org>
22440 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
22442 * util/hostdisk.c (open_device): Remove `const' from
22443 `sysctl_size', as sysctlbyname() can change it (in this case it
22444 doesn't actually happen).
22446 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
22447 using signed long int constants.
22449 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
22450 constant to avoid a warning on FreeBSD.
22452 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
22455 * Makefile.in: Install include/grub/machine symlink.
22457 * Makefile.in: When installing symlinks, use "cp -fR", which
22458 works on FreeBSD and MacOSX.
22459 From Yves Blusseau <cl7m42e02@sneakemail.com>
22461 * kern/dl.c (grub_dl_resolve_symbol): Make static.
22462 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
22464 * util/misc.c: Move grub_reboot() and grub_halt() ...
22465 * util/grub-emu.c: ... here. Make main_env static.
22466 * include/grub/util/misc.h: Remove main_env.
22468 * kern/mm.c: Use correct format to print size_t.
22470 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
22471 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
22472 * kern/powerpc/dl.c: Likewise.
22473 * kern/sparc64/dl.c: Likewise.
22474 * kern/x86_64/dl.c: Likewise.
22476 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22478 Fix grub-emu build on sparc64-ieee1275.
22480 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
22481 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
22483 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22485 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
22486 (grub_reboot, grub_halt): New functions.
22488 * util/i386/pc/misc.c: Delete. Update all users.
22489 * util/sparc64/ieee1275/misc.c: Likewise.
22490 * util/powerpc/ieee1275/misc.c: Likewise.
22492 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22494 * conf/i386.rmk (setjmp_mod_SOURCES)
22495 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
22496 * conf/common.rmk (setjmp_mod_SOURCES)
22497 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
22498 to use $(target_cpu).
22499 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
22500 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
22501 * conf/powerpc-ieee1275.rmk: Likewise.
22502 * conf/sparc64-ieee1275.rmk: Likewise.
22504 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
22505 $(target_cpu) for kern/$(target_cpu)/dl.c.
22506 * conf/i386-efi.rmk: Likewise.
22507 * conf/i386-ieee1275.rmk: Likewise.
22508 * conf/x86_64-efi.rmk: Likewise.
22509 * conf/i386-coreboot.rmk: Likewise.
22510 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
22511 $(target_cpu) for kern/$(target_cpu)/dl.c and for
22512 kern/$(target_cpu)/cache.S.
22513 * conf/sparc64-ieee1275.rmk: Likewise.
22515 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22517 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
22518 type to `grub_uint8_t', and adjust `padding9' accordingly.
22520 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22522 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
22524 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
22525 assembly in final jump, using register constraints.
22527 (grub_linux_boot): For text mode, initialize `have_vga' using
22528 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
22530 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
22531 right before the final jump.
22533 Set `video_mode' to 0x3.
22535 Document initialization of `video_page', `video_mode' and
22538 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22540 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
22541 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
22542 and set GRUB_LINUX_FLAG_QUIET appropriately.
22544 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22546 Fix build on Debian / sparc.
22548 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
22550 2009-06-28 Pavel Roskin <proski@gnu.org>
22552 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
22555 * util/grub.d/10_linux.in: Match SUSE style initrd names.
22557 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22559 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
22562 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22566 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
22567 file can't be opened. grub_file_open() is already supposed to set
22568 grub_errno / grub_errmsg appropriately.
22569 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22571 2009-06-27 Pavel Roskin <proski@gnu.org>
22572 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22574 * include/grub/dl.h: Include grub/elf.h.
22575 (struct grub_dl): Add symtab field.
22576 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
22577 GRUB_MODULES_MACHINE_READONLY.
22578 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
22579 of the header for read-only modules.
22580 (grub_dl_unload): Free mod->symtab for read-only modules.
22581 * kern/i386/dl.c: Use mod->symtab.
22582 * kern/powerpc/dl.c: Likewise.
22583 * kern/sparc64/dl.c: Likewise.
22584 * kern/x86_64/dl.c: Likewise.
22586 * conf/i386-qemu.rmk: New file.
22587 * kern/i386/qemu/startup.S: Likewise.
22588 * kern/i386/qemu/mmap.c: Likewise.
22589 * boot/i386/qemu/boot.S: Likewise.
22590 * include/grub/i386/qemu/time.h: Likewise.
22591 * include/grub/i386/qemu/serial.h: Likewise.
22592 * include/grub/i386/qemu/kernel.h: Likewise.
22593 * include/grub/i386/qemu/console.h: Likewise.
22594 * include/grub/i386/qemu/boot.h: Likewise.
22595 * include/grub/i386/qemu/init.h: Likewise.
22596 * include/grub/i386/qemu/machine.h: Likewise.
22597 * include/grub/i386/qemu/loader.h: Likewise.
22598 * include/grub/i386/qemu/memory.h: Likewise.
22600 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
22601 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
22602 [qemu] (pkglib_IMAGES): Add `boot.img'.
22603 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
22604 [qemu] (boot_img_FORMAT): New variables.
22605 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
22606 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
22607 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
22608 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
22609 [qemu] (kernel_img_FORMAT): New variables.
22611 * configure.ac: Recognise `i386-qemu'.
22613 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
22614 (for no compression).
22615 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
22616 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
22617 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
22618 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
22621 2009-06-27 Pavel Roskin <proski@gnu.org>
22623 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
22625 * efiemu/prepare32.c: Likewise.
22626 * efiemu/prepare64.c: Likewise.
22628 2009-06-26 Pavel Roskin <proski@gnu.org>
22630 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
22631 * include/grub/elf.h: Define symbols without "32" or "64" based
22632 on GRUB_TARGET_WORDSIZE.
22633 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
22634 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
22636 * efiemu/loadcore64.c: Likewise.
22637 * loader/i386/bsd32.c: Likewise.
22638 * loader/i386/bsd64.c: Likewise.
22639 * kern/dl.c: Remove own ELF definitions.
22640 * util/i386/efi/grub-mkimage.c: Likewise.
22642 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
22644 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
22645 segment 0x0 unconditionally, because the reference generated by
22646 GAS is an absolute address.
22648 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22650 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
22651 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
22653 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22655 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
22656 indexes. Check for -f explicitly.
22657 (search_file): Improve error message.
22658 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
22660 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22662 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
22663 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
22665 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22667 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
22668 * conf/i386-ieee1275.rmk: Likewise.
22669 * conf/i386-coreboot.rmk: Likewise.
22671 * kern/i386/pc/startup.S (grub_stop): Remove function.
22672 * kern/i386/ieee1275/startup.S: Likewise.
22673 * kern/i386/coreboot/startup.S: Likewise.
22674 * kern/i386/misc.S (grub_stop): New function.
22676 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22678 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
22679 * kern/i386/realmode.S (real_to_prot): ... to here.
22681 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22683 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
22685 (kernel_elf_SOURCES): Rename to ...
22686 (kernel_img_SOURCES): ... this.
22687 (kernel_elf_HEADERS): Rename to ...
22688 (kernel_img_HEADERS): ... this. Update all users.
22689 (kernel_elf_ASFLAGS): Rename to ...
22690 (kernel_img_ASFLAGS): ... this.
22691 (kernel_elf_CFLAGS): Rename to ...
22692 (kernel_img_CFLAGS): ... this.
22693 (kernel_elf_LDFLAGS): Rename to ...
22694 (kernel_img_LDFLAGS): ... this.
22695 * conf/i386-coreboot.rmk: Likewise.
22696 * conf/powerpc-ieee1275.rmk: Likewise.
22698 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
22701 2009-06-21 Pavel Roskin <proski@gnu.org>
22703 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
22704 to match nested functions.
22705 * loader/sparc64/ieee1275/linux.c: Likewise.
22707 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
22709 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
22711 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
22712 all i386 platforms.
22714 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
22716 Fix asm file handling on ELF, and remove workarounds.
22718 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
22719 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
22720 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
22721 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
22723 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
22725 Load BSD ELF modules
22727 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
22728 and loader/i386/bsd64.c
22729 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
22730 (FREEBSD_MODTYPE_ELF_MODULE): New definition
22731 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
22732 (grub_freebsd_load_elfmodule32): New declaration
22733 (grub_freebsd_load_elfmoduleobj64): Likewise
22734 (grub_freebsd_load_elf_meta32): Likewise
22735 (grub_freebsd_load_elf_meta64): Likewise
22736 (grub_freebsd_add_meta): Likewise
22737 (grub_freebsd_add_meta_module): Likewise
22738 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
22739 (grub_freebsd_add_meta_module): Likewise and move module-specific
22740 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
22741 (grub_cmd_freebsd): Add elf-kernel specific parts
22742 based on grub_freebsd_add_meta_module
22743 (grub_cmd_freebsd_module): Add type parsing moved from
22744 grub_freebsd_add_meta_module
22745 (grub_cmd_freebsd_module_elf): New function
22746 (cmd_freebsd_module_elf): New variable
22747 (GRUB_MOD_INIT): Register freebsd_module_elf
22748 * loader/i386/bsd32.c: New file
22749 * loader/i386/bsd64.c: Likewise
22750 * loader/i386/bsdXX.c: Likewise
22751 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
22752 (grub_elf64_load): Likewise
22753 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
22755 (grub_elf64_load_hook_t): Likewise
22757 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
22759 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
22761 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
22762 don't write a menu entry for recovery mode.
22764 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
22766 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
22767 after it's no longer needed.
22769 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
22771 * include/grub/i386/loader.h (grub_linux_prot_size)
22772 (grub_linux_tmp_addr, grub_linux_real_addr)
22773 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
22774 GRUB_MACHINE_PCBIOS.
22775 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
22776 common grub_util_info() call to ...
22777 (generate_image): ... here.
22778 Fix use of uninitialized memory, comparison of signed with
22779 unsigned integers and memory leak.
22780 Remove bogus module address message.
22782 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22784 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
22786 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
22788 2009-06-19 Pavel Roskin <proski@gnu.org>
22790 * configure.ac: Remove stray AC_MSG_CHECKING.
22792 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
22794 * disk/scsi.c (grub_scsi_open): use continue instead of big if
22796 2009-06-18 Pavel Roskin <proski@gnu.org>
22798 * conf/common.rmk: Add fs_file.mod.
22799 * disk/fs_file.c: New file.
22800 * include/grub/disk.h (enum grub_disk_dev_id): Add
22801 GRUB_DISK_DEVICE_FILE_ID.
22803 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22805 Fix build with Apple's toolchain. Part 2
22807 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
22810 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22812 Fix build with Apple's toolchain. Part 1
22814 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
22816 * configure.ac: remove a leftover AC_MSG_RESULT
22817 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
22820 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22824 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
22825 (decomp_block): initialize ch
22826 use grub_memcpy instead of memcpy
22828 2009-06-17 Pavel Roskin <proski@gnu.org>
22830 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
22831 version, use declarations needed to use vga_text as the startup
22834 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
22835 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
22837 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
22838 and grub_at_keyboard_fini(), it's done on module load and
22841 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
22843 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
22844 file can't be found.
22845 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22847 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
22849 Fix newline handling
22851 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
22852 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
22853 (grub_script_yylex): don't segfault on unterminated script
22854 newline terminates command and variable
22856 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
22858 avoid double grub_adjust_range call. Bug reported by David Simner
22860 * kern/disk.c (grub_disk_write): change to raw disk access before
22863 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
22865 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
22866 spaces, for the benefit of help2man.
22867 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22869 2009-06-16 Pavel Roskin <proski@gnu.org>
22871 * kern/i386/halt.c: Include grub/machine/init.h.
22872 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
22874 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
22876 * util/grub.d/30_os-prober.in: Use ${root} in the generated
22877 drivemap menuentry.
22879 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
22881 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
22884 2009-06-16 Pavel Roskin <proski@gnu.org>
22886 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
22887 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
22888 save %dx, we only need %dl and we never change it.
22889 * boot/i386/pc/cdboot.S: Don't set the root drive.
22890 * boot/i386/pc/pxeboot.S: Likewise.
22891 * include/grub/i386/pc/boot.h: Remove
22892 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
22893 GRUB_BOOT_MACHINE_DRIVE_CHECK.
22894 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
22895 * kern/i386/pc/init.c (make_install_device): Remove references
22896 to grub_root_drive.
22897 * kern/i386/pc/startup.S: Likewise.
22898 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
22900 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
22904 * commands/xnu_uuid.c: new file
22905 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
22906 (xnu_uuid_mod_SOURCES): new variable
22907 (xnu_uuid_mod_CFLAGS): likewise
22908 (xnu_uuid_mod_LDFLAGS): likewise
22909 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
22910 * conf/i386-ieee1275.rmk: likewise
22911 * conf/i386-pc.rmk: likewise
22912 * conf/powerpc-ieee1275.rmk: likewise
22913 * conf/sparc64-ieee1275.rmk: likewise
22914 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
22916 2009-06-16 Pavel Roskin <proski@gnu.org>
22918 * configure.ac: Avoid '==' in test command, it's not portable.
22920 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
22924 * commands/probe.c: new file
22925 * conf/common.rmk (pkglib_MODULES): add probe.mod
22926 (probe_mod_SOURCES): new variable
22927 (probe_mod_CFLAGS): likewise
22928 (probe_mod_LDFLAGS): likewise
22929 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
22930 * conf/i386-ieee1275.rmk: likewise
22931 * conf/i386-pc.rmk: likewise
22932 * conf/powerpc-ieee1275.rmk: likewise
22933 * conf/sparc64-ieee1275.rmk: likewise
22935 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
22937 Fix handling of string like \"hello\" and "a
22940 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
22941 (grub_script_yylex): fix parsing of quoting, escaping and newline
22943 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
22945 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
22948 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
22950 * util/grub-mkconfig.in: Fix parsing of --output option.
22952 2009-06-12 Pavel Roskin <proski@gnu.org>
22954 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
22955 genmk.rb don't need to be generated or installed.
22957 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22959 * commands/i386/pc/drivemap_int13h.S: add more comments
22961 2009-06-11 Pavel Roskin <proski@gnu.org>
22963 * Makefile.in (uninstall): Uninstall manuals.
22965 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
22966 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
22967 and update-grub_lib in two places.
22968 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
22970 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
22971 a compiler warning.
22973 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
22974 `entry_lo' to fix variable shadowing.
22976 2009-06-11 Christian Franke <franke@computer.org>
22978 * kern/misc.c (__enable_execute_stack): Add missing return type
22979 to prevent gcc warning.
22981 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
22983 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
22985 2009-06-11 Pavel Roskin <proski@gnu.org>
22987 * Makefile.in: Don't rely on any scripts being executable.
22988 Always use $(SHELL) to run shell scripts.
22990 * configure.ac: Always define ___main if using -nostdlib. This
22991 fixes tests on Cygwin.
22993 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
22997 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
22998 is in bytes and not in blocks
23000 2009-06-11 Pavel Roskin <proski@gnu.org>
23002 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
23005 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
23007 * util/grub.d/30_os-prober.in: Fix a comment. Source
23008 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
23009 to set the root device. Place drivemap command in the generated
23012 2009-06-11 Pavel Roskin <proski@gnu.org>
23014 * configure.ac: Remove host_m32. Issues with 64-bit utilities
23015 have long been resolved.
23017 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
23019 * util/grub.d/10_linux.in: Capitalise "Linux".
23021 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
23023 2009-06-11 Pavel Roskin <proski@gnu.org>
23025 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
23026 fix a gcc warning and ensure that the function won't ever exit.
23028 * kern/i386/ieee1275/init.c: Add missing prototype for
23029 grub_stop_floppy().
23031 * loader/ieee1275/multiboot2.c [__i386__]: Include
23032 grub/cpu/multiboot.h.
23034 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
23035 casts to short - they are not portable and cause warnings. Fix
23036 use of uninitialized values in input_buf. Use ARRAY_SIZE.
23038 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
23042 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
23044 (grub_get_root_biosnumber_saved): new variable
23045 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
23046 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
23047 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
23048 %dx after the call if necessary
23049 * conf/common.rmk (pkglib_MODULES): remove boot.mod
23050 (boot_mod_SOURCES): remove
23051 (boot_mod_CFLAGS): remove
23052 (boot_mod_LDFLAGS): remove
23053 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
23054 (boot_mod_SOURCES): new variable
23055 (boot_mod_CFLAGS): likewise
23056 (boot_mod_LDFLAGS): likewise
23057 * conf/i386-efi.rmk: likewise
23058 * conf/i386-ieee1275.rmk: likewise
23059 * conf/i386-pc.rmk: likewise
23060 * conf/powerpc-ieee1275.rmk: likewise
23061 * conf/sparc64-ieee1275.rmk: likewise
23062 * conf/x86_64-efi.rmk: likewise
23063 * include/grub/i386/pc/biosnum.h: new file
23064 * lib/i386/pc/biosnum.c: likewise
23065 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
23066 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
23067 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
23069 2009-06-10 Pavel Roskin <proski@gnu.org>
23071 * io/gzio.c (test_header): Don't reuse one buffer for all data.
23072 Use separate variables. Read only the file size at the end, but
23073 not the checksum that we don't use.
23075 * kern/file.c (grub_file_read): Use void pointer for the buffer.
23076 Adjust all callers.
23078 * kern/ieee1275/openfw.c: Remove libc includes.
23079 * kern/ieee1275/cmain.c: Likewise.
23080 * include/grub/ieee1275/ieee1275.h: Likewise.
23082 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
23085 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
23087 * Makefile.in: Remove all trailing whitespace.
23088 * conf/i386-pc.rmk: Likewise.
23089 * conf/powerpc-ieee1275.rmk: Likewise.
23090 * conf/sparc64-ieee1275.rmk: Likewise.
23091 * docs/grub.texi: Likewise.
23092 * docs/texinfo.tex: Likewise.
23093 * disk/fs_uuid.c: Likewise.
23094 * disk/lvm.c: Likewise.
23095 * disk/scsi.c: Likewise.
23096 * disk/ata.c: Likewise.
23097 * disk/ieee1275/ofdisk.c: Likewise.
23098 * disk/i386/pc/biosdisk.c: Likewise.
23099 * disk/host.c: Likewise.
23100 * disk/raid.c: Likewise.
23101 * disk/efi/efidisk.c: Likewise.
23102 * disk/usbms.c: Likewise.
23103 * disk/memdisk.c: Likewise.
23104 * disk/loopback.c: Likewise.
23105 * kern/powerpc/dl.c: Likewise.
23106 * kern/device.c: Likewise.
23107 * kern/dl.c: Likewise.
23108 * kern/sparc64/dl.c: Likewise.
23109 * kern/ieee1275/ieee1275.c: Likewise.
23110 * kern/term.c: Likewise.
23111 * kern/fs.c: Likewise.
23112 * kern/i386/dl.c: Likewise.
23113 * kern/i386/pc/startup.S: Likewise.
23114 * kern/i386/pc/init.c: Likewise.
23115 * kern/i386/pc/mmap.c: Likewise.
23116 * kern/i386/pc/lzo1x.S: Likewise.
23117 * kern/i386/ieee1275/init.c: Likewise.
23118 * kern/i386/realmode.S: Likewise.
23119 * kern/i386/tsc.c: Likewise.
23120 * kern/partition.c: Likewise.
23121 * kern/corecmd.c: Likewise.
23122 * kern/file.c: Likewise.
23123 * kern/efi/efi.c: Likewise.
23124 * kern/efi/init.c: Likewise.
23125 * kern/efi/mm.c: Likewise.
23126 * kern/main.c: Likewise.
23127 * kern/err.c: Likewise.
23128 * kern/env.c: Likewise.
23129 * kern/disk.c: Likewise.
23130 * kern/generic/millisleep.c: Likewise.
23131 * kern/generic/rtc_get_time_ms.c: Likewise.
23132 * kern/misc.c: Likewise.
23133 * kern/parser.c: Likewise.
23134 * genmk.rb: Likewise.
23135 * configure.ac: Likewise.
23136 * boot/i386/pc/diskboot.S: Likewise.
23137 * boot/i386/pc/pxeboot.S: Likewise.
23138 * boot/i386/pc/boot.S: Likewise.
23139 * boot/i386/pc/lnxboot.S: Likewise.
23140 * boot/i386/pc/cdboot.S: Likewise.
23141 * parttool/pcpart.c: Likewise.
23142 * video/readers/tga.c: Likewise.
23143 * video/video.c: Likewise.
23144 * video/bitmap.c: Likewise.
23145 * lib/envblk.c: Likewise.
23146 * lib/i386/setjmp.S: Likewise.
23147 * fs/xfs.c: Likewise.
23148 * fs/afs.c: Likewise.
23149 * fs/fat.c: Likewise.
23150 * fs/ntfs.c: Likewise.
23151 * fs/udf.c: Likewise.
23152 * fs/affs.c: Likewise.
23153 * fs/iso9660.c: Likewise.
23154 * fs/hfs.c: Likewise.
23155 * fs/fshelp.c: Likewise.
23156 * fs/ext2.c: Likewise.
23157 * fs/jfs.c: Likewise.
23158 * fs/reiserfs.c: Likewise.
23159 * fs/hfsplus.c: Likewise.
23160 * fs/minix.c: Likewise.
23161 * fs/cpio.c: Likewise.
23162 * fs/sfs.c: Likewise.
23163 * fs/ufs.c: Likewise.
23164 * efiemu/prepare.c: Likewise.
23165 * efiemu/loadcore_common.c: Likewise.
23166 * efiemu/runtime/efiemu.sh: Likewise.
23167 * efiemu/runtime/efiemu.S: Likewise.
23168 * efiemu/runtime/efiemu.c: Likewise.
23169 * efiemu/pnvram.c: Likewise.
23170 * efiemu/main.c: Likewise.
23171 * efiemu/i386/pc/cfgtables.c: Likewise.
23172 * efiemu/i386/loadcore64.c: Likewise.
23173 * efiemu/i386/loadcore32.c: Likewise.
23174 * efiemu/loadcore.c: Likewise.
23175 * efiemu/symbols.c: Likewise.
23176 * efiemu/mm.c: Likewise.
23177 * include/grub/autoefi.h: Likewise.
23178 * include/grub/datetime.h: Likewise.
23179 * include/grub/term.h: Likewise.
23180 * include/grub/hfs.h: Likewise.
23181 * include/grub/lvm.h: Likewise.
23182 * include/grub/i386/tsc.h: Likewise.
23183 * include/grub/i386/linux.h: Likewise.
23184 * include/grub/i386/xnu.h: Likewise.
23185 * include/grub/i386/efiemu.h: Likewise.
23186 * include/grub/i386/pc/biosdisk.h: Likewise.
23187 * include/grub/i386/pc/memory.h: Likewise.
23188 * include/grub/i386/pc/vbe.h: Likewise.
23189 * include/grub/parttool.h: Likewise.
23190 * include/grub/video.h: Likewise.
23191 * include/grub/memory.h: Likewise.
23192 * include/grub/fs.h: Likewise.
23193 * include/grub/partition.h: Likewise.
23194 * include/grub/xnu.h: Likewise.
23195 * include/grub/efi/api.h: Likewise.
23196 * include/grub/efi/pe32.h: Likewise.
23197 * include/grub/efi/memory.h: Likewise.
23198 * include/grub/multiboot.h: Likewise.
23199 * include/grub/usbdesc.h: Likewise.
23200 * include/grub/multiboot2.h: Likewise.
23201 * include/grub/acpi.h: Likewise.
23202 * include/grub/efiemu/efiemu.h: Likewise.
23203 * include/grub/disk.h: Likewise.
23204 * include/grub/ieee1275/ieee1275.h: Likewise.
23205 * include/grub/net.h: Likewise.
23206 * include/grub/machoload.h: Likewise.
23207 * include/grub/macho.h: Likewise.
23208 * include/multiboot.h: Likewise.
23209 * genmoddep.awk: Likewise.
23210 * normal/main.c: Likewise.
23211 * normal/menu_entry.c: Likewise.
23212 * normal/menu_viewer.c: Likewise.
23213 * normal/completion.c: Likewise.
23214 * normal/cmdline.c: Likewise.
23215 * normal/misc.c: Likewise.
23216 * normal/datetime.c: Likewise.
23217 * bus/usb/usbtrans.c: Likewise.
23218 * bus/usb/ohci.c: Likewise.
23219 * bus/usb/uhci.c: Likewise.
23220 * bus/usb/usb.c: Likewise.
23221 * mmap/efi/mmap.c: Likewise.
23222 * mmap/i386/pc/mmap_helper.S: Likewise.
23223 * mmap/i386/pc/mmap.c: Likewise.
23224 * mmap/i386/mmap.c: Likewise.
23225 * mmap/i386/uppermem.c: Likewise.
23226 * mmap/mmap.c: Likewise.
23227 * commands/acpi.c: Likewise.
23228 * commands/echo.c: Likewise.
23229 * commands/blocklist.c: Likewise.
23230 * commands/loadenv.c: Likewise.
23231 * commands/usbtest.c: Likewise.
23232 * commands/boot.c: Likewise.
23233 * commands/parttool.c: Likewise.
23234 * commands/search.c: Likewise.
23235 * commands/cat.c: Likewise.
23236 * commands/i386/pc/play.c: Likewise.
23237 * commands/i386/pc/drivemap.c: Likewise.
23238 * commands/i386/pc/vbeinfo.c: Likewise.
23239 * commands/i386/pc/acpi.c: Likewise.
23240 * commands/i386/pc/vbetest.c: Likewise.
23241 * commands/ls.c: Likewise.
23242 * commands/cmp.c: Likewise.
23243 * commands/test.c: Likewise.
23244 * commands/efi/acpi.c: Likewise.
23245 * commands/gptsync.c: Likewise.
23246 * commands/help.c: Likewise.
23247 * partmap/amiga.c: Likewise.
23248 * partmap/apple.c: Likewise.
23249 * partmap/acorn.c: Likewise.
23250 * partmap/pc.c: Likewise.
23251 * partmap/sun.c: Likewise.
23252 * partmap/gpt.c: Likewise.
23253 * script/sh/lexer.c: Likewise.
23254 * script/sh/function.c: Likewise.
23255 * font/font.c: Likewise.
23256 * font/font_cmd.c: Likewise.
23257 * loader/powerpc/ieee1275/linux.c: Likewise.
23258 * loader/efi/chainloader.c: Likewise.
23259 * loader/multiboot_loader.c: Likewise.
23260 * loader/macho.c: Likewise.
23261 * loader/i386/multiboot.c: Likewise.
23262 * loader/i386/linux.c: Likewise.
23263 * loader/i386/pc/linux.c: Likewise.
23264 * loader/i386/pc/multiboot2.c: Likewise.
23265 * loader/i386/pc/chainloader.c: Likewise.
23266 * loader/i386/pc/xnu.c: Likewise.
23267 * loader/i386/bsd_trampoline.S: Likewise.
23268 * loader/i386/efi/linux.c: Likewise.
23269 * loader/i386/multiboot_elfxx.c: Likewise.
23270 * loader/i386/bsd_helper.S: Likewise.
23271 * loader/i386/bsd.c: Likewise.
23272 * loader/i386/linux_trampoline.S: Likewise.
23273 * loader/i386/xnu_helper.S: Likewise.
23274 * loader/i386/xnu.c: Likewise.
23275 * loader/i386/bsd_pagetable.c: Likewise.
23276 * loader/i386/multiboot_helper.S: Likewise.
23277 * loader/xnu.c: Likewise.
23278 * loader/xnu_resume.c: Likewise.
23279 * io/gzio.c: Likewise.
23280 * term/efi/console.c: Likewise.
23281 * term/terminfo.c: Likewise.
23282 * term/ieee1275/ofconsole.c: Likewise.
23283 * term/i386/pc/serial.c: Likewise.
23284 * term/i386/pc/vesafb.c: Likewise.
23285 * term/i386/pc/vga.c: Likewise.
23286 * term/usb_keyboard.c: Likewise.
23287 * term/gfxterm.c: Likewise.
23288 * aclocal.m4: Likewise.
23289 * util/lvm.c: Likewise.
23290 * util/grub.d/30_os-prober.in: Likewise.
23291 * util/grub.d/10_hurd.in: Likewise.
23292 * util/console.c: Likewise.
23293 * util/grub-macho2img.c: Likewise.
23294 * util/grub-probe.c: Likewise.
23295 * util/hostfs.c: Likewise.
23296 * util/i386/pc/grub-mkimage.c: Likewise.
23297 * util/i386/pc/grub-setup.c: Likewise.
23298 * util/i386/efi/grub-mkimage.c: Likewise.
23299 * util/grub-mkconfig.in: Likewise.
23300 * util/raid.c: Likewise.
23301 * util/resolve.c: Likewise.
23302 * util/grub-mkdevicemap.c: Likewise.
23303 * util/grub-emu.c: Likewise.
23304 * util/getroot.c: Likewise.
23305 * util/hostdisk.c: Likewise.
23306 * util/usb.c: Likewise.
23307 * util/grub-editenv.c: Likewise.
23308 * util/misc.c: Likewise.
23310 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
23312 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
23313 `genparttoollist.sh'.
23314 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
23315 Add `*.sh' to the list find searches for and change `mdate.sh'
23318 2009-06-10 Pavel Roskin <proski@gnu.org>
23320 * include/grub/multiboot2.h: Provide compatibility defines for
23322 * include/multiboot2.h: Include stdint.h only if needed, using
23324 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
23326 * loader/ieee1275/multiboot2.c: Likewise.
23327 * loader/multiboot2.c: Likewise.
23328 * loader/multiboot_loader.c: Likewise.
23330 * configure.ac: Use -nostdlib when probing for the target. It
23331 should not be required to have libc for the target.
23333 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
23334 they fail without libc headers for the target.
23335 * include/grub/powerpc/libgcc.h: Use weak attribute for all
23337 * include/grub/sparc64/libgcc.h: Likewise. Don't use
23338 preprocessor conditionals.
23340 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
23341 build system doesn't need to be aware of the tar.c internals.
23343 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
23345 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
23347 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
23349 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
23350 disk limit to 26 for IDE, Virtio, Xen and SCSI.
23352 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
23354 * util/i386/pc/grub-install.in: Change the error message if UUIDs
23355 aren't available if ata.mod gets used.
23357 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
23359 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
23360 initialising controller.
23361 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
23363 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23365 * util/i386/pc/grub-install.in: Add a parameter --disk-module
23366 to choose between ata and biosdisk module on i386-pc.
23368 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
23370 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
23371 Subclass and Programming Interface fields in terms of the 3 byte
23372 Class Code register.
23373 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
23375 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
23376 interface is OHCI. Add grub_dprintf for symmetry with
23378 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
23379 interface is UHCI. Add interf variable for programming
23380 interface. Print interface with class/subclass.
23382 * bus/usb/ohci.c: Set interf with correct field.
23384 * bus/usb/uhci.c: Remove unneeded doubled lines.
23385 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
23386 Remove whitespace inside comment.
23388 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
23390 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
23391 as fallback an equivalent option without depth.
23393 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
23395 Not fail if unable to retrieve C/H/S on LBA disks
23397 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
23398 if unable to retrieve C/H/S on LBA disks
23400 2009-06-08 Pavel Roskin <proski@gnu.org>
23402 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
23405 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23407 * Makefile.in (uninstall): Remove all $lib_DATA files.
23409 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
23411 Bugfix: install on partitionless device
23413 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
23416 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23418 * Makefile.in (uninstall): Remove all $include_DATA files.
23420 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23422 * commands/true.c: New file. Implement the true and false commands.
23423 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
23424 (true_mod_SOURCES): New variable.
23425 (true_mod_CFLAGS): Likewise.
23426 (true_mod_LDFLAGS): Likewise.
23428 2009-06-05 Colin D Bennett <colin@gibibit.com>
23430 Optimized font character lookup using binary search instead of linear
23431 search. Fonts now are required to have the character index ordered by
23434 * font/font.c (load_font_index): Verify that fonts have ordered
23436 (find_glyph): Use binary search instead of linear search to find a
23437 character in a font.
23439 2009-06-05 Michael Scherer <misc@mandriva.org>
23441 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
23442 uses case sensitive btree.
23443 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
23444 only for case insensitive filesystems.
23446 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
23448 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
23449 * conf/common.rmk (search_mod_CFLAGS): likewise
23451 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23453 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
23454 compensate a compiler bug
23456 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23458 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
23461 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23463 Definitions for creating asm symbols with Apple's CC
23465 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
23466 [APPLE_CC] (VARIABLE): likewise
23468 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23470 Disable lnxboot.img when compiled
23473 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
23474 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
23475 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
23476 [! APPLE_CC] (CODE_LENG): skip
23477 [! APPLE_CC] (setup_sects): likewise
23478 [! APPLE_CC]: skip filling
23480 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23482 Address in trampolines based on 32-bit registers when compiled
23485 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
23487 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
23489 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23491 Avoid aliases when compiling with Apple's CC for PCBIOS machine
23493 * kern/misc.c [APPLE_CC] (memcpy): new function
23494 [APPLE_CC] (memmove): likewise
23495 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
23496 (memcpy): define alias conditionally on !APPLE_CC
23499 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
23500 APPLE_CC are defined
23501 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
23502 (grub_assert_fail): make prototype conditional
23504 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23506 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
23508 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
23510 (CLEANFILES): add grub-macho2img
23511 (grub_macho2img_SOURCES): new variable
23512 * kern/i386/pc/startup.S (bss_start): new variable
23513 (bss_end): likewise
23514 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
23515 * util/grub-macho2img.c: new file
23517 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23519 Use objconv when compiling with Apple's CC
23521 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
23522 (efiemu64.o): likewise
23523 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
23524 when compiling with Apple's CC
23525 (efiemu64_s.o): likewise
23526 * configure.ac: check for objconv when compiling with Apple's CC
23527 * genmk.rb: use objconv for modules when compiled with Apple's CC
23529 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23531 Define segment as well as section when compiling with
23534 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
23535 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
23536 (efiemu_convert_pointer): likewise
23537 (efiemu_set_virtual_address_map): likewise
23538 (efiemu_convert_pointer): likewise
23539 (efiemu_getcrc32): likewise
23540 (init_crc32_table): likewise
23541 (reflect): likewise
23542 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
23543 (GRUB_MOD_DEP): likewise
23545 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23547 Allow a compilation without -mcmodel=large
23549 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
23550 when compiled without -mcmodel=large
23551 (filter_memory_map): remove memory post 4 GiB when compiled
23552 without -mcmodel=large
23553 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
23554 TARGET_CFLAGS when -mcmodel=large isn't supported
23556 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23558 Remove nested functions in efiemu core
23560 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
23562 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23564 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
23566 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
23568 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
23570 (grub_cpu_is_tsc_supported): likewise
23571 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
23573 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23575 Absolute addressing through constant with Apple's cc
23577 * kern/i386/pc/startup.S: Define necessary constants
23578 and address through it when using ABS with Apple's CC
23579 * boot/i386/pc/diskboot.S: likewise
23580 * boot/i386/pc/boot.S: likewise
23581 * boot/i386/pc/lnxboot.S: likewise
23582 * boot/i386/pc/cdboot.S: likewise
23583 * mmap/i386/pc/mmap_helper.S: likewise
23584 * commands/i386/pc/drivemap_int13h.S: likewise
23586 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23588 Check if compiler is apple cc
23590 * Makefile.in (ASFLAGS): new variable
23591 (TARGET_ASFLAGS): likewise
23592 (TARGET_MODULE_FORMAT): likewise
23593 (TARGET_APPLE_CC): likewise
23594 (OBJCONV): likewise
23595 (TARGET_IMG_CFLAGS): likewise
23596 (TARGET_CPPFLAGS): add includedir
23597 * configure.ac: call grub_apple_cc and grub_apple_target_cc
23598 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
23599 Check for linker script only if compiler isn't Apple's CC
23600 (TARGET_MODULE_FORMAT): set
23601 (TARGET_APPLE_CC): likewise
23602 (TARGET_ASFLAGS): likewise
23603 (ASFLAGS): likewise
23604 Check for objcopy only if compiler isn't Apple's CC
23605 Check for BSS symbol only if compiler isn't Apple's CC
23606 * genmk.rb: adapt nm options if we use Apple's utils
23607 * aclocal.m4 (grub_apple_cc): new test
23608 (grub_apple_target_cc): likewise
23610 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23612 Simplify sed expressions and improve awk
23614 * Makefile.in (install-local): simplify sed expression
23615 * gencmdlist.sh: likewise
23616 * genmoddep.awk: avoid adding module as a dependency of itself
23618 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23620 Add missing start symbols
23622 * boot/i386/pc/boot.S: add start
23623 * boot/i386/pc/pxeboot.S: likewise
23625 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23627 Fix wrong assumptions with grub-mkimage on EFI
23629 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
23630 (relocate_addresses): consider both r_addend and value at offset
23631 (make_mods_section): zerofill modinfo and header
23632 (convert_elf): write prefix here
23634 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23636 Use .asciz instead of .string
23638 * i386/pc/diskboot.S: use .asciz instead of .string
23639 * i386/pc/boot.S: likewise
23640 * include/grub/dl.h (GRUB_MOD_DEP): likewise
23641 (GRUB_MOD_NAME): likewise
23643 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23647 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
23648 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
23649 (grub_video_setup): remove
23650 (grub_video_set_mode): new prototype
23651 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
23653 (linux_vesafb_res): compile only on PCBIOS
23654 (grub_linux_boot): support gfxpayload
23655 * loader/i386/pc/xnu.c (video_hook): new function
23656 (grub_xnu_set_video): support gfxpayload
23657 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
23658 (DEFAULT_VIDEO_HEIGHT): likewise
23659 (DEFAULT_VIDEO_FLAGS): likewise
23660 (DEFAULT_VIDEO_MODE): new definition
23661 (video_hook): new function
23662 (grub_gfxterm_init): use grub_video_set_mode
23663 * util/grub.d/30_os-prober.in: remove explicit modesetting before
23665 * video/video.c (grub_video_setup): removed
23666 (grub_video_set_mode): new function based on grub_gfxterm_init and
23669 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23671 Avoid calling biosdisk in drivemap
23673 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
23674 (revparse_biosdisk): likewise
23675 (list_mappings): derive name from id directly
23676 (grub_cmd_drivemap): use tryparse_diskstring
23678 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23682 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
23683 (grub_lexer_param): add tokenonhold
23684 (grub_script_create_cmdline): remove cmdline. All callers updated
23685 (grub_script_function_create): make functionname
23686 grub_script_arg. All callers updated
23687 (grub_script_execute_argument_to_string): new prototype
23688 * kern/parser.c (state_transitions): reorder
23689 (grub_parser_cmdline_state): fix a bug and make more compact
23690 * script/sh/execute.c (grub_script_execute_argument_to_string):
23692 (grub_script_execute_cmdline): use new format
23693 * script/sh/function.c (grub_script_function_create): make functionname
23694 grub_script_arg. All callers updated
23695 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
23696 (grub_script_yylex): remove
23697 (grub_script_yylex2): renamed to ...
23698 (grub_script_yylex): ...renamed
23699 parse the expressions like a${b}c
23700 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
23701 (GRUB_PARSER_TOKEN_VAR): remove
23702 (GRUB_PARSER_TOKEN_NAME): likewise
23703 ("if"): declare as typeless
23704 ("while"): likewise
23705 ("function"): likewise
23710 (argument): likewise
23711 (script): accept empty scripts and make exit on error
23712 (arguments): use GRUB_PARSER_TOKEN_ARG
23713 (function): likewise
23714 (command): move error handling to script
23715 (menuentry): move grub_script_lexer_ref before
23716 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
23717 argument. All callers updated
23719 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
23721 Prevent GRUB from probing floppies during boot.
23723 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
23724 * commands/search.c (options): Add --no-floppy.
23725 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
23726 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
23727 --no-floppy when searching for UUIDs.
23729 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
23731 Simplify the code duplication in commands/search.c.
23733 * commands/search.c (search_label, search_fs_uuid): Merge into ...
23734 (search_fs): ... this. Update all users.
23736 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
23738 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
23740 2009-05-28 Pavel Roskin <proski@gnu.org>
23742 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
23743 Remove the original symlink explicitly.
23745 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
23746 just one slash. That's how grub_fshelp_find_file() does it.
23748 2009-05-26 Pavel Roskin <proski@gnu.org>
23750 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
23753 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
23756 2009-05-25 Christian Franke <franke@computer.org>
23758 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
23760 (grub_atapi_identify): Add wait after drive select.
23761 (grub_ata_identify): Do more strict status register check before
23762 calling grub_atapi_identify (). Suppress error message if status
23763 register is 0x00 after command failure. Add status register
23764 check after PIO read to avoid bogus identify due to stuck DRQ.
23765 Thanks to Pavel Roskin for testing.
23766 (grub_device_initialize): Remove unsafe status register check.
23767 Thanks to 'phcoder' for problem report and patch.
23768 Prevent sign extension in debug message.
23770 2009-05-23 Colin D Bennett <colin@gibibit.com>
23772 Cleaned up `include/grub/normal.h'. Grouped prototypes by
23773 definition file, and functions defined in `normal/menu.c' have had
23774 their prototypes moved to `include/grub/menu.h' for consistency.
23776 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
23778 (grub_menu_get_entry): Likewise.
23779 (grub_menu_get_timeout): Likewise.
23780 (grub_menu_set_timeout): Likewise.
23781 (grub_menu_execute_entry): Likewise.
23782 (grub_menu_execute_with_fallback): Likewise.
23783 (grub_menu_entry_run): Likewise.
23785 * include/grub/normal.h: Re-ordered and grouped function
23786 prototypes by file that the function is defined in.
23787 (grub_menu_execute_callback): Removed; moved to menu.h.
23788 (grub_menu_get_entry): Likewise.
23789 (grub_menu_get_timeout): Likewise.
23790 (grub_menu_set_timeout): Likewise.
23791 (grub_menu_execute_entry): Likewise.
23792 (grub_menu_execute_with_fallback): Likewise.
23793 (grub_menu_entry_run): Likewise.
23794 (grub_menu_addentry): Renamed from this ...
23795 (grub_normal_add_menu_entry): ... to this.
23797 * normal/main.c (grub_menu_addentry): Renamed from this ...
23798 (grub_normal_add_menu_entry): ... to this.
23800 * script/sh/execute.c (grub_script_execute_menuentry): Update
23801 reference to renamed grub_menu_addentry function.
23803 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
23805 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
23807 2009-05-22 Pavel Roskin <proski@gnu.org>
23809 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
23810 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
23811 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
23812 compiling for the i386 targets, but not for the utilities.
23814 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
23816 (grub_root_drive): Likewise.
23817 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
23819 (grub_root_drive): Change size to byte.
23820 (grub_start_addr): Remove.
23821 (grub_end_addr): Likewise.
23822 (grub_apm_bios_info): Likewise.
23824 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
23826 * normal/i386: Remove.
23827 * normal/powerpc: Likewise.
23828 * normal/sparc64: Likewise.
23829 * normal/x86_64: Likewise.
23831 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
23833 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
23834 * loader/i386/linux_trampoline.S: Fix indentation
23835 * loader/i386/xnu_helper.S: Likewise
23837 2009-05-18 Colin D Bennett <colin@gibibit.com>
23839 Display error messages when parsing a Lua statement fails.
23840 Previously, executing a syntactically invalid statement like
23841 ")foo" or "bar;" would silently fail.
23843 * script/lua/grub_main.c (handle_lua_error): New function.
23844 (grub_lua_parse_line): Improved reporting of Lua parser and
23847 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23849 Remove -Werror which causes build to fail on some systems
23851 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
23852 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
23853 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
23855 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23857 trampoline for linux on 64-bit platform
23859 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
23860 loader/i386/efi/linux_trampoline.S
23861 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
23863 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
23865 * loader/i386/linux_trampoline.S: moved here
23866 * loader/i386/efi/linux.c (allocate_pages): reserve space for
23868 (jumpvector): removed
23869 (grub_linux_trampoline_start): new declaration
23870 (grub_linux_trampoline_end): likewise
23871 (grub_linux_boot): use trampoline when on 64-bit platform
23872 * loader/i386/linux.c: likewise
23874 2009-05-16 Pavel Roskin <proski@gnu.org>
23876 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
23877 const to avoid a warning.
23878 (grub_lua_setenv): Likewise.
23879 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
23880 lmsg to fix a warning.
23882 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
23884 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
23885 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23886 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
23887 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23888 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
23889 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23890 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
23891 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23893 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
23895 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
23897 2009-05-16 Bean <bean123ch@gmail.com>
23899 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
23900 (lua_mod_SOURCES): New variable.
23901 (lua_mod_CFLAGS): Likewise.
23902 (lua_mod_LDFLAGS): Likewise.
23904 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
23905 (setjmp_mod_SOURCES): New variable.
23906 (setjmp_mod_CFLAGS): Likewise.
23907 (setjmp_LDFLAGS): Likewise.
23909 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
23910 (setjmp_mod_SOURCES): New variable.
23911 (setjmp_mod_CFLAGS): Likewise.
23912 (setjmp_LDFLAGS): Likewise.
23914 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
23915 (setjmp_mod_SOURCES): New variable.
23916 (setjmp_mod_CFLAGS): Likewise.
23917 (setjmp_LDFLAGS): Likewise.
23919 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
23920 (setjmp_mod_SOURCES): New variable.
23921 (setjmp_mod_CFLAGS): Likewise.
23922 (setjmp_LDFLAGS): Likewise.
23924 * normal/i386/setjmp.S: Moved from here ...
23925 * lib/i386/setjmp.S: ... Moved here
23926 * normal/x86_64/setjmp.S: Moved from here ...
23927 * lib/x86_64/setjmp.S: ... Moved here
23928 * normal/powerpc/setjmp.S: Moved from here ...
23929 * lib/powerpc/setjmp.S: ... Moved here
23930 * normal/sparc64/setjmp.S: Moved from here ...
23931 * lib/sparc64/setjmp.S: ... Moved here
23933 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
23934 returns_twice in mingw.
23936 * script/lua/grub_lib.c: New file.
23937 * script/lua/grub_lib.h: Likewise.
23938 * script/lua/grub_lua.h: Likewise.
23939 * script/lua/grub_main.c: Likewise.
23940 * script/lua/lapi.c: Likewise.
23941 * script/lua/lapi.h: Likewise.
23942 * script/lua/lauxlib.c: Likewise.
23943 * script/lua/lauxlib.h: Likewise.
23944 * script/lua/lbaselib.c: Likewise.
23945 * script/lua/lcode.c: Likewise.
23946 * script/lua/lcode.h: Likewise.
23947 * script/lua/ldblib.c: Likewise.
23948 * script/lua/ldebug.c: Likewise.
23949 * script/lua/ldebug.h: Likewise.
23950 * script/lua/ldo.c: Likewise.
23951 * script/lua/ldo.h: Likewise.
23952 * script/lua/ldump.c: Likewise.
23953 * script/lua/lfunc.c: Likewise.
23954 * script/lua/lfunc.h: Likewise.
23955 * script/lua/lgc.c: Likewise.
23956 * script/lua/lgc.h: Likewise.
23957 * script/lua/linit.c: Likewise.
23958 * script/lua/liolib.c: Likewise.
23959 * script/lua/llex.c: Likewise.
23960 * script/lua/llex.h: Likewise.
23961 * script/lua/llimits.h: Likewise.
23962 * script/lua/lmathlib.c: Likewise.
23963 * script/lua/lmem.c: Likewise.
23964 * script/lua/lmem.h: Likewise.
23965 * script/lua/loadlib.c: Likewise.
23966 * script/lua/lobject.c: Likewise.
23967 * script/lua/lobject.h: Likewise.
23968 * script/lua/lopcodes.c: Likewise.
23969 * script/lua/lopcodes.h: Likewise.
23970 * script/lua/loslib.c: Likewise.
23971 * script/lua/lparser.c: Likewise.
23972 * script/lua/lparser.h: Likewise.
23973 * script/lua/lstate.c: Likewise.
23974 * script/lua/lstate.h: Likewise.
23975 * script/lua/lstring.c: Likewise.
23976 * script/lua/lstring.h: Likewise.
23977 * script/lua/lstrlib.c: Likewise.
23978 * script/lua/ltable.c: Likewise.
23979 * script/lua/ltable.h: Likewise.
23980 * script/lua/ltablib.c: Likewise.
23981 * script/lua/ltm.c: Likewise.
23982 * script/lua/ltm.h: Likewise.
23983 * script/lua/lua.h: Likewise.
23984 * script/lua/luaconf.h: Likewise.
23985 * script/lua/lualib.h: Likewise.
23986 * script/lua/lundump.c: Likewise.
23987 * script/lua/lundump.h: Likewise.
23988 * script/lua/lvm.c: Likewise.
23989 * script/lua/lvm.h: Likewise.
23990 * script/lua/lzio.c: Likewise.
23991 * script/lua/lzio.h: Likewise.
23993 2009-05-16 Bean <bean123ch@gmail.com>
23995 * include/grub/kernel.h (grub_module_header_types): Add type
23998 * kern/main.c (grub_load_config): New function.
23999 (grub_main): Call grub_load_config to read boot config.
24001 * grub-mkimage (generate_image): New parameter config_path.
24002 (options): New option --config.
24003 (main): Parse --config option, and pass it to generate_image.
24005 2009-05-14 Christian Franke <franke@computer.org>
24007 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
24008 This fixes build on Cygwin.
24010 2009-05-14 Pavel Roskin <proski@gnu.org>
24012 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
24013 jump. This saves two bytes, so the typical case of 2 swapped
24014 drives would fit 32 bytes.
24016 2009-05-13 Pavel Roskin <proski@gnu.org>
24018 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
24019 grub_uint32_t to avoid a warning.
24021 * loader/i386/linux.c (allocate_pages): When assigning
24022 real_mode_mem, cast through grub_size_t to fix a warning. The
24023 code already makes sure that the value would fit a pointer.
24024 (grub_linux_setup_video): Cast render_target->data to
24025 grub_size_t to fix a warning.
24027 2009-05-13 Javier Martín <lordhabbit@gmail.com>
24029 * commands/i386/pc/drivemap.c: New file - implement drivemap
24031 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
24032 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
24034 2009-05-13 Pavel Roskin <proski@gnu.org>
24036 * util/i386/pc/grub-setup.c (setup): Remove unused variable
24037 embedding_area_exists.
24039 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
24041 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
24042 it easier to understand / work with.
24043 Improve warning messages for cases where there's no embedding area,
24044 or when it is too small (or core.img too large).
24046 2009-05-13 Pavel Roskin <proski@gnu.org>
24048 * loader/i386/pc/multiboot2.c: Add necessary includes for
24049 grub_multiboot2_real_boot().
24051 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
24052 PX record is always little-endian. We only need the lower 2
24055 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
24056 facilitate code reuse.
24057 (grub_cpio_mount): Use "struct head", not a char buffer. This
24058 fixes a warning reported by gcc 4.4.
24060 * kernel/disk.c (grub_disk_read): Use void pointer for the
24062 (grub_disk_write): Use const void pointer for the buffer.
24063 Adjust all callers. Remove unnecessary casts.
24065 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
24067 * util/i386/pc/grub-install.in: Update copyright year.
24069 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
24073 * commands/gptsync.c: new file
24074 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
24075 (gptsync_mod_SOURCES): new variable
24076 (gptsync_mod_CFLAGS): likewise
24077 (gptsync_mod_LDFLAGS): likewise
24078 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
24080 (GRUB_PC_PARTITION_TYPE_HFS): likewise
24081 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
24082 * conf/i386-ieee1275.rmk: likewise
24083 * conf/i386-pc.rmk: likewise
24084 * conf/powerpc-ieee1275.rmk: likewise
24086 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
24090 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
24091 (grub_dl_ref): likewise
24093 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
24095 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
24096 split in two functions (one for msdos and one for gpt).
24098 2009-05-08 Pavel Roskin <proski@gnu.org>
24100 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
24103 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
24104 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
24105 Initialize them with -1. Add sanity check for bad1. Eliminate
24108 2009-05-08 David S. Miller <davem@davemloft.net>
24110 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
24112 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
24114 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
24117 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
24119 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24120 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
24122 2009-05-05 David S. Miller <davem@davemloft.net>
24124 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
24126 2009-05-05 Pavel Roskin <proski@gnu.org>
24128 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
24129 of grub_dl_ref() and grub_dl_unref().
24130 * commands/parttool.c: Remove preprocessor conditionals around
24131 grub_dl_ref() and grub_dl_unref().
24132 * fs/affs.c: Likewise.
24133 * fs/afs.c: Likewise.
24134 * fs/cpio.c: Likewise.
24135 * fs/ext2.c: Likewise.
24136 * fs/fat.c: Likewise.
24137 * fs/hfs.c: Likewise.
24138 * fs/hfsplus.c: Likewise.
24139 * fs/iso9660.c: Likewise.
24140 * fs/jfs.c: Likewise.
24141 * fs/minix.c: Likewise.
24142 * fs/ntfs.c: Likewise.
24143 * fs/reiserfs.c: Likewise.
24144 * fs/sfs.c: Likewise.
24145 * fs/udf.c: Likewise.
24146 * fs/ufs.c: Likewise.
24147 * fs/xfs.c: Likewise.
24148 * include/grub/dl.h: Likewise.
24149 * loader/xnu.c: Likewise.
24151 2009-05-04 Pavel Roskin <proski@gnu.org>
24153 * commands/acpi.c: Remove unused variable my_mod.
24154 * partmap/amiga.c: Likewise.
24155 * partmap/apple.c: Likewise.
24156 * partmap/gpt.c: Likewise.
24157 * partmap/pc.c: Likewise.
24158 * partmap/sun.c: Likewise.
24159 * term/gfxterm.c: Likewise.
24160 * term/i386/pc/vesafb.c: Likewise.
24161 * term/i386/pc/vga.c: Likewise.
24163 2009-05-04 David S. Miller <davem@davemloft.net>
24165 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
24166 pointer args to grub_ieee1275_get_property().
24168 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
24170 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
24171 devices, and do not traverse down under controller nodes.
24173 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
24174 (grub_ofdisk_open): Use it to un-escape "," characters.
24175 * kern/disk.c (find_part_sep): New.
24176 (grub_disk_open): Use it to find the first non-escaped ','
24177 character in the disk name.
24178 * util/ieee1275/devicemap.c (escape_of_path): New.
24179 (grub_util_emit_devicemap_entry): Use it.
24180 * util/sparc64/ieee1275/grub-install.in: Update script to
24181 strip partition specifiers properly by not triggering on
24182 '\' escaped ',' characters.
24184 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24186 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
24188 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
24190 (linux_vesafb_modes): Add a lot of additional modes to the list (based
24191 on documentation from Wikipedia).
24193 2009-05-04 Pavel Roskin <proski@gnu.org>
24195 * disk/ata.c: Spelling fixes.
24196 * disk/raid.c: Likewise.
24197 * disk/usbms.c: Likewise.
24198 * disk/dmraid_nvidia.c: Likewise.
24199 * kern/ieee1275/openfw.c: Likewise.
24200 * kern/ieee1275/init.c: Likewise.
24201 * kern/ieee1275/cmain.c: Likewise.
24202 * boot/i386/pc/cdboot.S: Likewise.
24203 * video/readers/png.c: Likewise.
24204 * video/i386/pc/vbe.c: Likewise.
24205 * fs/udf.c: Likewise.
24206 * fs/hfs.c: Likewise.
24207 * fs/reiserfs.c: Likewise.
24208 * efiemu/runtime/efiemu.c: Likewise.
24209 * efiemu/main.c: Likewise.
24210 * efiemu/mm.c: Likewise.
24211 * include/grub/elf.h: Likewise.
24212 * include/grub/xnu.h: Likewise.
24213 * include/grub/usbdesc.h: Likewise.
24214 * include/grub/usb.h: Likewise.
24215 * include/grub/script_sh.h: Likewise.
24216 * include/grub/lib/LzmaEnc.h: Likewise.
24217 * include/grub/efiemu/efiemu.h: Likewise.
24218 * include/grub/command.h: Likewise.
24219 * normal/menu.c: Likewise.
24220 * normal/main.c: Likewise.
24221 * normal/datetime.c: Likewise.
24222 * bus/usb/uhci.c: Likewise.
24223 * mmap/i386/uppermem.c: Likewise.
24224 * mmap/mmap.c: Likewise.
24225 * commands/acpi.c: Likewise.
24226 * commands/test.c: Likewise.
24227 * partmap/apple.c: Likewise.
24228 * font/font.c: Likewise.
24229 * loader/sparc64/ieee1275/linux.c: Likewise.
24230 * loader/macho.c: Likewise.
24231 * loader/i386/bsd_trampoline.S: Likewise.
24232 * loader/i386/bsd.c: Likewise.
24233 * loader/xnu.c: Likewise.
24234 * term/i386/pc/vesafb.c: Likewise.
24235 * term/usb_keyboard.c: Likewise.
24236 * util/resolve.c: Likewise.
24237 * util/getroot.c: Likewise.
24239 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
24241 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
24243 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24245 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
24248 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24250 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
24251 parameter only available on BIOS.
24253 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24255 Removed wrong semicolon in declaration
24257 * grub/misc.h (grub_dprintf): remove semicolon
24259 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24261 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
24262 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
24263 is done by grub_cmd_linux() now).
24264 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
24265 restore video to text mode.
24266 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
24267 indicates lack of "vga=" parameter. "vga=0" is mapped to
24268 `GRUB_LINUX_VID_MODE_NORMAL'.
24270 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
24272 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
24273 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
24274 and `normal/script.c'. Add `kern/rescue_reader.c',
24275 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
24276 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
24277 `grub_script.tab.c'.
24279 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24280 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24281 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24282 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24283 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24285 * Makefile.in: Remove duplicated 2008 in Copyright line.
24287 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24289 * util/misc.c (grub_util_warn): New function. Emits a warning
24291 * include/grub/util/misc.h (grub_util_warn): New declaration.
24293 * util/i386/pc/grub-install.in: Understand --force and pass it down
24296 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
24298 (setup): Improve error messages and add warnings when requested to
24299 install in odd layouts. Refuse to install using blocklists unless
24302 2009-05-04 martin f. krafft <madduck@madduck.net>
24304 * disk/raid.c (grub_raid_scan_device): Improve debug message.
24306 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24308 Updated copyright year
24310 * fs/hfsplus.c: updated copyright year
24312 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24316 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
24317 in the space previously used by unused3
24318 (grub_hfsplus_uuid): new function
24319 (grub_hfsplus_fs): added uuid field
24321 2009-05-03 Pavel Roskin <proski@gnu.org>
24323 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
24324 suppress warnings. It's no longer needed.
24325 * disk/host.c: Likewise.
24326 * disk/ata_pthru.c: Likewise.
24327 * disk/loopback.c: Likewise.
24328 * hook/datehook.c: Likewise.
24329 * parttool/pcpart.c: Likewise.
24330 * fs/i386/pc/pxe.c: Likewise.
24331 * fs/ntfscomp.c: Likewise.
24332 * efiemu/main.c: Likewise.
24333 * mmap/mmap.c: Likewise.
24334 * commands/crc.c: Likewise.
24335 * commands/hexdump.c: Likewise.
24336 * commands/hdparm.c: Likewise.
24337 * commands/acpi.c: Likewise.
24338 * commands/echo.c: Likewise.
24339 * commands/minicmd.c: Likewise.
24340 * commands/blocklist.c: Likewise.
24341 * commands/memrw.c: Likewise.
24342 * commands/loadenv.c: Likewise.
24343 * commands/usbtest.c: Likewise.
24344 * commands/lsmmap.c: Likewise.
24345 * commands/boot.c: Likewise.
24346 * commands/parttool.c: Likewise.
24347 * commands/configfile.c: Likewise.
24348 * commands/search.c: Likewise.
24349 * commands/ieee1275/suspend.c: Likewise.
24350 * commands/cat.c: Likewise.
24351 * commands/i386/pc/pxecmd.c: Likewise.
24352 * commands/i386/pc/play.c: Likewise.
24353 * commands/i386/pc/halt.c: Likewise.
24354 * commands/i386/pc/vbeinfo.c: Likewise.
24355 * commands/i386/pc/vbetest.c: Likewise.
24356 * commands/lspci.c: Likewise.
24357 * commands/date.c: Likewise.
24358 * commands/handler.c: Likewise.
24359 * commands/ls.c: Likewise.
24360 * commands/test.c: Likewise.
24361 * commands/cmp.c: Likewise.
24362 * commands/efi/loadbios.c: Likewise.
24363 * commands/efi/fixvideo.c: Likewise.
24364 * commands/halt.c: Likewise.
24365 * commands/help.c: Likewise.
24366 * commands/reboot.c: Likewise.
24367 * hello/hello.c: Likewise.
24368 * script/sh/main.c: Likewise.
24369 * loader/xnu.c: Likewise.
24370 * term/terminfo.c: Likewise.
24371 * term/i386/pc/serial.c: Likewise.
24372 * term/usb_keyboard.c: Likewise.
24374 2009-05-03 David S. Miller <davem@davemloft.net>
24376 * normal/menu.c: Include grub/parser.h
24378 2009-05-03 Pavel Roskin <proski@gnu.org>
24380 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
24382 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
24383 Suggested by Javier Martín <lordhabbit@gmail.com>
24385 * util/i386/pc/grub-mkrescue.in: Allow for the case when
24386 efiemu??.o doesn't exist.
24387 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
24390 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
24392 FreeBSD 64-bit support
24394 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
24395 and loader/i386/bsd_trampoline.S
24396 (bsd_mod_ASFLAGS): new variable
24397 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
24398 (FREEBSD_MODTYPE_KERNEL64): likewise
24399 (grub_bsd64_trampoline_start): likewise
24400 (grub_bsd64_trampoline_end): likewise
24401 (grub_bsd64_trampoline_selfjump): likewise
24402 (grub_bsd64_trampoline_gdt): likewise
24403 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
24404 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
24405 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
24406 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
24407 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
24409 * loader/i386/bsd_pagetable.c: new file
24410 * loader/i386/bsd_trampoline.S: likewise
24411 * loader/i386/bsd.c (ALIGN_QWORD): new macro
24412 (ALIGN_VAR): likewise
24413 (entry_hi): new variable
24414 (kern_end_mdofs): likewise
24415 (is_64bit): likewise
24416 (grub_freebsd_add_meta): use ALIGN_VAR
24417 (grub_e820_mmap): new declaration
24418 (grub_freebsd_add_mmap): new function
24419 (grub_freebsd_add_meta_module): support 64 bit kernels
24420 (grub_freebsd_list_modules): use ALIGN_VAR
24421 (gdt_descriptor): new declaration
24422 (grub_freebsd_boot): support 64 bit kernels
24423 (grub_bsd_elf64_hook): new function
24424 (grub_bsd_load_elf): support elf64
24426 2009-05-03 Bean <bean123ch@gmail.com>
24428 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
24429 after we get the result of if statement.
24431 2009-05-03 Bean <bean123ch@gmail.com>
24433 * Makefile.in (enable_efiemu): New variable.
24435 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
24437 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
24439 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
24440 path, add -mno-red-zone option.
24441 (efiemu64_s.o): Likewise.
24442 (efiemu64.o): Use macro $^ for source file.
24444 * configure.ac (--enable-efiemu): New option.
24446 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24450 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
24451 (pkglib_MODULES): add xnu.mod
24452 (xnu_mod_SOURCES): new variable
24453 (xnu_mod_CFLAGS): likewise
24454 (xnu_mod_LDFLAGS): likewise
24455 (xnu_mod_ASFLAGS): likewise
24456 * conf/i386-pc.rmk: likewise
24457 * conf/x86_64-efi.rmk: likewise
24458 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
24460 * include/grub/i386/macho.h: new file
24461 * include/grub/i386/xnu.h: likewise
24462 * include/grub/macho.h: likewise
24463 * include/grub/machoload.h: likewise
24464 * include/grub/x86_64/macho.h: likewise
24465 * include/grub/x86_64/xnu.h: likewise
24466 * include/grub/xnu.h: likewise
24467 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
24468 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
24469 * loader/i386/efi/xnu.c: new file
24470 * loader/i386/pc/xnu.c: likewise
24471 * loader/i386/xnu.c: likewise
24472 * loader/i386/xnu_helper.S: likewise
24473 * loader/macho.c: likewise
24474 * loader/xnu.c: likewise
24475 * loader/xnu_resume.c: likewise
24476 * util/grub-dumpdevtree: likewise
24477 * include/grub/i386/pit.h: include grub/err.h
24478 (grub_pit_wait): export
24479 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
24481 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24485 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
24486 _linux_efi, linux_efi.
24487 new files in grub-emu
24488 new targets efiemu32.o and efiemu64.o
24489 * loader/linux_normal_efiemu.c: likewise
24490 * loader/i386/efi/linux.c: added preliminary efiemu support
24491 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
24493 * include/grub/autoefi.h: new file
24494 * include/grub/i386/efiemu.h: likewise
24495 * include/grub/i386/pc/efiemu.h: likewise
24496 * include/grub/efi/api.h: add LL suffix when necessary
24497 new definitions relating to tables
24498 * include/grub/efiemu/efiemu.h: new file
24499 * include/grub/efiemu/runtime.h: likewise
24500 * efiemu/prepare.c: likewise
24501 * efiemu/loadcore_common.c: likewise
24502 * efiemu/loadcore64.c: likewise
24503 * efiemu/runtime/efiemu.sh: likewise
24504 * efiemu/runtime/efiemu.S: likewise
24505 * efiemu/runtime/efiemu.c: likewise
24506 * efiemu/runtime/config.h: likewise
24507 * efiemu/prepare32.c: likewise
24508 * efiemu/main.c: likewise
24509 * efiemu/modules/pnvram.c: likewise
24510 * efiemu/modules/i386: likewise
24511 * efiemu/modules/i386/pc: likewise
24512 * efiemu/modules/acpi.c: likewise
24513 * efiemu/i386/pc/cfgtables.c: likewise
24514 * efiemu/i386/loadcore64.c: likewise
24515 * efiemu/i386/loadcore32.c: likewise
24516 * efiemu/prepare64.c: likewise
24517 * efiemu/loadcore.c: likewise
24518 * efiemu/symbols.c: likewise
24519 * efiemu/mm.c: likewise
24520 * efiemu/loadcore32.c: likewise
24522 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24526 * commands/acpi.c: new file
24527 * commands/i386/pc/acpi.c: likewise
24528 * commands/efi/acpi.c: likewise
24529 * include/grub/acpi.h: likewise
24530 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
24531 (acpi_mod_SOURCES): new variable
24532 (acpi_mod_CFLAGS): likewise
24533 (acpi_mod_LDFLAGS): likewise
24534 * conf/i386-efi.rmk: likewise
24535 * conf/x86_64-efi.rmk: likewise
24537 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24539 Missing part from mmap patch
24541 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
24542 (grub_mmap_unregister)
24543 (grub_mmap_free_and_unregister): use grub_mmap_register
24545 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24549 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
24550 * loader/i386/linux.c (find_mmap_size): likewise
24551 (allocate_pages): likewise
24552 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
24553 (grub_fill_multiboot_mmap): likewise
24554 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
24555 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
24556 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
24557 (OPENBSD_MMAP_RESERVED): likewise
24558 * include/grub/i386/pc/memory.h: include grub/memory.h
24559 (grub_lower_mem): removed
24560 (grub_upper_mem): likewise
24561 (GRUB_MACHINE_MEMORY_ACPI): new definition
24562 (GRUB_MACHINE_MEMORY_NVS): likewise
24563 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
24564 (GRUB_MACHINE_MEMORY_HOLE): likewise
24565 (grub_machine_mmap_register): likewise
24566 (grub_machine_mmap_unregister): likewise
24567 (grub_machine_get_upper): likewise
24568 (grub_machine_get_lower): likewise
24569 (grub_machine_get_post64): likewise
24570 * include/grub/i386/efi/memory.h: new file
24571 * include/grub/x86_64/efi/memory.h: likewise
24572 * include/grub/efi/memory.h: likewise
24573 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
24574 (mmap_mod_SOURCES): new variable
24575 (mmap_mod_LDFLAGS): likewise
24576 (mmap_mod_ASFLAGS): likewise
24577 * conf/i386-coreboot.rmk: likewise
24578 * conf/i386-ieee1275.rmk: likewise
24579 * conf/i386-efi.rmk: likewise
24580 * conf/x86_64-efi.rmk: likewise
24581 * include/grub/types.h (UINT_TO_PTR): new macro
24582 (PTR_TO_UINT32): likewise
24583 (PTR_TO_UINT64): likewise
24584 * include/grub/memory.h: new file
24585 * mmap/i386/pc/mmap.c: likewise
24586 * mmap/i386/pc/mmap_helper.S: likewise
24587 * mmap/i386/uppermem.c: likewise
24588 * mmap/mmap.c: likewise
24589 * mmap/efi/mmap.c: likewise
24590 * kern/i386/coreboot/init.c (grub_machine_init): don't use
24592 * kern/i386/pc/init.c (grub_lower_mem): removed variable
24593 (grub_upper_mem): likewise
24594 (grub_machine_init): don't use grub_upper_mem,
24595 make grub_lower_mem local
24596 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
24597 grub_mmap_iterate and grub_mmap_get_upper
24598 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
24600 2009-05-02 Bean <bean123ch@gmail.com>
24602 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
24603 script/sh/parser.y.
24604 (pkglib_MODULES): Add normal.mod and sh.mod.
24605 (normal_SOURCES): New variable.
24606 (normal_mod_CFLAGS): Likewise.
24607 (normal_mod_LDFLAGS): Likewise.
24608 (sh_mod_SOURCES): Likewise.
24609 (sh_mod_CFLAGS): Likewise.
24610 (sh_mod_LDFLAGS): Likewise.
24612 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
24613 script/sh/lexer.c_DEPENDENCIES.
24614 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
24615 kern/rescue_reader.c and kern/rescue_parser.c.
24616 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
24617 (grub_emu_SOURCES): Change source files.
24618 (pkglib_MODULES): Remove normal.mod.
24619 (normal_SOURCES): Removed.
24620 (normal_mod_CFLAGS): Likewise.
24621 (normal_mod_LDFLAGS): Likewise.
24622 * conf/i386-coreboot.rmk: Likewise.
24623 * conf/i386-efi.rmk: Likewise.
24624 * conf/i386-ieee1276.rmk: Likewise.
24625 * conf/powerpc-ieee1275.rmk: Likewise.
24626 * conf/sparc64-ieee1275.rmk: Likewise.
24627 * conf/x86_64-efi.rmk: Likewise.
24629 * include/grub/command.h (grub_command_execute): New inline function.
24631 * include/grub/menu.h (grub_menu_entry): Removed commands field.
24633 * include/grub/normal.h: Remove <grub/setjmp.h>.
24634 (grub_fs_module_list): Moved to normal/autofs.c.
24635 (grub_exit_env): Removed.
24636 (grub_command_execute): Likewise.
24637 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
24639 (read_command_list): New function declaration.
24640 (read_fs_list): Likewise.
24642 * include/parser.h: Include <grub/reader.h>.
24643 (grub_parser_split_cmdline): Change type of getline parameter.
24644 (grub_parser): New structure.
24645 (grub_parser_class): New variable.
24646 (grub_parser_execute): New function declaration.
24647 (grub_register_rescue_parser): Likewise.
24648 (grub_parser_register): New inline function.
24649 (grub_parser_unregister): Likewise.
24650 (grub_parser_get_current): Likewise.
24651 (grub_parser_set_current): Likewise.
24653 * include/grub/reader.h: New file.
24654 * kern/reader.c: Likewise.
24655 * kern/rescue_parser.c: Likewise.
24656 * kern/rescue_reader.c: Likewise.
24657 * normal/autofs.c: Likewise.
24658 * normal/dyncmd.c: Likewise.
24660 * include/grub/rescue.h: Removed.
24661 * normal/command.h: Likewise.
24663 * include/grub/script.h: Moved to ...
24664 * include/grub/script_sh.h: ... Moved here.
24665 * normal/execute.c: Moved to ...
24666 * script/sh/execute.c: ... Moved here.
24667 * normal/function.c: Moved to ...
24668 * script/sh/function.c: ... Moved here.
24669 * normal/lexer.c: Moved to ...
24670 * script/sh/lexer.c: ... Moved here.
24671 * normal/parser.y: Moved to ...
24672 * script/sh/parser.y: ... Moved here.
24673 * normal/script.c: Moved to ...
24674 * script/sh/script.c: ... Moved here.
24676 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
24678 (grub_exit_env): Removed.
24679 (fs_module_list): Moved to normal/autofs.c.
24680 (grub_file_getline): Don't handle comment here.
24681 (free_menu): Skip removed field entry->commands.
24682 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
24684 (read_config_file): Removed nested parameter, change getline function.
24685 (grub_enter_normal_mode): Removed.
24686 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
24687 (read_command_list): Likewise.
24688 (autoload_fs_module): Moved to normal/autofs.c.
24689 (read_fs_list): Likewise.
24690 (reader_nested): New variable.
24691 (grub_normal_execute): Run parser.sh to switch to sh parser.
24692 (grub_cmd_rescue): Removed.
24693 (cmd_normal): Removed.
24694 (grub_cmd_normal): Unregister itself at the beginning. Don't register
24696 (grub_cmdline_run): New function.
24697 (grub_normal_reader_init): Likewise.
24698 (grub_normal_read_line): Likewise.
24699 (grub_env_write_pager): Likewise.
24700 (cmdline): New variable.
24701 (grub_normal_reader): Likewise.
24702 (GRUB_MOD_INIT): Register normal reader and set as current, register
24703 pager hook, register normal command with grub_register_command_prio,
24704 so that it won't show up in command.lst.
24705 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
24706 grub_fs_autoload_hook.
24708 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
24709 (grub_menu_execute_entry): Replace grub_script_execute with
24710 grub_parser_execute, change parameter to grub_command_execute.
24712 * normal/menu_text.c: Remove <grub/script.h>.
24714 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
24715 and <grub/parser.h>.
24716 (run): Change editor_getline to use new parser interface. Change
24717 parameter to grub_command_execute.
24719 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
24720 <grub/reader.h> and <grub/parser.h>.
24721 (grub_load_normal_mode): Execute normal command.
24722 (grub_main): Call grub_register_core_commands,
24723 grub_register_rescue_parser and grub_register_rescue_reader, use
24724 grub_reader_loop to enter input loop.
24726 * kern/parser.c (grub_parser_split_cmdline): Change type of
24728 (grub_parser_class): New variable.
24729 (grub_parser_execute): New function.
24731 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
24732 * loader/multiboot2.c: Likewise.
24733 * loader/sparc64/ieee1275/linux.c: Likewise.
24735 * util/grub-emu.c (read_command_list): New dummy function.
24737 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
24739 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
24740 count to 16 for CCISS and IDA.
24742 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
24744 * normal/menu_text.c (grub_wait_after_message): Print a newline
24745 after waiting for user input.
24747 * loader/i386/linux.c: Include `<grub/normal.h>'.
24748 (grub_cmd_linux): Improve the error message about `ask' mode, by
24749 waiting for user input so it's not missed (we can do this, since
24750 user requested interaction).
24752 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24754 Added missing lst to grub-mkrescue
24756 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
24757 and ${input_dir}/parttool.lst
24759 2009-04-30 David S. Miller <davem@davemloft.net>
24761 * util/hostdisk.c (device_is_wholedisk): New function.
24762 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
24763 zero only if device_is_wholedisk() returns true.
24765 * util/hostdisk.c (convert_system_partition_to_system_disk):
24766 Handle virtual disk devices named /dev/vdiskX as found on sparc
24769 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
24770 lettered partition specifier is found, convert to numbered.
24772 2009-04-29 David S. Miller <davem@davemloft.net>
24774 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
24775 * include/grub/sparc64/ieee1275/memory.h: Likewise.
24777 * normal/command.c: Add missing newline at end of file.
24779 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
24781 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
24782 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
24783 grub_ofdisk_read): Likewise, and deal similarly with the fact that
24784 ihandles have a 32-bit type but need to be stored in a "void *".
24786 2009-04-28 Pavel Roskin <proski@gnu.org>
24788 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
24789 not disk. Adjust all dependencies.
24790 (grub_fs_uuid_close): Use grub_device_close(), not
24793 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
24794 parent's partition, don't copy it by reference, as it gets freed
24797 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
24799 Preboot hooks support
24801 * commands/boot.c (struct grub_preboot_t): new declaration
24802 (preboots_head): new variable
24803 (preboots_tail): likewise
24804 (grub_loader_register_preboot_hook): new function
24805 (grub_loader_unregister_preboot_hook): likewise
24806 (grub_loader_set): launch preboot hooks
24807 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
24808 (grub_loader_register_preboot_hook): new declaration
24809 (grub_loader_unregister_preboot_hook): likewise
24811 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
24815 * disk/scsi.c (grub_scsi_open): added missing cast when
24816 calling grub_dprintf
24818 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
24820 Bug and warning fixes
24822 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
24824 * commands/test.c (test_parse): fixed bug with file tests and corrected
24825 declaration of find_file
24827 2009-04-26 Pavel Roskin <proski@gnu.org>
24829 * Makefile.in: Don't install empty manual pages if help2man is
24830 missing. Use help2man option for output, not shell redirection.
24832 2009-04-26 David S. Miller <davem@davemloft.net>
24834 * util/grub-mkdevicemap.c (make_device_map): Add missing
24835 NESTED_FUNC_ATTR to process_device().
24837 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
24841 * commands/test.c: rewritten to use bash-like test
24843 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
24845 Parttool autoloading and improvements
24847 * Makefile.in (pkglib_DATA): add parttool.lst
24848 (parttool.lst): new target
24849 * genmk.rb: generate parttool-*
24850 (CLEANFILES): add #{parttool}
24851 (PARTTOOLFILES): new variable
24852 * genparttoollist.sh: new file
24853 * parttool/pcpart.c (grub_pcpart_boot): more feedback
24854 (grub_pcpart_type): likewise
24855 * commands/parttool.c (helpmsg): new variable
24856 (grub_cmd_parttool): output help if not enough arguments are supplied
24858 (GRUB_MOD_INIT(parttool)): use helpmsg
24860 2009-04-24 David S. Miller <davem@davemloft.net>
24862 Avoiding opening same device multiple times in device iterator.
24864 * kern/device.c: (grub_device_iterate): Define struct part_ent,
24865 and use it to build a list of partitions in iterate_disk() and
24866 iterate_partition().
24868 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
24871 * disk/ieee1275/nand.c (grub_nand_iterate): Return
24872 grub_devalias_iterate() result instead of unconditional 0.
24873 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
24874 Also, capture hook return value, either directly or via
24875 grub_children_iterate(), and propagate to caller.
24876 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
24877 grub_children_iterate): Return value is now 'int' instead of
24879 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
24880 like a proper iterator, stopping when hooks return non-zero.
24881 (grub_devalias_iterate): Likewise.
24883 2009-04-23 David S. Miller <davem@davemloft.net>
24885 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
24887 2009-04-22 David S. Miller <davem@davemloft.net>
24889 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
24890 is larger than address_cells, use that value for address_cells too.
24892 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
24893 IEEE1275_MAX_PATH_LEN): Define.
24894 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
24895 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
24896 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
24897 'devtype'. Explicitly NULL terminate devalias expansion.
24899 * util/sparc64/ieee1275/misc.c: New file.
24900 * util/sparc64/ieee1275/grub-setup.c: New file.
24901 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
24902 * util/sparc64/ieee1275/grub-mkimage.c: New file.
24903 * util/sparc64/ieee1275/grub-install.in: New file.
24904 * util/ieee1275/ofpath.c: New file.
24905 * util/ieee1275/devicemap.c: New file.
24906 * util/devicemap.c: New file.
24907 * util/deviceiter.c: New file.
24908 * kern/sparc64/ieee1275/init.c: New file.
24909 * include/grub/util/ofpath.h: New file.
24910 * include/grub/util/deviceiter.h: New file.
24911 * util/grub-mkdevicemap.c: Include deviceiter.h.
24912 Implement using grub_util_emit_devicemap_entry and
24913 grub_util_iterate_devices.
24914 * conf/i386-corebook.rmk: Build util/deviceiter.c and
24915 util/devicemap.c into grub-mkdevicemap
24916 * conf/i386-efi.rmk: Likewise.
24917 * conf/i386-ieee1275.rmk: Likewise.
24918 * conf/i386-pc.rmk: Likewise.
24919 * conf/powerpc-ieee1275.rmk: Likewise.
24920 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
24921 images and installation utilities. Build kernel as image
24922 instead of as elf binary. Use common rules as much as possible.
24924 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
24926 Correct GPT definition
24928 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
24931 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
24933 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
24935 2009-04-19 David S. Miller <davem@davemloft.net>
24937 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
24938 (grub_rescue_cmd_linux): Rename to...
24939 (grub_cmd_linux): and fix prototype.
24940 (grub_rescue_cmd_initrd): Rename to...
24941 (grub_cmd_initrd): and fix prototype.
24942 (cmd_linux, cmd_initrd): New.
24943 (GRUB_MOD_INIT(linux)): Use grub_register_command().
24944 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
24946 2009-04-17 Pavel Roskin <proski@gnu.org>
24948 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
24950 (grub_ohci_transfer): Likewise.
24952 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
24954 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
24955 return without a value. Fix inconsistent indentation.
24957 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
24958 match struct grub_fs.
24960 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
24961 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
24962 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
24963 * commands/lspci.c (grub_lspci_iter): Likewise.
24965 2009-04-16 Bean <bean123ch@gmail.com>
24967 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
24970 2009-04-15 Pavel Roskin <proski@gnu.org>
24972 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
24973 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
24974 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
24977 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
24979 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
24980 that no multiple data or metadata areas are supported and `Unknown
24983 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24985 Move loader out of the kernel
24987 * kern/loader.c: moved to ...
24988 * commands/boot.c: ... moved here
24989 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
24990 * commands/boot.c (grub_cmd_boot): moved here. All users updated
24991 * include/grub/kernel.h (grub_machine_fini): export
24992 * include/grub/loader.h (grub_loader_is_loaded): update declaration
24993 (grub_loader_set): likewise
24994 (grub_loader_unset): likewise
24995 (grub_loader_boot): likewise
24996 * conf/common.rmk: new module boot.mod
24997 (pkglib_MODULES): add boot.mod
24998 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
24999 (grub_emu_SOURCES): likewise
25000 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
25001 (grub_emu_SOURCES): likewise
25002 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
25003 (grub_emu_SOURCES): likewise
25004 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
25005 (grub_emu_SOURCES): likewise
25006 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
25007 (grub_emu_SOURCES): likewise
25008 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
25009 (grub_emu_SOURCES): likewise
25010 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
25011 (grub_emu_SOURCES): likewise
25013 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
25015 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
25017 * kern/misc.c (grub_itoa): Removed function
25018 (grub_ltoa): likewise
25019 (grub_vsprintf): use grub_lltoa
25021 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
25025 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
25026 * conf/i386-coreboot.rmk: likewise
25027 * conf/i386-ieee1275.rmk: likewise
25028 * conf/powerpc-ieee1275.rmk: likewise
25030 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
25032 * INSTALL: Add that `./autogen.sh' needs to be run before
25035 2009-04-14 Bean <bean123ch@gmail.com>
25037 * Makefile.in (pkglib_DATA): Add handler.lst.
25038 (handler.lst): New rule.
25040 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
25041 * conf/i386-coreboot.rmk: Likewise.
25042 * conf/i386-ieee1275.rmk: Likewise.
25043 * conf/i386-efi.rmk: Likewise.
25044 * conf/x86_64-efi.rmk: Likewise.
25045 * conf/powerpc-ieee1275.rmk: Likewise.
25046 * conf/sparc64-ieee1275.rmk: Likewise.
25048 * genhandlerlist.sh: New file.
25050 * genmk.rb: Add rules to generate handler.lst.
25052 * include/grub/normal.h (grub_file_getline): New function definition.
25053 (read_handler_list): Likewise.
25054 (free_handler_list): Likewise.
25056 * include/grub/term.h (grub_term_register_input): Add name parameter
25057 for auto generation of handler.lst.
25058 (grub_term_register_output): Likewise.
25060 * normal/handler.c: New file.
25062 * normal/main.c (get_line): Renamed to grub_file_getline.
25063 (read_config_file): Use the newly renamed grub_file_getline.
25064 (read_command_list): Likewise.
25065 (read_fs_list): Likewise.
25066 (grub_normal_execute): Call read_handler_list to parse handler.lst.
25067 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
25069 * term/efi/console.c (grub_console_init): Add name parameter for auto
25070 generation of handler.lst.
25071 * term/gfxterm.c: Likewise.
25072 * term/i386/pc/at_keyboard.c: Likewise.
25073 * term/i386/pc/console.c: Likewise.
25074 * term/i386/pc/serial.c: Likewise.
25075 * term/i386/pc/vesafb.c: Likewise.
25076 * term/i386/pc/vga.c: Likewise.
25077 * term/i386/pc/vga_text.c: Likewise.
25078 * term/ieee1275/ofconsole.c: Likewise.
25079 * term/usb_keyboard.c: Likewise.
25081 2009-04-14 Bean <bean123ch@gmail.com>
25083 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
25084 properly with null character.
25086 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
25088 * configure: Remove.
25089 * config.h.in: Likewise.
25090 * stamp-h.in: Likewise.
25091 * DISTLIST: Likewise.
25092 * conf/common.mk: Likewise.
25093 * conf/i386-coreboot.mk: Likewise.
25094 * conf/i386-efi.mk: Likewise.
25095 * conf/i386-ieee1275.mk: Likewise.
25096 * conf/i386.mk: Likewise.
25097 * conf/i386-pc.mk: Likewise.
25098 * conf/powerpc-ieee1275.mk: Likewise.
25099 * conf/sparc64-ieee1275.mk: Likewise.
25100 * conf/x86_64-efi.mk: Likewise.
25102 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
25105 2009-04-14 John Stanley <jpsinthemix@verizon.net>
25106 David S. Miller <davem@davemloft.net>
25108 * util/hostdisk.c (make_device_name): Fix buffer length
25111 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
25113 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
25114 <sys/param.h> and <sys/sysctl.h>.
25115 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
25116 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
25117 opening the device and reset them afterwards.
25119 2009-04-13 Pavel Roskin <proski@gnu.org>
25121 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
25122 Reported by John Stanley <jpsinthemix@verizon.net>
25124 2009-04-13 Robert Millan <rmh@aybabtu.com>
25126 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
25127 that name for menuentries when appropriate.
25129 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25131 * util/grub.d/10_freebsd.in: Add a missing `fi'.
25133 2009-04-13 Robert Millan <rmh@aybabtu.com>
25135 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
25136 to Linux, simply abort telling the user it's no longer supported.
25138 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25140 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
25141 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
25142 `freebsd_loadenv' only when devices.hints exist.
25144 2009-04-13 Pavel Roskin <proski@gnu.org>
25146 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
25148 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25150 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
25152 (grub_drive): Likewise.
25154 2009-04-13 David S. Miller <davem@davemloft.net>
25156 * kern/sparc64/ieee1275/ieee1275.c: New file.
25157 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
25158 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
25159 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
25160 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
25161 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
25162 grub_ieee1275_alloc_physmem): Declare new exported functions.
25164 * include/grub/sparc64/ieee1275/loader.h: New file.
25165 * include/grub/sparc64/ieee1275/memory.h: Likewise.
25166 * include/grub/sparc64/kernel.h: Likewise.
25167 * loader/sparc64/ieee1275/linux.c: Likewise.
25169 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
25170 (grub_fstest_SOURCES): Likewise.
25172 * util/hostdisk.c (make_device_name): Do not make any assumptions
25173 about the length of drive names.
25175 * kern/dl.c (grub_dl_load_file): Close file immediately when
25176 we are done using it.
25178 2009-04-12 David S. Miller <davem@davemloft.net>
25180 * kern/misc.c (grub_ltoa): Fix cast when handling negative
25181 values. Noticed by Pavel Roskin.
25183 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
25186 * genmk.rb: Add more flexible image type specification, also
25187 pass --strip-unneeded to objcopy.
25188 * conf/i386-pc.rmk: Use *_FORMAT.
25189 * conf/i386-pc.mk: Rebuilt.
25191 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
25192 (OFDISK_HASH_SZ): Define.
25193 (ofdisk_hash): New hash table.
25194 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
25195 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
25196 instead of device phandle which is not unique.
25198 * kern/sparc64/ieee1275/init.c: Delete, replace with...
25199 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
25200 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
25201 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
25202 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
25203 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
25204 GRUB_KERNEL_MACHINE_DATA_END): Define.
25205 (grub_kernel_image_size, grub_total_module_size): Declare.
25207 2009-04-12 Pavel Roskin <proski@gnu.org>
25209 * configure.ac: Change the logic when we check for target tools.
25210 Do it when the target is specified and it's different from the
25211 specified value of the host.
25213 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
25215 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
25216 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
25217 GNU/kFreeBSD. Check if a device is a character device. Use
25218 DIOCGMEDIASIZE to get the size.
25219 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
25220 support for GNU/kFreeBSD.
25221 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
25222 is a character device instead of a block device. Add support for
25223 FreeBSD device names.
25225 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
25226 is a character device instead of a block device.
25228 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
25229 is a character device instead of a block device.
25231 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
25233 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
25234 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
25235 FreeBSD. Check if a device is a character device. Use
25236 DIOCGMEDIASIZE to get the size.
25237 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
25238 support for FreeBSD.
25239 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
25240 is a character device instead of a block device. Add support for
25241 FreeBSD device names.
25243 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
25244 a character device instead of a block device.
25245 (grub_util_check_char_device): New function.
25247 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
25248 a character device instead of a block device.
25250 * include/grub/util/getroot.h (grub_util_check_char_device): New
25253 2009-04-11 David S. Miller <davem@davemloft.net>
25255 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
25257 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
25258 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
25259 function, if present.
25260 (__bswapdi2): Likewise.
25262 * include/grub/sparc64/ieee1275/boot.h: New file.
25263 * boot/sparc64/ieee1275/boot.S: Likewise.
25264 * boot/sparc64/ieee1275/diskboot.S: Likewise.
25266 * kern/misc.c (grub_ltoa): New function.
25267 (grub_vsprintf): Use it to format 'long' integers.
25269 2009-04-10 David S. Miller <davem@davemloft.net>
25271 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
25272 slots are of type grub_ieee1275_cell_t.
25273 (grub_nand_read): Likewise.
25274 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
25275 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
25276 macros are used to compare values in arg/ret block of the call.
25277 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
25278 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
25279 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
25280 grub_ieee1275_instance_to_path, grub_ieee1275_write,
25281 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
25282 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
25283 grub_ieee1275_close, grub_ieee1275_set_property,
25284 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
25285 grub_ieee1275_cell_t.
25286 * kern/ieee1275/openfw.c (grub_map): Likewise.
25287 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
25288 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
25290 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
25291 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
25292 (grub_devalias_iterate): Likewise.
25294 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25298 * fs/ufs.c (INODE_NBLOCKS): new definition
25299 (struct grub_ufs_dirent): added fields for non-BSD dirents
25300 (grub_ufs_get_file_block): fixed double indirect handling
25301 (grub_ufs_lookup_symlink): use more robust way to determine whether
25303 (grub_ufs_find_file): support for non-BSD dirents
25304 (grub_ufs_dir): support for non-BSD dirents
25306 2009-04-10 Bean <bean123ch@gnail.com>
25308 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
25309 attribute, otherwise the size would be wrong for i386 platform.
25311 * include/grub/pci.h (grub_pci_read_word): New inline function.
25312 (grub_pci_read_byte): Likewise.
25313 (grub_pci_write): Likewise.
25314 (grub_pci_write_word): Likewise.
25315 (grub_pci_write_byte): Likewise.
25317 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
25319 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
25320 (find_framebuf): Scan pci to locate the frame buffer address.
25322 * commands/efi/fixvideo.c: New file.
25324 * commands/efi/loadbios.c: Likewise.
25326 * commands/memrw.c: Likewise.
25328 * util/grub-dumpbios.in: Likewise.
25330 * conf/common.rmk (grub-dumpbios): New utility.
25331 (pkglib_MODULES): New module memrw.mod.
25332 (memrw_mod_SOURCE): New macro.
25333 (memrw_mod_CFLAGS): Likewise.
25334 (memrw_mod_LDFLAGS): Likewise.
25336 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
25338 (loadbios_mod_SOURCE): New macro.
25339 (loadbios_mod_CFLAGS): Likewise.
25340 (loadbios_mod_LDFLAGS): Likewise.
25341 (fixvideo_mod_SOURCE): Likewise.
25342 (fixvideo_mod_CFLAGS): Likewise.
25343 (fixvideo_mod_LDFLAGS): Likewise.
25345 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
25347 (loadbios_mod_SOURCE): New macro.
25348 (loadbios_mod_CFLAGS): Likewise.
25349 (loadbios_mod_LDFLAGS): Likewise.
25350 (fixvideo_mod_SOURCE): Likewise.
25351 (fixvideo_mod_CFLAGS): Likewise.
25352 (fixvideo_mod_LDFLAGS): Likewise.
25354 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
25356 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
25358 2009-04-07 David S. Miller <davem@davemloft.net>
25360 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
25361 support for R_SPARC_OLO10 relocations. Fix compile warning for
25362 R_SPARC_WDISP30 case.
25363 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
25365 2009-04-06 Pavel Roskin <proski@gnu.org>
25367 * include/grub/misc.h (ARRAY_SIZE): New macro.
25368 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
25370 * loader/i386/linux.c (allocate_pages): Use free_pages().
25371 (grub_linux_unload): Don't use free_pages().
25372 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
25373 wrong index. Treat all other modes as text modes.
25374 (grub_cmd_linux): Initialize vid_mode unconditionally to
25375 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
25377 * commands/help.c (print_command_help): Use cmd->prio, not
25378 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
25380 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
25384 * parttool/pcpart.c: new file
25385 * commands/parttool.c: likewise
25386 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
25387 (parttool_mod_SOURCES): new variable
25388 (parttool_mod_CFLAGS): likewise
25389 (parttool_mod_LDFLAGS): likewise
25390 (pcpart_mod_SOURCES): likewise
25391 (pcpart_mod_CFLAGS): likewise
25392 (pcpart_mod_LDFLAGS): likewise
25393 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
25394 and parttool/pcpart.c
25395 * conf/i386-efi.rmk: likewise
25396 * conf/i386-ieee1275.rmk: likewise
25397 * conf/i386-pc.rmk: likewise
25398 * conf/powerpc-ieee1275.rmk: likewise
25399 * conf/sparc64-ieee1275.rmk: likewise
25400 * conf/x86_64-ieee1275.rmk: likewise
25402 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25404 Support for mtime and further expandability of dir command
25406 * include/grub/lib/datetime.h: moved to ...
25407 * include/grub/datetime.h: ... moved here and added
25408 declaration of grub_unixtime2datetime. All users updated
25409 * include/grub/fs.h: new syntax for dir and mtime functions in
25411 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
25412 and GRUB_FSHELP_FLAGS_MASK
25413 * commands/ls.c (grub_ls_list_files): Write mtime in long format
25414 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
25415 (grub_ext2_mtime): new function
25416 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
25417 (grub_hfsplus_mtime): new function
25418 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
25419 (GRUB_UFS_ATTR_FILE): likewise
25420 (GRUB_UFS_ATTR_LNK): likewise
25421 (struct grub_ufs_sblock): new fields mtime
25422 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
25424 (grub_ufs_dir): mtime support
25425 (grub_ufs_mtime): new function
25426 * fs/affs.c (grub_affs_dir): use new dir syntax
25427 * fs/afs.c (grub_afs_dir): likewise
25428 * fs/cpio.c (grub_cpio_dir): likewise
25429 * fs/fat.c (grub_fat_find_dir): likewise
25430 * fs/hfs.c (grub_hfs_dir): likewise
25431 * fs/iso9660.c (grub_iso9660_dir): likewise
25432 * fs/jfs.c (grub_jfs_dir): likewise
25433 * fs/minix.c (grub_minix_dir): likewise
25434 * fs/ntfs.c (grub_ntfs_dir): likewise
25435 * fs/reiserfs.c (grub_reiserfs_dir): likewise
25436 * fs/sfs.c (grub_sfs_dir): likewise
25437 * fs/xfs.c (grub_xfs_dir): likewise
25438 * util/hostfs.c (grub_hostfs_dir): likewise
25439 * lib/datetime.c: moved to ...
25440 * normal/datetime.c: ... moved here
25441 (grub_unixtime2datetime): new function
25442 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
25443 * normal/completion.c (iterate_dir): use new dir syntax
25444 * normal/misc.c (grub_normal_print_device_info): tell the
25445 last modification time of a volume
25446 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
25447 * conf/common.rmk: added lib/datetime.c to ls.mod
25448 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
25449 (normal_mod_SOURCES): likewise
25450 (datetime_mod_SOURCES): Removed lib/datetime.c
25451 * conf/i386-efi.rmk: likewise
25452 * conf/i386-ieee1275.rmk: likewise
25453 * conf/i386-pc.rmk: likewise
25454 * conf/powerpc-ieee1275.rmk: likewise
25455 * conf/sparc64-ieee1275.rmk: likewise
25456 * conf/x86_64-efi.rmk: likewise
25458 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25460 Trim trailing spaces in FAT label and support mtools-like labels
25462 * fs/fat.c (grub_fat_iterate_dir): New function based
25463 on grub_fat_find_dir
25464 (grub_fat_find_dir): use grub_fat_iterate_dir
25465 (grub_fat_label): likewise
25467 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25469 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
25471 remove extraneous kernel_elf_HEADERS
25473 2009-04-04 Bean <bean123ch@gnail.com>
25475 * include/grub/util/misc.h: Add dummy function fsync for mingw.
25477 * util/misc.c: Likewise.
25479 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
25481 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
25482 instead of grub_printf.
25484 2009-04-03 Robert Millan <rmh@aybabtu.com>
25486 * loader/i386/linux.c (grub_linux_setup_video): Fill
25487 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
25488 values from `mode info' structure instead of hardcoded
25491 2009-04-01 Pavel Roskin <proski@gnu.org>
25493 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
25495 * genmk.rb: Likewise.
25496 * configure.ac: Likewise.
25498 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
25500 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
25501 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
25503 2009-04-01 David S. Miller <davem@davemloft.net>
25505 * normal/sparc64/setjmp.S: Fix setjmp implementation.
25506 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
25507 (grub_setjmp): Mark with 'returns_twice' attribute.
25508 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
25509 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
25510 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
25512 2009-04-01 Robert Millan <rmh@aybabtu.com>
25514 Reapply fix from 2008-07-28 which was accidentally reverted; also
25515 perform the same fix to a similar check in same function.
25517 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
25518 with the same number are found, just use issue a warning with
25519 grub_dprintf(), as this error has been reported to be non-fatal.
25521 2009-03-31 Pavel Roskin <proski@gnu.org>
25523 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
25524 for cross-compilation.
25526 2009-03-30 Robert Millan <rmh@aybabtu.com>
25528 Fix i386-ieee1275 build.
25530 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
25531 Remove declaration.
25533 2009-03-30 Pavel Roskin <proski@gnu.org>
25535 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
25536 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
25537 zero-terminated, rely only on the strlen value. Fix comparison
25538 of strings differing in length.
25540 2009-03-30 Robert Millan <rmh@aybabtu.com>
25542 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
25543 checking for abi version. Improve error messages on BIOS to notify
25544 user about `linux16' command.
25546 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
25550 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
25551 in case of collision
25552 * disk/scsi.c (grub_scsi_open): free scsi in case of error
25554 2009-03-29 Robert Millan <rmh@aybabtu.com>
25556 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
25557 set `vid_mode' accordingly.
25558 (grub_linux_boot): Process `vid_mode' and set video mode.
25560 2009-03-29 Robert Millan <rmh@aybabtu.com>
25562 * util/grub.d/10_linux.in (linux_entry): New function.
25563 Factorize generation of Linux boot entries.
25565 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
25567 Make the format of Environment Block plain text. The boot loader
25568 part is not tested well yet.
25570 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
25572 (envblk): Likewise.
25573 (usage): Remove "info" and "clear". Add "unset". Update the
25574 description of "set", as this does not delete variables any
25576 (create_envblk_file): Complete rewrite.
25577 (open_envblk_file): Likewise.
25578 (cmd_info): Removed.
25579 (cmd_list): Likewise.
25580 (cmd_set): Likewise.
25581 (cmd_clear): Likewise.
25582 (list_variables): New function.
25583 (write_envblk): Likewise.
25584 (set_variables): Likewise.
25585 (unset_variables): Likewise.
25586 (main): Complete rewrite.
25588 * commands/loadenv.c (buffer): Removed.
25589 (envblk): Likewise.
25590 (open_envblk_file): New function.
25591 (read_envblk_file): Complete rewrite.
25592 (grub_cmd_load_env): Likewise.
25593 (grub_cmd_list_env): Likewise.
25594 (struct blocklist): New struct.
25595 (free_blocklists): New function.
25596 (check_blocklists): Likewise.
25597 (write_blocklists): Likewise.
25598 (grub_cmd_save_env): Complete rewrite.
25600 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
25601 a plain text signature.
25602 (GRUB_ENVBLK_MAXLEN): Removed.
25603 (struct grub_envblk): Complete rewrite.
25604 (grub_envblk_find): Removed.
25605 (grub_envblk_insert): Likewise.
25606 (grub_envblk_open): New prototype.
25607 (grub_envblk_set): Likewise.
25608 (grub_envblk_delete): Put const to VALUE.
25609 (grub_envblk_iterate): Put const to NAME and VALUE.
25610 (grub_envblk_close): New prototype.
25611 (grub_envblk_buffer): New inline function.
25612 (grub_envblk_size): Likewise.
25614 * lib/envblk.c: Include grub/mm.h.
25615 (grub_env_find): Removed.
25616 (grub_envblk_open): New function.
25617 (grub_envblk_close): Likewise.
25618 (escaped_value_len): Likewise.
25619 (find_next_line): Likewise.
25620 (grub_envblk_insert): Removed.
25621 (grub_envblk_set): New function.
25622 (grub_envblk_delete): Complete rewrite.
25623 (grub_envblk_iterate): Likewise.
25625 2009-03-28 Robert Millan <rmh@aybabtu.com>
25627 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
25628 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
25629 variables. Use 16-bit loader.
25630 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
25632 * kern/i386/loader.S (grub_linux_boot): Rename to ...
25633 (grub_linux16_boot): ... this. Update all users.
25634 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
25635 (grub_linux_boot): ... this. Update all users.
25637 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
25638 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
25639 commands to `linux16' and `initrd16'.
25640 (GRUB_MOD_FINI(linux)): Rename to ...
25641 (GRUB_MOD_FINI(linux16)): ... this.
25643 2009-03-24 Pavel Roskin <proski@gnu.org>
25645 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
25646 not just for compilation.
25648 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
25650 Move multiboot helper out of kernel
25652 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
25653 `loader/i386/multiboot_helper.S'.
25654 * conf/i386-coreboot.rmk: Likewise
25655 * conf/i386-ieee1275.rmk: Likewise
25657 * kern/i386/loader.S: Move multiboot helpers from here...
25658 * loader/i386/multiboot_helper.S: ...moved here
25659 * include/grub/i386/loader.h: Move declarations of multiboot
25660 helpers from here...
25661 * include/grub/i386/multiboot.h: ...moved here
25662 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
25664 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25666 * kern/env.c (grub_env_context_open): Added an argument to specify
25667 whether a new context inherits exported variables from current
25668 one. This is useful when making a sandbox to interpret a config
25670 All callers updated.
25672 * include/grub/env.h (grub_env_context_open): Updated the prototype.
25674 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25676 * kern/env.c (grub_env_context_close): Fix memory leaks.
25678 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25680 * normal/main.c (grub_normal_execute): Added an argument
25681 BATCH to specify if an interactive interface should be provided
25682 after reading a config file.
25683 All callers updated.
25684 (read_command_list): Prevent being executed twice.
25685 (read_fs_list): Likewise.
25687 * include/grub/normal.h (grub_normal_execute): Updated the
25690 2009-03-22 Pavel Roskin <proski@gno.org>
25692 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
25694 * kern/i386/pc/startup.S: Likewise.
25695 * kern/i386/efi/startup.S: Likewise.
25696 * kern/i386/ieee1275/startup.S: Likewise.
25697 * kern/i386/coreboot/startup.S: Likewise.
25698 * kern/x86_64/efi/startup.S: Likewise.
25700 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
25701 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
25702 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
25704 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
25706 Bugfixes in multiboot for bugs uncovered by solaris kernel.
25708 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
25710 Use vaddr of correct segment for entry_point.
25712 2009-03-21 Bean <bean123ch@gmail.com>
25714 * commands/blocklist.c: Add include file <grub/command.h>, remove
25715 <grub/normal.h> and <grub/arg.h>.
25716 (grub_cmd_blocklist): Use the new command interface.
25717 (GRUB_MOD_INIT): Likewise.
25718 (GRUB_MOD_FINI): Likewise.
25719 * commands/boot.c: Likewise.
25720 * commands/cat.c: Likewise.
25721 * commands/cmp.c: Likewise.
25722 * commands/configfile.c: Likewise.
25723 * commands/crc.c: Likewise.
25724 * commands/echo.c: Likewise.
25725 * commands/halt.c: Likewise.
25726 * commands/handler.c: Likewise.
25727 * commands/hdparm.c: Likewise.
25728 * commands/help.c: Likewise.
25729 * commands/hexdump.c: Likewise.
25730 * commands/loadenv.c: Likewise.
25731 * commands/ls.c: Likewise.
25732 * commands/lsmmap.c: Likewise.
25733 * commands/lspci.c: Likewise.
25734 * commands/loadenv.c: Likewise.
25735 * commands/read.c: Likewise.
25736 * commands/reboot.c: Likewise.
25737 * commands/search.c: Likewise.
25738 * commands/sleep.c: Likewise.
25739 * commands/test.c: Likewise.
25740 * commands/usbtest.c: Likewise.
25741 * commands/videotest.c: Likewise.
25742 * commands/i386/cpuid.c: Likewise.
25743 * commands/i386/pc/halt.c: Likewise.
25744 * commands/i386/pc/play.c: Likewise.
25745 * commands/i386/pc/pxecmd.c: Likewise.
25746 * commands/i386/pc/vbeinfo.c: Likewise.
25747 * commands/i386/pc/vbetest.c: Likewise.
25748 * commands/ieee1275/suspend.c: Likewise.
25749 * disk/loopback.c: Likewise.
25750 * font/font_cmd.c: Likewise.
25751 * hello/hello.c: Likewise.
25752 * loader/efi/appleloader.c: Likewise.
25753 * loader/efi/chainloader.c: Likewise.
25754 * loader/i386/bsd.c: Likewise.
25755 * loader/i386/efi/linux.c: Likewise.
25756 * loader/i386/ieee1275/linux.c: Likewise.
25757 * loader/i386/linux.c: Likewise.
25758 * loader/i386/pc/chainloader.c: Likewise.
25759 * loader/i386/pc/linux.c: Likewise.
25760 * loader/powerpc/ieee1275/linux.c: Likewise.
25761 * loader/multiboot_loader.c: Likewise.
25762 * term/gfxterm.c: Likewise.
25763 * term/i386/pc/serial.c: Likewise.
25764 * term/terminfo.c: Likewise.
25766 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
25767 * term/i386/pc/vga.c: Likewise.
25768 * video/readers/jpeg.c: Likewise.
25769 * video/readers/png.c: Likewise.
25770 * video/readers/tga.c: Likewise.
25772 * util/grub-fstest (cmd_loopback): Removed.
25773 (cmd_blocklist): Likewise.
25774 (cmd_ls): Likewise.
25775 (grub_register_command): Likewise.
25776 (grub_unregister_command): Likewise.
25777 (execute_command): Use grub_command_find to locate command and execute
25780 * include/grub/efi/chainloader.h: Removed.
25781 * loader/efi/chainloader_normal.c: Likewise.
25782 * loader/i386/bsd_normal.c: Likewise.
25783 * loader/i386/pc/chainloader_normal.c: Likewise.
25784 * loader/i386/pc/multiboot_normal.c: Likewise.
25785 * loader/linux_normal.c: Likewise.
25786 * loader/multiboot_loader_normal.c: Likewise.
25787 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
25789 * gencmdlist.sh: Scan new registration command grub_register_extcmd
25790 and grub_register_command_p1.
25792 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
25793 kern/command.c, lib/arg.c and commands/extcmd.c.
25794 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
25795 (minicmd_mod_SOURCES): New variable.
25796 (minicmd_mod_CFLAGS): Likewise.
25797 (minicmd_mod_LDFLAGS): Likewise.
25798 (extcmd_mod_SOURCES): Likewise.
25799 (extcmd_mod_CFLAGS): Likewise.
25800 (extcmd_mod_LDFLAGS): Likewise.
25801 (boot_mod_SOURCES): Removed.
25802 (boot_mod_CFLAGS): Likewise.
25803 (boot_mod_LDFLAGS): Likewise.
25805 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
25807 (kernel_img_HEADERS): Add command.h.
25808 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
25809 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
25811 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
25812 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
25813 remove the corresponding normal mode command.
25814 (normal_mod_SOURCES): Remove normal/arg.c.
25815 * conf/i386-coreboot.rmk: Likewise.
25816 * conf/i386-efi.rmk: Likewise.
25817 * conf/i386-ieee1275.rmk: Likewise.
25818 * conf/powerpc-ieee1275.rmk: Likewise.
25819 * conf/x86_64-efi.rmk: Likewise.
25821 * include/grub/arg.h: Move from here ...
25822 * include/grub/lib/arg.h: ... to here.
25824 * normal/arg.c: Move from here ...
25825 * lib/arg.c: ... to here.
25827 * commands/extcmd.c: New file.
25828 * commands/minicmd.c: Likewise.
25829 * include/grub/command.h: Likewise.
25830 * include/grub/extcmd.h: Likewise.
25831 * kern/command.c: Likewise.
25832 * kern/corecmd.c: Likewise.
25834 * kern/list.c (grub_list_iterate): Return int instead of void.
25835 (grub_list_insert): New function.
25836 (grub_prio_list_insert): Likewise.
25838 * kern/rescue.c (grub_rescue_command): Removed.
25839 (grub_rescue_command_list): Likewise.
25840 (grub_rescue_register_command): Likewise.
25841 (grub_rescue_unregister_command): Likewise.
25842 (grub_rescue_cmd_boot): Move to minicmd.c
25843 (grub_rescue_cmd_help): Likewise.
25844 (grub_rescue_cmd_info): Likewise.
25845 (grub_rescue_cmd_boot): Likewise.
25846 (grub_rescue_cmd_testload): Likewise.
25847 (grub_rescue_cmd_dump): Likewise.
25848 (grub_rescue_cmd_rmmod): Likewise.
25849 (grub_rescue_cmd_lsmod): Likewise.
25850 (grub_rescue_cmd_exit): Likewise.
25851 (grub_rescue_print_devices): Moved to corecmd.c.
25852 (grub_rescue_print_files): Likewise.
25853 (grub_rescue_cmd_ls): Likewise.
25854 (grub_rescue_cmd_insmod): Likewise.
25855 (grub_rescue_cmd_set): Likewise.
25856 (grub_rescue_cmd_unset): Likewise.
25857 (attempt_normal_mode): Use grub_command_find to get normal module.
25858 (grub_enter_rescue_mode): Use grub_register_core_commands to register
25859 commands, remove grub_rescue_register_command calls.
25861 * normal/command.c (grub_register_command): Removed.
25862 (grub_unregister_command): Likewise.
25863 (grub_command_find): Likewise.
25864 (grub_iterate_commands): Likewise.
25865 (rescue_command): Likewise.
25866 (export_command): Moved to corecmd.c.
25867 (set_command): Removed.
25868 (unset_command): Likewise.
25869 (insmod_command): Likewise.
25870 (rmmod_command): Likewise.
25871 (lsmod_command): Likewise.
25872 (grub_command_init): Likewise.
25874 * normal/completion.c (iterate_command): Use cmd->prio to check for
25876 (complete_arguments): Use grub_extcmd_t structure to find options.
25877 (grub_normal_do_completion): Change function grub_iterate_commands to
25878 grub_command_iterate.
25880 * normal/execute.c (grub_script_execute_cmd): No need to parse
25883 * normal/main.c (grub_dyncmd_dispatcher): New function.
25884 (read_command_list): Register unload commands as dyncmd.
25885 (grub_cmd_normal): Use new command interface, register rescue,
25886 unregister normal at entry, register normal, unregister rescue at exit.
25888 * include/grub/list.h (grub_list_test_t): New type.
25889 (grub_list_iterate): Return int instead of void.
25890 (grub_list_insert): New function.
25891 (GRUB_AS_NAMED_LIST_P): New macro.
25892 (GRUB_AS_PRIO_LIST): Likewise.
25893 (GRUB_AS_PRIO_LIST_P): Likewise.
25894 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
25895 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
25896 (grub_prio_list): New structure.
25897 (grub_prio_list_insert): New function.
25898 (grub_prio_list_remove): New inline function.
25900 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
25901 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
25902 (GRUB_COMMAND_FLAG_MENU): Likewise.
25903 (GRUB_COMMAND_FLAG_BOTH): Likewise.
25904 (GRUB_COMMAND_FLAG_TITLE): Likewise.
25905 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
25906 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
25907 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
25908 (grub_command): Likewise.
25909 (grub_register_command): Likewise.
25910 (grub_command_find): Likewise.
25911 (grub_iterate_commands): Likewise.
25912 (grub_command_init): Likewise.
25913 (grub_arg_parse): Likewise.
25914 (grub_arg_show_help): Likewise.
25916 * include/grub/rescue.h (grub_rescue_register_command): Removed.
25917 (grub_rescue_unregister_command): Likewise.
25919 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
25920 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
25921 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
25923 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
25924 grub_rescue_cmd_initrd.
25925 * include/grub/i386/loader.h: Likewise.
25926 * include/grub/x86_64/loader.h: Likewise.
25928 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
25930 2009-03-21 Bean <bean123ch@gmail.com>
25932 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
25933 instead of stat in mingw environment.
25935 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
25937 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
25939 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
25942 2009-03-21 Bean <bean123ch@gmail.com>
25944 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
25945 out of range error.
25947 2009-03-18 Michel Dänzer <michel@daenzer.net>
25949 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
25950 checking inode flags for EXT4_EXTENTS_FLAG.
25952 2009-03-18 Robert Millan <rmh@aybabtu.com>
25954 * loader/i386/linux.c: Include `<grub/video.h>' and
25955 `<grub/i386/pc/vbe.h>'..
25956 (grub_linux_setup_video): New function. Loosely based on the EFI one.
25957 (grub_linux32_boot): Attempt to configure video settings with
25958 grub_linux_setup_video().
25959 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
25960 to avoid grub_console_fini() which would step out of graphical mode
25963 2009-03-14 Robert Millan <rmh@aybabtu.com>
25965 Fix build on powerpc.
25966 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
25968 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
25970 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
25971 background image command.
25973 2009-03-12 Colin D Bennett <colin@gibibit.com>
25975 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
25976 (grub_gfxterm_putchar): Extract pairs of identical calls to
25977 draw_cursor out of conditional blocks.
25979 2009-03-11 Pavel Roskin <proski@gnu.org>
25981 * fs/hfs.c (grub_hfs_strncasecmp): New function.
25982 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
25984 2009-03-11 Robert Millan <rmh@aybabtu.com>
25986 * loader/i386/multiboot_elfxx.c
25987 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
25989 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
25991 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
25994 2009-03-11 Robert Millan <rmh@aybabtu.com>
25996 * loader/i386/multiboot.c (code_size): New variable.
25997 (grub_multiboot): Define offsets by adding to `code_size' rather
25998 than subtracting from `grub_multiboot_payload_size'. Provide
25999 4-byte alignment to MBI and others by increasing
26000 `boot_loader_name_length' appropriately.
26002 * loader/i386/multiboot_elfxx.c
26003 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
26005 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
26007 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
26010 2009-03-08 Robert Millan <rmh@aybabtu.com>
26012 Make loader/i386/linux.c usable on i386-pc again.
26014 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
26016 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
26019 2009-03-07 Bean <bean123ch@gmail.com>
26021 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
26024 2009-03-06 Robert Millan <rmh@aybabtu.com>
26026 Fix display issue on terminals with screen size other than 80x25
26027 (e.g. gfxterm with resolution higher than 640x480).
26029 * normal/main.c (grub_normal_init_page): Display title text in a
26030 position relative to the center of the terminal instead of relying
26031 on a hardcoded offset.
26033 2009-03-04 Robert Millan <rmh@aybabtu.com>
26035 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
26038 * Makefile.in (host_kernel): New variable.
26039 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
26040 scripts instead of just the windows one.
26041 * configure.ac: Initialize and AC_SUBST `host_kernel'.
26043 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
26045 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
26047 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26048 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26049 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26050 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26051 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26052 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26054 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
26056 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
26057 or if there's no space for the disk label and print the partition number on a
26060 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
26062 * util/misc.c: Include <time.h>.
26063 (grub_millisleep): New function.
26065 2009-03-04 Bean <bean123ch@gmail.com>
26067 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
26068 another option -mno-red-zone.
26070 * commands/handler.c: Change module description.
26072 * kern/handler.c: Add missing space at the end of description line.
26074 * kern/list.c: Likewise.
26076 2009-03-03 Robert Millan <rmh@aybabtu.com>
26078 Move more components to the relocation area, and fix mbi pointer
26079 handling to use the destination rather than the origin (thanks to
26080 Vladimir Serbinenko for spotting).
26082 * loader/i386/multiboot.c (mbi_dest): New variable.
26083 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
26084 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
26087 2009-03-01 Bean <bean123ch@gmail.com>
26089 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
26090 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
26091 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
26092 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
26094 * loader/i386/efi/linux.c (acpi_guid): New variable.
26095 (acpi_guid): Likewise.
26096 (EBDA_SEG_ADDR): New constant.
26097 (LOW_MEM_ADDR): Likewise.
26098 (FAKE_EBDA_SEG): Likewise.
26099 (fake_bios_data): New function.
26100 (grub_linux_boot): Call fake_bios_data.
26102 2009-03-01 Bean <bean123ch@gmail.com>
26104 * commands/terminal.c: Removed.
26106 * commands/handler.c: New file.
26108 * include/grub/list.h: Likewise.
26110 * include/grub/handler.h: Likewise.
26112 * kern/list.c: Likewise.
26114 * kern/handler.c: Likewise.
26116 * kern/term.h: Include header file <grub/handler.h>.
26117 (grub_term_input): Move next field to the beginning.
26118 (grub_term_output): Likewise.
26119 (grub_term_input_class): New variable.
26120 (grub_term_output_class): Likewise.
26121 (grub_term_register_input): Changed to inline function.
26122 (grub_term_register_output): Likewise.
26123 (grub_term_unregister_input): Likewise.
26124 (grub_term_unregister_output): Likewise.
26125 (grub_term_set_current_input): Likewise.
26126 (grub_term_set_current_output): Likewise.
26127 (grub_term_get_current_input): Likewise.
26128 (grub_term_get_current_output): Likewise.
26129 (grub_term_iterate_input): Removed.
26130 (grub_term_iterate_output): Likewise.
26132 * kern/term.c (grub_term_list_input): Removed.
26133 (grub_term_list_output): Likewise.
26134 (grub_term_input_class): New variable.
26135 (grub_term_output_class): Likewise.
26136 (grub_cur_term_input): Change variable as macro.
26137 (grub_cur_term_output): Likewise.
26138 (grub_term_register_input): Removed.
26139 (grub_term_register_output): Likewise.
26140 (grub_term_unregister_input): Likewise.
26141 (grub_term_unregister_output): Likewise.
26142 (grub_term_set_current_input): Likewise.
26143 (grub_term_set_current_output): Likewise.
26144 (grub_term_iterate_input): Likewise.
26145 (grub_term_iterate_output): Likewise.
26146 (grub_term_get_current_input): Likewise.
26147 (grub_term_get_current_output): Likewise.
26149 * util/grub-editenv.c: Include header file <grub/handler.h>.
26150 (grub_term_get_current_input): Removed.
26151 (grub_term_get_current_output): Likewise.
26152 (grub_term_input_class): New variable.
26153 (grub_term_output_class): Likewise.
26155 * util/grub-fstest.c (grub_term_get_current_input): Removed.
26156 (grub_term_get_current_output): Likewise.
26157 (grub_term_input_class): New variable.
26158 (grub_term_output_class): Likewise.
26160 * util/grub-probe.c (grub_term_get_current_input): Removed.
26161 (grub_term_get_current_output): Likewise.
26162 (grub_term_input_class): New variable.
26163 (grub_term_output_class): Likewise.
26165 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
26166 (grub_term_get_current_output): Likewise.
26167 (grub_term_input_class): New variable.
26168 (grub_term_output_class): Likewise.
26170 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
26171 (terminal_mod_SOURCES): Likewise.
26172 (terminal_mod_CFLAGS): Likewise.
26173 (terminal_mod_LDFLAGS): Likewise.
26175 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
26177 (kernel_img_SOURCES): Add list.c and handler.c.
26178 (kernel_img_HEADERS): Add list.h and handler.h.
26180 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
26182 (kernel_mod_SOURCES): Add list.c and handler.c.
26183 (kernel_mod_HEADERS): Add list.h and handler.h.
26185 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
26187 (kernel_elf_SOURCES): Add list.c and handler.c.
26188 (kernel_elf_HEADERS): Add list.h and handler.h.
26190 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
26192 (kernel_elf_SOURCES): Add list.c and handler.c.
26193 (kernel_elf_HEADERS): Add list.h and handler.h.
26195 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
26197 (kernel_mod_SOURCES): Add list.c and handler.c.
26198 (kernel_mod_HEADERS): Add list.h and handler.h.
26200 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
26202 (kernel_elf_SOURCES): Add list.c and handler.c.
26203 (kernel_elf_HEADERS): Add list.h and handler.h.
26205 2009-02-27 Robert Millan <rmh@aybabtu.com>
26207 Factorize elf32 / elf64 code in Multiboot loader. This will
26208 prevent it from getting out of sync again.
26210 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
26211 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
26212 grub_multiboot_load_elf64): Move from here ...
26213 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
26214 grub_multiboot_load_elf): ... to here (new file).
26216 2009-02-27 Robert Millan <rmh@aybabtu.com>
26218 * util/grub.d/10_linux.in: Rename "single-user mode" to
26221 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
26223 Don't leak in SCSI code.
26224 * disk/scsi.c (grub_scsi_close): free `scsi'.
26226 2009-02-27 Robert Millan <rmh@aybabtu.com>
26228 * loader/i386/pc/multiboot.c: Move from here ...
26229 * loader/i386/multiboot.c: ... to here. Update all users.
26231 2009-02-27 Robert Millan <rmh@aybabtu.com>
26233 Patch from Alexandre Bique <bique.alexandre@gmail.com>
26234 * util/i386/pc/grub-setup.c (setup): Fix directory path.
26236 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
26238 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
26241 2009-02-27 Robert Millan <rmh@aybabtu.com>
26243 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
26244 `0x' qualifier as 0 when base is specified as parameter).
26246 2009-02-24 Bean <bean123ch@gmail.com>
26248 * configure.ac: Check for -mcmodel=large in x86_64 target.
26250 * include/grub/efi/api.h (efi_call_10): New macro.
26251 (efi_wrap_10): New function.
26253 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
26254 (GRUB_PE32_REL_BASED_HIGH): Likewise.
26255 (GRUB_PE32_REL_BASED_LOW): Likewise.
26256 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
26257 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
26258 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
26259 (GRUB_PE32_REL_BASED_SECTION): Likewise.
26260 (GRUB_PE32_REL_BASED_REL): Likewise.
26261 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
26262 (GRUB_PE32_REL_BASED_DIR64): Likewise.
26263 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
26265 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
26268 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
26269 (efi_wrap_10): New function.
26271 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
26273 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
26274 MB/MBP model (NV chipset).
26275 (devdata_devs): Add devpath_5 to the list.
26277 * load/i386/efi/linux.c (video_base): Remove variable.
26278 (RGB_MASK): New macro.
26279 (RGB_MAGIC): Likewise.
26280 (LINE_MIN): Likewise.
26281 (LINE_MAX): Likewise.
26282 (FBTEST_STEP): Likewise.
26283 (FBTEST_COUNT): Likewise.
26284 (fb_list): New variable.
26285 (grub_find_video_card): Remove function.
26286 (find_framebuf): New function.
26287 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
26290 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
26291 problem for x86_64.
26293 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
26295 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
26297 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
26300 2009-02-22 Robert Millan <rmh@aybabtu.com>
26302 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
26303 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
26304 in our relocation, instead of using it directly from heap. Also
26305 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
26307 2009-02-21 Robert Millan <rmh@aybabtu.com>
26309 Implement USB keyboard support (based on patch by Marco Gerards)
26311 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
26312 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
26313 (usb_keyboard_mod_LDFLAGS): New variables.
26315 * term/usb_keyboard.c: New file.
26317 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26319 Corrected wrong declaration
26321 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
26323 2009-02-14 Christian Franke <franke@computer.org>
26325 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
26326 (grub_lspci_iter): Print class code and programming interface byte.
26328 2009-02-14 Christian Franke <franke@computer.org>
26330 * gendistlist.sh: Ignore `.svn' directories.
26332 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
26334 * fs/fat.c: Add 2009 to Copyright line.
26336 2009-02-14 Christian Franke <franke@computer.org>
26338 * commands/hdparm.c: New file. Provides `hdparm' command
26339 which sends ATA commands via grub_disk_ata_pass_through ().
26341 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
26343 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
26344 and <grub/cpu/io.h> to include/grub/ata.h.
26345 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
26346 (GRUB_CDROM_SECTOR_SIZE): Remove.
26347 (GRUB_ATA_*): Move to include/grub/ata.h.
26348 (GRUB_ATAPI_*): Likewise.
26349 (enum grub_ata_commands): Likewise.
26350 (enum grub_ata_timeout_milliseconds): Likewise.
26351 (struct grub_ata_device): Likewise.
26352 (grub_ata_regset): Likewise.
26353 (grub_ata_regget): Likewise.
26354 (grub_ata_regset2): Likewise.
26355 (grub_ata_regget2): Likewise.
26356 (grub_ata_check_ready): Likewise.
26357 (grub_ata_wait_not_busy): Remove static, exported in
26358 include/grub/ata.h.
26359 (grub_ata_wait_drq): Likewise.
26360 (grub_ata_pio_read): Likewise.
26362 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
26363 function for hdparm.mod.
26365 * include/grub/ata.h: New file, contains declarations from
26367 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
26369 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
26370 (grub_disk_ata_pass_through): New exported variable.
26372 * kern/disk.c (grub_disk_ata_pass_through): New variable.
26374 2009-02-13 Colin D Bennett <colin@gibibit.com>
26376 Support multiple fallback entries, and provide an API to support
26377 executing default+fallback menu entries. Renamed the `terminal' menu
26380 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
26381 variable declaration.
26382 (grub_menu_execute_callback): New structure declaration.
26383 (grub_menu_execute_callback_t): New typedef.
26384 (grub_menu_execute_with_fallback): New function declaration.
26385 (grub_menu_get_entry): Likewise.
26386 (grub_menu_get_timeout): Likewise.
26387 (grub_menu_set_timeout): Likewise.
26389 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
26391 * normal/menu.c (grub_wait_after_message): Moved to
26392 `normal/menu_text.c'.
26393 (draw_border): Likewise.
26394 (print_message): Likewise.
26395 (print_entry): Likewise.
26396 (print_entries): Likewise.
26397 (grub_menu_init_page): Likewise.
26398 (get_entry_number): Likewise.
26399 (print_timeout): Likewise.
26400 (run_menu): Likewise.
26401 (grub_menu_execute_entry): Likewise.
26402 (show_text_menu): Likewise.
26403 (get_and_remove_first_entry_number): New function.
26404 (grub_menu_execute_with_fallback): Likewise.
26405 (get_entry): Renamed to ...
26406 (grub_menu_get_entry): .. this and made it global.
26407 (get_timeout): Renamed to ...
26408 (grub_menu_get_timeout): ... this and made it global.
26409 (set_timeout): Renamed to ...
26410 (grub_menu_set_timeout): ... this and made it global.
26411 (grub_normal_terminal_menu_viewer): Renamed to ...
26412 (grub_normal_text_menu_viewer): ... this.
26414 * normal/menu_text.c: New file. Extracted text-menu-specific code
26415 from normal/menu.c.
26417 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
26418 (normal_mod_SOURCES): Likewise.
26420 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26421 (normal_mod_SOURCES): Likewise.
26423 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26424 (normal_mod_SOURCES): Likewise.
26426 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
26427 (normal_mod_SOURCES): Likewise.
26429 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26430 (normal_mod_SOURCES): Likewise.
26432 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26433 (normal_mod_SOURCES): Likewise.
26435 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26436 (normal_mod_SOURCES): Likewise.
26438 2009-02-11 Robert Millan <rmh@aybabtu.com>
26440 * util/grub.d/00_header.in: Update old reference to `font' command.
26442 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
26444 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
26446 Based on patch from Javier Martín.
26448 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
26450 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
26451 to avoid false positives with FAT.
26452 (grub_fstest_SOURCES): Likewise.
26453 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26454 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26456 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26457 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26458 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26460 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
26462 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
26463 bpb.version_specific.fat12_or_fat16.fstype and
26464 bpb.version_specific.fat32.fstype.
26466 2009-02-08 Robert Millan <rmh@aybabtu.com>
26468 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
26470 2009-02-08 Robert Millan <rmh@aybabtu.com>
26472 * Makefile.in (host_os, host_cpu): New variables.
26473 (target_os): Remove. Update all users.
26475 2009-02-08 Marco Gerards <marco@gnu.org>
26477 * Makefile.in (enable_grub_emu_usb): New variable.
26478 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
26479 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
26480 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
26481 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
26482 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
26483 `usbtest.mod' and `usbms.mod'.
26484 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
26485 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
26486 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
26487 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
26488 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
26491 * disk/usbms.c: New file.
26493 * include/grub/usb.h: Likewise.
26495 * include/grub/usbtrans.h: Likewise.
26497 * include/grub/usbdesc.h: Likewise.
26499 * bus/usb/usbtrans.c: Likewise.
26501 * bus/usb/ohci.c: Likewise.
26503 * bus/usb/uhci.c: Likewise.
26505 * bus/usb/usbhub.c: Likewise.
26507 * bus/usb/usb.c: Likewise.
26509 * commands/usbtest.c: Likewise.
26511 * util/usb.c: Likewise.
26513 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
26515 * configure.ac: Test for libusb presence.
26517 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
26519 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
26521 * kern/mm.c: Add more comments.
26523 2009-02-08 Robert Millan <rmh@aybabtu.com>
26525 Patch from Javier Martín.
26526 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
26527 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
26529 2009-02-08 Robert Millan <rmh@aybabtu.com>
26531 * fs/cpio.c: Split tar functionality to ...
26532 * fs/tar.c: ... here (new file). Update all users.
26534 2009-02-07 Robert Millan <rmh@aybabtu.com>
26536 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
26537 backward-incompatible features.
26539 Based on patch from Javier Martín, with some adjustments.
26541 2009-02-07 Michael Scherer <misc@mandriva.org>
26543 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
26545 2009-02-07 Robert Millan <rmh@aybabtu.com>
26547 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
26548 position of `disk/lvm.c' to ensure grub_init_all() always picks it
26549 after the RAID stuff.
26551 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
26553 Fixes problem when running vbetest command as reported by
26554 Vladimir Serbinenko <phcoder@gmail.com>.
26556 * (grub_vbe_set_video_mode): Fixed problem with text modes.
26558 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
26560 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
26561 /dev/md/NpN style mdraid devices.
26563 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26565 * util/unifont2pff.rb: Remove.
26567 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26569 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
26572 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26574 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
26575 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26576 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26577 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26578 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26579 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26580 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26582 2009-02-02 Christian Franke <franke@computer.org>
26584 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
26586 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
26588 * INSTALL: Note that we now require at least autoconf 2.59 and
26589 that LZO is optional.
26591 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26593 Base on patch on bug #24154 created by Tomas Tintera
26594 <trosos@seznam.cz>.
26596 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
26598 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26600 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
26601 <bero@arklinux.org>.
26603 * normal/parser.y (script_init): Add missing semicolon.
26605 2009-01-31 Colin D Bennett <colin@gibibit.com>
26607 * normal/main.c: Add include to grub/menu_viewer.h.
26608 (free_menu_entry_classes): Added.
26609 (grub_normal_menu_addentry): Added class property handling.
26610 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
26611 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
26613 * normal/menu_viewer.c: New file.
26615 * normal/menu.c (run_menu_entry): Renamed to ...
26616 (grub_menu_execute_entry): ... this and made it as global.
26617 (grub_menu_run): Renamed to ...
26618 (show_text_menu): ... this and made it local.
26619 (show_text_menu): Adapt to new function names.
26620 (grub_normal_terminal_menu_viewer): New global variable.
26622 * include/grub/menu.h: New file.
26624 * include/grub/menu_viewer.h: New file.
26626 * include/grub/normal.h: Added include to grub/menu.h.
26627 (grub_menu_entry): Moved to include/grub/menu.h.
26628 (grub_menu_entry_t): Likewise.
26629 (grub_menu): Likewise.
26630 (grub_menu_t): Likewise.
26631 (grub_normal_terminal_menu_viewer): Added.
26632 (grub_menu_execute_entry): Likewise.
26633 (grub_menu_run): Removed.
26635 * DISTLIST: Added include/grub/menu.h.
26636 Added include/grub/menu_viewer.h.
26637 Added normal/menu_viewer.c.
26639 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
26641 * normal/execute.c (grub_script_execute_menuentry): Changed to use
26642 arglist for menutitle arguments.
26644 * normal/main.c (grub_normal_menu_addentry): Likewise.
26646 * normal/parser.y (menuentry): Likewise.
26648 * normal/script.c (grub_script_create_cmdmenu): Likewise.
26650 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
26651 (grub_script_create_cmdmenu): Likewise.
26653 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
26655 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
26658 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
26660 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
26662 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
26664 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26666 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26668 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26670 2009-01-30 Christian Franke <franke@computer.org>
26672 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
26673 in option help text.
26675 2009-01-27 Pavel Roskin <proski@gnu.org>
26677 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
26679 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
26681 * commands/lsmmap.c: Add include to grub/machine/memory.h.
26683 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
26685 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
26686 unregister function.
26688 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
26690 * disk/scsi.c (grub_scsi_read): Fix sign problem.
26692 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
26694 * util/grub-mkfont.c (usage): Fix typo.
26696 * util/elf/grub-mkimage.c (load_modules): Fix warning.
26698 2009-01-26 Daniel Mierswa <impulze@impulze.org>
26700 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
26702 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
26704 * kern/misc.c (grub_strcasecmp): New function.
26705 (grub_strcasecmp): Use grub_size_t instead of int for length.
26707 * include/grub/misc.h: Update function prototypes.
26709 2009-01-26 Robert Millan <rmh@aybabtu.com>
26711 * configure.ac: Fix cross-compilation check.
26713 2009-01-22 Christian Franke <franke@computer.org>
26715 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
26716 (precision) digit string. Allow `.format2' without `format1' (width).
26717 Limit input chars for `%s' output to `format2' if specified. This is
26718 compatible with standard printf ().
26720 2009-01-22 Christian Franke <franke@computer.org>
26722 * disk/ata.c (grub_ata_wait_status): Replace by ...
26723 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
26724 other status bits may be invalid while BSY is asserted.
26725 (grub_ata_check_ready): New function.
26726 (grub_ata_cmd): Removed.
26727 (grub_ata_wait_drq): New function.
26728 (grub_ata_strncpy): Remove inline.
26729 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
26730 and error check now done by grub_ata_wait_drq ().
26731 (grub_ata_pio_write): Likewise.
26732 (grub_atapi_identify): Set DEV before check for !BSY. Use
26733 grub_ata_wait_drq () to wait for data.
26734 (grub_ata_device_initialize): Add status register check to
26735 detect missing SATA slave devices. Add debug messages.
26736 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
26737 (grub_atapi_packet): Set DEV before check for !BSY. Replace
26738 transfer loop by grub_ata_pio_write ().
26739 (grub_ata_identify): Set DEV before check for !BSY. Use
26740 grub_ata_wait_drq () to wait for data.
26741 (grub_ata_setaddress): Set DEV before check for !BSY.
26742 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
26743 read/write in one loop. Fix invalid command on write. Fix incomplete
26744 command on (size % batch) == 0. Add missing error check after write of
26745 last block. Add debug messages.
26746 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
26748 2009-01-19 Christian Franke <franke@computer.org>
26750 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
26751 (GRUB_ATAPI_IREASON_*): Likewise.
26752 (grub_ata_pio_write): Fix timeout error return.
26753 (grub_atapi_identify): Add grub_ata_wait () after cmd.
26754 (grub_atapi_wait_drq): New function.
26755 (grub_atapi_packet): New parameter `size'.
26756 Use grub_atapi_wait_drq () and direct write instead of
26757 grub_ata_pio_write ().
26758 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
26759 reads the number of bytes requested by the device for each DRQ
26761 (grub_atapi_write): Remove old implementation, return not
26762 implemented instead.
26764 2009-01-19 Christian Franke <franke@computer.org>
26766 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
26767 of 512 to calculate data size.
26768 (grub_scsi_read12): Likewise.
26769 (grub_scsi_write10): Likewise.
26770 (grub_scsi_write12): Likewise.
26771 (grub_scsi_read): Adjust size according to blocksize.
26772 Add checks for invalid blocksize and unaligned transfer.
26774 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
26776 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
26778 * term/gfxterm.c (write_char): Fix background rendering for wide
26781 2009-01-19 Robert Millan <rmh@aybabtu.com>
26783 * config.guess: Update to latest version from config git.
26784 * config.sub: Likewise.
26786 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
26788 * Makefile.in: Change font compilation to use new grub-mkfont instead
26791 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
26792 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
26793 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26794 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26795 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
26796 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
26797 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
26798 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
26799 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
26801 2009-01-16 Christian Franke <franke@computer.org>
26803 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
26804 (enum grub_ata_timeout_milliseconds): New enum.
26805 (grub_ata_wait_status): Add parameter milliseconds.
26806 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
26807 recovery from timed-out commands.
26808 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
26809 return grub_errno instead of REG_ERROR.
26810 (grub_ata_pio_write): Add parameter milliseconds.
26811 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
26812 Pass milliseconds to grub_ata_wait_status () and
26813 grub_ata_pio_read ().
26814 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
26815 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
26816 grub_ata_wait_status (). Fix IDENTIFY timeout check.
26817 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
26818 It is not suitable for device detection, because DEV bit is ignored,
26819 the command may run too long, and not all devices set the signature
26821 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
26822 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
26823 Fix device selection, DEV bit must be set first to address the registers
26824 of the correct device.
26825 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
26826 grub_ata_pio_read/write ().
26827 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
26828 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
26830 2009-01-13 Carles Pina i Estany <carles@pina.cat>
26832 * util/grub-editenv.c (main): Use fseeko(), not fseek().
26834 2009-01-13 Bean <bean123ch@gmail.com>
26836 * util/grub-mkfont.c (write_font): forget to remove some debug code.
26838 2009-01-13 Bean <bean123ch@gmail.com>
26840 * Makefile.in: (enable_grub_mkfont): New variable.
26841 (freetype_cflags): Likewise.
26842 (freetype_libs): Likewise.
26844 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
26845 (grub_mkfont_SOURCES): New variable.
26846 (grub_mkfont_CFLAGS): Likewise.
26847 (grub_mkfont_LDFLAGS): Likewise.
26849 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
26850 library if `--enable-grub-mkfont' is requested.
26851 (enable_grub_mkfont): New variable.
26852 (freetype_cflags): Likewise.
26853 (freetype_libs): Likewise.
26855 * util/grub-mkfont.c: New file.
26857 2009-01-12 Christian Franke <franke@computer.org>
26859 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
26860 mode check. Fix setting of compat_use[].
26862 2009-01-10 Robert Millan <rmh@aybabtu.com>
26864 Update a few copyright years which we forgot to do in 2008 (only for
26865 files whose changes made in 2008 were copyright-significant)
26867 * Makefile.in: Add 2008 to Copyright line.
26868 * disk/ieee1275/ofdisk.c: Likewise.
26869 * disk/efi/efidisk.c: Likewise.
26870 * kern/dl.c: Likewise.
26871 * kern/sparc64/ieee1275/init.c: Likewise.
26872 * kern/mm.c: Likewise.
26873 * kern/efi/mm.c: Likewise.
26874 * boot/i386/pc/boot.S: Likewise.
26875 * genfslist.sh: Likewise.
26876 * fs/iso9660.c: Likewise.
26877 * fs/hfs.c: Likewise.
26878 * fs/jfs.c: Likewise.
26879 * fs/minix.c: Likewise.
26880 * fs/ufs.c: Likewise.
26881 * gensymlist.sh.in: Likewise.
26882 * genkernsyms.sh.in: Likewise.
26883 * include/grub/misc.h: Likewise.
26884 * include/grub/types.h: Likewise.
26885 * include/grub/symbol.h: Likewise.
26886 * include/grub/elf.h: Likewise.
26887 * include/grub/kernel.h: Likewise.
26888 * include/grub/disk.h: Likewise.
26889 * include/grub/dl.h: Likewise.
26890 * include/grub/i386/linux.h: Likewise.
26891 * include/grub/i386/pc/biosdisk.h: Likewise.
26892 * include/grub/efi/api.h: Likewise.
26893 * include/grub/efi/pe32.h: Likewise.
26894 * include/grub/util/misc.h: Likewise.
26895 * normal/execute.c: Likewise.
26896 * normal/arg.c: Likewise.
26897 * normal/completion.c: Likewise.
26898 * normal/lexer.c: Likewise.
26899 * normal/parser.y: Likewise.
26900 * normal/misc.c: Likewise.
26901 * commands/i386/pc/vbeinfo.c: Likewise.
26902 * commands/hexdump.c: Likewise.
26903 * commands/terminal.c: Likewise.
26904 * commands/ls.c: Likewise.
26905 * commands/help.c: Likewise.
26906 * partmap/pc.c: Likewise.
26907 * loader/efi/chainloader.c: Likewise.
26908 * loader/multiboot_loader.c: Likewise.
26909 * loader/i386/pc/multiboot2.c: Likewise.
26910 * term/efi/console.c: Likewise.
26911 * term/i386/pc/serial.c: Likewise.
26912 * util/lvm.c: Likewise.
26913 * util/console.c: Likewise.
26914 * util/i386/efi/grub-mkimage.c: Likewise.
26915 * util/raid.c: Likewise.
26917 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
26919 * commands/videotest.c: Removed include to grub/machine/memory.h.
26921 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
26922 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
26923 (video_mod_SOURCES): Removed.
26924 (video_mod_CFLAGS): Likewise.
26925 (video_mod_LDFLAGS): Likewise.
26926 (gfxterm_mod_SOURCES): Likewise.
26927 (gfxterm_mod_CFLAGS): Likewise.
26928 (gfxterm_mod_LDFLAGS): Likewise.
26929 (videotest_mod_SOURCES): Likewise.
26930 (videotest_mod_CFLAGS): Likewise.
26931 (videotest_mod_LDFLAGS): Likewise.
26932 (bitmap_mod_SOURCES): Likewise.
26933 (bitmap_mod_CFLAGS): Likewise.
26934 (bitmap_mod_LDFLAGS): Likewise.
26935 (tga_mod_SOURCES): Likewise.
26936 (tga_mod_CFLAGS): Likewise.
26937 (tga_mod_LDFLAGS): Likewise.
26938 (jpeg_mod_SOURCES): Likewise.
26939 (jpeg_mod_CFLAGS): Likewise.
26940 (jpeg_mod_LDFLAGS): Likewise.
26941 (png_mod_SOURCES): Likewise.
26942 (png_mod_CFLAGS): Likewise.
26943 (png_mod_LDFLAGS): Likewise.
26945 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
26946 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
26947 (video_mod_SOURCES): Added.
26948 (video_mod_CFLAGS): Likewise.
26949 (video_mod_LDFLAGS): Likewise.
26950 (videotest_mod_SOURCES): Likewise.
26951 (videotest_mod_CFLAGS): Likewise.
26952 (videotest_mod_LDFLAGS): Likewise.
26953 (bitmap_mod_SOURCES): Likewise.
26954 (bitmap_mod_CFLAGS): Likewise.
26955 (bitmap_mod_LDFLAGS): Likewise.
26956 (tga_mod_SOURCES): Likewise.
26957 (tga_mod_CFLAGS): Likewise.
26958 (tga_mod_LDFLAGS): Likewise.
26959 (jpeg_mod_SOURCES): Likewise.
26960 (jpeg_mod_CFLAGS): Likewise.
26961 (jpeg_mod_LDFLAGS): Likewise.
26962 (png_mod_SOURCES): Likewise.
26963 (png_mod_CFLAGS): Likewise.
26964 (png_mod_LDFLAGS): Likewise.
26965 (gfxterm_mod_SOURCES): Likewise.
26966 (gfxterm_mod_CFLAGS): Likewise.
26967 (gfxterm_mod_LDFLAGS): Likewise.
26969 * term/gfxterm.c: Removed include to grub/machine/memory.h,
26970 grub/machine/console.h.
26972 2009-01-04 Jerone Young <jerone@gmail.com>
26974 Make on screen instructions clearer
26976 Based on patch created by Jidanni <jidanni@jidanni.org>
26978 * normal/menu.c: print clearer instructions on the screen
26980 2009-01-02 Colin D Bennett <colin@gibibit.com>
26984 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
26985 build system and fixed gfxterm.c to work with different sized fonts.
26987 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
26989 * configure: Re-generated.
26991 * DISTLIST: Removed font/manager.c.
26993 Added font/font_cmd.c.
26995 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
26998 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
27000 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
27002 * kern/term.c: Changed users of grub_utf8_to_ucs4.
27004 * normal/menu.c: Likewise.
27006 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
27007 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
27009 * include/grub/font.h: Replaced with new file.
27011 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
27012 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
27013 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
27014 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
27015 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
27016 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
27017 fg_red, fg_green, fg_blue, fg_alpha.
27018 (grub_video_adapter): Removed blit_glyph.
27019 (grub_video_blit_glyph): Removed.
27021 * font/manager.c: Removed file.
27023 * font/font.c: New file.
27025 * font/font_cmd.c: Likewise.
27027 * video/video.c (grub_video_blit_glyph): Removed.
27029 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
27030 (grub_video_vbe_map_rgba): Likewise.
27031 (grub_video_vbe_unmap_color_int): Likewise.
27032 (grub_video_vbe_blit_glyph): Removed.
27033 (grub_video_vbe_adapter): Removed blit_glyph.
27035 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
27036 (get_pixel): Likewise.
27037 (set_pixel): Likewise.
27039 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
27041 * term/gfxterm.c: Adapted to new font engine.
27043 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
27045 * term/i386/pc/vga.c: Likewise.
27047 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
27049 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
27051 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27053 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27055 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
27057 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
27059 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
27061 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
27063 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
27065 * util/grub.d/00_header.in: Changed to use new loadfont command.
27067 * util/grub-mkconfig_lib.in: Changed font extension.
27069 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
27071 * util/getroot.c (grub_util_get_grub_dev): Add support for
27072 /dev/md/dNNpNN style partitionable mdraid devices.
27074 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
27076 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
27077 at a time limit of the PXE TFTP API correctly.
27078 (grub_pxefs_close): Likewise.
27080 2008-11-29 Robert Millan <rmh@aybabtu.com>
27082 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
27083 grub_ata_device_initialize() calls.
27085 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
27087 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
27089 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
27091 2008-11-28 Robert Millan <rmh@aybabtu.com>
27093 Fix build on powerpc-ieee1275. Based on patch created by
27094 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
27095 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
27096 `kern/ieee1275/mmap.c'.
27097 * include/grub/powerpc/ieee1275/memory.h: New file.
27099 Provide grub-install on coreboot.
27100 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
27101 (grub_install_SOURCES): New variable.
27102 * util/i386/pc/grub-install.in: Add a few condition checks to make it
27103 usable on coreboot.
27105 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
27107 * util/grub-fstest.c (grub_term_get_current_input): Change return type
27108 to `grub_term_input_t'.
27109 (grub_term_get_current_output): Change return type to
27110 `grub_term_output_t'.
27112 2008-11-22 Robert Millan <rmh@aybabtu.com>
27114 Fix breakage on coreboot due to declaration mismatch.
27115 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
27116 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
27117 grub_vga_text_cls().
27119 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
27120 comments. Avoid copying one more byte than necessary (just in case).
27122 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
27123 to 0x200000 (avoids trouble with some OFW implementations, and matches
27124 with the one in Yaboot).
27125 Reported by Manoel Abranches
27127 2008-11-20 Robert Millan <rmh@aybabtu.com>
27129 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
27130 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
27132 * util/grub-mkconfig_lib.in (grub_warn): New function.
27133 (convert_system_path_to_grub_path): Use grub_warn() when issuing
27134 warnings, to obtain consistent formatting.
27135 * util/grub.d/00_header.in: Likewise.
27136 * util/update-grub_lib.in: Likewise.
27138 * loader/i386/linux.c (allocate_pages): Fix a warning.
27139 Move comment text to `#error' stanza.
27141 Harmonize ieee1275's grub_available_iterate() with the generic
27142 grub_machine_mmap_iterate() interface (fixes a recently-introduced
27143 build problem on i386-ieee1275):
27144 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
27145 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
27146 parameter `type'. Update all users of this function.
27147 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
27148 `kern/ieee1275/mmap.c'.
27149 * kern/ieee1275/init.c
27150 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
27152 (grub_machine_mmap_iterate): ... this.
27153 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
27154 return type to `grub_err_t'. Update all implementations of this
27155 function prototype.
27156 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
27159 Add `lsmmap' command (lists firmware-provided memory map):
27160 * commands/lsmmap.c: New file.
27161 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
27162 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
27164 * conf/powerpc-ieee1275.rmk: Likewise.
27165 * conf/i386-coreboot.rmk: Likewise.
27166 * conf/i386-ieee1275.rmk: Likewise.
27168 2008-11-19 Robert Millan <rmh@aybabtu.com>
27170 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
27171 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
27172 constraints to initrd allocation (based on code from
27173 loader/i386/pc/linux.c). Without them, initrd was allocated too high
27174 for Linux to find it.
27176 2008-11-14 Robert Millan <rmh@aybabtu.com>
27178 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
27179 order to cope with duplicate slashes.
27181 2008-11-14 Robert Millan <rmh@aybabtu.com>
27183 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
27184 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
27185 don't want to mess with lower memory, because it is used in the Linux
27188 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
27189 an appropriate place in lower memory, between 0x10000 and 0x90000,
27190 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
27191 is in our heap (probably as a result of it being corrupted during
27192 decompression). Add #error instance with comment to explain why this
27193 loader isn't currently usable on PC/BIOS.
27195 2008-11-14 Robert Millan <rmh@aybabtu.com>
27197 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
27198 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
27200 2008-11-12 Robert Millan <rmh@aybabtu.com>
27202 Make loader/i386/linux.c buildable on i386-pc (although disabled).
27204 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
27205 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
27207 * include/grub/i386/pc/memory.h: ... to here.
27209 2008-11-12 Robert Millan <rmh@aybabtu.com>
27211 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
27214 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
27215 (grub_console_cur_color, grub_console_real_putchar)
27216 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
27217 (grub_console_setcolorstate, grub_console_setcolor)
27218 (grub_console_getcolor): Move from here ...
27219 * include/grub/i386/vga_common.h: ... to here (new file).
27221 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
27222 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
27223 `<grub/i386/io.h>'.
27224 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
27225 `<grub/i386/vga_common.h>'.
27227 2008-11-12 Robert Millan <rmh@aybabtu.com>
27229 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
27230 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
27231 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
27233 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
27234 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
27236 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
27237 grub_console_init() with call to grub_vga_text_init().
27238 (grub_machine_fini): Replace call to
27239 grub_console_fini() with call to grub_vga_text_fini() and
27240 grub_at_keyboard_fini().
27242 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
27243 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
27244 (grub_console_setcolorstate, grub_console_setcolor)
27245 (grub_console_getcolor): New function prototypes.
27247 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
27248 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
27249 (grub_vga_text_setcursor): Static-ize.
27250 (grub_vga_text_term): New structure.
27251 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
27253 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
27254 (grub_console_cur_color, grub_console_standard_color)
27255 (grub_console_normal_color, grub_console_highlight_color)
27256 (map_char, grub_console_putchar, grub_console_getcharwidth)
27257 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
27258 (grub_console_getcolor): Move from here ...
27259 * term/i386/vga_common.c: ... to here (same function names).
27261 2008-11-12 Robert Millan <rmh@aybabtu.com>
27263 Use newly-added Multiboot support in coreboot.
27265 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
27266 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
27268 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
27269 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
27270 (codestart): Store the MBI in `startup_multiboot_info' when we're
27271 being loaded using Multiboot.
27273 * kern/i386/coreboot/init.c (grub_machine_init): Move
27274 grub_at_keyboard_init() call to beginning of function (useful for
27275 debugging). Call grub_machine_mmap_init() before attempting to use
27276 grub_machine_mmap_iterate().
27277 (grub_lower_mem, grub_upper_mem): Move from here ...
27278 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
27281 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
27282 function prototype.
27284 2008-11-12 Robert Millan <rmh@aybabtu.com>
27286 Fix a regression introduced by the at_keyboard.mod split. Because
27287 some terminals are default on some platforms and non-default on
27288 others, the first terminal being registered determines which is
27289 going to be default.
27291 * kern/term.c (grub_term_register_input): If this is the first
27292 terminal being registered, set it as the current one.
27293 (grub_term_register_output): Likewise.
27295 * term/efi/console.c (grub_console_init): Do not call
27296 grub_term_set_current_output() or grub_term_set_current_input().
27297 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
27298 * term/i386/pc/console.c (grub_console_init): Likewise.
27299 (grub_console_fini): Do not call grub_term_set_current_input()
27300 (but leave grub_term_set_current_output() to restore text mode).
27302 2008-11-10 Robert Millan <rmh@aybabtu.com>
27304 * util/grub.d/00_header.in: Add backward compatibility check for
27305 versions of terminal.mod that don't understand `terminal_input' or
27308 2008-11-09 Robert Millan <rmh@aybabtu.com>
27310 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
27311 `terminal_input' / `terminal_output', not `terminal'.
27313 2008-11-08 Robert Millan <rmh@aybabtu.com>
27315 * Makefile.in (include_DATA): Fix srcdir=. assumption.
27316 (DISTCLEANFILES): Add `build_env.mk'.
27318 2008-11-08 Robert Millan <rmh@aybabtu.com>
27320 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
27321 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27322 members. Update all users.
27323 * util/console.c (grub_ncurses_term): Split in ...
27324 (grub_ncurses_term_input): ... this, and ...
27325 (grub_ncurses_term_output): ... this. Update all users.
27326 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
27328 2008-11-08 Robert Millan <rmh@aybabtu.com>
27330 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
27331 (PKGDATA): Add $(pkgdata_SRCDIR).
27332 (pkglib_BUILDDIR): New variable.
27333 (pkgdata_SRCDIR): New variable.
27334 (build_env.mk): New target.
27335 (include_DATA): New variable.
27336 (install-local): Install $(include_DATA) files in $(includedir).
27338 2008-11-07 Pavel Roskin <proski@gnu.org>
27340 * gendistlist.sh: Use C locale for sorting to ensure consistent
27341 output on all systems.
27343 * util/grub.d/00_header.in: Remove incorrect space before
27346 2008-11-07 Robert Millan <rmh@aybabtu.com>
27348 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
27350 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
27351 * loader/multiboot_loader.c (find_multi_boot2_header): New function
27352 (based on find_multi_boot1_header).
27353 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
27354 using find_multi_boot2_header(), and abort if neither Multiboot or
27355 Multiboot headers were found.
27357 2008-11-07 Robert Millan <rmh@aybabtu.com>
27359 Modularize at_keyboard.mod:
27361 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
27362 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
27363 (at_keyboard_mod_LDFLAGS): New variables.
27365 Actual terminal split:
27367 * include/grub/term.h (struct grub_term): Split in ...
27368 (struct grub_term_input): ... this, and ...
27369 (struct grub_term_output): ... this. Update all users.
27370 (grub_term_set_current): Split in ...
27371 (grub_term_set_current_input): ... this, and ...
27372 (grub_term_set_current_output): ... this.
27373 (grub_term_get_current): Split in ...
27374 (grub_term_get_current_input): ... this, and ...
27375 (grub_term_get_current_output): ... this.
27376 (grub_term_register): Split in ...
27377 (grub_term_register_input): ... this, and ...
27378 (grub_term_register_output): ... this.
27379 (grub_term_unregister): Split in ...
27380 (grub_term_unregister_input): ... this, and ...
27381 (grub_term_unregister_output): ... this.
27382 (grub_term_iterate): Split in ...
27383 (grub_term_iterate_input): ... this, and ...
27384 (grub_term_iterate_output): ... this.
27386 * kern/term.c (grub_term_list): Split in ...
27387 (grub_term_list_input): ... this, and ...
27388 (grub_term_list_output): ... this. Update all users.
27389 (grub_cur_term): Split in ...
27390 (grub_cur_term_input): ... this, and ...
27391 (grub_cur_term_output): ... this. Update all users.
27392 (grub_term_set_current): Split in ...
27393 (grub_term_set_current_input): ... this, and ...
27394 (grub_term_set_current_output): ... this.
27395 (grub_term_get_current): Split in ...
27396 (grub_term_get_current_input): ... this, and ...
27397 (grub_term_get_current_output): ... this.
27398 (grub_term_register): Split in ...
27399 (grub_term_register_input): ... this, and ...
27400 (grub_term_register_output): ... this.
27401 (grub_term_unregister): Split in ...
27402 (grub_term_unregister_input): ... this, and ...
27403 (grub_term_unregister_output): ... this.
27404 (grub_term_iterate): Split in ...
27405 (grub_term_iterate_input): ... this, and ...
27406 (grub_term_iterate_output): ... this.
27408 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
27409 a check for input and one for output (and only attempt to get keys
27410 from user when input works).
27412 * util/grub-probe.c (grub_term_get_current): Split in ...
27413 (grub_term_get_current_input): ... this, and ...
27414 (grub_term_get_current_output): ... this.
27415 * util/grub-fstest.c: Likewise.
27416 * util/i386/pc/grub-setup.c: Likewise.
27417 * util/grub-editenv.c: Likewise.
27419 Portability adjustments:
27421 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
27422 `term/i386/pc/at_keyboard.c'.
27423 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
27424 grub_keyboard_controller_init() (now handled by terminal .init).
27425 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
27426 grub_at_keyboard_init().
27427 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
27428 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
27429 at_keyboard.mod via input terminal interface).
27430 * include/grub/i386/coreboot/console.h: Convert into a stub for
27431 `<grub/i386/pc/console.h>'.
27433 Migrate full terminals to new API:
27435 * term/efi/console.c (grub_console_term): Split into ...
27436 (grub_console_term_input): ... this, and ...
27437 (grub_console_term_output): ... this. Update all users.
27438 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
27439 (grub_ofconsole_init): Split into ...
27440 (grub_ofconsole_init_input): ... this, and ...
27441 (grub_ofconsole_init_output): ... this.
27442 (grub_ofconsole_term): Split into ...
27443 (grub_ofconsole_term_input): ... this, and ...
27444 (grub_ofconsole_term_output): ... this. Update all users.
27445 * term/i386/pc/serial.c (grub_serial_term): Split into ...
27446 (grub_serial_term_input): ... this, and ...
27447 (grub_serial_term_output): ... this. Update all users.
27448 * term/i386/pc/console.c (grub_console_term): Split into ...
27449 (grub_console_term_input): ... this, and ...
27450 (grub_console_term_output): ... this. Update all users.
27451 (grub_console_term_input): Only enable it on PC/BIOS platform.
27452 (grub_console_init): Remove grub_keyboard_controller_init() call.
27454 Migrate input terminals to new API:
27456 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
27457 `i386' and `i386/pc' to enable build on x86_64 (this driver is
27458 i386-specific anyway).
27459 (grub_console_checkkey): Rename to ...
27460 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
27462 (grub_keyboard_controller_orig): New variable.
27463 (grub_console_getkey): Rename to ...
27464 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
27466 (grub_keyboard_controller_init): Static-ize. Save original
27467 controller value so that it can be restored ...
27468 (grub_keyboard_controller_fini): ... here (new function).
27469 (grub_at_keyboard_term): New structure.
27470 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
27473 Migrate output terminals to new API:
27475 * term/i386/pc/vga.c (grub_vga_term): Change type to
27476 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27477 members. Update all users.
27478 * term/gfxterm.c (grub_video_term): Change type to
27479 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27480 members. Update all users.
27481 * include/grub/i386/pc/console.h (grub_console_checkkey)
27482 (grub_console_getkey): Do not export (no longer needed by gfxterm,
27485 Migrate `terminal' command and userland tools to new API:
27487 * commands/terminal.c (grub_cmd_terminal): Split into ...
27488 (grub_cmd_terminal_input): ... this, and ...
27489 (grub_cmd_terminal_output): ... this.
27490 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
27491 `terminal_input' and `terminal_output'.
27492 * util/grub.d/00_header.in: Adjust `terminal' calls to new
27493 `terminal_input' / `terminal_output' API.
27494 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
27495 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
27496 provided ${GRUB_TERMINAL}, convert it).
27498 2008-11-04 Robert Millan <rmh@aybabtu.com>
27500 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
27502 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
27504 2008-11-03 Bean <bean123ch@gmail.com>
27506 * kern/elf.c (grub_elf32_load): Revert to previous code.
27507 (grub_elf64_load): Likewise.
27509 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
27511 2008-11-01 Robert Millan <rmh@aybabtu.com>
27513 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
27514 (TARGET_CPPFLAGS): Likewise.
27515 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
27517 2008-11-01 Carles Pina i Estany <carles@pina.cat>
27519 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
27521 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27523 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
27524 addition of objects until the code is not going to be able to fail.
27526 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27528 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
27529 (add a missing NULL check, and correct them by moving the pointer
27530 operations after the actual check).
27532 2008-10-29 Robert Millan <rmh@aybabtu.com>
27534 * util/i386/pc/grub-install.in: Handle empty string as output from
27535 make_system_path_relative_to_its_root().
27537 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
27539 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
27540 circular metadata worst case scenario. If the metadata is circular
27541 then copy the wrap in place.
27542 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
27543 project lib/format_text/layout.h
27544 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
27546 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27548 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
27550 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27552 * util/update-grub_lib.in: Mention filename in warning message.
27554 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27556 * NEWS: Update for rename of update-grub to grub-mkconfig.
27558 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27560 * util/update-grub_lib.in: Copy to ...
27561 * util/grub-mkconfig_lib.in: ... this. Update all users.
27562 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
27563 * util/update-grub.in: Rename to ...
27564 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
27565 option. Add `--output' option to allow users to specify the generated
27566 configuration file. Default to stdout.
27567 (update_grub_dir): Rename to ...
27568 (grub_mkconfig_dir): ... this.
27569 (grub_cfg): Default to an empty string.
27570 * conf/common.rmk (update-grub): Rename to ...
27571 (grub-mkconfig): ... this.
27572 (update-grub_lib): Copy to ...
27573 (grub-mkconfig_lib): ... this.
27574 (update-grub_SCRIPTS): Copy to ...
27575 (grub-mkconfig_SCRIPTS): ... this. Update all users.
27576 (update-grub_DATA): Rename to ...
27577 (grub-mkconfig_DATA): ... this.
27579 2008-09-28 Robert Millan <rmh@aybabtu.com>
27581 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
27582 to `modified'. Add the real `created' field.
27583 (grub_iso9660_uuid): Use `modified' rather than `created' for
27584 constructing the UUID.
27586 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
27588 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
27589 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
27591 2008-09-28 Bean <bean123ch@gmail.com>
27593 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
27594 Thanks to Christian Franke for finding this bug.
27596 2008-09-25 Robert Millan <rmh@aybabtu.com>
27598 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
27599 instances of grub_util_get_disk_name() (see previous commit).
27601 2008-09-25 Robert Millan <rmh@aybabtu.com>
27603 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
27604 `util/i386/get_disk_name.c'.
27605 * conf/i386-efi.rmk: Likewise.
27606 * conf/x86_64-efi.rmk: Likewise.
27607 * conf/i386-coreboot.rmk: Likewise.
27608 * conf/i386-ieee1275.rmk: Likewise.
27609 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
27610 `util/ieee1275/get_disk_name.c'.
27611 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
27612 * util/ieee1275/get_disk_name.c: Remove file.
27613 * util/i386/get_disk_name.c: Remove file.
27614 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
27615 "hd%d" for device.map entries, rather than using
27616 grub_util_get_disk_name().
27618 2008-09-24 Carles Pina i Estany <carles@pina.cat>
27620 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
27622 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
27624 2008-09-24 Carles Pina i Estany <carles@pina.cat>
27626 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
27628 (GRUB_TERM_PPAGE): Changed to 0x4900.
27630 2008-09-24 Robert Millan <rmh@aybabtu.com>
27632 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
27633 macros (they were i386-pc specific).
27634 * include/grub/sparc64/ieee1275/console.h: Likewise.
27635 * include/grub/efi/console.h: Likewise.
27637 2008-09-22 Bean <bean123ch@gmail.com>
27639 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
27640 resident and in attribute list.
27642 * include/grub/ntfs.h (BMP_LEN): Removed.
27644 2008-09-22 Bean <bean123ch@gmail.com>
27646 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
27647 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
27649 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
27650 error occurs, as grub_disk_open will call grub_disk_close, which will
27651 call p->close (scsi).
27653 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
27655 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
27656 (AC_PREREQ): Bumped to 2.59.
27657 (AC_TRY_COMPILE): Replace obsolete macro with ...
27658 (AC_COMPILE_IFELSE): ... this.
27659 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
27660 (AC_LINK_IFELSE): ... this.
27662 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
27664 * autogen.sh: Add a call to `gendistlist.sh'.
27666 2008-09-19 Christian Franke <franke@computer.org>
27668 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
27669 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
27670 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
27671 Export __enable_execute_stack() to modules.
27672 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
27675 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
27677 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
27680 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
27682 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
27683 #include <grub/util/hostdisk.h>.
27685 2008-09-08 Robert Millan <rmh@aybabtu.com>
27687 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
27688 segments when their filesz is zero (grub_file_read() interprets
27689 zero-size as "read until EOF", which results in memory corruption).
27690 Use `lowest_segment' rather than 0 for calculating the current
27691 segment load address.
27693 2008-09-08 Robert Millan <rmh@aybabtu.com>
27695 * util/hostdisk.c (open_device): Replace a grub_util_info() call
27696 with grub_dprintf("hostdisk", ...), as it was so verbose that it
27697 clobbered useful information.
27699 2008-09-08 Robert Millan <rmh@aybabtu.com>
27701 * include/grub/util/biosdisk.h: Move to ...
27702 * include/grub/util/hostdisk.h: ... here. Update all users.
27703 * util/biosdisk.c: Move to ...
27704 * util/hostdisk.c: ... here. Update all users.
27706 2008-09-07 Robert Millan <rmh@aybabtu.com>
27708 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
27710 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
27711 and length can be stored directly in the `mbi->mmap_addr' and
27712 `mbi->mmap_length' struct fields.
27714 2008-09-07 Robert Millan <rmh@aybabtu.com>
27716 * conf/i386.rmk: New file. Provides declaration for building
27718 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
27719 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
27721 Include `conf/i386.mk'.
27722 * conf/i386-efi.rmk: Likewise.
27723 * conf/x86_64-efi.rmk: Likewise.
27724 * conf/i386-coreboot.rmk: Likewise.
27725 * conf/i386-ieee1275.rmk: Likewise.
27727 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
27729 Based on patch created by Colin D Bennett <colin@gibibit.com>.
27730 Adds optimization support for BGR based modes.
27732 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
27733 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
27734 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
27735 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
27736 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
27737 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
27738 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
27739 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
27740 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
27741 (grub_video_i386_vbeblit_index_index): Likewise.
27742 (grub_video_i386_vbeblit_replace_directN): Added.
27743 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
27744 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
27745 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
27746 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
27747 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
27748 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
27749 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
27750 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
27751 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
27752 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
27753 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
27754 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
27755 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
27757 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
27758 (grub_video_i386_vbefill_R8G8B8): Likewise.
27759 (grub_video_i386_vbefill_index): Likewise.
27760 (grub_video_i386_vbefill_direct32): Added.
27761 (grub_video_i386_vbefill_direct24): Likewise.
27762 (grub_video_i386_vbefill_direct16): Likewise.
27763 (grub_video_i386_vbefill_direct8): Likewise.
27765 * include/grub/video.h (grub_video_blit_format): Removed
27766 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
27767 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
27768 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
27769 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
27770 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
27772 * video/video.c (grub_video_get_blit_format): Updated to use new
27773 blit formats. Added handling for 16 bit color modes.
27775 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
27777 (common_blitter): Updated to use new blitters.
27779 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
27781 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
27782 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
27783 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
27784 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
27785 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
27786 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
27787 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
27788 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
27789 (grub_video_i386_vbeblit_index_index): Likewise.
27790 (grub_video_i386_vbeblit_replace_directN): Added.
27791 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
27792 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
27793 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
27794 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
27795 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
27796 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
27797 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
27798 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
27799 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
27800 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
27801 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
27802 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
27803 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
27805 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
27806 (grub_video_i386_vbefill_R8G8B8): Likewise.
27807 (grub_video_i386_vbefill_index): Likewise.
27808 (grub_video_i386_vbefill_direct32): Added.
27809 (grub_video_i386_vbefill_direct24): Likewise.
27810 (grub_video_i386_vbefill_direct16): Likewise.
27811 (grub_video_i386_vbefill_direct8): Likewise.
27813 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
27816 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
27819 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
27822 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
27825 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
27827 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
27830 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
27832 * fs/iso9660.c (grub_iso9660_date): New structure.
27833 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
27834 (grub_iso9660_uuid): New function.
27836 2008-09-05 Bean <bean123ch@gmail.com>
27838 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
27840 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
27841 insensitive bit for names in Win32 and Win32 & DOS namespace.
27843 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
27845 * include/grub/types.h (LONG_MAX): Likewise.
27847 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
27849 * util/getroot.c: Include <config.h>.
27850 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
27851 add support for /dev/md/N devices and handle LVM double dash escaping.
27853 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
27855 * config.guess: Update to latest version from config git.
27856 * config.sub: Likewise.
27858 2008-09-03 Robert Millan <rmh@aybabtu.com>
27860 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
27861 `disk->total_sectors'.
27863 2008-09-01 Colin D Bennett <colin@gibibit.com>
27865 * include/grub/normal.h: Fixed incorrect comment for
27866 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
27868 2008-09-01 Colin D Bennett <colin@gibibit.com>
27870 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
27871 values with defines.
27873 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
27874 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
27875 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
27876 (GRUB_VBE_MODEATTR_COLOR): Likewise.
27877 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
27878 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
27879 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
27880 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
27881 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
27882 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
27883 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
27884 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
27885 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
27886 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
27887 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
27888 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
27889 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
27890 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
27891 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
27893 2008-08-31 Robert Millan <rmh@aybabtu.com>
27895 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
27897 (grub_multiboot): Fix a few warnings.
27899 2008-08-31 Robert Millan <rmh@aybabtu.com>
27901 * loader/i386/pc/multiboot.c: Update comment not to say that
27902 boot_device support is unimplemented.
27904 2008-08-31 Robert Millan <rmh@aybabtu.com>
27906 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
27907 or memory map support are unimplemented.
27909 2008-08-31 Colin D Bennett <colin@gibibit.com>
27911 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
27913 2008-08-31 Colin D Bennett <colin@gibibit.com>
27915 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
27916 total video memory in 'vbeinfo' output; show color format details for
27919 2008-08-30 Pavel Roskin <proski@gnu.org>
27921 * util/genmoddep.c: Remove for real this time.
27922 * DISTLIST: Remove util/genmoddep.c.
27924 2008-08-30 Robert Millan <rmh@aybabtu.com>
27926 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
27927 as required by Multiboot spec (it was already 4-byte aligned, but
27930 2008-08-29 Pavel Roskin <proski@gnu.org>
27932 * kern/powerpc/ieee1275/crt0.S: Rename to ...
27933 * kern/powerpc/ieee1275/startup.S: ... this.
27934 * conf/powerpc-ieee1275.rmk: Adjust for the above.
27935 * DISTLIST: Likewise.
27937 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
27938 grub/cpu/kernel.h. Add start label for consistency with other
27939 platforms. Add grub_prefix immediately after start. Add jump
27940 to the code after grub_prefix.
27941 * include/grub/powerpc/kernel.h: Provide valid values for
27942 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
27944 2008-08-29 Bean <bean123ch@gmail.com>
27946 * configure.ac: Change host_os to cygwin for mingw.
27947 (asprintf): New check for function.
27949 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
27950 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
27952 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
27953 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
27954 sync, sleep and grub_util_get_disk_size for mingw.
27956 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
27957 to get size in mingw.
27958 (open_device): Use flag O_BINARY if it's defined.
27959 (find_root_device): Add dummy code for mingw.
27961 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
27962 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
27963 (get_scsi_disk_name): Return 0 for mingw.
27965 * util/hostfs.c: #include <grub/util/misc.h>.
27966 (grub_hostfs_open): Use "rb" flag to open file, use
27967 grub_util_get_disk_size to get disk size for mingw.
27969 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
27970 (asprintf): New function if HAVE_ASPRINTF is not set.
27971 (sync): New function for mingw.
27973 (grub_util_get_disk_size): Likewise.
27975 2008-08-28 Pavel Roskin <proski@gnu.org>
27977 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
27980 2008-08-28 Robert Millan <rmh@aybabtu.com>
27982 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
27984 2008-08-28 Robert Millan <rmh@aybabtu.com>
27986 Change find_grub_drive() syntax so it doesn't prevent it from
27987 detecting NULL names as errors.
27989 * util/biosdisk.c (find_grub_drive): Move free slot search code
27991 (find_free_slot): ... to here.
27992 (read_device_map): Use find_free_slot() to search for free slots.
27994 2008-08-27 Marco Gerards <marco@gnu.org>
27996 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
27997 (scsi_mod_SOURCES): New variable.
27998 (scsi_mod_CFLAGS): Likewise
27999 (scsi_mod_LDFLAGS): Likewise.
28001 * disk/scsi.c: New file.
28003 * include/grub/scsi.h: Likewise.
28005 * include/grub/scsicmd.h: Likewise.
28007 * disk/ata.c: Include <grub/scsi.h>.
28008 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
28010 (grub_ata_iterate): Skip ATAPI devices.
28011 (grub_ata_open): Only handle ATAPI devices.
28012 (struct grub_atapi_read): Removed.
28013 (grub_atapi_readsector): Likewise.
28014 (grub_ata_read): No longer handle ATAPI devices.
28015 (grub_ata_write): Likewise.
28016 (grub_atapi_iterate): New function.
28017 (grub_atapi_read): Likewise.
28018 (grub_atapi_write): Likewise.
28019 (grub_atapi_open): Likewise.
28020 (grub_atapi_close): Likewise.
28021 (grub_atapi_dev): New variable.
28022 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
28023 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
28025 * include/grub/disk.h (enum grub_disk_dev_id): Add
28026 `GRUB_DISK_DEVICE_SCSI_ID'.
28028 2008-08-26 Robert Millan <rmh@aybabtu.com>
28030 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
28031 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
28034 2008-08-23 Bean <bean123ch@gmail.com>
28036 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
28037 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
28038 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
28039 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
28041 (raid5rec_mod_SOURCES): New macro.
28042 (raid5rec_mod_CFLAGS): Likewise.
28043 (raid5rec_mod_LDFLAGS): Likewise.
28044 (raid6rec_mod_SOURCES): Likewise.
28045 (raid6rec_mod_CFLAGS): Likewise.
28046 (raid6rec_mod_LDFLAGS): Likewise.
28047 (mdraid_mod_SOURCES): Likewise.
28048 (mdraid_mod_CFLAGS): Likewise.
28049 (mdraid_mod_LDFLAGS): Likewise.
28050 (dm_nv_mod_SOURCES): Likewise.
28051 (dm_nv_mod_CFLAGS): Likewise.
28052 (dm_nv_mod_LDFLAGS): Likewise.
28054 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
28055 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
28056 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
28058 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
28059 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
28061 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28063 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28065 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28067 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28069 * disk/raid5_recover.c: New file.
28071 * disk/raid6_recover.c: Likewise.
28073 * disk/mdraid_linux.c: Likewise.
28075 * disk/dmraid_nvidia.c: Likewise.
28077 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
28080 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
28081 calculate the size of raid device.
28082 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
28083 different layout of raid5.
28084 (grub_raid_scan_device): Remove code specific to mdraid.
28085 (grub_raid_list): New variable.
28086 (free_array): New function.
28087 (grub_raid_register): Likewise.
28088 (grub_raid_unregister): Likewise.
28089 (grub_raid_rescan): Likewise.
28090 (GRUB_MOD_INIT): Don't iterate device here.
28091 (GRUB_MOD_FINI): Use free_array to release resource.
28093 * include/grub/raid.h: Remove macro and structure specific to mdraid.
28094 (grub_raid5_recover_func_t): New function variable type.
28095 (grub_raid6_recover_func_t): Likewise.
28096 (grub_raid5_recover_func): New variable.
28097 (grub_raid6_recover_func): Likewise.
28098 (grub_raid_register): New function.
28099 (grub_raid_unregister): Likewise.
28100 (grub_raid_rescan): Likewise.
28101 (grub_raid_block_xor): Likewise.
28103 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
28104 (CMD_CRC): New macro.
28106 (read_file): Handle device as well as file.
28107 (cmd_crc): New function.
28108 (fstest): Handle multiple disks.
28109 (options): Remove part, raw and long, add root and diskcount.
28110 (usage): Add crc, remove -p, -r, -l, add -r and -c.
28111 (main): Find the first non option entry and ignore subsequent options,
28112 add handling for the new options, support multiple disks.
28114 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
28116 2008-08-23 Bean <bean123ch@gmail.com>
28118 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
28120 * genfslist.sh: Ignore kernel.mod.
28122 * genpartmaplist.sh: Likewise.
28124 2008-08-23 Robert Millan <rmh@aybabtu.com>
28126 * util/getroot.c (find_root_device): Skip anything that starts with
28127 a dot, not just directories. This avoids things like /dev/.tmp.md0.
28129 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
28131 * util/update-grub.in (GRUB_GFXMODE): Export variable.
28132 * util/grub.d/00_header.in: Allow the administrator to change default
28133 gfxmode via ${GRUB_GFXMODE}.
28135 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
28137 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
28139 2008-08-21 Robert Millan <rmh@aybabtu.com>
28141 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
28143 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
28144 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
28146 2008-08-20 Carles Pina i Estany <carles@pina.cat>
28148 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
28149 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
28151 2008-08-19 Robert Millan <rmh@aybabtu.com>
28153 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
28154 (struct grub_virtual_screen): Remove `cursor_color'.
28155 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
28157 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
28159 2008-08-18 Robert Millan <rmh@aybabtu.com>
28161 Unify (identical) linux_normal.c files.
28162 * loader/i386/efi/linux_normal.c: Move from here ...
28163 * loader/linux_normal.c: ... to here. Update all users.
28164 * loader/i386/pc/linux_normal.c: Delete. Update all users.
28165 * loader/i386/ieee1275/linux_normal.c: Likewise.
28167 2008-08-18 Robert Millan <rmh@aybabtu.com>
28169 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
28170 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
28171 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
28172 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
28173 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
28175 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
28176 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
28177 (GRUB_LINUX_CL_END_OFFSET): ... to here.
28178 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
28179 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
28180 (GRUB_EFI_CL_END_OFFSET): Rename to ...
28181 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
28182 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
28183 Initialize `params->video_cursor_x' and `params->video_cursor_y'
28184 portably using grub_getxy().
28185 Replace `-EFI' with `-bzImage' in boot message.
28187 2008-08-17 Robert Millan <rmh@aybabtu.com>
28189 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
28191 2008-08-17 Robert Millan <rmh@aybabtu.com>
28193 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
28195 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
28196 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
28197 (grub_machine_mmap_iterate): New function declaration.
28198 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
28200 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
28203 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
28204 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
28205 Move e820 parsing from here ...
28206 * kern/i386/pc/mmap.c: New file.
28207 (grub_machine_mmap_iterate): ... to here.
28209 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
28210 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
28211 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
28212 (grub_available_iterate): Redeclare to return `void', and redeclare
28213 its hook to use grub_uint64_t as addr and size parameters, and rename
28215 (grub_machine_mmap_iterate): ... this. Update all users.
28217 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
28218 to make it more readable. Rename to ...
28219 (grub_machine_mmap_iterate): ... this.
28221 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
28222 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
28223 (grub_multiboot): Allocate an extra region after the payload, and fill
28224 it with a Multiboot memory map. Adjust a.out loader to calculate size
28225 with the extra space.
28226 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
28227 with the extra space.
28229 2008-08-17 Carles Pina i Estany <carles@pina.cat>
28231 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
28233 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
28235 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
28236 mdate-sh to the list `find' searches for.
28237 * DISTLIST: Regenerated.
28239 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
28241 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
28242 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
28243 genmoddep.awk, gensymlist.sh.in.
28244 (DISTDIRS): Add bus, docs, hook, lib.
28245 * DISTLIST: Regenerated.
28246 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
28248 2008-08-16 Robert Millan <rmh@aybabtu.com>
28250 * disk/raid.c (grub_raid_init): Handle/report errors set by
28251 grub_device_iterate().
28252 * disk/lvm.c (grub_lvm_init): Likewise.
28254 2008-08-15 Bean <bean123ch@gmail.com>
28256 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28258 (datetime_mod_SOURCES): New macro.
28259 (datetime_mod_CFLAGS): Likewise.
28260 (datetime_mod_LDFLAGS): Likewise.
28261 (date_mod_SOURCES): Likewise.
28262 (date_mod_CFLAGS): Likewise.
28263 (date_mod_LDFLAGS): Likewise.
28264 (datehook_mod_SOURCES): Likewise.
28265 (datehook_mod_CFLAGS): Likewise.
28266 (datehook_mod_LDFLAGS): Likewise.
28268 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28270 (datetime_mod_SOURCES): New macro.
28271 (datetime_mod_CFLAGS): Likewise.
28272 (datetime_mod_LDFLAGS): Likewise.
28273 (date_mod_SOURCES): Likewise.
28274 (date_mod_CFLAGS): Likewise.
28275 (date_mod_LDFLAGS): Likewise.
28276 (datehook_mod_SOURCES): Likewise.
28277 (datehook_mod_CFLAGS): Likewise.
28278 (datehook_mod_LDFLAGS): Likewise.
28280 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28282 (datetime_mod_SOURCES): New macro.
28283 (datetime_mod_CFLAGS): Likewise.
28284 (datetime_mod_LDFLAGS): Likewise.
28285 (date_mod_SOURCES): Likewise.
28286 (date_mod_CFLAGS): Likewise.
28287 (date_mod_LDFLAGS): Likewise.
28288 (datehook_mod_SOURCES): Likewise.
28289 (datehook_mod_CFLAGS): Likewise.
28290 (datehook_mod_LDFLAGS): Likewise.
28292 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28294 (datetime_mod_SOURCES): New macro.
28295 (datetime_mod_CFLAGS): Likewise.
28296 (datetime_mod_LDFLAGS): Likewise.
28297 (date_mod_SOURCES): Likewise.
28298 (date_mod_CFLAGS): Likewise.
28299 (date_mod_LDFLAGS): Likewise.
28300 (datehook_mod_SOURCES): Likewise.
28301 (datehook_mod_CFLAGS): Likewise.
28302 (datehook_mod_LDFLAGS): Likewise.
28304 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28306 (datetime_mod_SOURCES): New macro.
28307 (datetime_mod_CFLAGS): Likewise.
28308 (datetime_mod_LDFLAGS): Likewise.
28309 (date_mod_SOURCES): Likewise.
28310 (date_mod_CFLAGS): Likewise.
28311 (date_mod_LDFLAGS): Likewise.
28312 (datehook_mod_SOURCES): Likewise.
28313 (datehook_mod_CFLAGS): Likewise.
28314 (datehook_mod_LDFLAGS): Likewise.
28316 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
28318 * commands/date.c: New file.
28320 * hook/datehook.c: Likewise.
28322 * include/grub/lib/datetime.h: Likewise.
28324 * include/grub/i386/cmos.h: Likewise.
28326 * lib/datetime.c: Likewise.
28328 * lib/i386/datetime.c: Likewise.
28330 * lib/efi/datetime.c: Likewise.
28332 2008-08-14 Robert Millan <rmh@aybabtu.com>
28334 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
28335 (grub_mkelfimage_SOURCES): New variable.
28336 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
28338 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
28339 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
28340 * conf/powerpc-ieee1275.rmk: Likewise.
28341 * conf/i386-ieee1275.rmk: Likewise.
28343 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
28344 * kern/i386/coreboot/init.c: Likewise.
28346 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
28347 with `<grub/cpu/kernel.h>'.
28348 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
28350 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
28351 * kern/i386/coreboot/startup.S: Likewise.
28353 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
28354 (GRUB_MOD_GAP): Remove.
28355 * include/grub/powerpc/kernel.h: New file.
28356 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
28357 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
28358 * include/grub/i386/kernel.h: New file.
28359 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
28360 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
28361 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
28363 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
28365 Use --directory when invoking grub_mkimage.
28367 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
28368 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
28369 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
28370 and GRUB_KERNEL_CPU_PREFIX.
28372 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
28374 * include/grub/err.h (grub_err_printf): New function prototype.
28375 * util/misc.c (grub_err_printf): New function.
28376 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
28378 * kern/err.c (grub_print_error): Use grub_err_printf.
28380 2008-08-13 Robert Millan <rmh@aybabtu.com>
28382 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
28384 2008-08-13 Robert Millan <rmh@aybabtu.com>
28386 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
28389 2008-08-12 Robert Millan <rmh@aybabtu.com>
28391 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
28392 of the relocation code from here ...
28393 (grub_multiboot): ... to here.
28394 (forward_relocator, backward_relocator): Move from here ...
28395 * kern/i386/loader.S (grub_multiboot_forward_relocator)
28396 (grub_multiboot_backward_relocator): ... to here.
28397 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
28398 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
28399 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
28400 (grub_multiboot_forward_relocator_end)
28401 (grub_multiboot_backward_relocator)
28402 (grub_multiboot_backward_relocator_end): New variables.
28404 2008-08-12 Bean <bean123ch@gmail.com>
28406 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
28408 2008-08-11 Robert Millan <rmh@aybabtu.com>
28410 * kern/i386/linuxbios/startup.S: Move from here ...
28411 * kern/i386/coreboot/startup.S: ... to here.
28413 * kern/i386/linuxbios/init.c: Move from here ...
28414 * kern/i386/coreboot/init.c: ... to here.
28416 * kern/i386/linuxbios/table.c: Move from here ...
28417 * kern/i386/coreboot/mmap.c: ... to here.
28419 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
28421 2008-08-11 Robert Millan <rmh@aybabtu.com>
28423 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
28424 errors. Leave it to the upper layer to handle them.
28426 2008-08-09 Christian Franke <franke@computer.org>
28428 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
28429 * conf/common.rmk: Install `grub-pe2elf' only if requested.
28430 Install `grub.d/10_windows' only on Cygwin.
28431 * configure.ac: Add subst of `target_os'.
28432 Check `target_os' also before setting TARGET_OBJ2ELF.
28433 Add `--enable-grub-pe2elf'.
28435 2008-08-08 Robert Millan <rmh@aybabtu.com>
28437 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
28438 (grub_last_time): Change type to grub_uint64_t.
28439 (grub_disk_open): Migrate code from to using grub_get_time_ms().
28440 (grub_disk_close): Likewise.
28442 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
28443 (run_menu): Migrate code from to using grub_get_time_ms().
28445 * util/misc.c (grub_get_time_ms): New function.
28447 2008-08-08 Marco Gerards <marco@gnu.org>
28449 * disk/ata.c (grub_ata_regget): Change return type to
28451 (grub_ata_regget2): Likewise.
28452 (grub_ata_wait_status): New function.
28453 (grub_ata_wait_busy): Removed function, updated all users to use
28454 `grub_ata_wait_status'.
28455 (grub_ata_wait_drq): Likewise.
28456 (grub_ata_cmd): New function.
28457 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
28459 (grub_ata_pio_write): Add error handling.
28460 (grub_atapi_identify): Likewise.
28461 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
28463 (grub_ata_identify): Use `grub_ata_cmd' and improve error
28464 handling. Actually use the detected registers. Reorder the
28465 detection logic such that it is easier to read.
28466 (grub_ata_pciinit): Do not assign the same ID to each controller.
28467 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
28469 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
28471 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
28473 2008-08-08 Marco Gerards <marco@gnu.org>
28477 2008-08-07 Bean <bean123ch@gmail.com>
28479 * include/grub/x86_64/pci.h: New file.
28481 2008-08-07 Christian Franke <franke@computer.org>
28483 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
28484 (TIMER2_GATE): Likewise.
28485 (grub_pit_wait): Add enable/disable of the timer2 gate
28486 bit of port 0x61. This fixes a possible infinite loop.
28488 2008-08-07 Bean <bean123ch@gmail.com>
28490 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
28491 kern/i386/tsc.c and kern/i386/pit.c.
28493 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
28496 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
28499 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
28501 2008-08-07 Bean <bean123ch@gmail.com>
28503 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
28505 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
28507 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
28508 multiple inclusion. Add #include <grub/types.h>.
28510 2008-08-06 Christian Franke <franke@computer.org>
28512 * conf/common.rmk: Build and install `10_windows'.
28513 * util/grub.d/10_windows.in: New script.
28515 2008-08-06 Pavel Roskin <proski@gnu.org>
28517 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
28519 2008-08-06 Robert Millan <rmh@aybabtu.com>
28521 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
28522 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
28524 2008-08-06 Bean <bean123ch@gmail.com>
28526 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
28527 (grub_pxefs_fs_int): Remove dummy definition.
28528 (grub_pxefs_open): Use data->block_size to store the current block
28530 (grub_pxefs_read): Use block size stored in data->block_size. As the
28531 value of grub_pxe_blksize can be changed after the file is opened.
28533 2008-08-06 Bean <bean123ch@gmail.com>
28535 * fs/i386/pc/pxe.c (curr_file): new variable.
28536 (grub_pxefs_open): Simply the handling of pxe file system. Don't
28537 require the dummy internal file system anymore.
28538 (grub_pxefs_read): Removed.
28539 (grub_pxefs_close): Likewise.
28540 (grub_pxefs_fs_int): Likewise.
28541 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
28542 connection when we switch file.
28543 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
28545 2008-08-06 Robert Millan <rmh@aybabtu.com>
28547 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
28549 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
28550 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
28552 * kern/i386/halt.c: New file.
28553 * kern/i386/reboot.c: Likewise.
28554 * include/grub/i386/reboot.h: Likewise.
28555 * include/grub/i386/halt.h: Likewise.
28557 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
28558 Include `<grub/cpu/halt.h>'.
28559 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
28560 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
28562 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
28563 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
28564 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
28565 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
28566 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
28567 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
28569 * include/grub/i386/at_keyboard.h: ... to here.
28571 2008-08-05 Robert Millan <rmh@aybabtu.com>
28573 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
28574 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
28575 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
28576 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
28577 `kern/generic/millisleep.c'.
28579 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
28580 instead of grub_get_rtc().
28581 (grub_tsc_init): Initialize `tsc_boot_time'.
28583 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
28584 (grub_machine_init): Use grub_tsc_init() rather than
28585 installing an RTC-based handler via grub_install_get_time_ms().
28587 * kern/i386/pit.c: New file.
28588 * include/grub/i386/pit.h: Likewise.
28590 2008-08-05 Bean <bean123ch@gmail.com>
28592 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
28594 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
28595 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
28596 (pxe_mod_SOURCES): New macro.
28597 (pxe_mod_CFLAGS): Likewise.
28598 (pxe_mod_LDFLAGS): Likewise.
28599 (pxecmd_mod_SOURCES): Likewise.
28600 (pxecmd_mod_CFLAGS): Likewise.
28601 (pxecmd_mod_LDFLAGS): Likewise.
28603 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
28604 (grub_pxe_call): Likewise.
28606 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
28608 * commands/i386/pc/pxecmd.c: New file.
28610 * fs/i386/pc/pxe.c: Likewise.
28612 * include/grub/i386/pc/pxe.h: Likewise.
28614 2008-08-05 Bean <bean123ch@gmail.com>
28616 * util/console.c (grub_console_cur_color): New variable.
28617 (grub_console_standard_color): Likewise.
28618 (grub_console_normal_color): Likewise.
28619 (grub_console_highlight_color): Likewise.
28620 (color_map): Likewise.
28621 (use_color): Likewise.
28622 (NUM_COLORS): New macro.
28623 (grub_ncurses_setcolorstate): Handle color properly.
28624 (grub_ncurses_setcolor): Don't change color here, just remember the
28625 settings, color will be set in grub_ncurses_setcolorstate.
28626 (grub_ncurses_getcolor): New function.
28627 (grub_ncurses_init): Initialize color pairs.
28628 (grub_ncurses_term): New member grub_ncurses_getcolor.
28630 2008-08-05 Colin D Bennett <colin@gibibit.com>
28632 High resolution timer support. Implemented for x86 CPUs using TSC.
28633 Extracted generic grub_millisleep() so it's linked in only as needed.
28634 This requires a Pentium compatible CPU; if the RDTSC instruction is
28635 not supported, then it falls back on the generic grub_get_time_ms()
28636 implementation that uses the machine's RTC.
28638 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
28639 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
28640 `kern/generic/millisleep.c'.
28642 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
28643 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
28645 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
28646 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
28648 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28650 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
28651 `kern/generic/millisleep.c'.
28653 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28655 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
28657 * kern/generic/rtc_get_time_ms.c: New file.
28659 * kern/generic/millisleep.c: New file.
28661 * kern/misc.c: Don't include
28662 <kern/time.h> anymore.
28663 (grub_millisleep_generic): Removed.
28665 * commands/sleep.c (grub_interruptible_millisleep): Uses
28666 grub_get_time_ms() instead of grub_get_rtc().
28668 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
28670 (grub_cpu_is_cpuid_supported): New inline function.
28671 (grub_cpu_is_tsc_supported): New inline function.
28672 (grub_tsc_init): New function prototype.
28673 (grub_tsc_get_time_ms): New function prototype.
28675 * kern/i386/tsc.c (grub_get_time_ms): New file.
28677 * include/grub/time.h: Include <grub/types.h.
28678 (grub_millisleep_generic): Removed.
28679 (grub_get_time_ms): New prototype.
28680 (grub_install_get_time_ms): New prototype.
28681 (grub_rtc_get_time_ms): New prototype.
28683 * kern/time.c (grub_get_time_ms): New function.
28684 (grub_install_get_time_ms): New function.
28686 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
28687 <grub/time.h> anymore.
28688 (grub_millisleep): Removed.
28689 (grub_machine_init): Call grub_tsc_init.
28691 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
28692 get_time_ms() implementation.
28694 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
28695 (ieee1275_get_time_ms): New function.
28696 (grub_machine_init): Install get_time_ms() implementation.
28698 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
28699 (grub_machine_init): Call grub_tsc_init().
28700 (grub_millisleep): Removed.
28702 * kern/ieee1275/init.c (grub_millisleep): Removed.
28703 (grub_machine_init): Install ieee1275_get_time_ms()
28705 (ieee1275_get_time_ms): New function.
28706 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
28709 2008-08-05 Marco Gerards <marco@gnu.org>
28711 * disk/ata.c: Include <grub/pci.h>.
28712 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
28713 (grub_ata_initialize): Rewritten.
28714 (grub_ata_device_initialize): New function.
28716 2008-08-04 Pavel Roskin <proski@gnu.org>
28718 * kern/main.c: Include grub/mm.h.
28720 2008-08-04 Robert Millan <rmh@aybabtu.com>
28722 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
28723 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
28724 corruption problem).
28726 2008-08-04 Robert Millan <rmh@aybabtu.com>
28728 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
28729 warnings introduced in my last commit.
28731 2008-08-03 Robert Millan <rmh@aybabtu.com>
28733 Make PCI available on all i386 architectures.
28735 * include/grub/i386/pc/pci.h: Move from here ...
28736 * include/grub/i386/pci.h: ... to here.
28738 * include/grub/i386/pc/pci.h: Remove.
28739 * include/grub/i386/efi/pci.h: Remove.
28740 * include/grub/x86_64/efi/pci.h: Remove.
28742 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
28743 `<grub/cpu/pci.h>'.
28745 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
28746 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
28747 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
28749 * conf/i386-ieee1275.rmk: Likewise.
28751 2008-08-03 Robert Millan <rmh@aybabtu.com>
28753 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
28754 (grub_console_setcursor): Make it possible to set cursor off.
28756 2008-08-03 Robert Millan <rmh@aybabtu.com>
28758 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
28759 of modules instead of assuming which platform provides what.
28760 * util/update-grub.in: Likewise.
28762 2008-08-03 Robert Millan <rmh@aybabtu.com>
28764 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
28765 instead of `grub_install_dos_part' to determine whether a drive needs
28766 to be prepended to prefix (`grub_install_dos_part' is not reliable,
28767 because it can be overridden when loading GRUB via Multiboot).
28769 2008-08-02 Robert Millan <rmh@aybabtu.com>
28771 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
28773 2008-08-02 Robert Millan <rmh@aybabtu.com>
28775 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
28776 of informational grub_dprintf() calls.
28778 2008-08-02 Robert Millan <rmh@aybabtu.com>
28780 * disk/memdisk.c (memdisk_size): Don't initialize.
28781 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
28783 * include/grub/i386/pc/kernel.h
28784 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
28785 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
28786 (grub_memdisk_image_size, grub_arch_memdisk_addr)
28787 (grub_arch_memdisk_size): Remove.
28789 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
28790 field (was only used to transfer a constant). Add `type' field to
28791 support multiple module types.
28792 (grub_module_iterate): New function.
28794 * kern/device.c (grub_device_open): Do not hide error messages
28795 when grub_disk_open() fails. Use grub_print_error() instead.
28797 * kern/i386/pc/init.c (grub_arch_modules_addr)
28798 (grub_arch_memdisk_size): Remove functions.
28799 (grub_arch_modules_addr): Return the module address in high memory
28800 (now that it isn't copied anymore).
28802 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
28803 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
28804 decompression routine (grub_total_module_size already includes that
28805 now). Don't copy modules back to low memory.
28807 * kern/main.c: Include `<grub/mm.h>'.
28808 (grub_load_modules): Split out (and use) ...
28809 (grub_module_iterate): ... this function, which iterates through
28810 module objects and runs a hook.
28811 Comment out grub_mm_init_region() call, as it would cause non-ELF
28812 modules to be overwritten.
28814 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
28815 the memdisk image in its own region, make it part of the module list.
28816 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
28817 (main): Parse --memdisk|-m option, and pass user-provided path as
28818 parameter to generate_image().
28819 (add_segments): Pass `memdisk_path' down to load_modules().
28820 (load_modules): Embed memdisk image in module section when requested.
28821 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
28822 `header.type' instead of `header.offset'.
28824 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
28825 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
28826 (memdisk_mod_LDFLAGS): New variables.
28827 * conf/i386-coreboot.rmk: Likewise.
28828 * conf/i386-ieee1275.rmk: Likewise.
28830 2008-08-02 Robert Millan <rmh@aybabtu.com>
28832 * loader/i386/pc/multiboot.c (playground, forward_relocator)
28833 (backward_relocator): New variables. Used to allocate and relocate
28834 the payload, respectively.
28835 (grub_multiboot_load_elf32): Load into heap instead of requested
28836 address, install the appropriate relocator code in each bound of
28837 the payload, and set the entry point such that
28838 grub_multiboot_real_boot() will jump to one of them.
28840 * kern/i386/loader.S (grub_multiboot_payload_size)
28841 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
28842 (grub_multiboot_payload_entry_offset): New variables.
28843 (grub_multiboot_real_boot): Set cpu context to what the relocator
28844 expects, and jump to the relocator instead of the payload.
28846 * include/grub/i386/loader.h (grub_multiboot_payload_size)
28847 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
28848 (grub_multiboot_payload_entry_offset): Export.
28850 2008-08-01 Bean <bean123ch@gmail.com>
28852 * normal/menu_entry.c (editor_getline): Don't return the original
28853 string as result, as it will be released by lexer once it has done
28856 2008-08-01 Robert Millan <rmh@aybabtu.com>
28858 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
28859 within menuentries, not before them.
28860 util/grub.d/10_hurd.in: Likewise.
28862 2008-08-01 Bean <bean123ch@gmail.com>
28864 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
28865 (bufio_mod_SOURCES): New macro.
28866 (bufio_mod_CFLAGS): Likewise.
28867 (bufio_mod_LDFLAGS): Likewise.
28869 * include/grub/bufio.h: New file.
28871 * io/bufio.c: Likewise.
28873 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
28874 (grub_video_reader_png): Use grub_buffile_open to open file.
28876 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
28877 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
28879 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
28880 (grub_video_reader_tga): Use grub_buffile_open to open file.
28882 * font/manager.c: Include <grub/bufio.h>.
28883 (add_font): Use grub_buffile_open to open file.
28885 2008-07-31 Robert Millan <rmh@aybabtu.com>
28887 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
28888 ELF segments, use a macro for arbitrarily accessing any of them instead
28889 of preparing a pointer that allows access to one at a time.
28890 (grub_multiboot_load_elf64): Likewise.
28892 2008-07-31 Bean <bean123ch@gmail.com>
28894 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
28895 GRUB_KERNEL_MACHINE_DATA_END.
28897 2008-07-30 Robert Millan <rmh@aybabtu.com>
28899 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
28900 Increase from 0x50 to 0x60.
28901 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
28902 use UUIDs to identify the root drive for them. If that's not
28904 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
28905 check, for cross-disk installs.
28907 2008-07-30 Robert Millan <rmh@aybabtu.com>
28909 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
28910 is non-empty, use it to set the `prefix' environment variable instead
28911 of the usual approach.
28912 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
28913 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
28914 environment variable instead of dummy make_install_device().
28916 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
28917 (start): Insert a data section, with `grub_prefix' variable.
28918 * kern/i386/linuxbios/startup.S: Likewise.
28920 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
28921 New variable reference.
28922 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
28923 New macro. Defines offset of `grub_prefix' within startup.S (relative
28925 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
28926 section within startup.S (relative to `start').
28927 * include/grub/i386/coreboot/kernel.h: Likewise.
28929 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
28930 Overwrite grub_prefix with its contents, at the beginning of the
28932 (main): Understand -p|--prefix.
28934 2008-07-30 Robert Millan <rmh@aybabtu.com>
28936 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
28938 2008-07-30 Robert Millan <rmh@aybabtu.com>
28940 * term/i386/pc/vga_text.c (grub_console_cls): Use
28941 grub_console_gotoxy() to go back to beginning of the screen.
28942 Found by Patrick Georgi <patrick.georgi@coresystems.de>
28944 2008-07-29 Christian Franke <franke@computer.org>
28946 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
28947 Add conversion of emulated mount points on Cygwin.
28949 2008-07-29 Christian Franke <franke@computer.org>
28951 * util/update-grub.in: Add a check for admin
28953 Remove old `grub.cfg.new' before creation.
28954 Add `-f' to `mv' to handle the different filesystem
28955 semantics of Windows.
28957 2008-07-29 Bean <bean123ch@gmail.com>
28959 * normal/main.c (get_line): Fix buffer overflow bug.
28961 2008-07-28 Robert Millan <rmh@aybabtu.com>
28963 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
28964 (struct grub_apple_header): New struct. Describes the layout of
28965 the partmap header.
28966 (apple_partition_map_iterate): Check the header magic as well as the
28967 partition magic (which was already being checked).
28969 2008-07-28 Pavel Roskin <proski@gnu.org>
28971 * genmk.rb: Add a warning to the beginning of the output that
28972 it's a generated file and should not be edited.
28974 2008-07-28 Robert Millan <rmh@aybabtu.com>
28976 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
28977 with the same number are found, just use issue a warning with
28978 grub_dprintf(), as this error has been reported to be non-fatal.
28980 2008-07-27 Robert Millan <rmh@aybabtu.com>
28982 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
28985 2008-07-27 Bean <bean123ch@gmail.com>
28987 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
28988 (grub_fat_find_dir): Ignore case when comparing filename.
28990 2008-07-27 Bean <bean123ch@gmail.com>
28992 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
28993 smallino, as it's more descriptive, and i8count can be confused with
28994 the other field count.
28995 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
28998 2008-07-27 Bean <bean123ch@gmail.com>
29000 * commands/crc.c: New file.
29002 * lib/crc.c: Likewise.
29004 * include/grub/lib/crc.h: Likewise.
29006 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
29008 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
29009 (hexdump): Move this function to ...
29011 * lib/hexdump.c: ... here.
29013 * include/grub/hexdump.h: Renamed to ...
29015 * include/grub/lib/hexdump.h: ... this.
29017 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
29019 * util/grub-editenv.c: Likewise.
29021 * include/envblk.h: Renamed to ...
29023 * include/lib/envblk.h: ... this.
29025 * util/envblk.c: Renamed to ...
29027 * lib/envblk.c: ... this.
29029 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
29031 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
29032 (pkglib_MODULES): Add crc.mod.
29033 (hexdump_mod_SOURCES): Add lib/hexdump.c.
29034 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
29035 (crc_mod_SOURCES): New macro.
29036 (crc_mod_CFLAGS): Likewise.
29037 (crc_mod_LDFLAGS): Likewise.
29039 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
29041 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29043 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29045 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29047 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29049 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
29051 * commands/help.c: Include <grub/term.h>.
29052 (TERM_WIDTH): Removed. Updated all users.
29054 2008-07-27 Pavel Roskin <proski@gnu.org>
29056 * util/getroot.c (find_root_device): Rephrase a comment to avoid
29057 spurious warnings about a comment within a comment.
29059 2008-07-25 Robert Millan <rmh@aybabtu.com>
29061 * util/getroot.c (find_root_device): Skip devices that match
29062 /dev/dm-[0-9]. This lets the real device be found for any type of
29063 abstraction (LVM, EVMS, RAID..).
29064 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
29065 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
29066 device is found first, find_root_device() will now skip it.
29068 2008-07-24 Pavel Roskin <proski@gnu.org>
29070 * include/grub/types.h: Use __builtin_bswap32() and
29071 __builtin_bswap64() with gcc 4.3 and newer.
29073 2008-07-24 Christian Franke <franke@computer.org>
29075 * util/i386/pc/grub-install.in: If `--debug' is specified,
29076 pass `--verbose' to grub-setup.
29077 Abort script if make_system_path_relative_to_its_root() fails.
29079 2008-07-24 Bean <bean123ch@gmail.com>
29081 * configure.ac: Fixed a bug caused by the previous cygwin patch,
29082 variable `target_platform' should be `platform'.
29084 2008-07-24 Bean <bean123ch@gmail.com>
29086 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
29087 (grub_png_init_fixed_block): New function.
29088 (grub_png_decode_image_data): Handle fixed huffman code compression.
29090 2008-07-24 Bean <bean123ch@gmail.com>
29092 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
29093 (grub_pe2elf_SOURCES): New macro.
29094 (CLEANFILES): Add grub-pe2elf.
29096 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
29097 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
29098 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
29099 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
29100 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
29101 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
29102 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
29103 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
29104 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
29105 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
29106 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
29107 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
29108 (GRUB_PE32_DT_FUNCTION): Likewise.
29109 (GRUB_PE32_REL_I386_DIR32): Likewise.
29110 (GRUB_PE32_REL_I386_REL32): Likewise.
29111 (grub_pe32_symbol): New structure.
29112 (grub_pe32_reloc): Likewise.
29114 * util/grub-pe2elf.c: New file.
29116 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
29117 start symbol in non pc platform.
29119 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
29121 The following patches are from Christian Franke.
29123 * include/grub/dl.h: Remove .previous, gas supports this only
29126 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
29127 Remove .type, gas supports this only for ELF format.
29129 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
29130 nullbytes in symbol table. This fixes an infinite loop if table is
29133 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
29134 TARGET_IMG_LDFLAGS and EXEEXT.
29136 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
29137 TARGET_IMG_LDFLAGS_AC.
29138 (grub_CHECK_STACK_ARG_PROBE): New function.
29140 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
29142 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
29144 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
29145 to set TARGET_IMG_LD* accordingly.
29146 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
29147 Add call to grub_CHECK_STACK_ARG_PROBE.
29148 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
29150 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
29152 * genmk.rb: Add EXEEXT to CLEANFILES.
29154 2008-07-23 Robert Millan <rmh@aybabtu.com>
29156 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
29157 define the codes for arrows and lines used for the menu).
29158 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
29161 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
29162 fonts, because the latter are too slow.
29164 2008-07-21 Bean <bean123ch@gmail.com>
29166 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
29167 a20. Run keyboard test last, as it will cause macbook to halt.
29169 2008-07-18 Pavel Roskin <proski@gnu.org>
29171 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
29172 load foreign architecture modules correctly anyway. Keep
29173 support for loading host architecture modules, whether we
29174 compile them or not.
29176 2008-07-17 Pavel Roskin <proski@gnu.org>
29178 * configure.ac: Use -m32 or -m64 regardless of whether we had to
29179 change target_cpu. The compiler default can mismatch target_cpu
29182 * disk/efi/efidisk.c: Fix format warnings on x86_64.
29183 * kern/efi/efi.c: Likewise.
29185 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
29186 target compiler is functional.
29187 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
29190 * configure.ac: Default to efi platform for x86_64-apple. Allow
29191 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
29192 adjustments from the rest, only do them if target is not
29193 explicitly given. Merge other adjustments with the final sanity
29194 check. Remove an extraneous check for supported CPU. Be
29195 specific which CPU and which platform is not supported.
29197 * configure.ac: Default to pc platform for x86_64.
29199 2008-07-17 Robert Millan <rmh@aybabtu.com>
29201 Partial LinuxBIOS -> Coreboot rename.
29203 * conf/i386-linuxbios.rmk: Renamed to ...
29204 * conf/i386-coreboot.rmk: ... this.
29205 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
29206 * configure.ac: Accept "coreboot" as input platform (but maintain
29207 compatibility with "linuxbios").
29208 * include/grub/i386/linuxbios: Renamed to ...
29209 * include/grub/i386/coreboot: ... this.
29211 2008-07-17 Bean <bean123ch@gmail.com>
29213 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
29214 (appleldr_mod_SOURCE): New variable.
29215 (appleldr_mod_CFLAGS): Likewise.
29216 (appleldr_mod_LDFLAGS): Likewise.
29217 (pci_mod_SOURCES): Likewise.
29218 (pci_mod_CFLAGS): Likewise.
29219 (pci_mod_LDFLAGS): Likewise.
29220 (lspci_mod_SOURCES): Likewise.
29221 (lspci_mod_CFLAGS): Likewise.
29222 (lspci_mod_LDFLAGS): Likewise.
29224 * conf/x86_64-efi.rmk: New file.
29226 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
29228 (grub_efidisk_write): Likewise.
29230 * include/efi/api.h (efi_call_0): New macro.
29231 (efi_call_1): Likewise.
29232 (efi_call_2): Likewise.
29233 (efi_call_3): Likewise.
29234 (efi_call_4): Likewise.
29235 (efi_call_5): Likewise.
29236 (efi_call_6): Likewise.
29238 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
29239 grub_rescue_cmd_chainloader.
29241 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
29242 (grub_pe32_optional_header): Change some fields based on i386 or
29244 (GRUB_PE32_PE32_MAGIC): Likewise.
29246 * include/grub/efi/uga_draw.h: New file.
29248 * include/grub/elf.h (STN_ABS): New constant.
29249 (R_X86_64_NONE): Relocation constant for x86_64.
29250 (R_X86_64_64): Likewise.
29251 (R_X86_64_PC32): Likewise.
29252 (R_X86_64_GOT32): Likewise.
29253 (R_X86_64_PLT32): Likewise.
29254 (R_X86_64_COPY): Likewise.
29255 (R_X86_64_GLOB_DAT): Likewise.
29256 (R_X86_64_JUMP_SLOT): Likewise.
29257 (R_X86_64_RELATIVE): Likewise.
29258 (R_X86_64_GOTPCREL): Likewise.
29259 (R_X86_64_32): Likewise.
29260 (R_X86_64_32S): Likewise.
29261 (R_X86_64_16): Likewise.
29262 (R_X86_64_PC16): Likewise.
29263 (R_X86_64_8): Likewise.
29264 (R_X86_64_PC8): Likewise.
29266 * include/grub/i386/efi/pci.h: New file.
29268 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
29269 Change it value based on platform.
29270 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
29271 (GRUB_E820_RAM): Likewise.
29272 (GRUB_E820_RESERVED): Likewise.
29273 (GRUB_E820_ACPI): Likewise.
29274 (GRUB_E820_NVS): Likewise.
29275 (GRUB_E820_EXEC_CODE): Likewise.
29276 (GRUB_E820_MAX_ENTRY): Likewise.
29277 (grub_e820_mmap): New structure.
29278 (linux_kernel_header): Change the efi field according to different
29279 kernel version, also field from linux_kernel_header.
29281 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
29283 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
29284 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
29285 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
29286 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
29287 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
29288 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
29289 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
29290 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
29291 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
29292 (GRUB_PCI_ADDR_IO_MASK): Likewise.
29294 * include/grub/x86_64/efi/kernel.h: New file.
29296 * include/grub/x86_64/efi/loader.h: Likewise.
29298 * include/grub/x86_64/efi/machine.h: Likewise.
29300 * include/grub/x86_64/efi/pci.h: Likewise.
29302 * include/grub/x86_64/efi/time.h: Likewise.
29304 * include/grub/x86_64/linux.h: Likewise.
29306 * include/grub/x86_64/setjmp.h: Likewise.
29308 * include/grub/x86_64/time.h: Likewise.
29310 * include/grub/x86_64/types.h: Likewise.
29312 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
29313 GRUB_TARGET_SIZEOF_VOID_P.
29315 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
29316 (grub_efi_locate_handle): Likewise.
29317 (grub_efi_open_protocol): Likewise.
29318 (grub_efi_set_text_mode): Likewise.
29319 (grub_efi_stall): Likewise.
29320 (grub_exit): Likewise.
29321 (grub_reboot): Likewise.
29322 (grub_halt): Likewise.
29323 (grub_efi_exit_boot_services): Likewise.
29324 (grub_get_rtc): Likewise.
29326 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
29327 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
29328 (grub_efi_allocate_pages): Wrap efi calls.
29329 (grub_efi_free_pages): Wrap efi calls.
29330 (grub_efi_get_memory_map): Wrap efi calls.
29332 * kern/x86_64/dl.c: New file.
29334 * kern/x86_64/efi/callwrap.S: Likewise.
29336 * kern/x86_64/efi/startup.S: Likewise.
29338 * loader/efi/appleloader.c: Likewise.
29340 * loader/efi/chainloader.c (cmdline): New variable.
29341 (grub_chainloader_unload): Wrap efi calls.
29342 (grub_chainloader_boot): Likewise.
29343 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
29346 * loader/efi/chainloader_normal.c (chainloader_command):
29347 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
29350 * loader/i386/efi/linux.c (allocate_pages): Change allocation
29352 (grub_e820_add_region): New function.
29353 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
29355 (grub_find_video_card): New function.
29356 (grub_linux_setup_video): New function.
29357 (grub_rescue_cmd_linux): Probe for video information.
29359 * normal/x86_64/setjmp.S: New file.
29361 * term/efi/console.c (map_char): New function.
29362 (grub_console_putchar): Map unicode char.
29363 (grub_console_checkkey): Wrap efi calls.
29364 (grub_console_getkey): Likewise.
29365 (grub_console_getwh): Likewise.
29366 (grub_console_gotoxy): Likewise.
29367 (grub_console_cls): Likewise.
29368 (grub_console_setcolorstate): Likewise.
29369 (grub_console_setcursor): Likewise.
29371 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
29373 2008-07-16 Pavel Roskin <proski@gnu.org>
29375 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
29378 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
29379 pointer, not an integer. This fixes a warning and prevents
29380 precision loss on 64-bit systems.
29381 (relocate_addresses): Remove unneeded cast.
29383 2008-07-15 Pavel Roskin <proski@gnu.org>
29385 * kern/i386/ieee1275/init.c: Include grub/cache.h.
29387 * term/ieee1275/ofconsole.c: Disable code unused on i386.
29389 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
29390 Fix comparison between signed and unsigned.
29392 * include/grub/i386/ieee1275/console.h: Declare
29393 grub_console_init() and grub_console_fini().
29395 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
29396 It's empty and unused.
29398 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
29399 beginning to avoid warnings with some compilers.
29401 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
29402 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
29404 2008-07-14 Pavel Roskin <proski@gnu.org>
29406 * kern/env.c (grub_register_variable_hook): Don't copy empty
29407 string, it leaks memory. Pass "" to grub_env_set(), it should
29408 handle constant strings.
29410 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
29411 * commands/cmp.c (grub_cmd_cmp): Likewise.
29412 * kern/dl.c (grub_dl_flush_cache): Likewise.
29413 (grub_dl_load_core): Likewise.
29414 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
29415 (grub_elf64_load_phdrs): Likewise.
29417 2008-07-13 Pavel Roskin <proski@gnu.org>
29419 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
29420 between signed and unsigned.
29421 (LzmaEnc_Finish): Fix warning about an unused parameter.
29423 2008-07-13 Bean <bean123ch@gmail.com>
29425 * Makefile.in (enable_lzo): New rule.
29427 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
29429 * configure.ac (ENABLE_LZO): New option --enable-lzo.
29431 * boot/i386/pc/lnxboot.S: #include <config.h>.
29433 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
29434 its value according to the compression algorithm used, lzo or lzma.
29436 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
29437 compression algorithm according to configure macro.
29439 * kern/i386/pc/startup.S (codestart): Likewise.
29441 * kern/i386/pc/lzma_decode.S: New file.
29443 * include/grub/lib/LzFind.h: Likewise.
29445 * include/grub/lib/LzHash.h: Likewise.
29447 * include/grub/lib/LzmaDec.h: Likewise.
29449 * include/grub/lib/LzmaEnc.h: Likewise.
29451 * include/grub/lib/LzmaTypes.h: Likewise.
29453 * lib/LzFind.c: Likewise.
29455 * lib/LzmaDec.c: Likewise.
29457 * lib/LzmaEnc.c: Likewise.
29459 2008-07-13 Bean <bean123ch@gmail.com>
29461 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
29462 (grub_ext4_extent_header): New structure.
29463 (grub_ext4_extent): Likewise.
29464 (grub_ext4_extent_idx): Likewise.
29465 (grub_ext4_find_leaf): New function.
29466 (grub_ext2_read_block): Handle extents.
29468 2008-07-12 Robert Millan <rmh@aybabtu.com>
29470 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
29472 2008-07-11 Robert Millan <rmh@aybabtu.com>
29474 * util/grub.d/40_custom.in: New file. Example on how to add custom
29475 entries to /etc/grub.d.
29476 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
29477 40_custom (implicitly, by merging all the grub.d rules).
29479 2008-07-11 Pavel Roskin <proski@gnu.org>
29481 * commands/read.c (grub_getline): Fix invalid memory access.
29482 Don't add newline to the variable value.
29484 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
29485 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
29486 (serial_hw_get_port): Check validity of the port number.
29487 (grub_cmd_serial): Check return value of serial_hw_get_port().
29489 2008-07-07 Pavel Roskin <proski@gnu.org>
29491 * boot/i386/pc/diskboot.S (notification_string): Replace
29492 "Loading kernel" with just "loading". This is shorter, less
29493 confusing and saves a few bytes for possible future changes.
29495 2008-07-05 Pavel Roskin <proski@gnu.org>
29497 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
29498 size for ATAPI devices, they are undefined. Output sector
29499 number in decimal form.
29501 * disk/ata.c: Use named constants for status bits.
29503 2008-07-04 Pavel Roskin <proski@gnu.org>
29505 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
29506 grub_addr_t before casting it to the void pointer to fix a
29507 warning. Non-addressable regions are discarded earlier.
29508 (grub_arch_modules_addr): Cast _end to grub_addr_t.
29509 * kern/i386/linuxbios/table.c: Include grub/misc.h.
29510 (check_signature): Don't shadow table_header.
29511 (grub_linuxbios_table_iterate): Cast numeric constants to
29512 grub_linuxbios_table_header_t.
29513 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
29516 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
29519 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
29520 pointer, which can cause warnings. Support 64-bit addresses.
29522 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
29523 of sizeof(long). This fixes PowerPC image generation on x86_64.
29525 2008-07-04 Robert Millan <rmh@aybabtu.com>
29527 This fixes a performance issue when pc & gpt partmap iterators
29528 didn't abort iteration even after our hook found what it was
29529 looking for (often causing expensive probes of non-existent drives).
29531 Some callers relied on previous buggy behaviour, since they would
29532 raise an error when their own hooks caused early abortion of its
29535 * kern/device.c (grub_device_open): Improve error message.
29536 * disk/lvm.c (grub_lvm_open): Likewise.
29537 * disk/raid.c (grub_raid_open): Likewise.
29539 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
29540 when hook requests it, independently of grub_errno.
29541 (pc_partition_map_probe): Do not fail when find_func() caused
29542 early abortion of pc_partition_map_iterate().
29544 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
29545 when hook requests it, independently of grub_errno.
29546 (gpt_partition_map_probe): Do not fail when find_func() caused
29547 early abortion of gpt_partition_map_iterate().
29549 * kern/partition.c (grub_partition_iterate): Abort parent iteration
29550 when hook requests it, independently of grub_errno. Do not fail when
29551 part_map_iterate_hook() caused early abortion of p->iterate().
29553 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
29554 when grub_partition_iterate() returned with non-zero.
29556 2008-07-03 Pavel Roskin <proski@gnu.org>
29558 * disk/ata.c (grub_ata_pio_write): Check status before writing,
29559 like we do in grub_ata_pio_read().
29560 (grub_ata_readwrite): Always write individual sectors. Fix the
29561 sector count for the remainder.
29562 (grub_ata_write): Enable writing to ATA devices. Correctly
29563 report error for ATAPI devices.
29565 2008-07-02 Pavel Roskin <proski@gnu.org>
29567 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
29570 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
29571 for every read sector, we already increment it for the whole
29572 batch. This fixes reading more than 256 sectors at once.
29574 * util/grub-editenv.c (cmd_info): Cast argument to long
29575 explicitly. ptrdiff_t reduces to int on i386.
29577 * util/grub-editenv.c (main): Be specific which parameter is
29580 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
29581 (memdisk): Make memdisk_orig_addr a pointer.
29583 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
29584 for file offsets, use grub_off_t instead. Fix printf format
29587 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
29588 there. Real unexpected warnings should not drown in the noise
29589 about known problems.
29591 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
29592 grub_disk_addr_t for memory addresses.
29594 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
29595 explicitly to fix a warning.
29597 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
29599 * Makefile.in (MODULE_LDFLAGS): New variable.
29600 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
29601 the linker accepts --build-id=none.
29602 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
29604 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
29606 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
29607 those in Linux XFS code. Provide a way to access 64-bit parent
29609 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
29610 the end of struct grub_xfs_dir_header.
29612 2008-07-02 Bean <bean123ch@gmail.com>
29614 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
29615 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
29616 and GRUB_IEEE1275_FLAG_NO_ANSI.
29618 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
29619 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
29620 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
29622 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
29623 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
29625 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
29626 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
29628 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
29629 esc sequence on non ANSI terminal.
29630 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
29632 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
29635 2008-07-02 Bean <bean123ch@gmail.com>
29637 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
29638 (grub_editenv_SOURCES): New variable.
29639 (pkglib_MODULES): Add loadenv.mod.
29640 (loadenv_mod_SOURCES): New variable.
29641 (loadenv_mod_CFLAGS): Likewise.
29642 (loadenv_mod_LDFLAGS): Likewise.
29644 * include/grub/envblk.h: New file.
29646 * util/envblk.c: New file.
29648 * util/grub-editenv.c: New file.
29650 * commands/loadenv.c: New file.
29652 2008-07-01 Pavel Roskin <proski@gnu.org>
29654 * include/multiboot2.h (struct multiboot_tag_module): Use char,
29655 not unsigned char. This fixes warnings and is consistent with
29658 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
29660 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
29662 * term/tparm.c (analyze): Always set *popcount.
29664 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
29665 cast to fix a warning.
29667 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
29668 cast to suppress a warning.
29670 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
29671 grub_fshelp_read_file() expects.
29673 * fs/fat.c: Fix UUID calculation on big-endian systems. We
29674 write uuid as a 32-bit value in CPU byte order, so declare and
29677 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
29678 long if the format specifier expects it.
29679 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
29680 * partmap/pc.c (pc_partition_map_iterate): Likewise.
29681 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
29682 long to fix a warning.
29683 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
29684 grub_dprintf() arguments to fix warnings.
29686 2008-06-30 Pavel Roskin <proski@gnu.org>
29688 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
29689 install_bsd_part immediately before core.img is embedded or
29690 modified on disk. This fixes core.img verification if core.img
29691 cannot be embedded.
29693 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
29694 core_path to calculate the blocklist.
29695 Patch from Javier Martín <lordhabbit@gmail.com>
29697 2008-06-29 Robert Millan <rmh@aybabtu.com>
29699 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
29700 block to disk block.
29701 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
29702 Patch from Niels Böhm <bitbucket@arcor.de>
29704 2008-06-29 Robert Millan <rmh@aybabtu.com>
29706 * util/update-grub_lib.in (font_path): Search for fonts in
29707 /boot/grub first, which is more likely to be readable (we aren't
29708 deciding where fonts live, just looking for them).
29710 2008-06-26 Pavel Roskin <proski@gnu.org>
29712 * util/biosdisk.c (read_device_map): Don't leave dead map
29713 entries for devices failing stat() check.
29715 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
29716 core_path_dev for the core.img path on the target device.
29718 2008-06-26 Robert Millan <rmh@aybabtu.com>
29720 * disk/fs_uuid.c: New file.
29721 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
29722 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
29723 (fs_uuid_mod_LDFLAGS): New variables.
29724 * include/grub/disk.h (grub_disk_dev_id): Add
29725 `GRUB_DISK_DEVICE_UUID_ID'.
29726 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
29727 implement iterate().
29729 2008-06-26 Robert Millan <rmh@aybabtu.com>
29731 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
29732 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
29733 Linux image includes no initrd.
29735 2008-06-21 Javier Martín <lordhabbit@gmail.com>
29737 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
29738 call to resolve the core image location that effectively appended the
29741 2008-06-21 Robert Millan <rmh@aybabtu.com>
29743 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
29746 * util/grub.d/10_hurd.in: ... to here ...
29747 * util/grub.d/10_linux.in: ... and here.
29749 2008-06-19 Robert Millan <rmh@aybabtu.com>
29751 * kern/main.c (grub_main): Export `prefix' variable immediately
29752 after it has been set by grub_machine_set_prefix().
29754 2008-06-19 Robert Millan <rmh@aybabtu.com>
29756 * commands/search.c (search_label, search_fs_uuid, search_file): Print
29757 search result when not saving to variable, not the other way around.
29758 When saving to variable, abort iteration as soon as a match is found.
29760 2008-06-19 Robert Millan <rmh@aybabtu.com>
29762 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
29763 check for partition that provides /boot/grub. Its logic is flawed,
29764 as it prevents prepare_grub_to_access_device() from being called
29767 2008-06-19 Robert Millan <rmh@aybabtu.com>
29769 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
29770 "insmod" command directly when abstraction modules are needed,
29771 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
29772 since it had already been processed).
29774 2008-06-19 Pavel Roskin <proski@gnu.org>
29776 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
29777 changed. This is needed in case GRUB_LIBDIR changes.
29778 * conf/i386-ieee1275.rmk: Likewise.
29779 * conf/i386-linuxbios.rmk: Likewise.
29780 * conf/i386-pc.rmk: Likewise.
29781 * conf/powerpc-ieee1275.rmk: Likewise.
29783 2008-06-18 Pavel Roskin <proski@gnu.org>
29785 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
29786 kernel_elf_symlist.c to symlist.c for consistency with other
29787 architectures. Update all users.
29788 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
29790 2008-06-18 Robert Millan <rmh@aybabtu.com>
29792 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
29795 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
29796 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
29797 a RAID device, run setup() for all members independently on whether
29798 LVM abstraction is being used.
29799 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
29800 If grub-mkimage has set `*install_dos_part == -2', don't override this
29802 Perform *install_dos_part adjustments independently on whether
29803 we're embedding or not.
29804 Clarify error message when image is too big for embedding.
29805 Remove duplicate *install_dos_part stanza.
29807 2008-06-17 Robert Millan <rmh@aybabtu.com>
29809 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
29810 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
29812 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
29813 values in grub_ofconsole_normal_color and
29814 grub_ofconsole_highlight_color (they're not directly related to
29815 background and foreground).
29816 (grub_ofconsole_setcolorstate): Extract background and foreground
29817 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
29819 2008-06-17 Robert Millan <rmh@aybabtu.com>
29821 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
29822 /boot/grub for the check in last commit, not /boot (they could be
29823 different partitions).
29825 2008-06-16 Robert Millan <rmh@aybabtu.com>
29827 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
29828 asked to setup access for the same partition that provides /boot,
29829 don't bother using UUIDs since our root already has the value we
29832 2008-06-16 Robert Millan <rmh@aybabtu.com>
29834 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
29836 Patch from Sven Mueller <sven@debian.org>.
29838 2008-06-16 Robert Millan <rmh@aybabtu.com>
29840 * util/update-grub.in: Check for $EUID instead of $UID.
29841 Reported by Vincent Zweije.
29843 2008-06-16 Bean <bean123ch@gmail.com>
29845 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
29846 (grub_ext2_read_block): Likewise.
29847 (grub_ext2_read_inode): Likewise.
29848 (grub_ext2_mount): Likewise.
29849 (grub_ext2_close): Likewise.
29850 (grub_ext3_get_journal): Removed.
29852 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
29853 (grub_reiserfs_read_symlink): Likewise.
29854 (grub_reiserfs_mount): Likewise.
29855 (grub_reiserfs_open): Likewise.
29856 (grub_reiserfs_read): Likewise.
29857 (grub_reiserfs_close): Likewise.
29858 (grub_reiserfs_get_journal): Removed.
29860 * fs/fshelp.c (grub_fshelp_read): Removed.
29861 (grub_fshelp_map_block): Likewise.
29863 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
29864 (grub_fshelp_journal): Likewise.
29865 (grub_fshelp_read): Likewise.
29866 (grub_fshelp_map_block): Likewise.
29868 2008-06-16 Pavel Roskin <proski@gnu.org>
29870 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
29871 floating point anymore.
29872 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
29874 2008-06-15 Pavel Roskin <proski@gnu.org>
29876 * commands/ls.c (grub_ls_list_files): Use integer calculations
29877 for human readable format, avoid floating point use.
29878 * kern/misc.c (grub_ftoa): Remove.
29879 (grub_vsprintf): Remove floating point support.
29881 2008-06-15 Robert Millan <rmh@aybabtu.com>
29883 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
29885 Reported by Max Vozeler.
29887 2008-06-15 Robert Millan <rmh@aybabtu.com>
29889 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
29890 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
29892 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
29893 the beginning of the prefix.
29895 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
29896 It is assumed that if we have a memdisk, grub-mkimage has set
29897 grub_prefix to include the "(memdisk)" drive in it.
29899 2008-06-15 Robert Millan <rmh@aybabtu.com>
29901 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
29902 Initialize keyboard controller after registering the terminal, so that
29903 grub_printf() can be called from grub_keyboard_controller_init().
29905 2008-06-15 Robert Millan <rmh@aybabtu.com>
29907 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
29908 extent-btree which is written as big endian on disk.
29909 Reported by Alain Greppin <al@chilibi.org>.
29911 2008-06-14 Robert Millan <rmh@aybabtu.com>
29913 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
29914 * util/i386/pc/grub-install.in (modules): Likewise.
29916 2008-06-13 Pavel Roskin <proski@gnu.org>
29918 * commands/ls.c (grub_ls_list_files): Fix format warnings.
29920 2008-06-13 Bean <bean123ch@gmail.com>
29922 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
29924 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
29926 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
29927 to indicate sparse block.
29929 2008-06-12 Pavel Roskin <proski@gnu.org>
29931 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
29932 number, grub_fshelp_read() does it for us.
29934 * fs/fshelp.c (grub_fshelp_read): New function. Implement
29935 linear disk read with journal translation.
29936 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
29937 * include/grub/fshelp.h: Declare grub_fshelp_read().
29939 2008-06-09 Pavel Roskin <proski@gnu.org>
29941 * fs/minix.c (grub_minix_mount): Handle error reading
29944 2008-06-08 Robert Millan <rmh@aybabtu.com>
29946 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
29947 don't append the RAID prefix afterwards.
29948 Reported by Clint Adams.
29950 2008-06-08 Robert Millan <rmh@aybabtu.com>
29952 Based on description from Pavel:
29953 * kern/disk.c (grub_disk_check_range): Rename to ...
29954 (grub_disk_adjust_range): ... this. Add a comment explaining the
29955 tasks performed by this function.
29957 2008-06-08 Robert Millan <rmh@aybabtu.com>
29959 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
29960 `num_serial' (for consistency with other variables).
29961 (struct grub_ntfs_data): Add `uuid' member.
29962 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
29963 (grub_ntfs_uuid): New function.
29964 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
29966 2008-06-07 Pavel Roskin <proski@gnu.org>
29968 * util/biosdisk.c (open_device): Revert last change to the
29969 function, it broke installation. The sector needs to be
29970 different dependent on which device is opened.
29972 2008-06-06 Robert Millan <rmh@aybabtu.com>
29974 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
29975 rest of GRUB, and breakage doesn't happen if its value were modified.
29977 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29978 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
29979 a constant (same value).
29980 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
29981 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
29983 2008-06-06 Robert Millan <rmh@aybabtu.com>
29985 * util/biosdisk.c (open_device): Do not modify sector offset when
29986 accessing a partition. kern/disk.c already handles this for us.
29988 2008-06-06 Robert Millan <rmh@aybabtu.com>
29990 * util/grub-emu.c (grub_machine_init): Move code in this function from
29992 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
29993 segfault in case grub_printf() is called).
29995 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
29996 grub_probe. Update all users not to explicitly add it again.
29997 (grub_device): New variable; contains corresponding device for grubdir.
29998 (fs_module, partmap_module, devabstraction_module): Pass
29999 `--device ${grub_device}' to grub_probe to avoid traversing /dev
30002 2008-06-05 Robert Millan <rmh@aybabtu.com>
30004 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
30005 is found, print it (same layout as with labels).
30007 2008-06-04 Robert Millan <rmh@aybabtu.com>
30009 * util/biosdisk.c (get_drive): Rename to ...
30010 (find_grub_drive): ... this. Update all users.
30012 (get_os_disk): Rename to ...
30013 (convert_system_partition_to_system_disk): ... this. Update all users.
30015 (find_drive): Rename to ...
30016 (find_system_device): ... this. Update all users.
30018 2008-06-04 Robert Millan <rmh@aybabtu.com>
30020 * util/biosdisk.c (get_os_disk): Handle IDA devices.
30021 * util/grub-mkdevicemap.c (get_mmc_disk_name)
30022 (make_device_map): Likewise.
30024 2008-06-01 Robert Millan <rmh@aybabtu.com>
30026 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
30027 before dereferencing it.
30029 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
30030 union with fat12/fat16-specific ones. Add some new fields, including
30031 `num_serial' for both versions.
30032 (struct grub_fat_data): Add `uuid' member.
30033 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
30034 names. Initialize `data->uuid' using `num_serial'.
30035 (grub_fat_uuid): New function.
30036 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
30038 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
30039 (grub_reiserfs_uuid): New function.
30040 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
30043 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
30044 (grub_xfs_uuid): New function.
30045 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
30047 2008-06-01 Robert Millan <rmh@aybabtu.com>
30049 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
30050 code that is backward compatible with pre-uuid search command.
30052 2008-05-31 Robert Millan <rmh@aybabtu.com>
30054 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
30055 floppies after everything else, to ensure floppy drive isn't accessed
30056 unnecessarily (patch from Bean).
30058 2008-05-31 Robert Millan <rmh@aybabtu.com>
30060 * commands/search.c (search_label, search_fs_uuid, search_file): Do
30061 not print device names when we were asked to set a variable.
30063 2008-05-31 Robert Millan <rmh@aybabtu.com>
30065 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
30066 using "cursor-on" and "cursor-off" commands (understood at least by
30067 the Open Firmware flavour on OLPC).
30069 2008-05-31 Michael Gorven <michael@gorven.za.net>
30071 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
30072 on and off sequences.
30074 2008-05-31 Robert Millan <rmh@aybabtu.com>
30076 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
30077 * util/update-grub.in: Likewise.
30079 2008-05-30 Pavel Roskin <proski@gnu.org>
30081 * util/biosdisk.c (linux_find_partition): Simplify logic and
30082 make the code more universal. Keep special processing for
30083 devfs, but use a simple rule for all other devices. If the
30084 device ends with a number, append 'p' and the partition number.
30085 Otherwise, append only the partition number.
30087 2008-05-30 Robert Millan <rmh@aybabtu.com>
30089 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
30090 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
30091 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
30092 the `root' parameter to Linux.
30094 2008-05-30 Robert Millan <rmh@aybabtu.com>
30096 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
30097 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
30098 --fs_uuid with --fs-uuid.
30099 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
30100 all filesystems support them).
30102 2008-05-30 Robert Millan <rmh@aybabtu.com>
30104 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
30105 grub_printf() flags, since we're printing in units of 2 bytes.
30107 2008-05-30 Robert Millan <rmh@aybabtu.com>
30109 * util/grub.d/00_header.in: Remove obsolete comment referencing
30110 convert_system_path_to_grub_path().
30111 * util/update-grub.in: Likewise.
30112 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
30113 (convert_system_path_to_grub_path): Add a warning message explaining
30114 that this function is deprecated. Rely on is_path_readable_by_grub()
30115 for the readability checks.
30116 (font_path): Use is_path_readable_by_grub() for the readability
30117 check rather than convert_system_path_to_grub_path().
30119 2008-05-30 Robert Millan <rmh@aybabtu.com>
30121 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
30122 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
30123 converting it first.
30124 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
30125 grub.cfg for access to font file, and afterwards call it again to set
30128 2008-05-30 Robert Millan <rmh@aybabtu.com>
30130 * commands/search.c (options): Add --fs_uuid option.
30131 (search_fs_uuid): New function.
30132 (grub_cmd_search): Fix --set argument passing.
30133 Use search_fs_uuid() when requested via --fs_uuid.
30134 (grub_search_init): Update help message.
30135 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
30136 and redeclare it as an array of 16-bit words.
30137 (grub_ext2_uuid): New function.
30138 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
30139 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
30140 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
30141 (GRUB_DEVICE_BOOT_UUID): New variables.
30142 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
30143 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
30145 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
30146 just assume `root' variable has the right value.
30147 * util/grub.d/10_linux.in: Likewise.
30148 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
30150 (main): Recognise `-t fs_uuid' argument.
30152 2008-05-30 Robert Millan <rmh@aybabtu.com>
30154 * util/biosdisk.c (map): Redefine structure to hold information
30155 about GRUB drive name.
30156 (get_drive): Reimplement without assuming (and verifying) BIOS-like
30158 (call_hook): Remove.
30159 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
30160 member. Assume drive has partitions.
30161 (grub_util_biosdisk_open): Access device names via `.device' struct
30163 (open_device): Likewise.
30164 (find_drive): Likewise.
30165 (read_device_map): Adjust map[] usage to match the new struct
30166 definition. Don't check for duplicates (still possible, but not cheap
30168 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
30169 (make_device_name): Remove assumption of BIOS-like drive names.
30171 2008-05-30 Pavel Roskin <proski@gnu.org>
30173 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
30174 compiling execute.c doesn't need grub_script.tab.h anymore.
30175 (normal/command.c_DEPENDENCIES): Likewise.
30176 (normal/function.c_DEPENDENCIES): Likewise.
30177 * conf/i386-ieee1275.rmk: Likewise.
30178 * conf/i386-linuxbios.rmk: Likewise.
30179 * conf/i386-pc.rmk: Likewise.
30180 * conf/powerpc-ieee1275.rmk: Likewise.
30181 * conf/sparc64-ieee1275.rmk: Likewise.
30183 2008-05-29 Pavel Roskin <proski@gnu.org>
30185 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
30186 when scanning metadata for volume group name.
30188 * include/grub/script.h: Don't include grub_script.tab.h. It's
30189 a generated file, which may only be included from the files with
30190 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
30191 use union YYSTYPE, as the later allows forward declaration.
30192 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
30194 2008-05-29 Robert Millan <rmh@aybabtu.com>
30196 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
30197 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
30198 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
30199 (grub_console_checkkey): Add grub_dprintf() call to report unknown
30202 2008-05-29 Robert Millan <rmh@aybabtu.com>
30204 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
30205 control key combinations.
30207 2008-05-29 Robert Millan <rmh@aybabtu.com>
30209 * util/powerpc/ieee1275/grub-install.in: Move from here ...
30210 * util/ieee1275/grub-install.in: ... to here.
30211 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
30212 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
30213 (grub_install_SOURCES): Likewise.
30215 2008-05-29 Robert Millan <rmh@aybabtu.com>
30217 * fs/affs.c: Update copyright year.
30218 * fs/ext2.c: Likewise.
30219 * fs/fshelp.c: Likewise.
30220 * fs/hfsplus.c: Likewise.
30221 * fs/ntfs.c: Likewise.
30222 * fs/xfs.c: Likewise.
30223 * include/grub/fshelp.h: Likewise.
30224 * util/grub-mkdevicemap.c: Likewise.
30226 2008-05-28 Robert Millan <rmh@aybabtu.com>
30228 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
30229 might need to be fatfs to support some firmware implementations
30232 2008-05-28 Robert Millan <rmh@aybabtu.com>
30234 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
30236 * util/grub-mkdevicemap.c (get_mmc_disk_name)
30237 (make_device_map): Likewise.
30239 2008-05-20 Bean <bean123ch@gmail.com>
30241 * fs/fshelp.c (grub_fshelp_map_block): New function.
30242 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
30243 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
30245 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
30246 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
30247 (grub_fshelp_journal): New structure.
30248 (grub_fshelp_map_block): New function prototype.
30249 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
30250 (grub_fshelp_map_block): Likewise.
30252 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
30253 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
30254 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
30255 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
30256 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
30257 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
30258 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
30259 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
30260 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
30261 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
30262 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
30263 (grub_ext2_sblock): New members for journal support.
30264 (grub_ext3_journal_header): New structure.
30265 (grub_ext3_journal_revoke_header): Likewise.
30266 (grub_ext3_journal_block_tag): Likewise.
30267 (grub_ext3_journal_sblock): Likewise.
30268 (grub_fshelp_node): New members logfile and journal.
30269 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
30270 grub_fshelp_map_block to get real block number.
30271 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
30273 (grub_ext2_read_inode): Likewise.
30274 (grub_ext3_get_journal): New function.
30275 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
30276 (grub_ext2_close): Release memory used by journal.
30278 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
30279 (REISERFS_MAGIC_DESC_BLOCK): New macro.
30280 (grub_reiserfs_transaction_header): Renamed to
30281 grub_reiserfs_description_block, replace field data with real_blocks.
30282 (grub_reiserfs_commit_block): New structure.
30283 (grub_reiserfs_data): New member journal.
30284 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
30286 (grub_reiserfs_read_symlink): Likewise.
30287 (grub_reiserfs_iterate_dir): Likewise.
30288 (grub_reiserfs_open): Likewise.
30289 (grub_reiserfs_read): Likewise.
30290 (grub_reiserfs_get_journal): New function.
30291 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
30292 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
30293 using grub_reiserfs_get_journal.
30294 (grub_reiserfs_close): Release memory used by journal.
30296 * fs/affs.c (grub_affs_read_block): Change block type to
30297 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
30299 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
30301 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
30303 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
30305 * fs/udf.c (grub_udf_read_block): Change block type to
30306 grub_disk_addr_t. Use type cast to avoid warning.
30308 * fs/xfs.c (grub_xfs_read_block): Likewise.
30310 2008-05-16 Christian Franke <franke@computer.org>
30312 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
30313 to ensure that break with ESC will always work.
30314 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
30315 Remove ESC from keyboard queue.
30317 2008-05-16 Christian Franke <franke@computer.org>
30319 * util/biosdisk.c: [__CYGWIN__] Add includes.
30320 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
30321 (get_os_disk): Move variable declarations to OS specific
30322 parts to avoid warning.
30323 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
30324 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
30325 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
30327 * util/getroot.c: [__CYGWIN__] Add includes.
30328 (strip_extra_slashes): Fix "/" case.
30329 [__CYGWIN__] (get_win32_path): New function.
30330 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
30331 [__CYGWIN__] (find_root_device): Disable.
30332 [__CYGWIN__] (get_bootsec_serial): New function.
30333 [__CYGWIN__] (find_cygwin_root_device): Likewise.
30334 [__linux__] (grub_guess_root_device): Add early returns to simplify
30336 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
30337 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
30338 check for Linux only.
30340 2008-05-15 Bean <bean123ch@gmail.com>
30342 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
30343 keyboard hang problem in apple's intel mac.
30345 2008-05-09 Robert Millan <rmh@aybabtu.com>
30347 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
30349 * util/grub-mkdevicemap.c (get_virtio_disk_name)
30350 (make_device_map): Likewise.
30351 Reported by Aurelien Jarno <aurel32@debian.org>
30353 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
30355 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
30356 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
30357 (make_device_map): Output entries for xvd type disks.
30359 2008-05-07 Robert Millan <rmh@aybabtu.com>
30361 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
30363 * util/grub-mkdevicemap.c (get_cciss_disk_name)
30364 (make_device_map): Likewise.
30365 Reported by Roland Dreier <rdreier@cisco.com>
30367 2008-05-07 Robert Millan <rmh@aybabtu.com>
30369 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
30370 grub_strstr() call. Correct a few mistakes in failure path handling.
30372 2008-05-06 Robert Millan <rmh@aybabtu.com>
30374 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
30375 Do not print a trailing slash (therefore, the root directory is an
30377 (convert_system_path_to_grub_path): Do not remove trailing slash
30378 from make_system_path_relative_to_its_root() output.
30380 * util/i386/pc/grub-install.in: Add trailing slash to output from
30381 make_system_path_relative_to_its_root().
30383 2008-05-06 Robert Millan <rmh@aybabtu.com>
30385 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
30386 ensures that output lines aren't intermangled with those sent to
30387 stderr (via grub_util_info()).
30388 * util/grub-probe.c (grub_refresh): Likewise.
30389 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
30391 2008-05-05 Christian Franke <franke@computer.org>
30393 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
30394 Add Cygwin device names.
30395 (get_ide_disk_name) [__CYGWIN__]: Likewise.
30396 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
30397 (check_device): Return error instead of success on empty name.
30398 (make_device_map): Move label inside linux specific code to
30399 prevent compiler warning.
30401 2008-04-30 Robert Millan <rmh@aybabtu.com>
30403 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
30404 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
30406 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
30408 2008-04-29 Robert Millan <rmh@aybabtu.com>
30410 * docs/grub.cfg: New file (example GRUB configuration).
30412 2008-04-26 Robert Millan <rmh@aybabtu.com>
30414 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
30415 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
30416 and `disk/ieee1275/nand.c'.
30418 2008-04-25 Bean <bean123ch@gmail.com>
30420 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
30423 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
30424 change the buffer size to 4096 for cdrom device.
30426 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
30428 (_linux_mod_SOURCES): New variable.
30429 (_linux_mod_CFLAGS): Likewise.
30430 (_linux_mod_LDFLAGS): Likewise.
30431 (linux_mod_SOURCES): Likewise.
30432 (linux_mod_CFLAGS): Likewise.
30433 (linux_mod_LDFLAGS): Likewise.
30434 (nand_mod_SOURCES): Likewise.
30435 (nand_mod_CFLAGS): Likewise.
30436 (nand_mod_LDFLAGS): Likewise.
30438 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
30439 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
30440 type property. (nand device in olpc don't have this property)
30442 * include/grub/disk.h (grub_disk_dev_id): New macro
30443 GRUB_DISK_DEVICE_NAND_ID.
30445 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
30446 function prototype.
30447 (grub_rescue_cmd_initrd): Likewise.
30449 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
30450 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
30451 ofw_cif_handler and ofw_idt, adjust padding number.
30453 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
30454 GRUB_MACHINE_IEEE1275 is defined.
30456 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
30457 Use NESTED_FUNC_ATTR attribute on the hook parameter.
30459 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
30460 on nested function heap_init.
30461 (grub_upper_mem): New variable for i386-ieee1275.
30462 (grub_get_extended_memory): New function for i386-ieee1275.
30463 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
30465 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
30466 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
30469 * loader/i386/ieee1275/linux.c: New file.
30471 * loader/i386/ieee1275/linux_normal.c: New file.
30473 * disk/ieee1275/nand.c: New file.
30475 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
30477 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
30479 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
30481 2008-04-18 Robert Millan <rmh@aybabtu.com>
30483 Restructures early code path on ieee1275 to unify grub_main() as
30484 the first C function that is executed in every platform.
30486 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
30487 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
30489 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
30490 * kern/ieee1275/cmain.c (cmain): Rename to ...
30491 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
30492 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
30495 2008-04-18 Robert Millan <rmh@aybabtu.com>
30497 * util/update-grub.in: Fix syntax error when setting
30498 `GRUB_PRELOAD_MODULES'.
30499 Reported by Stephane Chazelas <stephane@artesyncp.com>
30501 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
30503 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
30504 section into account, newer toolchains generate unique build ids
30505 * configure.ac: remove the test for --build-id=none acceptance,
30506 we want build ids to be preserved
30507 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
30508 far from other sections don't cause the raw binary images grow
30511 2008-04-15 Robert Millan <rmh@aybabtu.com>
30513 * disk/lvm.c: Update copyright year.
30514 * kern/misc.c: Likewise.
30516 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30518 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
30519 there is no memory left for physical volume name.
30521 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30523 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
30524 volume name mapping to support bigger than 9 character names properly.
30526 2008-04-13 Robert Millan <rmh@aybabtu.com>
30528 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
30529 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
30531 2008-04-13 Christian Franke <franke@computer.org>
30533 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
30534 to create a floppy emulation boot CD when non emulation mode
30536 Enable Joliet CD filesystem extension.
30538 2008-04-13 Robert Millan <rmh@aybabtu.com>
30540 * kern/misc.c (grub_strncat): Fix off-by-one error.
30541 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
30543 * kern/env.c (grub_env_context_close): Clear current context, not
30545 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
30547 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
30549 2008-04-13 Robert Millan <rmh@aybabtu.com>
30551 Improve robustness when handling LVM.
30553 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
30554 (and leave `*p' unmodified).
30555 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
30557 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
30558 iterating through it.
30559 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
30561 (grub_lvm_scan_device): Check the return value (and fail gracefully
30562 when due) on each grub_lvm_getvalue() or grub_strstr() call.
30563 Don't assume `vg->pvs != NULL' when iterating through it.
30565 2008-04-13 Robert Millan <rmh@aybabtu.com>
30567 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
30568 * genmk.rb (partmap): New variable.
30569 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
30570 (#{partmap}): New target rule.
30571 * genpartmaplist.sh: New file.
30572 * Makefile.in (pkglib_DATA): Add partmap.lst.
30573 (partmap.lst): New target rule.
30574 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
30575 modules (including all partition maps), instead of preloading them.
30577 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
30579 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
30580 `linux-boot-prober' (if installed) to detect other operating
30581 systems which are installed on the computer and add them to
30583 * conf/common.rmk: Build and install 30_os-prober.
30585 2008-04-12 Robert Millan <rmh@aybabtu.com>
30587 * kern/powerpc/ieee1275/init.c: Move from here ...
30588 * kern/ieee1275/init.c: ... to here. Update all users.
30590 * kern/powerpc/ieee1275/cmain.c: Move from here ...
30591 * kern/ieee1275/cmain.c: ... to here. Update all users.
30593 * kern/powerpc/ieee1275/openfw.c: Move from here ...
30594 * kern/ieee1275/openfw.c: ... to here. Update all users.
30596 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
30597 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
30599 2008-04-10 Pavel Roskin <proski@gnu.org>
30601 * configure.ac: Always use "_cv_" in cache variables for
30602 compatibility with Autoconf 2.62.
30604 2008-04-07 Robert Millan <rmh@aybabtu.com>
30606 Revert grub/machine/init.h addition by Pavel (since it breaks on
30607 i386-ieee1275 and others):
30608 * util/i386/pc/misc.c: Remove grub/machine/init.h.
30609 * util/powerpc/ieee1275/misc.c: Likewise.
30611 2008-04-07 Robert Millan <rmh@aybabtu.com>
30613 * util/grub-probe.c (probe): Improve error message.
30615 2008-04-07 Robert Millan <rmh@aybabtu.com>
30617 * util/biosdisk.c (read_device_map): Skip devices that don't exist
30618 (this prevents the presence of a bogus entry from ruining the whole
30621 2008-04-06 Pavel Roskin <proski@gnu.org>
30623 * util/biosdisk.c: Include grub/util/biosdisk.h.
30624 * util/grub-fstest.c (execute_command): Make static.
30625 * util/grub-mkdevicemap.c (check_device): Likewise.
30626 * util/i386/pc/misc.c: Include grub/machine/init.h.
30627 * util/powerpc/ieee1275/misc.c: Likewise.
30628 * util/lvm.c: Include grub/util/lvm.h.
30629 * util/misc.c: Include grub/kernel.h, grub/misc.h and
30631 * util/raid.c: Include grub/util/raid.h.
30632 (grub_util_getdiskname): Make static.
30634 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
30635 grub_hostfs_fini(), as they are called from grub_init_all() and
30636 grub_fini_all() respectively. This fixes an infinite loop in
30637 grub-fstest due to double registration of hostfs.
30638 Reported by Christian Franke <Christian.Franke@t-online.de>
30640 2008-04-05 Pavel Roskin <proski@gnu.org>
30642 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
30643 all 8 functions. Otherwise, probe function 0 only.
30645 2008-04-04 Pavel Roskin <proski@gnu.org>
30647 * commands/lspci.c (grub_lspci_iter): Print the bus number
30650 * commands/lspci.c (grub_pci_classes): Fix typos.
30651 (grub_lspci_iter): Don't print func twice. Print vendor ID
30652 before device ID, as it's normally done.
30654 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
30655 Fix signedness warnings.
30656 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
30658 * util/ieee1275/get_disk_name.c: Include config.h so that
30659 _GNU_SOURCE is defined and getline() is declared. Mark an
30660 unused argument as such. Fix a signedness warning.
30662 2008-04-02 Pavel Roskin <proski@gnu.org>
30664 * genkernsyms.sh.in: Use more robust assignments for CC and
30665 srcdir. Quote srcdir.
30666 * gensymlist.sh.in: Likewise. Assert at the compile time that
30667 the symbol table is not empty.
30669 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
30670 * fs/cpio.c (grub_cpio_read): Likewise.
30672 2008-04-01 Pavel Roskin <proski@gnu.org>
30674 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
30675 * disk/host.c (grub_host_open): Likewise.
30676 * disk/loopback.c (grub_loopback_open): Likewise.
30677 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
30678 disk->id as in disk/host.c, not a multi-character constant.
30680 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
30681 later is obsolete, potentially dangerous and sets a bad example.
30682 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
30683 * util/misc.c (grub_util_get_image_size): Likewise.
30685 * disk/loopback.c (options): Improve help for "--partitions".
30687 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
30688 options to align them with the short options, e.g. "echo -e".
30690 2008-03-31 Bean <bean123ch@gmail.com>
30692 * video/reader/png.c (grub_png_data): New member is_16bit and
30694 (grub_png_decode_image_header): Detect 16 bit png image.
30695 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
30696 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
30697 (grub_video_reader_png): Release memory occupied by image_data.
30699 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
30701 (grub_nfs_mount): Skip the test for sector per cluster.
30703 * include/grub/ntfs.h (MAX_SPC): Removed.
30705 2008-03-31 Bean <bean123ch@gmail.com>
30707 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
30708 (grub_probe_SOURCES): Add fs/afs.c.
30709 (grub_fstest_SOURCES): Likewise.
30710 (afs_mod_SOURCES): New variable.
30711 (afs_mod_CFLAGS): Likewise.
30712 (afs_mod_LDFLAGS): Likewise.
30714 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
30715 (grub_emu_SOURCES): Likewise.
30717 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30719 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30721 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30723 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30725 * fs/afs.c: New file.
30727 2008-03-30 Pavel Roskin <proski@gnu.org>
30729 * disk/host.c: Include grub/misc.h to fix a warning.
30730 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
30731 warnings about implicit declarations.
30733 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
30735 * include/grub/i386/loader.h: Change declaration of
30736 grub_linux_boot() to match what grub_loader_set() expects.
30737 * util/getroot.c (grub_guess_root_device): Return const char* to
30739 * util/grub-probe.c (probe): Fix a warning about uninitialized
30740 abstraction_name variable.
30741 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
30742 second argument as unused to fix a warning.
30744 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
30745 missing grub_error() call.
30747 * util/update-grub_lib.in: Define datarootdir, since Autoconf
30748 2.60 and newer uses it to define datadir.
30750 * commands/sleep.c: Fix warning about implicit declaration.
30751 * disk/memdisk.c: Likewise.
30752 * loader/aout.c: Likewise.
30753 * loader/i386/bsd_normal.c: Likewise.
30754 * util/grub-probe.c: Likewise.
30756 * commands/i386/cpuid.c (has_longmode): Make static.
30757 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
30758 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
30760 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
30761 GDT. This is more robust, as %ds can change.
30762 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
30763 calling real_to_prot().
30764 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
30766 2008-03-28 Pavel Roskin <proski@gnu.org>
30768 * kern/i386/pc/startup.S: Assert that uncompressed functions
30769 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
30770 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
30771 code, as they push parts of the code (error handlers) beyond
30772 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
30773 code as correctness and size.
30775 2008-03-28 Pavel Roskin <proski@gnu.org>
30777 * kern/i386/pc/startup.S
30778 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
30779 data block address to the real mode, keep offset minimal. This
30780 works around a bug in AWARD BIOS on old Athlon systems, which
30781 makes CD detection hang.
30783 2008-03-26 Pavel Roskin <proski@gnu.org>
30785 * normal/color.c (grub_parse_color_name_pair): Make `name' a
30787 * include/grub/normal.h: Add grub_parse_color_name_pair()
30790 2008-03-24 Bean <bean123ch@gmail.com>
30792 * disk/i386/pc/biosdisk.c (cd_start): Removed.
30793 (cd_count): Removed.
30794 (cd_drive): New variable.
30795 (grub_biosdisk_get_drive): Don't check for (cdN) device.
30796 (grub_biosdisk_call_hook): Likewise.
30797 (grub_biosdisk_iterate): Change cdrom detection method.
30798 (grub_biosdisk_open): Replace cd_start with cd_drive.
30799 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
30800 detect cdrom device.
30802 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
30804 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
30805 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
30806 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
30807 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
30808 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
30809 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
30810 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
30811 (grub_biosdisk_cdrp): New structure.
30812 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
30814 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
30816 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
30819 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
30822 2008-03-20 Robert Millan <rmh@aybabtu.com>
30824 Remove 2 TiB limit in ata.mod.
30825 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
30826 (grub_ata_dumpinfo): Print sector count with 0x%llx.
30827 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
30828 grub_uint64_t instead of grub_uint32_t.
30830 2008-03-05 Bean <bean123ch@gmail.com>
30832 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
30833 (grub_multiboot): Set boot device.
30835 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
30837 2008-03-02 Bean <bean123ch@gmail.com>
30839 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
30842 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
30844 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
30847 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
30850 * docs/fdl.texi: New file.
30852 * docs/mdate-sh: New file. Copied from gnulib.
30853 * docs/texinfo.tex: Likewise.
30855 * config.guess: Updated from gnulib.
30856 * install-sh: Likewise.
30858 2008-02-28 Robert Millan <rmh@aybabtu.com>
30860 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
30861 (aout_mod_SOURCES): New variable.
30862 (aout_mod_CFLAGS): Likewise.
30863 (aout_mod_LDFLAGS): Likewise.
30865 * conf/i386-ieee1275.rmk: Likewise.
30867 2008-02-28 Robert Millan <rmh@aybabtu.com>
30869 * util/update-grub.in: Reorganise terminal validity check. Accept
30870 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
30871 Based on suggestion by Franklin PIAT.
30873 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
30875 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
30877 * util/getroot.c (grub_util_check_block_device): New function that
30878 returns the given argument if it is a block device and returns NULL else.
30879 * util/grub-probe.c (argument_is_device): New variable.
30880 (probe): Promote device_name from a variable to an argument. Receive
30881 device_name from grub_util_check_block_device() if path is NULL and from
30882 grub_guess_root_device() else. Do not free() device_name anymore.
30883 (options): Introduce new parameter '-d, --device'.
30884 (main): Add description of the new parameter to the help screen.
30885 Rename path variable to argument. Set argument_is_device if the '-d'
30886 option is given. Pass argument to probe() depending on
30887 argument_is_device.
30889 2008-02-24 Bean <bean123ch@gmail.com>
30891 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
30892 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
30893 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
30894 (GRUB_ISO9660_VOLDESC_PART): Likewise.
30895 (GRUB_ISO9660_VOLDESC_END): Likewise.
30896 (grub_iso9660_primary_voldesc): New member escape.
30897 (grub_iso9660_data): New member joliet.
30898 (grub_iso9660_convert_string): New function.
30899 (grub_iso9660_mount): Detect joliet extension.
30900 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
30901 (grub_iso9660_iso9660_label): Likewise.
30903 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
30904 (grub_setup_SOURCES): Add fs/udf.c.
30905 (grub_fstest_SOURCES): Likewise.
30906 (udf_mod_SOURCES): New variable.
30907 (udf_mod_CFLAGS): Likewise.
30908 (udf_mod_LDFLAGS): Likewise.
30910 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
30911 (grub_emu_SOURCES): Likewise.
30913 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30915 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30917 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30919 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30921 * fs/udf.c: New file.
30923 2008-02-24 Robert Millan <rmh@aybabtu.com>
30925 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
30926 (normal/lexer.c_DEPENDENCIES): New variables.
30927 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
30928 (normal/lexer.c_DEPENDENCIES): Likewise.
30929 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
30930 (normal/lexer.c_DEPENDENCIES): Likewise.
30931 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
30932 (normal/lexer.c_DEPENDENCIES): Likewise.
30933 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
30934 (normal/lexer.c_DEPENDENCIES): Likewise.
30935 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
30936 (normal/lexer.c_DEPENDENCIES): Likewise.
30938 2008-02-23 Robert Millan <rmh@aybabtu.com>
30940 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
30941 since they were intended to be in hex. This didn't break previously
30942 because of a bug in gpt_partition_map_iterate() (see below).
30944 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
30945 when checking the validity of GPT header.
30946 Remove `partno', since it always provides the same information as `i'.
30948 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
30950 * include/grub/efi/time.h: Fix a wrong comment.
30952 2008-02-19 Pavel Roskin <proski@gnu.org>
30954 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
30957 2008-02-19 Bean <bean123ch@gmail.com>
30959 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
30960 (aout_mod_SOURCES): New variable.
30961 (aout_mod_CFLAGS): Likewise.
30962 (aout_mod_LDFLAGS): Likewise.
30963 (_bsd_mod_SOURCES): New variable.
30964 (_bsd_mod_CFLAGS): Likewise.
30965 (_bsd_mod_LDFLAGS): Likewise.
30966 (bsd_mod_SOURCES): New variable.
30967 (bsd_mod_CFLAGS): Likewise.
30968 (bsd_mod_LDFLAGS): Likewise.
30970 * include/grub/aout.h: New file.
30972 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
30974 * include/grub/i386/bsd.h: New file.
30976 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
30979 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
30980 function is called, so that it's possible to change it inside the hook.
30981 (grub_elf64_load): Likewise.
30982 (grub_elf_file): Don't close the file if elf header is not found.
30983 (grub_elf_close): Close the file if grub_elf_file fails (The new
30984 grub_elf_file won't close it).
30985 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
30986 (grub_elf64_size): Likewise.
30988 * kern/i386/loader.S (grub_unix_real_boot): New function.
30990 * loader/aout.c: New file.
30992 * loader/i386/bsd.c: New file.
30994 * loader/i386/bsd_normal.c: New file.
30996 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
30998 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
30999 can test other formats.
31001 2008-02-19 Robert Millan <rmh@aybabtu.com>
31003 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
31004 (grub_gpt_partition_type_empty): Redefine with macro from
31005 `<grub/gpt_partition.h>'.
31006 (gpt_partition_map_iterate): Adjust partition type comparison.
31008 Export `entry' as partmap-specific `part.data' struct.
31009 (grub_gpt_header, grub_gpt_partentry): Move from here ...
31011 * include/grub/gpt_partition.h (grub_gpt_header)
31012 (grub_gpt_partentry): ... to here (new file).
31014 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
31016 (grub_gpt_partition_type_bios_boot): New const variable, defined
31017 with macro from `<grub/gpt_partition.h>'.
31019 (setup): Replace `first_start' with `embed_region', which keeps
31020 track of the embed region (and is partmap-agnostic).
31022 Replace find_first_partition_start() with find_usable_region(),
31023 which finds a usable region for embedding using partmap-specific
31024 knowledge (supports PC/MSDOS and GPT).
31026 Fix all assumptions that the embed region start at sector 1, using
31027 `embed_region.start' from now on. Similarly, use `embed_region.end'
31028 rather than `first_start' to calculate available size.
31030 In grub_util_info() message, replace "into after the MBR" with an
31031 indication of the specific sector our embed region starts at.
31033 2008-02-19 Robert Millan <rmh@aybabtu.com>
31035 * DISTLIST: Replace `commands/ieee1275/halt.c' and
31036 `commands/ieee1275/reboot.c' with `commands/halt.c' and
31037 `commands/reboot.c'.
31038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
31039 (halt_mod_SOURCES): Likewise.
31040 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
31041 (halt_mod_SOURCES): Likewise.
31043 2008-02-17 Christian Franke <franke@computer.org>
31045 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
31047 2008-02-17 Robert Millan <rmh@aybabtu.com>
31049 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
31050 set `first_start' to 0 for non-PC/MSDOS partition maps.
31052 2008-02-16 Robert Millan <rmh@aybabtu.com>
31054 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
31055 do not assume partition map is PC/MSDOS before performing checks that
31056 are specific to that layout.
31058 2008-02-13 Robert Millan <rmh@aybabtu.com>
31060 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
31061 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
31062 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
31064 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
31066 * configure.ac: Only a cosmetic change on the handling of
31067 -fno-stack-protector.
31069 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
31071 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
31072 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
31074 (grub_install_SOURCES): Add halt.mod and reboot.mod.
31075 (halt_mod_SOURCES): New variable.
31076 (halt_mod_CFLAGS): Likewise.
31077 (halt_mod_LDFLAGS): Likewise.
31078 (reboot_mod_SOURCES): Likewise.
31079 (reboot_mod_CFLAGS): Likewise.
31080 (reboot_mod_LDFLAGS): Likewise.
31082 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
31083 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
31085 (halt_mod_SOURCES): Likewise.
31086 (reboot_mod_SOURCES): Likewise.
31088 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
31089 commands/i386/pc/reboot.c by commands/reboot.c.
31090 (reboot_mod_SOURCES): Likewise.
31092 * commands/i386/pc/reboot.c: merge this file ...
31094 * commands/ieee1275/reboot.c: ... and this file ...
31096 * commands/reboot.c: ... to this file.
31097 Add some precompiler directive to include the correct header for
31100 * commands/ieee1275/halt.c: move this file ...
31102 * commands/halt.c: ... to here.
31103 Add some precompiler directive to include the correct header for
31106 * include/grub/efi/efi.h (grub_reboot): New function declaration.
31107 (grub_halt): Likewise.
31109 * kern/efi/efi.c (grub_reboot): New function.
31110 (grub_halt): Likewise.
31112 2008-02-12 Robert Millan <rmh@aybabtu.com>
31114 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
31115 /dev (like it is done for /dev/mapper). This doesn't provide support
31116 for EVMS, but at least it is now easy to identify the problem when it
31119 2008-02-11 Robert Millan <rmh@aybabtu.com>
31121 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
31122 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
31123 comparing it with -1, not 0.
31125 2008-02-10 Robert Millan <rmh@aybabtu.com>
31127 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
31129 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31130 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
31132 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
31133 `disk/lvm.c' to the end of the list.
31134 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31135 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31137 2008-02-10 Robert Millan <rmh@aybabtu.com>
31139 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
31140 grub_print_error() instead. This will let user know why we're entering
31142 Based on suggestions from Sam Morris.
31144 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
31146 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
31147 on remaining N args, instead of "--" arg N times.
31149 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
31151 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
31152 (fill_with_default_glyph): Changed to use unknown_glyph for fill
31153 pattern for unknown glyphs.
31155 2008-02-09 Robert Millan <rmh@aybabtu.com>
31157 * configure.ac: Probe for `help2man'.
31158 * Makefile.in (builddir): New variable.
31159 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
31160 or otherwise add a few flags/options to it.
31161 (install-local): For every executable utility or script that is
31162 installed, invoke $(HELP2MAN) to install a manpage based on --help
31165 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
31166 that it doesn't prevent --help from working in build tree.
31168 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
31169 with `bug-grub@gnu.org'.
31170 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
31171 * util/update-grub.in (usage): New function.
31172 Implement proper argument check, with support for --help and --version
31173 (as well as existing -y).
31175 2008-02-09 Christian Franke <franke@computer.org>
31177 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
31178 avoid overwriting previous output.
31179 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
31181 2008-02-09 Robert Millan <rmh@aybabtu.com>
31183 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
31186 2008-02-09 Robert Millan <rmh@aybabtu.com>
31188 * commands/sleep.c: New file.
31189 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
31190 (sleep_mod_SOURCES): New variable.
31191 (sleep_mod_CFLAGS): Likewise.
31192 (sleep_mod_LDFLAGS): Likewise.
31194 2008-02-09 Robert Millan <rmh@aybabtu.com>
31196 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
31197 situations in which we can deduce the RAID size and the superblock
31200 2008-02-09 Robert Millan <rmh@aybabtu.com>
31202 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
31203 and return a grub_diskmemberlist_t composed of LVM physical volumes.
31204 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
31206 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
31207 and return a grub_diskmemberlist_t composed of physical array members.
31208 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
31210 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
31212 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
31213 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
31214 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
31216 * util/grub-probe.c (probe): Move partmap probing code from here ...
31217 (probe_partmap): ... to here.
31218 (probe): Use probe_partmap() once for the disk we're probing, and
31219 additionally, when such disk contains a memberlist() struct member,
31220 once for each disk that is contained in the structure returned by
31223 2008-02-09 Robert Millan <rmh@aybabtu.com>
31225 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
31226 environment variable to 'all' in order to obtain debug output from
31228 * util/i386/pc/grub-setup.c (main): Likewise.
31230 2008-02-08 Robert Millan <rmh@aybabtu.com>
31232 * disk/raid.c (grub_raid_scan_device): Check for
31233 `array->device[sb.this_disk.number]' rather than for
31234 `array->device[sb.this_disk.number]->name', since the latter is not
31235 guaranteed to be accessible.
31237 2008-02-08 Robert Millan <rmh@aybabtu.com>
31239 * disk/raid.c: Update copyright.
31240 * fs/cpio.c: Likewise.
31241 * include/grub/raid.h: Likewise.
31242 * loader/i386/pc/multiboot.c: Likewise.
31243 * util/hostfs.c: Likewise.
31245 2008-02-08 Robert Millan <rmh@aybabtu.com>
31247 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
31248 to a grub_disk_t array.
31249 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
31251 (grub_raid_scan_device): Replace `device[x].name' accesses with
31252 `device[x]->name'. Simplify initialization of `array->device[x]'.
31254 2008-02-08 Robert Millan <rmh@aybabtu.com>
31256 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
31257 grub_dprintf() calls.
31258 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
31261 2008-02-07 Christian Franke <franke@computer.org>
31263 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
31264 instead of fseek and ftell to support large files.
31265 (grub_hostfs_read): Likewise.
31267 2008-02-07 Robert Millan <rmh@aybabtu.com>
31269 Patch from Jeroen Dekkers.
31270 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
31271 failure, since successfully reading all array members might not be
31274 2008-02-06 Robert Millan <rmh@aybabtu.com>
31276 * util/grub-probe.c (probe): Simplify partmap probing (with the
31277 assumption that the first word up to the underscore equals to
31280 2008-02-06 Christian Franke <franke@computer.org>
31282 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
31283 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
31284 last block of a cpio or tar stream.
31285 Check for "TRAILER!!!" instead of any empty data
31286 block to detect last block of a cpio stream.
31287 (grub_cpio_dir): Fix constness of variable np.
31288 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
31289 cpio or tar trailer is detected. This fixes a crash
31290 on open of a non existing file.
31292 2008-02-05 Bean <bean123ch@gmail.com>
31294 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
31296 (grub_multiboot_load_elf64): Likewise.
31297 (grub_multiboot): Initialize mbi structure.
31299 * util/grub-fstest.c: Don't include unused header file script.h.
31301 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
31303 (grub_fstest_SOURCES): Likewise.
31305 2008-02-05 Robert Millan <rmh@aybabtu.com>
31307 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
31308 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
31309 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
31310 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
31312 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
31313 (translation_table): Replace hardcoded values with macros
31314 provided by `<grub/term.h>'.
31316 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
31317 (keyboard_map): Correct/add a few values, with macros provided
31318 by `<grub/term.h>'.
31319 (keyboard_map_shift): Zero values that don't differ from their
31320 `keyboard_map' equivalents.
31321 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
31322 Discard the second scan code that is always sent by Caps lock.
31323 Only use `keyboard_map_shift' when it provides a non-zero value,
31324 otherwise fallback to `keyboard_map'.
31326 2008-02-04 Bean <bean123ch@gmail.com>
31328 * Makefile.in (enable_grub_fstest): New variable.
31330 * conf/common.rmk (grub_fstest_init.lst): New rule.
31331 (grub_fstest_init.h): Likewise.
31332 (grub_fstest_init.c): Likewise.
31333 (util/grub-fstest.c_DEPENDENCIES): New variable.
31334 (grub_fstest_SOURCES): Likewise.
31336 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
31338 * util/grub-fstest.c: New file.
31340 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31342 Make grub-setup handle a separate root device.
31344 * util/i386/pc/grub-setup.c (setup): Always open the root device,
31345 so that the root device can be compared with the destination
31347 When embedding the core image, if the root and destination devices
31348 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
31350 When not embedding, set ROOT_DRIVE to 0xFF.
31352 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31354 Add support for having a grub directory in a different drive. This
31355 is still only the data handling part.
31357 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
31358 (codestart): Save %dh in GRUB_ROOT_DRIVE.
31359 (grub_root_drive): New variable.
31361 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
31362 instead of GRUB_BOOT_DRIVE to construct a device name. Set
31363 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
31366 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
31368 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
31370 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
31372 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
31373 is bogus, because PXE booting does not specify any drive
31376 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
31377 am not sure if this is really correct.
31379 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
31380 is always identical to the boot drive when booting from a CD.
31382 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
31384 (root_drive): New variable.
31385 (real_start): Unconditionally set %dh to ROOT_DRIVE.
31386 (setup_sectors): Push %dx right after popping it, because %dh will
31388 (copy_buffer): Restore %dx.
31390 2008-02-03 Robert Millan <rmh@aybabtu.com>
31392 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
31393 use `cdboot.img' for cdrom images.
31395 2008-02-03 Robert Millan <rmh@aybabtu.com>
31397 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
31398 only setup gfxterm when `font' command has succeeded.
31400 2008-02-03 Robert Millan <rmh@aybabtu.com>
31402 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
31403 (grub_rescue_cmd_multiboot_loader)
31404 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
31406 2008-02-03 Pavel Roskin <proski@gnu.org>
31408 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
31409 %edx and %esi from stack only after grub_gate_a20() is called.
31410 grub_gate_a20() clobbers %edx.
31412 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31414 * configure.ac (AC_INIT): Bumped to 1.96.
31416 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
31417 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
31418 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
31419 video/readers/png.c.
31421 2008-02-03 Bean <bean123ch@gmail.com>
31423 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
31424 (cdboot_img_SOURCES): New variable.
31425 (cdboot_img_ASFLAGS): New variable.
31426 (cdboot_img_LDFLAGS): New variable.
31428 * boot/i386/pc/cdboot.S: New file.
31430 * disk/i386/pc/biosdisk.c (cd_start): New variable.
31431 (cd_count): Likewise.
31432 (grub_biosdisk_get_drive): Add support for cd device.
31433 (grub_biosdisk_call_hook): Likewise.
31434 (grub_biosdisk_iterate): Likewise.
31435 (grub_biosdisk_open): Likewise.
31436 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
31437 (grub_biosdisk_rw): Support reading from cd device.
31438 (GRUB_MOD_INIT): Iterate cd devices.
31440 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
31441 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
31442 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
31444 * kern/i386/pc/init.c (make_install_device): Check for cd device.
31446 2008-02-02 Robert Millan <rmh@aybabtu.com>
31448 * commands/read.c: New file.
31449 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
31450 (read_mod_SOURCES): New variable.
31451 (read_mod_CFLAGS): Likewise.
31452 (read_mod_LDFLAGS): Likewise.
31454 2008-02-02 Robert Millan <rmh@aybabtu.com>
31456 * normal/main.c (grub_normal_execute): Check for `menu->size' when
31457 determining whether menu has to be displayed.
31459 2008-02-02 Marco Gerards <marco@gnu.org>
31461 * bus/pci.c: New file.
31463 * include/grub/pci.h: Likewise.
31465 * include/grub/i386/pc/pci.h: Likewise.
31467 * commands/lspci.c: Likewise.
31469 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
31471 (pci_mod_SOURCES): New variable.
31472 (pci_mod_CFLAGS): Likewise.
31473 (pci_mod_LDFLAGS): Likewise.
31474 (lspci_mod_SOURCES): Likewise.
31475 (lspci_mod_CFLAGS): Likewise.
31476 (lspci_mod_LDFLAGS): Likewise.
31478 2008-02-02 Bean <bean123ch@gmail.com>
31480 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
31481 (grub_ufs_get_file_block): Fix indirect block calculation problem.
31483 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
31484 (grub_xfs_btree_node): New structure.
31485 (grub_xfs_btree_root): New structure.
31486 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
31487 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
31488 (GRUB_XFS_EXTENT_BLOCK): Likewise.
31489 (GRUB_XFS_EXTENT_SIZE): Likewise.
31490 (grub_xfs_read_block): Support btree format type.
31491 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
31492 Use directory block as basic unit.
31494 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
31496 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
31497 __attribute__ ((__regparm__ (1))).
31499 2008-02-01 Robert Millan <rmh@aybabtu.com>
31501 Correct a mistake in previous commit.
31503 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
31505 (normal/command.c_DEPENDENCIES): New variable.
31507 2008-02-01 Robert Millan <rmh@aybabtu.com>
31509 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
31511 (normal/command.c_DEPENDENCIES): New variable.
31512 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
31513 * conf/i386-ieee1275.rmk: Likewise.
31514 * conf/i386-linuxbios.rmk: Likewise.
31515 * conf/i386-pc.rmk: Likewise.
31516 * conf/sparc64-ieee1275.rmk: Likewise.
31517 * conf/powerpc-ieee1275.rmk: Likewise.
31518 (grub_emu_SOURCES): Add `fs/fshelp.c'.
31520 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
31522 2008-02-01 Robert Millan <rmh@aybabtu.com>
31524 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
31525 call at beginning of function.
31527 2008-01-31 Pavel Roskin <proski@gnu.org>
31529 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
31530 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
31531 (grub_mkrescue_SOURCES): Likewise.
31532 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
31534 2008-01-30 Robert Millan <rmh@aybabtu.com>
31536 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
31537 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
31538 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
31539 (grub_probe_SOURCES): ... to here.
31541 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
31542 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
31543 * conf/i386-ieee1275.rmk: Likewise.
31544 * conf/i386-linuxbios.rmk: Likewise.
31545 * conf/powerpc-ieee1275.rmk: Likewise.
31547 2008-01-30 Tristan Gingold <gingold@free.fr>
31549 * kern/rescue.c: Silently accept empty lines.
31551 2008-01-29 Bean <bean123ch@gmail.com>
31553 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
31554 (real_code_2): Code cleanup and change comment style.
31555 (move_memory): Avoid using 32-bit address mode.
31557 2008-01-29 Bean <bean123ch@gmail.com>
31559 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
31560 (png_mod_SOURCES): New variable.
31561 (png_mod_CFLAGS): Likewise.
31562 (png_mod_LDFLAGS): Likewise.
31564 * video/readers/png.c: New file.
31566 2008-01-28 Robert Millan <rmh@aybabtu.com>
31568 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
31569 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
31570 `ifndef GRUB_MOD_GAP' hack.
31571 * util/elf/grub-mkimage.c (add_segments): Likewise.
31573 2008-01-27 Robert Millan <rmh@aybabtu.com>
31575 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
31576 `GRUB_MOD_GAP' for platforms in which it's not defined.
31577 * util/elf/grub-mkimage.c (add_segments): Likewise.
31579 2008-01-27 Robert Millan <rmh@aybabtu.com>
31581 Get grub-emu to build again (including parallel builds).
31583 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
31585 (util/grub-emu.c_DEPENDENCIES): ... this, ...
31586 (normal/execute.c_DEPENDENCIES): ... this, ...
31587 (grub-emu_DEPENDENCIES): ... and this.
31589 * conf/i386-efi.rmk: Likewise.
31590 * conf/i386-linuxbios.rmk: Likewise.
31591 * conf/i386-ieee1275.rmk: Likewise.
31592 * conf/powerpc-ieee1275.rmk: Likewise.
31593 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
31595 2008-01-27 Robert Millan <rmh@aybabtu.com>
31597 * NEWS: Add a few items.
31599 2008-01-27 Robert Millan <rmh@aybabtu.com>
31601 Fix parallel builds with grub-emu. Based on earlier commit for
31602 grub-probe and grub-setup.
31604 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31605 (util/grub-emu.c_DEPENDENCIES): ... this.
31606 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31607 (util/grub-emu.c_DEPENDENCIES): ... this.
31608 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31609 (util/grub-emu.c_DEPENDENCIES): ... this.
31610 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31611 (util/grub-emu.c_DEPENDENCIES): ... this.
31612 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31613 (util/grub-emu.c_DEPENDENCIES): ... this.
31615 2008-01-27 Pavel Roskin <proski@gnu.org>
31617 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
31618 to create a gap between _end and the modules added to the image
31619 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
31620 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
31621 * util/elf/grub-mkimage.c (add_segments): Likewise.
31623 2008-01-26 Pavel Roskin <proski@gnu.org>
31625 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
31626 just return an error.
31628 2008-01-26 Bean <bean123ch@gmail.com>
31630 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
31631 (grub_reiserfs_get_item): Save offset of the next item.
31632 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
31634 2008-01-25 Robert Millan <rmh@aybabtu.com>
31636 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
31637 make all filesystem sources appear together (possibly fixing omissions
31639 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31640 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31641 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31642 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31644 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
31646 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
31647 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
31648 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
31649 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
31651 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
31652 (probe): Add a sanity check to make sure of our ability to read
31653 requested files when probing for filesystem type.
31655 * genmk.rb: Update copyright year (2007).
31657 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
31658 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
31659 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
31660 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
31661 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
31662 : Remove function prototypes.
31664 2008-01-25 Robert Millan <rmh@aybabtu.com>
31666 Revert my previous commits (based on wrong assumption of how grub_errno
31669 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
31670 * kern/file.c (grub_file_open): Likewise.
31672 2008-01-24 Pavel Roskin <proski@gnu.org>
31674 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
31675 that hang if GRUB tries to setup colors.
31676 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
31677 colors for firmwares that don't support it.
31678 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
31679 Recognize Open Hack'Ware, set flags to work around its
31682 2008-01-24 Robert Millan <rmh@aybabtu.com>
31684 * kern/file.c (grub_file_open): Do not account previous failures of
31685 unrelated functions when grub_errno is checked for.
31686 Reported by Oleg Strikov.
31688 2008-01-24 Bean <bean123ch@gmail.com>
31690 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
31691 (grub_ufs_sblock): New member volume name.
31692 (grub_ufs_find_file): Fix string copy bug.
31693 (grub_ufs_label): Implement this function properly.
31695 * fs/hfs.c (grub_hfs_cnid_type): New enum.
31696 (grub_hfs_iterate_records): Use the correct file number for extents
31697 and catalog file. Fix problem in next index calculation.
31698 (grub_hfs_find_node): Replace recursive function call with loop.
31699 (grub_hfs_iterate_dir): Replace recursive function call with loop.
31701 2008-01-23 Robert Millan <rmh@aybabtu.com>
31703 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
31704 `<grub/symbol.h>' and `<grub/multiboot.h>'.
31705 (grub_multiboot2_real_boot): New function prototype.
31707 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
31708 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
31710 * kern/i386/ieee1275/init.c (grub_os_area_addr)
31711 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
31713 2008-01-23 Robert Millan <rmh@aybabtu.com>
31715 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
31716 #ifdef'ed out grub_printf().
31718 2008-01-23 Robert Millan <rmh@aybabtu.com>
31720 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
31721 grub_dprintf calls, since they make "debug=all" mode unusable.
31722 (grub_console_checkkey): Likewise.
31724 2008-01-23 Robert Millan <rmh@aybabtu.com>
31726 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
31727 `term/i386/pc/at_keyboard.c'.
31728 (pkglib_MODULES): Add `serial.mod'.
31729 (serial_mod_SOURCES): New variable.
31730 (serial_mod_CFLAGS): Likewise.
31731 (serial_mod_LDFLAGS): Likewise.
31733 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
31734 `<grub/powerpc/ieee1275/console.h>'.
31735 (grub_keyboard_controller_init): New function prototype.
31736 (grub_console_checkkey): Likewise.
31737 (grub_console_getkey): Likewise.
31739 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
31742 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
31743 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
31745 2008-01-23 Robert Millan <rmh@aybabtu.com>
31747 * kern/i386/pc/init.c (make_install_device): When memdisk image is
31748 present, "(memdisk)/boot/grub" becomes the default prefix.
31750 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
31751 a memdisk tarball with all the modules. Add --overlay=DIR option that
31752 allows users to overlay additional files into the image.
31754 2008-01-23 Robert Millan <rmh@aybabtu.com>
31756 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
31757 and `machine/memory.h'.
31758 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
31759 (_multiboot_mod_SOURCES): New variable.
31760 (_multiboot_mod_CFLAGS): Likewise.
31761 (_multiboot_mod_LDFLAGS): Likewise.
31762 (multiboot_mod_SOURCES): Likewise.
31763 (multiboot_mod_CFLAGS): Likewise.
31764 (multiboot_mod_LDFLAGS): Likewise.
31766 * include/grub/i386/ieee1275/loader.h: New file.
31768 * include/grub/i386/ieee1275/machine.h: Likewise.
31770 * include/grub/i386/ieee1275/memory.h: Likewise.
31772 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
31773 variable declaration.
31774 (grub_os_area_size): Likewise.
31776 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
31777 (grub_lower_mem, grub_upper_mem): New variables.
31778 (grub_stop_floppy): New function (just to make
31779 grub_multiboot2_real_boot() happy).
31781 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
31782 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
31783 (grub_stop): New function.
31784 Include `"../realmode.S"' and `"../loader.S"'.
31786 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
31787 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
31789 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
31790 rely on grub_multiboot2_real_boot() for final boot.
31792 2008-01-22 Robert Millan <rmh@aybabtu.com>
31794 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
31795 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
31796 device that doesn't look like an SD card.
31797 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
31798 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
31799 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
31800 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
31803 2008-01-22 Robert Millan <rmh@aybabtu.com>
31805 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
31806 avoid claiming over our own code.
31808 2008-01-22 Bean <bean123ch@gmail.com>
31810 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
31811 (jpeg_mod_SOURCES): New variable.
31812 (jpeg_mod_CFLAGS): Likewise.
31813 (jpeg_mod_LDFLAGS): Likewise.
31815 * video/readers/jpeg.c : New file.
31817 2008-01-22 Bean <bean123ch@gmail.com>
31819 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
31820 there are no more items.
31822 2008-01-21 Robert Millan <rmh@aybabtu.com>
31824 * kern/mm.c (grub_mm_init_region): Improve debug message.
31826 2008-01-21 Robert Millan <rmh@aybabtu.com>
31828 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
31829 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
31831 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
31833 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
31834 Indicates start of upper memory.
31835 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
31836 (generate_image): Abort when image size is big enough to corrupt
31839 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
31840 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
31841 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
31842 instead of hardcoding 0xA0000.
31843 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
31844 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
31845 instead of hardcoding 0xA0000.
31847 2008-01-21 Robert Millan <rmh@aybabtu.com>
31849 * disk/memdisk.c (memdisk_size): New variable.
31850 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
31852 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
31853 image to dynamic memory.
31854 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
31855 `memdisk_size'. Free memdisk block.
31857 2008-01-21 Robert Millan <rmh@aybabtu.com>
31859 Fix detection of very small filesystems (like tar).
31861 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
31862 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
31863 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
31864 a problem with this disk).
31866 2008-01-21 Robert Millan <rmh@aybabtu.com>
31868 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
31869 on grub_biosdisk_rw_standard() error.
31871 2008-01-21 Robert Millan <rmh@aybabtu.com>
31873 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
31875 * kern/elf.c: Likewise.
31876 * kern/ieee1275/ieee1275.c: Likewise.
31877 * kern/powerpc/ieee1275/openfw.c: Likewise.
31878 * term/ieee1275/ofconsole.c: Likewise.
31880 2008-01-21 Robert Millan <rmh@aybabtu.com>
31882 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
31884 * include/grub/kernel.h (grub_arch_memdisk_addr)
31885 (grub_arch_memdisk_size): Moved from here ...
31887 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
31888 (grub_arch_memdisk_size): ... to here.
31890 2008-01-21 Robert Millan <rmh@aybabtu.com>
31892 Mostly based on bugfix from Bean.
31894 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
31895 attribute with hook() parameter.
31896 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
31898 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
31899 attribute with hook() parameter.
31900 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
31903 2008-01-21 Robert Millan <rmh@aybabtu.com>
31905 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
31906 (pkglib_MODULES): Add `memdisk.mod'.
31907 (memdisk_mod_SOURCES): New variable.
31908 (memdisk_mod_CFLAGS): Likewise.
31909 (memdisk_mod_LDFLAGS): Likewise.
31911 * disk/memdisk.c: New file.
31913 * include/grub/disk.h (grub_disk_dev_id): Add
31914 `GRUB_DISK_DEVICE_MEMDISK_ID'.
31916 * include/grub/i386/pc/kernel.h
31917 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
31918 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
31919 (grub_kernel_image_size): New variable declaration.
31920 (grub_total_module_size): Likewise.
31921 (grub_memdisk_image_size): Likewise.
31923 * include/grub/i386/pc/memory.h
31924 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
31926 * include/grub/kernel.h: Include `<grub/symbol.h>'.
31927 (grub_arch_memdisk_addr): New variable declaration.
31928 (grub_arch_memdisk_size): Likewise.
31930 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
31931 (grub_arch_memdisk_size): Likewise.
31933 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
31934 (codestart): Replace hardcoded `0x100000' with
31935 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
31937 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
31938 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
31939 not NULL, append the contents of the file it refers to, at the end of
31940 the compressed kernel image. Initialize `grub_memdisk_image_size'
31941 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
31942 (options): Add "memdisk"|'m' option.
31943 (main): Parse --memdisk|-m option, and pass user-provided path as
31944 parameter to generate_image().
31946 2008-01-20 Robert Millan <rmh@aybabtu.com>
31948 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
31949 grub_dprintf() calls from here ...
31950 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
31952 2008-01-20 Robert Millan <rmh@aybabtu.com>
31954 Fix detection of "real mode" when /options/real-mode? doesn't exist.
31956 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
31958 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
31959 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
31960 `GRUB_IEEE1275_FLAG_REAL_MODE'.
31961 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
31963 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
31964 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
31966 2008-01-19 Robert Millan <rmh@aybabtu.com>
31968 Get rid of confusing function (superseded by
31969 `grub_ieee1275_get_integer_property')
31970 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
31972 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
31974 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
31975 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
31976 in native endianness from grub_ieee1275_get_integer_property().
31978 2008-01-19 Robert Millan <rmh@aybabtu.com>
31980 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
31981 command after "shut-down", since implementations differ on which
31982 the command for halt is.
31984 2008-01-19 Robert Millan <rmh@aybabtu.com>
31986 * include/grub/i386/linuxbios/console.h: Add header protection.
31987 (grub_keyboard_controller_init): New function prototype.
31988 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
31989 (KEYBOARD_COMMAND_READ): Likewise.
31990 (KEYBOARD_COMMAND_WRITE): Likewise.
31991 (KEYBOARD_SCANCODE_SET1): Likewise.
31992 (grub_keyboard_controller_write): New function.
31993 (grub_keyboard_controller_read): Likewise.
31994 (grub_keyboard_controller_init): Likewise.
31996 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
31997 (grub_console_init): On coreboot/LinuxBIOS, call
31998 grub_keyboard_controller_init().
32000 2008-01-19 Robert Millan <rmh@aybabtu.com>
32002 PowerPC changes provided by Pavel Roskin.
32004 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
32005 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
32006 don't rely on cmain() doing it.
32007 * kern/i386/ieee1275/startup.S (_start): Store %eax in
32008 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
32010 2008-01-16 Robert Millan <rmh@aybabtu.com>
32012 * include/grub/i386/linuxbios/memory.h
32013 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
32014 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
32015 receive `table_header' as argument. Instead, probe for it in the
32016 known memory ranges where it can be present.
32017 (grub_available_iterate): Do not pass a fixed `table_header' address
32018 to grub_linuxbios_table_iterate().
32020 2008-01-15 Robert Millan <rmh@aybabtu.com>
32022 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
32023 * conf/i386-ieee1275.rmk: New file.
32024 * include/grub/i386/ieee1275/console.h: Likewise.
32025 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
32026 * include/grub/i386/ieee1275/kernel.h: Likewise.
32027 * include/grub/i386/ieee1275/time.h: Likewise.
32028 * kern/i386/ieee1275/init.c: Likewise.
32029 * kern/i386/ieee1275/startup.S: Likewise.
32031 2008-01-15 Robert Millan <rmh@aybabtu.com>
32033 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
32034 when pointers are 32-bit (but still do set it to one when they are
32037 2008-01-15 Robert Millan <rmh@aybabtu.com>
32039 * include/grub/ieee1275/ieee1275.h
32040 (grub_ieee1275_get_integer_property): New function prototype.
32042 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
32043 (grub_ieee1275_get_integer_property): New function. Wraps around
32044 grub_ieee1275_get_property() to handle endianness.
32046 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
32047 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
32049 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
32050 (grub_map): Likewise.
32051 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
32053 2008-01-15 Bean <bean123ch@gmail.com>
32055 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
32056 (grub_script_execute_cmdline): Reset grub_errno.
32058 * normal/main.c (read_config_file): Reset grub_errno.
32060 * normal/parse.y (script_init): New.
32061 (script): Move function and menuentry here.
32063 (command): Add delimiter at the end of command.
32064 (commands): Adjust to match the new command.
32065 (commandblock): Remove grub_script_lexer_record_start.
32066 (menuentry): Add grub_script_lexer_record_start, use the new commands.
32067 (if): Use the new commands.
32069 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
32071 2008-01-15 Robert Millan <rmh@aybabtu.com>
32073 * normal/menu.c (run_menu): Move timeout message from here ...
32074 (print_timeout): ... to here.
32075 (run_menu): Use print_timeout() once during initial draw to print
32076 the whole message, and again in every clock tick to update only
32077 the number of seconds.
32079 2008-01-15 Robert Millan <rmh@aybabtu.com>
32081 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
32082 actual size of `available' from grub_ieee1275_get_property(), and
32083 restrict parsing to that bound.
32085 2008-01-15 Christian Franke <franke@computer.org>
32087 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
32088 (argp_program_version): Remove variable.
32089 (argp_program_bug_address): Likewise.
32090 (options): Convert from struct argp_option to struct option.
32091 (struct arguments): Remove.
32092 (parse_opt): Remove.
32093 (usage): New function.
32094 (main): Replace struct args members by simple variables.
32095 Replace argp_parse() by getopt_long().
32096 Add switch to evaluate options.
32097 Add missing "(...)" around root_dev in prefix string.
32099 2008-01-14 Robert Millan <rmh@aybabtu.com>
32101 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
32102 for grub_ieee1275_exit(), in order to improve portability.
32104 2008-01-14 Robert Millan <rmh@aybabtu.com>
32106 * util/grub.d/10_linux.in (prefix): Define.
32107 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
32109 2008-01-13 Pavel Roskin <proski@gnu.org>
32111 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
32112 grub_errno if no errors have been detected.
32114 2008-01-12 Robert Millan <rmh@aybabtu.com>
32116 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
32117 (grub_util_get_dev_abstraction): New function prototype.
32119 * util/getroot.c: Include `<grub/util/getroot.h>'
32120 (grub_util_get_grub_dev): Move detection of abstraction type to ...
32121 (grub_util_get_dev_abstraction): ... here (new function).
32123 * util/grub-probe.c: Convert PRINT_* to an enum. Add
32124 `PRINT_ABSTRACTION'.
32125 (probe): Probe for abstraction type when requested.
32126 (main): Understand `--target=abstraction'.
32128 * util/i386/efi/grub-install.in: Add abstraction module to core
32129 image when it is found to be necessary.
32130 * util/i386/pc/grub-install.in: Likewise.
32131 * util/powerpc/ieee1275/grub-install.in: Likewise.
32133 * util/update-grub_lib.in (font_path): Return system path without
32134 converting to GRUB path.
32135 * util/update-grub.in: Convert system path returned by font_path()
32136 to a GRUB path. Use `grub-probe -t abstraction' to determine what
32137 abstraction module is needed for loading fonts (if any). Export
32138 that as `GRUB_PRELOAD_MODULES'.
32139 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
32142 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
32144 Remove some unused code from reiserfs.
32146 * fs/reiserfs.c (struct grub_reiserfs_key)
32147 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
32148 (struct grub_reiserfs_node_body): Removed.
32149 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
32151 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32153 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32155 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32157 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
32159 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
32161 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32162 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32163 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32165 2008-01-10 Robert Millan <rmh@aybabtu.com>
32167 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
32168 Determines if a file is garbage left by packaging systems, etc.
32169 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
32170 for processing /etc/grub.d scripts.
32171 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
32172 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
32173 as a condition for processing Linux images.
32175 2008-01-10 Pavel Roskin <proski@gnu.org>
32177 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
32178 to compile reiserfs.c on PowerPC.
32180 2008-01-10 Robert Millan <rmh@aybabtu.com>
32182 * kern/device.c (grub_device_iterate): Do not abort device iteration
32183 when one of the devices cannot be opened.
32184 * kern/disk.c (grub_disk_open): Do not account previous failures of
32185 unrelated functions when grub_errno is checked for.
32187 2008-01-08 Robert Millan <rmh@aybabtu.com>
32189 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
32190 `! grub_linux_is_bzimage', change order of address comparison to make
32191 it more intuitive, and improve "too big zImage" error message.
32193 2008-01-08 Robert Millan <rmh@aybabtu.com>
32195 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
32196 `$(update-grub_DATA)'.
32197 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
32200 2008-01-07 Robert Millan <rmh@aybabtu.com>
32202 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
32203 which instruction is modified by grub-setup during installation
32204 (since it wasn't obvious by only looking at this file).
32206 2008-01-07 Robert Millan <rmh@aybabtu.com>
32208 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
32209 listing actual TODO items.
32211 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32213 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
32215 (grub_reiserfs_get_key_offset): Likewise.
32216 (grub_reiserfs_set_key_offset): Likewise.
32217 (grub_reiserfs_set_key_type): Likewise.
32218 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
32220 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
32221 better to remove the bitfield version completely.
32223 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32225 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
32226 allocated from the heap, due to the fshelp implementation.
32227 (grub_reiserfs_dir): Free NODE, due to the same reason.
32229 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32231 Mostly from Vincent Pelletier:
32233 * fs/reiserfs.c: New file.
32235 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
32236 (reiserfs_mod_SOURCES): New variable.
32237 (reiserfs_mod_CFLAGS): Likewise.
32238 (reiserfs_mod_LDFLAGS): Likewise.
32240 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
32241 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
32242 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
32245 2008-01-06 Robert Millan <rmh@aybabtu.com>
32247 * normal/color.c: Remove `<grub/env.h>'.
32249 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
32251 * include/grub/normal.h: Include <grub/env.h>.
32253 2008-01-05 Robert Millan <rmh@aybabtu.com>
32255 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
32256 usage example with `(hd0,1)'.
32257 Reported by Samuel Thibault.
32259 2008-01-05 Robert Millan <rmh@aybabtu.com>
32261 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
32262 (grub_linux_boot_zimage): Rename to ...
32263 (grub_linux_boot): ... this.
32264 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
32265 (grub_linux_boot_zimage): Conditionalize zImage copy.
32267 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
32268 (grub_linux_boot_bzimage): Remove prototype.
32269 (grub_linux_boot_zimage): Rename to ...
32270 (grub_linux_boot): ... this.
32272 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
32273 (grub_linux_boot): Remove function.
32275 2008-01-05 Robert Millan <rmh@aybabtu.com>
32277 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
32278 (grub_env_write_color_highlight): Likewise.
32279 (grub_wait_after_message): Likewise.
32281 * normal/color.c: New file.
32283 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32284 (normal_mod_DEPENDENCIES): Likewise.
32286 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32287 (normal_mod_DEPENDENCIES): Likewise.
32289 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32290 (normal_mod_DEPENDENCIES): Likewise.
32292 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32293 (normal_mod_DEPENDENCIES): Likewise.
32295 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
32296 for waiting after a message is printed.
32297 * normal/main.c (read_config_file): Likewise.
32298 (grub_normal_init): Register grub_env_write_color_normal() and
32299 grub_env_write_color_highlight() hooks. Mark `color_normal' and
32300 `color_highlight' variables as global.
32302 * normal/menu.c (grub_wait_after_message): New function.
32303 (grub_color_menu_normal): New variable. Replaces ...
32304 (GRUB_COLOR_MENU_NORMAL): ... this macro.
32305 (grub_color_menu_highlight): New variable. Replaces ...
32306 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
32307 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
32308 `GRUB_TERM_COLOR_STANDARD'.
32309 (print_message): Use `grub_setcolorstate' to reload colors. Rename
32310 `normal_code' and `highlight_code' to `old_color_normal' and
32311 `old_color_highlight', respectively.
32312 (grub_menu_init_page): Update colors when drawing the menu, based on
32313 `menu_color_normal' and `menu_color_highlight' variables.
32314 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
32315 a message is printed.
32317 2008-01-05 Robert Millan <rmh@aybabtu.com>
32319 * kern/env.c (grub_env_context_open): Propagate hooks for global
32320 variables to new context.
32322 * kern/main.c (grub_set_root_dev): Export `root' variable.
32324 2008-01-05 Robert Millan <rmh@aybabtu.com>
32326 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
32327 discs unconditionally, since udev and others have options to provide
32330 2008-01-05 Robert Millan <rmh@aybabtu.com>
32332 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
32334 2008-01-04 Christian Franke <franke@computer.org>
32336 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
32339 2008-01-03 Pavel Roskin <proski@gnu.org>
32341 * kern/i386/linuxbios/init.c: Put "void" to all function
32342 declarations with no arguments.
32343 * kern/powerpc/ieee1275/init.c: Likewise.
32344 * term/i386/pc/at_keyboard.c: Likewise.
32345 * term/i386/pc/vga_text.c: Likewise.
32346 * util/grub-mkdevicemap.c: Likewise.
32348 2008-01-02 Robert Millan <rmh@aybabtu.com>
32350 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
32351 message when loaded image is out of bounds.
32352 (grub_multiboot_load_elf64): Likewise.
32354 2008-01-02 Pavel Roskin <proski@gnu.org>
32356 * util/grub.d/10_linux.in: Try version without ".old" when
32357 looking for initrd. It's better to use initrd from the newer
32358 kernel of the same version than no initrd at all.
32360 2008-01-01 Robert Millan <rmh@aybabtu.com>
32362 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
32364 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
32366 * include/grub/video.h: Added grub_video_unmap_color and
32367 grub_video_get_active_render_target.
32368 (grub_video_adapter): Added unmap_color and get_active_render_target.
32370 * video/video.c: Added grub_video_unmap_color and
32371 grub_video_get_active_render_target.
32372 (grub_video_get_info): Changed method to accept NULL pointer as an
32373 argument to allow detection of active video adapter.
32375 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
32376 grub_video_vbe_unmap_color_int.
32377 Added grub_video_vbe_unmap_color and
32378 grub_video_vbe_get_active_render_target.
32379 (grub_video_vbe_adapter): Added unmap_color and
32380 get_active_render_target.
32382 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
32383 with grub_video_vbe_unmap_color_int.
32385 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
32386 (DEFAULT_NORMAL_COLOR): Likewise.
32387 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
32388 (DEFAULT_FG_COLOR): Removed.
32389 (DEFAULT_BG_COLOR): Likewise.
32390 (DEFAULT_CURSOR_COLOR): Changed value.
32391 (grub_virtual_screen): Added standard_color_setting,
32392 normal_color_setting, highlight_color_setting and term_color.
32393 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
32394 (bitmap_width): Added.
32395 (bitmap_height): Likewise.
32396 (bitmap): Likewise.
32397 (set_term_color): Likewise.
32398 (grub_virtual_screen_setup): Changed to use new terminal coloring
32400 (grub_gfxterm_init): Added init for bitmap.
32401 (grub_gfxterm_fini): Added destroy for bitmap.
32402 (redraw_screen_rect): Updated to use background bitmap and new
32404 (scroll_up): Added optimization for case when there is no bitmap.
32405 (grub_gfxterm_cls): Fixed to use correct background color.
32406 (grub_virtual_screen_setcolorstate): Changed to use new terminal
32408 (grub_virtual_screen_setcolor): Likewise.
32409 (grub_virtual_screen_getcolor): Added.
32410 (grub_gfxterm_background_image_cmd): Likewise.
32411 (grub_video_term): Added setcolor and getcolor.
32412 (MOD_INIT): Added registration of background_image command.
32413 (MOD_TERM): Added unregistration for background_image command.
32415 2007-12-30 Pavel Roskin <proski@gnu.org>
32417 * loader/multiboot_loader.c: Fix multiboot command
32418 unregistration. Fix all typos in the word "multiboot".
32420 2007-12-29 Pavel Roskin <proski@gnu.org>
32422 * util/grub.d/10_linux.in: Refactor search for initrd. Add
32423 support for initrd names used in Fedora.
32425 2007-12-26 Bean <bean123ch@gmail.com>
32427 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
32428 (cpio_mod_SOURCES): New variable.
32429 (cpio_mod_CFLAGS): Likewise.
32430 (cpio_mod_LDFLAGS): Likewise.
32432 * fs/cpio.c: New file.
32434 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
32436 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32438 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32440 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32442 2007-12-25 Robert Millan <rmh@aybabtu.com>
32444 * include/grub/term.h (struct grub_term): Add `getcolor' function.
32445 (grub_getcolor): New function.
32447 * kern/term.c (grub_getcolor): New function.
32448 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
32449 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
32450 (print_entry): Set normal and highlight colors to
32451 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
32452 respectively, before printing and restore them to old
32454 (grub_menu_init_page): Likewise. Fill an additional colored space
32455 that would otherwise be left blank.
32457 * term/efi/console.c (grub_console_getcolor): New function.
32458 (struct grub_console_term.getcolor): New variable.
32459 * term/i386/pc/console.c (grub_console_getcolor): New function.
32460 (struct grub_console_term.getcolor): New variable.
32461 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
32462 (struct grub_console_term.getcolor): New variable.
32464 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
32465 (struct grub_console_term.setcolor): Remove variable.
32466 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
32467 (struct grub_console_term.setcolor): Remove variable.
32468 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
32469 (struct grub_console_term.setcolor): Remove variable.
32470 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
32471 (struct grub_console_term.setcolor): Remove variable.
32473 2007-12-25 Robert Millan <rmh@aybabtu.com>
32475 * configure.ac: Search for possible unifont.hex locations, and
32476 define UNIFONT_HEX if found.
32478 * Makefile.in (UNIFONT_HEX): Define variable.
32479 (DATA): Rename to ...
32480 (PKGLIB): ... this. Update all users.
32481 (PKGDATA): New variable.
32482 (pkgdata_IMAGES): Rename to ...
32483 (pkglib_IMAGES): ... this. Update all users.
32484 (pkgdata_MODULES): Rename to ...
32485 (pkglib_MODULES): ... this. Update all users.
32486 (pkgdata_PROGRAMS): Rename to ...
32487 (pkglib_PROGRAMS): ... this. Update all users.
32488 (pkgdata_DATA): Rename to ...
32489 (pkglib_DATA): ... this. Update all users.
32490 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
32491 (unicode.pff, ascii.pff): New rules.
32492 (all-local): Add `$(PKGDATA)' dependency.
32493 (install-local): Process `$(PKGDATA)'.
32495 * util/update-grub_lib.in (font_path): Search for *.pff files in
32496 a few more locations, including `${pkgdata}'.
32498 2007-12-23 Robert Millan <rmh@aybabtu.com>
32500 Patch from Bean <bean123ch@gmail.com>:
32501 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
32504 2007-12-21 Bean <bean123ch@gmail.com>
32506 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
32507 (ntfscomp_mod_SOURCES): New variable.
32508 (ntfscomp_mod_CFLAGS): Likewise.
32509 (ntfscomp_mod_LDFLAGS): Likewise.
32511 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
32512 (grub_probe_SOURCES): Likewise.
32513 (grub_emu_SOURCES): Likewise.
32515 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32516 (grub_emu_SOURCES): Likewise.
32518 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32519 (grub_emu_SOURCES): Likewise.
32521 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32522 (grub_emu_SOURCES): Likewise.
32524 * fs/ntfs.c (grub_ntfscomp_func): New variable.
32525 (read_run_list): Renamed to grub_ntfs_read_run_list.
32526 (decomp_nextvcn): Moved to ntfscomp.c.
32527 (decomp_getch): Likewise.
32528 (decomp_get16): Likewise.
32529 (decomp_block): Likewise.
32530 (read_block): Likewise.
32531 (read_data): Partially moved to ntfscomp.c.
32532 (fixup): Change unsigned to grub_uint16_t.
32533 (read_mft): Change unsigned long to grub_uint32_t.
32534 (read_attr): Likewise.
32535 (read_data): Likewise.
32536 (read_run_data): Likewise.
32537 (read_run_list): Likewise.
32538 (read_mft): Likewise.
32540 * fs/ntfscomp.c: New file.
32542 * include/grub/ntfs.h: New file.
32544 2007-12-16 Robert Millan <rmh@aybabtu.com>
32546 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
32547 IDE disk check, since Linux is known to support 20 IDE disks.
32548 Reported by Colin Watson.
32550 2007-12-15 Bean <bean123ch@gmail.com>
32552 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
32553 (lnxboot_img_SOURCES): New variable.
32554 (lnxboot_img_ASFLAGS): Likewise.
32555 (lnxboot_img_LDFLAGS): Likewise.
32557 * boot/i386/pc/lnxboot.S: New file.
32559 2007-11-24 Pavel Roskin <proski@gnu.org>
32561 * configure.ac: Test if '--build-id=none' is supported by the
32562 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
32563 objcopy to generate incorrect binary files (binutils
32564 2.17.50.0.18-1 as shipped by Fedora 8).
32565 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
32566 linking, so that build ID doesn't break the test.
32568 2007-11-24 Pavel Roskin <proski@gnu.org>
32570 * include/grub/i386/time.h: use "void" in the argument list
32571 of grub_cpu_idle().
32572 * include/grub/powerpc/time.h: Likewise.
32573 * include/grub/sparc64/time.h: Likewise.
32575 2007-11-18 Christian Franke <franke@computer.org>
32577 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
32578 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
32579 This fixes the problem that function keys did not work in grub-emu.
32581 2007-11-18 Christian Franke <franke@computer.org>
32583 * disk/host.c (grub_host_open): Remove attribute unused from
32584 name parameter. Add check for "host". This fixes the problem
32585 that grub-emu does not find partitions.
32587 2007-11-18 Christian Franke <franke@computer.org>
32589 * util/hostfs.c (is_dir): New function.
32590 (grub_hostfs_dir): Handle missing dirent.d_type case.
32591 (grub_hostfs_read): Add missing fseek().
32592 (grub_hostfs_label): Clear label pointer. This fixes a crash
32593 of grub-emu on "ls (host)".
32595 2007-11-18 Christian Franke <franke@computer.org>
32597 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
32598 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
32599 to 64 bit boundary by default.
32601 2007-11-18 Bean <bean123ch@gmail.com>
32603 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
32604 (hexdump_mod_SOURCES): New variable.
32605 (hexdump_mod_CFLAGS): Likewise.
32606 (hexdump_mod_LDFLAGS): Likewise.
32608 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32610 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32612 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32614 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32616 * include/grub/hexdump.h: New file.
32618 * commands/hexdump.c: New file.
32620 2007-11-10 Robert Millan <rmh@aybabtu.com>
32622 * commands/i386/pc/play.c (beep_off): Switch order of arguments
32623 in grub_outb() calls.
32624 (beep_on): Likewise.
32626 2007-11-10 Christian Franke <franke@computer.org>
32628 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
32629 (grub_menu_run): Likewise.
32631 2007-11-10 Robert Millan <rmh@aybabtu.com>
32633 * include/grub/i386/efi/machine.h: New file.
32634 * include/grub/i386/linuxbios/machine.h: Likewise.
32635 * include/grub/i386/pc/machine.h: Likewise.
32636 * include/grub/powerpc/ieee1275/machine.h: Likewise.
32637 * include/grub/sparc64/ieee1275/machine.h: Likewise.
32639 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
32640 (serial_hw_io_addr): New variable.
32641 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
32642 instead of `(unsigned short *) 0x400'.
32644 2007-11-10 Bean <bean123ch@gmail.com>
32646 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
32648 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
32650 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
32651 (vga_mod_SOURCES): Added.
32652 (vga_mod_CFLAGS): Likewise.
32653 (vga_mod_LDFLAGS): Likewise.
32655 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
32657 (set_map_mask): Likewise.
32658 (set_read_map): Likewise.
32659 (set_read_address): Likewise.
32660 (vga_font): Removed variable.
32661 (get_vga_glyph): Removed function.
32662 (invalidate_char): Likewise.
32663 (write_char): Changed to use grub_font_get_glyph() for font
32665 (grub_vga_putchar): Likewise.
32666 (grub_vga_getcharwidth): Likewise.
32668 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
32670 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
32672 (pxeboot_img_LDFLAGS): Likewise.
32673 (diskboot_img_LDFLAGS): Likewise.
32674 (kernel_img_LDFLAGS): Likewise.
32676 2007-11-06 Robert Millan <rmh@aybabtu.com>
32678 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
32679 in grub_outb() calls.
32680 (serial_hw_init): Likewise.
32682 2007-11-05 Robert Millan <rmh@aybabtu.com>
32684 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
32685 spaces. Skip non-regular files.
32687 2007-11-05 Robert Millan <rmh@aybabtu.com>
32689 * kern/disk.c (grub_disk_firmware_fini)
32690 (grub_disk_firmware_is_tainted): New variables.
32692 * include/grub/disk.h (grub_disk_firmware_fini)
32693 (grub_disk_firmware_is_tainted): Likewise.
32695 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
32696 (grub_disk_biosdisk_fini): ... to here.
32697 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
32698 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
32699 is set. Register grub_disk_biosdisk_fini() in
32700 `grub_disk_firmware_fini'.
32702 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
32703 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
32704 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
32705 to finish existing firmware disk interface.
32707 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
32708 (ata_mod_SOURCES): New variable.
32709 (ata_mod_CFLAGS): Likewise.
32710 (ata_mod_LDFLAGS): Likewise.
32712 2007-11-05 Robert Millan <rmh@aybabtu.com>
32714 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
32715 (grub_ata_wait): Reimplement using grub_millisleep().
32717 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
32718 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
32720 2007-11-03 Marco Gerards <marco@gnu.org>
32722 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
32723 (CRTC_ADDR_PORT): New macro.
32724 (CRTC_DATA_PORT): Likewise.
32725 (CRTC_CURSOR): Likewise.
32726 (CRTC_CURSOR_ADDR_HIGH): Likewise.
32727 (CRTC_CURSOR_ADDR_LOW): Likewise.
32728 (update_cursor): New function.
32729 (grub_console_real_putchar): Call `update_cursor'.
32730 (grub_console_gotoxy): Likewise.
32731 (grub_console_cls): Set the default color when clearing the
32733 (grub_console_setcursor): Implemented.
32735 2007-11-03 Marco Gerards <marco@gnu.org>
32737 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
32739 (grub_ata_pio_write): Likewise.
32741 (grub_atapi_identify): Wait after issuing an ATA command.
32742 (grub_atapi_packet): Likewise.
32743 (grub_ata_identify): Likewise.
32744 (grub_ata_readwrite): Likewise.
32746 2007-11-03 Marco Gerards <marco@gnu.org>
32748 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
32749 (grub_ata_pio_write): Likewise.
32750 (grub_ata_readwrite): Use `grub_error', instead of
32751 returning `grub_errno'.
32753 2007-11-03 Marco Gerards <marco@gnu.org>
32755 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
32756 grub_ata_pio_write once for every single sector, instead of for
32759 2007-10-31 Robert Millan <rmh@aybabtu.com>
32761 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
32763 * conf/i386-linuxbios.rmk: New file.
32765 * kern/i386/pc/hardware.c: Likewise.
32766 * term/i386/pc/at_keyboard.c: Likewise.
32767 * term/i386/pc/vga_text.c: Likewise.
32769 * include/grub/i386/linuxbios/boot.h: Likewise.
32770 * include/grub/i386/linuxbios/console.h: Likewise.
32771 * include/grub/i386/linuxbios/init.h: Likewise.
32772 * include/grub/i386/linuxbios/kernel.h: Likewise.
32773 * include/grub/i386/linuxbios/loader.h: Likewise.
32774 * include/grub/i386/linuxbios/memory.h: Likewise.
32775 * include/grub/i386/linuxbios/serial.h: Likewise.
32776 * include/grub/i386/linuxbios/time.h: Likewise.
32778 * kern/i386/linuxbios/init.c: Likewise.
32779 * kern/i386/linuxbios/startup.S: Likewise.
32780 * kern/i386/linuxbios/table.c: Likewise.
32782 2007-10-31 Marco Gerards <marco@gnu.org>
32784 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
32785 (ata_mod_SOURCES): New variable.
32786 (ata_mod_CFLAGS): Likewise.
32787 (ata_mod_LDFLAGS): Likewise.
32789 * disk/ata.c: New file.
32791 * include/grub/disk.h (grub_disk_dev_id): Add
32792 `GRUB_DISK_DEV_ATA_ID'.
32794 2007-10-31 Robert Millan <rmh@aybabtu.com>
32796 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
32797 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
32799 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
32800 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
32802 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
32805 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
32807 2007-10-27 Robert Millan <rmh@aybabtu.com>
32809 * include/grub/types.h (ULONG_MAX): Define macro.
32811 2007-10-22 Robert Millan <rmh@aybabtu.com>
32813 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
32815 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
32817 2007-10-22 Robert Millan <rmh@aybabtu.com>
32819 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
32820 (pkgdata_MODULES): Add `biosdisk.mod'.
32821 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
32824 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
32825 (grub_biosdisk_init): Replace with ...
32826 (GRUB_MOD_INIT(biosdisk)): ... this.
32827 (grub_biosdisk_fini): Replace with ...
32828 (GRUB_MOD_FINI(biosdisk)): ... this.
32830 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
32831 (grub_machine_init): Remove call to grub_biosdisk_init().
32832 (grub_machine_fini): Remove call to grub_machine_fini().
32834 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
32836 2007-10-22 Robert Millan <rmh@aybabtu.com>
32838 * include/grub/time.h: New file.
32839 * include/grub/i386/time.h: Likewise.
32840 * include/grub/powerpc/time.h: Likewise.
32841 * include/grub/sparc64/time.h: Likewise.
32843 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
32845 (KERNEL_MACHINE_TIME_HEADER): ... this.
32846 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
32848 (KERNEL_MACHINE_TIME_HEADER): ... this.
32849 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
32851 (KERNEL_MACHINE_TIME_HEADER): ... this.
32853 * kern/i386/efi/init.c: Include `<grub/time.h>'.
32854 (grub_millisleep): New function.
32855 * kern/i386/pc/init.c: Include `<grub/time.h>'.
32856 (grub_millisleep): New function.
32857 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
32858 Remove `grub/machine/time.h' include.
32859 (grub_millisleep): New function.
32860 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
32861 Remove `grub/machine/time.h' include.
32862 (grub_millisleep): New function.
32864 * include/grub/misc.h (grub_div_roundup): New function.
32866 * kern/misc.c: Include `<grub/time.h>'.
32867 (grub_millisleep_generic): New function.
32869 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
32871 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
32873 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
32874 `machine/time.h'. Add `time.h'.
32875 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
32877 2007-10-21 Robert Millan <rmh@aybabtu.com>
32879 * include/grub/misc.h (grub_max): New function.
32881 2007-10-21 Robert Millan <rmh@aybabtu.com>
32883 * util/misc.c (grub_util_info): Call fflush() before returning.
32885 2007-10-20 Robert Millan <rmh@aybabtu.com>
32887 * genmk.rb (Image): Copy `extra_flags' from here ...
32888 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
32890 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
32891 to `argc' and `args' arguments.
32893 2007-10-17 Robert Millan <rmh@aybabtu.com>
32895 * kern/i386/loader.S: New file.
32897 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
32898 * kern/i386/loader.S (grub_linux_prot_size)... to here.
32899 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
32900 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
32901 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
32902 * kern/i386/loader.S (grub_linux_real_addr)... to here.
32903 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
32904 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
32905 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
32906 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
32907 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
32908 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
32909 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
32910 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
32912 * kern/i386/realmode.S: New file.
32914 * kern/i386/pc/startup.S (protstack): Moved from here ...
32915 * kern/i386/realmode.S (protstack)... to here.
32916 * kern/i386/pc/startup.S (gdt): Moved from here ...
32917 * kern/i386/realmode.S (gdt)... to here.
32918 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
32919 * kern/i386/realmode.S (prot_to_real)... to here.
32921 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
32922 `kern/i386/realmode.S'.
32924 2007-10-17 Robert Millan <rmh@aybabtu.com>
32926 * include/grub/i386/loader.h: New file.
32928 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
32929 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
32930 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
32931 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
32932 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
32933 * include/grub/i386/loader.h (grub_linux_prot_size)
32934 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
32935 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
32936 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
32937 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
32939 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
32941 2007-10-15 Robert Millan <rmh@aybabtu.com>
32943 * normal/misc.c (grub_normal_print_device_info): Do not probe for
32944 filesystem when dev->disk is unset.
32945 Do probe for filesystem even when dev->disk->has_partitions is set.
32946 In case a filesystem is found, always report it.
32947 In case it isn't, if dev->disk->has_partitions is set, report that
32948 a partition table was found instead of reporting that no filesystem
32949 could be identified.
32951 2007-10-12 Robert Millan <rmh@aybabtu.com>
32953 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
32954 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
32956 * include/grub/types.h (grub_host_to_target16): New macro.
32957 (grub_host_to_target32): Likewise.
32958 (grub_host_to_target64): Likewise.
32959 (grub_target_to_host16): Likewise.
32960 (grub_target_to_host32): Likewise.
32961 (grub_target_to_host64): Likewise.
32963 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
32964 Renamed from to ...
32965 (GRUB_MOD_ALIGN): ...this. Update all users.
32967 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
32968 grub_host_to_target32.
32969 Replace grub_be_to_cpu32 with grub_target_to_host32.
32970 (load_modules): Likewise.
32971 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
32972 Replace grub_be_to_cpu32 with grub_target_to_host32.
32973 Replace grub_cpu_to_be16 with grub_host_to_target16.
32974 Replace grub_cpu_to_be32 grub_host_to_target32.
32976 2007-10-12 Robert Millan <rmh@aybabtu.com>
32978 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
32979 * util/elf/grub-mkimage.c: ... here.
32981 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
32982 `util/powerpc/ieee1275/grub-mkimage.c'.
32984 2007-10-07 Robert Millan <rmh@aybabtu.com>
32986 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
32987 and make it easier to figure out.
32988 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
32989 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
32990 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
32991 leave us with less than HEAP_MIN_SIZE total heap.
32992 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
32994 2007-10-03 Robert Millan <rmh@aybabtu.com>
32996 * include/grub/i386/io.h: New file.
32997 * commands/i386/pc/play.c (inb): Removed.
32999 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
33001 * term/i386/pc/serial.c (inb): Removed.
33003 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
33005 * term/i386/pc/vga.c (inb): Removed.
33007 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
33010 2007-10-02 Robert Millan <rmh@aybabtu.com>
33012 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
33013 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33014 Reported by Marcin Kurek.
33016 2007-09-07 Robert Millan <rmh@aybabtu.com>
33018 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
33019 SmartFirmware version updates (as released by Sven Luther), and avoid
33020 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
33021 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
33024 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
33026 From Hitoshi Ozeki:
33027 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
33028 when merging two regions.
33030 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
33032 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
33033 * normal/completion.c (grub_normal_do_completion): Likewise.
33034 Reported by Hitoshi Ozeki.
33036 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
33038 Do not use devices at boot in chainloading.
33040 * loader/i386/pc/chainloader.c (boot_drive): New variable.
33041 (boot_part_addr): Likewise.
33042 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
33043 with BOOT_DRIVE and BOOT_PART_ADDR.
33044 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
33045 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
33047 2007-08-29 Robert Millan <rmh@aybabtu.com>
33049 Patch from Simon Peter <dn.tlp@gmx.net>:
33050 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
33051 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
33052 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
33053 util/i386/pc/grub-setup.c_DEPENDENCIES.
33054 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
33055 util/grub-probe.c_DEPENDENCIES.
33056 * conf/powerpc-ieee1275.rmk: Likewise.
33058 2007-08-28 Robert Millan <rmh@aybabtu.com>
33060 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
33061 to tell grub-mkdevicemap how to name devices.
33062 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
33065 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
33066 util/i386/get_disk_name.c.
33067 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
33068 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
33069 util/ieee1275/get_disk_name.c.
33071 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
33073 * DISTLIST: Add util/i386/get_disk_name.c and
33074 util/ieee1275/get_disk_name.c.
33076 * util/grub-mkdevicemap.c: Replace device naming logic with
33077 grub_util_get_disk_name() calls.
33079 2007-08-20 Robert Millan <rmh@aybabtu.com>
33081 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
33082 (so that it works for both plural and singular quantities).
33084 2007-08-05 Robert Millan <rmh@aybabtu.com>
33086 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
33087 so that [xz] isn't taken into account when determining order.
33089 2007-08-02 Marco Gerards <marco@gnu.org>
33091 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
33092 `include/multiboot2.h', `include/grub/elfload.h',
33093 `include/multiboot.h', `include/grub/multiboot.h',
33094 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
33095 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
33096 `kern/elf.c', `loader/multiboot_loader.c',
33097 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
33098 `loader/i386/pc/multiboot2.c',
33099 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
33100 `util/i386/pc/grub-mkrescue.in'. Remove
33101 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
33102 `include/grub/i386/pc/util/biosdisk.h' and
33103 `include/grub/powerpc/ieee1275/multiboot.h'.
33105 2007-08-02 Bean <bean123ch@gmail.com>
33107 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
33108 (ntfs_mod_SOURCES): New variable.
33109 (ntfs_mod_CFLAGS): Likewise.
33110 (ntfs_mod_LDFLAGS): Likewise.
33112 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
33113 (grub_probe_SOURCES): Likewise.
33114 (grub_emu_SOURCES): Likewise.
33116 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
33117 (grub_emu_SOURCES): Likewise.
33119 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
33120 (grub_emu_SOURCES): Likewise.
33122 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
33124 * fs/ntfs.c: New file.
33126 2007-08-02 Bean <bean123ch@gmail.com>
33128 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
33130 * file.h (grub_file): Likewise.
33132 * fshelp.h (grub_fshelp_read_file): Likewise.
33134 * util/i386/pc/grub-setup.c (setup): Likewise.
33135 (save_first_sector): Likewise.
33136 (save_blocklists): Likewise.
33138 * fs/affs.c (grub_affs_read_file): Likewise.
33140 * fs/ext2.c (grub_ext2_read_file): Likewise.
33142 * fs/fat.c (grub_fat_read_data): Likewise.
33144 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
33146 * fs/hfs.c (grub_hfs_read_file): Likewise.
33148 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
33150 * fs/jfs.c (grub_jfs_read_file): Likewise.
33152 * fs/minix.c (grub_minix_read_file): Likewise.
33154 * fs/sfs.c (grub_sfs_read_file): Likewise.
33156 * fs/ufs.c (grub_ufs_read_file): Likewise.
33158 * fs/xfs.c (grub_xfs_read_file): Likewise.
33160 * command/blocklist.c (read_blocklist): Likewise.
33161 (print_blocklist): Likewise.
33163 2007-08-02 Marco Gerards <marco@gnu.org>
33165 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
33168 * disk/host.c: New file.
33170 * util/hostfs.c: Likewise.
33172 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
33173 return `GRUB_ERR_BAD_FS'.
33174 * fs/sfs.c (grub_sfs_mount): Likewise.
33175 * fs/xfs.c (grub_xfs_mount): Likewise.
33177 * include/grub/disk.h (enum grub_disk_dev_id): Add
33178 `GRUB_DISK_DEVICE_HOST_ID'.
33180 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
33182 2007-07-24 Jerone Young <jerone@gmail.com>
33184 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
33185 modules for compilation.
33186 * conf/powerpc-ieee1275.rmk: Likewise.
33188 * include/multiboot.h: Move multiboot definitions to one file. Rename
33189 many definitions to not get grub specific.
33190 * include/multiboot2.h: Create header with multiboot 2 definitions.
33191 * include/grub/multiboot.h: Header for grub specific function
33192 prototypes and definitions.
33193 * include/grub/multiboot2.h: Likewise.
33194 * include/grub/multiboot_loader.h: Likewise.
33195 * include/grub/i386/pc/multiboot.h: Removed.
33196 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
33198 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
33199 and 2 to allow for one multiboot and module commands.
33200 * loader/multiboot2.c: Add multiboot2 functionality.
33201 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
33202 and definition names.
33203 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
33205 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
33206 ieee1275 specific multiboot2 code.
33208 * kern/i386/pc/startup.S: Change headers and definition names for
33209 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
33211 2007-07-22 Robert Millan <rmh@aybabtu.com>
33213 * geninitheader.sh: Process file specified in first parameter rather
33214 than hardcoding grub_modules_init.lst.
33215 * geninit.sh: Likewise. Also, construct header name dynamically rather
33216 than hardcoding grub_modules_init.h.
33218 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
33219 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
33220 grub_probe_init.[ch] and grub_setup_init.[ch].
33222 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
33223 grub_modules_init.h with grub_emu_init.h.
33224 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
33225 grub_probe_init.[ch] files.
33226 * conf/i386-efi.rmk: Likewise.
33227 * conf/i386-pc.rmk: Likewise.
33228 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
33229 grub_setup_init.[ch] files.
33231 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
33232 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
33233 to initialize modules rather than a list of hardcoded functions.
33234 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
33235 grub_init_all() to initialize modules rather than a list of hardcoded
33238 2007-07-22 Robert Millan <rmh@aybabtu.com>
33240 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
33241 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
33243 2007-07-22 Robert Millan <rmh@aybabtu.com>
33245 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
33246 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
33247 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
33248 flag when running on SmartFirmware.
33249 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
33250 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
33253 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
33254 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
33255 rather than decreasing it.
33257 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
33258 there's not enough space to do it, fail in the same way as when it
33259 can't be done because there are no partitions.
33261 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
33262 when nvsetenv failed.
33264 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
33266 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
33267 because this rule is automatically generated.
33268 (grub-mkrescue): Removed for the same reason as above.
33270 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
33272 Migrate to GNU General Public License Version 3.
33274 * COPYING: Replaced with the plain text version of GPLv3.
33276 * config.guess: Updated from gnulib.
33277 * config.sub: Likewise.
33279 * geninit.sh: Output a GPLv3 copyright notice.
33280 * geninitheader.sh: Likewise.
33281 * genmodsrc.sh: Likewise.
33282 * gensymlist.sh.in: Likewise.
33284 * boot/i386/pc/boot.S: Upgraded to GPLv3.
33285 * boot/i386/pc/diskboot.S: Likewise.
33286 * boot/i386/pc/pxeboot.S: Likewise.
33287 * commands/blocklist.c: Likewise.
33288 * commands/boot.c: Likewise.
33289 * commands/cat.c: Likewise.
33290 * commands/cmp.c: Likewise.
33291 * commands/configfile.c: Likewise.
33292 * commands/echo.c: Likewise.
33293 * commands/help.c: Likewise.
33294 * commands/ls.c: Likewise.
33295 * commands/search.c: Likewise.
33296 * commands/terminal.c: Likewise.
33297 * commands/test.c: Likewise.
33298 * commands/videotest.c: Likewise.
33299 * commands/i386/cpuid.c: Likewise.
33300 * commands/i386/pc/halt.c: Likewise.
33301 * commands/i386/pc/play.c: Likewise.
33302 * commands/i386/pc/reboot.c: Likewise.
33303 * commands/i386/pc/vbeinfo.c: Likewise.
33304 * commands/i386/pc/vbetest.c: Likewise.
33305 * commands/ieee1275/halt.c: Likewise.
33306 * commands/ieee1275/reboot.c: Likewise.
33307 * commands/ieee1275/suspend.c: Likewise.
33308 * disk/loopback.c: Likewise.
33309 * disk/lvm.c: Likewise.
33310 * disk/raid.c: Likewise.
33311 * disk/efi/efidisk.c: Likewise.
33312 * disk/i386/pc/biosdisk.c: Likewise.
33313 * disk/ieee1275/ofdisk.c: Likewise.
33314 * font/manager.c: Likewise.
33315 * fs/affs.c: Likewise.
33316 * fs/ext2.c: Likewise.
33317 * fs/fat.c: Likewise.
33318 * fs/fshelp.c: Likewise.
33319 * fs/hfs.c: Likewise.
33320 * fs/hfsplus.c: Likewise.
33321 * fs/iso9660.c: Likewise.
33322 * fs/jfs.c: Likewise.
33323 * fs/minix.c: Likewise.
33324 * fs/sfs.c: Likewise.
33325 * fs/ufs.c: Likewise.
33326 * fs/xfs.c: Likewise.
33327 * hello/hello.c: Likewise.
33328 * include/grub/acorn_filecore.h: Likewise.
33329 * include/grub/arg.h: Likewise.
33330 * include/grub/bitmap.h: Likewise.
33331 * include/grub/boot.h: Likewise.
33332 * include/grub/cache.h: Likewise.
33333 * include/grub/device.h: Likewise.
33334 * include/grub/disk.h: Likewise.
33335 * include/grub/dl.h: Likewise.
33336 * include/grub/elfload.h: Likewise.
33337 * include/grub/env.h: Likewise.
33338 * include/grub/err.h: Likewise.
33339 * include/grub/file.h: Likewise.
33340 * include/grub/font.h: Likewise.
33341 * include/grub/fs.h: Likewise.
33342 * include/grub/fshelp.h: Likewise.
33343 * include/grub/gzio.h: Likewise.
33344 * include/grub/hfs.h: Likewise.
33345 * include/grub/kernel.h: Likewise.
33346 * include/grub/loader.h: Likewise.
33347 * include/grub/lvm.h: Likewise.
33348 * include/grub/misc.h: Likewise.
33349 * include/grub/mm.h: Likewise.
33350 * include/grub/net.h: Likewise.
33351 * include/grub/normal.h: Likewise.
33352 * include/grub/parser.h: Likewise.
33353 * include/grub/partition.h: Likewise.
33354 * include/grub/pc_partition.h: Likewise.
33355 * include/grub/raid.h: Likewise.
33356 * include/grub/rescue.h: Likewise.
33357 * include/grub/script.h: Likewise.
33358 * include/grub/setjmp.h: Likewise.
33359 * include/grub/symbol.h: Likewise.
33360 * include/grub/term.h: Likewise.
33361 * include/grub/terminfo.h: Likewise.
33362 * include/grub/tparm.h: Likewise.
33363 * include/grub/types.h: Likewise.
33364 * include/grub/video.h: Likewise.
33365 * include/grub/efi/api.h: Likewise.
33366 * include/grub/efi/chainloader.h: Likewise.
33367 * include/grub/efi/console.h: Likewise.
33368 * include/grub/efi/console_control.h: Likewise.
33369 * include/grub/efi/disk.h: Likewise.
33370 * include/grub/efi/efi.h: Likewise.
33371 * include/grub/efi/pe32.h: Likewise.
33372 * include/grub/efi/time.h: Likewise.
33373 * include/grub/i386/linux.h: Likewise.
33374 * include/grub/i386/setjmp.h: Likewise.
33375 * include/grub/i386/types.h: Likewise.
33376 * include/grub/i386/efi/kernel.h: Likewise.
33377 * include/grub/i386/efi/loader.h: Likewise.
33378 * include/grub/i386/efi/time.h: Likewise.
33379 * include/grub/i386/pc/biosdisk.h: Likewise.
33380 * include/grub/i386/pc/boot.h: Likewise.
33381 * include/grub/i386/pc/chainloader.h: Likewise.
33382 * include/grub/i386/pc/console.h: Likewise.
33383 * include/grub/i386/pc/init.h: Likewise.
33384 * include/grub/i386/pc/kernel.h: Likewise.
33385 * include/grub/i386/pc/loader.h: Likewise.
33386 * include/grub/i386/pc/memory.h: Likewise.
33387 * include/grub/i386/pc/multiboot.h: Likewise.
33388 * include/grub/i386/pc/serial.h: Likewise.
33389 * include/grub/i386/pc/time.h: Likewise.
33390 * include/grub/i386/pc/vbe.h: Likewise.
33391 * include/grub/i386/pc/vbeblit.h: Likewise.
33392 * include/grub/i386/pc/vbefill.h: Likewise.
33393 * include/grub/i386/pc/vbeutil.h: Likewise.
33394 * include/grub/i386/pc/vga.h: Likewise.
33395 * include/grub/ieee1275/ieee1275.h: Likewise.
33396 * include/grub/ieee1275/ofdisk.h: Likewise.
33397 * include/grub/powerpc/libgcc.h: Likewise.
33398 * include/grub/powerpc/setjmp.h: Likewise.
33399 * include/grub/powerpc/types.h: Likewise.
33400 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
33401 * include/grub/powerpc/ieee1275/console.h: Likewise.
33402 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
33403 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33404 * include/grub/powerpc/ieee1275/loader.h: Likewise.
33405 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
33406 * include/grub/powerpc/ieee1275/time.h: Likewise.
33407 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
33408 * include/grub/sparc64/libgcc.h: Likewise.
33409 * include/grub/sparc64/setjmp.h: Likewise.
33410 * include/grub/sparc64/types.h: Likewise.
33411 * include/grub/sparc64/ieee1275/console.h: Likewise.
33412 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
33413 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33414 * include/grub/sparc64/ieee1275/time.h: Likewise.
33415 * include/grub/util/biosdisk.h: Likewise.
33416 * include/grub/util/getroot.h: Likewise.
33417 * include/grub/util/lvm.h: Likewise.
33418 * include/grub/util/misc.h: Likewise.
33419 * include/grub/util/raid.h: Likewise.
33420 * include/grub/util/resolve.h: Likewise.
33421 * io/gzio.c: Likewise.
33422 * kern/device.c: Likewise.
33423 * kern/disk.c: Likewise.
33424 * kern/dl.c: Likewise.
33425 * kern/elf.c: Likewise.
33426 * kern/env.c: Likewise.
33427 * kern/err.c: Likewise.
33428 * kern/file.c: Likewise.
33429 * kern/fs.c: Likewise.
33430 * kern/loader.c: Likewise.
33431 * kern/main.c: Likewise.
33432 * kern/misc.c: Likewise.
33433 * kern/mm.c: Likewise.
33434 * kern/parser.c: Likewise.
33435 * kern/partition.c: Likewise.
33436 * kern/rescue.c: Likewise.
33437 * kern/term.c: Likewise.
33438 * kern/efi/efi.c: Likewise.
33439 * kern/efi/init.c: Likewise.
33440 * kern/efi/mm.c: Likewise.
33441 * kern/i386/dl.c: Likewise.
33442 * kern/i386/efi/init.c: Likewise.
33443 * kern/i386/efi/startup.S: Likewise.
33444 * kern/i386/pc/init.c: Likewise.
33445 * kern/i386/pc/lzo1x.S: Likewise.
33446 * kern/i386/pc/startup.S: Likewise.
33447 * kern/ieee1275/ieee1275.c: Likewise.
33448 * kern/powerpc/cache.S: Likewise.
33449 * kern/powerpc/dl.c: Likewise.
33450 * kern/powerpc/ieee1275/cmain.c: Likewise.
33451 * kern/powerpc/ieee1275/crt0.S: Likewise.
33452 * kern/powerpc/ieee1275/init.c: Likewise.
33453 * kern/powerpc/ieee1275/openfw.c: Likewise.
33454 * kern/sparc64/cache.S: Likewise.
33455 * kern/sparc64/dl.c: Likewise.
33456 * kern/sparc64/ieee1275/init.c: Likewise.
33457 * kern/sparc64/ieee1275/openfw.c: Likewise.
33458 * loader/efi/chainloader.c: Likewise.
33459 * loader/efi/chainloader_normal.c: Likewise.
33460 * loader/i386/efi/linux.c: Likewise.
33461 * loader/i386/efi/linux_normal.c: Likewise.
33462 * loader/i386/pc/chainloader.c: Likewise.
33463 * loader/i386/pc/chainloader_normal.c: Likewise.
33464 * loader/i386/pc/linux.c: Likewise.
33465 * loader/i386/pc/linux_normal.c: Likewise.
33466 * loader/i386/pc/multiboot.c: Likewise.
33467 * loader/i386/pc/multiboot_normal.c: Likewise.
33468 * loader/powerpc/ieee1275/linux.c: Likewise.
33469 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33470 * normal/arg.c: Likewise.
33471 * normal/cmdline.c: Likewise.
33472 * normal/command.c: Likewise.
33473 * normal/completion.c: Likewise.
33474 * normal/execute.c: Likewise.
33475 * normal/function.c: Likewise.
33476 * normal/lexer.c: Likewise.
33477 * normal/main.c: Likewise.
33478 * normal/menu.c: Likewise.
33479 * normal/menu_entry.c: Likewise.
33480 * normal/misc.c: Likewise.
33481 * normal/parser.y: Likewise.
33482 * normal/script.c: Likewise.
33483 * normal/i386/setjmp.S: Likewise.
33484 * normal/powerpc/setjmp.S: Likewise.
33485 * normal/sparc64/setjmp.S: Likewise.
33486 * partmap/acorn.c: Likewise.
33487 * partmap/amiga.c: Likewise.
33488 * partmap/apple.c: Likewise.
33489 * partmap/gpt.c: Likewise.
33490 * partmap/pc.c: Likewise.
33491 * partmap/sun.c: Likewise.
33492 * term/gfxterm.c: Likewise.
33493 * term/terminfo.c: Likewise.
33494 * term/efi/console.c: Likewise.
33495 * term/i386/pc/console.c: Likewise.
33496 * term/i386/pc/serial.c: Likewise.
33497 * term/i386/pc/vesafb.c: Likewise.
33498 * term/i386/pc/vga.c: Likewise.
33499 * term/ieee1275/ofconsole.c: Likewise.
33500 * util/biosdisk.c: Likewise.
33501 * util/console.c: Likewise.
33502 * util/genmoddep.c: Likewise.
33503 * util/getroot.c: Likewise.
33504 * util/grub-emu.c: Likewise.
33505 * util/grub-mkdevicemap.c: Likewise.
33506 * util/grub-probe.c: Likewise.
33507 * util/lvm.c: Likewise.
33508 * util/misc.c: Likewise.
33509 * util/raid.c: Likewise.
33510 * util/resolve.c: Likewise.
33511 * util/update-grub.in: Likewise.
33512 * util/update-grub_lib.in: Likewise.
33513 * util/grub.d/00_header.in: Likewise.
33514 * util/grub.d/10_hurd.in: Likewise.
33515 * util/grub.d/10_linux.in: Likewise.
33516 * util/i386/efi/grub-install.in: Likewise.
33517 * util/i386/efi/grub-mkimage.c: Likewise.
33518 * util/i386/pc/grub-install.in: Likewise.
33519 * util/i386/pc/grub-mkimage.c: Likewise.
33520 * util/i386/pc/grub-mkrescue.in: Likewise.
33521 * util/i386/pc/grub-setup.c: Likewise.
33522 * util/i386/pc/misc.c: Likewise.
33523 * util/powerpc/ieee1275/grub-install.in: Likewise.
33524 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
33525 * util/powerpc/ieee1275/misc.c: Likewise.
33526 * video/bitmap.c: Likewise.
33527 * video/video.c: Likewise.
33528 * video/i386/pc/vbe.c: Likewise.
33529 * video/i386/pc/vbeblit.c: Likewise.
33530 * video/i386/pc/vbefill.c: Likewise.
33531 * video/i386/pc/vbeutil.c: Likewise.
33532 * video/readers/tga.c: Likewise.
33534 2007-07-02 Robert Millan <rmh@aybabtu.com>
33536 * conf/i386-efi.rmk: Replace obsolete reference to
33537 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
33538 with util/getroot.c.
33539 * conf/powerpc-ieee1275.rmk: Likewise.
33540 * conf/sparc64-ieee1275.rmk: Likewise.
33542 * util/grub-emu.c (main): Fix unchecked pointer handling.
33544 2007-07-02 Robert Millan <rmh@aybabtu.com>
33546 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
33547 invocation to fail, in order to support partition-less media.
33549 * util/i386/pc/grub-install.in: Likewise.
33551 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
33552 which fs or partmap modules are needed (akin to its sister scripts).
33554 Also use grub-probe to get rid of unportable /proc/mounts check.
33556 Print the same informational message that the other scripts do, before
33559 2007-06-23 Robert Millan <rmh@aybabtu.com>
33561 * util/update-grub_lib.in (font_path): New function. Determine whether
33562 a font file can be found and, if so, echo the GRUB path to it.
33564 * util/update-grub.in: Handle multiple terminals depending on user
33565 input, platform availability and font file presence. Propagate
33566 variables of our findings to /etc/grub.d/ children.
33568 * util/grub.d/00_header.in: Handle multiple terminals, based on
33569 environment setup by update-grub.
33571 2007-06-23 Robert Millan <rmh@aybabtu.com>
33573 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
33575 2007-06-21 Robert Millan <rmh@aybabtu.com>
33577 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
33578 indicate end of data section in kernel image.
33579 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
33580 GRUB_KERNEL_MACHINE_DATA_END.
33582 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
33584 * kern/i386/efi/startup.S: Likewise.
33586 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
33587 during image generation. Implement --prefix option to override this
33589 * util/i386/efi/grub-mkimage.c: Likewise.
33591 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
33592 code to make path relative to its root into a separate function.
33594 * util/i386/pc/grub-install.in: Use newly provided
33595 make_system_path_relative_to_its_root() to convert ${grubdir}, then
33596 pass the result to grub-install --prefix.
33598 2007-06-13 Robert Millan <rmh@aybabtu.com>
33600 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
33601 DEFAULT_DEVICE_MAP.
33602 * util/grub-emu.c: Use above definitions from misc.h instead of
33604 * util/grub-mkdevicemap.c: Likewise.
33605 * util/i386/pc/grub-setup.c: Likewise.
33606 * util/grub-probe.c: Likewise.
33607 (probe): Abort with grub_util_error() when either
33608 grub_guess_root_device or grub_util_get_grub_dev fails.
33610 2007-06-12 Robert Millan <rmh@aybabtu.com>
33612 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
33613 "pager" assignment.
33614 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
33616 * util/grub-probe.c (probe): Likewise for "drive_name".
33618 2007-06-11 Robert Millan <rmh@aybabtu.com>
33620 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
33621 not just the cdrom one.
33623 2007-06-11 Robert Millan <rmh@aybabtu.com>
33625 * util/i386/pc/grub-mkrescue.in: Add "set -e".
33626 Add --pkglibdir=DIR option to override pkglibdir.
33627 Mention --image-type=TYPE in help output.
33628 Fix --grub-mkimage (it was a no-op).
33629 Abort gracefully when no parameter is given.
33631 2007-06-11 Robert Millan <rmh@aybabtu.com>
33633 * util/i386/pc/grub-mkrescue.in: New file.
33634 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
33635 * Makefile.in: Handle bin_SCRIPTS.
33637 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
33639 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
33640 list of video modes.
33642 2007-06-06 Robert Millan <rmh@aybabtu.com>
33644 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
33645 file doesn't exist, or if it is in a filesystem grub can't read.
33647 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
33648 not abort if GRUB_DRIVE could not be defined. Rearrange generated
33649 header comment to fit in 80 columns when the variables are resolved.
33651 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
33652 could be identified by update-grub. Remove redundant check for
33653 unifont.pff existence (since convert_system_path_to_grub_path now
33656 2007-06-04 Robert Millan <rmh@aybabtu.com>
33658 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
33660 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
33662 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
33664 2007-06-04 Robert Millan <rmh@aybabtu.com>
33666 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
33668 * include/grub/partition.h: Declare grub_apple_partition_map_init and
33669 grub_apple_partition_map_fini.
33672 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
33673 to access >2 TiB disks).
33675 Print disk->total_sectors with %llu instead of %lu, since this
33676 variable is always 64-bit (prevents wrong disk size from being displayed
33677 on either >2 TiB disk or big-endian CPU).
33679 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
33680 into a generic case that supports all (sane) partition maps.
33682 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
33685 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
33686 and grub_apple_partition_map_fini() after that.
33688 2007-06-01 Robert Millan <rmh@aybabtu.com>
33690 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
33692 * util/grub.d/00_header.in: Only enable gfxterm when
33693 convert_system_path_to_grub_path() succeeds.
33695 2007-05-20 Robert Millan <rmh@aybabtu.com>
33697 * util/update-grub_lib.in: New file.
33698 * DISTLIST: Add update-grub_lib.in.
33699 * conf/common.rmk: Generate update-grub_lib and install it in
33701 * Makefile.in: Add install routine for $(lib_DATA).
33703 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
33704 function provided by update-grub_lib to support arbitrary paths of
33706 * util/update-grub.in: Use convert_system_path_to_grub_path() to
33707 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
33709 2007-05-19 Robert Millan <rmh@aybabtu.com>
33711 * commands/i386/cpuid.c: New module.
33712 * DISTLIST: Add it.
33713 * conf/i386-efi.rmk: Enable cpuid.mod.
33714 * conf/i386-pc.rmk: Likewise.
33716 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
33718 * kern/disk.c (grub_disk_read): Check return value of
33721 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
33723 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
33725 * disk/raid.c (grub_raid_open): Likewise.
33727 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
33729 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
33730 stack instead of on the heap.
33732 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
33733 before doing a read on it.
33735 * configure.ac: Only use -fno-stack-protector for the target
33738 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
33740 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
33741 __attribute_ ((unused)) to mode_type argument.
33743 * util/getroot.c (grub_guess_root_device): Fix #endif.
33745 * kern/misc.c (memcmp): Fix prototype.
33747 * include/grub/partition.h [GRUB_UTIL]
33748 (grub_gpt_partition_map_init): Add prototype.
33749 (grub_gpt_partition_map_fini): Likewise.
33751 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
33752 at the right place.
33754 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
33755 (grub_fat_read_data): Likewise.
33756 (grub_fat_find_dir): Likewise.
33758 * font/manager.c (find_glyph): Make table a const.
33759 (grub_font_get_glyph): Remove bitmap from if statement.
33761 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
33763 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
33764 code, first search for device in /dev/mapper, then in /dev.
33765 (grub_util_get_grub_dev): New function.
33766 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
33768 * util/grub-probe.c (probe): Remove check for RAID, call
33769 grub_util_get_grub_dev() instead of
33770 grub_util_biosdisk_get_grub_dev().
33771 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
33772 grub_util_biosdisk_get_grub_dev().
33773 * util/i386/pc/grub-setup.c (main): Likewise.
33775 2007-05-16 Robert Millan <rmh@aybabtu.com>
33777 * DISTLIST: Update for the latest changes.
33778 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
33779 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
33780 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
33781 grub/util/biosdisk.h.
33782 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
33783 grub/util/biosdisk.h.
33785 2007-05-16 Robert Millan <rmh@aybabtu.com>
33787 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
33789 2007-05-16 Robert Millan <rmh@aybabtu.com>
33791 * util/i386/efi/grub-install.in: New.
33792 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
33793 newly added grub-install.
33794 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
33796 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
33797 grub/util/biosdisk.h.
33798 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
33799 grub/util/biosdisk.h.
33801 2007-05-16 Robert Millan <rmh@aybabtu.com>
33803 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
33804 * include/grub/util/biosdisk.h: ... here.
33805 * util/i386/pc/biosdisk.c: Moved to ...
33806 * util/biosdisk.c: ... here.
33807 * util/i386/pc/getroot.c: Moved to ...
33808 * util/getroot.c: ... here.
33809 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
33810 * util/grub-mkdevicemap.c: ... here.
33811 * util/i386/pc/grub-probe.c: Moved to ...
33812 * util/grub-probe.c: ... here.
33814 2007-05-15 Robert Millan <rmh@aybabtu.com>
33816 * util/update-grub.in: Remove duplicated line in grub.cfg header
33819 2007-05-13 Robert Millan <rmh@aybabtu.com>
33821 * util/update-grub.in: Fix a few assumptions about the devices holding
33822 /, /boot and /boot/grub being the same.
33823 * util/grub.d/00_header.in: Likewise.
33824 * util/grub.d/10_hurd.in: Likewise.
33825 * util/grub.d/10_linux.in: Likewise.
33827 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
33828 patterns. Use that to define the `.old' suffix as older than `'.
33830 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
33832 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
33833 the grub.cfg header message.
33835 2007-05-11 Robert Millan <rmh@aybabtu.com>
33837 * util/update-grub.in: Create device.map if it doesn't already exist,
33838 before attempting to run grub-probe.
33839 Check for grub-probe and grub-mkdevicemap with the same code
33840 grub-install is using.
33843 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
33845 * Makefile.in: Add the datarootdir autoconf variable.
33847 2007-05-09 Robert Millan <rmh@aybabtu.com>
33849 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
33850 fail gracefully if dev->disk->partition == NULL.
33852 2007-05-07 Robert Millan <rmh@aybabtu.com>
33854 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
33855 determine partition map module.
33856 * util/i386/pc/grub-install.in: Use this feature to decide which
33857 partition module to load, instead of hardcoding pc and gpt.
33859 2007-05-07 Robert Millan <rmh@aybabtu.com>
33861 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
33862 source directory differs from build directory.
33864 2007-05-05 Robert Millan <rmh@aybabtu.com>
33866 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
33869 2007-05-05 Robert Millan <rmh@aybabtu.com>
33871 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
33873 2007-05-05 Robert Millan <rmh@aybabtu.com>
33875 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
33876 command-line arguments via ${GRUB_CMDLINE_LINUX}.
33878 2007-05-05 Robert Millan <rmh@aybabtu.com>
33880 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
33881 (grub_probe_SOURCES): Likewise.
33882 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
33883 GPT and initialize dos_part and bsd_part accordingly.
33884 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
33886 (main): Activate gpt module for use during partition identification,
33887 and deactivate it afterwards.
33888 * util/i386/pc/grub-install.in: Add gpt module to core.img.
33889 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
33890 partition identification, and deactivate it afterwards.
33892 2007-05-05 Robert Millan <rmh@aybabtu.com>
33894 * term/i386/pc/console.c (grub_console_fini): Call
33895 grub_term_set_current() before grub_term_unregister().
33897 2007-05-04 Robert Millan <rmh@aybabtu.com>
33899 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
33900 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
33901 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
33902 and update-grub_DATA.
33903 * conf/common.rmk: Build and install update-grub components.
33904 * conf/common.mk: Regenerate.
33905 * util/update-grub.in: New. Core of update-grub.
33906 * util/grub.d/00_header.in: New. Generates grub.cfg header.
33907 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
33908 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
33909 * util/grub.d/README: New. Document grub.d directory layout.
33911 2007-05-01 Robert Millan <rmh@aybabtu.com>
33913 * util/grub-emu.c: Move initialization functions
33914 grub_util_biosdisk_init() and grub_init_all() before
33915 grub_util_biosdisk_get_grub_dev(), which relies on them.
33917 2007-04-19 Robert Millan <rmh@aybabtu.com>
33919 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
33922 2007-04-18 Jerone Young <jerone@gmail.com>
33924 * kernel/elf.c: Add missing parenthesis for conditional statement
33927 2007-04-10 Jerone Young <jerone@gmail.com>
33929 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
33930 continue on and look for device node with real device name.
33932 2007-04-10 Jerone Young <jerone@gmail.com>
33934 * configure.ac: Add argument for autoconf to use transformation
33936 * Makefile.in: Add autoconf package transformation code.
33937 * util/i386/pc/grub-install.in: Likewise.
33938 * util/powerpc/ieee1275/grub-install.in: Likewise.
33940 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
33942 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
33943 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
33944 (EXT2_REVISION): Likewise.
33945 (EXT2_INODE_SIZE): Likewise.
33946 (struct grub_ext2_block_group): Added a missing member
33948 (grub_ext2_read_inode): Divide by the inode size in a superblock
33949 instead of 128 to obtain INODES_PER_BLOCK.
33950 Use the macro EXT2_INODE_SIZE instead of directly using
33951 SBLOCK->INODE_SIZE.
33953 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
33955 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
33956 superblock instead of the structure size to compute an
33957 offset. This fixes the problem that GRUB could not read a
33958 filesystem when inode size is different from 128-byte.
33960 2007-03-05 Marco Gerards <marco@gnu.org>
33962 * normal/main.c (read_config_file): When "menu" is not set, create
33963 an initial context.
33965 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
33967 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
33968 (HEAP_LIMIT): New macro.
33969 (grub_claim_heap): Claim memory up to `heaplimit'.
33971 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
33973 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
33974 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
33975 (_start): Likewise.
33976 (grub_arch_modules_addr): Return address after `_end'.
33977 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
33978 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
33979 (add_segments): Calculate `_end' from phdr size and location.
33980 (ALIGN_UP): Moved to ...
33981 * include/grub/misc.h: here.
33982 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
33984 (GRUB_IEEE1275_MODULE_BASE): Removed.
33986 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33988 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
33991 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33993 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
33995 (grub_elf64_load_hook_t): Likewise.
33996 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
33999 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
34001 * kern/mm.c: Update copyright.
34002 (grub_mm_debug): Correct syntax error.
34003 (grub_mm_dump_free): New function.
34004 (grub_debug_free): Call `grub_free'.
34005 * include/grub/mm.h: Update copyright.
34006 (grub_mm_dump_free): Add declaration.
34008 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
34010 * include/grub/ieee1275/ieee1275.h: Update copyright.
34011 * kern/powerpc/ieee1275/init.c: Likewise.
34012 * kern/powerpc/ieee1275/openfw.c: Likewise.
34014 * loader/powerpc/ieee1275/linux.c: Likewise.
34015 * include/grub/elfload.h: Likewise.
34016 * kern/elf.c: Likewise.
34017 (grub_elf32_load): Pass `base' and `size' parameters. Update all
34019 (grub_elf64_load): Likewise.
34020 (grub_elf32_load_segment): Move to a nested function.
34021 (grub_elf64_load_segment): Likewise.
34023 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
34025 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
34027 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
34028 (grub_heap_len): Likewise.
34029 (HEAP_SIZE): New macro.
34030 (grub_claim_heap): New function.
34031 (grub_machine_init): Don't claim heap directly. Call
34033 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
34034 (grub_available_iterate): New function.
34036 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
34038 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
34039 * configure.ac: Use it for testing the HOST and TARGET compilers.
34041 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
34043 * Makefile.in (enable_grub_emu): New variable.
34044 * configure.ac (--enable-grub-emu): New option.
34045 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
34046 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
34047 * conf/i386-pc.rmk: Likewise.
34048 * conf/powerpc-ieee1275.rmk: Likewise.
34049 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
34051 2006-12-12 Marco Gerards <marco@gnu.org>
34053 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
34055 * kern/env.c (grub_env_unset): Don't free the member `value' when
34056 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
34059 * normal/main.c (current_menu): Removed.
34060 (free_menu): Unset the `menu' environment variable.
34061 (grub_normal_menu_addentry): Make use of the environment variable
34062 `menu', instead of using the global `current_menu'. Allocate
34063 memory for the sourcecode of this entry.
34064 (read_config_file): New argument `nested', changed all callers.
34065 Only in the case of a new context, initialize a new menu. Set the
34066 `menu' environment variable.
34067 (grub_normal_execute): Don't set and unset the environment
34068 variable `menu' here anymore. Only free the menu when leaving the
34071 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
34074 2006-12-11 Marco Gerards <marco@gnu.org>
34076 * normal/menu_entry.c (run): Fix off by one bug so the last line
34077 is executed. Move the loader check to outside the loop.
34079 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
34081 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
34083 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
34085 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
34086 the number of sectors. Reported by Andrey Shuvikov
34087 <mr_hyro@yahoo.com>.
34089 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
34091 * kern/disk.c (grub_disk_read): When there is a read error, always
34092 try to read only the necessary data.
34094 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
34096 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
34098 [GRUB_UTIL] (grub_raid_fini): Likewise.
34099 [GRUB_UTIL] (grub_lvm_init): Likewise.
34100 [GRUB_UTIL] (grub_lvm_fini): Likewise.
34101 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
34102 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
34103 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
34104 and grub_raid_fini().
34106 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
34108 * include/grub/types.h (__unused): Rename to UNUSED.
34109 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
34110 (grub_elf64_size): Likewise.
34112 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
34114 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
34115 grub_error_push and grub_error_pop in the error-handling path.
34116 (grub_elf32_load_segment): Only call grub_file_read with non-zero
34119 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
34121 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
34122 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34123 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34124 (kernel_elf_SOURCES): Likewise.
34125 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
34126 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
34127 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
34128 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
34129 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
34130 (elf_mod_SOURCES): New variable.
34131 (elf_mod_CFLAGS): Likewise.
34132 (elf_mod_LDFLAGS): Likewise.
34133 * include/grub/types.h (__unused): New macro.
34134 * include/grub/elfload.h: New file.
34135 * kern/elf.c: Likewise.
34136 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
34137 (ELF32_LOADMASK): New macro.
34138 (ELF64_LOADMASK): Likewise.
34139 (vmlinux): Removed.
34140 (grub_linux_load32): New function.
34141 (grub_linux_load64): Likewise.
34142 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
34143 Use grub_elf_t instead of grub_file_t.
34145 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
34147 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
34148 `catch_result' to struct set_color_args.
34150 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
34152 * normal/menu.c: Include grub/script.h.
34153 * normal/menu_entry.c: Likewise.
34154 * include/grub/normal.h: Do not include grub/script.h.
34156 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34158 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
34160 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34162 * kern/disk.c (grub_disk_open): Print debug messages when opening a
34164 (grub_disk_close): Print debug messages when closing a disk.
34165 (grub_disk_read): Print debug messages when disk read fails.
34166 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
34168 * kern/partition.c: Include misc.h.
34169 (grub_partition_iterate): Print debug messages when detecting
34172 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34174 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
34176 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
34178 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
34180 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
34181 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
34183 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
34185 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
34186 instead of sizeof(lv). Patch by Michael Guntsche.
34188 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
34190 * disk/lvm.c: Rename VGS to VG_LIST.
34191 (grub_lvm_iterate): Change VGS->LV to VG-LV.
34192 (grub_lvm_open): Likewise.
34193 Thanks to Michael Guntsche for finding this bug.
34195 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
34197 * configure.ac (AC_INIT): Bumped to 1.95.
34199 2006-10-14 Robert Millan <rmh@aybabtu.com>
34201 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
34202 with "/dev/.static/dev/md".
34204 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
34206 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
34207 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
34208 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
34209 DRIVE_NAME are always freed.
34211 * util/i386/pc/biosdisk.c (make_device_name): Add one into
34212 DOS_PART, as a DOS partition is counted from one instead of zero
34213 now. Reported by Robert Millan.
34215 2006-10-14 Robert Millan <rmh@aybabtu.com>
34217 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
34218 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
34219 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
34220 string returned by grub_guess_root_device.
34221 * util/i386/pc/grub-setup.c: Likewise.
34222 * util/i386/pc/grub-probefs.c: Likewise.
34224 * util/i386/pc/grub-probefs.c: Rename to ...
34225 * util/i386/pc/grub-probe.c: ... this.
34226 * DISTLIST: Remove grub-probefs, add grub-probe.
34227 * conf/i386-efi.rmk: Likewise.
34228 * conf/i386-pc.rmk: Likewise.
34229 * util/i386/pc/grub-install.in: Likewise.
34231 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
34232 choose which information we want to print.
34234 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
34236 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
34237 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
34238 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
34239 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
34240 video/readers/tga.c and video/i386/pc/vbeutil.c.
34242 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
34244 Added support for RAID and LVM.
34246 * disk/lvm.c: New file.
34247 * disk/raid.c: Likewise.
34248 * include/grub/lvm.h: Likewise.
34249 * include/grub/raid.h: Likewise.
34250 * include/grub/util/lvm.h: Likewise.
34251 * include/grub/util/raid.h: Likewise.
34252 * util/lvm.c: Likewise.
34253 * util/raid.c: Likewise.
34255 * include/grub/disk.h (grub_disk_dev_id): Add
34256 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
34257 (grub_disk_get_size): New prototype.
34258 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
34259 returns a partition.
34260 (grub_disk_get_size): New function.
34262 * kern/i386/pc/init.c (make_install_device): Copy the prefix
34263 verbatim if grub_install_dos_part is -2.
34265 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
34268 * util/i386/pc/grub-setup.c (setup): New argument
34269 MUST_EMBED. Force embedding of GRUB when the argument is
34270 true. Close FILE before returning.
34271 (main): Add support for RAID and LVM.
34273 * conf/common.rmk: Add RAID and LVM modules.
34274 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
34276 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
34278 * kern/misc.c (grub_strstr): New function.
34279 * include/grub/misc.h (grub_strstr): New prototype.
34281 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
34283 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
34285 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
34287 * kern/misc.c (grub_strtoull): Guess the base only if not
34290 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34292 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
34295 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34297 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
34299 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
34300 Remove `flags' argument. All callers changed.
34301 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
34302 (IEEE1275_IHANDLE_INVALID): New variable.
34303 (IEEE1275_CELL_INVALID): New variable.
34304 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
34305 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
34306 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
34307 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
34308 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
34309 codes from Open Firmware. All callers updated.
34310 (grub_ieee1275_next_property): Directly return Open Firmware return
34312 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
34313 Standardize error checking from `grub_ieee1275_get_property'.
34314 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
34315 `devalias' to `aliases'. Correct comments. Consolidate error paths.
34317 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34319 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
34320 `instance_to_package_args' to `instance_to_path_args'.
34322 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
34323 `grub_ieee1275_chosen'.
34325 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
34326 `grub_ieee1275_interpret'.
34328 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
34330 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
34332 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
34334 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
34335 (__cmpdi): Likewise.
34337 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
34338 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
34341 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
34343 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
34344 to type `grub_ssize_t'.
34345 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
34347 2006-09-22 Marco Gerards <marco@gnu.org>
34349 * normal/script.c (grub_script_create_cmdmenu): Skip leading
34352 2006-09-22 Marco Gerards <marco@gnu.org>
34354 * commands/echo.c: New file.
34356 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
34358 * conf/common.rmk (echo_mod_SOURCES): New variable.
34359 (echo_mod_CFLAGS): Likewise.
34360 (echo_mod_LDFLAGS): Likewise.
34362 2006-09-22 Marco Gerards <marco@gnu.org>
34364 * normal/main.c (get_line): Malloc memory instead of using
34365 preallocated memory. Removed the arguments `cmdline' and
34366 `max_len'. Updated all callers.
34368 2006-09-22 Marco Gerards <marco@gnu.org>
34370 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
34371 (normal_mod_DEPENDENCIES): Likewise.
34373 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
34374 (normal_mod_DEPENDENCIES): Likewise.
34376 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
34378 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
34380 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
34382 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
34383 (normal_mod_DEPENDENCIES): Likewise.
34384 * conf/i386-pc.mk: Regenerate.
34385 * conf/i386-efi.mk: Likewise
34386 * conf/common.mk: Likewise.
34387 * conf/powerpc-ieee1275.mk: Likewise.
34388 * conf/sparc64-ieee1275.mk: Likewise.
34390 2006-09-22 Robert Millan <rmh@aybabtu.com>
34392 Sync with i386 version.
34393 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
34394 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
34396 2006-09-21 Robert Millan <rmh@aybabtu.com>
34398 Import from GRUB Legacy (lib/device.c):
34399 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
34400 (init_device_map) [__linux__]: Add support for I2O devices.
34402 2006-09-14 Marco Gerards <marco@gnu.org>
34404 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
34407 2006-09-14 Robert Millan <rmh@aybabtu.com>
34409 * util/i386/pc/grub-install.in: Skip menu.lst when removing
34412 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
34414 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
34415 before adding it to device.map.
34417 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
34419 * genmk.rb: Let GCC generate dependencies the first time it
34420 compiles a file; using the -MD option.
34421 * conf/common.mk: Regenerate.
34422 * conf/i386-pc.mk: Likewise.
34423 * conf/i386-efi.mk: Likewise.
34424 * conf/powerpc-ieee1275.mk: Likewise.
34425 * conf/sparc64-ieee1275.mk: Likewise.
34427 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
34429 Move the prototypes of grub_setjmp and grub_longjmp to
34430 cpu/setjmp.h, so that each architecture may specify different
34433 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
34434 (grub_longjmp): Likewise.
34435 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
34436 (grub_longjmp): Likewise.
34437 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
34438 (grub_longjmp): Likewise.
34440 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
34441 [!GRUB_UTIL] (grub_longjmp): Removed.
34443 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
34445 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
34446 "color!" method does not return any value.
34448 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34450 * include/grub/bitmap.h: New file.
34452 * include/grub/i386/pc/vbeutil.h: Likewise.
34454 * video/bitmap.c: Likewise.
34456 * video/readers/tga.c: Likewise.
34458 * video/i386/pc/vbeutil.c: Likewise.
34460 * commands/videotest.c: Code cleanup and updated to reflect to new
34463 * term/gfxterm.c: Likewise.
34465 * video/video.c: Likewise.
34467 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
34468 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
34469 (bitmap_mod_SOURCES): New entry.
34470 (bitmap_mod_CFLAGS): Likewise.
34471 (bitmap_mod_LDFLAGS): Likewise.
34472 (tga_mod_SOURCES): Likewise.
34473 (tga_mod_CFLAGS): Likewise.
34474 (tga_mod_LDFLAGS): Likewise.
34476 * include/grub/video.h (grub_video_blit_operators): New enum type.
34477 (grub_video_render_target): Changed as forward declaration and moved
34478 actual definition to be video driver specific.
34479 (grub_video_adapter.blit_bitmap): Added blitting operator.
34480 (grub_video_adapter.blit_render_target): Likewise.
34481 (grub_video_blit_bitmap): Likewise.
34482 (grub_video_blit_render_target): Likewise.
34484 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
34485 driver specific render target definition.
34486 (grub_video_vbe_map_rgba): Added driver internal helper.
34487 (grub_video_vbe_unmap_color): Updated to use
34488 grub_video_i386_vbeblit_info.
34489 (grub_video_vbe_get_video_ptr): Likewise.
34491 * include/grub/i386/pc/vbeblit.h
34492 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
34493 grub_video_i386_vbeblit_info.
34494 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34495 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34496 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34497 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34498 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34499 (grub_video_i386_vbeblit_index_index): Likewise.
34500 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
34501 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34502 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34503 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
34505 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
34508 * video/i386/pc/vbeblit.c: Updated to reflect changes on
34509 include/grub/i386/pc/vbeblit.h.
34511 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
34512 Updated to use grub_video_i386_vbeblit_info.
34513 (grub_video_i386_vbefill_R8G8B8): Likewise.
34514 (grub_video_i386_vbefill_index): Likewise.
34515 (grub_video_i386_vbefill): Added generic filler.
34517 * video/i386/pc/vbefill.c: Updated to reflect changes on
34518 include/grub/i386/pc/vbefill.h.
34520 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
34521 grub_video_i386_vbeblit_info.
34522 (grub_video_vbe_unmap_color): Likewise.
34523 (grub_video_vbe_blit_glyph): Likewise.
34524 (grub_video_vbe_scroll): Likewise.
34525 (grub_video_vbe_draw_pixel): Removed function.
34526 (grub_video_vbe_get_pixel): Likewise.
34527 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
34528 updated code to use it.
34529 (common_blitter): Added common blitter for render target and bitmap.
34530 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
34531 (grub_video_vbe_blit_render_target): Likewise.
34533 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
34535 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
34536 is in text mode if there is no console control protocol instance
34539 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34541 * include/grub/video.h: Code cleanup.
34543 * include/grub/i386/pc/vbe.h: Likewise.
34545 * video/i386/pc/vbe.c: Likewise.
34547 * video/i386/pc/vbeblit.c: Likewise.
34549 * video/i386/pc/vbefill.c: Likewise.
34551 * video/video.c: Likewise. Also added more comments.
34553 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34555 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
34556 (struct grub_biosdisk_dap): Likewise.
34558 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
34559 linkage settings for all functions.
34561 2006-07-12 Marco Gerards <marco@gnu.org>
34563 * configure.ac (--enable-mm-debug): Fix typo.
34565 * genkernsyms.sh.in: Use proper quoting for `CC'.
34567 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
34569 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
34570 (normal_mod_ASFLAGS): Remove "-m32".
34572 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
34574 * util/misc.c: Include config.h.
34575 [!HAVE_MEMALIGN]: Do not include malloc.h.
34576 (grub_memalign): Use posix_memalign, if present. Then, use
34577 memalign, if present. Otherwise, emit an error.
34579 * util/grub-emu.c: Do not include malloc.h.
34581 * include/grub/util/misc.h: Include unistd.h. This is required for
34582 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
34583 D. Eades III <hde@foobar-qux.org>.
34585 * configure.ac (AC_GNU_SOURCE): Added.
34586 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
34589 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
34591 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
34592 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
34594 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
34596 * include/grub/types.h (grub_host_addr_t): Rename to
34597 grub_target_addr_t.
34598 (grub_host_off_t): Rename to grub_target_off_t.
34599 (grub_host_size_t): Rename to grub_target_size_t.
34600 (grub_host_ssize_t): Rename to grub_target_ssize_t.
34601 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
34603 * include/grub/kernel.h (struct grub_module_header): Change type
34604 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
34605 (grub_module_info): Likewise.
34607 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
34609 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
34610 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
34611 Velazquez <jesus.velazquez@gmail.com>.
34613 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
34615 Count partitions from 1 instead of 0 in the string representation
34616 of partitions. Still use 0-based internally.
34618 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
34619 (sun_partition_map_iterate): Use grub_partition_t instead of
34620 struct grub_partition *. Cast DESC->START_CYLINDER to
34621 grub_uint64_t after converting the endian.
34622 (sun_partition_map_probe): Subtract 1 for PARTNUM.
34623 (sun_partition_map_get_name): Add 1 to P->INDEX.
34625 * partmap/pc.c (grub_partition_parse): Subtract 1 for
34627 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
34629 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
34630 zero instead of one.
34631 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
34632 (gpt_partition_map_get_name): Add 1 into P->INDEX.
34634 * partmap/apple.c (apple_partition_map_iterate): Change the type
34635 of POS to unsigned.
34636 (apple_partition_map_probe): Subtract 1 for PARTNUM.
34637 (apple_partition_map_get_name): Add 1 into P->INDEX.
34639 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
34640 of POS to unsigned.
34641 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
34642 calculate the offset of a partition.
34643 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
34644 (amiga_partition_map_get_name): Add 1 into P->INDEX.
34646 * partmap/acorn.c (acorn_partition_map_find): Change the type of
34647 SECTOR to grub_disk_addr_t.
34648 (acorn_partition_map_iterate): Likewise.
34649 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
34650 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
34652 (acorn_partition_map_get_name): Add 1 into P->INDEX.
34654 * kern/i386/pc/init.c (make_install_device): Add 1 into
34655 GRUB_INSTALL_DOS_PART.
34657 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
34660 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
34662 Clean up the code to support 64-bit addressing in disks and
34663 files. This change is not enough for filesystems yet.
34665 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
34666 type of "start" to grub_uint64_t.
34667 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
34668 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
34669 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
34672 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
34673 to grub_disk_addr_t.
34675 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
34678 * partmap/pc.c (pc_partition_map_iterate): Likewise.
34680 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
34683 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
34685 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
34687 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
34689 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
34690 to grub_off_t, to detect an error from grub_file_seek.
34691 (grub_multiboot_load_elf32): Likewise.
34693 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
34694 maximum unsigned long value when an overflow is detected.
34695 (grub_strtoull): New function.
34696 (grub_divmod64): Likewise.
34697 (grub_lltoa): use grub_divmod64.
34699 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
34701 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
34702 the pointer to next character. Use grub_strtoull instead of
34704 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
34705 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
34708 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
34709 return value is signed.
34710 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
34711 test if OFFSET is less than zero, as OFFSET is unsigned now.
34713 * kern/disk.c (struct grub_disk_cache): Change the type of
34714 "sector" to grub_disk_addr_t.
34715 (grub_disk_cache_get_index): Change the type of SECTOR to
34716 grub_disk_addr_t. Calculate the hash with SECTOR casted to
34717 unsigned after shifting.
34718 (grub_disk_cache_invalidate): Change the type of SECTOR to
34720 (grub_disk_cache_unlock): Likewise.
34721 (grub_disk_cache_store): Likewise.
34722 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
34723 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
34724 grub_disk_addr_t and grub_uint64_t, respectively.
34725 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
34726 body, as the value of OFFSET is tweaked by
34727 grub_disk_check_range. Change the types of START_SECTOR, LEN and
34728 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
34730 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
34731 body, as the value of OFFSET is tweaked by
34732 grub_disk_check_range. Change the types of LEN and N to
34735 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
34736 and "saved_offset" to grub_off_t.
34737 (test_header): Cast BUF to char *.
34738 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
34740 (grub_gzio_read): Change the types of OFFSET and SIZE to
34741 grub_off_t and grub_size_t, respectively.
34743 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
34745 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
34746 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
34747 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
34748 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
34749 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
34751 * include/grub/types.h (grub_off_t): Unconditionally set to
34753 (grub_disk_addr_t): Changed to grub_uint64_t.
34755 * include/grub/partition.h (struct grub_partition): Change the
34756 types of "start", "len" and "offset" to grub_disk_addr_t,
34757 grub_uint64_t and grub_disk_addr_t, respectively.
34758 (grub_partition_get_start): Return grub_disk_addr_t.
34759 (grub_partition_get_len): Return grub_uint64_t.
34761 * include/grub/misc.h (grub_strtoull): New prototype.
34762 (grub_divmod64): Likewise.
34764 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
34765 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
34766 grub_off_t, respectively.
34767 All callers and references changed.
34769 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
34770 grub_size_t in "read".
34771 All callers and references changed.
34773 * include/grub/file.h (struct grub_file): Change the types of
34774 "offset" and "size" to grub_off_t and grub_off_t,
34775 respectively. Change the type of SECTOR to grub_disk_addr_t in
34777 (grub_file_read): Change the type of LEN to grub_size_t.
34778 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
34780 (grub_file_size): Return grub_off_t.
34781 (grub_file_tell): Likewise.
34782 All callers and references changed.
34784 * include/grub/disk.h (struct grub_disk_dev): Change the types of
34785 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
34787 (struct grub_disk): Change the type of "total_sectors" to
34788 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
34790 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
34791 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
34792 (grub_disk_write): Likewise.
34793 All callers and references changed.
34795 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
34796 char * for grub_strncmp to silence gcc.
34797 (grub_iso9660_mount): Likewise.
34798 (grub_iso9660_mount): Likewise.
34799 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
34801 (grub_iso9660_iterate_dir): Likewise.
34802 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
34804 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
34805 LEN to grub_disk_addr_t and grub_size_t, respectively.
34807 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
34809 * fs/jfs.c (grub_jfs_read_file): Likewise.
34811 * fs/minix.c (grub_jfs_read_file): Likewise.
34813 * fs/sfs.c (grub_jfs_read_file): Likewise.
34815 * fs/ufs.c (grub_jfs_read_file): Likewise.
34817 * fs/xfs.c (grub_jfs_read_file): Likewise.
34819 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
34820 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
34823 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
34824 BLKNR to -1 instead of returning GRUB_ERRNO.
34825 (grub_ext2_read_file): Change the types of SECTOR and
34826 LEN to grub_disk_addr_t and grub_size_t, respectively.
34828 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
34829 LEN to grub_disk_addr_t and grub_size_t, respectively.
34831 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
34834 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
34835 string. Do not cast SECTOR explicitly.
34837 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
34838 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
34839 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
34840 grub_disk_addr_t and grub_size_t, respectively. If the sector is
34841 over 2TB and LBA mode is not supported, raise an error.
34842 (get_safe_sectors): New function.
34843 (grub_biosdisk_read): Use get_safe_sectors.
34844 (grub_biosdisk_write): Likewise.
34846 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
34847 (grub_efidisk_write): Likewise.
34849 * disk/loopback.c (delete_loopback): Cosmetic changes.
34850 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
34852 (grub_loopback_open): Likewise.
34853 (grub_loopback_read): Likewise. Also, change the type of POS to
34854 grub_off_t, and fix the usage of grub_memset.
34856 * commands/i386/pc/play.c: Include grub/machine/time.h.
34858 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
34861 * commands/configfile.c: Include grub/env.h.
34863 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
34864 GRUB_ERRNO directly instead. Change the type of POS to
34865 grub_off_t. Follow the coding standard.
34867 * commands/blocklist.c: Include grub/partition.h.
34868 (grub_cmd_blocklist): Return an error if the underlying device is
34869 not a disk. Take the starting sector of a partition into account,
34870 if a partition is used.
34872 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
34874 (lba_mode): Support 64-bit addresses.
34875 (chs_mode): Likewise.
34876 (copy_buffer): Adapted to the new offsets of a length field and a
34878 (blocklist_default_start): Allocate 64-bit space.
34880 * boot/i386/pc/boot.S (force_lba): Removed.
34881 (boot_drive): Moved to under KERNEL_SECTOR.
34882 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
34884 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
34886 (lba_mode): Refactored to support a 64-bit address. More size
34888 (setup_sectors): Likewise.
34890 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
34892 * DISTLIST: Added include/grub/i386/linux.h. Removed
34893 include/grub/i386/pc/linux.h
34895 * configure.ac (AC_INIT): Bumped to 1.94.
34897 * config.guess: Updated from gnulib.
34898 * config.sub: Likewise.
34899 * install-sh: Likewise.
34900 * mkinstalldirs: Likewise.
34902 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
34904 * conf/common.rmk (grub_modules_init.lst): Depended on
34905 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
34908 * genmk.rb (PModule::rule): Reverted the previous change.
34910 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
34912 * conf/common.rmk (grub_modules_init.lst): Depends on
34913 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
34914 that the target does not exist before producing.
34915 (grub_modules_init.h): Remove the target before generating.
34916 (grub_emu_init.c): Likewise.
34918 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
34920 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
34922 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
34923 for the target-specific tests. Make sure that we also have the
34924 up-to-date target variables for those tests.
34926 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
34928 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
34929 (PModule::rule): Likewise.
34931 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
34933 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
34934 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
34935 target-specific flags should be prefixed.
34936 (PModule::rule): Likewise.
34938 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
34940 * configure.ac (CMP): Check if cmp is available explicitly.
34942 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
34944 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
34945 (target_cpu): New variable.
34946 (pkglibdir): Use target_cpu instead of host_cpu.
34948 * util/i386/pc/grub-install.in (host_cpu): Removed.
34949 (target_cpu): New variable.
34950 (pkglibdir): Use target_cpu instead of host_cpu.
34952 * util/genmoddep.c: Removed.
34954 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
34955 instead of GRUB_HOST_SIZEOF_VOID_P.
34956 * kern/dl.c: Likewise.
34958 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
34960 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
34961 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
34962 (GRUB_TARGET_SIZEOF_LONG): ... this.
34963 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
34964 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
34965 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
34967 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
34968 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
34969 (GRUB_TARGET_SIZEOF_LONG): ... this.
34970 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
34971 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
34972 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
34974 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
34975 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
34976 (GRUB_TARGET_SIZEOF_LONG): ... this.
34977 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
34978 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
34980 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
34981 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
34982 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
34983 instead of GRUB_HOST_SIZEOF_LONG.
34984 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
34985 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
34986 GRUB_CPU_WORDS_BIGENDIAN.
34987 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
34988 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
34991 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
34992 (genmoddep_SOURCES): Likewise.
34993 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
34994 (genmoddep_SOURCES): Likewise.
34995 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
34996 (genmoddep_SOURCES): Likewise.
34997 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
34999 (genmoddep_SOURCES): Likewise.
35001 * genmoddep.awk: New file.
35003 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
35004 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
35005 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
35006 (PModule::rule): Likewise.
35007 (Program::rule): Likewise.
35008 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
35009 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
35012 * configure.ac: Rewritten intensively to use host and target
35013 instead of build and host, respectively.
35015 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
35016 (host_cpu): Removed.
35017 (target_cpu): New variable.
35018 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
35019 (BUILD_CC): Removed.
35020 (BUILD_CFLAGS): Likewise.
35021 (BUILD_CPPFLAGS): Likewise.
35022 (TARGET_CC): New variable.
35023 (TARGET_CFLAGS): Likewise.
35024 (TARGET_CPPFLAGS): Likewise.
35025 (TARGET_LDFLAGS): Likewise.
35027 (include): Use target_cpu instead of host_cpu.
35028 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
35030 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
35032 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
35034 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
35035 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
35036 field 'false' to 'exec_on_false'.
35037 (grub_script_create_cmdif): Renamed argument names to reflect above
35040 * normal/execute.c (grub_script_execute_cmdif): Likewise.
35042 * normal/script.c (grub_script_create_cmdif): Likewise.
35044 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
35046 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
35048 (grub_hfsplus_btree_recptr): Likewise.
35049 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
35050 FILEBLOCK both to pass a block number and store next block
35052 (grub_hfsplus_read_block): Rewritten heavily to support an extent
35053 overflow file correctly. Specify errors appropriately, because
35054 fshelp expects that GRUB_ERRNO is set when fails. Reuse
35055 grub_hfsplus_btree_recptr to get the pointer to a found key.
35056 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
35059 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
35061 (_linux_mod_SOURCES): New variable.
35062 (_linux_mod_CFLAGS): Likewise.
35063 (_linux_mod_LDFLAGS): Likewise.
35064 (linux_mod_SOURCES): Likewise.
35065 (linux_mod_CFLAGS): Likewise.
35066 (linux_mod_LDFLAGS): Likewise.
35068 * DISTLIST: Added loader/i386/efi/linux.c,
35069 loader/i386/efi/linux_normal.c and
35070 include/grub/i386/efi/loader.h.
35072 * loader/i386/efi/linux.c: New file.
35073 * loader/i386/efi/linux_normal.c: Likewise.
35074 * include/grub/i386/efi/loader.h: Likewise.
35076 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
35078 * commands/blocklist.c: New file.
35080 * DISTLIST: Added commands/blocklist.c.
35082 * term/efi/console.c (grub_console_highlight_color): Use a lighter
35083 color for the background, and a darker color for the foreground.
35084 (grub_console_checkkey): Return READ_KEY.
35085 (grub_console_cls): Set the background to
35086 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
35088 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
35090 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
35091 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
35093 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
35096 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
35097 BG. The spec is wrong again.
35099 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
35101 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
35103 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
35104 commands/blocklist.c.
35105 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35107 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
35108 (blocklist_mod_SOURCES): New variable.
35109 (blocklist_mod_CFLAGS): Likewise.
35110 (blocklist_mod_LDFLAGS): Likewise.
35112 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
35114 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
35116 (lba_mode): Use %eax more intensively to reduce the code size.
35118 2006-05-20 Marco Gerards <marco@gnu.org>
35120 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
35122 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
35124 (script): Accept leading newlines.
35125 (newlines): New rule to describe 0 or more newlines.
35126 (commands): Accept `command' with trailing newline. Fixed the
35127 order in which arguments were passed to `grub_script_add_cmd'.
35128 Accept commands separated by newlines.
35129 (function): Changed to accept newlines.
35130 (menuentry) Rewritten.
35132 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
35133 front of the list, instead of to the end.
35135 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
35137 * util/i386/pc/grub-install.in (bindir): New variable.
35138 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
35139 Shaver <lbgwjl@gmail.com>.
35141 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
35143 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
35144 grub/machine/linux.h
35145 * loader/i386/pc/linux.c: Likewise.
35147 * include/grub/i386/pc/linux.h: Moved to ...
35148 * include/grub/i386/linux.h: ... here.
35150 * include/grub/i386/linux.h (struct linux_kernel_params): New
35153 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
35155 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
35157 (grub_video_vbe_blit_glyph): Likewise.
35158 (grub_video_vbe_blit_bitmap): Likewise.
35159 (grub_video_vbe_blit_render_target): Likewise.
35161 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
35163 * configure.ac (--with-platform): Properly quote the square
35166 2006-05-08 Marco Gerards <marco@gnu.org>
35168 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
35170 (kernel_elf_HEADERS): ...to this. Updated all users.
35171 (grubof_symlist.c): Renamed from this...
35172 (kernel_elf_symlist.c): ...to this. Updated all users.
35173 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
35174 (grubof_SOURCES): Renamed from this...
35175 (kernel_elf_SOURCES): ...to this.
35176 (grubof_HEADERS): Renamed from this...
35177 (kernel_elf_HEADERS): ...to this.
35178 (grubof_CFLAGS): Renamed from this...
35179 (kernel_elf_CFLAGS): ...to this.
35180 (grubof_ASFLAGS): Renamed from this...
35181 (kernel_elf_ASFLAGS): ...to this.
35182 (grubof_LDFLAGS): Renamed from this...
35183 (kernel_elf_LDFLAGS): ...to this.
35185 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
35187 (kernel_elf_HEADERS): ...to this. Updated all users.
35188 (grubof_symlist.c): Renamed from this...
35189 (kernel_elf_symlist.c): ...to this. Updated all users.
35190 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
35191 (grubof_SOURCES): Renamed from this...
35192 (kernel_elf_SOURCES): ...to this.
35193 (grubof_HEADERS): Renamed from this...
35194 (kernel_elf_HEADERS): ...to this.
35195 (grubof_CFLAGS): Renamed from this...
35196 (kernel_elf_CFLAGS): ...to this.
35197 (grubof_ASFLAGS): Renamed from this...
35198 (kernel_elf_ASFLAGS): ...to this.
35199 (grubof_LDFLAGS): Renamed from this...
35200 (kernel_elf_LDFLAGS): ...to this.
35202 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
35203 `kernel.elf' instead of `grubof'.
35205 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
35207 Add --with-platform to configure. Use pkglibdir instead of
35208 pkgdatadir. This is reported by Roger Leigh.
35210 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
35211 (host_vendor): Likewise.
35212 (host_os): Likewise.
35213 (pkgdatadir): Likewise.
35214 (platform): New variable.
35215 (pkglibdir): Likewise.
35216 Use PKGLIBDIR instead of PKGDATADIR.
35218 * util/i386/pc/grub-install.in (datadir): Removed.
35219 (host_vendor): Likewise.
35220 (host_os): Likewise.
35221 (pkgdatadir): Likewise.
35222 (platform): New variable.
35223 (pkglibdir): Likewise.
35224 Use PKGLIBDIR instead of PKGDATADIR.
35226 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
35227 instead of GRUB_DATADIR.
35229 * util/i386/pc/grub-mkimage.c (usage): Likewise.
35231 * util/i386/efi/grub-mkimage.c (usage): Likewise.
35234 * configure.ac (--with-platform): New option.
35235 Use PLATFORM instead of HOST_VENDOR to specify a platform.
35237 * Makefile.in: Include a makefile based on PLATFORM instead of
35239 (pkgdatadir): Not appended by the machine type.
35240 (pkglibdir): Appended by the machine type.
35241 (host_vendor): Removed.
35242 (platform): New variable.
35243 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
35244 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
35245 (uninstall): Likewise.
35247 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
35249 Use the environment context in the menu. Remove the commands
35250 "default" and "timeout", and use variables instead.
35252 * normal/menu.c: Include grub/env.h.
35253 (print_entry): Cast TITLE to silence gcc.
35254 (get_timeout): New function.
35255 (set_timeout): Likewise.
35256 (get_entry_number): Likewise.
35257 (run_menu): Use a default entry, a fallback entry and a timeout
35258 in the environment variables "default", "fallback" and
35259 "timeout". Also, tweak the default entry if it is not within the
35260 current menu entries.
35261 (grub_menu_run): Use a fallback entry in the environment variable
35264 * normal/main.c (read_config_file): Do not initialize
35265 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
35267 (grub_normal_execute): Use a data slot to store the menu.
35269 * include/grub/normal.h (struct grub_menu): Removed default_entry,
35270 fallback_entry and timeout.
35271 (struct grub_menu_list): Removed.
35272 (grub_menu_list_t): Likewise.
35273 (struct grub_context): Likewise.
35274 (grub_context_t): Likewise.
35275 (grub_context_get): Likewise.
35276 (grub_context_get_current_menu): Likewise.
35277 (grub_context_push_menu): Likewise.
35278 (grub_context_pop_menu): Likewise.
35279 (grub_default_init): Likewise.
35280 (grub_default_fini): Likewise.
35281 (grub_timeout_init): Likewise.
35282 (grub_timeout_fini): Likewise.
35284 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
35286 (normal_mod_SOURCES): Removed normal/context.c.
35288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
35289 commands/default.c, commands/timeout.c and normal/context.c.
35290 (normal_mod_SOURCES): Removed normal/context.c.
35292 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
35293 commands/timeout.c and normal/context.c.
35294 (normal_mod_SOURCES): Removed normal/context.c.
35296 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
35297 commands/default.c, commands/timeout.c and normal/context.c.
35298 (normal_mod_SOURCES): Removed normal/context.c.
35300 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
35302 (default_mod_SOURCES): Removed.
35303 (default_mod_CFLAGS): Likewise.
35304 (default_mod_LDFLAGS): Likewise.
35305 (timeout_mod_SOURCES): Removed.
35306 (timeout_mod_CFLAGS): Likewise.
35307 (timeout_mod_LDFLAGS): Likewise.
35309 * DISTLIST: Removed commands/default.c, commands/timeout.c and
35312 * commands/default.c: Removed.
35313 * commands/timeout.c: Likewise.
35314 * normal/context.c: Likewise.
35316 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
35318 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
35320 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
35322 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
35323 "next" to "prev" for readability.
35324 (struct grub_env_sorted_var): New struct.
35325 (grub_env_context): Renamed to ...
35326 (initial_context): ... this.
35327 (grub_env_var_context): Renamed to ...
35328 (current_context): ... this.
35329 (grub_env_find): Look only at CURRENT_CONTEXT.
35330 (grub_env_context_open): Rewritten to copy exported variables from
35332 (grub_env_context_close): Rewritten according to the new
35333 scheme. Also, add an assertion to prevent the initial context from
35335 (grub_env_insert): Removed the code for the sorted list.
35336 (grub_env_remove): Likewise.
35337 (grub_env_export): Simply mark the variable with
35338 GRUB_ENV_VAR_GLOBAL.
35339 (grub_env_set): A cosmetic change for naming consistency.
35340 (grub_env_get): Likewise.
35341 (grub_env_unset): Likewise.
35342 (grub_env_iterate): Rewritten to sort variables within this
35344 (grub_register_variable_hook): Fixed for naming consistency. Call
35345 grub_env_find again, only if NAME is not found at the first time.
35346 (mangle_data_slot_name): New function.
35347 (grub_env_set_data_slot): Likewise.
35348 (grub_env_get_data_slot): Likewise.
35349 (grub_env_unset_data_slot): Likewise.
35351 * include/grub/env.h (grub_env_var_type): New enum.
35352 (GRUB_ENV_VAR_LOCAL): New constant.
35353 (GRUB_ENV_VAR_GLOBAL): Likewise.
35354 (GRUB_ENV_VAR_DATA): Likewise.
35355 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
35357 (grub_env_set): Replace VAR with NAME for consistency.
35358 (grub_register_variable_hook): Likewise.
35359 (grub_env_export): Specify the name of the argument.
35360 (grub_env_set_data_slot): New prototype.
35361 (grub_env_get_data_slot): Likewise.
35362 (grub_env_unset_data_slot): Likewise.
35364 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
35366 Extend the loader so that GRUB can accept a loader which comes
35367 back to GRUB when a loaded image exits. Also, this change adds
35368 support for a chainloader on EFI.
35370 * term/efi/console.c: Include grub/misc.h.
35371 (grub_console_checkkey): Display a scan code on the top for
35372 debugging. This will be removed once the EFI port gets stable.
35373 Correct the scan code mapping.
35375 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
35376 allocate memory from larger regions, in order to reduce the number
35377 of allocated regions. Otherwise, the MacOSX loader panics.
35378 (filter_memory_map): Avoid less than 1MB for compatibility with
35380 (add_memory_regions): Allocate from the tail of a region, if
35381 possible, to avoid allocating a region near to 1MB, for the MacOSX
35384 * kern/efi/init.c (grub_efi_set_prefix): Specify
35385 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
35387 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
35388 argument IMAGE_HANDLE and specify it to get a loaded image.
35389 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
35390 grub_efi_get_loaded_image.
35391 (grub_efi_get_filename): Divide the length by the size of
35393 (grub_efi_get_device_path): New function.
35394 (grub_efi_print_device_path): Print End Device Path nodes. Divide
35395 the length by the size of grub_efi_char16_t for a file path device
35398 * kern/loader.c (grub_loader_noreturn): New variable.
35399 (grub_loader_set): Accept a new argument NORETURN. Set
35400 GRUB_LOADER_NORETURN to NORETURN.
35401 All callers changed.
35402 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
35405 * include/grub/efi/efi.h (grub_efi_get_device_path): New
35407 (grub_efi_get_loaded_image): Take an argument to specify an image
35410 * include/grub/loader.h (grub_loader_set): Added one more argument
35413 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
35414 instead of grub_efi_open_protocol.
35415 (grub_efidisk_get_device_name): Likewise.
35416 (grub_efidisk_close): Print a newline.
35417 (grub_efidisk_get_device_handle): Fixed to use
35418 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
35419 GRUB_EFI_DEVICE_PATH_TYPE.
35421 * disk/efi/efidisk.c (device_path_guid): Moved to ...
35422 * kern/efi/efi.c (device_path_guid): ... here.
35424 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
35426 (kernel_mod_HEADERS): Added efi/disk.h.
35427 (_chain_mod_SOURCES): New variable.
35428 (_chain_mod_CFLAGS): Likewise.
35429 (_chain_mod_LDFLAGS): Likewise.
35430 (chain_mod_SOURCES): Likewise.
35431 (chain_mod_CFLAGS): Likewise.
35432 (chain_mod_LDFLAGS): Likewise.
35434 * DISTLIST: Added include/grub/efi/chainloader.h,
35435 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
35437 * include/grub/efi/chainloader.h: New file.
35438 * loader/efi/chainloader.c: Likewise.
35439 * loader/efi/chainloader_normal.c: Likewise.
35441 2006-04-30 Marco Gerards <marco@gnu.org>
35443 * commands/configfile.c (grub_cmd_source): New function.
35444 (GRUB_MOD_INIT): Register the commands `source' and `.'.
35445 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
35447 2006-04-30 Marco Gerards <marco@gnu.org>
35449 * normal/execute.c (grub_script_execute_cmd): Change the return
35450 type to `grub_err_t'. Correctly return the error.
35451 (grub_script_execute_cmdline): In case a command line is not a
35452 command or a function, try to interpret it as an assignment.
35454 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
35456 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
35457 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
35458 skip a node whose name is obviously invalid as UTF-16,
35459 i.e. contains a NUL character. Stop the iteration when the last
35460 directory entry is found. Instead of using the return value of
35461 grub_hfsplus_btree_iterate_node, store the value in RET and use
35462 it, because the iterator can be stopped by the last directory
35465 2006-04-30 Marco Gerards <marco@gnu.org>
35467 * include/grub/env.h (grub_env_export): New prototype. Reported
35468 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
35470 2006-04-30 Marco Gerards <marco@gnu.org>
35472 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
35473 size of the extents in a catalog file record.
35475 2006-04-29 Marco Gerards <marco@gnu.org>
35477 * commands/configfile.c (grub_cmd_configfile): Execute the
35478 configfile within its own context.
35480 * include/grub/env.h (grub_env_context_open): New prototype.
35481 (grub_env_context_close): Likewise.
35483 * kern/env.c (grub_env): Removed.
35484 (grub_env_sorted): Likewise.
35485 (grub_env_context): New variable.
35486 (grub_env_var_context): Likewise.
35487 (grub_env_find): Search both the active context and the global
35489 (grub_env_context_open): New function.
35490 (grub_env_context_close): Likewise.
35491 (grub_env_insert): Likewise.
35492 (grub_env_remove): Likewise.
35493 (grub_env_export): Likewise.
35494 (grub_env_set): Changed to use helper functions to avoid code
35496 (grub_env_iterate): Rewritten so both the current context and the
35497 global context are being used.
35499 * normal/command.c (export_command): New function.
35500 (grub_command_init): Register the `export' function.
35502 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
35504 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
35505 explicitly to suppress gcc's warnings.
35506 * fs/fat.c (grub_fat_find_dir): Likewise.
35507 (grub_fat_label): Likewise.
35508 * fs/xfs.c (grub_xfs_read_inode): Likewise.
35509 (grub_xfs_mount): Likewise.
35510 (grub_xfs_label): Likewise.
35511 * fs/affs.c (grub_affs_mount): Likewise.
35512 (grub_affs_label): Likewise.
35513 (grub_affs_iterate_dir): Likewise.
35514 * fs/sfs.c (grub_sfs_mount): Likewise.
35515 (grub_sfs_iterate_dir): Likewise.
35516 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
35517 * fs/hfs.c (grub_hfs_mount): Likewise.
35518 (grub_hfs_cmp_catkeys): Likewise.
35519 (grub_hfs_find_dir): Likewise.
35520 (grub_hfs_dir): Likewise.
35521 (grub_hfs_label): Likewise.
35522 * fs/jfs.c (grub_jfs_mount): Likewise.
35523 (grub_jfs_opendir): Likewise.
35524 (grub_jfs_getent): Likewise.
35525 (grub_jfs_lookup_symlink): Likewise.
35526 (grub_jfs_label): Likewise.
35527 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
35528 (grub_hfsplus_iterate_dir): Likewise.
35529 (grub_hfsplus_btree_iterate_node): Made static.
35531 * util/grub-emu.c (prefix): New variable.
35532 (grub_machine_set_prefix): New function.
35533 (main): Do not set the environment variable "prefix" here. Only
35534 set PREFIX, which is used later by grub_machine_set_prefix.
35536 * include/grub/video.h: Do not include grub/symbol.h.
35537 (grub_video_register): Not exported. This symbol is not defined in
35539 (grub_video_unregister): Likewise.
35540 (grub_video_iterate): Likewise.
35541 (grub_video_setup): Likewise.
35542 (grub_video_restore): Likewise.
35543 (grub_video_get_info): Likewise.
35544 (grub_video_get_blit_format): Likewise.
35545 (grub_video_set_palette): Likewise.
35546 (grub_video_get_palette): Likewise.
35547 (grub_video_set_viewport): Likewise.
35548 (grub_video_get_viewport): Likewise.
35549 (grub_video_map_color): Likewise.
35550 (grub_video_map_rgb): Likewise.
35551 (grub_video_map_rgba): Likewise.
35552 (grub_video_fill_rect): Likewise.
35553 (grub_video_blit_glyph): Likewise.
35554 (grub_video_blit_bitmap): Likewise.
35555 (grub_video_blit_render_target): Likewise.
35556 (grub_video_scroll): Likewise.
35557 (grub_video_swap_buffers): Likewise.
35558 (grub_video_create_render_target): Likewise.
35559 (grub_video_delete_render_target): Likewise.
35560 (grub_video_set_active_render_target): Likewise.
35562 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
35564 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
35566 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
35567 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35568 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35569 instead of $(srcdir)/genkernsyms.sh.
35571 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
35572 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35573 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35574 instead of $(srcdir)/genkernsyms.sh.
35576 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
35577 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35578 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35579 instead of $(srcdir)/genkernsyms.sh.
35581 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
35582 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35583 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35584 instead of $(srcdir)/genkernsyms.sh.
35586 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
35589 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
35591 (gensymlist.sh): New target.
35592 (genkernsyms.sh): Likewise.
35594 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
35595 genkernsyms.sh.in and gensymlist.sh.in.
35597 * genkernsyms.sh: Removed.
35598 * gensymlist.sh: Likewise.
35600 * genkernsyms.sh.in: New file.
35601 * gensymlist.sh.in: Likewise.
35603 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
35605 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
35606 clobber "prefix", since we may have already set it manually.
35608 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
35610 * kern/misc.c (abort): New alias for grub_abort.
35612 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
35614 A new machine-specific function "grub_machine_set_prefix" is
35615 defined. This is called after loading modules, so that a prefix
35616 initialization can use modules. Also, this change adds an
35617 intensive debugging feature for the memory manager via the
35618 configure option "--enable-mm-debug".
35620 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
35623 * kern/sparc64/ieee1275/init.c (abort): Removed.
35624 (grub_stop): Likewise.
35625 (grub_exit): New function.
35626 (grub_set_prefix): Renamed to ...
35627 (grub_machine_set_prefix): ... this.
35628 (grub_machine_init): Do not call grub_set_prefix.
35630 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
35631 (grub_machine_set_prefix): ... this.
35632 (grub_machine_init): Do not call grub_set_prefix.
35634 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
35635 (grub_machine_init): Do not set the prefix here.
35637 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
35639 * kern/efi/init.c: Include grub/mm.h.
35640 (grub_efi_set_prefix): New function.
35642 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
35643 (grub_efi_get_filename): New function.
35644 (grub_print_device_path): Renamed to ...
35645 (grub_efi_print_device_path): ... this.
35647 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
35648 [MM_DEBUG] (grub_realloc): Likewise.
35649 [MM_DEBUG] (grub_free): Likewise.
35650 [MM_DEBUG] (grub_memalign): Likewise.
35651 [MM_DEBUG] (grub_mm_debug): New variable.
35652 [MM_DEBUG] (grub_debug_malloc): New function.
35653 [MM_DEBUG] (grub_debug_free): New function.
35654 [MM_DEBUG] (grub_debug_realloc): New function.
35655 [MM_DEBUG] (grub_debug_memalign): New function.
35657 * kern/misc.c (grub_abort): Print a newline to distinguish
35660 * kern/main.c (grub_main): Call grub_machine_set_prefix and
35661 grub_set_root_dev after loading modules. This is necessary when
35662 setting a prefix depends on modules.
35664 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
35665 (grub_efi_print_device_path): ... this.
35666 (grub_efi_get_filename): New prototype.
35667 (grub_efi_set_prefix): Likewise.
35669 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
35671 (grub_efidisk_get_device_handle): New prototype.
35672 (grub_efidisk_get_device_name): Likewise.
35674 * include/grub/mm.h: Include config.h.
35675 (MM_DEBUG): Removed.
35676 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
35677 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
35678 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
35679 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
35680 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
35681 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
35682 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
35683 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
35684 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
35686 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
35688 * disk/efi/efidisk.c: Include grub/partition.h.
35689 (iterate_child_devices): New function.
35690 (add_device): First, compare only last device path nodes, so that
35691 devices are sorted by the types.
35692 (grub_efidisk_get_device_handle): New function.
35693 (grub_efidisk_get_device_name): Likewise.
35695 * configure.ac (--enable-mm-debug): New option to enable the
35696 memory manager debugging feature. This makes the binary much
35697 bigger, so is disabled by default.
35699 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
35701 Use grub_abort instead of grub_stop, and grub_exit must be
35702 define in each architecture now. Also, this change adds support
35705 * util/i386/pc/grub-probefs.c: Include grub/term.h.
35706 (grub_getkey): New function.
35707 (grub_term_get_current): Likewise.
35709 * util/i386/pc/grub-setup.c: Include grub/term.h.
35710 (grub_getkey): New function.
35711 (grub_term_get_current): Likewise.
35713 * util/misc.c (grub_stop): Renamed to ...
35714 (grub_exit): ... this.
35716 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
35717 (grub_exit): ... this.
35718 (grub_machine_init): Use grub_abort instead of abort.
35719 (grub_stop): Removed.
35721 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
35724 * kern/i386/pc/startup.S (grub_exit): New function.
35725 (cold_reboot): New label.
35727 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
35728 (grub_efi_init): Call grub_efidisk_init.
35729 (grub_efi_fini): Call grub_efidisk_fini.
35731 * kern/efi/efi.c: Include grub/mm.h.
35732 (grub_efi_console_control_guid): Renamed to ...
35733 (console_control_guid): ... this.
35734 (grub_efi_loaded_image_guid): Renamed to ...
35735 (loaded_image_guid): ... this.
35736 (grub_efi_locate_handle): New function.
35737 (grub_efi_open_protocol): Likewise.
35738 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
35739 GRUB_EFI_CONSOLE_CONTROL_GUID.
35740 (grub_efi_exit): Removed.
35741 (grub_stop): Likewise.
35742 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
35743 (grub_exit): New function.
35744 (grub_print_device_path): Likewise.
35746 * kern/rescue.c (grub_rescue_cmd_exit): New function.
35747 (grub_enter_rescue_mode): Register "exit".
35749 * kern/misc.c (grub_real_dprintf): A cosmetic change.
35750 (grub_abort): New function.
35752 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
35754 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
35756 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
35758 * include/grub/efi/efi.h (grub_efi_exit): Removed.
35759 (grub_print_device_path): New prototype.
35760 (grub_efi_locate_handle): Likewise.
35761 (grub_efi_open_protocol): Likewise.
35763 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
35764 * disk/efi/efidisk.c: Likewise.
35766 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
35768 * include/grub/efi/console_control.h
35769 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
35771 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
35772 last 8 bytes as an array.
35773 (GRUB_EFI_DISK_IO_GUID): New macro.
35774 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
35775 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
35776 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
35778 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
35779 (struct grub_efi_device_path): Rename the member "sub_type" to
35781 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
35782 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
35783 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
35784 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
35785 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
35786 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
35787 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
35788 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
35789 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
35790 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
35791 (struct grub_efi_pci_device_path): New structure.
35792 (grub_efi_pci_device_path_t): New type.
35793 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
35794 (struct grub_efi_pccard_device_path): New structure.
35795 (grub_efi_pccard_device_path_t): New type.
35796 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
35797 (struct grub_efi_memory_mapped_device_path): New structure.
35798 (grub_efi_memory_mapped_device_path_t): New type.
35799 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
35800 (struct grub_efi_vendor_device_path): New structure.
35801 (grub_efi_vendor_device_path_t): New type.
35802 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
35803 (struct grub_efi_controller_device_path): New structure.
35804 (grub_efi_controller_device_path_t): New type.
35805 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
35806 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
35807 (struct grub_efi_acpi_device_path): New structure.
35808 (grub_efi_acpi_device_path_t): New type.
35809 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
35810 (struct grub_efi_expanded_acpi_device_path): New structure.
35811 (grub_efi_expanded_acpi_device_path_t): New type.
35812 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
35813 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
35814 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
35815 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
35816 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
35817 (struct grub_efi_atapi_device_path): New structure.
35818 (grub_efi_atapi_device_path_t): New type.
35819 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
35820 (struct grub_efi_fibre_channel_device_path): New structure.
35821 (grub_efi_fibre_channel_device_path_t): New type.
35822 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
35823 (struct grub_efi_1394_device_path): New structure.
35824 (grub_efi_1394_device_path_t): New type.
35825 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
35826 (struct grub_efi_usb_device_path): New structure.
35827 (grub_efi_usb_device_path_t): New type.
35828 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
35829 (struct grub_efi_usb_class_device_path): New structure.
35830 (grub_efi_usb_class_device_path_t): New type.
35831 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
35832 (struct grub_efi_i2o_device_path): New structure.
35833 (grub_efi_i2o_device_path_t): New type.
35834 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
35835 (struct grub_efi_mac_address_device_path): New structure.
35836 (grub_efi_mac_address_device_path_t): New type.
35837 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
35838 (struct grub_efi_ipv4_device_path): New structure.
35839 (grub_efi_ipv4_device_path_t): New type.
35840 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
35841 (struct grub_efi_ipv6_device_path): New structure.
35842 (grub_efi_ipv6_device_path_t): New type.
35843 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
35844 (struct grub_efi_infiniband_device_path): New structure.
35845 (grub_efi_infiniband_device_path_t): New type.
35846 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
35847 (struct grub_efi_uart_device_path): New structure.
35848 (grub_efi_uart_device_path_t): New type.
35849 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
35850 (struct grub_efi_vendor_messaging_device_path): New structure.
35851 (grub_efi_vendor_messaging_device_path_t): New type.
35852 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
35853 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
35854 (struct grub_efi_hard_drive_device_path): New structure.
35855 (grub_efi_hard_drive_device_path_t): New type.
35856 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
35857 (struct grub_efi_cdrom_device_path): New structure.
35858 (grub_efi_cdrom_device_path_t): New type.
35859 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
35860 (struct grub_efi_vendor_media_device_path): New structure.
35861 (grub_efi_vendor_media_device_path_t): New type.
35862 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
35863 (struct grub_efi_file_path_device_path): New structure.
35864 (grub_efi_file_path_device_path_t): New type.
35865 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
35866 (struct grub_efi_protocol_device_path): New structure.
35867 (grub_efi_protocol_device_path_t): New type.
35868 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
35869 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
35870 (struct grub_efi_bios_device_path): New structure.
35871 (grub_efi_bios_device_path_t): New type.
35872 (struct grub_efi_disk_io): New structure.
35873 (grub_efi_disk_io_t): New type.
35874 (struct grub_efi_block_io_media): New structure.
35875 (grub_efi_block_io_media_t): New type.
35876 (struct grub_efi_block_io): New structure.
35877 (grub_efi_block_io_t): New type.
35879 * include/grub/misc.h (grub_stop): Removed.
35880 (grub_exit): New prototype.
35881 (grub_abort): Likewise.
35883 * include/grub/disk.h (enum grub_disk_dev_id): Added
35884 GRUB_DISK_DEVICE_EFIDISK_ID.
35886 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
35887 disk/efi/efidisk.c.
35888 (kernel_syms.lst): Remove the target if an error occurs.
35890 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
35892 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
35893 as it was simply too buggy.
35895 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
35897 * kern/misc.c (grub_lltoa): New function.
35898 (grub_vsprintf): Added support for the long long suffix,
35901 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
35903 * Makefile.in (LDFLAGS): Add variable.
35904 (LD): Remove variable.
35905 * configure.ac: Add -m32 to LDFLAGS.
35906 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
35907 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
35908 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
35909 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
35910 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
35912 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
35913 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
35914 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
35916 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
35918 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
35919 length for unknown glyph.
35921 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
35923 Add support for pre-loaded modules into the EFI port.
35925 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
35926 completely. Accept one more argument DIR. The caller has changed.
35928 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
35930 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
35931 (grub_efi_loaded_image_guid): New variable.
35932 (grub_efi_get_loaded_image): New function.
35933 (grub_arch_modules_addr): Likewise.
35935 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
35938 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
35939 (struct grub_efi_loaded_image): New structure.
35940 (grub_efi_loaded_image_t): New type.
35942 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
35944 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
35945 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
35946 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
35948 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
35950 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
35952 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
35954 * DISTLIST: Added include/grub/efi/console.h,
35955 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
35956 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
35958 * include/grub/efi/console.h: New file.
35959 * include/grub/efi/time.h: Likewise.
35960 * include/grub/i386/efi/kernel.h: Likewise.
35961 * kern/efi/init.c: Likewise.
35962 * kern/efi/mm.c: Likewise.
35963 * term/efi/console.c: Likewise.
35965 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
35966 (grub_stop): Removed.
35967 (grub_get_rtc): Likewise.
35968 (grub_machine_init): Simply call grub_efi_init.
35969 (grub_machine_fini): Call grub_efi_fini.
35971 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
35972 (grub_efi_output_string): Removed.
35973 (grub_efi_stall): New function.
35974 (grub_stop): Likewise.
35975 (grub_get_rtc): Likewise.
35977 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
35978 (grub_efi_stall): New prototype.
35979 (grub_efi_allocate_pages): Likewise.
35980 (grub_efi_free_pages): Likewise.
35981 (grub_efi_get_memory_map): Likewise.
35982 (grub_efi_mm_init): Likewise.
35983 (grub_efi_mm_fini): Likewise.
35984 (grub_efi_init): Likewise.
35985 (grub_efi_fini): Likewise.
35987 * include/grub/i386/efi/time.h: Do not include
35988 grub/symbol.h. Include grub/efi/time.h.
35989 (GRUB_TICKS_PER_SECOND): Removed.
35990 (grub_get_rtc): Likewise.
35992 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
35993 Added padding. The EFI spec is buggy.
35994 (GRUB_EFI_BLACK): New macro.
35995 (GRUB_EFI_BLUE): Likewise.
35996 (GRUB_EFI_GREEN): Likewise.
35997 (GRUB_EFI_CYAN): Likewise.
35998 (GRUB_EFI_RED): Likewise.
35999 (GRUB_EFI_MAGENTA): Likewise.
36000 (GRUB_EFI_BROWN): Likewise.
36001 (GRUB_EFI_LIGHTGRAY): Likewise.
36002 (GRUB_EFI_BRIGHT): Likewise.
36003 (GRUB_EFI_DARKGRAY): Likewise.
36004 (GRUB_EFI_LIGHTBLUE): Likewise.
36005 (GRUB_EFI_LIGHTGREEN): Likewise.
36006 (GRUB_EFI_LIGHTCYAN): Likewise.
36007 (GRUB_EFI_LIGHTRED): Likewise.
36008 (GRUB_EFI_LIGHTMAGENTA): Likewise.
36009 (GRUB_EFI_YELLOW): Likewise.
36010 (GRUB_EFI_WHITE): Likewise.
36011 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
36012 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
36013 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
36014 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
36015 (GRUB_EFI_BACKGROUND_RED): Likewise.
36016 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
36017 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
36018 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
36019 (GRUB_EFI_TEXT_ATTR): Likewise.
36021 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
36022 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
36023 (kernel_mod_HEADERS): Added efi/time.h.
36025 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
36027 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
36028 include/grub/efi/api.h, include/grub/efi/console_control.h,
36029 include/grub/efi/efi.h, include/grub/efi/pe32.h,
36030 include/grub/i386/efi/time.h, kern/efi/efi.c,
36031 kern/i386/efi/init.c, kern/i386/efi/startup.S,
36032 and util/i386/efi/grub-mkimage.c.
36034 * Makefile.in (RMKFILES): Added i386-efi.rmk.
36036 * genmk.rb (PModule#rule): Do not export symbols if
36037 #{prefix}_EXPORTS is set to "no".
36039 * conf/i386-efi.mk: New file.
36040 * conf/i386-efi.rmk: Likewise.
36041 * include/grub/efi/api.h: Likewise.
36042 * include/grub/efi/console_control.h: Likewise.
36043 * include/grub/efi/efi.h: Likewise.
36044 * include/grub/efi/pe32.h: Likewise.
36045 * include/grub/i386/efi/time.h: Likewise.
36046 * kern/efi/efi.c: Likewise.
36047 * kern/i386/efi/init.c: Likewise.
36048 * kern/i386/efi/startup.S: Likewise.
36049 * util/i386/efi/grub-mkimage.c: Likewise.
36051 2006-04-17 Marco Gerards <marco@gnu.org>
36053 * include/grub/script.h: Include <grub/parser.h> and
36054 "grub_script.tab.h".
36055 (struct grub_lexer_param): New struct.
36056 (struct grub_parser_param): Likewise.
36057 (grub_script_create_arglist): Pass the state in an argument.
36058 (grub_script_add_arglist): Likewise.
36059 (grub_script_create_cmdline): Likewise.
36060 (grub_script_create_cmdblock): Likewise.
36061 (grub_script_create_cmdif): Likewise.
36062 (grub_script_create_cmdmenu): Likewise.
36063 (grub_script_add_cmd): Likewise.
36064 (grub_script_arg_add): Likewise.
36065 (grub_script_lexer_ref): Likewise.
36066 (grub_script_lexer_deref): Likewise.
36067 (grub_script_lexer_record_start): Likewise.
36068 (grub_script_lexer_record_stop): Likewise.
36069 (grub_script_mem_record): Likewise.
36070 (grub_script_mem_record_stop): Likewise.
36071 (grub_script_malloc): Likewise.
36072 (grub_script_yylex): Likewise.
36073 (grub_script_yyparse): Likewise.
36074 (grub_script_yyerror): Likewise.
36075 (grub_script_yylex): Likewise.
36076 (grub_script_lexer_init): Return the state.
36078 * normal/lexer.c (grub_script_lexer_state): Removed variable.
36079 (grub_script_lexer_done): Likewise.
36080 (grub_script_lexer_getline): Likewise.
36081 (grub_script_lexer_refs): Likewise.
36082 (script): Likewise.
36083 (newscript): Likewise.
36084 (record): Likewise.
36085 (recording): Likewise.
36086 (recordpos): Likewise.
36087 (recordlen): Likewise.
36088 (grub_script_lexer_init): Return the state instead of setting
36090 (grub_script_lexer_ref): Use the newly added argument for state
36091 instead of globals.
36092 (grub_script_lexer_deref): Likewise.
36093 (grub_script_lexer_record_start): Likewise.
36094 (grub_script_lexer_record_stop): Likewise.
36095 (recordchar): Likewise.
36096 (nextchar): Likewise.
36097 (grub_script_yylex2): Likewise.
36098 (grub_script_yylex): Likewise.
36099 (grub_script_yyerror): Likewise.
36101 * normal/parser.y (func_mem): Removed variable.
36102 (menu_entry): Likewise.
36104 (%lex-param): New parser option.
36105 (%parse-param): Likewise.
36106 (script): Always return the AST.
36107 (argument): Pass the state around.
36108 (arguments): Likewise.
36109 (grubcmd): Likewise.
36110 (commands): Likewise.
36111 (function): Likewise.
36112 (menuentry): Likewise.
36113 (if_statement): Likewise.
36116 * normal/script.c (grub_script_memused): Removed variable.
36117 (grub_script_parsed): Likewise.
36118 (grub_script_malloc): Added a state argument. Use that instead of
36120 (grub_script_mem_record): Likewise.
36121 (grub_script_mem_record_stop): Likewise.
36122 (grub_script_arg_add): Likewise.
36123 (grub_script_add_arglist): Likewise.
36124 (grub_script_create_cmdline): Likewise.
36125 (grub_script_create_cmdif): Likewise.
36126 (grub_script_create_cmdmenu): Likewise.
36127 (grub_script_add_cmd): Likewise.
36128 (grub_script_parse): Setup the state before calling the parser.
36130 2006-04-16 Marco Gerards <marco@gnu.org>
36132 * normal/command.c (grub_command_init): Remove the title command.
36134 * normal/lexer.c (grub_script_yylex): Renamed from this...
36135 (grub_script_yylex2): ... to this.
36136 (grub_script_yylex): New function. Temporary
36137 introduced to filter some tokens.
36138 (grub_script_yyerror): Print a newline.
36140 * normal/main.c (read_config_file): Output information about the
36141 lines that contain errors. Wait for a key after all lines have
36142 been processed. Don't return an empty menu.
36144 * normal/parser.y (func_mem): Don't initialize.
36145 (menu_entry): Likewise.
36146 (err): New variable.
36147 (script): Don't return anything when an error was encountered.
36148 (ws, returns): Removed rules.
36149 (argument): Disabled concatenated variable support.
36150 (arguments): Remove explicit separators.
36151 (grubcmd): Likewise.
36152 (function): Likewise.
36153 (menuentry): Likewise.
36155 (commands): Likewise. Add error handling.
36157 * normal/script.c (grub_script_create_cmdline): If
36158 `grub_script_parsed' is 0, assume the parser encountered an error.
36160 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
36162 * configure.ac: Add support for EFI. Fix the typo
36163 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
36165 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
36167 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
36168 foreign multibyte characters should be shown correctly.
36170 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
36172 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
36174 (read_config_file): Made it to close file before returning.
36176 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
36178 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
36179 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
36180 video/i386/pc/vbefill.c.
36182 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
36183 video/i386/pc/vbefill.c.
36185 * include/grub/video.h (grub_video_blit_format): New enum.
36186 (grub_video_mode_info): Added new member blit_format.
36187 (grub_video_get_blit_format): New function prototype.
36189 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
36190 function prototype.
36191 (grub_video_vbe_map_rgb): Likewise.
36192 (grub_video_vbe_unmap_color): Likewise.
36194 * include/grub/i386/pc/vbeblit.h: New file.
36196 * include/grub/i386/pc/vbefill.h: New file.
36198 * video/video.c (grub_video_get_blit_format): New function.
36199 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
36200 (grub_video_vbe_map_rgb): Likewise.
36201 (grub_video_vbe_unmap_color): Likewise.
36203 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
36205 (grub_video_vbe_blit_render_target): Changed to use more optimized
36207 (grub_video_vbe_setup): Added detection for optimized settings.
36208 (grub_video_vbe_create_render_target): Likewise.
36210 * video/i386/pc/vbeblit.c: New file.
36212 * video/i386/pc/vbefill.c: New file.
36214 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
36216 * font/manager.c (grub_font_get_glyph): Removed font fixup from
36219 * util/unifont2pff.rb: ... and moved it to here. Improved argument
36220 parsing to support both hex and dec ranges. If filename was missing
36221 show usage information.
36223 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
36225 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
36226 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
36228 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
36229 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
36230 (video_mod_SOURCES): Added.
36231 (video_mod_CFLAGS): Likewise.
36232 (video_mod_LDFLAGS): Likewise.
36233 (gfxterm_mod_SOURCES): Likewise.
36234 (gfxterm_mod_CFLAGS): Likewise.
36235 (gfxterm_mod_LDFLAGS): Likewise.
36236 (videotest_mod_SOURCES): Likewise.
36237 (videotest_mod_CFLAGS): Likewise.
36238 (videotest_mod_LDFLAGS): Likewise.
36239 (vesafb_mod_SOURCES): Removed.
36240 (vesafb_mod_CFLAGS): Likewise.
36241 (vesafb_mod_LDFLAGS): Likewise.
36242 (vga_mod_SOURCES): Likewise.
36243 (vga_mod_CFLAGS): Likewise.
36244 (vga_mod_LDFLAGS): Likewise.
36246 * commands/videotest.c: New file.
36248 * font/manager.c (fill_with_default_glyph): Modified to use
36250 (grub_font_get_glyph): Likewise.
36251 (fontmanager): Renamed from this...
36252 (font_manager): ... to this.
36254 * include/grub/font.h (grub_font_glyph): Added new structure.
36255 (grub_font_get_glyph): Modified to use grub_font_glyph.
36257 * include/grub/misc.h (grub_abs): Added as inline function.
36259 * include/grub/video.h: New file.
36261 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
36262 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
36263 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
36264 (grub_vbe_get_controller_info): Renamed from this...
36265 (grub_vbe_bios_get_controller_info): ... to this.
36266 (grub_vbe_get_mode_info): Renamed from this...
36267 (grub_vbe_bios_get_mode_info): ... to this.
36268 (grub_vbe_set_mode): Renamed from this...
36269 (grub_vbe_bios_set_mode): ... to this.
36270 (grub_vbe_get_mode): Renamed from this...
36271 (grub_vbe_bios_get_mode): ... to this.
36272 (grub_vbe_set_memory_window): Renamed from this...
36273 (grub_vbe_bios_set_memory_window): ... to this.
36274 (grub_vbe_get_memory_window): Renamed from this...
36275 (grub_vbe_bios_get_memory_window): ... to this.
36276 (grub_vbe_set_scanline_length): Renamed from this...
36277 (grub_vbe_set_scanline_length): ... to this.
36278 (grub_vbe_get_scanline_length): Renamed from this...
36279 (grub_vbe_bios_get_scanline_length): ... to this.
36280 (grub_vbe_set_display_start): Renamed from this...
36281 (grub_vbe_bios_set_display_start): ... to this.
36282 (grub_vbe_get_display_start): Renamed from this...
36283 (grub_vbe_bios_get_display_start): ... to this.
36284 (grub_vbe_set_palette_data): Renamed from this...
36285 (grub_vbe_bios_set_palette_data): ... to this.
36286 (grub_vbe_set_pixel_rgb): Removed.
36287 (grub_vbe_set_pixel_index): Likewise.
36289 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
36291 (grub_vbe_bios_get_controller_info): ... to this.
36292 (grub_vbe_get_mode_info): Renamed from this...
36293 (grub_vbe_bios_get_mode_info): ... to this.
36294 (grub_vbe_set_mode): Renamed from this...
36295 (grub_vbe_bios_set_mode): ... to this.
36296 (grub_vbe_get_mode): Renamed from this...
36297 (grub_vbe_bios_get_mode): ... to this.
36298 (grub_vbe_set_memory_window): Renamed from this...
36299 (grub_vbe_bios_set_memory_window): ... to this.
36300 (grub_vbe_get_memory_window): Renamed from this...
36301 (grub_vbe_bios_get_memory_window): ... to this.
36302 (grub_vbe_set_scanline_length): Renamed from this...
36303 (grub_vbe_set_scanline_length): ... to this.
36304 (grub_vbe_get_scanline_length): Renamed from this...
36305 (grub_vbe_bios_get_scanline_length): ... to this.
36306 (grub_vbe_set_display_start): Renamed from this...
36307 (grub_vbe_bios_set_display_start): ... to this.
36308 (grub_vbe_get_display_start): Renamed from this...
36309 (grub_vbe_bios_get_display_start): ... to this.
36310 (grub_vbe_set_palette_data): Renamed from this...
36311 (grub_vbe_bios_set_palette_data): ... to this.
36312 (grub_vbe_bios_get_controller_info): Fixed problem with registers
36313 getting corrupted after calling it. Added more pushes and pops.
36314 (grub_vbe_bios_set_mode): Likewise.
36315 (grub_vbe_bios_get_mode): Likewise.
36316 (grub_vbe_bios_get_memory_window): Likewise.
36317 (grub_vbe_bios_set_scanline_length): Likewise.
36318 (grub_vbe_bios_get_scanline_length): Likewise.
36319 (grub_vbe_bios_get_display_start): Likewise.
36320 (grub_vbe_bios_set_palette_data): Likewise.
36322 * normal/cmdline.c (cl_set_pos): Refresh the screen.
36323 (cl_insert): Likewise.
36324 (cl_delete): Likewise.
36326 * term/gfxterm.c: New file.
36328 * term/i386/pc/vesafb.c: Removed file.
36330 * video/video.c: New file.
36332 * video/i386/pc/vbe.c (real2pm): Added new function.
36333 (grub_video_vbe_draw_pixel): Likewise.
36334 (grub_video_vbe_get_video_ptr): Likewise.
36335 (grub_video_vbe_get_pixel): Likewise
36336 (grub_video_vbe_init): Likewise.
36337 (grub_video_vbe_fini): Likewise.
36338 (grub_video_vbe_setup): Likewise.
36339 (grub_video_vbe_get_info): Likewise.
36340 (grub_video_vbe_set_palette): Likewise.
36341 (grub_video_vbe_get_palette): Likewise.
36342 (grub_video_vbe_set_viewport): Likewise.
36343 (grub_video_vbe_get_viewport): Likewise.
36344 (grub_video_vbe_map_color): Likewise.
36345 (grub_video_vbe_map_rgb): Likewise.
36346 (grub_video_vbe_map_rgba): Likewise.
36347 (grub_video_vbe_unmap_color): Likewise.
36348 (grub_video_vbe_fill_rect): Likewise.
36349 (grub_video_vbe_blit_glyph): Likewise.
36350 (grub_video_vbe_blit_bitmap): Likewise.
36351 (grub_video_vbe_blit_render_target): Likewise.
36352 (grub_video_vbe_scroll): Likewise.
36353 (grub_video_vbe_swap_buffers): Likewise.
36354 (grub_video_vbe_create_render_target): Likewise.
36355 (grub_video_vbe_delete_render_target): Likewise.
36356 (grub_video_vbe_set_active_render_target): Likewise.
36357 (grub_vbe_set_pixel_rgb): Remove function.
36358 (grub_vbe_set_pixel_index): Likewise.
36359 (index_color_mode): Remove static variable.
36360 (active_mode): Likewise.
36361 (framebuffer): Likewise.
36362 (bytes_per_scan_line): Likewise.
36363 (grub_video_vbe_adapter): Added new static variable.
36364 (framebuffer): Likewise.
36365 (render_target): Likewise.
36366 (initial_mode): Likewise.
36367 (mode_in_use): Likewise.
36368 (mode_list): Likewise.
36370 2006-03-10 Marco Gerards <marco@gnu.org>
36372 * configure.ac (AC_INIT): Bumped to 1.93.
36374 * DISTLIST: Added `include/grub/hfs.h'.
36376 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
36378 * boot/i386/pc/boot.S (general_error): Before looping, try INT
36379 18H, which might help the BIOS falling back to next boot media.
36381 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
36383 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
36384 Poe Chen <poe.poechen@gmail.com>.
36386 2006-01-17 Marco Gerards <marco@gnu.org>
36388 * include/grub/normal.h: Include <grub/script.h>.
36389 (grub_command_list): Removed struct.
36390 (grub_command_list_t): Removed type.
36391 (grub_menu_entry): Remove members `num' and `command_list'. Add
36392 members `commands' and `sourcecode'.
36393 * include/grub/script.h: Add inclusion guards.
36394 (grub_script_cmd_menuentry): New struct.
36395 (grub_script_execute_menuentry): New prototype.
36396 (grub_script_lexer_record_start): Likewise.
36397 (grub_script_lexer_record_stop): Likewise.
36398 * normal/execute.c (grub_script_execute_menuentry): New function.
36399 * normal/lexer.c (record, recording, recordpos, recordlen): New
36401 (grub_script_lexer_record_start): New function.
36402 (grub_script_lexer_record_stop): Likewise.
36403 (recordchar): Likewise.
36404 (nextchar): Likewise.
36405 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
36406 2048 as the buffer size. Add the tokens `menuentry' and `@'.
36407 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
36408 (current_menu): New variable.
36409 (free_menu): Mainly rewritten.
36410 (grub_normal_menu_addentry): New function.
36411 (read_config_file): Rewritten.
36412 * normal/menu.c (run_menu_entry): Mainly rewritten.
36413 * normal/menu_entry.c (make_screen): Rewritten the code to insert
36415 (run): Mainly rewritten.
36416 * normal/parser.y (menu_entry): New variable.
36417 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
36418 (menuentry): New rule.
36419 (command): Add `menuentry'.
36420 (if_statement): Allow additional returns before `fi'.
36421 * normal/script.c (grub_script_create_cmdmenu): New function.
36423 2006-01-03 Marco Gerards <marco@gnu.org>
36425 * INSTALL: GNU Bison is required.
36426 * configure.ac: Rewritten the test to detect Bison.
36427 * Makefile.in (YACC): New variable. Reported by Xun Sun
36428 <xun.sun.cn@gmail.com>.
36430 2006-01-03 Marco Gerards <marco@gnu.org>
36432 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
36433 the HFS+ filesystem to filesystem blocks.
36434 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
36435 GCC warning is silenced.
36437 2006-01-03 Marco Gerards <marco@gnu.org>
36439 * partmap/apple.c (apple_partition_map_iterate): Convert the data
36440 read from disk from big endian to host byte order.
36442 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
36444 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
36446 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
36447 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
36448 embedded HFS+ filesystem.
36449 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
36450 (grub_hfs_sblock): Move from here...
36451 * include/grub/hfs.h: To here... New file.
36452 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
36454 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
36456 (grub_hfsplus_volheader): Change type of member `magic' to
36458 (grub_hfsplus_data): Add new member `embedded_offset'.
36459 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
36461 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
36462 Calculate the offset.
36464 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36466 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
36468 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
36470 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36472 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
36473 ENV->NAME is NULL after allocating ENV->VALUE.
36475 2005-12-25 Marco Gerards <marco@gnu.org>
36477 * kern/env.c (grub_env_set): Rewritten the error handling code.
36479 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36481 * geninit.sh: Made more robust, and more portable.
36483 2005-12-25 Marco Gerards <marco@gnu.org>
36485 Add support for Apple HFS+ filesystems.
36487 * fs/hfsplus.c: New file.
36489 * DISTLIST: Added `fs/hfsplus.c'.
36491 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
36492 (hfsplus_mod_SOURCES): New variable.
36493 (hfsplus_mod_CFLAGS): Likewise.
36494 (hfsplus_mod_LDFLAGS): Likewise.
36495 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
36496 (grub_setup_SOURCES): Likewise.
36497 (grub_mkdevicemap_SOURCES): Likewise.
36498 (grub_emu_SOURCES): Likewise.
36499 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36501 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
36503 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
36505 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36507 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
36508 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
36509 include/grub/parser.h, include/grub/script.h, kern/parser.c,
36510 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
36511 normal/lexer.c, normal/parser.y, normal/script.c, and
36513 Removed kern/sparc64/cache.c.
36515 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
36516 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
36519 * configure.ac (AC_INIT): Bumped to 1.92.
36521 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
36523 * kern/err.c (grub_error_push): Added new function to support error
36525 (grub_error_pop): Likewise.
36526 (grub_error_stack_items): New local variable to support error stacks.
36527 (grub_error_stack_pos): Likewise.
36528 (grub_error_stack_assert): Likewise.
36529 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
36531 (grub_print_error): Added support to print errors from error stack.
36533 * include/grub/err.h (grub_error_push): Added function prototype.
36534 (grub_error_pop): Likewise.
36536 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
36538 * configure.ac: Accept `powerpc64' as host_cpu.
36539 (amd64): Rename to `biarch32'.
36541 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
36542 non-cacheline-aligned addresses.
36544 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
36545 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
36546 if `size' is non-zero.
36548 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
36550 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
36551 and `cd' to make sure the filename is not prefixed with a
36553 (pkgdata_MODULES): Add `gpt.mod'.
36554 (gpt_mod_SOURCES): New variable.
36555 (gpt_mod_CFLAGS): Likewise.
36556 (gpt_mod_LDFLAGS): Likewise.
36558 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
36560 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
36563 * partmap/gpt.c: New file.
36565 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
36566 GPT partition map is detected.
36568 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
36570 * commands/i386/pc/play.c: New file.
36571 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
36572 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
36575 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
36577 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
36578 ((unused))' to silence gcc warning.
36580 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
36582 * configure.ac: Correct `AC_PROG_YACC' test.
36584 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36586 * util/powerpc/ieee1275/grub-install.in: Run the mount point
36587 check before installing files.
36589 2005-11-22 Mike Small <smallm@panix.com>
36591 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
36592 number regex so multidigit numbers are recognized correctly.
36594 2005-11-22 Mike Small <smallm@panix.com>
36596 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
36597 debugging message before attempting to claim memory.
36598 (grub_rescue_cmd_initrd): Add a claim debugging message and try
36599 multiple addresses in case of failure.
36601 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36603 * term/tparm.c (get_space): Remove empty `if' statement.
36605 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
36607 * kern/parser.c (check_varstate): Rename `state' to 's'.
36609 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36611 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
36612 variable definitions to the beginning of each function. Sort stack
36614 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
36615 `buf' argument to `char *'.
36617 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36619 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
36620 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
36621 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
36622 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
36623 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
36624 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
36625 configfile.mod, search.mod, gzio.mod and test.mod.
36626 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
36627 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
36628 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
36629 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
36630 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
36631 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
36632 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
36633 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
36634 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
36635 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
36636 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36637 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36638 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
36639 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
36640 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
36641 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
36642 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
36643 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
36644 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
36645 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
36646 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
36647 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
36648 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
36650 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
36652 (pkgdata_MODULES): Add test.mod.
36654 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36656 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
36657 appending to variables with "+=".
36658 (PModule): Use full pathname to generate *.lst filenames.
36660 * Makefile.in: Fixed list rules moved from genmk.rb.
36661 (.DELETE_ON_ERROR): New special target.
36662 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
36664 * conf/i386-pc.rmk: Include conf/common.mk.
36665 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
36666 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
36667 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
36668 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
36669 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
36670 configfile.mod, search.mod, gzio.mod and test.mod.
36671 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
36672 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
36673 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
36674 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
36675 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
36676 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
36677 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
36678 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
36679 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
36680 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
36681 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36682 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36683 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
36684 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
36685 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
36686 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
36687 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
36688 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
36689 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
36690 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
36691 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
36692 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
36693 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
36695 * conf/common.rmk: ... to here. New file.
36697 * conf/common.mk: New file.
36699 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
36701 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
36702 (grub_script.tab.c): ... here.
36704 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
36705 (grub_script.tab.c): ... here.
36707 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
36708 (grub_script.tab.c): ... here.
36710 * normal/command.c (grub_command_find): Fixed a memory leak of
36711 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
36713 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36715 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
36716 "@" which marks the start of a comment on ARM.
36717 (VARIABLE): Likewise.
36719 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36721 Add support for Linux/ADFS partition tables.
36723 * partmap/acorn.c: New file.
36725 * include/grub/acorn_filecore.h: Likewise.
36727 * DISTLIST: Added `partmap/acorn.c' and
36728 `include/grub/acorn_filecore.h'.
36730 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36732 (pkgdata_MODULES): Add `acorn.mod'.
36733 (acorn_mod_SOURCES): New variable.
36734 (acorn_mod_CFLAGS): Likewise.
36736 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
36738 (pkgdata_MODULES): Add `acorn.mod'.
36739 (acorn_mod_SOURCES): New variable.
36740 (acorn_mod_CFLAGS): Likewise.
36742 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
36743 (pkgdata_MODULES): Add `acorn.mod'.
36744 (acorn_mod_SOURCES): New variable.
36745 (acorn_mod_CFLAGS): Likewise.
36746 (acorn_mod_LDFLAGS): Likewise.
36748 * include/types.h (grub_disk_addr_t): New typedef.
36750 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
36752 * geninit.sh: New file.
36754 * geninitheader.sh: Likewise.
36756 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
36757 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
36758 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
36759 * commands/configfile.c (grub_configfile_init)
36760 (grub_configfile_fini): Likewise.
36761 * commands/default.c (grub_default_init, grub_default_fini):
36763 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
36764 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
36765 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
36766 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
36768 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
36769 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
36771 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
36772 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
36774 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
36776 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
36778 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
36779 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
36780 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
36781 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
36782 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
36783 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
36784 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
36785 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
36786 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
36787 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
36788 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
36789 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
36790 * partmap/amiga.c (grub_amiga_partition_map_init)
36791 (grub_amiga_partition_map_fini): Likewise.
36792 * partmap/apple.c (grub_apple_partition_map_init)
36793 (grub_apple_partition_map_fini): Likewise.
36794 * partmap/pc.c (grub_pc_partition_map_init)
36795 (grub_pc_partition_map_fini): Likewise.
36796 * partmap/sun.c (grub_sun_partition_map_init,
36797 grub_sun_partition_map_fini): Likewise.
36798 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
36801 * util/grub-emu.c: Include <grub_modules_init.h>.
36802 (main): Don't initialize and de-initialize any modules directly,
36803 use `grub_init_all' and `grub_fini_all' instead.
36805 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
36806 `grub_vesafb_mod_init'.
36807 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
36809 * term/i386/pc/vga.c (grub_vga_init): Renamed to
36810 `grub_vga_mod_init'. Updated all users.
36811 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
36813 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
36814 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
36817 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
36818 Generate a function to initialize the module in utilities.
36819 Updated all callers.
36820 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
36821 initialize the module in utilities. Updated all callers.
36823 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
36825 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
36826 escape sequence and a literal ^L to clear the screen.
36828 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
36829 when returning from Open Firmware.
36831 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
36833 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
36834 (grub_ofconsole_height): Likewise.
36835 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
36836 manually insert a '\n'.
36837 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
36838 `grub_ofconsole_height'. Return early if these are already set.
36840 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
36842 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
36843 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
36844 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
36845 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
36846 and `normal/script.c'.
36847 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
36848 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36849 (test_mod_SOURCES): New variable.
36850 (test_mod_CFLAGS): Likewise.
36851 (test_mod_LDFLAGS): Likewise.
36852 (pkgdata_MODULES): Add `test.mod'.
36853 (grub_script.tab.c): New rule.
36854 (grub_script.tab.h): Likewise.
36856 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
36858 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36859 `commands/test.c', `normal/execute.c', `normal/lexer.c',
36860 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36861 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
36862 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36863 (test_mod_SOURCES): New variable.
36864 (test_mod_CFLAGS): Likewise.
36865 (pkgdata_MODULES): Add `test.mod'.
36866 (grub_script.tab.c): New rule.
36867 (grub_script.tab.h): Likewise.
36869 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
36871 Add initial scripting support.
36873 * commands/test.c: New file.
36874 * include/grub/script.h: Likewise.
36875 * normal/execute.c: Likewise.
36876 * normal/function.c: Likewise.
36877 * normal/lexer.c: Likewise.
36878 * normal/parser.y: Likewise.
36879 * normal/script.c: Likewise.
36881 * configure.ac: Add `AC_PROG_YACC' test.
36883 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
36884 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
36885 `normal/function.c' and `normal/script.c'.
36886 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
36887 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36888 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
36890 (pkgdata_MODULES): Add `test.mod'.
36891 (grub_script.tab.c): New rule.
36892 (grub_script.tab.h): Likewise.
36894 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
36896 * include/grub/normal.h (grub_test_init): New prototype.
36897 (grub_test_fini): Likewise.
36899 * normal/command.c: Include <grub/script.h>.
36900 (grub_command_execute): Rewritten.
36902 * util/grub-emu.c (main): Call `grub_test_init' and
36905 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36907 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
36909 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
36910 there are no pending characters.
36912 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36914 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
36915 `grub_strndup' to drop device arguments. Replace unnecessary
36916 `grub_strndup' with `grub_strdup'.
36918 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36920 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
36921 `debug' environment variable has been set.
36923 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
36925 * Makefile.in (install-local): Use $(DATA).
36926 (uninstall): Likewise.
36927 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
36928 (sbin_UTILITIES): ... to here.
36929 (sbin_SCRIPTS): New variable.
36930 (grub_install_SOURCES): New variable.
36931 * util/powerpc/ieee1275/grub-install.in: New file.
36932 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
36934 (add_segments): Call `grub_util_get_path'.
36936 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
36938 From Timothy Baldwin:
36939 * commands/ls.c (grub_ls_list_files): Close FILE with
36941 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
36943 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
36945 * include/grub/parser.h: New file.
36947 * kern/parser.c: Likewise.
36949 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
36950 (grub_setup_SOURCES): Likewise.
36951 (grub_probefs_SOURCES): Likewise.
36952 (grub_emu_SOURCES): Likewise.
36953 (kernel_img_HEADERS): Add `parser.h'.
36955 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
36956 (grub_emu_SOURCES): Add `kern/parser.c'.
36957 (grubof_SOURCES): Likewise.
36959 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
36960 (grubof_SOURCES): Add `kern/parser.c'.
36962 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
36964 * kern/misc.c (grub_split_cmdline): Removed function.
36966 * kern/rescue.c: Include <grub/parser.h>.
36967 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
36968 of `grub_split_cmdline'.
36970 * normal/command.c: Include <grub/parser.h>.
36971 (grub_command_execute): Use `grub_parser_split_cmdline' instead
36972 of `grub_split_cmdline'.
36974 * normal/completion.c: Include <grub/parser.h>.
36975 (cmdline_state): New variable.
36976 (iterate_dir): End the filename with a quote depending on the
36977 command line state.
36978 (get_state): new function.
36979 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
36980 split the arguments and determine the current argument. When the
36981 argument string is not quoted, escape all spaces.
36983 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36985 * normal/sparc64/setjmp.S: New file.
36987 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36989 * include/grub/sparc64/libgcc.h: New file.
36990 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
36991 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
36992 normal/sparc64/setjmp.c.
36994 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36996 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
36997 * kern/sparc64/cache.S: New file.
36998 * kern/sparc64/cache.c: Removed.
36999 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
37000 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
37002 (COMMON_LDFLAGS): Add -melf64_sparc.
37003 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
37004 (grubof_SOURCES): Use cache.S instead of cache.c.
37005 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
37006 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
37007 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
37009 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
37010 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
37011 (linux_mod_CFLAGS): Commented out.
37012 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
37013 out because module isn't built.
37014 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
37015 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
37016 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
37017 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
37018 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
37019 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
37020 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
37021 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
37022 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
37023 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
37024 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
37025 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
37026 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
37027 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
37029 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
37031 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
37032 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
37033 longer, because HFS should not be used on PC.
37035 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
37037 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
37038 consistently within the loop.
37040 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
37042 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
37043 directory can not be read.
37045 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37047 * configure.ac (AC_INIT): Increase the version number to 1.91.
37049 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
37050 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
37051 term/i386/pc/serial.c.
37053 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37055 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
37056 file size must be permitted.
37058 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
37059 between %ah and %al.
37061 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37063 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
37065 Call the hook with a NUL-terminated filename.
37066 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
37069 * kern/term.c (cursor_state): New variable.
37070 (grub_term_set_current): Reset the cursor state on a new
37072 (grub_setcursor): Rewritten to use CURSOR_STATE.
37073 (grub_getcursor): New function.
37075 * include/grub/term.h (grub_getcursor): New prototype.
37077 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
37078 integers on ARM. Reported by Timothy Baldwin
37079 <T.E.Baldwin99@members.leeds.ac.uk>.
37081 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
37083 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
37085 (grub_sfs_dir): Likewise.
37087 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
37089 Add support for the SFS filesystem.
37091 * fs/sfs.c: New file.
37093 * DISTLIST: Added `fs/sfs.c'.
37095 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
37096 (grub_probefs_SOURCES): Likewise.
37097 (grub_emu_SOURCES): Likewise.
37098 (pkgdata_MODULES): Add `sfs.mod'.
37099 (sfs_mod_SOURCES): New variable.
37100 (sfs_mod_CFLAGS): Likewise.
37101 (sfs_mod_LDFLAGS): Likewise.
37103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
37104 (pkgdata_MODULES): Add `sfs.mod'.
37105 (sfs_mod_SOURCES): New variable.
37106 (sfs_mod_CFLAGS): Likewise.
37108 * util/grub-emu.c (main): Call `grub_sfs_init' and
37111 * include/grub/fs.h (grub_sfs_init): New prototype.
37112 (grub_sfs_fini): Likewise.
37114 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
37116 Add support for the AFFS filesystem.
37118 * fs/affs.c: New file.
37120 * DISTLIST: Added `fs/affs.c'.
37122 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
37123 (grub_probefs_SOURCES): Likewise.
37124 (grub_emu_SOURCES): Likewise.
37125 (pkgdata_MODULES): Add `affs.mod'.
37126 (affs_mod_SOURCES): New variable.
37127 (affs_mod_CFLAGS): Likewise.
37128 (affs_mod_LDFLAGS): Likewise.
37130 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
37131 (pkgdata_MODULES): Add `affs.mod'.
37132 (affs_mod_SOURCES): New variable.
37133 (affs_mod_CFLAGS): Likewise.
37135 * util/grub-emu.c (main): Call `grub_affs_init' and
37138 * include/grub/fs.h (grub_affs_init): New prototype.
37139 (grub_affs_fini): Likewise.
37141 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
37143 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
37145 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
37147 * configure.ac: Accept `x86_64' as host_cpu. In that case add
37150 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
37153 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
37154 (COMMON_LDFLAGS): New variable.
37155 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
37156 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
37157 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
37158 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
37159 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
37160 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
37161 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
37162 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
37163 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
37164 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
37165 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
37166 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
37167 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
37168 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
37169 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
37171 (normal_mod_ASFLAGS): Add `-m32'.
37173 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
37174 (grub_host_size_t, grub_host_ssize_t): New types.
37175 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
37176 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
37177 `GRUB_HOST_SIZEOF_VOID_P'.
37179 * include/grub/kernel.h (struct grub_module_header): Type of
37180 member offset changed to `grub_host_off_t'. Type of member size
37181 changed to `grub_host_size_t'.
37182 (struct grub_module_info): Type of member offset changed to
37183 `grub_host_off_t'. Type of member size changed to
37184 `grub_host_size_t'.
37186 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
37188 Make GRUB's kernel compliant to Multiboot Specification.
37190 * kern/i386/pc/startup.S (multiboot_header): New label.
37191 (multiboot_entry): Likewise.
37192 (multiboot_trampoline): Likewise.
37194 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37195 Increased to 0x4A0.
37197 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
37198 put parentheses after a question mark.
37199 [!GRUB_UTIL] (my_mod): New variable.
37201 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
37203 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
37205 Adds support for the XFS filesystem. Btrees are not supported
37208 * fs/xfs.c: New file.
37210 * DISTLIST: Added `fs/xfs.c'.
37212 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
37213 (grub_probefs_SOURCES): Likewise.
37214 (grub_emu_SOURCES): Likewise.
37215 (pkgdata_MODULES): Add `xfs.mod'.
37216 (xfs_mod_SOURCES): New variable.
37217 (xfs_mod_CFLAGS): Likewise.
37219 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
37220 (pkgdata_MODULES): Add `xfs.mod'.
37221 (xfs_mod_SOURCES): New variable.
37222 (xfs_mod_CFLAGS): Likewise.
37224 * util/grub-emu.c (main): Call `grub_xfs_init' and
37227 * include/grub/fs.h (grub_xfs_init): New prototype.
37228 (grub_xfs_fini): Likewise.
37231 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
37233 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
37234 color modes, allow greater than 16 colors to be configured as
37237 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
37239 * normal/completion.c (complete_arguments): Add the qualifier
37240 const into OPTIONS.
37242 From Omniflux <omniflux+lists@omniflux.com>:
37243 * include/grub/terminfo.h: New file.
37244 * include/grub/tparm.h: Likewise.
37245 * include/grub/i386/pc/serial.h: Likewise.
37246 * term/terminfo.c: Likewise.
37247 * term/tparm.c: Likewise.
37248 * term/i386/pc/serial.c: Likewise.
37249 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
37251 (terminfo_mod_SOURCES): New variable.
37252 (terminfo_mod_CFLAGS): Likewise.
37253 (serial_mod_SOURCES): Likewise.
37254 (serial_mod_CFLAGS): Likewise.
37256 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
37258 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
37259 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
37260 and kern/powerpc/ieee1275/cmain.c, respectively.
37262 * boot/powerpc/ieee1275/crt0.S: Moved to ...
37263 * kern/powerpc/ieee1275/crt0.S: ... here.
37265 * boot/powerpc/ieee1275/cmain.c: Moved to ...
37266 * kern/powerpc/ieee1275/cmain.c: ... here.
37268 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
37269 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
37270 instead of boot/powerpc/ieee1275/crt0.S and
37271 boot/powerpc/ieee1275/cmain.c, respectively.
37273 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
37274 sectors. It was not used anyway.
37276 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
37278 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
37279 `unused parameter' warning.
37281 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
37283 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
37285 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
37288 2005-08-28 Marco Gerards <metgerards@student.han.nl>
37290 * include/grub/normal.h (enum grub_completion_type): Added
37291 `GRUB_COMPLETION_TYPE_ARGUMENT'.
37293 * normal/cmdline.c (print_completion): Handle
37294 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
37295 * normal/menu_entry.c (store_completion): Likewise.
37297 * normal/completion.c (complete_arguments): New function.
37298 (grub_normal_do_completion): Call `complete_arguments' when the
37299 current words start with a dash.
37301 2005-08-27 Marco Gerards <metgerards@student.han.nl>
37303 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
37304 `gzio.mod' instead of `io.mod').
37306 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
37308 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
37309 (DISTDIRS): Added io and video.
37310 Rewrite the search routine to make an output consistently.
37312 * DISTLIST: Added conf/sparc64-ieee1275.mk,
37313 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
37314 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
37315 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
37316 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
37317 util/powerpc/ieee1275/misc.c.
37319 * include/grub/gzio.h: New file.
37320 * io/gzio.c: Likewise.
37322 * kern/file.c (grub_file_close): Call grub_device_close only if
37323 FILE->DEVICE is not NULL.
37325 * include/grub/mm.h [!NULL] (NULL): New macro.
37327 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
37329 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
37330 (pkgdata_MODULES): Added gzio.mod.
37331 (gzio_mod_SOURCES): New variable.
37332 (gzio_mod_CFLAGS): Likewise.
37334 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
37335 (pkgdata_MODULES): Added gzio.mod.
37336 (gzio_mod_SOURCES): New variable.
37337 (gzio_mod_CFLAGS): Likewise.
37339 * commands/cat.c: Include grub/gzio.h.
37340 (grub_cmd_cat): Use grub_gzfile_open instead of
37343 * commands/cmp.c: Include grub/gzio.h.
37344 (grub_cmd_cmp): Use grub_gzfile_open instead of
37347 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
37348 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
37350 (grub_rescue_cmd_module): Likewise.
37352 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
37354 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
37355 kern/sparc64/ieee1275/init.c because it contains _start.
37356 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
37358 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
37360 * configure.ac: Add support for sparc64 host with ieee1275
37362 * configure: Generated from configure.ac.
37363 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
37365 (grub_ofdisk_read): Likewise.
37366 (grub_ofdisk_open): Use %p to print pointer values, and cast the
37367 pointers as (void *) to remove a warning.
37368 (grub_ofdisk_close): Likewise.
37369 (grub_ofdisk_read): Likewise.
37370 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
37371 returns, so make it return void to remove a warning.
37372 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
37373 Corresponding prototype change.
37374 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
37375 values, and cast the pointers as (void *) to remove a warning.
37376 (grub_mm_dump): Likewise.
37377 * conf/sparc64-ieee1275.mk: New file.
37378 * conf/sparc64-ieee1275.rmk: Likewise.
37379 * include/grub/sparc64/setjmp.h: Likewise.
37380 * include/grub/sparc64/types.h: Likewise.
37381 * include/grub/sparc64/ieee1275/console.h: Likewise.
37382 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
37383 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
37384 * include/grub/sparc64/ieee1275/time.h: Likewise.
37385 * kern/sparc64/cache.c: Likewise.
37386 * kern/sparc64/dl.c: Likewise.
37387 * kern/sparc64/ieee1275/init.c: Likewise.
37388 * kern/sparc64/ieee1275/openfw.c: Likewise.
37390 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
37392 * util/console.c (grub_ncurses_putchar): If C is greater than
37393 0x7f, set C to a question mark.
37394 (grub_ncurses_getcharwidth): New function.
37395 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
37398 * normal/menu.c (print_entry): Made aware of Unicode. First,
37399 convert TITLE to UCS-4, and predict the cursor position by
37402 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
37404 * kern/misc.c (grub_utf16_to_utf8): Likewise.
37406 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37408 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
37409 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
37412 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
37413 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
37414 grub_strcpy and grub_strlen. Take it into account that a space
37415 character is inserted as a delimiter.
37417 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37419 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
37420 invalid magic in the error.
37422 * commands/search.c: New file.
37424 * util/grub-emu.c (main): Call grub_search_init and
37427 * kern/rescue.c (grub_rescue_print_disks): Removed.
37428 (grub_rescue_print_devices): New function.
37429 (grub_rescue_cmd_ls): Use grub_device_iterate with
37430 grub_rescue_print_devices instead of grub_disk_dev_iterate with
37431 grub_rescue_print_disks.
37433 * kern/partition.c (grub_partition_iterate): Return the result of
37434 PARTMAP->ITERATE instead of GRUB_ERRNO.
37436 * kern/device.c: Include grub/partition.h.
37437 (grub_device_iterate): New function.
37439 * include/grub/partition.h (grub_partition_iterate): Return int
37440 instead of grub_err_t.
37442 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
37444 [GRUB_UTIL] (grub_search_fini): Likewise.
37446 * include/grub/device.h (grub_device_iterate): New prototype.
37448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
37450 (pkgdata_MODULES): Added search.mod.
37451 (search_mod_SOURCES): New variable.
37452 (search_mod_CFLAGS): Likewise.
37454 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
37455 (pkgdata_MODULES): Added search.mod.
37456 (search_mod_SOURCES): New variable.
37457 (search_mod_CFLAGS): Likewise.
37459 * commands/ls.c (grub_ls_list_disks): Renamed to ...
37460 (grub_ls_list_devices): ... this, and use grub_device_iterate.
37461 All callers changed.
37463 * DISTLIST: Added commands/search.c.
37465 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37467 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
37469 (grub_getcharwidth): New function.
37471 * kern/misc.c (grub_utf8_to_ucs4): New function.
37473 * include/grub/term.h (struct grub_term): Added a new member
37475 (grub_getcharwidth): New prototype.
37477 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
37479 * term/i386/pc/console.c (map_char): New function. Segregated from
37480 grub_console_putchar.
37481 (grub_console_putchar): Use map_char.
37482 (grub_console_getcharwidth): New function.
37483 (grub_console_term): Specified grub_console_getcharwidth as
37486 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
37487 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
37489 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
37491 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
37492 on grub_strtoul completely.
37493 (write_char): Declare local variables in the beginning of the
37495 (grub_vesafb_getcharwidth): New function.
37496 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
37499 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
37501 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
37502 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
37503 commands/i386/pc/vbetest.c.
37505 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
37506 call grub_vbe_get_controller_info again, because the returned
37507 information is volatile.
37508 (grub_vbe_set_video_mode): Mostly rewritten.
37509 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
37510 grub_vbe_status_t correctly.
37511 (grub_vbe_get_video_mode_info): Likewise.
37512 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
37513 several if statements.
37515 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
37516 * commands/i386/pc/vbeinfo.c: ... this.
37518 * commands/i386/pc/vbe_test.c: Renamed to ...
37519 * commands/i386/pc/vbetest.c: ... this.
37521 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
37523 (grub_cmd_vbeinfo): ... this. Save video modes before
37524 iterating. Skip a video mode, if it is not available, not enough
37525 information is given or it is monochrome. Show the memory
37526 model. Leave the interpretation of MODEVAR to grub_strtoul
37528 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
37529 (GRUB_MOD_FINI): Likewise.
37531 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
37532 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
37533 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
37534 duplicated grub_env_get. Leave the interpretation of MODEVAR to
37535 grub_strtoul completely.
37536 (real2pm): Removed.
37537 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
37538 (GRUB_MOD_FINI): Likewise.
37540 * normal/misc.c: Include grub/mm.h.
37542 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
37543 vbe_list_modes with vbetest.mod and vbeinfo.mod.
37544 (vbe_list_modes_mod_SOURCES): Removed.
37545 (vbe_list_modes_mod_CFLAGS): Likewise.
37546 (vbe_test_mod_SOURCES): Likewise.
37547 (vbe_test_mod_CFLAGS): Likewise.
37548 (vbeinfo_mod_SOURCES): New variable.
37549 (vbeinfo_mod_CFLAGS): Likewise.
37550 (vbetest_mod_SOURCES): Likewise.
37551 (vbetest_mod_CFLAGS): Likewise.
37553 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
37555 * normal/misc.c: New file.
37557 * DISTLIST: Added normal/misc.c.
37559 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
37560 DISK to HOOK. Call HOOK with DISK.
37561 * partmap/apple.c (apple_partition_map_iterate): Likewise.
37562 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37563 * partmap/sun.c (sun_partition_map_iterate): Likewise.
37565 * normal/menu_entry.c (struct screen): Added a new member
37566 "completion_shown".
37567 (completion_buffer): New global variable.
37568 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
37569 (store_completion): New function.
37570 (complete): Likewise.
37571 (clear_completions): Likewise.
37572 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
37573 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
37574 a tab, call complete.
37576 * normal/completion.c (disk_dev): Removed.
37577 (print_simple_completion): Likewise.
37578 (print_partition_completion): Likewise.
37579 (print_func): New global variable.
37580 (add_completion): Do not take the arguments WHAT or PRINT any
37581 longer. Added a new argument TYPE. Instead of printing directly,
37582 call PRINT_FUNC if not NULL.
37583 All callers changed.
37584 (complete_device): Use a local variable DEV instead of
37585 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
37586 (grub_normal_do_completion): Take a new argument HOOK. Do not
37587 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
37588 empty string, return NULL instead.
37589 All callers changed.
37591 * normal/cmdline.c (print_completion): New function.
37593 * kern/partition.c (grub_partition_iterate): Add an argument DISK
37595 All callers changed.
37597 * kern/disk.c (grub_print_partinfo): Removed.
37599 * include/grub/partition.h (struct grub_partition_map): Add a new
37600 argument DISK into HOOK of ITERATE.
37601 (grub_partition_iterate): Add a new argument DISK to HOOK.
37603 * include/grub/normal.h (enum grub_completion_type): New enum.
37604 (grub_completion_type_t): New type.
37605 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
37606 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
37607 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
37608 (GRUB_COMPLETION_TYPE_FILE): Likewise.
37609 (grub_normal_do_completion): Added a new argument HOOK.
37610 (grub_normal_print_device_info): New prototype.
37612 * include/grub/disk.h (grub_print_partinfo): Removed.
37614 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
37615 (normal_mod_SOURCES): Likewise.
37616 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37617 (normal_mod_SOURCES): Likewise.
37619 * commands/ls.c (grub_ls_list_disks): Use
37620 grub_normal_print_device_info instead of grub_print_partinfo. Free
37622 (grub_ls_list_files): Use grub_normal_print_device_info instead of
37623 duplicating the code.
37625 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
37627 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
37628 follow GCS more precisely.
37629 * commands/i386/pc/vbe_test.c: Likewise.
37630 * include/grub/i386/pc/vbe.h: Likewise.
37631 * term/i386/pc/vesafb.c: Likewise.
37632 * video/i386/pc/vbe.c: Likewise.
37634 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
37636 * DISTLIST: Added term/i386/pc/vesafb.c
37637 DISTLIST: Added video/i386/pc/vbe.c
37638 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
37639 DISTLIST: Added commands/i386/pc/vbe_test.c.
37640 * commands/i386/pc/vbe_list_modes.c: New file.
37641 * commands/i386/pc/vbe_test.c: Likewise.
37642 * term/i386/pc/vesafb.c: Likewise.
37643 * video/i386/pc/vbe.c: Likewise.
37644 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
37645 (grub_vbe_probe) Added prototype.
37646 (grub_vbe_set_video_mode) Likewise.
37647 (grub_vbe_get_video_mode) Likewise.
37648 (grub_vbe_get_video_mode_info) Likewise.
37649 (grub_vbe_set_pixel_rgb) Likewise.
37650 (grub_vbe_set_pixel_index) Likewise.
37651 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
37652 (pkgdata_MODULES): Added vesafb.mod.
37653 (pkgdata_MODULES): Added vbe_list_modes.mod.
37654 (pkgdata_MODULES): Added vbe_test.mod.
37655 (vbe_mod_SOURCES): Added.
37656 (vbe_mod_CFLAGS): Likewise.
37657 (vesafb_mod_SOURCES): Likewise.
37658 (vesafb_mod_CFLAGS): Likewise.
37659 (vbe_list_modes_mod_SOURCES): Likewise.
37660 (vbe_list_modes_mod_CFLAGS): Likewise.
37661 (vbe_test_mod_SOURCES): Likewise.
37662 (vbe_test_mod_CFLAGS): Likewise.
37664 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
37666 * normal/command.c (grub_command_execute): If INTERACTIVE is
37667 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
37668 CMDLINE. Disable the pager if INTERACTIVE is true.
37669 All callers are changed.
37671 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
37672 before reading a config file.
37673 * normal/main.c (read_config_file): Even if a command is not
37674 found, register it if it is within an entry.
37676 * util/grub-emu.c: Include sys/types.h and unistd.h.
37677 (options): Added --hold.
37678 (struct arguments): Added a new member "hold".
37679 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
37681 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
37682 cleared by a debugger, if it is not zero.
37684 * include/grub/normal.h (grub_command_execute): Add an argument
37687 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
37689 * DISTLIST: Added include/grub/i386/pc/vbe.h.
37691 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
37693 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
37694 program with another one, because the old one didn't detect a bug
37695 in gcc-3.4. Always use regparm 2, because the new test is still
37696 not enough for gcc-4.0. Someone must investigate a simple test
37697 case which detects a bug in gcc-4.0.
37699 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
37701 * DISTLIST: Added normal/completion.c.
37703 * normal/completion.c: New file.
37705 * term/i386/pc/console.c (grub_console_getwh): New function.
37706 (grub_console_term): Assign grub_console_getwh to getwh.
37708 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
37709 function is defined in normal/completion.c as
37710 grub_normal_do_completion.
37711 (grub_cmdline_get): Use grub_normal_do_completion instead of
37714 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
37715 returns non-zero, otherwise return 0.
37716 (grub_partition_iterate): First, probe the partition map. Then,
37717 call ITERATE only for this partition map.
37719 * kern/misc.c (grub_strncmp): Rewritten.
37721 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
37722 returns non-zero. Otherwise return 0.
37724 * include/grub/partition.h (grub_partition_map_iterate): Return
37725 int instead of void.
37727 * include/grub/normal.h (grub_normal_do_completion): New prototype.
37729 * include/grub/misc.h (grub_strncmp): Change the type of N to
37732 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
37735 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
37736 unsigned explicitly before comparing it with I.
37738 * kern/main.c (grub_env_write_root): Add the attribute unused into
37741 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
37742 normal/completion.c.
37743 (normal_mod_SOURCES): Likewise.
37744 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37745 (normal_mod_SOURCES): Likewise.
37747 * normal/command.c (grub_iterate_commands): If ITERATE returns
37748 non-zero, return one immediately.
37750 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
37752 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
37753 * kern/i386/pc/startup.S: Updated Global Descriptor table's
37755 (grub_vbe_get_controller_info): New function.
37756 (grub_vbe_get_mode_info): Likewise.
37757 (grub_vbe_set_mode): Likewise.
37758 (grub_vbe_get_mode): Likewise.
37759 (grub_vbe_set_memory_window): Likewise.
37760 (grub_vbe_get_memory_window): Likewise.
37761 (grub_vbe_set_scanline_length): Likewise.
37762 (grub_vbe_get_scanline_length): Likewise.
37763 (grub_vbe_set_display_start): Likewise.
37764 (grub_vbe_get_display_start): Likewise.
37765 (grub_vbe_set_palette_data): Likewise.
37766 * include/grub/i386/pc/vbe.h: New file.
37768 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37770 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
37771 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
37772 * DISTLIST: Likewise.
37773 * kern/ieee1275/of.c: Moved to ...
37774 * kern/ieee1275/ieee1275.c: ... here.
37776 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37778 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
37779 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
37780 Pass 0 as `end' parameter to grub_strtoul().
37782 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37784 * include/grub/powerpc/ieee1275/console.h: Do not include
37785 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
37787 (grub_console_cur_color): Remove i386-specific prototype.
37788 (grub_console_real_putchar): Likewise.
37789 (grub_console_checkkey): Likewise.
37790 (grub_console_getkey): Likewise.
37791 (grub_console_getxy): Likewise.
37792 (grub_console_gotoxy): Likewise.
37793 (grub_console_cls): Likewise.
37794 (grub_console_setcursor): Likewise.
37795 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
37796 Include <grub/machine/console.h>.
37797 * term/ieee1275/ofconsole.c: Likewise.
37799 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
37801 * Makefile.in (LIBLZO): New variable.
37803 * configure.ac: Check for LZO version 2.
37805 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
37806 lzo/lzo1x.h instead of lzo1x.h.
37808 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
37811 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
37812 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
37814 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
37815 copying the data from PARTITION to P.
37817 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37819 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
37820 negative, unload the module.
37822 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
37823 map is "pc_partition_map" but not "pc".
37824 (usage): Fix the description. The options are --boot-image and
37825 --core-image but not --boot-file or --core-file.
37826 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
37827 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
37830 * util/i386/pc/grub-install.in: Do not specify --boot-file or
37831 --core-file. Specify INSTALL_DEVICE as an argument.
37833 * util/console.c: Include config.h.
37834 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
37835 [HAVE_NCURSES_H]: Include ncurses.h.
37836 [HAVE_CURSES_H]: Include curses.h.
37837 [!A_NORMAL] (A_NORMAL): Defined as zero.
37838 [!A_STANDOUT] (A_STANDOUT): Likewise.
37840 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
37842 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
37844 * configure.ac: Check for curses libraries and headers.
37846 * Makefile.in (LIBCURSES): New variable.
37848 * genmk.rb (Script::rule): Set the executable bits.
37850 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
37851 name of the PC partition map is "pc_partition_map" but not "pc".
37853 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37855 * util/i386/pc/grub-install.in (grub_probefs): New variable.
37856 (modules): Likewise.
37857 (usage): Added descriptions for --modules and --grub-probefs.
37858 Handle --modules and --grub-probefs. Save the arguments in MODULES
37859 and GRUB_PROBEFS, respectively.
37860 Auto-detect a filesystem module against GRUBDIR. If the result is
37861 empty and modules are not specified explicitly, abort the
37862 installation. Add the result to MODULES.
37864 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
37865 disk/powerpc/ieee1275/ofdisk.c,
37866 include/grub/powerpc/ieee1275/init.h and
37867 term/powerpc/ieee1275/ofconsole.c.
37868 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
37869 term/ieee1275/ofconsole.c.
37871 * include/grub/powerpc/ieee1275/console.h: Resurrected.
37873 * COPYING: Upgraded to the latest version. Only the address of the
37874 FSF office has changed.
37876 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37878 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
37879 kern/ieee1275.c with kern/ieee1275/of.c.
37881 * kern/ieee1275.c: Moved to ...
37882 * kern/ieee1275/of.c: ... here.
37884 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
37886 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
37889 * config.guess: Updated to the latest version from gnulib.
37890 * config.sub: Likewise.
37891 * install.sh: Likewise.
37892 * mkinstalldirs: Likewise.
37894 * include/grub/console.h: Removed. This file is arch-specific. Do
37895 not put this in include/grub.
37897 * include/grub/i386/pc/console.h: Resurrected.
37899 * util/console.c: Include grub/machine/console.h instead of
37901 * util/grub-emu.c: Likewise.
37903 2005-08-04 Marco Gerards <metgerards@student.han.nl>
37905 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
37908 From Vincent Pelletier <subdino2004@yahoo.fr>
37909 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
37910 Redefined to use grub_getwh.
37911 (grub_term): New member named getwh.
37912 (grub_getwh): New prototype.
37913 * kern/term.c (grub_getwh): New function.
37914 * term/i386/pc/console.c (grub_console_getwh): New function.
37915 (grub_console_term): New member `getwh'.
37916 * term/i386/pc/vga.c (grub_vga_getwh): New function.
37917 (grub_vga_term): New member `getwh'.
37918 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
37920 (grub_ofconsole_getw): New function.
37921 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
37922 (grub_ofconsole_term): New field named getwh and new initial
37925 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
37927 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
37928 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
37929 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
37930 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
37931 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
37932 of <grub/machine/ieee1275.h>.
37933 * commands/ieee1275/reboot.c: Likewise.
37934 * boot/powerpc/ieee1275/ieee1275.c: Move ...
37935 * kern/ieee1275.c: ... to here. All users updated. Change all
37936 parameter structs to use new type `grub_ieee1275_cell_t'.
37937 * term/powerpc/ieee1275/ofconsole.c: Move ...
37938 * term/ieee1275/ofconsole.c: ... to here. All users updated.
37939 * disk/powerpc/ieee1275/ofdisk.c: Move ...
37940 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
37941 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
37943 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
37944 Remove unused prototypes. All users updated.
37945 * include/grub/powerpc/ieee1275/console.h: Removed.
37946 * include/grub/powerpc/ieee1275/ieee1275.h: Define
37947 `grub_ieee1275_cell_t'.
37948 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
37949 Cast comparisons with -1 to the correct type.
37950 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
37951 type to match `grub_ieee1275_entry_fn'.
37953 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
37955 * DISTLIST: Added util/i386/pc/grub-probefs.c.
37957 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
37958 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
37960 (grub_probefs_SOURCES): New variable.
37962 * util/i386/pc/grub-probefs.c: New file.
37964 * util/i386/pc/grub-setup.c (main): Call
37965 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
37966 grub_hfs_init and grub_jfs_init to initialize the system. Call
37967 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
37968 grub_pc_partition_map_fini to finish the system.
37970 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
37972 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
37974 (grub_multiboot_load_elf32): Likewise.
37975 (grub_multiboot_is_elf64): Likewise.
37976 (grub_multiboot_load_elf64): Likewise.
37977 (grub_multiboot_load_elf): Likewise.
37978 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
37979 an ELF32 or ELF64 file.
37980 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
37982 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
37983 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
37984 NULL before calling FS->LABEL.
37985 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
37986 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
37987 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
37988 before calling FS->LABEL.
37990 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
37992 * util/i386/pc/grub-install.in (datadir): New variable.
37994 (pkgdatadir): New variable.
37995 (pkglibdir): Removed.
37997 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
37999 * DISTLIST: Added util/i386/pc/grub-install.in.
38001 * util/i386/pc/grub-install.in: New file.
38003 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
38004 (grub_install_SOURCES): Likewise.
38006 * genmk.rb: Added support for scripts.
38007 (Script): New class.
38008 (scripts): New variable.
38010 * Makefile.in (install-local): Install sbin_SCRIPTS by
38012 (uninstall): Remove sbin_SCRIPTS.
38014 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
38015 device, try to get a GRUB device by
38016 grub_util_biosdisk_get_grub_dev.
38019 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
38020 description for --device-map.
38022 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
38024 Change the semantics of variable hooks. They now return strings
38025 instead of error values.
38027 * util/i386/pc/grub-setup.c: Include grub/env.h.
38028 (setup): Use grub_device_set_root instead of grub_env_set.
38030 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
38031 grub_env_get instead of grub_device_set_root and
38032 grub_device_get_root, respectively.
38034 * kern/main.c (grub_env_write_root): New function.
38035 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
38036 grub_env_set instead of grub_device_set_root.
38038 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
38040 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
38041 rather than calling ENV->WRITE_HOOK afterwards.
38042 (grub_env_get): Return the result of ENV->READ_HOOK rather than
38043 passing a pointer of a pointer.
38044 (grub_register_variable_hook): Change the types of "read_hook" and
38045 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
38047 Allocate the default empty string on the heap, because this string
38048 may be freed later.
38050 * kern/device.c: Include grub/env.h.
38051 (grub_device_set_root): Removed.
38052 (grub_device_get_root): Likewise.
38053 (grub_device_open): Use grub_env_get instead of
38054 grub_device_get_root.
38056 * include/grub/env.h (grub_env_read_hook_t): New type.
38057 (grub_env_write_hook_t): Likewise.
38058 (grub_env_var): Change the types of "read_hook" and "write_hook"
38059 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
38060 (grub_register_variable_hook): Likewise.
38062 * include/grub/device.h (grub_device_set_root): Removed.
38063 (grub_device_set_root): Likewise.
38065 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
38066 make sure that DIRNAME terminates with '/', so that
38067 grub_fat_find_dir will fail if PATH is not a directory.
38069 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
38071 Use the qualifier auto for print_files and print_files_long.
38072 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
38074 Put a newline only if there is no error.
38075 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
38078 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
38080 * kern/partition.c (grub_partition_probe): Initialize PART to
38081 NULL. Otherwise, when no partition map is registered, this returns
38084 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
38086 * partmap/apple.c (apple_partition_map_iterate): Check if POS
38087 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
38090 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
38092 * commands/ls.c (grub_ls_list_disks): Print the filesystem
38093 information on each device, if it does not have partitions. Print
38094 "Device" instead of "Disk", because this function is not specific
38097 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
38098 static to ensure that it is put on the memory rather than a
38101 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38103 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
38104 (grub_cat_init): Likewise.
38105 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
38106 (options): Likewise.
38107 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
38108 (grub_configfile_init): Likewise.
38109 * font/manager.c (GRUB_MOD_INIT): Likewise.
38110 * commands/help.c (GRUB_MOD_INIT): Likewise.
38111 (grub_help_init): Likewise.
38112 * normal/command.c (grub_command_init): Likewise.
38113 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
38114 * disk/loopback.c (grub_loop_init): Likewise.
38115 (GRUB_MOD_INIT): Likewise.
38116 * commands/ls.c (grub_ls_init): Likewise.
38117 (GRUB_MOD_INIT): Likewise.
38118 (options): Likewise.
38119 * commands/boot.c (grub_boot_init): Likewise.
38120 (GRUB_MOD_INIT): Likewise.
38121 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
38122 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
38123 (GRUB_MOD_INIT): Likewise.
38124 * commands/cmp.c (grub_cmp_init): Likewise.
38125 (GRUB_MOD_INIT): Likewise.
38127 * normal/arg.c: Use <> instead of "" to include header files.
38128 (SHORT_ARG_HELP): New macro.
38129 (SHORT_ARG_USAGE): Likewise.
38130 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
38131 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
38133 (find_short): Check if C is 'h' or 'u' explicitly.
38134 (grub_arg_show_help): Use space characters instead of tabs. Treat
38135 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
38136 are shown with --help and --usage only if they are not used for
38137 the command itself.
38138 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
38141 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
38142 const into "longarg". Change the type of "shortarg" to int.
38144 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38146 * boot/i386/pc/boot.S (boot_drive_check): New label.
38148 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
38151 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
38152 which do not pass a boot drive correctly. Copied from GRUB Legacy.
38154 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38156 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
38157 When turning off Gate A20, skip the check and return immediately,
38158 because this is not fatal usually.
38160 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38162 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
38163 be 0x7C00 instead of 0x8000.
38165 * boot/i386/pc/pxeboot.S: Rewritten.
38167 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
38169 (gate_a20_check_state): Read a byte from 0x108000. Invert the
38172 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
38174 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
38175 robustness. This routine now supports a BIOS call and System
38176 Control Port A to modify the gate A20.
38178 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
38179 Increased to 0x440.
38181 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
38183 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
38184 device path and resulting ihandle.
38185 (grub_ofdisk_close): dprintf the ihandle being closed.
38186 (grub_ofdisk_read): dprintf function parameters.
38187 * kern/mm.c (grub_mm_init_region): Likewise.
38188 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
38189 (grub_linux_boot): dprintf the Linux entry point, initrd address and
38190 size, and boot arguments.
38191 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
38192 before loading into memory.
38193 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
38194 before loading into memory.
38196 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
38198 * kern/mm.c: Added much documentation.
38199 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
38200 8, set to 5 instead of 8.
38202 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
38204 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
38206 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
38207 (grub_mkdevicemap_SOURCES): New variable.
38209 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
38210 lib/device.c of GRUB Legacy.
38212 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
38214 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
38215 instead of PATH is NULL.
38217 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
38219 * commands/cmp.c (BUFFER_SIZE): New macro.
38220 (grub_cmd_cmp): Close the right file at the right time. Compare
38221 only data just read. Don't report files of different size as
38222 identical. Dynamically allocate buffers. Move variable
38223 declarations at the beginning of function.
38225 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
38227 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
38230 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
38232 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
38233 when backspace is pressed at beginning of line.
38235 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
38237 * DISTLIST: Added genfslist.sh.
38239 * normal/main.c (fs_module_list): New variable.
38240 (autoload_fs_module): New function.
38241 (read_fs_list): Likewise.
38242 (grub_normal_execute): Call read_fs_list.
38244 * kern/fs.c (grub_fs_autoload_hook): New variable.
38245 (grub_fs_probe): Added support for auto-loading.
38247 * include/grub/normal.h (struct grub_fs_module_list): New struct.
38248 (grub_fs_module_list_t): New type.
38250 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
38251 (grub_fs_autoload_hook): New prototype.
38253 * genfslist.sh: New file.
38255 * genmk.rb: Added a rule to generate a filesystem list.
38257 2005-06-30 Marco Gerards <metgerards@student.han.nl>
38259 * configure.ac: Fix the test for cross-compiling.
38261 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
38262 define GRUB_UTIL anymore.
38264 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
38265 so this function works on other systems than just big endian.
38266 (load_modules): Likewise.
38267 (add_segments): Likewise.
38269 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
38271 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
38272 contains `l' modifier, get a long from va_arg().
38274 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
38276 * kern/mm.c (grub_free): If the next free block which is being
38277 merged is the first free block, set the first block to the block
38279 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
38281 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
38283 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
38284 `grub_ieee1275_chosen'.
38286 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
38288 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
38289 (grub_ieee1275_chosen): New variable.
38290 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
38292 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
38293 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
38294 Rename first argument to `phandle' for consistency.
38295 (grub_ieee1275_get_property_length): Likewise.
38296 (grub_ieee1275_next_property): Likewise. Change type of first argument
38297 to grub_ieee1275_phandle_t.
38298 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
38299 Move export next to declaration.
38300 (grub_ieee1275_chosen): New variable.
38301 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
38302 Correct cosmetic typo.
38303 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
38304 `grub_ieee1275_chosen'.
38305 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
38306 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
38307 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
38308 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
38309 `grub_ieee1275_chosen'.
38311 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
38313 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
38315 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
38316 /chosen/bootargs as "variable=value" pairs.
38318 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
38320 * include/grub/misc.h (grub_dprintf): New macro.
38321 (grub_real_dprintf): New prototype.
38322 (grub_strword): Likewise.
38323 (grub_iswordseparator): Likewise.
38324 * kern/misc.c (grub_real_dprintf): New function.
38325 (grub_strword): Likewise.
38326 (grub_iswordseparator): Likewise.
38328 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
38330 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
38331 (roundup): Remove macro.
38332 (grub_ieee1275_flags): Make static.
38333 (grub_ieee1275_realmode): Remove.
38334 (grub_ieee1275_test_flag): New function.
38335 (grub_ieee1275_set_flag): Likewise.
38336 (find_options): Rename to `grub_ieee1275_find_options'; update
38337 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
38338 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
38339 (cmain): New prototype.
38340 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
38341 `grub_ieee1275_flags' directly.
38342 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
38343 machine/biosdisk.h.
38344 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
38345 Don't include grub/machine/init.h.
38346 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
38347 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
38349 (grub_ieee1275_realmode): Likewise.
38350 (grub_ieee1275_flag): New enum.
38351 (grub_ieee1275_test_flag): New prototype.
38352 (grub_ieee1275_set_flag): New prototype.
38353 * include/grub/powerpc/ieee1275/init.h: Remove file.
38354 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
38355 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
38356 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
38357 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
38359 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
38360 `grub_ieee1275_test_flag'.
38361 (grub_ieee1275_encode_devname): Likewise.
38363 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
38365 * include/grub/powerpc/ieee1275/ieee1275.h
38366 (grub_ieee1275_encode_devname): New prototype.
38367 (grub_ieee1275_get_filename): Likewise.
38368 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
38370 (grub_set_prefix): Likewise.
38371 (grub_machine_init): Call grub_set_prefix.
38372 * kern/powerpc/ieee1275/openfw.c: Fix typos.
38373 (grub_parse_type): New enum.
38374 (grub_ieee1275_get_devargs): New function.
38375 (grub_ieee1275_get_devname): Likewise.
38376 (grub_ieee1275_parse_args): Likewise.
38377 (grub_ieee1275_get_filename): Likewise.
38378 (grub_ieee1275_encode_devname): Likewise.
38380 2005-03-30 Marco Gerards <metgerards@student.han.nl>
38382 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
38383 `grub_loader_unset'.
38385 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
38387 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
38388 instead of grub_ieee1275_interpret.
38389 (grub_halt_init): New function.
38390 (grub_halt_fini): Likewise.
38391 (GRUB_MOD_INIT): Correct message grammar.
38392 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
38393 instead of grub_ieee1275_interpret.
38394 (grub_reboot_init): New function.
38395 (grub_reboot_fini): Likewise.
38396 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
38397 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
38398 util/i386/pc/misc.c with commands/ieee1275/halt.c,
38399 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
38400 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
38402 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
38404 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
38406 (grub_halt): Likewise.
38407 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
38408 (cmain): Remove __attribute__((unused)).
38409 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
38410 (grub_heap_len): Likewise.
38411 (grub_machine_fini): New function.
38412 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
38413 (grub_halt): Likewise.
38414 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
38416 * util/powerpc/ieee1275/misc.c: New file.
38418 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
38420 * DISTLIST: New file.
38421 * gendistlist.sh: Likewise.
38423 * Makefile.in (COMMON_DISTFILES): Removed.
38424 (BOOT_DISTFILES): Likewise.
38425 (CONF_DISTFILES): Likewise.
38426 (DISK_DISTFILES): Likewise.
38427 (FS_DISTFILES): Likewise.
38428 (INCLUDE_DISTFILES): Likewise.
38429 (KERN_DISTFILES): Likewise.
38430 (LOADER_DISTFILES): Likewise.
38431 (TERM_DISTFILES): Likewise.
38432 (UTIL_DISTFILES): Likewise.
38433 (DISTFILES): Likewise.
38434 (uninstall): Uninstall files in $(pkgdata_DATA).
38435 (DISTLIST): New target.
38436 (distdir): Use the contents of the file DISTLIST to get a list of
38439 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
38441 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
38442 descriptor. This is ported from GRUB Legacy.
38444 * gencmdlist.sh: Added an extra semicolon to make it work with
38445 old sed versions. Reported by Robert Bihlmeyer
38446 <robbe@orcus.priv.at>.
38448 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
38450 Automatic loading of commands is supported.
38452 * normal/main.c (read_command_list): New function.
38453 (grub_normal_execute): Call read_command_list.
38455 * normal/command.c (grub_register_command): Return zero or CMD.
38456 Allocate CMD->NAME from the heap.
38457 Initialize CMD->MODULE_NAME to zero.
38458 Find the same name as well. If the same command is found and it is
38459 a dummy command, overwrite members. If it is not a dummy command,
38461 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
38462 (grub_command_find): If a dummy command is found, load a module
38463 and retry to find a command only once.
38465 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
38466 make sure that each command is loaded.
38468 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
38470 (struct grub_command): Remove const from the member `name'.
38471 Add a new member `module_name'.
38472 (grub_register_command): Return grub_command_t.
38474 * commands/help.c (grub_cmd_help): Call grub_command_find to make
38475 sure that each command is loaded.
38477 * genmk.rb (PModule::rule): Specify a module name without the
38478 suffix ".mod" to gencmdlist.sh.
38480 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38482 * gencmdlist.sh: New file.
38484 * genmk.rb (PModule::rule): Generate a rule for a command list.
38486 Generate command.lst from $(COMMANDFILES).
38488 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
38489 (DATA): Added $(pkgdata_DATA).
38490 (install-local): Install files in $(pkgdata_DATA).
38492 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38494 * term/i386/pc/vga.c (debug_command): Removed.
38495 (GRUB_MOD_INIT): Do not register the command "debug".
38497 From Hollis Blanchard:
38498 * commands/configfile.c: New file.
38499 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38500 commands/configfile.c.
38501 (pkgdata_MODULES): Added configfile.mod.
38502 (configfile_mod_SOURCES): New variable.
38503 (configfile_mod_CFLAGS): Likewise.
38504 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
38505 commands/configfile.c.
38506 (pkgdata_MODULES): Added configfile.mod.
38507 (configfile_mod_SOURCES): New variable.
38508 (configfile_mod_CFLAGS): Likewise.
38509 * util/grub-emu.c (main): Call grub_configfile_init and
38510 grub_configfile_fini.
38511 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
38513 [GRUB_UTIL] (grub_configfile_fini): Likewise.
38515 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38517 * normal/arg.c (grub_arg_show_help): Do not show the bug report
38520 * commands/help.c (grub_cmd_help): Do not print newlines after
38521 the last command in print_command_help.
38523 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38525 * commands/default.h: New file.
38526 * commands/timeout.h: Likewise.
38527 * normal/context.c: Likewise.
38529 * util/misc.c: Do not include sys/times.h.
38530 Include sys/time.h and grub/machine/time.h.
38531 (grub_get_rtc): Rewritten with gettimeofday.
38533 * util/grub-emu.c (main): Call grub_default_init and
38534 grub_timeout_init before grub_normal_init, and call
38535 grub_timeout_fini and grub_default_fini after grub_main.
38537 * util/console.c (grub_ncurses_checkkey): Return the read
38540 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
38543 * normal/main.c (read_config_file): Push MENU. If this fails,
38544 print an error and wait for a user input.
38545 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
38546 If a menu is empty or an error occurs, pop MENU.
38547 (grub_normal_execute): Pop and free MENU after grub_menu_run
38550 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
38552 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
38554 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38556 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
38558 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38561 * include/grub/normal.h (struct grub_menu_list): New struct.
38562 (grub_menu_list_t): New type.
38563 (struct grub_context): New struct.
38564 (grub_context_t): New type.
38565 (grub_register_command): Got rid of EXPORT_FUNC.
38566 (grub_unregister_command): Likewise.
38567 (grub_context_get): New prototype.
38568 (grub_context_get_current_menu): Likewise.
38569 (grub_context_push_menu): Likewise.
38570 (grub_context_pop_menu): Likewise.
38571 [GRUB_UTIL] (grub_default_init): Likewise.
38572 [GRUB_UTIL] (grub_default_fini): Likewise.
38573 [GRUB_UTIL] (grub_timeout_init): Likewise.
38574 [GRUB_UTIL] (grub_timeout_fini): Likewise.
38576 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
38577 commands/timeout.c and normal/context.c.
38578 (pkgdata_MODULES): Added default.mod and timeout.mod.
38579 (normal_mod_SOURCES): Added normal/context.c.
38580 (default_mod_SOURCES): New variable.
38581 (default_mod_CFLAGS): Likewise.
38582 (timeout_mod_SOURCES): Likewise.
38583 (timeout_mod_CFLAGS): Likewise.
38584 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
38586 (pkgdata_MODULES): Added default.mod and timeout.mod.
38587 (normal_mod_SOURCES): Added normal/context.c.
38588 (default_mod_SOURCES): New variable.
38589 (default_mod_CFLAGS): Likewise.
38590 (timeout_mod_SOURCES): Likewise.
38591 (timeout_mod_CFLAGS): Likewise.
38593 * Makefile.in (all-local): Added $(MKFILES).
38595 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
38597 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
38598 (grub_emu_SOURCES): Likewise.
38599 (pkgdata_MODULES): Add `sun.mod'.
38600 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
38601 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38603 (pkgdata_MODULES): Add `sun.mod'.
38604 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
38605 * include/grub/partition.h (grub_sun_partition_map_init): New
38607 (grub_sun_partition_map_fini): Likewise.
38608 * partmap/sun.c: New file.
38609 * util/grub-emu.c (main): Initialize and de-initialize the sun
38610 partitionmap support.
38612 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
38614 This implements an Emacs-like menu entry editor.
38616 * normal/menu_entry.c: New file.
38618 * util/console.c (grub_ncurses_putchar): Translate some Unicode
38619 characters to ASCII.
38620 (saved_char): New variable.
38621 (grub_ncurses_checkkey): Rewritten completely.
38622 (grub_ncurses_getkey): Likewise.
38623 (grub_ncurses_init): Call raw instead of cbreak.
38625 * normal/menu.c (print_entry): Do not put a space.
38626 (init_page): Renamed to ...
38627 (grub_menu_init_page): ... this. All callers changed.
38628 (edit_menu_entry): Removed.
38629 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
38631 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
38633 * kern/misc.c (grub_vprintf): Call grub_refresh.
38635 * normal/menu.c (DISP_LEFT): Renamed to ...
38636 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
38637 * normal/menu.c (DISP_UP): Renamed to ...
38638 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
38639 * normal/menu.c (DISP_RIGHT): Renamed to ...
38640 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
38641 * normal/menu.c (DISP_DOWN): Renamed to ...
38642 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
38643 * normal/menu.c (DISP_HLINE): Renamed to ...
38644 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
38645 * normal/menu.c (DISP_VLINE): Renamed to ...
38646 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
38647 * normal/menu.c (DISP_UL): Renamed to ...
38648 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
38649 * normal/menu.c (DISP_UR): Renamed to ...
38650 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
38651 * normal/menu.c (DISP_LL): Renamed to ...
38652 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
38653 * normal/menu.c (DISP_LR): Renamed to ...
38654 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
38655 * normal/menu.c (TERM_WIDTH): Renamed to ...
38656 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
38657 * normal/menu.c (TERM_HEIGHT): Renamed to ...
38658 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
38659 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
38660 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
38661 * normal/menu.c (TERM_MARGIN): Renamed to ...
38662 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
38663 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
38664 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
38665 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
38666 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
38667 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
38668 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
38669 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
38670 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
38671 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
38672 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
38673 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
38674 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
38675 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
38676 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
38677 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
38678 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
38679 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
38680 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
38681 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
38682 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
38683 All callers changed.
38685 * include/grub/normal.h: New prototype.
38687 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38688 normal/menu_entry.c.
38689 (normal_mod_SOURCES): Likewise.
38690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38691 (normal_mod_SOURCES): Likewise.
38693 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
38695 * include/grub/normal.h (grub_halt_init): New prototype.
38696 (grub_halt_fini): Likewise.
38697 (grub_reboot_init): Likewise.
38698 (grub_reboot_fini): Likewise.
38700 * util/grub-emu.c: Include signal.h.
38701 (main_env): New global variable.
38702 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
38704 (grub_machine_fini): New function.
38705 (main): Call grub_halt_init and grub_reboot_init before
38706 grub_main, and grub_reboot_fini and grub_halt_fini after it.
38707 Call setjmp with MAIN_ENV to go back afterwards.
38708 Call grub_machine_fini right before return.
38710 * include/grub/util/misc.h: Include setjmp.h.
38711 (main_env): New prototype.
38713 * include/grub/kernel.h (grub_machine_fini): New prototype.
38714 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
38715 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
38717 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
38718 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
38719 * term/i386/pc/console.c (grub_console_fini): Likewise.
38721 * util/i386/pc/misc.c: New file.
38723 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38724 util/i386/pc/misc.c, commands/i386/pc/halt.c and
38725 commands/i386/pc/reboot.c.
38727 2005-02-14 Guillem Jover <guillem@hadrons.org>
38729 * include/grub/dl.h (grub_dl_check_header): New prototype.
38730 (grub_arch_dl_check_header): Change return type to grub_err_t,
38731 remove size parameter and export function. Update all callers.
38732 * kern/dl.c (grub_dl_check_header): New function.
38733 (grub_dl_load_core): Use `grub_dl_check_header' instead of
38734 `grub_arch_dl_check_header'. Check ELF type. Check if sections
38735 are inside the core.
38736 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
38737 independent ELF header checks.
38738 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
38739 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
38740 `grub_dl_check_header' instead of explicit checks. Check for the
38742 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
38743 `grub_dl_check_header' instead of explicit checks. Remove arch
38744 specific ELF header checks.
38746 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
38749 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
38751 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
38752 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
38754 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
38756 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
38757 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
38758 (part_map_iterate): Clear `grub_errno' and return 0 if
38759 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
38760 * partmap/amiga.c (amiga_partition_map_iterate): Return
38761 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
38762 * partmap/apple.c (apple_partition_map_iterate): Likewise.
38764 2005-02-01 Guillem Jover <guillem@hadrons.org>
38766 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
38769 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38771 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
38773 (grub_rescue_cmd_linux): New prototype.
38774 (grub_rescue_cmd_initrd): Likewise.
38775 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
38777 (grub_linux_release_mem): Release the memory for the initrd.
38778 (grub_load_linux): Renamed from this...
38779 (grub_rescue_cmd_linux): ...To this. Changed all callers.
38780 Changed `entry' not to be static. Loop over memory regions to
38781 find another one when the default fails.
38782 (grub_rescue_cmd_initrd): New function.
38783 (grub_linux_init): Remove function.
38784 (grub_linux_fini): Likewise.
38785 (GRUB_MOD_INIT): Register `initrd'.
38786 (GRUB_MOD_FINI): Unregister `initrd'.
38787 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
38789 (grub_linux_normal_fini): Likewise.
38790 (GRUB_MOD_INIT): Register `initrd'.
38791 (GRUB_MOD_FINI): Unregister `initrd'.
38793 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38795 * commands/help.c: New file.
38796 * normal/arg.c (show_help): Renamed to...
38797 (grub_arg_show_help): ... this.
38798 * commands/i386/pc/halt.c: New file.
38799 * commands/i386/pc/reboot.c: Likewise.
38800 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
38801 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
38802 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
38803 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
38805 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38807 (pkgdata_MODULES): Add `help.mod'.
38808 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
38809 * grub/i386/pc/init.h (grub_reboot): New prototype.
38810 (grub_halt): Likewise.
38811 * include/grub/normal.h (grub_arg_show_help): New prototype.
38812 (grub_help_init): Likewise.
38813 (grub_help_fini): Likewise.
38814 * util/grub-emu.c (main): Initialize and deinitialize the help
38817 * normal/cmdline.c (grub_cmdline_get): Doc fix.
38819 * normal/command.c (grub_command_init): Fixed the description of
38820 the `set' and `unset' commands.
38822 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38824 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
38826 * commands/ieee1275/halt.c: New file.
38827 * commands/ieee1275/reboot.c: Likewise.
38828 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
38829 `__attribute__ ((unused))'. Some GCS related fixed.
38830 (grub_suspend_init) [GRUB_UTIL]: Function removed.
38831 (grub_suspend_fini): Likewise.
38832 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
38834 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
38835 (halt_mod_CFLAGS): New variables.
38836 * include/grub/powerpc/ieee1275/ieee1275.h
38837 (grub_ieee1275_interpret): New prototype.
38839 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
38841 * include/grub/misc.h (memmove): New prototype.
38842 (memcpy): Likewise.
38844 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
38846 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
38847 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
38849 2005-01-22 Marco Gerards <metgerards@student.han.nl>
38851 * kern/misc.c (grub_strndup): Function rewritten.
38853 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
38855 * normal/menu.c (TERM_WIDTH): Macro redefined.
38856 (TERM_TOP_BORDER_Y): Likewise.
38857 (draw_border): Replaced while-loop by a for-loop. Make the number
38858 of lines consistent with the number of lines displayed in
38859 print_entries. Added a margin below the rectangle.
38860 (print_entry): Make the entry fit in the rectangle.
38861 (print_entries): Display the scroll arrows next to the right
38864 2005-01-21 Marco Gerards <metgerards@student.han.nl>
38866 * fs/minix.c (grub_minix_find_file): Reserve more space for
38867 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
38868 `grub_strncpy' to copy `path' into it.
38870 2005-01-21 Marco Gerards <metgerards@student.han.nl>
38872 Add the loopback device, a device via which files can be accessed
38875 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
38876 (pkgdata_MODULES): Add loopback.mod.
38877 (loopback_mod_SOURCES): New variable.
38878 (loopback_mod_CFLAGS): Likewise.
38879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38881 (pkgdata_MODULES): Add loopback.mod.
38882 (loopback_mod_SOURCES): New variable.
38883 (loopback_mod_CFLAGS): Likewise.
38884 * disk/loopback.c: new file.
38885 * include/grub/normal.h (grub_loop_init): New prototype.
38886 (grub_loop_fini): New prototype.
38887 * util/grub-emu.c (main): Initialize and de-initialize loopback
38889 * include/grub/disk.h (grub_disk_dev_id): Add
38890 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
38892 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
38894 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
38896 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
38897 (suspend_mod_SOURCES): New variable.
38898 (suspend_mod_CFLAGS): Likewise.
38899 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
38901 * commands/ieee1275/suspend.c: New file.
38903 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38905 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
38906 ((unused))' to `__attribute__ ((used))'.
38907 (GRUB_MOD_FINI): Likewise.
38908 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
38909 * genmk.rb (PModule): Assign space to common symbols when linking
38912 2005-01-20 Marco Gerards <metgerards@student.han.nl>
38914 * include/grub/mm.h (grub_mm_init_region): Change the type of the
38915 `unsigned' arguments to `grub_size_t'.
38916 (grub_malloc): Likewise.
38917 (grub_realloc): Likewise.
38918 (grub_memalign): Likewise.
38919 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
38920 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
38921 * util/misc.c (grub_malloc): Likewise.
38922 (grub_realloc): Likewise.
38923 * kern/mm.c (get_header_from_pointer): Change the casts to
38924 `unsigned' into a cast to `grub_size_t'.
38926 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
38927 point to `currnode' when `currnode' is changed.
38929 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
38930 Schottelius <nico-linux@schottelius.org>.
38932 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
38934 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
38935 (note_path): Remove variable.
38936 (GRUB_IEEE1275_NOTE_NAME): New macro.
38937 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
38938 (grub_ieee1275_note_hdr): New structure.
38939 (grub_ieee1275_note_desc): Likewise.
38940 (grub_ieee1275_note): Likewise.
38941 (load_note): Remove `dir' argument. All callers updated. Remove
38942 `note_img' and `path'. Do not load a file from `note_path'.
38943 Initialize a struct grub_ieee1275_note and write that to `out'.
38944 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
38946 2005-01-05 Marco Gerards <metgerards@student.han.nl>
38948 * util/misc.c (grub_util_read_image): Revert last change. It
38949 called `grub_util_read_at', which seeks from the beginning of the
38952 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
38954 * TODO: Add note about endianness in grub-mkimage.
38955 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
38957 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
38958 (grub_mkimage_SOURCES): New target.
38959 * include/grub/kernel.h (grub_start_addr): Remove variable.
38960 (grub_end_addr): Likewise.
38961 (grub_total_module_size): Likewise.
38962 (grub_kernel_image_size): Likewise.
38963 (GRUB_MODULE_MAGIC): New constant.
38964 (grub_module_info): New structure.
38965 (grub_arch_modules_addr): New prototype.
38966 (grub_get_end_addr): Remove prototype.
38967 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
38968 * include/grub/powerpc/ieee1275/kernel.h: New file.
38969 * include/grub/util/misc.h (grub_util_get_fp_size): New
38971 (grub_util_read_at): Likewise.
38972 (grub_util_write_image_at): Likewise.
38973 * kern/main.c (grub_get_end_addr): Remove function.
38974 (grub_load_modules): Call grub_arch_modules_addr instead of using
38975 grub_end_addr. Look for a grub_module_info struct in memory. Use
38976 the grub_module_info fields instead of calling grub_get_end_addr
38977 as loop conditions. Move grub_add_unused_region code here.
38978 (grub_add_unused_region): Remove function.
38979 * kern/i386/pc/init.c: Include grub/cache.h.
38980 (grub_machine_init): Remove call to grub_get_end_addr. Remove
38981 one call to add_mem_region.
38982 (grub_arch_modules_addr): New function.
38983 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
38984 (grub_total_module_size): Likewise.
38985 Include grub/machine/kernel.h.
38986 (grub_arch_modules_addr): New function.
38987 * util/grub-emu.c (grub_end_addr): Remove variable.
38988 (grub_total_module_size): Likewise.
38989 (grub_arch_modules_addr): New function.
38990 * util/misc.c: Include unistd.h.
38991 (grub_util_get_fp_size): New function.
38992 (grub_util_read_at): Likewise.
38993 (grub_util_write_image_at): Likewise.
38994 (grub_util_read_image): Call grub_util_read_at.
38995 (grub_util_write_image): Call grub_util_write_image_at.
38996 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
38997 additional memory in kernel_img for a struct grub_module_info.
38998 Fill in that grub_module_info.
38999 * util/powerpc/ieee1275/grub-mkimage.c: New file.
39001 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
39003 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
39005 * include/grub/powerpc/ieee1275/ieee1275.h
39006 (grub_ieee1275_milliseconds): New prototype.
39007 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
39009 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
39010 grub_ieee1275_milliseconds.
39012 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
39014 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
39016 (find_options): New function.
39017 (cmain): Call find_options.
39018 * include/grub/powerpc/ieee1275/ieee1275.h
39019 (grub_ieee1275_realmode): New extern variable.
39020 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
39021 grub_map if grub_ieee1275_realmode is false.
39023 2004-12-29 Marco Gerards <metgerards@student.han.nl>
39025 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
39026 lines are inserted and make it work like readline. Reported by
39027 Vincent Pelletier <subdino2004@yahoo.fr>.
39029 2004-12-28 Marco Gerards <metgerards@student.han.nl>
39031 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
39033 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
39034 `kern/powerpc/cache.S'.
39036 2004-12-27 Marco Gerards <metgerards@student.han.nl>
39038 * genmk.rb: Handle the `Program' class in the main loop. Written
39039 by Johan Rydberg <jrydberg@gnu.org>.
39040 (Program): New class.
39041 (programs): New variable.
39042 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
39043 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
39044 instead of "grub/kernel.h". Include <grub/machine/init.h>.
39045 (help_arch): Function removed.
39046 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
39047 `powerpc/libgcc.h' and `loader.h'.
39048 (pkgdata_PROGRAMS): New variable.
39049 (sbin_UTILITIES): Variable removed.
39050 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
39051 (grubof_SOURCES): Variable re-defined so it only includes the
39052 core functionality.
39053 (grubof_CFLAGS): Remove `-DGRUBOF'.
39054 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
39055 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
39056 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
39057 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
39058 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
39059 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
39060 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
39061 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
39062 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
39063 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
39064 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
39065 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
39066 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
39067 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
39068 (pc_mod_CFLAGS): New variables.
39069 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
39070 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
39071 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
39072 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
39074 * include/grub/i386/pc/init.h (grub_os_area_addr)
39075 (rub_os_area_size): ... to here.
39076 * include/grub/powerpc/ieee1275/ieee1275.h
39077 (grub_ieee1275_entry_fn): Export symbol.
39078 * include/grub/powerpc/ieee1275/init.h: New file.
39079 * include/grub/powerpc/libgcc.h: Likewise.
39080 * include/grub/cache.h: Likewise.
39081 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
39082 <hollis@penguinppc.org>.
39083 * kern/dl.c: Include <grub/cache.h>.
39084 (grub_dl_flush_cache): New function.
39085 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
39087 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
39088 (grub_console_init): Removed prototypes.
39089 (grub_machine_init): Don't initialize the modules anymore.
39090 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
39092 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
39093 Macro undef removed.
39094 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
39095 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
39096 relocation `R_PPC_REL32'. Return an error when the relocation is
39098 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
39099 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
39100 * util/misc.c (grub_arch_sync_caches): Likewise.
39102 2004-12-19 Marco Gerards <metgerards@student.han.nl>
39104 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
39105 `symlist.c', add `grubof_symlist.c'.
39106 (symlist.c): Variable removed.
39107 (grubof_HEADERS): Variable added.
39108 (grubof_symlist.c): New target.
39109 (kernel_syms.lst): Use `grubof_HEADERS' instead of
39110 `kernel_img_HEADERS'.
39111 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
39112 * kern/powerpc/dl.c: New file.
39113 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
39115 (grub_arch_dl_relocate_symbols): Likewise.
39116 (grub_register_exported_symbols): Likewise.
39118 2004-12-13 Marco Gerards <metgerards@student.han.nl>
39120 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
39121 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
39122 to fail instead. Reported by Vincent Pelletier
39123 <subdino2004@yahoo.fr>.
39125 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
39126 it is not allocated. Reported by Vincent Pelletier
39127 <subdino2004@yahoo.fr>.
39129 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
39130 output so the output looks better.
39132 2004-12-04 Marco Gerards <metgerards@student.han.nl>
39134 Modulize the partition map support and add support for the amiga
39137 * commands/ls.c: Include <grub/partition.h> instead of
39138 <grub/machine/partition.h>.
39139 * kern/disk.c: Likewise.
39140 * kern/rescue.c: Likewise.
39141 * loader/i386/pc/chainloader.c: Likewise.
39142 * normal/cmdline.c: Likewise.
39143 * kern/powerpc/ieee1275/init.c: Likewise.
39144 (grub_machine_init): Call `grub_pc_partition_map_init',
39145 `grub_amiga_partition_map_init' and
39146 `grub_apple_partition_map_init'.
39147 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
39148 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
39149 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
39150 `partition.h' and `pc_partition.h'.
39151 (grub_setup_SOURCES): Remove
39152 `disk/i386/pc/partition.c'. Add `kern/partition.c',
39153 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
39154 (grub_emu_SOURCES): Likewise.
39155 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
39156 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
39157 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
39158 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
39159 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
39160 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
39161 (grubof_SOURCES): Likewise.
39162 * disk/i386/pc/partition.c: File removed.
39163 * disk/powerpc/ieee1275/partition.c: Likewise.
39164 * include/grub/powerpc/ieee1275/partition.h: Likewise.
39165 * include/grub/i386/pc/partition.h: Likewise.
39166 * kern/partition.c: New file.
39167 * partmap/amiga.c: Likewise.
39168 * partmap/apple.c: Likewise.
39169 * partmap/pc.c: Likewise.
39170 * include/grub/partition.h: Likewise..
39171 * include/grub/pc_partition.h: Likewise.
39172 * util/grub-emu.c: Include <grub/partition.h> instead of
39173 <grub/machine/partition.h>.
39174 (main): Call `grub_pc_partition_map_init',
39175 `grub_amiga_partition_map_init' and
39176 `grub_apple_partition_map_init' and deinitialize afterwards.
39177 * util/i386/pc/biosdisk.c: Include `#include
39178 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
39179 `<grub/machine/partition.h>'.
39180 * util/i386/pc/grub-setup.c: Likewise.
39181 * util/i386/pc/biosdisk.c: Likewise.
39182 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
39183 partition information in case of a PC partition.
39184 * util/i386/pc/grub-setup.c: Include `#include
39185 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
39186 `<grub/machine/partition.h>'.
39187 (setup): Only access the PC specific partition information in case
39190 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
39192 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
39193 (grub_longjmp): Likewise.
39194 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
39196 * normal/powerpc/setjmp.S: New file.
39197 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
39198 `normal/powerpc/setjmp.S'.
39199 (grubof_CFLAGS): Add `-DGRUBOF'.
39200 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
39201 [GRUB_UTIL && !GRUBOF].
39203 2004-11-16 Marco Gerards <metgerards@student.han.nl>
39205 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
39206 property named `name'. Correctly handle the error returned by
39207 `grub_ieee1275_finddevice' if a device can not be opened.
39209 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
39211 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
39212 `actual' for negativity.
39213 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
39216 2004-11-01 Marco Gerards <metgerards@student.han.nl>
39218 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
39219 (PAGE_OFFSET): New macro.
39220 (CRTC_ADDR_PORT): Likewise.
39221 (CRTC_DATA_PORT): Likewise.
39222 (START_ADDR_HIGH_REGISTER): Likewise.
39223 (START_ADDR_LOW_REGISTER): Likewise.
39224 (GRAPHICS_ADDR_PORT): Likewise.
39225 (GRAPHICS_DATA_PORT): Likewise.
39226 (READ_MAP_REGISTER): Likewise.
39227 (INPUT_STATUS1_REGISTER): Likewise.
39228 (INPUT_STATUS1_VERTR_BIT): Likewise.
39229 (page): New variable.
39230 (wait_vretrace): New function.
39231 (set_read_map): Likewise.
39232 (set_start_address): Likewise.
39233 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
39235 (check_vga_mem): Take the page into account.
39236 (write_char): Likewise.
39237 (write_cursor): Likewise.
39238 (scroll_up): Likewise. Copy the page to the page that is not
39239 shown and switch between both pages.
39240 (grub_vga_putchar): Fix off by one error.
39241 (grub_vga_cls): Wait for the vertical retrace. Take the page into
39244 2004-11-01 Marco Gerards <metgerards@student.han.nl>
39246 Add support for iso9660 (including rockridge).
39248 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
39249 (iso9660_mod_SOURCES): New variable.
39250 (iso9660_mod_CFLAGS): Likewise.
39251 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
39252 * include/grub/fs.h (grub_iso9660_init): New prototype.
39253 * util/grub-emu.c (main): Call `grub_iso9660_init'.
39254 * fs/iso9660.c: New file.
39256 * include/grub/misc.h (grub_strncat): New prototype.
39257 * kern/misc.c (grub_strncat): New function.
39259 * fs/hfs.c (grub_hfs_mount): Translate the error
39260 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
39261 * fs/jfs.c (grub_jfs_mount): Likewise.
39262 * fs/ufs.c (grub_ufs_mount): Likewise.
39264 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
39266 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
39267 which initialized BAT registers.
39268 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
39269 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
39271 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
39272 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
39274 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
39275 (grub_mapclaim): Likewise.
39276 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
39277 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
39280 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
39282 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
39283 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
39284 -ffreestanding and -msoft-float.
39286 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
39288 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
39289 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
39290 set in grub_ieee1275_flags.
39292 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
39294 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
39296 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
39297 grub_console_init first.
39298 Change the memory range used for grub_ieee1275_claim and
39299 grub_mm_init_region.
39300 Print an error message if the claim fails.
39301 Include <grub/misc.h>.
39303 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
39305 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
39306 Call grub_children_iterate for device nodes of type `scsi',
39308 (grub_ofdisk_open): Remove manual device alias resolution.
39309 Fix memory leak when device cannot be opened.
39310 * include/grub/powerpc/ieee1275/ieee1275.h
39311 (grub_children_iterate): New prototype.
39312 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
39314 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
39315 Return -1 if args.size was -1.
39317 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
39319 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
39320 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
39321 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
39322 Open Firmware's memory for it; claim memory from _start to _end.
39323 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
39324 (_end): New extern.
39325 (_start): Zero BSS from __bss_start to _end.
39326 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
39328 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
39330 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
39332 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
39333 -1 if args.base was -1.
39335 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
39337 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
39338 escape sequence instead of a literal ^L. Also call
39339 grub_ofconsole_gotoxy.
39341 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
39343 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
39344 void * arguments to grub_addr_t. All callers updated. Also make
39345 the `result' argument optional.
39346 (grub_ieee1275_release): change void * arguments to grub_addr_t.
39347 All callers updated.
39349 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
39351 * commands/ls.c (grub_ls_list_files): Use the string following the
39352 initial ')', if present, as the filesystem path.
39353 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
39355 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
39357 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
39359 Make the source code of the menu interface more readable.
39361 * normal/menu.c: Include grub/mm.h.
39362 (TERM_WIDTH): New macro.
39363 (TERM_HEIGHT): Likewise.
39364 (TERM_INFO_HEIGHT): Likewise.
39365 (TERM_MARGIN): Likewise.
39366 (TERM_SCROLL_WIDTH): Likewise.
39367 (TERM_TOP_BORDER_Y): Likewise.
39368 (TERM_LEFT_BORDER_X): Likewise.
39369 (TERM_BORDER_WIDTH): Likewise.
39370 (TERM_MESSAGE_HEIGHT): Likewise.
39371 (TERM_BORDER_HEIGHT): Likewise.
39372 (TERM_NUM_ENTRIES): Likewise.
39373 (TERM_FIRST_ENTRY_Y): Likewise.
39374 (TERM_ENTRY_WIDTH): Likewise.
39375 (TERM_CURSOR_X): Likewise.
39376 (draw_border): Use macros instead of magic numbers.
39377 (print_entry): Likewise.
39378 (print_entries): Likewise.
39379 (run_menu): Likewise. Also, handle the key 'e'.
39380 (run_menu_entry): Ignore empty command lines.
39381 (print_message): Added a new argument EDIT. If EDIT is true,
39382 print a different message.
39383 (init_page): Likewise.
39384 (edit_menu_entry): New function. Not implemented yet.
39386 2004-09-17 Marco Gerards <metgerards@student.han.nl>
39388 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
39389 can be loaded from normal mode.
39391 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
39393 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
39394 (multiboot_mod_CFLAGS): New variables.
39395 * loader/i386/pc/linux_normal.c: New file.
39396 * loader/i386/pc/multiboot_normal.c: Likewise.
39398 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
39399 attribute `unused'.
39401 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
39402 `fdiro' to read the mode information from instead of `diro'.
39404 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
39405 looking up a symlink.
39407 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
39409 * normal/command.c (grub_command_execute): Don't parse the
39410 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
39411 flags of the command.
39413 * normal/menu.c (grub_menu_run): Fix typo.
39415 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
39417 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
39419 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
39420 `y + 1' instead of `y - 1'.
39422 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
39424 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
39426 From Hollis Blanchard <hollis@penguinppc.org>:
39427 * kern/misc.c (memmove): New alias for grub_memmove.
39428 (memcmp): New alias for grub_memcmp.
39429 (memset): New alias for grub_memset.
39430 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
39431 Change "int handle" to "grub_ieee1275_phandle_t handle".
39432 * include/grub/powerpc/ieee1275/ieee1275.h
39433 (grub_ieee1275_get_property): Likewise.
39435 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
39437 Added normal mode command `chainloader' as module chain.mod, which
39438 depends on normal.mod and _chain.mod.
39440 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
39441 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
39442 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
39444 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
39445 but arguments parsing moved to ...
39446 (grub_chainloader_cmd): ... here. New function.
39447 * include/grub/i386/pc/chainloader.h: New file.
39448 * loader/i386/pc/chainloader_normal.c: Likewise.
39450 2004-09-11 Marco Gerards <metgerards@student.han.nl>
39452 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
39453 (grub_mkimage_LDFLAGS): Likewise.
39454 (grub_emu_SOURCES): Likewise.
39455 (kernel_img_HEADERS): Added fshelp.h.
39456 * fs/ext2.c: Include <grub/fshelp.h>.
39457 (FILETYPE_REG): New macro.
39458 (FILETYPE_INO_REG): Likewise.
39459 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
39461 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
39463 (grub_fshelp_node): New struct.
39464 (grub_ext2_data): Added member `diropen'. Changed member `inode'
39466 (grub_ext2_get_file_block): Removed function.
39467 (grub_ext2_read_block): New function.
39468 (grub_ext2_read_file): Replaced parameter `data' by `node'.
39469 This function was written.
39470 (grub_ext2_mount): Read the root inode. Create a diropen struct.
39471 (grub_ext2_find_file): Removed function.
39472 (grub_ext2_read_symlink): New function.
39473 (grub_ext2_iterate_dir): Likewise.
39474 (grub_ext2_open): Rewritten.
39475 (grub_ext2_dir): Rewritten.
39476 * include/grub/fshelp.h: New file.
39477 * fs/fshelp.c: Likewise.
39479 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
39481 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
39482 (print_message): Add a missing newline.
39483 (run_menu): Added timeout support.
39484 (run_menu_entry): New local function.
39485 (grub_menu_run): Added support for booting.
39487 * kern/loader.c (grub_loader_is_loaded): New function.
39489 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
39490 (grub_get_rtc): Exported.
39492 * include/grub/i386/pc/time.h: Include grub/symbol.h.
39493 (grub_get_rtc): Exported.
39495 * include/grub/normal.h (struct grub_command_list): Remove
39496 constant from the member `command'.
39498 * include/grub/loader.h (grub_loader_is_loaded): Declared.
39500 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
39502 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
39504 2004-08-28 Marco Gerards <metgerards@student.han.nl>
39506 Add support for the JFS filesystem.
39508 * fs/jfs.c: New file.
39509 * include/grub/fs.h (grub_jfs_init): New prototype.
39510 (grub_jfs_fini): New prototype.
39511 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
39512 (grub_emu_SOURCES): Likewise.
39513 (pkgdata_MODULES): Add jfs.mod.
39514 (jfs_mod_SOURCES): New variable.
39515 (jfs_mod_CFLAGS): Likewise.
39516 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
39517 (grubof_SOURCES): Likewise.
39518 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
39520 * fs/fat.c (grub_fat_find_dir): Convert the filename little
39521 endian to the host endian.
39522 (grub_fat_utf16_to_utf8): Move function from there...
39523 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
39524 the endianness of the source string anymore.
39525 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
39527 2004-08-24 Marco Gerards <metgerards@student.han.nl>
39529 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
39530 (grub_boot_fini) [GRUB_UTIL]: Likewise.
39531 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
39532 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
39534 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
39535 (grub_hfs_iterate_dir): Make the function static. Add prototypes
39536 for `node_found' and `it_dir'.
39537 (grub_hfs_dir): Add prototype for `dir_hook'.
39539 * fs/minix.c (grub_minix_get_file_block): Add prototype for
39540 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
39541 and `indir32' to silence a gcc warning.
39543 * include/grub/fs.h (grub_hfs_init): New prototype.
39544 (grub_hfs_fini): Likewise.
39547 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
39549 Each disk device has its own id now. This is useful to make use
39550 of multiple disk devices.
39552 * include/grub/disk.h (grub_disk_dev_id): New enum.
39553 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
39554 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
39556 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
39557 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39559 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
39560 GRUB_DISK_DEVICE_OFDISK_ID as an id.
39562 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
39563 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39565 * include/grub/disk.h (struct grub_disk_dev): Added a new member
39566 "id" which is used by the cache manager.
39568 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
39571 2004-08-18 Marco Gerards <metgerards@student.han.nl>
39573 * fs/hfs.c: New file.
39574 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
39575 (grub_emu_SOURCES): Likewise.
39576 (pkgdata_MODULES): Add hfs.mod.
39577 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
39578 (grubof_SOURCES): Likewise.
39579 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
39581 * include/grub/misc.h (grub_strncasecmp): Add prototype.
39582 * kern/misc.c (grub_strncasecmp): Add function.
39584 2004-08-14 Marco Gerards <metgerards@student.han.nl>
39586 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
39589 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
39590 (grub_ext2_dir): In case the directory entry type is unknown, read
39593 2004-08-02 Peter Bruin <pjbruin@dds.nl>
39595 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
39596 grub_load_linux instead of grub_rescue_cmd_linux as second
39597 argument of grub_rescue_register_command.
39599 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
39601 2004-07-27 Marco Gerards <metgerards@student.han.nl>
39603 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
39605 * commands/boot.c: Remove the check for `GRUB_UTIL'.
39606 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
39607 `loader/powerpc/ieee1275/linux.c',
39608 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
39609 * include/grub/powerpc/ieee1275/ieee1275.h
39610 (grub_ieee1275_release): New prototype.
39611 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
39612 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
39613 normal, boot, linux and linux_normal.
39614 * loader/powerpc/ieee1275/linux.c: New file.
39615 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39617 2004-07-12 Marco Gerards <metgerards@student.han.nl>
39619 * normal/arg.c (grub_arg_parse): Correct error handling after
39620 reallocating the argumentlist (check if `argl' is not null instead
39621 of checking if `args' is not null).
39622 * kern/mm.c (grub_realloc): Return the same pointer when using the
39623 same region, instead of returning the header address.
39625 2004-07-11 Marco Gerards <metgerards@student.han.nl>
39627 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
39628 one block instead of two when looking for the initial partition.
39629 (grub_partition_probe): Initialize the local variable `p' with 0.
39630 Use base 10 for the grub_strtoul call.
39631 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
39632 need for one local variable.
39633 (grub_strtoul): Don't add the new value to `num', instead of that
39636 2004-07-11 Marco Gerards <metgerards@student.han.nl>
39638 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
39639 (pxeboot_img_SOURCES): New variable.
39640 (pxeboot_img_ASFLAGS): Likewise.
39641 (pxeboot_img_LDFLAGS): Likewise.
39642 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
39643 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
39644 <lode_leroy@hotmail.com>.
39646 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39648 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
39649 there was no input.
39651 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39653 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
39654 the history buffer logic.
39656 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39658 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
39659 (FILETYPE_INO_SYMLINK): New macros.
39660 (grub_ext2_find_file): Check if the node is a directory using the
39661 inode stat information instead of using the filetype in the
39662 dirent. Exclude the first character of an absolute symlink.
39663 (grub_ext2_dir): Mask out the filetype part of the mode member of
39666 2004-05-24 Marco Gerards <metgerards@student.han.nl>
39668 Add support for UFS version 1 and 2. Add support for the minix
39669 filesystem version 1 and 2, both the variants with 14 and 30 long
39672 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
39674 (grub_emu_SOURCES): Likewise.
39675 (pkgdata_MODULES): Add ufs.mod and minix.mod.
39676 (ufs_mod_SOURCES): New variable.
39677 (ufs_mod_CFLAGS): Likewise.
39678 (minix_mod_SOURCES): Likewise.
39679 (minix_mod_CFLAGS): Likewise.
39680 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
39682 (grubof_SOURCES): Likewise.
39683 * fs/ufs.c: New file.
39684 * fs/minix.c: New file.
39685 * include/grub/fs.h (grub_ufs_init): New prototype.
39686 (grub_ufs_fini): Likewise.
39687 (grub_minix_init): Likewise.
39688 (grub_minix_fini): Likewise.
39689 * util/grub-emu.c (main): Initialize and deinitialize UFS and
39692 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
39694 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
39695 commands/ls.c, commands/terminal.c, commands/boot.c,
39696 commands/cmp.c and commands/cat.c.
39697 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
39699 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
39702 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39704 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
39705 and grub_, respectively. Because the conversion is trivial and
39706 mechanical, I omit the details here. Please refer to the CVS
39707 if you need more information.
39709 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39711 * include/pupa: Renamed to ...
39712 * include/grub: ... this.
39713 * util/i386/pc/pupa-mkimage.c: Renamed to ...
39714 * util/i386/pc/grub-mkimage.c: ... this.
39715 * util/i386/pc/pupa-setup.c: Renamed to ...
39716 * util/i386/pc/grub-setup.c: ... this.
39717 * util/pupa-emu.c: Renamed to ...
39718 * util/grub-emu.c: ... this.
39720 2004-03-29 Marco Gerards <metgerards@student.han.nl>
39722 Add support for the newworld apple macintosh (PPC). This has been
39723 tested on the powerbook 2000 only. It only adds support for
39724 generic ieee1275 functions, console and disk support. This should
39725 be easy to port to other architectures with support for Open
39728 * configure.ac: Accept the powerpc as host_cpu. In the case of
39729 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
39730 specific tests are only executed while building for the i386.
39731 Inverse test for crosscompile.
39732 * genmk.rb (Utility): Allow assembler files.
39733 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
39734 * conf/powerpc-ieee1275.rmk: New file.
39735 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
39736 * disk/powerpc/ieee1275/partition.c: Likewise.
39737 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
39738 * include/pupa/powerpc/ieee1275/console.h: Likewise.
39739 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
39740 * include/pupa/powerpc/ieee1275/time.h: Likewise.
39741 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
39742 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
39743 * include/pupa/powerpc/ieee1275/loader.h
39744 * include/pupa/powerpc/setjmp.h: Likewise.
39745 * include/pupa/powerpc/types.h: Likewise.
39746 * kern/powerpc/ieee1275/init.c: Likewise.
39747 * kern/powerpc/ieee1275/openfw.c: Likewise.
39748 * term/powerpc/ieee1275/ofconsole.c: Likewise.
39750 These files were written by Johan Rydberg
39751 (jrydberg@night.trouble.net) and I only modified them slightly.
39753 * boot/powerpc/ieee1275/cmain.c: New file.
39754 * boot/powerpc/ieee1275/crt0.S: Likewise.
39755 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
39756 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
39758 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
39760 * Makefile.in: Update copyright.
39761 * genmodsrc.sh: Likewise.
39762 * gensymlist.sh: Likewise.
39763 * term/i386/pc/vga.c: Indent correctly.
39765 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
39766 bugreporting address.
39767 * util/i386/pc/pupa-setup.c (usage): Likewise,
39768 (main): Call pupa_ext2_init and pupa_ext2_fini.
39770 * fs/fat.c (log2): Renamed to ...
39771 (fat_log2): ... this.
39772 All callers changed.
39773 * kern/misc.c (memcpy): Alias to pupa_memmove.
39774 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
39776 * util/console.c (pupa_ncurses_fini): Return 0.
39778 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
39779 Move fail label here.
39780 [__GNU__]: Don't warn when using stat.
39781 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
39782 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
39783 long int. Use strtol instead of strtoul.
39785 2004-03-14 Marco Gerards <metgerards@student.han.nl>
39787 * commands/boot.c: New file.
39788 * commands/cat.c: Likewise.
39789 * commands/cmp.c: Likewise.
39790 * commands/ls.c: Likewise.
39791 * commands/terminal.c: Likewise.
39792 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
39793 (pupa_register_command): Changed interface to match the new
39795 (pupa_command_execute): Changed (almost rewritten) so it uses
39796 pupa_split_command. Added support for setting variables using the
39798 (rescue_command): Changed to work with the new argument parser.
39799 (terminal_command): Moved from here to commands/terminal.c.
39800 (set_command): New function.
39801 (unset_command): New function.
39802 (insmod_command): New function.
39803 (rmmod_command): New function.
39804 (lsmod_command): New function.
39805 (pupa_command_init): Don't initialize the command terminal
39806 anymore. Initialize the commands set, unset, insmod, rmmod and
39808 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
39809 (kernel_img_HEADERS): Add arg.h and env.h.
39810 (pupa_mkimage_LDFLAGS): Add kern/env.c.
39811 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
39812 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
39814 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
39816 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
39817 (boot_mod_SOURCES): New variable.
39818 (terminal_mod_SOURCES): Likewise.
39819 (ls_mod_SOURCES): Likewise.
39820 (cmp_mod_SOURCES): Likewise.
39821 (cat_mod_SOURCES): Likewise.
39823 * normal/arg.c: New file.
39824 * kern/env.c: Likewise.
39825 * include/pupa/arg.h: Likewise.
39826 * include/pupa/env.h: Likewise.
39827 * font/manager.c (font_command): Changed to match argument parsing
39829 (PUPA_MOD_INIT): Likewise.
39830 * hello/hello.c (pupa_cmd_hello): Likewise.
39831 (PUPA_MOD_INIT): Likewise.
39832 * include/pupa/disk.h: Include <pupa/device.h>.
39833 (pupa_print_partinfo): New prototype.
39834 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
39835 (pupa_dl_get_prefix): Likewise.
39836 * include/pupa/misc.h: Include <pupa/err.h>.
39837 (pupa_isgraph): New prototype.
39838 (pupa_isdigit): Likewise.
39839 (pupa_split_cmdline): Likewise.
39840 * include/pupa/normal.h: Include <pupa/arg.h>.
39841 (pupa_command): Changed the prototype of the member `func' to
39842 match the argument parsing interface. Added member `options'.
39843 (pupa_register_command): Updated to match function.
39844 (pupa_arg_parse): New prototype.
39845 (pupa_hello_init) [PUPA_UTIL]: New prototype.
39846 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
39847 (pupa_ls_init) [PUPA_UTIL]: Likewise.
39848 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
39849 (pupa_cat_init) [PUPA_UTIL]: Likewise.
39850 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
39851 (pupa_boot_init) [PUPA_UTIL]: Likewise.
39852 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
39853 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
39854 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
39855 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
39856 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
39857 * kern/disk.c: Include <pupa/file.h>.
39858 (pupa_print_partinfo): New function.
39859 * kern/dl.c: Include <pupa/env.h>.
39860 (pupa_dl_dir): Variable removed.
39861 (pupa_dl_load): Use the environment variable `prefix' instead of
39862 the variable pupa_dl_dir.
39863 (pupa_dl_set_prefix): Function removed.
39864 (pupa_dl_get_prefix): Likewise.
39865 * kern/i386/pc/init.c: Include <pupa/env.h>.
39866 (pupa_machine_init): Use the environment variable `prefix' instead of
39867 using pupa_dl_set_prefix to set the prefix.
39868 * kern/main.c: Include <pupa/env.h>.
39869 (pupa_set_root_dev): Use the environment variable `prefix' instead of
39870 using pupa_dl_get_prefix to get the prefix.
39871 * kern/misc.c: Include <pupa/env.h>.
39872 (pupa_isdigit): New function.
39873 (pupa_isgraph): Likewise.
39874 (pupa_ftoa): Likewise.
39875 (pupa_vsprintf): Added support for printing values of the type
39876 `double'. Make it possible to format variable output when using
39877 formatting like `%1.2%f'.
39878 (pupa_split_cmdline): New function.
39879 * kern/rescue.c: Include <pupa/env.h>.
39880 (next_word): Removed function.
39881 (pupa_rescue_cmd_prefix): Likewise.
39882 (pupa_rescue_cmd_set): New function.
39883 (pupa_rescue_cmd_unset): New function.
39884 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
39885 split the command line instead of splitting it here. Added
39886 support for setting variables using the syntax `foo=bar'. Don't
39887 initialize the prefix command anymore. Initialized the set and
39889 * normal/cmdline.c: Include <pupa/env.h>.
39890 (pupa_tab_complete): Added prototypes for print_simple_completion,
39891 print_partition_completion, add_completion, iterate_commands,
39892 iterate_dev, iterate_part and iterate_dir. Moved code to print
39893 partition information from here to kern/disk.c.
39894 (pupa_cmdline_run): Don't check if the function exists anymore.
39895 * normal/main.c: Include <pupa/env.h>.
39896 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
39897 instead of using pupa_dl_get_prefix to get the prefix.
39898 * term/i386/pc/vga.c: Include <pupa/arg.h>.
39899 (check_vga_mem): Cast pointers to `void *' to silence a gcc
39901 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
39902 (pupa_vga_setcolor): Declare unused variables with `__attribute__
39903 ((unused))' to silence a gcc warning.
39904 (pupa_vga_setcolor): Likewise.
39905 (debug_command): Changed to match argument parsing
39907 * util/pupa-emu.c: Include <pupa/env.h>.
39908 (options): Added 0's for unused fields to silence a gcc warning.
39910 (main): Use the environment variable `prefix' instead of using
39911 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
39912 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
39915 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
39916 * util/misc.c: Include <malloc.h>.
39917 (pupa_malloc): Rewritten so errors are correctly reported.
39918 (pupa_realloc): Likewise.
39919 (pupa_memalign): Likewise.
39920 (pupa_mm_init_region): Declare unused variables with
39921 `__attribute__ ((unused))' to silence a gcc warning.
39922 * normal/i386/setjmp.S: Remove tab at the end of the file to
39923 silence a gcc warning.
39924 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
39925 variables with `__attribute__ ((unused))' to silence a gcc
39927 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
39928 local variable i unsigned to silence a gcc warning.
39930 * kern/term.c: Include <pupa/misc.h>.
39931 (pupa_more_lines): New variable.
39932 (pupa_more): Likewise.
39933 (pupa_putcode): When the pager is active pause at the end of every
39935 (pupa_set_more): New function.
39936 * include/pupa/term.h (pupa_set_more): New prototype.
39939 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
39941 Now this project is GRUB 2 rather than PUPA. The location of
39942 the CVS repository was moved to GRUB's.
39944 * configure.ac: Use bug-grub as the reporting address.
39945 Use GRUB instead of PUPA.
39946 Change the version number to 1.90.
39948 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
39950 * genkernsyms.sh: Updated copyright information.
39951 * genmk.rb: Likewise.
39952 * genmodsrc.sh: Likewise.
39953 * gensymlist.sh: Likewise.
39954 * boot/i386/pc/boot.S: Likewise.
39955 * boot/i386/pc/diskboot.S: Likewise.
39956 * disk/i386/pc/biosdisk.c: Likewise.
39957 * disk/i386/pc/partition.c: Likewise.
39958 * font/manager.c: Likewise.
39959 * fs/ext2.c: Likewise.
39960 * fs/fat.c: Likewise.
39961 * include/pupa/boot.h: Likewise.
39962 * include/pupa/device.h: Likewise.
39963 * include/pupa/disk.h: Likewise.
39964 * include/pupa/dl.h: Likewise.
39965 * include/pupa/elf.h: Likewise.
39966 * include/pupa/err.h: Likewise.
39967 * include/pupa/file.h: Likewise.
39968 * include/pupa/font.h: Likewise.
39969 * include/pupa/fs.h: Likewise.
39970 * include/pupa/kernel.h: Likewise.
39971 * include/pupa/loader.h: Likewise.
39972 * include/pupa/misc.h: Likewise.
39973 * include/pupa/mm.h: Likewise.
39974 * include/pupa/net.h: Likewise.
39975 * include/pupa/normal.h: Likewise.
39976 * include/pupa/rescue.h: Likewise.
39977 * include/pupa/setjmp.h: Likewise.
39978 * include/pupa/symbol.h: Likewise.
39979 * include/pupa/term.h: Likewise.
39980 * include/pupa/types.h: Likewise.
39981 * include/pupa/i386/setjmp.h: Likewise.
39982 * include/pupa/i386/types.h: Likewise.
39983 * include/pupa/i386/pc/biosdisk.h: Likewise.
39984 * include/pupa/i386/pc/boot.h: Likewise.
39985 * include/pupa/i386/pc/console.h: Likewise.
39986 * include/pupa/i386/pc/init.h: Likewise.
39987 * include/pupa/i386/pc/kernel.h: Likewise.
39988 * include/pupa/i386/pc/linux.h: Likewise.
39989 * include/pupa/i386/pc/loader.h: Likewise.
39990 * include/pupa/i386/pc/memory.h: Likewise.
39991 * include/pupa/i386/pc/multiboot.h: Likewise.
39992 * include/pupa/i386/pc/partition.h: Likewise.
39993 * include/pupa/i386/pc/time.h: Likewise.
39994 * include/pupa/i386/pc/vga.h: Likewise.
39995 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
39996 * include/pupa/util/getroot.h: Likewise.
39997 * include/pupa/util/misc.h: Likewise.
39998 * include/pupa/util/resolve.h: Likewise.
39999 * kern/device.c: Likewise.
40000 * kern/disk.c: Likewise.
40001 * kern/dl.c: Likewise.
40002 * kern/err.c: Likewise.
40003 * kern/file.c: Likewise.
40004 * kern/fs.c: Likewise.
40005 * kern/loader.c: Likewise.
40006 * kern/main.c: Likewise.
40007 * kern/misc.c: Likewise.
40008 * kern/mm.c: Likewise.
40009 * kern/rescue.c: Likewise.
40010 * kern/term.c: Likewise.
40011 * kern/i386/dl.c: Likewise.
40012 * kern/i386/pc/init.c: Likewise.
40013 * kern/i386/pc/lzo1x.S: Likewise.
40014 * kern/i386/pc/startup.S: Likewise.
40015 * loader/i386/pc/chainloader.c: Likewise.
40016 * loader/i386/pc/linux.c: Likewise.
40017 * loader/i386/pc/multiboot.c: Likewise.
40018 * normal/cmdline.c: Likewise.
40019 * normal/command.c: Likewise.
40020 * normal/main.c: Likewise.
40021 * normal/menu.c: Likewise.
40022 * normal/i386/setjmp.S: Likewise.
40023 * term/i386/pc/console.c: Likewise.
40024 * term/i386/pc/vga.c: Likewise.
40025 * util/console.c: Likewise.
40026 * util/genmoddep.c: Likewise.
40027 * util/misc.c: Likewise.
40028 * util/pupa-emu.c: Likewise.
40029 * util/resolve.c: Likewise.
40030 * util/unifont2pff.rb: Likewise.
40031 * util/i386/pc/biosdisk.c: Likewise.
40032 * util/i386/pc/getroot.c: Likewise.
40033 * util/i386/pc/pupa-mkimage.c: Likewise.
40034 * util/i386/pc/pupa-setup.c: Likewise.
40036 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
40038 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
40039 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
40040 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
40041 reading and reset it after reading.
40042 (pupa_ext2_close): Return PUPA_ERR_NONE.
40044 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
40046 (struct linux_kernel_header): Add kernel_version and
40048 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
40049 pupa_file_read succeeds.
40050 (pupa_rescue_cmd_initrd): Implement.
40052 2003-12-03 Marco Gerards <metgerards@student.han.nl>
40054 * fs/ext2.c (pupa_ext2_label): New function.
40055 (pupa_ext2_fs): Added label.
40056 * fs/fat.c (pupa_fat_label): New function.
40057 (pupa_fat_fs): Added label.
40058 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
40060 * kern/misc.c (pupa_strndup): New function.
40061 * include/pupa/misc.h (pupa_strndup): New prototype.
40063 * include/pupa/normal.h: Include <pupa/err.h>.
40064 (pupa_set_history): New prototype.
40065 (pupa_iterate_commands): New prototype.
40066 * normal/cmdline.c: Include <pupa/machine/partition.h>,
40067 <pupa/disk.h>, <pupa/file.h>.
40068 (hist_size): New variable.
40069 (hist_lines): Likewise.
40070 (hist_end): Likewise.
40071 (hist_used): Likewise.
40072 (pupa_set_history): New function.
40073 (pupa_history_get): Likewise.
40074 (pupa_history_add): Likewise.
40075 (pupa_history_replace): Likewise.
40076 (pupa_tab_complete): Likewise.
40077 (pupa_cmdline_run): Added tab completion and history buffer. Tab
40078 completion shows partitionnames while completing partitions, this
40079 feature was suggested by Jeff Bailey.
40080 * normal/command.c (pupa_iterate_commands): New function.
40081 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
40082 (pupa_normal_init): Initialize history buffer.
40083 (PUPA_MOD_INIT): Likewise.
40084 (pupa_normal_fini): Free the history buffer.
40085 (PUPA_MOD_FINI): Likewise.
40087 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
40090 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
40091 * configure.ac [i386]: Check for regparam bug.
40092 (NESTED_FUNC_ATTR) [! i386]: Defined.
40094 2003-11-17 Marco Gerards <metgerards@student.han.nl>
40096 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
40097 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
40098 (pupa_emu_SOURCES): New variable.
40099 (pupa_emu_LDFLAGS): Likewise.
40100 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
40101 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
40102 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
40103 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
40104 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
40105 (pupa_jmp_buf): New typedef.
40106 (pupa_setjmp) [PUPA_UTIL]: New macro.
40107 (pupa_longjmp) [PUPA_UTIL]: Likewise.
40108 * include/pupa/term.h (struct pupa_term): New member `refresh'.
40109 (pupa_refresh): New prototype.
40110 * include/pupa/util/getroot.h: New file.
40111 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
40113 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
40114 (pupa_rescue_cmd_cat): Likewise.
40115 (pupa_rescue_cmd_ls): Likewise.
40116 (pupa_rescue_cmd_testload): Likewise.
40117 (pupa_rescue_cmd_lsmod): Likewise.
40118 * normal/cmdline.c (pupa_cmdline_get): Likewise.
40119 * normal/menu.c (run_menu): Likewise.
40120 * kern/term.c (pupa_cls): Likewise.
40121 (pupa_refresh): New function.
40122 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
40123 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
40124 * util/console.c: New file.
40126 * util/i386/pc/getroot.c: New file.
40127 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
40128 (pupa_putchar): New function.
40129 (pupa_refresh): Likewise.
40130 (xgetcwd): Function moved to ...
40131 (strip_extra_slashes): Likewise.
40132 (get_prefix): Likewise.
40133 * util/i386/pc/getroot.c: ... here.
40134 (find_root_device): Function moved and renamed to...
40135 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
40136 Changed all callers.
40137 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
40139 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
40140 Changed all callers.
40141 * util/misc.c (pupa_memalign): New function.
40142 (pupa_mm_init_region): Likewise.
40143 (pupa_register_exported_symbols): Likewise.
40144 (pupa_putchar): Function removed.
40145 * util/pupa-emu.c: New file.
40147 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
40149 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
40150 (_multiboot_mod_SOURCES): New variable.
40151 (_multiboot_mod_CFLAGS): Likewise.
40152 * loader/i386/pc/multiboot.c: New file.
40153 * include/pupa/i386/pc/multiboot.h: Likewise.
40154 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
40155 (pupa_multiboot_real_boot): New function.
40156 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
40157 (pupa_multiboot_real_boot): New prototype.
40158 (pupa_rescue_cmd_multiboot): Likewise
40159 (pupa_rescue_cmd_module): Likewise.
40161 * kern/loader.c (pupa_loader_set): Continue when
40162 pupa_loader_unload_func() fails.
40163 (pupa_loader_unset): New function.
40164 * include/pupa/loader.h (pupa_loader_unset): New prototype.
40166 * kern/misc.c (pupa_stpcpy): New function.
40167 * include/pupa/misc.h (pupa_stpcpy): New prototype.
40169 2003-11-12 Marco Gerards <metgerards@student.han.nl>
40171 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
40172 for available extensions.
40174 * include/pupa/i386/pc/time.h: New file.
40175 * kern/disk.c: Include <pupa/machine/time.h>.
40176 (PUPA_CACHE_TIMEOUT): New macro.
40177 (pupa_last_time): New variable.
40178 (pupa_disk_open): Flush the cache when there was a timeout.
40179 (pupa_disk_close): Reset the timer.
40180 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
40182 * util/misc.c: Include <sys/times.h>
40183 (pupa_get_rtc): New function.
40185 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
40187 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
40189 (pupa_ext2_get_file_block): Use blocks member.
40191 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
40192 first block. Return -1 instead of pupa_errno on error.
40194 2003-10-27 Marco Gerards <metgerards@student.han.nl>
40196 * README: In the pupa-mkimage example use _chain instead of chain
40197 and ext2 instead of fat.
40198 * TODO: Replace ext2fs with jfs as an example. Add an item for
40199 adding journal playback for ext2fs.
40200 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
40201 (pkgdata_MODULES): Added ext2.mod.
40202 (ext2_mod_SOURCES): New variable.
40203 (ext2_mod_CFLAGS): Likewise.
40204 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
40205 * include/pupa/misc.h (pupa_strncpy): New prototype.
40206 (pupa_strcat): Likewise.
40207 (pupa_strncmp): Likewise.
40208 * kern/misc.c (pupa_strcat): Enable function.
40209 (pupa_strncpy): New function.
40210 (pupa_strncmp): Likewise.
40211 * fs/ext2.c: New file.
40213 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
40214 when the read failed before retrying.
40215 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
40216 (_FILE_OFFSET_BITS): Likewise.
40217 * configure.ac: Added AC_SYS_LARGEFILE.
40219 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
40221 * genmk.rb (PModule#rule): Make sure to get only symbol names
40222 from the output of nm.
40223 Reported by Robert Millan <rmh.grub@aybabtu.com>.
40225 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
40227 I forgot to check in these changes for a long time. This adds
40228 incomplete support for VGA console, and this is still very
40229 buggy. Also, a lot of consideration is required for I18N,
40230 UNICODE, and VGA font issues. Therefore, assume that this is
40231 such that "better than nothing".
40233 * font/manager.c: New file.
40234 * include/pupa/font.h: Likewise.
40235 * include/pupa/i386/pc/vga.h: Likewise.
40236 * term/i386/pc/vga.c: Likewise.
40237 * util/unifont2pff.rb: Likewise.
40239 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
40240 (pkgdata_MODULES): Added vga.mod and font.mod.
40241 (vga_mod_SOURCES): New variables.
40242 (vga_mod_CFLAGS): Likewise.
40243 (font_mod_SOURCES): Likewise.
40244 (font_mod_CFLAGS): Likewise.
40246 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
40248 * include/pupa/term.h: Include pupa/err.h.
40249 (struct pupa_term): Added init and fini.
40250 Changed the argument of putchar to pupa_uint32_t.
40252 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
40253 (pupa_console_real_putchar): New prototype.
40254 (pupa_console_putchar): Removed.
40255 (pupa_console_checkkey): Exported.
40256 (pupa_console_getkey): Likewise.
40258 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
40261 * kern/term.c (pupa_term_set_current): Rewritten.
40262 (pupa_putchar): Likewise.
40263 (pupa_putcode): New function.
40265 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
40266 (pupa_console_real_putchar): ... this.
40267 (pupa_vga_set_mode): New function.
40268 (pupa_vga_get_font): Likewise.
40270 * normal/command.c: Include pupa/term.h.
40271 (terminal_command): New function.
40272 (pupa_command_init): Register the command "terminal".
40274 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
40275 (DISP_UP): Likewise.
40276 (DISP_RIGHT): Likewise.
40277 (DISP_DOWN): Likewise.
40278 (DISP_HLINE): Likewise.
40279 (DISP_VLINE): Likewise.
40280 (DISP_UL): Likewise.
40281 (DISP_UR): Likewise.
40282 (DISP_LL): Likewise.
40283 (DISP_LR): Likewise.
40285 * term/i386/pc/console.c (pupa_console_putchar): New function.
40287 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
40289 * util/resolve.c (pupa_util_resolve_dependencies): BUG
40290 FIX. Reverse the path_list.
40292 * include/pupa/normal.h: Export pupa_register_command and
40293 pupa_unregister_command.
40295 * hello/hello.c (pupa_cmd_hello): New module.
40296 * conf/i386-pc.rmk: Added hello.mod.
40298 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
40300 * kern/i386/pc/lzo1x.S: New file.
40302 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
40303 (compress_kernel): New variable.
40304 (generate_image): Heavily modified to support compressing a
40305 large part of the core image.
40307 * util/misc.c (pupa_util_read_image): Fix a file descriptor
40309 (pupa_util_load_image): New function.
40311 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
40312 (pupa_compressed_size): New variable.
40313 (codestart): Enable Gate A20 here.
40314 Decompress the compressed part of the core image.
40315 Rearrange the code to put functions and variables which are
40316 required for initialization in the non-compressed part.
40319 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
40322 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
40324 * include/pupa/i386/pc/kernel.h
40325 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
40326 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
40327 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
40328 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
40329 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
40331 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
40333 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
40334 (Utility#rule): Likewise.
40336 * configure.ac: Check if LZO is available.
40338 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
40340 * include/pupa/normal.h: New file.
40341 * include/pupa/setjmp.h: Likewise.
40342 * include/pupa/i386/setjmp.h: Likewise.
40343 * normal/cmdline.c: Likewise.
40344 * normal/command.c: Likewise.
40345 * normal/main.c: Likewise.
40346 * normal/menu.c: Likewise.
40347 * normal/i386/setjmp.S: Likewise.
40349 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
40350 (pupa_rescue_cmd_initrd): Likewise.
40352 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
40355 * kern/i386/pc/startup.S (translation_table): New variable.
40356 (translate_keycode): New function.
40357 (pupa_console_getkey): Call translate_keycode.
40359 * kern/rescue.c (attempt_normal_mode): New function.
40360 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
40361 it failed, print a message.
40363 * kern/mm.c (pupa_real_malloc): Print more information when a
40364 free magic is broken.
40365 (pupa_free): If the first free header is not free actually, set
40368 * kern/main.c (pupa_load_normal_mode): Just load the module
40370 (pupa_main): Don't print the message
40371 "Entering into rescue mode..." here.
40373 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
40375 (pupa_rescue_cmd_initrd): Likewise.
40376 (pupa_rescue_cmd_initrd): Likewise.
40378 * include/pupa/symbol.h (FUNCTION): Specify the type.
40379 (VARIABLE): Likewise.
40381 * include/pupa/err.h (pupa_err_t): Added
40382 PUPA_ERR_UNKNOWN_COMMAND.
40384 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
40385 (pupa_dl_get_prefix): Likewise.
40387 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
40388 Added _chain.mod and _linux.mod instead of chain.mod and
40390 (chain_mod_SOURCES): Renamed to ...
40391 (_chain_mod_SOURCES): ... this.
40392 (chain_mod_CFLAGS): Renamed to ...
40393 (_chain_mod_CFLAGS): ... this.
40394 (linux_mod_SOURCES): Renamed to ...
40395 (_linux_mod_SOURCES): ... this.
40396 (linux_mod_CFLAGS): Renamed to ...
40397 (_linux_mod_CFLAGS): ... this.
40398 (normal_mod_SOURCES): New variable.
40399 (normal_mod_CFLAGS): Likewise.
40400 (normal_mod_ASFLAGS): Likewise.
40402 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
40404 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
40407 * kern/dl.c (pupa_dl_ref): Refer depending modules
40409 (pupa_dl_unref): Unrefer depending modules recursively.
40410 Don't call pupa_dl_unload implicitly, because PUPA can crash if
40411 a module is unloaded before one depending on that module is
40413 (pupa_dl_unload): Unload depending modules explicitly,
40416 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
40418 * include/pupa/i386/pc/linux.h: New file.
40419 * loader/i386/pc/linux.c: Likewise.
40421 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
40423 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
40424 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
40425 of PUPA_CHAINLOADER_BOOT_SECTOR.
40427 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
40428 (pupa_linux_prot_size): New variable.
40429 (pupa_linux_tmp_addr): Likewise.
40430 (pupa_linux_real_addr): Likewise.
40431 (pupa_linux_boot_zimage): New function.
40432 (pupa_linux_boot_bzimage): Likewise.
40434 * kern/i386/pc/init.c (struct mem_region): New structure.
40435 (MAX_REGIONS): New macro.
40436 (mem_regions): New variable.
40437 (num_regions): Likewise.
40438 (pupa_os_area_addr): Likewise.
40439 (pupa_os_area_size): Likewise.
40440 (pupa_lower_mem): Likewise.
40441 (pupa_upper_mem): Likewise.
40442 (add_mem_region): New function.
40443 (compact_mem_regions): Likewise.
40444 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
40445 the size of the conventional memory and that of so-called upper
40446 memory (before the first memory hole).
40447 Instead of adding each found region to free memory, use
40448 add_mem_region and add them after removing overlaps.
40449 Also, add only 1/4 of the upper memory to free memory. The rest
40450 is used for loading OS images. Maybe this is ad hoc, but this
40451 makes it much easier to relocate OS images when booting.
40453 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
40454 (pupa_enter_rescue_mode): Don't register initrd and module.
40456 * kern/mm.c: Include pupa/dl.h.
40458 * kern/main.c: Include pupa/file.h and pupa/device.h.
40460 * kern/loader.c (pupa_loader_load_module_func): Removed.
40461 (pupa_loader_load_module): Likewise.
40463 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
40466 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
40467 (pupa_linux_tmp_addr): Likewise.
40468 (pupa_linux_real_addr): Likewise.
40469 (pupa_linux_boot_zimage): Likewise.
40470 (pupa_linux_boot_bzimage): Likewise.
40472 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
40473 (pupa_upper_mem): Likewise.
40474 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
40475 module is too dangerous.
40477 * include/pupa/loader.h (pupa_os_area_addr): Declared.
40478 (pupa_os_area_size): Likewise.
40479 (pupa_loader_set): Remove the first argument. Loader doesn't
40480 manage modules or initrd any longer.
40481 (pupa_loader_load_module): Removed.
40483 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
40484 (linux_mod_SOURCES): New variable.
40485 (linux_mod_CFLAGS): Likewise.
40487 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
40489 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
40490 the length of a blocklist correctly.
40492 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
40493 Use ioctl only if the OS file is a block device.
40494 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
40495 not very useful for normal files.
40497 * kern/main.c (pupa_set_root_dev): New function.
40498 (pupa_load_normal_mode): Likewise.
40499 (pupa_main): Call those above.
40501 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
40504 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
40506 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40508 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
40509 (setup): Configure the installed partition information and the
40512 * loader/i386/pc/chainloader.c (my_mod): New variable.
40513 (pupa_chainloader_unload): New function.
40514 (pupa_rescue_cmd_chainloader): Refer itself.
40515 (PUPA_MOD_INIT): Save its own module in MY_MOD.
40517 * kern/i386/pc/startup.S (install_partition): Removed.
40518 (version_string): Likewise.
40519 (config_file): Likewise.
40520 (pupa_install_dos_part): New variable.
40521 (pupa_install_bsd_part): Likewise.
40522 (pupa_prefix): Likewise.
40523 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
40525 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
40527 (make_install_device): New function.
40528 (pupa_machine_init): Set the dl prefix.
40530 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
40531 (buf): Renamed to ...
40532 (linebuf): ... this.
40533 (pupa_rescue_cmd_prefix): New function.
40534 (pupa_rescue_cmd_insmod): Likewise.
40535 (pupa_rescue_cmd_rmmod): Likewise.
40536 (pupa_rescue_cmd_lsmod): Likewise.
40537 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
40540 * kern/mm.c (pupa_memalign): If failed even after invalidating
40541 disk caches, unload unneeded modules and retry.
40543 * kern/misc.c (pupa_memmove): New function.
40544 (pupa_memcpy): Removed.
40545 (pupa_strcpy): New function.
40546 (pupa_itoa): Made static.
40548 * kern/dl.c (pupa_dl_iterate): New function.
40549 (pupa_dl_ref): Likewise.
40550 (pupa_dl_unref): Likewise.
40551 (pupa_dl_unload): Return if succeeded or not.
40552 (pupa_dl_unload_unneeded): New function.
40553 (pupa_dl_unload_all): Likewise.
40554 (pupa_dl_init): Renamed to ...
40555 (pupa_dl_set_prefix): ... this.
40556 (pupa_dl_get_prefix): New function.
40558 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
40559 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
40560 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
40561 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
40562 (pupa_install_dos_part): Declared.
40563 (pupa_install_bsd_part): Likewise.
40564 (pupa_prefix): Likewise.
40565 (pupa_boot_drive): Likewise.
40567 * include/pupa/types.h: Fix a typo.
40569 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
40571 (pupa_memmove): Declared.
40572 (pupa_strcpy): Likewise.
40574 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
40575 pupa_mod_init takes one argument, its own module.
40576 (pupa_dl_unload_unneeded): Declared.
40577 (pupa_dl_unload_all): Likewise.
40578 (pupa_dl_ref): Likewise.
40579 (pupa_dl_unref): Likewise.
40580 (pupa_dl_iterate): Likewise.
40581 (pupa_dl_init): Renamed to ...
40582 (pupa_dl_set_prefix): ... this.
40583 (pupa_dl_get_prefix): Declared.
40585 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
40586 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
40588 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
40589 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
40591 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
40592 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
40594 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40596 * util/i386/pc/pupa-setup.c (setup): Define the internal
40597 function find_first_partition_start at the top level, because GCC
40598 3.0.x cannot compile internal functions in deeper scopes
40600 (find_root_device): Use lstat instead of stat.
40601 Don't follow symbolic links.
40602 Fix the path-constructing code.
40604 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
40605 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
40606 by a BLKGETSIZE ioctl first, because block devices don't fill
40607 the member st_mode of the structure stat on Linux.
40608 [__linux__] (linux_find_partition): Use a temporary buffer
40609 REAL_DEV for the working space. Copy it to DEV before returning.
40610 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
40611 buffer cache consistent.
40612 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
40613 strncmp. The previous value was merely wrong.
40614 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
40616 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
40617 FAT size is 12. The previous value was merely wrong.
40619 * kern/main.c (pupa_main): Don't split the starting message from
40622 * kern/term.c (pupa_putchar): Put CR after LF instead of before
40623 LF, because BIOS goes crazy about character attributes in this
40626 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40628 * include/i386/pc/util/biosdisk.h: New file.
40629 * util/i386/pc/biosdisk.c: Likewise.
40630 * util/i386/pc/pupa-setup.c: Likewise.
40632 * Makefile.in (INCLUDE_DISTFILES): Added
40633 include/pupa/i386/pc/util/biosdisk.h.
40634 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
40635 directory util/i386/pc.
40636 (install-local): Added a rule for sbin_UTILITIES.
40637 (uninstall): Likewise.
40639 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
40641 * util/misc.c (xrealloc): New function.
40642 (pupa_malloc): Likewise.
40643 (pupa_free): Likewise.
40644 (pupa_realloc): Likewise.
40645 (pupa_stop): Likewise.
40646 (pupa_putchar): Likewise.
40648 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
40650 * include/pupa/util/misc.h (xrealloc): Declared.
40652 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
40654 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
40655 (PUPA_BOOT_MACHINE_BPB_END): ... this.
40657 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
40658 [PUPA_UTIL] (pupa_fat_fini): Likewise.
40660 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
40661 way should be implemented.
40662 [PUPA_UTIL] (pupa_fat_fini): Likewise.
40664 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
40665 the size of NAME for safety.
40666 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
40669 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
40670 (pupa_setup_SOURCES): Likewise.
40672 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
40674 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
40676 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
40677 bunch of pushl's from pusha, because this destroys the return
40680 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
40682 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
40683 This means that any missing prototypes could be fatal. Also, you
40684 must take care when writing assembly code. See the comments at
40685 the beginning of startup.S, for more details.
40687 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
40688 compilation mechanism.
40689 (pupa_chainloader_real_boot): Likewise.
40690 (pupa_biosdisk_rw_int13_extensions): Likewise.
40691 (pupa_biosdisk_rw_standard): Likewise.
40692 (pupa_biosdisk_check_int13_extensions): Likewise.
40693 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
40694 (pupa_biosdisk_get_diskinfo_standard): Likewise.
40695 (pupa_get_memsize): Likewise.
40696 (pupa_get_mmap_entry): Likewise.
40697 (pupa_console_putchar): Likewise.
40698 (pupa_console_setcursor): Likewise.
40699 (pupa_getrtsecs): Use pushl instead of push.
40701 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
40702 memory instead of the stack for a mmap entry, because some
40703 BIOSes may ignore the maximum size and overflow.
40705 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
40707 * genmk.rb (PModule#rule): Compile automatically generated
40708 sources with module-specific CFLAGS as well as other sources.
40710 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40712 * configure.ac: Check ld.
40713 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
40714 respectively, before checking endianness and sizes.
40716 * Makefile.in (LD): New variable.
40718 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40720 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
40722 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40724 * Changelog: New file.