1 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
6 =grub_cpu_flush_cache on all mips and not only yeeloong.
7 * configure.ac (COND_mips): New conditional.
8 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
10 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
11 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
12 [GRUB_LINKER_HAVE_INIT]: New function.
13 (grub_emu_post_init): Likewise.
14 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
15 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
16 * include/grub/cache.h (_mips): Include mips/cache.h.
17 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
18 LVM and RAID prototypes.
19 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
20 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
23 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
25 * util/grub-install.in: Don't try to verify core.img until after
26 running grub-mkimage to create it.
28 2010-09-10 Robert Millan <rmh@gnu.org>
30 * util/grub.d/10_hurd.in: Add misc readability checks.
31 * util/grub.d/10_kfreebsd.in: Likewise.
32 * util/grub.d/10_linux.in: Likewise.
34 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
36 * util/grub-install.in: ${imgext} won't be defined here until the
37 install branch is merged. For the meantime, only verify core.img on
38 i386-pc and sparc64-ieee1275 platforms.
40 2010-09-10 Robert Millan <rmh@gnu.org>
42 Solaris support in grub_find_zpool_from_dir(). Thanks
43 Seth Goldberg for referring to getextmntent() facility.
45 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
47 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
49 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
50 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
51 method for finding zpool name.
53 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
55 grub-fstest needs the host and hostfs modules while other utilities
56 actively require those modules to be absent, so grub-fstest needs
57 its own initialisation and finalisation code.
59 * Makefile.am (grub_fstest.pp): New target.
60 (grub_fstest_init.lst): Likewise.
61 (grub_fstest_init.c): Likewise.
62 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
64 2010-09-10 Robert Millan <rmh@gnu.org>
66 * configure.ac: Check for `struct statfs.f_fstypename' and
67 `struct statfs.f_mntfromname'.
69 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
70 kFreeBSD-specific code.
72 2010-09-10 Robert Millan <rmh@gnu.org>
74 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
75 on ZFS. Now non-main filesystems are supported as / too.
77 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
79 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
80 and grub-core/disk/host.c to ...
81 (grub-fstest): ... here. Having the host disk implementation
82 present confuses grub-probe and other utility programs.
84 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
85 when writing to a file, not when writing to stdout.
87 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
89 * tests/partmap_test.in: New test for partitions.
90 * Makefile.util.def: Rules for new test.
92 2010-09-09 Robert Millan <rmh@gnu.org>
94 * util/grub-probe.c (probe): Fix a pair of unhandled error
97 2010-09-09 Robert Millan <rmh@gnu.org>
99 Basic Btrfs support (detection and UUID).
101 * grub-core/fs/btrfs.c: New file.
102 * Makefile.util.def (library): Register btrfs.c.
103 * grub-core/Makefile.core.def: Likewise.
105 2010-09-08 Robert Millan <rmh@gnu.org>
107 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
108 with (optional) parameters to specify device and relative path.
109 * util/grub-install.in: Use is_path_readable_by_grub() to
110 verify readability of a few critical files.
111 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
112 verify readability of grub.cfg.new.
114 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
116 Split minix.mod into minix.mod and minix2.mod.
118 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
119 * grub-core/Makefile.core.def (minix2): New module.
120 * grub-core/fs/minix.c: Use definitions instead of runtime version
122 * grub-core/fs/minix2.c: New file.
124 2010-09-08 Yves Blusseau <blusseau@zetam.org>
126 Add new --boot-directory option to replace --root-directory
128 * util/grub-install.in: Add new --boot-directory option
129 * util/grub-reboot.in: Likewise.
130 * util/grub-set-default.in: Likewise.
132 2010-09-08 Yves Blusseau <blusseau@zetam.org>
134 * util/grub-mkconfig.in: Use new variable.
136 2010-09-08 Yves Blusseau <blusseau@zetam.org>
138 * configure.ac: Define some useful variables.
140 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
142 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
143 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
144 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
145 Use terminfo and don't use cursor-on/cursor-off unless it's known
147 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
148 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
150 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
152 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
153 starts with "(,", fill the drive containing the loaded image in
154 between those two characters, but expect that a full partition
155 specification including partition map names will follow.
157 2010-09-08 Robert Millan <rmh@gnu.org>
159 * configure.ac: Remove `--enable-grub-fstest' option.
160 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
162 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
163 `grub-fstest' instead of `grub-probe' for readability verification.
164 * util/grub-probe.c (probe): Remove readability verification kludge.
166 2010-09-08 Robert Millan <rmh@gnu.org>
168 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
169 initializing `GRUB_FS'.
171 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
173 Not command (!) support to GRUB script.
175 * tests/grub_script_not.in: New test.
176 * Makefile.util.def: Rules for new test.
178 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
179 ! command as a special case.
180 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
182 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
184 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
187 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
189 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
191 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
193 * docs/grub.texi (Shell-like scripting): Documentation for break,
194 continue, shift and return commands.
196 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
198 Rename CD-ROM to cd on BIOS.
200 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
202 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
204 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
206 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
207 * util/grub-probe.c (main): Likewise.
208 * util/i386/pc/grub-setup.c (main): Likewise.
209 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
210 Reported and debugged by: alexxy
212 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
214 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
217 2010-09-05 Jo Shields <directhex@apebox.org>
219 * util/grub.d/30_os-prober.in: Add missing classes.
221 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
223 * docs/grub.texi (Theme file format): Document new position format.
225 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
227 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
228 a table. Use @code instead of @verbatim.
230 2010-09-05 Colin D Bennett <colin@gibibit.com>
232 Gfxmenu documentation.
234 * docs/grub.texi (Theme file format): New chapter.
236 2010-09-05 Szymon Janc <szymon@janc.net.pl>
238 * grub-core/Makefile.core.def (xzio): New module.
239 * grub-core/io/xzio.c: New file.
240 * grub-core/lib/xzembed/xz.h: New file (from xembed).
241 * grub-core/lib/xzembed/xz_config.h: Likewise.
242 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
243 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
244 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
245 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
246 * grub-core/lib/xzembed/xz_private.h: Likewise.
247 * grub-core/lib/xzembed/xz_stream.h: Likewise.
248 * include/grub/file.h (grub_file_filter_id): New compression filter
249 GRUB_FILE_FILTER_XZIO.
251 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
253 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
254 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
257 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
259 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
260 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
262 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
264 Uncompressed checksum support.
266 * grub-core/commands/hashsum.c (options): Add option --uncompress.
267 (check_list): New parameter uncompress.
268 (grub_cmd_hashsum): Handle --uncompress.
270 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
272 Reintroduce testload.
274 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
276 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
277 (GRUB_MOD_INIT): New function.
278 (GRUB_MOD_FINI): Likewise.
279 * grub-core/Makefile.core.def (testload): New module.
281 2010-09-05 Szymon Janc <szymon@janc.net.pl>
283 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
285 (uint16_t): Likewise.
286 (uint32_t): Likewise.
287 (uint64_t): Likewise.
289 2010-09-05 Szymon Janc <szymon@janc.net.pl>
291 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
293 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
295 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
297 (grub_gzfile_open): Removed. All users updated.
298 (GRUB_MOD_INIT): New function.
299 (GRUB_MOD_FINI): Likewise.
300 * grub-core/kern/file.c (grub_file_filters_all): New variable.
301 (grub_file_filters_enabled): Likewise.
302 (grub_file_open): Handle filters.
303 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
304 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
305 * include/grub/file.h (grub_file_filter_id_t): New type.
306 (grub_file_filter_t): Likewise.
307 (grub_file_filters_all): New extern variable.
308 (grub_file_filters_enabled): Likewise.
309 (grub_file_filter_register): New inline function.
310 (grub_file_filter_unregister): Likewise.
311 (grub_file_filter_disable): Likewise.
312 (grub_file_filter_disable_compression): Likewise.
313 * include/grub/gzio.h: Removed.
315 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
317 Filename expansion support for wildcards in GRUB script.
319 * tests/grub_script_expansion.in: New test.
320 * Makefile.util.def: Rule for new test.
322 * grub-core/commands/wildcard.c: New file, implements filename
323 expansion support for GRUB script.
324 * grub-core/Makefile.core.def: Rule update for regexp.mod.
325 * grub-core/script/argv.c: Cosmetic changes.
326 * grub-core/script/execute.c (grub_script_arglist_to_argv):
327 Refactored to perform wildcard expansion on arguments.
328 * include/grub/script_sh.h (grub_script_wildcard_translator): New
331 * tests/util/grub-shell.in: Fix quoting for read input.
333 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
335 Support for updating environment variables with matched substrings
338 * tests/grub_cmd_regexp.in: New test.
339 * Makefile.util.def: Rule for new test.
341 * grub-core/commands/regexp.c: New option -s to update environment
342 variables with regexp matches.
344 2010-09-04 Szymon Janc <szymon@janc.net.pl>
346 * include/grub/file.h (grub_file): New member not_easly_seekable.
347 (grub_file_seekable): New inline function.
348 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
350 (grub_gzio_open): Set not_easly_seekable.
351 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
352 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
354 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
356 Support for options to appear multiple times on cmdline.
358 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
359 * grub-core/commands/extcmd.c: Support for repeatable option.
360 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
361 repeatable option support.
363 Refactor menuentry into a regular command.
365 * grub-core/commands/menuentry.c: New file, menuentry command
367 * grub-core/Makefile.core.def: Rule update for normal.mod.
368 * grub-core/normal/main.c: Moved menuentry creation to
369 grub-core/commands/menuentry.c.
370 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
371 (grub_menu_execute_entry_real): Removed.
372 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
374 (grub_script_execute_menuentry): Removed.
375 * grub-core/script/parser.y (menuentry): Removed.
376 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
377 * grub-core/script/yylex.l (menuentry): Removed.
378 * include/grub/menu.h (grub_menu_init): New prototype.
379 (grub_menu_fini): New prototype.
380 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
381 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
382 (grub_script_execute_sourcecode): New prototype.
384 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
386 "return" command for GRUB script functions.
388 * tests/grub_script_return.in: New test.
389 * Makefile.util.def: Rules for new test.
391 * grub-core/script/execute.c (grub_script_return): New function.
392 * grub-core/script/main.c: Register/unregister return commaond.
393 * include/grub/script_sh.h (grub_script_return): New prototype.
395 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
397 "setparams" command to update positional parameters.
399 * tests/grub_script_setparams.in: New test.
400 * Makefile.util.def: Rules for new test.
402 * grub-core/script/argv.c (grub_script_argv_make): New function.
403 * grub-core/script/execute.c (replace_scope): New function.
404 (grub_script_setparams): New function.
405 * grub-core/script/lexer.c: Remove unused variables.
406 * grub-core/script/main.c: Register/unregister setparams command.
407 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
408 (grub_script_setparams): New prototype.
410 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
412 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
415 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
417 Support for passing block of commands as an argument to extcmds.
419 * Makefile.util.def: Rules for new test.
420 * tests/grub_script_blockarg.in: New test.
421 * grub-core/tests/test_blockarg.c: New file, block argument
422 command used in the test.
424 * include/grub/extcmd.h (grub_extcmd_context): New struct.
425 (grub_register_extcmd_prio): New function prototype.
426 (grub_extcmd_dispatcher): New function prototype.
427 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
429 * include/grub/script_sh.h (struct grub_script): New members
430 `children', `next_siblings' and `refcnt' for block arguments and
432 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
433 (grub_script_arg): New member `script' for block argument.
434 (grub_script_argv): New member `script' for block argument.
435 (grub_parser_param): New member `scripts' for block argument.
436 (grub_script_mem_free): New extern function prototype.
437 (grub_script_ref): New function prototype.
438 (grub_script_unref): New function prototype.
440 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
441 extcmd form to support block arguments.
442 * grub-core/script/argv.c: Block arguments support.
443 * grub-core/script/execute.c: Likewise.
444 * grub-core/script/lexer.c: Likewise.
445 * grub-core/script/main.c: Likewise.
446 * grub-core/script/script.c: Likewise.
447 * grub-core/script/parser.y: Likewise. New `block' and `block0'
450 * grub-core/commands/acpi.c: Update extcmd implementations with
451 grub_extcmd_context_t.
452 * grub-core/commands/cat.c: Likewise.
453 * grub-core/commands/echo.c: Likewise.
454 * grub-core/commands/extcmd.c: Likewise.
455 * grub-core/commands/hashsum.c: Likewise.
456 * grub-core/commands/hdparm.c: Likewise.
457 * grub-core/commands/help.c: Likewise.
458 * grub-core/commands/hexdump.c: Likewise.
459 * grub-core/commands/i386/cpuid.c: Likewise.
460 * grub-core/commands/i386/pc/drivemap.c: Likewise.
461 * grub-core/commands/i386/pc/halt.c: Likewise.
462 * grub-core/commands/i386/pc/sendkey.c: Likewise.
463 * grub-core/commands/iorw.c: Likewise.
464 * grub-core/commands/keystatus.c: Likewise.
465 * grub-core/commands/loadenv.c: Likewise.
466 * grub-core/commands/ls.c: Likewise.
467 * grub-core/commands/lspci.c: Likewise.
468 * grub-core/commands/memrw.c: Likewise.
469 * grub-core/commands/probe.c: Likewise.
470 * grub-core/commands/search_wrap.c: Likewise.
471 * grub-core/commands/setpci.c: Likewise.
472 * grub-core/commands/sleep.c: Likewise.
473 * grub-core/disk/loopback.c: Likewise.
474 * grub-core/hello/hello.c: Likewise.
475 * grub-core/loader/i386/bsd.c: Likewise.
476 * grub-core/loader/xnu.c: Likewise.
477 * grub-core/term/gfxterm.c: Likewise.
478 * grub-core/term/serial.c: Likewise.
479 * grub-core/tests/lib/functional_test.c: Likewise.
481 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
483 Multi-line quoted strings support.
485 * grub-core/script/lexer.c (append_newline): Removed.
486 (grub_script_lexer_yywrap): Refactored.
487 (grub_script_lexer_init): Refactored.
488 * grub-core/script/yylex.l (yywrap): New function.
489 (grub_lexer_resplit): New function.
490 (grub_lexer_unput): New function.
491 * include/grub/script_sh.h (grub_lexer_param): New members, unput
493 * tests/grub_script_echo1.in: Added few more testcases.
495 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
497 * grub-core/kern/misc.c: Don't add abort alias in utils.
498 Reported by: echoline.
500 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
502 Add missing files into "make dist" tarball for other platforms.
504 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
505 * conf/Makefile.common (dist_noinst_DATA): New variable.
506 * conf/Makefile.extra-dist: Added missing make dist files.
507 * grub-core/Makefile.core.def: Likewise.
509 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
511 Compress grub_prefix.
513 * grub-core/boot/i386/pc/lnxboot.S: Use
514 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
515 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
516 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
517 GRUB_MACHINE_PREFIX_END. All users updated.
518 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
519 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
521 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
522 * util/grub-mkimage.c (image_target_desc): Change data_end to
523 prefix_end. All users updated.
525 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
527 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
529 (grub_openbsd_boot): Likewise.
530 (grub_netbsd_boot): Likewise.
531 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
532 (grub_xnu_boot): Likewise.
534 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
536 * configure.ac: Clean LIBS variable after tests.
538 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
540 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
542 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
544 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
545 echo if libdevmapper will be used.
547 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
549 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
550 constant for the same file.
552 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
554 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
556 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
558 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
561 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
563 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
564 required by the boot protocol.
566 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
568 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
569 state.ebp and state.edi.
570 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
571 %ebp and %edi according to grub_relocator32_ebp and
572 grub_relocator32_edi respectively.
573 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
576 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
578 Add i386-pc-pxe image target.
580 * util/grub-mkimage.c (image_target_desc): New enum value
582 (image_targets): New target i386-pc-pxe.
583 (generate_image): Handle i386-pc-pxe image.
585 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
589 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
590 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
592 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
593 (grub_pxe_pxenv): Correct type.
595 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
597 * NEWS: Document most of the important changes since 1.98.
599 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
601 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
602 generated manual page) a little.
604 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
606 * docs/grub.texi: Add myself as an author.
608 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
610 * Makefile.util.def (libgrub.a): Add missing sunpc.
611 Reported by: Seth Goldberg.
613 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
615 Interrupt wrapping and code simplifications.
617 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
618 x86_noieee1275 which are functionaly equivalent in this case.
619 (grub-install): Make source on each platform explicit. Enable on
621 * gentpl.py (x86_efi_pc): Removed group.
622 (x86_noefi): Likewise.
623 (i386_noefi): Likewise.
624 (x86_noieee1275): Likewise.
625 (i386_noieee1275): Likewise.
626 (i386_noefi_noieee1275): Likewise.
627 (i386_pc_qemu_coreboot): Likewise.
628 (i386_coreboot_multiboot): Likewise.
629 (i386_pc_coreboot_multiboot_qemu): Likewise.
630 (x86_noefi_mips): Likewise.
631 (noieee1275): Likewise.
632 (ieee1275_mips): Likewise.
633 (noemu_noieee1275): Likewise.
636 (videoinkernel): Likewise.
637 (videomodules): Likewise.
638 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
639 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
640 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
641 include/grub/loader.h, include/grub/msdos_partition.h,
642 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
643 include/grub/machine/console.h, include/grub/machine/vga.h,
644 include/grub/machine/vbe.h, include/grub/machine/init.h,
645 include/grub/machine/kernel.h, include/grub/cpu/time.h,
646 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
647 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
648 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
649 * grub-core/Makefile.core.def (kernel): Explicit the source for
650 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
651 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
652 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
653 Use videoinkernel tag.
654 (usb): Enable on all usb.
655 (usbserial_common): Likewise.
656 (usbserial_pl2303): Likewise.
657 (usbserial_ftdi): Likewise.
658 (uhci): Enable on all x86.
659 (ohci): Enable on all pci.
660 (cmostest): Enable on all CMOS.
661 (acpi): Include commands/acpi.c on all platforms.
662 (halt): Add relevant lib/*/halt.c.
663 (hdparm): Enable on all pci.
665 (usbtest): Enable on all usb.
666 (ata): Enable on all pci.
667 (ata_pthru): Likewise.
668 (usbms): Enable on all usb.
669 (usb_keyboard): Likewise.
670 (font): Use tag videomodules.
672 (datetime): Use tag cmos. Enable on all noemu.
673 (mmap): Use tags common and x86.
674 (gfxterm): Use tag videomodules.
676 (bitmap_scale): Likewise.
677 (video_fb): Likewise.
679 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
680 adjust padding accordingly. All users updated.
681 (grub_ohci_transaction): Fix bad format specification.
682 (GRUB_MOD_INIT): Add asserts for struct size.
683 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
684 (grub_alloc_td): Likewise.
685 (grub_free_queue): Likewise.
686 (grub_uhci_transfer): Likewise.
687 (grub_uhci_transaction): Fix bad format specification.
688 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
689 (grub_usb_bulk_readwrite): Likewise.
690 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
691 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
693 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
695 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
696 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
698 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
700 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
701 ... here. Transformed into C. Made static.
702 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
704 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
705 ... here. Transformed into C. Made static.
706 * grub-core/kern/i386/pc/startup.S
707 (grub_biosdisk_check_int13_extensions): Moved from here ...
708 * grub-core/disk/i386/pc/biosdisk.c
709 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
711 * grub-core/kern/i386/pc/startup.S
712 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
713 * grub-core/disk/i386/pc/biosdisk.c
714 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
715 Transformed into C. Made static.
716 * grub-core/kern/i386/pc/startup.S
717 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
718 * grub-core/disk/i386/pc/biosdisk.c
719 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
720 Transformed into C. Made static.
721 * grub-core/kern/i386/pc/startup.S
722 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
723 * grub-core/disk/i386/pc/biosdisk.c
724 (grub_biosdisk_get_diskinfo_standard): ... here.
725 Transformed into C. Made static.
726 * grub-core/kern/i386/pc/startup.S
727 (grub_biosdisk_get_num_floppies): Moved from here ...
728 * grub-core/disk/i386/pc/biosdisk.c
729 (grub_biosdisk_get_num_floppies): ... here.
730 Transformed into C. Made static.
731 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
733 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
734 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
735 Transformed into C. Made static.
736 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
737 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
738 Transformed into C. Made static.
739 * grub-core/kern/i386/ieee1275/init.c: Removed.
740 * grub-core/kern/i386/misc.S: Likewise.
741 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
742 Splitted from here ...
743 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
744 Transformed into C. Made static. All users updated.
745 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
746 Transformed into C. Made static. All users updated.
747 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
749 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
750 Transformed into C. Made static. All users updated.
751 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
753 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
754 Transformed into C. Made static. All users updated.
755 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
756 Removed (replaced by C version).
757 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
759 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
760 Transformed into C. Made static.
761 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
763 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
764 ... here. Transformed into C.
765 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
767 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
768 ... here. Transformed into C.
769 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
771 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
772 ... here. Transformed into C. Made static.
773 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
775 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
776 ... here. Transformed into C.
777 * grub-core/kern/i386/pc/startup.S
778 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
779 * grub-core/video/i386/pc/vbe.c
780 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
781 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
783 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
784 ... here. Transformed into C.
785 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
787 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
788 ... here. Transformed into C.
789 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
791 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
792 ... here. Transformed into C.
793 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
795 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
796 ... here. Transformed into C.
797 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
799 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
800 ... here. Transformed into C. Made static.
801 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
803 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
804 ... here. Transformed into C. Made static.
805 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
807 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
808 ... here. Transformed into C. Made static.
809 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
810 pxe_rm_entry as third argument.
811 (grub_bios_interrupt): New function.
812 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
813 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
814 of calling grub_stop.
815 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
816 * grub-core/lib/efi/halt.c (grub_halt): ...here.
817 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
818 * grub-core/lib/emu/halt.c (grub_halt): ... here.
819 * grub-core/lib/i386/halt.c: Moved from here ...
820 * grub-core/lib/i386/halt.c: ... here.
821 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
822 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
823 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
825 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
826 * include/grub/i386/coreboot/init.h: Removed.
827 * include/grub/i386/multiboot/init.h: Likewise.
828 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
829 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
830 * include/grub/i386/pc/int.h: New file.
831 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
832 (grub_pxe_scan): Removed.
833 (grub_pxe_call): Update prototype.
834 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
836 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
837 * include/grub/i386/qemu/init.h: Removed.
838 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
840 (grub_halt): Likewise.
841 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
842 (grub_reboot): Likewise.
843 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
844 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
845 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
847 2010-08-30 Robert Millan <rmh@gnu.org>
849 * NEWS: Document addition of ZFS support in `grub-install' and
852 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
854 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
857 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
859 Remove leftover embedding of font objects.
861 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
862 * util/grub-install.in (font): Removed.
863 * util/grub-mkimage.c (generate_image): Remove font support. All users
866 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
868 * docs/grub.texi (Network): Fix reference to pxe_blksize.
869 Reported by: Ian Turner
871 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
873 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
874 timeout to avoid indefinite boot stalling.
876 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
878 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
879 (grub_env_write_color_highlight): Likewise.
881 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
883 * grub-core/normal/term.c (print_more): Return to normal and not
884 to standard state after printing "---MORE---".
886 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
888 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
889 Mask out the bit 0x80 since it has other meaning that specifiing color.
891 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
893 New relocator. Allows for more kernel support and more straightforward
896 * Makefile.am (BOOTTARGET): New variable.
898 (linux.init.x86_64): New target.
899 (linux.init.i386): Likewise.
900 (multiboot.elf): Likewise.
901 (kfreebsd.elf): Likewise.
902 (kfreebsd.aout): Likewise.
903 (pc-chainloader.elf): Likewise.
904 (pc-chainloader.bin): Likewise.
905 (ntldr.elf): Likewise.
906 (ntldr.bin): Likewise.
907 (multiboot2.elf): Likewise.
908 (kfreebsd.init.x86_64): Likewise.
909 (kfreebsd.init.i386): Likewise.
910 (knetbsd.init.i386): Likewise.
911 (kopenbsd.init.i386): Likewise.
912 (knetbsd.init.x86_64): Likewise.
913 (kopenbsd.init.x86_64): Likewise.
914 (linux-initramfs.i386): Likewise.
915 (linux-initramfs.x86_64): Likewise.
916 (kfreebsd-mfsroot.i386.img): Likewise.
917 (knetbsd.image.i386): Likewise.
918 (kopenbsd.image.i386): Likewise.
919 (kopenbsd.image.x86_64): Likewise.
920 (knetbsd.miniroot-image.i386.img): Likewise.
921 (kfreebsd-mfsroot.x86_64.img): Likewise.
922 (knetbsd.image.x86_64): Likewise.
923 (knetbsd.miniroot-image.x86_64.img): Likewise.
924 (kfreebsd-mfsroot.i386.gz): Likewise.
925 (bootcheck-kfreebsd-i386): Likewise.
926 (kfreebsd-mfsroot.x86_64.gz): Likewise.
927 (bootcheck-kfreebsd-x86_64): Likewise.
928 (knetbsd.miniroot-image.i386.gz): Likewise.
929 (bootcheck-knetbsd-i386): Likewise.
930 (bootcheck-kopenbsd-i386): Likewise.
931 (bootcheck-kopenbsd-x86_64): Likewise.
932 (knetbsd.miniroot-image.x86_64.gz): Likewise.
933 (bootcheck-knetbsd-x86_64): Likewise.
934 (bootcheck-linux-i386): Likewise.
935 (bootcheck-linux-x86_64): Likewise.
936 (bootcheck-linux16-i386): Likewise.
937 (bootcheck-linux16-x86_64): Likewise.
938 (bootcheck-multiboot): Likewise.
939 (bootcheck-multiboot2): Likewise.
940 (bootcheck-kfreebsd-aout): Likewise.
941 (bootcheck-pc-chainloader): Likewise.
942 (bootcheck-ntldr): Likewise.
943 (CLEANFILES): Add new targets.
944 (BOOTCHECKS): New variable.
945 (.PHONY): Add bootchecks.
946 (SUCCESSFUL_BOOT_STRING): New variable.
947 (BOOTCHECK_TIMEOUT): Likewise.
948 (bootcheck): New target
949 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
950 * configure.ac: Correct efiemu excuse.
951 * docs/grub.texi (Supported kernels): New chapter.
952 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
953 include/grub/mm_private.h. Simplify inclusion of
954 include/grub/boot.h, include/grub/loader.h
955 and include/grub/msdos_partition.h
956 (KERNEL_HEADER_FILES) [i386_coreboot]:
957 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
958 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
959 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
960 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
961 include/grub/machine/loader.h.
962 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
963 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
965 (pci.mod): Enable on i386-multiboot.
966 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
967 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
969 (relocator.mod): Rewritten.
970 (aout.mod): Enable on all x86.
972 (ntldr.mod): New module.
973 (linux.mod): Use loader/i386/linux.c on all x86.
974 (xnu.mod): Enable on all x86.
975 (vga_text.mod): disable on EFI and QEMU.
976 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
977 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
978 * grub-core/efiemu/loadcore.c: Likewise.
979 * grub-core/efiemu/main.c: Likewise.
980 (grub_efiemu_exit_boot_services): Removed.
981 (grub_efiemu_finish_boot_services): Likewise.
982 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
984 * grub-core/efiemu/i386/nocfgtables.c: New file.
985 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
986 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
987 (grub_efi_finish_boot_services): Moved from here ...
988 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
989 Fille finish memory map and related data.
990 (finish_mmap_buf): New variable.
991 (grub_efi_uintn_t finish_mmap_size): Likewise.
992 (grub_efi_uintn_t finish_key): Likewise.
993 (grub_efi_uintn_t finish_desc_size): Likewise.
994 (grub_efi_uint32_t finish_desc_version): Likewise.
995 (grub_efi_is_finished): Likewise.
996 (grub_efi_get_memory_map): Use saved memory map if EFI is already
998 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
999 (grub_elf64_phdr_iterate): Likewise.
1000 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
1001 (grub_os_area_size): Likewise.
1002 (grub_machine_init): Don't reserve os area.
1003 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
1004 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
1005 * grub-core/kern/i386/loader.S: Removed.
1006 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
1007 (grub_os_area_size): Likewise.
1008 (grub_machine_init): Don't reserve os area.
1009 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
1010 Don't call grub_dl_unload_all.
1011 Don't include loader.S.
1012 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
1013 Declare the memory after _end as available.
1014 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1015 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
1016 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1017 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
1018 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
1019 * include/grub/mm_private.h (grub_mm_header): ... here.
1020 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
1021 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
1022 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
1023 (grub_mm_region): ..here. Removed addr. Added pre_size.
1025 * grub-core/kern/mm.c (base): Renamed to ...
1026 (grub_mm_base): ... this. Made global.
1027 (grub_real_malloc): Alloc from end of region.
1028 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
1029 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
1030 * grub-core/kern/powerpc/cache_flush.S: ... here.
1031 * grub-core/lib/efi/relocator.c: New file.
1032 * grub-core/lib/i386/relocator.c: Rewritten.
1033 * grub-core/lib/i386/relocator16.S: New file.
1034 * grub-core/lib/i386/relocator32.S: Likewise.
1035 * grub-core/lib/i386/relocator64.S: Likewise.
1036 * grub-core/lib/i386/relocator_asm.S: Rewritten.
1037 * grub-core/lib/i386/relocator_common.S: New file.
1038 * grub-core/lib/ieee1275/relocator.c: Likewise.
1039 * grub-core/lib/mips/relocator.c: Rewritten.
1040 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
1041 stylistic adjustments.
1042 * grub-core/lib/powerpc/relocator.c: New file.
1043 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
1044 * grub-core/lib/relocator.c: Rewritten.
1045 * grub-core/lib/x86_64/relocator_asm.S: New file.
1046 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
1047 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
1048 (bsd_tag): New struct.
1049 (tags): New variable.
1050 (tags_last): Likewise.
1051 (netbsd_module): New struct.
1052 (netbsd_mods): New variable.
1053 (netbsd_mods_last): Likewise.
1054 (openbsd_opts): New parameter "serial".
1055 (OPENBSD_SERIAL_ARG): New definition.
1056 (netbsd_opts): New parameter "serial".
1057 (NETBSD_SERIAL_ARG): New definition.
1058 (grub_freebsd_add_meta): Reorganised into ...
1059 (grub_bsd_add_meta): ...this. All users updated.
1060 (grub_freebsd_add_mmap): Reorganised into ...
1061 (generate_e820_mmap): ...this...
1062 (grub_bsd_add_mmap): ...and this. All users updated.
1063 (grub_freebsd_list_modules): Use tags.
1064 (grub_netbsd_add_meta_module): New function.
1065 (grub_netbsd_list_modules): Likewise.
1066 (grub_freebsd_boot): Use relocator and finish EFI.
1067 (grub_openbsd_boot): Likewise.
1068 (grub_netbsd_setup_video): New function.
1069 (grub_netbsd_add_modules): Likewise.
1070 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
1072 (grub_bsd_unload): Unload tags.
1073 (grub_bsd_load_aout): Use relocator.
1074 (grub_bsd_elf32_size_hook): New function.
1075 (grub_bsd_elf32_hook): Use relocator.
1076 (grub_bsd_elf64_size_hook): New function.
1077 (grub_bsd_elf64_hook): Use relocator.
1078 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
1079 (grub_bsd_load): Zero-out openbsd_ramdisk.
1080 (grub_bsd_load): Use relocator.
1081 (grub_cmd_openbsd): Support serial.
1082 (grub_cmd_netbsd): Support modules.
1083 (grub_cmd_freebsd_module): Use relocator.
1084 (grub_netbsd_module_load): New function.
1085 (grub_cmd_netbsd_module): Likewise.
1086 (grub_cmd_openbsd_ramdisk): Likewise.
1087 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
1089 (GRUB_MOD_FINI): Unregister new commands.
1090 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
1091 (grub_freebsd_load_elfmodule_obj): Use relocator.
1092 (grub_freebsd_load_elfmodule): Likewise.
1093 (grub_freebsd_load_elf_meta): Likewise.
1094 (grub_netbsd_load_elf_meta): New function.
1095 (grub_openbsd_find_ramdisk): Likewise.
1096 * grub-core/loader/i386/bsd_helper.S: Removed.
1097 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
1098 * grub-core/loader/i386/bsd_trampoline.S: Removed.
1099 * grub-core/loader/i386/efi/linux.c: Likewise.
1100 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
1101 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
1102 (DEFAULT_VIDEO_MODE): Likewise.
1103 (real_mode_target): New variable.
1104 (prot_mode_target): Likewise.
1105 (initrd_mem_target): Likewise.
1106 (relocator): Likewise.
1107 (efi_mmap_buf): Likewise.
1108 (efi_mmap_size): Likewise.
1109 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
1110 (free_pages): Use relocator.
1111 (allocate_pages): Account for efi_mmap and use relocator. Return error.
1112 (grub_linux_setup_video): Return error.
1113 (grub_linux_trampoline_start): Removed.
1114 (grub_linux_trampoline_end): Likewise.
1115 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
1116 andd video parameters depending on firmware.
1117 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
1118 [GRUB_MACHINE_EFI]: Pass EFI parameters.
1119 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
1120 (grub_cmd_initrd): Use relocator.
1121 * grub-core/loader/i386/linux_trampoline.S: Removed.
1122 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
1123 (elf_sec_entsize): Likewise.
1124 (elf_sec_shstrndx): Likewise.
1125 (elf_sections): Likewise.
1126 (grub_multiboot_load): Use relocator.
1127 (grub_multiboot_get_mbi_size): Account for sections.
1128 (grub_multiboot_make_mbi): Use relocator and support sections.
1129 (grub_multiboot_add_elfsyms): New function.
1130 (grub_multiboot_free_mbi): Free sections.
1131 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
1132 (grub_linux_real_target): Likewise.
1133 (grub_linux_real_chunk): Likewise.
1134 (grub_linux16_prot_size): Likewise.
1135 (grub_linux16_boot): Use relocator.
1136 (grub_linux_unload): Unload relocator.
1137 (grub_cmd_linux): Use relocator.
1138 (grub_cmd_initrd): Likewise.
1139 * grub-core/loader/i386/pc/ntldr.c: New file.
1140 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
1141 Don't try to guess CPU frequency.
1142 (grub_xnu_set_video): Stretch bitmap.
1143 (grub_xnu_boot): Use relocator.
1144 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
1145 (grub_linux_unload): Free relocator.
1146 (grub_linux_load32): Use relocator.
1147 (grub_linux_load64): Likewise.
1148 (grub_cmd_initrd): Likewise.
1149 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
1150 (grub_multiboot_unload): Unload relocator.
1151 (grub_cmd_multiboot): Use relocator.
1152 (grub_cmd_module): Likewise.
1153 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
1154 Use relocator and support sections.
1155 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
1156 (elf_sec_entsize): Likewise.
1157 (elf_sec_shstrndx): Likewise.
1158 (elf_sections): Likewise.
1159 (grub_multiboot_load): Use relocator.
1160 (grub_multiboot_get_mbi_size): Account for sections.
1161 (grub_multiboot_make_mbi): Use relocator and support sections.
1162 (grub_multiboot_add_elfsyms): New function.
1163 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
1164 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
1165 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
1166 Prototype changed. All users updated.
1167 (grub_xnu_align_heap): Simplified.
1168 (grub_xnu_writetree_toheap): Likewise.
1169 (grub_xnu_unload): Unload relocator.
1170 (grub_cmd_xnu_kernel): Use relocator.
1171 (grub_cmd_xnu_kernel64): Likewise.
1172 (grub_xnu_register_memory): Simplified.
1173 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1174 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
1176 (grub_console_checkkey): Likewise.
1177 (grub_console_getkey): Likewise.
1178 (grub_console_getwh): Likewise.
1179 (grub_console_getxy): Likewise.
1180 (grub_console_gotoxy): Likewise.
1181 (grub_console_cls): Likewise.
1182 (grub_console_setcolorstate): Likewise.
1183 (grub_console_setcursor): Likewise.
1184 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
1185 * grub-core/tests/boot/kbsd.init-i386.S: New file.
1186 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
1187 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
1188 * grub-core/tests/boot/kernel-8086.S: Likewise.
1189 * grub-core/tests/boot/kernel-i386.S: Likewise.
1190 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
1191 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
1192 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
1193 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
1194 * grub-core/tests/boot/knetbsd.cfg: Likewise.
1195 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
1196 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
1197 * grub-core/tests/boot/linux.cfg: Likewise.
1198 * grub-core/tests/boot/linux.init-i386.S: Likewise.
1199 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
1200 * grub-core/tests/boot/linux16.cfg: Likewise.
1201 * grub-core/tests/boot/multiboot.cfg: Likewise.
1202 * grub-core/tests/boot/multiboot2.cfg: Likewise.
1203 * grub-core/tests/boot/ntldr.cfg: Likewise.
1204 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
1205 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
1206 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
1208 * include/grub/dl.h (grub_dl_unload_all): Removed.
1209 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
1210 (grub_efi_finish_boot_services): Change prototype.
1211 (grub_efi_is_finished): New variable.
1212 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
1214 (grub_efiemu_finish_boot_services): Removed.
1215 (grub_machine_efiemu_init_tables): New prototype.
1216 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
1217 (grub_elf64_phdr_iterate): Likewise.
1218 * include/grub/i386/bsd.h: Include relocator.h.
1219 (freebsd_tag_header): New struct.
1220 (grub_openbsd_bios_mmap): Removed.
1221 (grub_unix_real_boot): Removed.
1222 (grub_freebsd_load_elfmodule32): Changed prototype.
1223 (grub_freebsd_load_elfmodule_obj64): Likewise.
1224 (grub_freebsd_load_elf_meta32): Likewise.
1225 (grub_freebsd_load_elf_meta64): Likewise.
1226 (grub_freebsd_add_meta): Removed.
1227 (grub_netbsd_load_elf_meta32): New prototype.
1228 (grub_netbsd_load_elf_meta64): Likewise.
1229 (grub_bsd_add_meta): Likewise.
1230 (grub_openbsd_ramdisk_descriptor): New struct.
1231 (grub_openbsd_find_ramdisk32): New prototype.
1232 (grub_openbsd_find_ramdisk64): Likewise.
1233 * include/grub/i386/coreboot/loader.h: Removed.
1234 * include/grub/i386/efi/loader.h: Likewise.
1235 * include/grub/i386/ieee1275/loader.h: Likewise.
1236 * include/grub/i386/linux.h (linux_kernel_header): Change void *
1238 * include/grub/i386/loader.h: Removed.
1239 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
1241 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
1242 (grub_phys_addr_t): New type.
1243 (grub_vtop): New inline function.
1244 (grub_map_memory): Likewise.
1245 (grub_unmap_memory): Likewise.
1246 * include/grub/i386/multiboot/loader.h: Removed.
1247 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
1248 (NETBSD_BTINFO_CONSOLE): New definition.
1249 (NETBSD_BTINFO_SYMTAB): Likewise.
1250 (NETBSD_BTINFO_MODULES): Likewise.
1251 (NETBSD_BTINFO_FRAMEBUF): Likewise.
1252 (grub_netbsd_bootinfo): New struct.
1253 (grub_netbsd_btinfo_common): Use explicit bitsize.
1254 (grub_netbsd_btinfo_mmap_entry): Removed.
1255 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
1256 (grub_netbsd_btinfo_bootdisk): New struct.
1257 (grub_netbsd_btinfo_symtab): Likewise.
1258 (grub_netbsd_btinfo_serial): Likewise.
1259 (grub_netbsd_btinfo_modules): Likewise.
1260 (grub_netbsd_btinfo_framebuf): Likewise.
1261 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
1262 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
1264 (grub_openbsd_bootargs): Use explicit bitsize.
1265 (grub_openbsd_bootarg_console): New struct.
1266 (GRUB_OPENBSD_COM_MAJOR): New definition.
1267 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
1268 * include/grub/i386/pc/efiemu.h: Removed.
1269 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
1270 * include/grub/i386/qemu/loader.h: Removed.
1271 * include/grub/i386/relocator.h: Rewritten.
1272 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
1273 * include/grub/mips/memory.h: New file.
1274 * include/grub/mips/multiboot.h: Rewritten.
1275 * include/grub/mips/relocator.h: Rewritten.
1276 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
1277 (grub_vtop): New function.
1278 (grub_map_memory): Likewise.
1279 (grub_unmap_memory): Likewise.
1280 * include/grub/misc.h (ALIGN_DOWN): New definition.
1281 * include/grub/mm.h (grub_mm_check_real): New proto.
1282 (GRUB_MM_CHECK): New definition.
1283 * include/grub/mm_private.h: New file.
1284 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
1285 (grub_multiboot_get_mbi_size): Removed.
1286 (grub_multiboot_make_mbi): Change prottype.
1287 (grub_multiboot_set_accepts_video): New proto.
1288 (grub_multiboot_add_elfsyms): Likewise.
1289 (grub_multiboot_payload_eip): New variable.
1290 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
1292 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
1294 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
1295 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
1296 * include/grub/powerpc/ieee1275/loader.h: Removed.
1297 * include/grub/powerpc/memory.h: New file.
1298 * include/grub/powerpc/relocator.h: Likewise.
1299 * include/grub/relocator.h: Likewise.
1300 * include/grub/relocator_private.h: Likewise.
1301 * include/grub/sparc64/ieee1275/loader.h: Removed.
1302 * include/grub/x86_64/memory.h: New file.
1303 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
1304 (grub_xnu_heap_malloc): Likewise.
1305 (grub_xnu_heap_real_start): Removed.
1306 (grub_xnu_heap_start): Likewise.
1307 (grub_xnu_relocator): New variable.
1308 (grub_xnu_heap_target_start): Likewise.
1309 * tests/util/grub-shell.in: Support non-pc.
1310 * util/grub-mkimage.c (image_targets): Fix multiboot target.
1312 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1314 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
1316 (grub_bidi_logical_to_visual): Check that malloc succeded.
1317 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
1319 (grub_xputs_normal): Likewise.
1321 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1323 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
1326 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1328 * grub-core/efiemu/runtime/efiemu.sh: Removed.
1330 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1332 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
1334 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1336 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
1339 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
1341 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
1343 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1345 * grub-core/normal/term.c (print_more): Fix a memory leak.
1346 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
1347 (grub_xputs_normal): Likewise.
1349 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1351 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
1352 the begining of the string
1354 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1356 * grub-core/script/script.c (grub_script_parse): Free parsed on
1359 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1361 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
1364 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1366 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
1369 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1371 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
1372 (scroll_up): Fix a memory leak.
1374 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1376 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
1379 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
1381 Handle USB pendrives exposed as floppies.
1383 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
1385 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
1386 Check for partitions on all devices.
1388 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1390 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
1391 (readkey): Likewise.
1393 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
1395 Multiple variable names support to "export" command.
1397 * normal/context.c (grub_cmd_export): "export" command supports
1398 multiple variable names.
1400 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
1402 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
1403 --target=drive output to Mach device name.
1405 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
1407 New Automake based build system for GRUB.
1409 * ABOUT-NLS: New file.
1410 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
1411 in Makefile.util.def file.
1412 * Makefile.util.def: New file. Autogen build definitions file for
1414 * conf/Makefile.common: New file. Common variables for GRUB host
1415 utils and target modules.
1416 * conf/Makefile.extra-dist: New file. Extra files for make dist.
1417 * docs/Makefile.am: New file. Automake file for docs.
1418 * gentpl.py: New file. Python script to generate Autogen
1420 * grub-core/Makefile.am: New file. GRUB target modules' rules
1421 that doesn't fit in Makefile.core.def file.
1422 * grub-core/Makefile.core.def: New file. Autogen build
1423 definitions file for GRUB target modules.
1424 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
1425 specific setjmp.S file.
1426 * po/Makefile.am: New file.
1428 * .bzrignore: New ignores.
1429 * INSTALL: New requirements, without Ruby.
1430 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
1431 * autogen.sh: Updated to invoke autogen as necessary.
1432 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
1433 and defines for Automake conditionals.
1434 * geninit.sh: Refactoring.
1436 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
1438 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
1441 * include/grub/test.h: Fix functional test modules' naming.
1442 * grub-core/tests/example_functional_test.c: Fix test module name.
1444 * util/misc.c: Hosted versions' of grub functions for libgrub.a
1445 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
1446 * util/grub-editenv.c: Likewise.
1447 * util/grub-fstest.c: Likewise.
1448 * util/grub-mkdevicemap.c: Likewise.
1449 * util/grub-mkfont.c: Likewise.
1450 * util/grub-mkimage.c: Likewise.
1451 * util/grub-mkpasswd-pbkdf2.c: Likewise.
1452 * util/grub-probe.c: Likewise.
1453 * util/grub-script-check.c: Likewise.
1454 * util/i386/pc/grub-setup.c: Likewise.
1455 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1457 * tests/util/grub-shell.in: Fix override directory path.
1458 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
1459 * util/import_gcry.py: Create Makefile.gcry.def file instead.
1461 * util/lvm.c: Update #includes.
1462 * util/raid.c: Likewise.
1463 * util/resolve.c: Likewise.
1464 * grub-core/bus/emu/pci.c: Likewise.
1465 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
1466 * grub-core/lib/posix_wrap/string.h: Likewise.
1467 * grub-core/kern/emu/main.c: Likewise.
1469 * grub-core/gensymlist.sh: New file. Script for generating kernel
1471 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
1473 * grub-core/gentrigtables.c: Fix unused variable warnings.
1475 * Makefile.in: Removed.
1476 * conf/any-emu.rmk: Removed.
1477 * conf/common.rmk: Removed.
1478 * conf/i386-coreboot.rmk: Removed.
1479 * conf/i386-efi.rmk: Removed.
1480 * conf/i386-ieee1275.rmk: Removed.
1481 * conf/i386-multiboot.rmk: Removed.
1482 * conf/i386-pc.rmk: Removed.
1483 * conf/i386-qemu.rmk: Removed.
1484 * conf/i386.rmk: Removed.
1485 * conf/mips-yeeloong.rmk: Removed.
1486 * conf/mips.rmk: Removed.
1487 * conf/powerpc-ieee1275.rmk: Removed.
1488 * conf/sparc64-ieee1275.rmk: Removed.
1489 * conf/tests.rmk: Removed.
1490 * conf/x86-efi.rmk: Removed.
1491 * conf/x86_64-efi.rmk: Removed.
1492 * gendistlist.sh: Removed.
1493 * geninitheader.sh: Removed.
1494 * genkernsyms.sh.in: Removed.
1495 * genmk.rb: Removed.
1496 * gensymlist.sh.in: Removed.
1497 * mkinstalldirs: Removed.
1499 * grub-core/boot: ... to here.
1501 * grub-core/bus: ... to here.
1502 * commands: Moved ...
1503 * grub-core/commands: ... to here.
1505 * grub-core/disk: ... to here.
1507 * grub-core/efiemu: ... to here.
1509 * grub-core/font: ... to here.
1511 * grub-core/fs: ... to here.
1512 * gencmdlist.sh: Moved ...
1513 * grub-core/gencmdlist.sh: ... to here.
1514 * genemuinit.sh: Moved ...
1515 * grub-core/genemuinit.sh: ... to here.
1516 * genemuinitheader.sh: Moved ...
1517 * grub-core/genemuinitheader.sh: ... to here.
1518 * genfslist.sh: Moved ...
1519 * grub-core/genfslist.sh: ... to here.
1520 * genhandlerlist.sh: Moved ...
1521 * grub-core/genhandlerlist.sh: ... to here.
1522 * genmoddep.awk: Moved ...
1523 * grub-core/genmoddep.awk: ... to here.
1524 * genmodsrc.sh: Moved ...
1525 * grub-core/genmodsrc.sh: ... to here.
1526 * genpartmaplist.sh: Moved ...
1527 * grub-core/genpartmaplist.sh: ... to here.
1528 * genparttoollist.sh: Moved ...
1529 * grub-core/genparttoollist.sh: ... to here.
1530 * genterminallist.sh: Moved ...
1531 * grub-core/genterminallist.sh: ... to here.
1532 * gentrigtables.c: Moved ...
1533 * grub-core/gentrigtables.c: ... to here.
1534 * genvideolist.sh: Moved ...
1535 * grub-core/genvideolist.sh: ... to here.
1536 * gettext: Moved ...
1537 * grub-core/gettext: ... to here.
1538 * gfxmenu: Moved ...
1539 * grub-core/gfxmenu: ... to here.
1541 * grub-core/gnulib: ... to here.
1543 * grub-core/hello: ... to here.
1545 * grub-core/hook: ... to here.
1547 * grub-core/io: ... to here.
1549 * grub-core/kern: ... to here.
1551 * grub-core/lib: ... to here.
1553 * grub-core/loader: ... to here.
1555 * grub-core/mmap: ... to here.
1557 * grub-core/normal: ... to here.
1558 * partmap: Moved ...
1559 * grub-core/partmap: ... to here.
1560 * parttool: Moved ...
1561 * grub-core/parttool: ... to here.
1563 * grub-core/script: ... to here.
1565 * grub-core/term: ... to here
1566 * tests/example_functional_test.c: Moved ...
1567 * grub-core/tests/example_functional_test.c: ... to here.
1568 * tests/lib/functional_test.c: Moved ...
1569 * grub-core/tests/lib/functional_test.c: ... to here.
1570 * tests/lib/test.c: Moved ...
1571 * grub-core/tests/lib/test.c: ... to here.
1573 * grub-core/video: ... to here.
1575 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
1577 Replace --enable-grub-emu-modules with grub-emu-lite.
1579 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
1582 * include/grub/emu/misc.h (grub_emu_init): New prototype.
1583 * kern/emu/full.c: New file. For grub-emu specific initialization.
1584 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
1585 * kern/emu/main.c: Call initialization function grub_emu_init.
1587 * Makefile.in: Include grub-emu-lite in install.
1588 * commands/parttool.c: Use grub_no_autoload to differentiate
1589 between grub-emu and grub-emu-lite.
1590 * include/grub/misc.h: New variable grub_no_autoload.
1592 * conf/any-emu.rmk: New rules for grub-emu-lite.
1593 * configure.ac: Remove --enable-grub-emu-modules.
1594 * genmk.rb: Cleanup unnecessary rules.
1595 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
1597 * normal/main.c: Don't load list files on grub-emu-lite.
1598 * util/misc.c (grub_arch_sync_caches): Removed.
1600 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
1602 * kern/mips/startup.S (grub_prefix): Update comment to refer to
1603 grub-mkimage rather than grub-mkelfimage.
1604 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
1606 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1608 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
1609 a key after CapsLock or NumLock. It's just a qemu bug.
1611 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1613 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
1614 needed by libusb wrapper.
1616 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
1618 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
1620 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1622 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
1623 --nounzip is passed.
1625 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
1627 USB hotunplugging and USB serial support.
1629 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
1630 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
1631 (grub_uhci_transfer): Respect timeout and set *actual.
1632 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
1633 non-standard length.
1634 (grub_usb_device_attach): Autoload modules.
1635 (GRUB_MOD_INIT): Set grub_term_poll_usb.
1636 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
1637 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
1639 (grub_usb_add_hub): Fill nports and children.
1640 (attach_root_port): Receive hub instead of controller.
1641 All users updated. Fill hub->devices.
1642 (grub_usb_root_hub): Allocate hub->devices.
1643 (detach_device): New function.
1644 (poll_nonroot_hub): Fill children and detach devices.
1645 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
1646 actual arguments. All users updated.
1647 (grub_usb_bulk_read_extended): New function.
1648 * bus/usb/serial/common.c: New file.
1649 * bus/usb/serial/ftdi.c: Likewise.
1650 * bus/usb/serial/pl2303.c: Likewise.
1651 * commands/terminal.c (handle_command): Support wildcard.
1652 * commands/usbtest.c: Output "Unknown" instead of empty string.
1653 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
1654 (usbserial_common_mod_SOURCES): New variable.
1655 (usbserial_common_mod_CFLAGS): Likewise.
1656 (usbserial_common_mod_LDFLAGS): Likewise.
1657 (pkglib_MODULES): Add usbserial_pl2303.mod.
1658 (usbserial_pl2303_mod_SOURCES): New variable.
1659 (usbserial_pl2303_mod_CFLAGS): Likewise.
1660 (usbserial_pl2303_mod_LDFLAGS): Likewise.
1661 (pkglib_MODULES): Add usbserial_ftdi.mod.
1662 (usbserial_ftdi_mod_SOURCES): New variable.
1663 (usbserial_ftdi_mod_CFLAGS): Likewise.
1664 (usbserial_ftdi_mod_LDFLAGS): Likewise.
1665 (pkglib_MODULES): Add serial.mod.
1666 (serial_mod_SOURCES): New variable.
1667 (serial_mod_CFLAGS): Likewise.
1668 (serial_mod_LDFLAGS): Likewise.
1669 * conf/i386-pc.rmk: Likewise.
1670 * conf/mips-yeeloong.rmk: Likewise.
1671 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
1672 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
1673 * disk/usbms.c (first_available_slot): New variable.
1674 (grub_usbms_attach): Don't reuse free slots due to potential cache
1676 * include/grub/serial.h: Moved to ..
1677 * include/grub/ns8250.h: ...this.
1678 * include/grub/serial.h: New file.
1679 * include/grub/term.h (grub_term_poll_usb): New variable.
1680 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
1681 readkey. All users updated.
1682 (grub_terminfo_output_state): Pass term to put.
1683 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
1684 (grub_usb_controller_dev): Add timeout and actual arguments to
1685 transfer. All users updated.
1686 (grub_usb_interface): New field detach_data.
1687 (grub_usb_device): New fields children and nports.
1688 (grub_usb_ep_type_t): New type.
1689 (grub_usb_get_ep_type): New function.
1690 (grub_usb_bulk_read_extended): Likewise.
1691 * include/grub/usbdesc.h (grub_usb_desc): New type.
1692 * include/grub/usbserial.h: New file.
1693 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
1694 * kern/term.c (grub_term_poll_usb): New variable.
1695 (grub_getkey): Call grub_term_poll_usb if set.
1696 (grub_checkkey): Likewise.
1697 (grub_getkeystatus): Likewise.
1698 * term/serial.c: Moved controller-specific parts to ...
1699 * term/ns8250.c: ... here.
1700 * term/serial.c: Mostly rewritten.
1701 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
1704 2010-08-20 Robert Millan <rmh@gnu.org>
1706 Make kFreeBSD code more generic to support ext2fs as root, ufs as
1707 a separate module and maybe other interesting combinations.
1709 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
1710 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
1711 (kfreebsd_entry): Add generic filesystem module load routine.
1712 Map GRUB `ext2' to kFreeBSD `ext2fs'.
1714 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
1716 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
1717 "numcenter" (I misunderstood the purpose of this entry).
1718 * docs/grub.texi (sendkey): Likewise.
1720 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
1722 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
1723 status flag options; simply omitting the option is equivalent and
1724 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
1725 (keysym_table): Rename "num5numlock" to "numlock".
1726 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
1727 can uniformly say that only the last of multiple `sendkey'
1728 invocations has any effect.
1729 * docs/grub.texi (sendkey): New section.
1731 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
1733 * commands/i386/pc/sendkey.c (options): Fix three typos.
1735 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1737 Implement sendkey support.
1739 * commands/i386/pc/sendkey.c: New file.
1740 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
1741 (sendkey_mod_SOURCES): New variable.
1742 (sendkey_mod_CFLAGS): Likewise.
1743 (sendkey_mod_LDFLAGS): Likewise.
1745 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
1747 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
1748 fix warnings from Autoconf.
1750 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
1752 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
1753 to avoid false positives with some assemblers that output things
1754 like "someprefix_func" as part of their output.
1756 2010-08-15 Robert Millan <rmh@gnu.org>
1758 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
1760 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
1761 grub_get_libzfs_handle() errors.
1763 2010-08-14 Robert Millan <rmh@gnu.org>
1765 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
1766 filesystem is not ZFS.
1768 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
1770 Fix for misspelled color names defaulting to black/black (bug
1771 reported by Doug Nazar)
1773 * include/grub/normal.h (grub_parse_color_name_pair): Add return
1774 status to prototype.
1775 * normal/color.c (grub_parse_color_name_pair): Return failure
1777 (grub_env_write_color_normal): Ignore bad color names.
1778 (grub_env_write_color_highlight): Likewise.
1779 * normal/main.c (GRUB_MOD_INIT): Set default color names.
1781 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
1783 "shift" command support to GRUB script.
1785 * include/grub/script_sh.h (grub_script_shift): New prototype.
1786 * script/execute.c (grub_script_shift): New function.
1787 * script/main.c (grub_script_init): Register shift command.
1788 (grub_script_fini): Unregister shift command.
1789 * util/grub-script-check.c (grub_script_cmd_shift): New function.
1791 * tests/grub_script_shift.in: New testcase.
1792 * conf/tests.rmk: Rules for new testcase.
1794 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
1796 "continue" command support to GRUB script.
1798 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
1799 (grub_script_break): Continue support.
1800 * script/main.c (grub_script_init): Register continue command.
1801 (grub_script_fini): Unregister continue command.
1803 * tests/grub_script_continue.in: New testcase.
1804 * conf/tests.rmk: Rules for new testcase.
1806 2010-08-12 BVK Chaitanya <bvk@dbook>
1808 "break" command support to GRUB script.
1810 * conf/common.rmk: Rule updates to grub-script-check.
1811 * include/grub/misc.h (grub_min): New function.
1812 * include/grub/script_sh.h (grub_script_init): New prototype.
1813 (grub_script_fini): New prototype.
1814 (grub_script_break): New prototype.
1815 * script/main.c (grub_script_init): New function.
1816 (grub_script_fini): New function.
1817 * script/execute.c (grub_script_break): New function.
1818 * normal/main.c: Calls to grub_script_{init,fini}.
1819 * util/grub-script-check.c (grub_script_break): New function.
1821 * tests/grub_script_break.in: New testcase.
1822 * conf/tests.rmk: Rules for new test case.
1824 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
1826 Function parameters support to GRUB script.
1828 * script/yylex.l (VARIABLE): Regular expression update.
1829 * script/function.c (grub_script_function_call): Moved ...
1830 * script/execute.c (grub_script_function_call): ... to here.
1831 (grub_script_execute_arglist_to_argv): Removed.
1832 (grub_script_arglist_to_argv): New function.
1833 * script/argv.c: New file.
1834 (grub_script_argv_free): New function.
1835 (grub_script_argv_next): Likewise.
1836 (grub_script_argv_append): Likewise.
1837 (grub_script_argv_split_append): Likewise.
1838 * include/grub/script_sh.h (grub_script_argv): New struct.
1839 (grub_script_argv_free): New function.
1840 (grub_script_argv_next): Likewise.
1841 (grub_script_argv_append): Likewise.
1842 (grub_script_argv_split_append): Likewise.
1844 * conf/common.rmk (normal.mod): New source script/argv.c.
1846 * tests/grub_script_echo1.in: More tests.
1847 * tests/grub_script_vars1.in: Likewise.
1848 * tests/grub_script_functions.in: New test case.
1849 * conf/tests.rmk: Rules for new testcase.
1851 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
1853 Remove grub_script_cmdblock struct.
1855 * include/grub/script_sh.h: Remove grub_script_cmdblock.
1856 * script/parser.y: Likewise.
1857 * script/execute.c: Rename cmdblock suffix to cmdlist.
1858 * script/script.c: Likewise.
1859 * util/grub-script-check.c: Likewise.
1861 2010-08-11 Yves Blusseau <blusseau@zetam.org>
1863 * .bzrignore: add grub-macho2img
1865 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
1867 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
1869 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
1871 Remove the dump of sm712 initialisation sequence.
1873 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
1874 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
1875 (GRUB_VGA_IO_MISC_WRITE): Likewise.
1876 (GRUB_VGA_CR_*): Added many registers.
1877 (GRUB_VGA_SR_*): Likewise.
1878 (GRUB_VGA_GR_*): Likewise.
1879 (grub_vga_write_arx): New function.
1880 (grub_video_hw_config): New struct.
1881 (grub_vga_set_geometry): New function.
1882 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
1883 GRUB_PCI_CLASS_SUBCLASS_VGA.
1884 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
1885 * video/sm712.c (grub_sm712_write_reg): New function
1886 (grub_sm712_read_reg): Likewise.
1887 (grub_sm712_sr_write): Likewise.
1888 (grub_sm712_gr_write): Likewise.
1889 (grub_sm712_cr_write): Likewise.
1890 (grub_sm712_write_arx): Likewise.
1891 (grub_sm712_cr_shadow_write): Likewise.
1892 (grub_sm712_write_dda_lookup): Likewise.
1893 (grub_video_sm712_setup): Initialise the video rather then
1894 blindly replay the dump.
1895 (main) [TEST]: Add a routine to be able to compile as standalone for
1897 * video/sm712_init.c (sm712_init): Removed.
1898 (sm712_sr_seq1): New array.
1899 (sm712_sr_seq2): Likewise.
1901 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
1903 * include/grub/vga.h: Add missing grub/pci.h include.
1905 2010-08-10 Yves Blusseau <blusseau@zetam.org>
1907 * util/grub-macho2img.c (main): fix typo
1909 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
1911 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
1912 (grub_vga_gr_read): Likewise.
1913 (grub_vga_cr_write): Likewise.
1914 (grub_vga_cr_read): Likewise.
1915 (grub_vga_sr_write): Likewise.
1916 (grub_vga_sr_read): Likewise.
1917 (grub_vga_palette_read): Likewise.
1918 (grub_vga_palette_write): Likewise.
1919 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
1920 (grub_sm712_sr_read): New function.
1921 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
1922 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
1924 2010-08-09 Robert Millan <rmh@gnu.org>
1926 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
1927 out unused variables on non-ZFS build.
1929 2010-08-08 Robert Millan <rmh@gnu.org>
1931 Fix path generation for sub-filesystems in ZFS.
1933 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
1936 2010-08-08 Robert Millan <rmh@gnu.org>
1938 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
1940 2010-08-08 Robert Millan <rmh@gnu.org>
1942 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
1943 exist, issue a proper error message (rely on `ls' for translated
1946 2010-08-08 Robert Millan <rmh@gnu.org>
1948 Fix grub-probe invocation.
1950 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
1952 2010-08-04 Robert Millan <rmh@gnu.org>
1954 * configure.ac: Remove checks for getfsstat() and getmntany().
1955 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
1956 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
1957 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
1958 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
1959 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
1961 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
1962 via find_mount_point_from_dir() and getfsstat() / getmntany().
1964 2010-08-04 Robert Millan <rmh@gnu.org>
1966 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
1967 (grub_find_zpool_from_mount_point): Merge into ...
1968 (grub_find_zpool_from_dir): ... this.
1969 * kern/emu/misc.c: Likewise.
1972 (grub_make_system_path_relative_to_its_root): Replace
1973 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
1974 with grub_find_zpool_from_dir().
1975 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
1977 2010-08-04 Robert Millan <rmh@gnu.org>
1979 Support OpenSolaris in ZFS device resolution.
1981 * configure.ac: Check for getmntany().
1982 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
1983 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
1986 2010-08-03 Robert Millan <rmh@gnu.org>
1990 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
1991 * include/grub/emu/misc.h: ... here.
1993 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
1994 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
1996 * util/misc.c: Remove `<grub/util/libzfs.h>'.
1997 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
1998 (grub_get_libzfs_handle): Move to ...
1999 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
2000 (grub_get_libzfs_handle): ... here.
2002 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
2004 * script/execute.c (grub_script_execute_cmdline): Check for NULL
2005 as command name case.
2007 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
2009 * disk/raid.c (insert_array): Select unique numbers for named arrays
2010 as well, for use as keys in the disk cache.
2012 2010-08-01 Robert Millan <rmh@gnu.org>
2014 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
2015 kFreeBSD device name, except on ZFS where the filesystem label is
2017 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
2018 `/boot/zfs/zpool.cache'.
2019 Set mountfrom kernel variable using ${kfreebsd_device}.
2021 2010-08-01 Robert Millan <rmh@gnu.org>
2023 Make it even harder to use uninitialized `libzfs_handle' (and
2024 make the interface a bit simpler).
2026 * include/grub/util/misc.h (grub_util_init_libzfs)
2027 (libzfs_handle): Remove.
2028 (grub_get_libzfs_handle): New prototype.
2030 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
2032 (grub_util_init_libzfs): Remove.
2033 (grub_get_libzfs_handle): New function.
2035 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
2036 grub_get_libzfs_handle() to obtain a libzfs handle instead of
2037 accessing `libzfs_handle' directly.
2039 2010-08-01 Robert Millan <rmh@gnu.org>
2041 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
2042 (grub_find_zpool_from_mount_point): New function prototypes.
2044 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
2045 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
2047 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
2048 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
2051 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
2052 finding zpool from mount point into ...
2053 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
2055 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
2056 requested path is part of a ZFS pool, use
2057 grub_find_zpool_from_mount_point() to detect its filesystem name,
2058 and generate a path with `/fsname@path' syntax.
2060 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
2062 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
2063 (void) rather than () so that this is a proper prototype.
2065 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
2067 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
2069 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
2071 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
2072 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
2074 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
2076 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
2078 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
2080 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
2082 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
2084 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
2085 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
2086 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
2088 (Shell-like scripting): Add real content.
2089 (Serial terminal): Suggest `terminal_input serial; terminal_output
2090 serial' rather than putting the two commands on separate lines,
2091 since console input will be inoperative after the first command.
2092 (menuentry): Document --class, --users, and --hotkey options.
2093 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
2094 Vladimir Serbinenko).
2096 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
2097 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
2099 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
2101 2010-08-01 Robert Millan <rmh@gnu.org>
2103 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
2104 (grub_find_zpool_from_mount_point): New function prototypes.
2106 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
2107 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
2109 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
2110 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
2113 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
2114 finding zpool from mount point into ...
2115 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
2117 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
2118 requested path is part of a ZFS pool, use
2119 grub_find_zpool_from_mount_point() to detect its filesystem name,
2120 and generate a path with `/fsname@path' syntax.
2122 2010-08-01 Robert Millan <rmh@gnu.org>
2124 Prevent accidental use of uninitialized libzfs_handle.
2126 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
2127 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
2128 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
2130 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
2132 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
2133 util/grub.d/10_linux.in). Fixes Debian bug #591093.
2135 2010-08-01 Robert Millan <rmh@gnu.org>
2137 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
2139 2010-07-31 Robert Millan <rmh@gnu.org>
2141 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
2143 2010-07-31 Robert Millan <rmh@gnu.org>
2145 * kern/emu/misc.c: Add missing license header.
2147 2010-07-31 Robert Millan <rmh@gnu.org>
2149 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
2151 * include/grub/util/libnvpair.h: Include `<config.h>'.
2152 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
2153 declaring libnvpair prototypes ourselves.
2154 * include/grub/util/libzfs.h: Include `<config.h>'.
2155 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
2156 declaring libzfs prototypes ourselves.
2158 (libzfs_handle): Moved to ...
2159 * include/grub/util/misc.h (libzfs_handle): ... here.
2160 Include `<grub/util/libzfs.h>'.
2162 2010-07-30 Robert Millan <rmh@gnu.org>
2164 * include/grub/emu/misc.h: Add missing license header.
2166 2010-07-30 Robert Millan <rmh@gnu.org>
2168 Enable `grub-probe -t device' resolution on ZFS.
2170 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
2171 * include/grub/util/libnvpair.h: New file.
2172 * include/grub/util/libzfs.h: New file.
2174 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
2175 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
2176 `<grub/util/libnvpair.h>'.
2177 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
2179 (find_mount_point_from_dir): New static function.
2180 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
2182 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
2183 find_root_device_from_libzfs() before ressorting to find_root_device().
2185 * include/grub/util/misc.h (grub_util_init_libzfs): New function
2187 * util/misc.c: Include `<grub/util/libzfs.h>'.
2188 (grub_util_init_libzfs): New function.
2189 [HAVE_LIBZFS] (libzfs_handle): New global variable.
2190 [HAVE_LIBZFS] (fini_libzfs): New static function.
2191 (grub_util_init_libzfs): New function.
2192 * util/grub-probe.c (main): Call grub_util_init_libzfs().
2194 2010-07-30 Robert Millan <rmh@gnu.org>
2196 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
2197 (xmalloc, xrealloc, xstrdup, xasprintf): Add
2198 `warn_unused_result' attribute.
2199 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
2200 (grub_xasprintf, grub_xvasprintf): Likewise.
2201 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
2203 2010-07-29 Robert Millan <rmh@gnu.org>
2205 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
2206 (probe): Handle `PRINT_FS_LABEL'.
2207 (main): Handle `-t fs_label'.
2209 2010-07-29 Robert Millan <rmh@gnu.org>
2211 * configure.ac: Remove grub-mkisofs checks.
2213 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
2215 * util/ieee1275/grub-install.in: Don't use empty grub_device.
2216 Reported by: Lennart Sorensen.
2218 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2220 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
2221 prior to terminal_input/terminal_output separation. It's been over 1.5
2222 years and those versions weren't widely deployed.
2224 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
2226 * disk/raid.c (insert_array): Don't count named arrays when looking
2227 for unused array numbers.
2228 Reported and tested by: Michael Guntsche.
2230 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
2232 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
2233 implementation of this so that grub-emu links again, with a note
2234 that this should support hotplugging in the future.
2236 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
2238 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
2240 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
2242 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
2244 (grub_loopback_close): Remove empty function.
2245 (grub_loopback_dev): Remove close method.
2247 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
2249 Disable EFI cursor when the EFI console becomes inactive.
2251 * term/efi/console.c (grub_efi_console_init): New function.
2252 (grub_efi_console_fini): New function.
2253 (grub_console_term_output): Register init and fini methods.
2255 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2257 * tests/util/grub-shell-tester.in: Remove bashism and declare as
2260 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2262 * disk/loopback.c (grub_loopback): Replace filename with file.
2263 (delete_loopback): Handle new semantics.
2264 (grub_cmd_loopback): Likewise.
2265 (grub_loopback_iterate): Likewise.
2266 (grub_loopback_close): Likewise.
2268 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2270 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
2272 Reported by: Tito Keitel.
2274 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2276 * docs/grub.texi (Naming convention): Document new naming convention.
2278 2010-07-20 Vadim Solomin <vadic052@gmail.com>
2279 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
2281 Generate device.map in something closer to the old ordering.
2283 * util/deviceiter.c (struct device): New declaration.
2284 (compare_file_names): Rename to ...
2285 (compare_devices): ... this. Sort by kernel name in preference to
2286 the stable by-id name, but keep the latter as a fallback comparison.
2287 Update header comment.
2288 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
2289 of `struct device' rather than of plain file names.
2291 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
2293 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
2296 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2298 * commands/acpi.c (setup_common_tables): Use sizeof instead of
2300 (setv1table): Likewise.
2302 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
2304 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
2305 removing the homehost if present.
2306 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
2307 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
2308 removing the homehost if present.
2309 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
2311 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
2313 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
2314 parameter. Set its pointer target to 0.
2315 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
2316 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
2317 `data_offset' value from the superblock for 1.x metadata.
2318 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
2320 (insert_array): Record the start sector of data on the device.
2321 (grub_raid_register): Pass start_sector parameters to
2322 grub_raid_list->detect and insert_array.
2323 * include/grub/raid.h (struct grub_raid_array): Add start_sector
2325 (struct grub_raid): Add start_sector parameter to `detect'.
2327 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
2328 __attribute__ ((packed)), leaving a comment.
2329 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
2330 (grub_mdraid_detect_09): ... here and ...
2331 (grub_mdraid_detect_1x): ... here.
2333 2010-07-20 Peter Henn <peter.henn@web.de>
2335 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
2336 chunk size and disk size, which are already given as sector counts
2337 as distinct from the 0.90 units. Fetch the correct device number
2338 from the role table instead of using the table index.
2340 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
2342 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
2343 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
2344 (WriteMostly1): New macro.
2345 Set array->name to NULL for metadata format 0.90. Add support for
2346 metadata 1.x. Fix some comments.
2347 * disk/raid.c (): Add support for name based RAID arrays. Fix a
2349 * util/getroot.c (grub_util_get_grub_dev): Add support for
2350 /dev/md/name style devices.
2352 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
2354 * .bzrignore: Ignore 20_linux_xen.
2356 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
2358 * util/import_unicode.py: Remove unnecessary imports.
2360 2010-07-17 Aleš Nesrsta <starous@volny.cz>
2362 Hotplugging and USB hub support.
2364 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
2365 (grub_ohci): Likewise.
2366 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
2367 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
2368 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
2369 (GRUB_OHCI_CTRL_EDS): Likewise.
2370 (GRUB_OHCI_BULK_EDS): Likewise.
2371 (GRUB_OHCI_TDS): Likewise.
2372 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
2373 (grub_ohci_ed_phys2virt): New function.
2374 (grub_ohci_virt_to_phys): Likewise.
2375 (grub_ohci_td_phys2virt): Likewise.
2376 (grub_ohci_td_virt2phys): Likewise.
2377 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
2379 (grub_ohci_find_ed): New function.
2380 (grub_ohci_alloc_td): Likewise.
2381 (grub_ohci_free_td): Likewise.
2382 (grub_ohci_free_tds): Likewise.
2383 (grub_ohci_transfer): Use previously allocated memory.
2384 (grub_ohci_portstatus): Reset status changed bit.
2385 (grub_ohci_detect_dev): Supply status changed.
2386 (grub_ohci_fini_hw): Free memory.
2387 (grub_ohci_restore_hw): Reallocate memory.
2388 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
2389 Reset status change.
2390 (grub_uhci_detect_dev): Supply status_change.
2391 * bus/usb/usb.c (attach_hooks): New var.
2392 (grub_usb_device_attach): New function.
2393 (grub_usb_register_attach_hook_class): Likewise.
2394 (grub_usb_unregister_attach_hook_class): Likewise.
2395 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
2396 (grub_usb_add_hub): Reset connection changed bit.
2397 (attach_root_port): New function.
2398 (grub_usb_root_hub): Likewise.
2399 (poll_nonroot_hub): Likewise.
2400 (grub_usb_poll_devices): Likewise.
2401 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
2402 * disk/usbms.c (grub_usbms_open): Use device hooks.
2403 (grub_usbms_iterate) :Poll devices.
2404 (grub_usbms_finddevs): Split into ...
2405 (grub_usbms_attach): ... this ...
2406 (grub_usbms_attach): ... and this.
2407 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
2409 (grub_usb_interface): New fields attached and detach_hook.
2410 (grub_usb_attach_hook_class): New type.
2411 (grub_usb_attach_desc): New struct.
2412 (grub_usb_register_attach_hook_class): New function.
2413 (grub_usb_unregister_attach_hook_class): Likewise.
2414 (grub_usb_poll_devices): Likewise.
2415 (grub_usb_device_attach): Likewise.
2416 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
2417 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
2419 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
2421 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
2422 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
2423 delta determination style. Works with most NetBSD partitions too.
2425 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
2427 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
2428 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
2430 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
2432 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
2434 2010-07-14 Anton Blanchard <anton@samba.org>
2436 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
2439 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
2441 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
2443 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
2445 * kern/partition.c (grub_partition_check_containment): New function to
2446 check that a partition is physically contained in a parent. Since
2447 offsets are relative (and non-negative), this reduces to checking that
2448 the partition ends before its parent.
2449 (grub_partition_map_probe): Discard out-of-range sub-partitions.
2450 (grub_partition_iterate): Likewise.
2451 * include/grub/partition.h (grub_partition_map): Slightly more detailed
2453 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
2454 partitions that start before their parent, and add debug printfs.
2456 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
2458 * Makefile.in (.SUFFIX): Spell correctly, as ...
2459 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
2460 bare module name without `.mod', e.g. `test') tried to invoke a
2463 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
2465 * README: Point to the Info manual.
2467 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
2469 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
2470 2nd superblock position from partition size.
2472 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
2474 * Makefile.in (MAINTAINER_CLEANFILES): Remove
2475 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
2476 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
2479 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
2481 Restructure SCSI .id handling.
2482 Reported and tested by: Aleš Nesrsta.
2484 * disk/ata.c (grub_atapi_close): Removed. All users updated.
2485 (grub_atapi_dev): Changed .name to "ata". New field .id.
2486 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
2487 (grub_usbms_dev): New field .id.
2488 * disk/scsi.c (grub_scsi_iterate): Generate name.
2489 (grub_scsi_open): Parse name.
2490 * include/grub/scsi.h (grub_make_scsi_id): New function.
2491 (grub_scsi_dev): Change iterate and open to number instead of naming
2492 busses. All users updated.
2493 (grub_scsi): Remove name. Add .bus.
2495 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
2497 * commands/help.c (grub_cmd_help): Fix a typo.
2499 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
2501 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
2502 Reported and tested by: Colin Watson.
2504 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
2506 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
2509 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
2511 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
2513 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
2515 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
2518 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
2520 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
2521 and disk/raid6_recover.c.
2522 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2523 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2525 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
2527 * term/gfxterm.c (repaint_schedulded): Rename to ...
2528 (repaint_scheduled): ... this. Update all callers.
2529 (repaint_was_schedulded): Rename to ...
2530 (repaint_was_scheduled): ... this. Update all callers.
2532 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
2534 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
2535 which we expect to be handled by upper layers.
2537 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
2539 * bus/usb/usbhub.c: #include time.h header.
2541 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
2543 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
2544 entry_name also for entries without stat blocks (e.g. ".."); fixes
2545 corruption of the first entry in a directory.
2547 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
2549 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
2550 after setting gfxterm as the active terminal. GRUB_BACKGROUND
2551 doesn't work otherwise.
2553 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
2555 * docs/grub.texi (Features): Update list of supported file systems.
2556 (GNU/Linux): Update for GRUB 2.
2557 (Serial terminal): Remove mention of --disable-serial, which was a
2558 GRUB Legacy configure option. Update instructions to use
2559 `terminal_input' and `terminal_output' rather than `terminal'.
2560 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
2561 configuration' and `Installing GRUB using grub-install'.
2562 (Menu entry editor): Update for GRUB 2.
2563 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
2564 Document new -a, -u, and -v options.
2565 (initrd): New section.
2566 (initrd16): New section.
2567 (linux): New section.
2568 (linux16): New section.
2569 (search): The `var' argument to `--set' is optional.
2570 (GRUB only offers a rescue shell): Go into a little more detail on
2573 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
2575 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
2577 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
2579 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
2580 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
2582 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
2584 * util/i386/pc/grub-setup.c (setup): Rename prefix to
2585 install_prefix, in line with install_dos_part and install_bsd_part.
2586 Add new prefix variable, which is copied to install_prefix after
2587 comparing core.img in memory with the one read from disk in the
2588 no-embedding case, and use that rather than overwriting
2589 install_prefix immediately when installing to a partition.
2590 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
2593 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
2595 * configure.ac: Avoid == in test command, it's not portable.
2596 * util/grub.d/30_os-prober.in: Likewise.
2598 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
2600 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
2602 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
2604 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
2605 multiple (top-level) partmaps.
2607 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2609 * util/i386/efi/grub-install.in: Don't use empty grub_device.
2610 Reported by: Tino Keitel.
2612 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2614 Bidi and diacritics support.
2616 * Makefile.in (widthspec.bin): New target.
2617 (widthspec.h): Likewise.
2618 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
2619 * autogen.sh: Generate unidata.c.
2620 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
2621 * commands/ls.c (grub_ls_list_devices): Likewise.
2622 (grub_ls_list_files): Likewise.
2623 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
2624 (grub_mini_cmd_lsmod): Likewise.
2625 * commands/read.c: Likewise.
2626 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
2627 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
2628 * lib/arg.c (grub_arg_show_help): Likewise.
2629 * lib/crypto.c (grub_password_get): Likewise.
2630 * normal/auth.c (grub_username_get): Likewise.
2631 * normal/misc.c (grub_normal_print_device_info): Likewise.
2632 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
2633 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
2634 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
2635 (normal/charset.c_DEPENDENCIES): New variable.
2636 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
2637 (pkglib_MODULES): Remove charset.mod.
2638 (charset_mod_SOURCES): Removed.
2639 (charset_mod_CFLAGS): Likewise.
2640 (charset_mod_LDFLAGS): Likewise.
2641 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
2642 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
2644 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
2645 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
2646 (kernel_img_HEADERS): Add terminfo.h.
2647 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
2648 Fill ->font. Reverse ascii bitmaps.
2649 (grub_font_get_xheight): New function.
2650 * font/font.c (grub_font_get_string_width): Moved from here ...
2651 * gfxmenu/font.c (grub_font_get_string_width): ... here.
2652 * font/font.c (grub_font_draw_string): Moved from here ...
2653 * gfxmenu/font.c (grub_font_draw_string): ... here.
2654 * font/font.c (grub_font_dup_glyph): New function.
2655 (grub_font_blit_glyph): Likewise.
2656 (grub_font_blit_glyph_mirror): Likewise.
2657 (blit_comb): Likewise.
2658 (grub_font_construct_dry_run): Likewise.
2659 (grub_font_get_constructed_device_width): Likewise.
2660 (grub_font_construct_glyph): Likewise.
2661 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
2662 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
2663 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
2664 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
2665 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
2666 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
2667 (grub_font_get_xheight): New proto.
2668 (grub_font_get_constructed_device_width): Likewise.
2669 (grub_font_construct_glyph): Likewise.
2670 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
2671 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
2672 * include/grub/font.h (grub_font_draw_string): Moved from here ...
2673 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
2674 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
2675 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
2676 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
2677 (grub_console_getcharwidth): Likewise.
2678 * include/grub/misc.h (grub_xputs): New proto.
2679 (grub_puts): Inlined.
2680 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
2681 (grub_normal_get_line_counter): Removed.
2682 (grub_install_newline_hook): Likewise.
2683 (grub_normal_get_char_counter): New proto.
2684 (grub_normal_reset_more): Likewise.
2685 (grub_xputs_normal): Likewise.
2686 * include/grub/powerpc/ieee1275/console.h: Removed.
2687 * include/grub/sparc64/ieee1275/console.h: Likewise.
2688 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
2689 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
2690 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
2691 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
2692 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
2693 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
2694 (grub_term_input): Pass reference to self. All users updated.
2695 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
2696 Pass reference to self. New fields normal_color, highlight_color and
2697 data. All users updated.
2698 (grub_putchar): Removed.
2699 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
2700 (grub_unicode_estimate_width): New function.
2701 (grub_term_getcharwidth): Add defaults.
2702 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
2703 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
2704 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
2705 (grub_cls): Remove EXPORT_FUNC.
2706 (grub_setcolorstate): Inline.
2707 (grub_newline_hook): Removed.
2708 * include/grub/terminfo.h: Rewritten. All users updated.
2709 * include/grub/unicode.h: New file.
2710 * include/grub/video.h (grub_video_signed_rect): New type.
2711 * kern/emu/console.c (grub_console_highlight_color): Removed.
2712 (grub_console_normal_color): Likewise.
2713 (grub_console_standard_color): Made static.
2714 (grub_ncurses_putchar): Remove mapping.
2715 (grub_ncurses_getcharwidth): Removed.
2716 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
2717 (grub_ncurses_setcolor): Removed.
2718 (grub_ncurses_getcolor): Likewise.
2719 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
2720 (grub_console_putchar): ... this.
2721 (grub_console_putchar): Handle argument difference.
2722 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
2723 console_init_early and console_init_lately.
2724 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
2725 * kern/misc.c (grub_puts): Removed.
2726 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
2727 (grub_vsnprintf_real): Remove str = NULL support.
2728 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
2729 * normal/charset.c (grub_utf8_to_ucs4): ... here.
2730 * kern/term.c (grub_putcode): Renamed to ...
2731 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
2732 (grub_putchar): Removed.
2733 (grub_xputs_dumb): New function.
2734 (grub_xputs): New variable.
2735 * lib/charset.c: Move from here ...
2736 * normal/charset.c: ... to here.
2737 (grub_ucs4_to_utf8): New function.
2738 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
2739 (join_types): New variable.
2740 (unpack_join): New function.
2741 (bidi_types): New variable.
2742 (unpack_bidi): New function.
2743 (get_bidi_type): Likewise.
2744 (get_join_type): Likewise.
2745 (is_mirrored): Likewise.
2746 (grub_unicode_get_comb_type): Likewise.
2747 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
2748 (is_type_after): Likewise.
2749 (grub_unicode_aglomerate_comb): Likewise.
2750 (bidi_line_wrap): Likewise.
2751 (grub_bidi_line_logical_to_visual): Likewise.
2752 (grub_bidi_logical_to_visual): Likewise.
2753 (grub_unicode_mirror_code): Likewise.
2754 (grub_unicode_shape_code): Likewise.
2755 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
2756 Don't use grub_putchar.
2757 * normal/main.c (grub_normal_init_page): Use grub_putcode.
2758 (grub_normal_reader_init): Likewise.
2759 (grub_xputs_saved): New variable.
2760 (GRUB_MOD_INIT): Set grub_xputs.
2761 (GRUB_MOD_FINI): Restore grub_xputs.
2762 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
2763 (menu_init): Avoid printing gfxmenu error.
2764 (show_menu): Use grub_normal_get_char_counter.
2765 * normal/menu_entry.c (update_screen): Fix out-of-array.
2766 (complete): Avoid NULL dereferencing.
2767 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
2768 * normal/menu_text.c (print_spaces): Removed.
2769 (grub_print_ucs4): Likewise.
2770 (grub_print_message_indented): Use grub_print_ucs4.
2771 (print_message): Use grub_putcode.
2772 (print_entry): Hanlde diacritics.
2773 * normal/term.c (term_state): New type.
2774 (grub_more_lines): Removed.
2775 (term_states): New variable.
2776 (grub_normal_line_counter): Renamed to ..
2777 (grub_normal_char_counter): ...this. All users updated.
2778 (grub_normal_get_line_counter): Renamed to ...
2779 (grub_normal_get_char_counter): ... this.
2780 (grub_normal_reset_more): New function.
2781 (process_newline): Removed.
2782 (print_more): New function.
2783 (grub_install_newline_hook): Removed.
2784 (map_code): New function.
2785 (grub_puts_terminal): Use grub_print_ucs4.
2786 (putglyph): New function.
2787 (putcode_real): Likewise.
2788 (grub_putcode): Use putcode_real.
2789 (get_maxwidth): New function.
2790 (get_startwidth): Likewise.
2791 (print_ucs4_terminal): Likewise.
2792 (find_term_state): Likewise.
2793 (put_glyphs_terminal): Likewise.
2794 (print_backlog): Likewise.
2795 (print_ucs4_real): Likewise.
2796 (grub_print_ucs4): Likewise.
2797 (grub_xputs_normal): Likewise.
2798 * term/efi/console.c (grub_console_putchar): Output diacritics.
2799 (grub_console_getcharwidth): Removed.
2800 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
2801 * term/gfxterm.c (clear_char): Free chars.
2802 (scroll_up): Avoid leaking memory.
2803 (grub_gfxterm_putchar): Support diacritics.
2804 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
2805 * term/i386/pc/console.c (grub_console_term_output): Declare as
2806 GRUB_TERM_CODE_TYPE_VGA.
2807 * term/i386/pc/vga.c (grub_vga_term): Declare as
2808 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
2809 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
2810 GRUB_TERM_CODE_TYPE_VGA.
2811 * term/i386/vga_common.c (map_char): Removed.
2812 (grub_console_putchar): Likewise.
2813 (grub_console_getcharwidth): Likewise.
2814 * term/ieee1275/ofconsole.c: Simplify using terminfo.
2815 (colors): Reordered to match terminfo.
2816 (grub_ofconsole_normal_color): Removed.
2817 (grub_ofconsole_writeesc): Likewise.
2818 (grub_ofconsole_highlight_color): Likewise.
2819 (grub_ofconsole_getcharwidth): Likewise.
2820 (grub_ofconsole_setcolorstate): Likewise.
2821 (grub_ofconsole_setcolor): Likewise.
2822 (grub_ofconsole_getcolor): Likewise.
2823 (grub_ofconsole_readkey): Renamed to ...
2824 (readkey): ... this. Remove escape sequence handling. Return -1 on no
2826 (grub_ofconsole_checkkey): Removed.
2827 (grub_ofconsole_getkey): Likewise.
2828 (grub_ofconsole_getxy): Likewise.
2829 (grub_ofconsole_gotoxy): Likewise.
2830 (grub_ofconsole_cls): Likewise.
2831 (grub_ofconsole_refresh): Likewise.
2832 (grub_ofconsole_terminfo_input): New struct.
2833 (grub_ofconsole_terminfo_output): Likewise.
2834 (grub_ofconsole_term_input): Use terminfo.
2835 (grub_ofconsole_term_output): Likewise.
2836 (grub_console_init): Split into ...
2837 (grub_console_init_early): ...this and ...
2838 (grub_console_init_lately): ...this. Use terminfo.
2839 (grub_ofconsole_putchar): Renamed to ...
2840 (put): ... this. Remove mapping.
2841 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
2842 * term/serial.c: Simplify using terminfo.
2845 (keep_track): Likewise.
2846 (registered): Likewise.
2847 (input_buf): Likewise.
2848 (npending): Likewise.
2849 (serial_translate_key_sequence): Likewise.
2850 (fill_input_buf): Likewise.
2851 (grub_serial_checkkey): Likewise.
2852 (grub_serial_getkey): Likewise.
2853 (grub_serial_getxy): Likewise.
2854 (grub_serial_gotoxy): Likewise.
2855 (grub_serial_putchar): Likewise.
2856 (grub_serial_cls): Likewise.
2857 (grub_serial_setcolorstate): Likewise.
2858 (grub_serial_setcursor): Likewise.
2859 (serial_hw_init): Use serial_hw_fetch.
2860 (grub_serial_terminfo_input): New variable.
2861 (grub_serial_terminfo_output): Likewise.
2862 (grub_serial_term_input): Use terminfo.
2863 (grub_serial_term_output): Likewise.
2864 * term/terminfo.c (putstr): Use put.
2865 (grub_terminfo_all_free): New function
2866 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
2867 (grub_terminfo_output_register): New function.
2868 (grub_terminfo_output_unregister): Likewise.
2869 (grub_terminfo_getxy): Likewise.
2870 (grub_terminfo_readkey): Likewise.
2871 (grub_terminfo_checkkey): Likewise.
2872 (grub_terminfo_getkey): Likewise.
2873 (grub_terminfo_input_init): Likewise.
2874 (print_terminfo): Likewise.
2875 (grub_cmd_terminfo): Handle encoding.
2876 (grub_terminfo_gotoxy): Track position.
2877 (grub_terminfo_cls): Likewise.
2878 (grub_terminfo_putchar): Likewise.
2879 (grub_terminfo_setcolorstate): Handle colors
2880 (grub_terminfo_cursor_on): This ...
2881 (grub_terminfo_cursor_off): ... and this merged into ...
2882 (grub_terminfo_setcursor): ... this.
2883 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
2884 * unicode/ArabicShaping.txt: New file (imported from Unicode).
2885 * unicode/BidiMirroring.txt: Likewise.
2886 * unicode/UnicodeData.txt: Likewise.
2887 * unicode/COPYING: Likewise.
2888 * util/grub-editenv.c (grub_putchar): Removed.
2889 (grub_xputs_real): New function.
2890 (grub_xputs): New variable.
2891 * util/grub-fstest.c (grub_putchar): Removed.
2892 (grub_xputs_real): New function.
2893 (grub_xputs): New variable.
2894 * util/grub-mkdevicemap.c (grub_putchar): Removed.
2895 (grub_xputs_real): New function.
2896 (grub_xputs): New variable.
2897 * util/grub-probe.c (grub_putchar): Removed.
2898 (grub_xputs_real): New function.
2899 (grub_xputs): New variable.
2900 * util/grub-script-check.c (grub_putchar): Removed.
2901 (grub_xputs_real): New function.
2902 (grub_xputs): New variable.
2903 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
2904 (grub_xputs_real): New function.
2905 (grub_xputs): New variable.
2906 * util/import_unicode.py: New file.
2907 * util/grub-mkfont.c (ft_errmsgs): New array.
2908 (grub_glyph_info): Make bitmap a pointer.
2909 (file_formats): New type WIDTH_SPEC.
2910 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
2911 (options): Add width-spec.
2913 (add_char): Renamed to ...
2914 (add_glyph): ... this.
2915 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
2916 (glyph_replace): New type.
2917 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
2918 (add_char): New function.
2919 (add_subst): Likewise.
2920 (process_cursive): Likewise.
2921 (add_font): Handle GSUB.
2922 (write_font_width_spec): New function.
2923 (main): Sort glyphs.
2924 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
2925 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
2926 * kern/term.c (grub_cls): Moved from here...
2927 * normal/term.c (grub_cls): ... here.
2929 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
2931 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
2932 suitable for using within the format argument of printf when
2933 converting grub_size_t.
2934 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
2935 "x" to convert grub_size_t arguments.
2937 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2939 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
2941 (list_get_minimal_size): Take selection box into account.
2943 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2945 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
2948 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
2950 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
2951 devices when iterating over /dev/disk/by-id; they will be handled
2952 later if appropriate, which they aren't always (e.g. LVM).
2954 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
2956 * include/grub/misc.h (grub_reboot): Declare as noreturn.
2957 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
2959 (grub_halt): Likewise.
2960 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
2962 (grub_halt): Don't return, even if all of shut-down, power-off, and
2965 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
2967 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
2968 arguments, not three.
2970 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
2972 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
2973 * util/grub.d/10_linux.in: Use it to check for LVM, so that
2974 LVM-on-RAID is handled correctly.
2976 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
2978 * docs/grub.texi (Changes from GRUB Legacy): New section.
2981 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
2983 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
2984 grub.d/README accidentally ends up executable for one reason or
2987 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2989 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
2990 (gpt_partition_map_iterate): Support non-512B sectors.
2992 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2994 * kern/efi/init.c (grub_efi_init): Disable watchdog.
2995 Tested by: Seth Goldberg.
2997 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2999 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
3001 Reported by: Seth Goldberg.
3003 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
3005 * util/grub-mkrescue.in: Avoid module duplication.
3007 2010-07-01 Sean Finney <seanius@seanius.net>
3009 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
3011 2010-07-01 Sean Finney <seanius@seanius.net>
3013 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
3015 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
3017 * disk/lvm.c (grub_lvm_checkvalue): New function.
3018 (grub_lvm_check_flag): Likewise.
3020 2010-07-01 Robert Millan <rmh@gnu.org>
3022 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
3023 Support 'p' as partition separator on kernel of FreeBSD (used
3025 (grub_util_biosdisk_get_grub_dev): Likewise.
3027 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
3029 Yeeloong firmware port.
3031 * boot/mips/yeeloong/fwstart.S: New file.
3032 * bus/cs5536.c (gpiodump): New const.
3033 (set_io_space): New function.
3034 (set_iod): Likewise.
3035 (set_p2d): Likewise.
3036 (grub_cs5536_init_geode): Likewise.
3037 * commands/mips/yeeloong/lsspd.c: New file.
3038 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
3039 (serial_mod_SOURCES): New variable.
3040 (serial_mod_CFLAGS): Likewise.
3041 (serial_mod_LDFLAGS): Likewise.
3042 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
3043 term/terminfo.c and term/tparm.c.
3044 (pkglib_IMAGES): Add fwstart.img.
3045 (fwstart_img_SOURCES): New variable.
3046 (fwstart_img_CFLAGS): Likewise.
3047 (fwstart_img_ASFLAGS): Likewise.
3048 (fwstart_img_LDFLAGS): Likewise.
3049 (fwstart_img_FORMAT): Likewise.
3050 (pkglib_MODULES): Add lsspd.mod.
3051 (lsspd_mod_SOURCES): New variable.
3052 (lsspd_mod_CFLAGS): Likewise.
3053 (lsspd_mod_LDFLAGS): Likewise.
3054 (pkglib_MODULES): Add halt.mod.
3055 (halt_mod_SOURCES): New variable.
3056 (halt_mod_CFLAGS): Likewise.
3057 (halt_mod_LDFLAGS): Likewise.
3058 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
3059 (serial_mod_SOURCES): Removed.
3060 (serial_mod_CFLAGS): Likewise.
3061 (serial_mod_LDFLAGS): Likewise.
3062 * disk/ata.c (check_device): New function.
3063 (grub_ata_device_initialize): Use check_device.
3064 (grub_ata_iterate): Recheck devices.
3065 (grub_ata_open): Likewise.
3066 (grub_atapi_iterate): Likewise.
3067 (grub_atapi_open): Likewise.
3068 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
3069 (GRUB_ATA_CH1_PORT1): Likewise.
3070 (GRUB_ATA_CH0_PORT2): Likewise.
3071 (GRUB_ATA_CH1_PORT2): Likewise.
3072 * include/grub/mips/loongson.h: New file.
3073 * include/grub/mips/yeeloong/ec.h: Likewise.
3074 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
3075 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
3076 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
3077 * include/grub/misc.h (grub_halt): Declare as noreturn.
3078 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
3079 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
3080 (UART_ENABLE_FIFO_TRIGGER1): New definition.
3081 (UART_ENABLE_DTRRTS): Likewise.
3082 (UART_ENABLE_MODEM): Removed.
3083 (UART_ENABLE_OUT2): New const.
3084 * include/grub/term.h (grub_term_register_input_active): New function.
3085 (grub_term_register_output_active): Likewise.
3086 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
3088 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
3089 (init_pci): New function.
3090 (grub_machine_init): Execute platform init when firmware. Init serial.
3091 (grub_halt): Implement.
3092 (grub_exit): Likewise.
3093 (grub_reboot): Likewise.
3094 * term/serial.c (serial_hw_init): Update macros.
3095 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
3096 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
3097 (image_targets): New target mipsel-yeeloong-flash.
3098 (generate_image): Support IMAGE_YEELOONG_FLASH.
3099 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
3100 (grub_video_sm712_setup): Init card.
3101 (grub_video_sm712_set_palette): Removed.
3102 * video/sm712_init.c: New file.
3104 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
3106 * Makefile.in (install-local): Temporarily prepend $(builddir) to
3107 PATH when running help2man and then run it on the unadorned
3108 executable names, rather than passing $(builddir)/* paths to
3109 help2man. This avoids the build directory ending up in generated
3112 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
3114 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
3115 to avoid accidents when debugging with 'sh -x'.
3116 * util/grub-mkrescue.in: Likewise.
3117 * util/grub.d/00_header.in: Likewise.
3118 * util/grub.d/10_hurd.in: Likewise.
3119 * util/grub.d/10_kfreebsd.in: Likewise.
3120 * util/grub.d/10_linux.in: Likewise.
3121 * util/grub.d/10_netbsd.in: Likewise.
3122 * util/grub.d/10_windows.in: Likewise.
3123 * util/grub.d/20_linux_xen.in: Likewise.
3124 * util/grub.d/30_os-prober.in: Likewise.
3125 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3127 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
3129 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
3130 last character in the buffer.
3131 Reported by: Vladimir Serbinenko.
3133 2010-06-29 Robert Millan <rmh@gnu.org>
3135 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
3136 (Command-line and menu entry commands): Document `badram' command.
3138 2010-06-28 Robert Millan <rmh@gnu.org>
3140 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
3141 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
3142 command using ${GRUB_BADRAM} as parameter.
3144 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
3146 * docs/grub.texi (Device map): New section.
3147 (Themes): New section (stub).
3148 * Makefile.in (docs/grub.info): The info documentation now builds
3149 without errors. Make sure it stays that way.
3151 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
3153 Use normal parser for menu entries.
3154 Reported by: Thomas Frauendorfer
3156 * include/grub/parser.h (grub_parser_execute): Don't export.
3157 * normal/menu.c (grub_menu_execute_entry_real): New function.
3158 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
3160 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
3162 * docs/grub.texi (Embedded configuration): New section (replacing
3163 old "Preset Menu" stub).
3164 (Images): New section.
3165 (configfile): Note that any menu entries defined in `file' are shown
3168 2010-06-28 Josh Triplett <josh@joshtriplett.org>
3170 * mmap/i386/pc/mmap_helper.S: Set CF on return.
3172 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
3174 * util/grub-install.in: Add --debug-image= option.
3176 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
3178 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
3181 * util/deviceiter.c (check_device): Rename to ...
3182 (check_device_readable_unique): ... this. Update all callers.
3183 Maintain and check a list of which devices (by canonicalized name)
3184 have already been seen.
3185 (clear_seen_devices): New function.
3186 (compare_file_names) [__linux__]: New function.
3187 (grub_util_iterate_devices): Clear the list of seen devices on exit
3188 and (just in case) on entry.
3189 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
3190 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
3191 seen-devices list, superseded by general code in check_device.
3193 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
3195 * commands/cat.c (options): New variable.
3196 (grub_cmd_cat): Parse options. If the --dos option is given, print
3197 DOS-style "\r\n" line endings as simple newlines (Debian bug
3199 (GRUB_MOD_INIT): Use extcmd.
3200 (GRUB_MOD_FINI): Likewise.
3201 * docs/grub.texi (cat): Document --dos.
3203 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
3205 XEN with Linux grub-mkconfig support.
3207 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
3208 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
3209 GRUB_CMDLINE_XEN_DEFAULT.
3210 * util/grub.d/20_linux_xen.in: New file.
3212 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
3214 Initialise VGA video on qemu ourselves.
3216 * boot/i386/qemu/boot.S: Don't call 0xc000.
3217 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
3218 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
3219 (kernel_img_HEADERS): Add pci.h.
3220 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
3221 * configure.ac: Force unifont on qemu and yeeloong.
3222 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
3223 (grub_vga_palette_write): Use correct register.
3224 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
3225 Call grub_qemu_init_cirrus.
3226 * kern/i386/qemu/init.c: New file.
3227 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
3229 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
3231 2010-06-26 Pavel Roskin <proski@gnu.org>
3233 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
3236 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
3238 * docs/grub.texi (Simple configuration): Explain that
3239 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
3240 set to `true' to disable their respective recovery entries, not
3243 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
3245 Make the `source' command slightly faster.
3247 * normal/main.c (grub_normal_execute): Don't re-read list files when
3250 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
3252 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
3253 field position and mask size to red fields from mode_info, not
3255 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
3256 Remove redundant tag->common.framebuffer_type assignment.
3257 Reported by: Seth Goldberg.
3259 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
3261 Sync up other versions of the Linux loader with Robert Millan's
3262 change of 2010-01-09, "Make loader output a bit more user-friendly".
3264 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
3266 (grub_cmd_linux): Likewise.
3267 (grub_cmd_initrd): Likewise.
3268 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
3269 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
3271 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
3273 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
3274 larger than MEMORY_MAP_SIZE.
3276 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
3280 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
3282 * script/parser.y: #include grub_script.tab.h header.
3284 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3286 Support >3GiB and <16MiB RAM in i386-qemu.
3288 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
3289 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
3290 (grub_lower_mem): Removed.
3291 (grub_upper_mem): Likewise.
3292 (mem_size): Made static.
3293 (above_4g): New variable.
3294 (grub_machine_mmap_init): Detect small mem_size and above_4g.
3295 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
3298 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3300 Cirrus 5446 and Bochs video cards support.
3302 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
3304 (video_cirrus_mod_SOURCES): New variable.
3305 (video_cirrus_mod_CFLAGS): Likewise.
3306 (video_cirrus_mod_LDFLAGS): Likewise.
3307 (video_bochs_mod_SOURCES): Likewise.
3308 (video_bochs_mod_CFLAGS): Likewise.
3309 (video_bochs_mod_LDFLAGS): Likewise.
3310 * include/grub/vga.h: New file.
3311 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
3312 (grub_video_fb_set_page_t): New type.
3313 (grub_video_fb_setup): New prototype.
3314 (grub_video_fb_swap_buffers): Likewise.
3315 (grub_video_fb_get_info_and_fini): Likewise.
3316 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
3317 (CRTC_DATA_PORT): Likewise.
3318 (CRTC_CURSOR): Likewise.
3319 (CRTC_CURSOR_ADDR_HIGH): Likewise.
3320 (CRTC_CURSOR_ADDR_LOW): Likewise.
3321 (CRTC_CURSOR_DISABLE): Likewise.
3322 (update_cursor): Use grub_vga_cr_write.
3323 (grub_vga_text_setcursor): Likewise.
3324 * video/bochs.c: New file.
3325 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
3326 (palette): Likewise.
3327 (palette_size): Likewise.
3328 (framebuffer): New variable.
3329 (grub_video_fb_init): Use 'framebuffer'.
3330 (grub_video_fb_fini): Likewise.
3331 (grub_video_fb_get_info): Likewise.
3332 (grub_video_fb_get_palette): Likewise.
3333 (grub_video_fb_set_palette): Likewise.
3334 (grub_video_fb_set_viewport): Likewise.
3335 (grub_video_fb_get_viewport): Likewise.
3336 (grub_video_fb_map_color): Likewise.
3337 (grub_video_fb_map_rgb): Likewise.
3338 (grub_video_fb_map_rgba): Likewise.
3339 (grub_video_fb_unmap_color): Likewise.
3340 (grub_video_fb_unmap_color_int): Likewise.
3341 (grub_video_fb_fill_rect): Likewise.
3342 (grub_video_fb_blit_bitmap): Likewise.
3343 (grub_video_fb_blit_render_target): Likewise.
3344 (grub_video_fb_scroll): Likewise.
3345 (grub_video_fb_create_render_target): Likewise.
3346 (grub_video_fb_doublebuf_blit_init): Likewise.
3347 (grub_video_fb_set_active_render_target): Handle doublebuffering.
3348 (doublebuf_pageflipping_update_screen): New function.
3349 (doublebuf_pageflipping_init): Likewise.
3350 (grub_video_fb_setup): Likewise.
3351 (grub_video_fb_swap_buffers): Likewise.
3352 (grub_video_fb_get_info_and_fini): Likewise.
3353 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
3355 (doublebuf_pageflipping_commit): Restructured into ...
3356 (doublebuf_pageflipping_set_page): ... this.
3357 (doublebuf_pageflipping_update_screen): Removed.
3358 (doublebuf_pageflipping_init): Likewise.
3359 (double_buffering_init): Likewise.
3360 (grub_video_vbe_setup): Use grub_video_fb_setup.
3361 (grub_video_vbe_swap_buffers): Removed.
3362 (grub_video_vbe_set_active_render_target): Likewise.
3363 (grub_video_vbe_get_active_render_target): Likewise.
3364 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
3365 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
3366 grub_video_fb_set_active_render_target and
3367 grub_video_fb_get_active_render_target.
3368 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
3369 (SEQUENCER_DATA_PORT): Likewise.
3370 (MAP_MASK_REGISTER): Likewise.
3371 (CRTC_ADDR_PORT): Likewise.
3372 (CRTC_DATA_PORT): Likewise.
3373 (START_ADDR_HIGH_REGISTER): Likewise.
3374 (START_ADDR_LOW_REGISTER): Likewise.
3375 (GRAPHICS_ADDR_PORT): Likewise.
3376 (GRAPHICS_DATA_PORT): Likewise.
3377 (READ_MAP_REGISTER): Likewise.
3378 (INPUT_STATUS1_REGISTER): Likewise.
3379 (INPUT_STATUS1_VERTR_BIT): Likewise.
3380 (get_map_mask): Use grub_vga_sr_read.
3381 (set_map_mask): Use grub_vga_sr_write.
3382 (set_read_map): Use grub_vga_gr_write.
3383 (set_start_address): Use grub_vga_cr_write.
3384 * video/sm712.c (framebuffer): Remove leftover fields.
3386 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
3388 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
3389 setting GRUB_VIDEO_BACKEND. Make it available as a user override
3390 instead. Replace the gfxterm backend check with a check that
3391 ${GRUB_PREFIX}/video.lst is non-empty.
3392 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
3394 (load_video): New generated function. Call it before loading
3395 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
3396 * util/grub.d/10_linux.in (linux_entry): Call load_video.
3397 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
3398 * docs/grub.texi (Simple configuration): Document
3401 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3403 Use video functions in linux and xnu loaders.
3405 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
3406 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
3407 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
3408 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
3409 loader/i386/pc/linux.c.
3410 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
3411 (find_line_len): Removed.
3412 (find_framebuf): Likewise.
3413 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
3414 * loader/i386/efi/xnu.c: Removed.
3415 * loader/i386/pc/xnu.c: Moved from here...
3416 * loader/i386/xnu.c: ...here.
3418 Enable priorities in video drivers.
3420 * include/grub/video.h (grub_video_adapter_prio_t): New type.
3421 (grub_video_adapter): New field prio.
3422 (grub_video_register): Respect prio when inserting.
3423 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
3424 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
3425 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
3426 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
3427 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
3428 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
3429 * video/sm712.c (grub_video_sm712_adapter): Likewise.
3433 * include/grub/video.h (grub_video_driver_id_t): New value
3434 GRUB_VIDEO_DRIVER_SDL.
3435 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
3437 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
3439 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
3441 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
3443 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
3445 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
3446 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
3448 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
3450 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
3451 directly, and recommend grub-install instead.
3452 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
3454 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
3456 Fix i386-pc prefix handling with nested partitions (Debian bug
3457 #585068). Note that the case where the core image is booted using
3458 multiboot and relocated from its original location still requires
3461 * kern/i386/pc/init.c (make_install_device): If the prefix starts
3462 with "(,", fill the boot drive in between those two characters, but
3463 expect that a full partition specification including partition map
3465 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
3466 specified, write a prefix without the drive name but including a
3467 full partition specification.
3469 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
3471 * util/grub-mkconfig.in: Ignore non-option arguments, for
3472 compatibility with older versions (before 2010-06-12) which did the
3473 same. In particular, this makes it easier to ship an update-grub
3474 wrapper which is compatible with that used with GRUB Legacy (Debian
3477 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
3479 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
3480 for manual page generation.
3482 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
3484 * po/POTFILES: Remove leftover commands/handler.c.
3486 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
3488 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
3489 left this script non-functional.
3491 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
3493 * docs/man/grub-emu.h2m: New file.
3495 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
3497 * docs/grub.texi (Commands): Document reduced command set in rescue
3499 (cpuid): New section.
3501 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
3503 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
3504 new partition naming style.
3505 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
3507 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
3509 Add "-o grub.iso" like cmdline options support.
3511 * util/grub-install.in: Improve cmdline option parsing.
3512 * util/grub-mkconfig.in: Likewise.
3513 * util/grub-mkrescue.in: Likewise.
3514 * util/grub-reboot.in: Likewise.
3515 * util/grub-set-default.in: Likewise.
3516 * util/i386/efi/grub-install.in: Likewise.
3517 * util/ieee1275/grub-install.in: Likewise.
3518 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3520 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
3522 * .bzrignore: Ignore 41_custom.
3524 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
3526 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
3528 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
3530 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
3531 prototype declarations.
3533 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
3534 generating fs, partmap, and video lists.
3535 * include/grub/fs.h (grub_fs_register): Omit prototype if
3536 GRUB_LST_GENERATOR is defined.
3537 * include/grub/partition.h (grub_partition_map_register): Likewise.
3538 * include/grub/video.h (grub_video_register): Likewise.
3540 2010-06-12 Javier Martín <lordhabbit@gmail.com>
3542 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
3544 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
3546 * util/grub-mkrescue.in: Support --xorriso argument.
3548 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
3550 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
3551 Suggested by: Thomas Schmitt.
3553 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
3555 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
3556 Suggested by: Thomas Schmitt.
3558 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
3562 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
3563 * util/grub.d/41_custom.in: New file.
3565 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
3567 * util/grub-mkrescue.in (make_image): Remove sh module, which has
3568 been merged back into normal.
3570 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
3572 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
3573 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
3575 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
3577 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
3578 when generating manual pages.
3579 * docs/man/grub-bin2h.h2m: New file.
3580 * docs/man/grub-editenv.h2m: New file.
3581 * docs/man/grub-fstest.h2m: New file.
3582 * docs/man/grub-install.h2m: New file.
3583 * docs/man/grub-macho2img.h2m: New file.
3584 * docs/man/grub-mkconfig.h2m: New file.
3585 * docs/man/grub-mkdevicemap.h2m: New file.
3586 * docs/man/grub-mkfont.h2m: New file.
3587 * docs/man/grub-mkimage.h2m: New file.
3588 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
3589 * docs/man/grub-mkrelpath.h2m: New file.
3590 * docs/man/grub-mkrescue.h2m: New file.
3591 * docs/man/grub-ofpathname.h2m: New file.
3592 * docs/man/grub-pe2elf.h2m: New file.
3593 * docs/man/grub-probe.h2m: New file.
3594 * docs/man/grub-reboot.h2m: New file.
3595 * docs/man/grub-script-check.h2m: New file.
3596 * docs/man/grub-set-default.h2m: New file.
3597 * docs/man/grub-setup.h2m: New file.
3599 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
3601 Use FOR_* macros instead of *_iterate whenever possible.
3603 * commands/handler.c: Removed.
3604 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
3605 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
3606 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
3607 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
3608 (grub_probe_SOURCES): Remove kern/parser.c.
3609 (util/grub-script-check.c_DEPENDENCIES): Removed.
3610 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
3611 and grub_script_check_init.c.
3612 (grub_script_check_init.lst): Removed.
3613 (grub_script_check_init.h): Likewise.
3614 (grub_script_check_init.c): Likewise.
3615 (pkglib_MODULES): Remove handler.mod and sh.mod.
3616 (handler_mod_SOURCES): Removed.
3617 (handler_mod_CFLAGS): Likewise.
3618 (handler_mod_LDFLAGS): Likewise.
3619 (normal_mod_SOURCES): Remove normal/handler.c.
3620 Add script/main.c, script/script.c, script/execute.c,
3621 script/function.c, script/lexer.c, grub_script.tab.c
3622 and grub_script.yy.c.
3623 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
3624 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
3625 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
3626 (grub_setup_SOURCES): Remove kern/parser.c.
3627 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
3628 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
3629 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
3630 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
3631 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
3632 (grub_setup_SOURCES): Remove kern/parser.c.
3633 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
3634 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
3635 * include/grub/command.h (grub_command_iterate): Removed.
3636 (FOR_COMMANDS): New macro.
3637 * include/grub/dl.h (grub_dl): New member next.
3638 (grub_dl_iterate): Removed.
3639 (grub_dl_head): New variable declaration.
3640 (FOR_DL_MODULES): New macro.
3641 * include/grub/fs.h: Include list.h.
3642 (grub_fs): Make next first element.
3643 (grub_fs_list): New variable declaration.
3644 (grub_fs_register): Make inline.
3645 (grub_fs_unregister): Likewise.
3646 (grub_fs_iterate): Removed.
3647 (FOR_FILESYSTEMS): New macro.
3648 * include/grub/handler.h: Removed.
3649 * include/grub/list.h (grub_list_hook_t): Removed.
3650 (grub_list_test_t): Likewise.
3651 (grub_list_pop): Likewise.
3652 (grub_list_iterate): Likewise.
3653 (grub_list_insert): Likewise.
3654 (FOR_LIST_ELEMENTS): New macro.
3655 * include/grub/parser.h (grub_parser_class): Removed.
3656 (grub_parser_register): Likewise.
3657 (grub_parser_unregister): Likewise.
3658 (grub_parser_get_current): Likewise.
3659 (grub_parser_set_current): Likewise.
3660 (grub_register_rescue_parser): Likewise.
3661 (grub_rescue_parse_line): New function.
3662 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
3663 * include/grub/script_sh.h (grub_script_function_list): New variable
3665 (FOR_SCRIPT_FUNCTIONS): New macro.
3666 (grub_script_function_iterate): Removed.
3667 (grub_normal_parse_line): New prototype.
3668 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
3669 (FOR_DISABLED_TERM_INPUTS): Likewise.
3670 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
3671 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
3672 * include/grub/video.h (grub_video_adapter): Move 'next' to first
3674 (grub_video_register): Inline.
3675 (grub_video_unregister): Likewise.
3676 (grub_video_adapter_list): New variable declaration.
3677 (grub_video_iterate): Removed.
3678 (FOR_VIDEO_ADAPTERS): New macro.
3679 * kern/dl.c (grub_dl_list): Removed. All users updated.
3680 (grub_dl_iterate): Removed.
3681 * kern/fs.c (grub_fs_list): Make global.
3682 (grub_fs_register): Removed.
3683 (grub_fs_unregister): Likewise.
3684 (grub_fs_iterate): Likewise.
3685 * kern/handler.c: Removed.
3686 * kern/list.c (grub_list_pop): Removed.
3687 (grub_list_iterate): Likewise.
3688 (grub_list_insert): Likewise.
3689 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
3690 (grub_prio_list_insert): Don't use grub_list_insert.
3691 * kern/main.c (grub_register_rescue_parser): Don't call
3692 grub_register_rescue_parser.
3693 * kern/parser.c (grub_parser_class): Removed.
3694 (grub_parser_execute): Use grub_rescue_parse_line.
3695 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
3696 (grub_rescue_parser): Removed.
3697 (grub_register_rescue_parser): Likewise.
3698 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
3699 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
3700 (grub_auth_check_authentication): Likewise.
3701 * normal/completion.c (iterate_command): Removed.
3702 (grub_normal_do_completion): Use FOR_COMMANDS.
3703 * normal/handler.c: Removed.
3704 * normal/main.c (read_config_file): Remove parser changing.
3705 (grub_normal_execute): Don't call read_handler_list.
3706 (grub_normal_read_line_real): Statically allocate prompt.
3707 (grub_cmdline_run): Use grub_normal_parse_line.
3708 (GRUB_MOD_FINI): Don't call free_handler_list.
3709 * normal/menu_entry.c (run): Likewise.
3710 * script/function.c (grub_script_function_list): Make global.
3711 (grub_script_function_iterate): Removed.
3712 * script/main.c (grub_normal_parse_line): Make global.
3713 (grub_sh_parser): Removed.
3714 (GRUB_MOD_INIT): Likewise.
3715 (GRUB_MOD_FINI): Likewise.
3716 * tests/lib/functional_test.c (grub_functional_test): Use
3718 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
3719 (grub_test_run): Use FOR_LIST_ELEMENTS.
3720 * tests/lib/unit_test.c (main): Likewise.
3721 * util/deviceiter.c (grub_util_iterate_devices): Don't use
3723 * util/grub-fstest.c (grub_term_input_class): Removed.
3724 (grub_term_output_class): Likewise.
3725 * util/grub-probe.c: Likewise.
3726 * util/i386/pc/grub-setup.c: Likewise.
3727 * util/sparc64/ieee1275/grub-setup.c: Likewise.
3728 * util/grub-script-check.c (main): Don't call grub_init_all and
3730 * video/video.c (grub_video_adapter_list): Make global.
3731 (grub_video_register): Removed.
3732 (grub_video_unregister): Likewise.
3733 (grub_video_iterate): Likewise.
3735 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3737 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
3738 reported by Henrique Ferreiro.
3740 2010-06-09 Robert Millan <rmh@gnu.org>
3742 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
3743 ones, when both are available.
3745 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
3747 Make --version uniform and avoid hard-coded program name.
3749 * util/grub-mkimage.c (main): Use `program_name' instead of
3751 * util/i386/pc/grub-setup.c (main): Likewise.
3752 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
3753 * util/grub-install.in: Save the basename of $0 in $self, and use the
3754 latter in informational messages. Use the same format for --version
3755 as the binary programs.
3756 * util/grub-mkconfig.in: Likewise.
3757 * util/grub-mkrescue.in: Likewise.
3758 * util/grub-reboot.in: Likewise.
3759 * util/grub-set-default.in: Likewise.
3760 * util/i386/efi/grub-install.in: Likewise.
3761 * util/ieee1275/grub-install.in: Likewise.
3762 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3764 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
3766 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
3767 embedding area. Use <= instead of == when checking for non-emptiness.
3769 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
3771 * configure.ac: Add `.' to the directories searched for unifont.
3773 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
3775 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
3778 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
3780 * docs/grub.texi (History): Expand to cover GRUB 2.
3781 (Serial terminal): Refer to `terminal_input' and `terminal_output'
3782 commands, not `terminal'.
3784 (terminal_input): New section.
3785 (terminal_output): New section.
3786 (uppermem): New section (stub).
3787 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
3789 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
3791 * docs/grub.texi (Security): Menu entries are unrestricted by
3792 default, not restricted to superusers as I had previously thought.
3793 Reword to account for this.
3795 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3797 * kern/emu/misc.c (device_mapper_null_log): New function.
3798 (grub_device_mapper_supported): New function.
3799 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
3801 * kern/emu/hostdisk.c (find_partition_start): Check whether
3802 device-mapper is supported before trying to use it.
3803 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
3805 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3807 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
3808 (File name syntax): Likewise.
3809 (help): --all is no longer supported in GRUB 2. Be more precise
3810 about pattern matching.
3812 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3814 * normal/completion.c (grub_normal_do_completion): When completing
3815 arguments to "set" and the current word contains an equals sign,
3816 skip to after the equals sign before starting completion.
3818 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3820 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
3822 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3824 * docs/grub.texi (Network): New section.
3825 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
3826 `(nd)' as in GRUB Legacy.
3827 (pxe_unload): New section.
3829 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3831 * docs/grub.texi (Troubleshooting): `echo' is not usually available
3832 in the rescue shell, so recommend using `set' instead. Thanks,
3835 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3837 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
3838 (password): New section.
3839 (password_pbkdf2): New section.
3840 (search): New section.
3841 (Security): New section.
3842 (Troubleshooting): New section, currently very incomplete.
3843 (Invoking grub-mkpasswd-pbkdf2): New section.
3844 (Internals): New section, currently very incomplete.
3846 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3848 * util/grub.d/00_header.in: Add some more quoting (of
3849 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
3851 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
3853 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
3855 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
3856 to `count', fixing variable shadowing that broke the -c option.
3858 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
3860 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
3861 in case they contain spaces.
3863 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
3865 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
3866 "part_" to partmap module names, in line with grub-install.
3867 Reported by: Jindřich Makovička (Debian bug #584426).
3869 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
3871 * util/grub-mkimage.c: Make target-related error messages slightly
3872 more helpful; -O talks about "format". Explicitly point to the use
3873 of -O if no target is specified.
3874 Reported by: Didier Raboud (Debian bug #584415).
3876 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
3878 * INSTALL: Document several build requirements for optional features
3879 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
3881 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
3883 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
3884 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
3885 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
3887 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
3889 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
3890 Thanks to Jordan Uggla for spotting this.
3892 2010-06-02 Aleš Nesrsta <starous@volny.cz>
3894 Finally make USB usable.
3896 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
3897 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
3898 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
3899 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
3900 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
3901 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
3902 (GRUB_OHCI_FSMPS): Likewise.
3903 (GRUB_OHCI_PERIODIC_START): Likewise.
3904 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
3905 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
3906 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
3907 (GRUB_OHCI_SET_PORT_RESET): Likewise.
3908 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
3909 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
3910 (grub_ohci_transaction): Likewise.
3911 (grub_ohci_transfer): Improve condition detection algorithms.
3912 Handle toggle property. Program the transactions correctly.
3913 Improve error handling. Various important fixups.
3914 (grub_ohci_portstatus): Put register writes in right order.
3915 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
3916 (grub_uhci_transfer): Don't show "failed" message on success.
3917 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
3919 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
3921 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
3922 before initialization is completed. Use IN direction for empty
3923 transfers. Use last_trans and compute toggle.
3924 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
3925 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
3926 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
3927 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
3928 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
3929 (grub_usb_device): Increase toggle to 256.
3930 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
3931 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
3932 GRUB_USBMS_SUBCLASS_SFF8070.
3933 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
3934 (grub_scsi_inquiry): New member page and alloc_length.
3935 (grub_scsi_request_sense): New structure.
3936 (grub_scsi_request_sense_data): Likewise.
3937 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
3939 * disk/scsi.c (grub_scsi_request_sense): New function.
3940 (grub_scsi_test_unit_ready): Likewise.
3941 (grub_scsi_inquiry): Fill new fields.
3942 (grub_scsi_read_capacity): Likewise.
3943 (grub_scsi_read10): Add request sense at the end.
3944 (grub_scsi_read12): Likewise.
3945 (grub_scsi_write10): Likewise.
3946 (grub_scsi_write12): Likewise.
3947 (grub_scsi_open): Add Test Unit Ready.
3948 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
3949 Support additional subclasses. Con't clear halt yet. Activate the
3950 proper config. Calculate LUNs correctly.
3951 (grub_usbms_transfer): Various important fixups.
3953 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3955 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
3956 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
3957 (grub_ohci_fini_hw): New function.
3958 (grub_ohci_restore_hw): Likewise.
3959 (GRUB_MOD_INIT(ohci)): Register preboot hook.
3960 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
3961 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
3963 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3965 Dedicated DMA allocations.
3967 * bus/pci.c (grub_memalign_dma32): New function
3968 (grub_dma_free): Likewise.
3969 (grub_dma_get_virt): Likewise.
3970 (grub_dma_get_phys): Likewise.
3971 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
3972 (grub_ohci_pci_iter): Use dma32_alloc.
3973 (grub_ohci_transfer): Likewise.
3974 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
3975 (grub_usb_bulk_readwrite): Likewise.
3976 * include/grub/pci.h: Add declarations.
3978 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3982 * bus/cs5536.c: New file.
3983 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
3984 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
3985 (cs5536_mod_SOURCES): New variable.
3986 (cs5536_mod_CFLAGS): Likewise.
3987 (cs5536_mod_LDFLAGS): Likewise.
3988 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
3990 (kernel_img_SOURCES): Add bus/cs5536.c.
3991 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
3993 (usb_mod_SOURCES): New variable.
3994 (usb_mod_CFLAGS): New variable.
3995 (usb_mod_LDFLAGS): New variable.
3996 (usbtest_mod_SOURCES): New variable.
3997 (usbtest_mod_CFLAGS): New variable.
3998 (usbtest_mod_LDFLAGS): New variable.
3999 (ohci_mod_SOURCES): New variable.
4000 (ohci_mod_CFLAGS): New variable.
4001 (ohci_mod_LDFLAGS): New variable.
4002 (usbms_mod_SOURCES): New variable.
4003 (usbms_mod_CFLAGS): New variable.
4004 (usbms_mod_LDFLAGS): New variable.
4005 (usb_keyboard_mod_SOURCES): New variable.
4006 (usb_keyboard_mod_CFLAGS): New variable.
4007 (usb_keyboard_mod_LDFLAGS): New variable.
4008 * include/grub/smbus.h: New file.
4009 * include/grub/cs5536.h: New file.
4011 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
4013 * util/grub.d/00_header.in: Add safety check to make sure that
4014 ${locale_dir} exists before trying to probe it.
4016 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
4018 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
4019 per the GNU Coding Standards; this is now too obscure to be worth
4022 (chainloader): Remove cross-reference to `SCO UnixWare'.
4024 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
4026 * docs/grub.texi (Chain-loading): New section.
4027 (DOS/Windows): New section, borrowed from GRUB Legacy with details
4028 adjusted for GRUB 2.
4029 (SCO UnixWare): Likewise.
4031 (chainloader): Add reference to `Block list syntax'.
4032 (drivemap): New section.
4033 (parttool): New section.
4035 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
4037 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
4039 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
4040 (Installing GRUB using grub-install): Remove reference to the grub
4041 shell; mention `grub-mkimage' and `grub-setup' instead.
4042 (Invoking grub-install): Likewise.
4043 (Interface): Add reference to `Menu entry editor'.
4044 (serial): Remove `--device' option.
4046 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
4048 * docs/grub.texi (Configuration): New section, documenting
4049 configuration file generation using grub-mkconfig. I've left a slot
4050 for documenting the full shell scripting format but have not yet
4051 started on writing that up.
4052 (Invoking grub-mkconfig): New section.
4054 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
4056 * docs/grub.texi (direntry): Remove grub-terminfo reference.
4057 (GNU GRUB manual): Likewise.
4058 (General commands): Update description of `terminfo' for GRUB 2.
4060 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
4062 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
4063 (GRUB_MOD_INIT): Fix capitalisation.
4064 * docs/grub.texi (Command-line and menu entry commands): Document
4065 gettext and gptsync commands.
4067 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
4069 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
4070 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
4072 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
4074 Add btrfs probing support, currently only in the single-device case.
4076 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
4078 (grub_guess_root_device): Call find_root_device_from_mountinfo
4079 before looking in /dev.
4081 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4083 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
4084 GRUB_DISK_SIZE_UNKNOWN.
4085 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
4087 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
4089 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
4090 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
4091 corrupted or not synced properly.
4093 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4095 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
4096 Reported by: Seth Goldberg.
4098 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4100 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
4102 Reported by: Seth Goldberg.
4104 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4106 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
4107 Reported by: Seth Goldberg.
4109 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4111 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
4112 64-bit address as signed on MIPS.
4114 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
4116 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
4117 to the empty string.
4119 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
4121 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
4123 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
4124 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
4125 * kern/misc.c (__enable_execute_stack): Disable on
4128 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
4130 Make grub-probe work with symbolic links under /dev/mapper as well
4131 as with real block devices. The Linux world seems to be (at best)
4132 in transition here, and GRUB shouldn't get caught in the middle.
4134 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
4137 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
4139 * util/grub-script-check.c (main): Ensure defined behaviour on empty
4140 input files (in which case exit zero).
4142 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
4144 * kern/emu/misc.c (canonicalize_file_name): realpath can still
4145 return NULL for various reasons even if it has a maximum-length
4146 buffer: for example, there might be a symlink loop, or the path
4147 might exceed PATH_MAX. If this happens, return NULL.
4149 2010-05-27 Robert Millan <rmh@gnu.org>
4151 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
4152 partmap module to handle cross-partmap setups.
4153 Reported by Orestes Mas. Gràcies!
4155 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
4157 * util/grub-mkrescue.in: Initialise override_dir rather than
4158 assuming that it's unset or empty in the environment.
4160 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4162 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
4163 variable index into p_index to suppress a warning with -Wshadow.
4165 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
4167 * INSTALL: Added flex >= 2.5.35 requirement.
4169 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4171 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
4173 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4177 * commands/i386/cmostest.c: New file.
4178 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
4179 (cmostest_mod_SOURCES): New variable.
4180 (cmostest_mod_CFLAGS): Likewise.
4181 (cmostest_mod_LDFLAGS): Likewise.
4182 * conf/i386-pc.rmk: Likewise.
4183 * docs/grub.texi (Vendor power-on keys): New section.
4184 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
4185 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
4186 and GRUB_BUTTON_CMOS_ADDRESS.
4187 * util/grub.d/00_header.in: Handle powering-on by separate button.
4189 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4191 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
4192 Removed drawing_scrollbar argument. All users updated
4194 Reported by Jo Shields
4196 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4198 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
4199 buffer since gfxterm handles double repaint.
4201 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4203 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
4204 * term/gfxterm.c (real_scroll): Likewise.
4206 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4208 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
4209 before calling BIOS.
4211 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4213 * include/grub/i18n.h: Always enable grub_gettext.
4215 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4217 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
4218 partition naming style.
4220 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
4222 * util/grub-mkconfig.in: Fix handling of -o so that it works when
4223 not the first option.
4225 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
4227 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
4229 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
4231 * util/misc.c: Move inclusion of <limits.h> to ...
4232 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
4234 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
4236 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
4237 Fix merge error in NetBSD code.
4238 (find_partition_start) [__NetBSD__]: Likewise.
4240 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
4242 Fix grub-mkrescue usage unit testing.
4244 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
4246 2010-05-18 Christian Franke <franke@computer.org>
4248 * util/grub.d/10_windows.in: Use path names instead of
4249 drive letters to prevent warning from Cygwin 1.7.
4250 Add drivemap command to menuentry if needed.
4252 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
4254 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
4255 gnumach and gnumach.gz.
4257 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4259 * include/grub/i18n.h (gettext): Inline instead of using #define.
4260 (grub_gettext): Likewise.
4263 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4265 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
4266 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
4267 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
4268 (main): Add a slash after pkglibdirroot.
4270 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4272 * util/grub-install.in: Add missing "in" keyword.
4274 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4276 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
4277 Reported by: Seth Goldberg.
4279 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4281 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
4283 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
4285 * configure.ac: Check for Linux device-mapper support.
4287 * util/hostdisk.c (device_is_mapped): New function.
4288 (find_partition_start): New function, partly broken out from
4289 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
4290 device-mapper support added.
4291 (linux_find_partition): Use find_partition_start.
4292 (convert_system_partition_to_system_disk): Add `st' argument.
4293 Support Linux /dev/mapper/* devices if device-mapper support is
4294 available; only DM-RAID devices are understood at present.
4295 (find_system_device): Add `st' argument. Pass it to
4296 convert_system_partition_to_system_disk.
4297 (grub_util_biosdisk_get_grub_dev): Pass stat result to
4298 find_system_device and convert_system_partition_to_system_disk. Use
4299 find_partition_start.
4301 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
4302 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
4303 * util/deviceiter.c [__linux__]: Define MINOR.
4304 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
4305 * util/mkdevicemap.c (grub_putchar): New function.
4306 (grub_getkey): New function.
4307 (grub_refresh): New function.
4308 (main): Set debug=all if -v -v is used.
4310 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
4312 Fix build with non-GNU libcs.
4314 * util/misc.c (canonicalize_file_name): Move to ...
4315 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
4316 grub_make_system_path_relative_to_its_root.
4318 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
4320 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
4321 we handle finding grub-mkimage. Default to finding grub-mkimage in
4322 ${bindir} with program_transform_name applied, and provide a
4323 --grub-mkimage option to override this.
4325 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4327 Remove grub-mkisofs.
4329 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
4330 (grub_mkisofs_SOURCES): Removed.
4331 (grub_mkisofs_CFLAGS): Removed.
4332 * util/mkisofs/defaults.h: Removed.
4333 * util/mkisofs/eltorito.c: Likewise.
4334 * util/mkisofs/exclude.h: Likewise.
4335 * util/mkisofs/hash.c: Likewise.
4336 * util/mkisofs/include/: Likewise.
4337 * util/mkisofs/include/fctldefs.h: Likewise.
4338 * util/mkisofs/include/mconfig.h: Likewise.
4339 * util/mkisofs/include/prototyp.h: Likewise.
4340 * util/mkisofs/include/statdefs.h: Likewise.
4341 * util/mkisofs/iso9660.h: Likewise.
4342 * util/mkisofs/joliet.c: Likewise.
4343 * util/mkisofs/match.c: Likewise.
4344 * util/mkisofs/match.h: Likewise.
4345 * util/mkisofs/mkisofs.c: Likewise.
4346 * util/mkisofs/mkisofs.h: Likewise.
4347 * util/mkisofs/msdos_partition.h: Likewise.
4348 * util/mkisofs/multi.c: Likewise.
4349 * util/mkisofs/name.c: Likewise.
4350 * util/mkisofs/rock.c: Likewise.
4351 * util/mkisofs/tree.c: Likewise.
4352 * util/mkisofs/write.c: Likewise.
4354 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4356 Unify grub-mkimage accross platforms.
4358 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
4359 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
4360 (grub_mkelfimage_SOURCES): Removed.
4361 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
4362 (util/grub-mkimage.c_DEPENDENCIES): .. this.
4363 (bin_UTILITIES): Add grub-mkimage.
4364 (grub_mkimage_SOURCES): New variable.
4365 (kernel_img_HEADERS): Remove machine/kernel.h.
4366 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
4367 (pkglib_PROGRAMS): Add kernel.img.
4368 (kernel_img_HEADERS): Add machine/kernel.h.
4369 (kernel_img_FORMAT): Removed.
4370 (bin_UTILITIES): Remove grub-mkimage.
4371 (grub_mkimage_SOURCES): Removed.
4372 (grub_mkimage_CFLAGS): Likewise.
4373 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
4374 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
4375 (pkglib_PROGRAMS): Add kernel.img.
4376 (bin_UTILITIES): Remove grub-mkimage.
4377 (grub_mkimage_SOURCES): Removed.
4378 (grub_mkimage_CFLAGS): Likewise.
4379 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
4380 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
4381 (pkglib_PROGRAMS): Add kernel.img.
4382 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
4383 (pkglib_PROGRAMS): Add kernel.img.
4384 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
4385 (grub_mkimage_SOURCES): Removed.
4386 (grub_mkimage_CFLAGS): Likewise.
4387 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
4388 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
4389 (pkglib_PROGRAMS): Add kernel.img.
4390 (bin_UTILITIES): Remove grub-mkimage.
4391 (grub_mkimage_SOURCES): Removed.
4392 (grub_mkimage_CFLAGS): Likewise.
4393 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
4394 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
4395 (grub_mkimage_SOURCES): Removed.
4396 (grub_mkimage_CFLAGS): Likewise.
4397 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
4398 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
4399 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
4400 (grub_pe32_optional_header): ... this.
4401 (grub_pe64_optional_header): ... and this. All users updated.
4402 (GRUB_PE32_PE32_MAGIC): Split into ..
4403 (GRUB_PE32_PE32_MAGIC): .. this.
4404 (GRUB_PE32_PE64_MAGIC): .. and this.
4405 (GRUB_PE32_SIGNATURE_SIZE): New definition.
4406 * include/grub/elf.h (PT_GNU_STACK): New definition.
4407 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
4408 * include/grub/i386/efi/kernel.h: Likewise.
4409 * include/grub/i386/kernel.h: Likewise.
4410 * include/grub/i386/pc/kernel.h: Likewise.
4411 * include/grub/i386/qemu/boot.h: Likewise.
4412 * include/grub/mips/kernel.h: Likewise.
4413 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4414 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
4415 * include/grub/powerpc/kernel.h: Likewise.
4416 * include/grub/sparc64/ieee1275/boot.h: Likewise.
4417 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
4418 * include/grub/sparc64/kernel.h: Likewise.
4419 * include/grub/x86_64/efi/kernel.h: Likewise.
4420 * include/grub/x86_64/kernel.h: Likewise.
4421 * include/grub/offsets.h: New file.
4422 * include/grub/kernel.h (grub_module_info): Split into ...
4423 (grub_module_info32): ... this.
4424 (grub_module_info64): ... and this.
4425 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
4426 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
4427 (grub_boot_blocklist): Moved from here ...
4428 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
4429 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
4430 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
4431 * include/grub/types.h (grub_target_to_host16): Removed.
4432 (grub_target_to_host32): Likewise.
4433 (grub_target_to_host64): Likewise.
4434 (grub_host_to_target16): Likewise.
4435 (grub_host_to_target32): Likewise.
4436 (grub_host_to_target64): Likewise.
4437 (grub_host_to_target_addr): Likewise.
4439 Support grub-mkrescue for efi, coreboot and qemu.
4441 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
4442 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
4443 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
4444 * util/grub-mkrawimage.c: Moved from here ...
4445 * util/grub-mkimage.c: ... here. All users updated.
4446 (ALIGN_ADDR): Use image_target.
4447 (TARGET_NO_FIELD): New const.
4448 (image_target_desc): New type.
4449 (image_targets): New array.
4450 (grub_target_to_host64): Use image_target.
4451 (grub_target_to_host32): Likewise.
4452 (grub_target_to_host16): Likewise.
4453 (grub_host_to_target64): Likewise.
4454 (grub_host_to_target32): Likewise.
4455 (grub_host_to_target16): Likewise.
4456 (grub_host_to_target_addr): Likewise.
4457 (generate_image): Handle multiimage.
4458 (main): Require -O parameter. All users updated.
4459 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
4460 util/efi/grub-mkimage.c
4461 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
4462 New option --rom-directory.
4464 * util/i386/efi/grub-mkimage.c: Removed.
4465 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
4466 (grub_target_to_host32): Likewise.
4467 (grub_target_to_host64): Likewise.
4468 (grub_host_to_target16): Likewise.
4469 (grub_host_to_target32): Likewise.
4470 (grub_host_to_target64): Likewise.
4471 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
4472 (grub_target_to_host32): Likewise.
4473 (grub_target_to_host64): Likewise.
4474 (grub_host_to_target16): Likewise.
4475 (grub_host_to_target32): Likewise.
4476 (grub_host_to_target64): Likewise.
4478 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
4480 Source tree is reorganized for emu build.
4482 * include/grub/util/console.h: Move from here...
4483 * include/grub/emu/console.h: ...to here.
4484 * include/grub/util/getroot.h: Move from here...
4485 * include/grub/emu/getroot.h: ...to here.
4486 * include/grub/util/hostdisk.h: Move from here...
4487 * include/grub/emu/hostdisk.h: ...to here.
4488 * util/console.c: Move from here...
4489 * kern/emu/console.c: ...to here.
4490 * util/getroot.c: Move from here...
4491 * kern/emu/getroot.c: ...to here.
4492 * util/grub-emu.c: Move from here...
4493 * kern/emu/main.c: ...to here.
4494 * util/hostdisk.c: Move from here...
4495 * kern/emu/hostdisk.c: ...to here.
4496 * util/hostfs.c: Move from here...
4497 * kern/emu/hostfs.c: ...to here.
4498 * util/mm.c: Move from here...
4499 * kern/emu/mm.c: ...to here.
4500 * util/pci.c: Move from here...
4501 * bus/emu/pci.c: ...to here.
4502 * util/sdl.c: Move from here...
4503 * video/emu/sdl.c: ...to here.
4504 * util/time.c: Move from here...
4505 * kern/emu/time.c: ...to here.
4506 * util/usb.c: Move from here...
4507 * bus/usb/emu/usb.c: ...to here.
4509 * include/grub/emu/misc.h: New header for grub-emu functions.
4510 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
4512 * conf/any-emu.rmk: Rule updates for above renames.
4513 * conf/common.rmk: Likewise.
4514 * conf/i386-pc.rmk: Likewise.
4515 * conf/i386-qemu.rmk: Likewise.
4516 * conf/mips.rmk: Likewise.
4517 * conf/sparc64-ieee1275.rmk: Likewise.
4518 * conf/x86-efi.rmk: Likewise.
4520 * disk/lvm.h: #include updates for above renames.
4521 * util/grub-mkrelpath.c: Likewise.
4522 * util/grub-probe.c: Likewise.
4523 * util/i386/pc/grub-setup.c: Likewise.
4524 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4525 * kern/emu/console.c: Likewise.
4526 * kern/emu/getroot.c: Likewise.
4527 * kern/emu/hostdisk.c: Likewise.
4528 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
4530 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
4531 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
4532 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
4533 * util/misc.c: Remove grub-emu functions.
4535 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4538 Reported by: Thorsten Grützmacher.
4540 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
4542 (circprog_set_property): Register and unregister timeout hook.
4543 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
4544 (label_destroy): Free template. and unregister hook.
4545 (label_set_state): New function.
4546 (label_set_property): Handle templates and hooks.
4547 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
4549 (progress_bar_set_property): Register and unregister timeout hook.
4550 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
4551 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
4552 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
4553 (update_timeout_visit): Removed.
4554 (update_timeouts): New function.
4555 (redraw_timeouts): Likewise.
4556 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
4557 (grub_gfxmenu_clear_timeout): Likewise.
4558 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
4559 (grub_gfxmenu_timeout_notify): Likewise.
4560 (grub_gfxmenu_timeout_notifications): New external variable.
4561 (grub_gfxmenu_timeout_register): New function.
4562 (grub_gfxmenu_timeout_unregister): Likewise.
4564 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4566 Transform (broken) vga terminal into (working) vga video driver.
4568 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
4569 video/i386/pc/vga.c.
4570 * include/grub/video.h (grub_video_driver_id):
4571 Add GRUB_VIDEO_DRIVER_VGA.
4572 * term/i386/pc/vga.c: Renamed to ...
4573 * video/i386/pc/vga.c: ...this
4574 (DEBUG_VGA): Removed.
4575 (CHAR_WIDTH): Likewise.
4576 (CHAR_HEIGHT): Likewise.
4577 (TEXT_WIDTH): Likewise.
4578 (TEXT_HEIGHT): Likewise.
4579 (DEFAULT_FG_COLOR): Likewise.
4580 (DEFAULT_BG_COLOR): Likewise.
4581 (colored_char): Likewise.
4584 (cursor_state): Likewise.
4585 (fg_color): Likewise.
4586 (bg_color): Likewise.
4587 (text_buf): Likewise.
4590 (framebuffer): New variable.
4591 (set_read_map): Disabled.
4592 (setup): New variable.
4593 (is_target): Likewise.
4594 (grub_vga_mod_init): Likewise.
4595 (grub_vga_mod_fini): Likewise.
4596 (check_vga_mem): Likewise.
4597 (write_char): Likewise.
4598 (write_cursor): Likewise.
4599 (scroll_up): Likewise.
4600 (grub_vga_putchar): Likewise.
4601 (grub_vga_getcharwidth): Likewise.
4602 (grub_vga_getwh): Likewise.
4603 (grub_vga_getxy): Likewise.
4604 (grub_vga_gotoxy): Likewise.
4605 (grub_vga_cls): Likewise.
4606 (grub_vga_setcolorstate): Likewise.
4607 (grub_vga_setcursor): Likewise.
4608 (grub_video_vga_init): New function.
4609 (grub_video_vga_setup): Likewise.
4610 (grub_video_vga_fini): Likewise.
4611 (update_target): Likewise.
4612 (grub_video_vga_blit_bitmap): Likewise.
4613 (grub_video_vga_blit_render_target): Likewise.
4614 (grub_video_vga_set_active_render_target): Likewise.
4615 (grub_video_vga_get_active_render_target): Likewise.
4616 (grub_video_vga_swap_buffers): Likewise.
4617 (grub_video_vga_set_palette): Likewise.
4618 (grub_video_vga_get_info_and_fini): Likewise.
4619 (grub_vga_term): Removed.
4620 (grub_video_vga_adapter): New variable.
4621 (GRUB_MOD_INIT): Register a video driver instead of terminal.
4622 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
4624 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4626 * video/readers/jpeg.c: Indented.
4628 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4630 Various jpeg cleanups.
4632 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
4633 (grub_jpeg_decode_quan_table): Use sizeof.
4634 (grub_jpeg_decode_du): Use ARRAY_SIZE.
4636 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
4638 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
4639 tables. Ignore non-last ac bit.
4640 (grub_jpeg_decode_quan_table): Likewise.
4642 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4644 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
4645 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
4646 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4647 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
4648 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
4649 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
4651 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4653 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
4656 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4658 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
4660 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4662 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
4665 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4667 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
4670 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4672 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
4675 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4677 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
4679 2010-05-01 Christian Franke <franke@computer.org>
4681 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
4682 Remove broken Cygwin path conversion.
4683 * util/misc.c: [__CYGWIN__] Add include and define.
4684 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
4686 (make_system_path_relative_to_its_root): Simplify loop, replace early
4688 [__CYGWIN__] Add conversion to win32 path.
4689 Include "/" case in trailing slash removal.
4691 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4693 * kern/main.c (grub_load_config): Fix copy-pasted comment.
4694 Reported by: Seth Goldberg
4696 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4698 * commands/help.c (grub_cmd_help): Fix a typo.
4699 Reported by: Seth Goldberg
4701 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4703 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
4705 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
4706 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
4707 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
4708 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
4709 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
4710 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
4711 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
4712 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
4713 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
4714 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
4715 * normal/context.c (GRUB_MOD_INIT): Likewise.
4716 * normal/main.c (GRUB_MOD_INIT): Likewise.
4717 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
4718 * term/serial.c (GRUB_MOD_INIT): Likewise.
4719 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
4721 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4723 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
4726 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4728 * commands/iorw.c: New file.
4729 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
4730 (iorw_mod_SOURCES): New variable.
4731 (iorw_mod_CFLAGS): Likewise.
4732 (iorw_mod_LDFLAGS): Likewise.
4734 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4738 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
4739 * normal/main.c (hotkey_aliases): New variable.
4740 (grub_normal_add_menu_entry): Parse "--hotkey".
4741 * normal/menu_text.c (run_menu): Handle hotkeys.
4743 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4745 * kern/i386/coreboot/init.c (grub_machine_init): Call
4746 grub_machine_mmap_init on qemu.
4748 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4750 * boot/i386/qemu/boot.S: Add a missing .code16.
4752 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4754 Use LBIO on coreboot.
4756 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
4757 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
4758 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
4760 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
4761 grub_machine_mmap_init on coreboot.
4762 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
4763 GRUB_LINUXBIOS_MEMBER_LINK.
4764 (grub_machine_mmap_iterate): Fix declaration.
4765 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
4767 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4769 Split coreboot and multiboot ports.
4771 * conf/i386-multiboot.rmk: New file.
4772 * configure.ac: Add multiboot port.
4773 * include/grub/i386/multiboot/boot.h: New file.
4774 * include/grub/i386/multiboot/console.h: Likewise.
4775 * include/grub/i386/multiboot/init.h: Likewise.
4776 * include/grub/i386/multiboot/kernel.h: Likewise.
4777 * include/grub/i386/multiboot/loader.h: Likewise.
4778 * include/grub/i386/multiboot/memory.h: Likewise.
4779 * include/grub/i386/multiboot/serial.h: Likewise.
4780 * include/grub/i386/multiboot/time.h: Likewise.
4781 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
4782 * loader/multiboot.c: Likewise.
4783 * loader/multiboot_mbi2.c: Likewise.
4784 * util/grub-mkrescue.in: Generate multiboot rescue.
4786 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4788 * kern/parser.c (grub_parser_execute): Cope with read-only config.
4790 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4792 Merge handling of input and output terminals. Fix a hang.
4794 * commands/terminal.c (abstract_terminal): New struct.
4795 (handle_command): New function. Based on grub_cmd_terminal_input.
4796 (grub_cmd_terminal_input): Use handle_command.
4797 (grub_cmd_terminal_output): Use handle_command.
4799 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
4801 Fix comment handling.
4803 * tests/grub_script_comments.in: New testcase.
4804 * conf/tests.rmk: Rules for new testcase.
4805 * script/yylex.l: Updated flex rules.
4807 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
4809 * docs/grub.texi (play): Document that zero pitches produce rests.
4810 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
4813 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4815 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
4818 2010-04-26 Christian Franke <franke@computer.org>
4820 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
4821 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
4822 (grub_get_prefix): Remove function.
4823 * util/grub-emu.c (main): Replace grub_get_prefix () call by
4824 make_system_path_relative_to_its_root ().
4825 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
4827 2010-04-24 Christian Franke <franke@computer.org>
4829 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
4830 (kernel_img_LDFLAGS): Remove -static-libgcc.
4832 2010-04-24 Christian Franke <franke@computer.org>
4834 * configure.ac: Do not CHECK_BSS_START_SYMBOL
4835 and CHECK_END_SYMBOL if grub-emu is built.
4836 Unset TARGET_OBJ2ELF if grub-emu is built
4837 without module support.
4839 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
4843 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
4844 (grub_fstest_SOURCES): Likewise.
4845 (pkglib_MODULES): Add nilfs2.mod.
4846 (nilfs2_mod_SOURCES): New variable.
4847 (nilfs2_mod_CFLAGS): Likewise.
4848 (nilfs2_mod_LDFLAGS): Likewise.
4849 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
4850 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
4851 * fs/nilfs2.c: New file.
4853 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4855 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
4858 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
4860 Add grub-mkconfig support for NetBSD.
4862 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
4863 * util/grub-mkconfig.in: export new NetBSD specific variables.
4864 * po/POTFILES-shell: added 10_netbsd.in.
4865 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
4867 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
4869 Fix emu build with grub-emu-pci and grub-emu-modules.
4871 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
4873 * include/grub/libpciaccess.h: New file.
4874 * conf/any-emu.rmk: Update kernel headers for emu build.
4876 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4878 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
4880 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4882 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
4884 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4886 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
4887 Retrieve chosen/bootpath if bootpath isn't hardcoded.
4888 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
4889 util/ieee1275/ofpath.c.
4890 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
4891 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
4892 * include/grub/sparc64/ieee1275/boot.h
4893 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
4894 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
4895 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
4896 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
4898 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
4899 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
4900 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
4903 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
4905 * util/grub-mkconfig.in: Corrected two == equality tests.
4906 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
4907 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
4908 expect a number appended to it.
4909 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
4910 expects a number appended to it.
4912 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4914 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
4916 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4918 * util/hostdisk.c (make_device_name): Change to new partition naming.
4920 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
4922 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
4924 2010-04-17 Christian Franke <franke@computer.org>
4926 * Makefile.in: Add missing localedir setting.
4928 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
4930 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
4931 mistake in r2156. Noticed by Anthony Fok.
4933 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
4935 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
4937 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
4939 Fix a spurious, uninitialized variable warning.
4941 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
4942 Initialize variable, shdr.
4943 (grub_freebsd_load_elfmodule): Likewise.
4944 (grub_freebsd_load_elf_meta): Likewise.
4946 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
4948 Fix for escaped dollar in double quoted strings.
4950 * script/yylex.l: Updated flex rules.
4951 * conf/tests.rmk: Rule for new testcase.
4952 * tests/grub_script_dollar.in: New testcase.
4954 2010-04-13 Carles Pina i Estany <carles@pina.cat>
4955 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
4957 Enclose all translated strings in grub.cfg in single quotes, and
4958 escape them appropriately (Ubuntu bug #552921).
4960 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
4961 * util/grub.d/10_hurd.in: Use it.
4962 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
4963 * util/grub.d/10_linux.in (linux_entry): Likewise.
4965 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4967 Fix cygwin compilation.
4969 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
4970 * include/grub/misc.h (__register_frame_info)
4971 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
4972 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
4973 * kern/misc.c (__register_frame_info)
4974 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
4975 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
4977 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4979 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
4981 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4983 Unify libgcc processing.
4985 * Makefile.in (kernel_img_LDFLAGS): New variable.
4986 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
4987 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
4989 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
4990 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
4991 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
4992 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
4993 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
4994 overwriting. Remove -lgcc and -static-libgcc
4995 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
4996 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
4997 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
4998 (kernel_img_LDFLAGS): Append instead of overwriting.
4999 Remove -lgcc and -static-libgcc
5000 * conf/sparc64-ieee1275.rmk: Likewise.
5001 * include/grub/powerpc/libgcc.h: Move to ...
5002 * include/grub/libgcc.h: .. this.
5003 * include/grub/libgcc.h: Don't export most of the function on x86.
5004 (__bswapsi2): New export.
5005 (__bswapdi2): Likewise.
5006 * include/grub/mips/libgcc.h: Removed.
5007 * include/grub/sparc64/libgcc.h: Likewise.
5009 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5011 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
5012 disk_info_msg (conflicts with gettexting into languages with cases).
5014 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
5016 Add grub-probe support for NetBSD.
5018 * util/getroot.c (find_root_device): Convert block device to
5019 character device on NetBSD.
5020 * util/probe.c (probe): Require character device on NetBSD.
5021 * util/hostdisk.c: NetBSD specific headers.
5022 (configure_device_driver): new function to tune device driver
5023 parameters (currently only for NetBSD floppy driver).
5024 (grub_util_biosdisk_open): NetBSD specific code (get disk size
5025 via disklabel ioctl).
5026 (open_device): call configure_device_driver on NetBSD.
5027 (convert_system_partition_to_system_disk): NetBSD specific code.
5028 (device_is_wholedisk): Likewise.
5029 (grub_util_biosdisk_get_grub_dev): Likewise.
5030 (make_device_name): Fixed a typo in bsd_part_str.
5031 * configure.ac: check for opendisk() and getrawpartition() on
5032 NetBSD and set LIBUTIL.
5033 * Makefile.in: add LIBUTIL to LIBS.
5035 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
5039 * util/grub-script-check.c: Better help message.
5041 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
5045 * configure.ac: Flex version check.
5046 * conf/common.rmk: Add -Wno-error to sh.mod.
5047 * script/yylex.l: Remove all #pragma.
5049 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5051 * include/grub/util/misc.h (canonicalise_file_name): Add missing
5053 Reported by: Seth Goldberg.
5055 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5057 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
5058 Rename "module" to "module2".
5059 Reported by: Seth Goldberg.
5061 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5063 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
5065 Reported by: Seth Goldberg.
5067 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5069 * lib/posix_wrap/locale.h: Add missing file.
5070 Reported by: Seth Goldberg.
5072 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5074 grub-emu module load support.
5076 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
5077 NO_DYNAMIC_MODULES switched to this.
5078 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
5080 * conf/any-emu.rmk: Generate symlist.
5081 (kernel_img_HEADERS): Add util/datetime.h.
5082 (kernel_img_HEADERS) [sdl]: Add sdl.h.
5083 (kernel_img_HEADERS) [libusb]: Add libusb.h.
5084 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
5085 kern/$(target_cpu)/cache.S.
5086 * configure.ac (grub-emu-modules): New option.
5087 * genmk.rb: Handle multiple source lists.
5088 * include/grub/sdl.h: New file.
5089 * include/grub/libusb.h: Likewise.
5090 * util/grub-emu.c (main): Hanle (host) root.
5091 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
5092 GRUB_ERR_UNKNOWN_DEVICE.
5093 * util/misc.c: Move mm functions to ...
5094 * util/mm.c: ... here. All users updated.
5096 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5098 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
5099 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
5101 (maintainer-clean): Remove libgcrypt-grub.
5103 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5105 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
5107 2010-04-09 EFI Coder <eficoder@hotmail.com>
5109 * normal/menu_text.c (print_message): Clean up the message and show
5110 the Fn information when on EFI
5111 * term/efi/console.c (grub_console_checkkey): Add F4 support.
5113 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5115 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
5117 * normal/crypto.c (read_crypto_list): Likewise.
5118 * normal/dyncmd.c (read_command_list): Likewise.
5119 * normal/term.c (read_terminal_list): Likewise.
5120 * normal/main.c (read_lists): Use explicit prefix.
5121 (read_lists_hook): Use read_lists.
5122 (grub_normal_execute): Likewise.
5124 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5126 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
5127 Reported by: Thomas Schmitt.
5128 Add -no-emul-boot to grub-mkisofs parameters.
5130 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5132 * font/font.c: Indented.
5134 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
5136 Elif support to GRUB script (by Deepak Vankadaru).
5138 * tests/grub_script_if.in: New testcase.
5139 * conf/tests.rmk: Rule for new testcase.
5140 * script/parser.y: Grammar rules for elif.
5142 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
5144 While and until loops support to GRUB script.
5146 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
5147 (grub_script_create_cmdwhile): New function prototype.
5148 (grub_script_execute_cmdwhile): New function prototype.
5149 * script/execute.c (grub_script_execute_cmdwhile): New function.
5150 * script/parser.y (command): New commands.
5151 (whilecmd): New grammar rule.
5152 (untilcmd): New grammar rule.
5153 * script/script.c (grub_script_create_cmdwhile): New function.
5154 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
5157 * tests/grub_script_while1.in: New testcase.
5158 * conf/tests.rmk: Rule for new testcase.
5160 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5162 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
5165 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
5167 GRUB_BACKGROUND support.
5169 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
5170 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
5172 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5174 Load fonts and modules for gfxmenu in grub-mkconfig.
5175 Idea by: Mario Vazquez
5177 * util/grub.d/00_header.in: Load pf2 and image modules.
5179 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5181 grub-mkconfig multiple terminal support.
5183 * util/grub-mkconfig.in: Handle multiple terminals correctly.
5184 * util/grub.d/00_header.in: Likewise.
5186 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5188 * Makefile.in: Specify files explicitly instead of using $< and $@ since
5189 we use cd $(srcdir).
5191 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
5193 * util/grub.d/10_linux.in: Only use the first word of
5194 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
5195 spaces in GRUB_DISTRIBUTOR.
5196 * util/grub.d/10_kfreebsd.in: Likewise.
5197 * util/grub.d/10_hurd.in: Likewise.
5199 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
5201 Fix unit testing framework for Qemu 0.12.
5203 * tests/util/grub-shell.in: Remove -serial stdio option.
5205 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5207 POSIX header file wrappers.
5209 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
5211 * lib/posix_wrap/ctype.h: Likewise.
5212 * lib/posix_wrap/errno.h: Likewise.
5213 * lib/posix_wrap/langinfo.h: Likewise.
5214 * lib/posix_wrap/limits.h: Likewise.
5215 * lib/posix_wrap/localcharset.h: Likewise.
5216 * lib/posix_wrap/stdint.h: Likewise.
5217 * lib/posix_wrap/stdio.h: Likewise.
5218 * lib/posix_wrap/stdlib.h: Likewise.
5219 * lib/posix_wrap/string.h: Likewise.
5220 * lib/posix_wrap/sys/types.h: Likewise.
5221 * lib/posix_wrap/unistd.h: Likewise.
5222 * lib/posix_wrap/wchar.h: Likewise.
5223 * lib/posix_wrap/wctype.h: Likewise.
5224 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
5225 (grub_script.yy.h): Likewise.
5226 * script/yylex.l: Remove POSIX emulation #defines.
5227 * Makefile.in (POSIX_CFLAGS): New variable.
5228 (GNULIB_UTIL_CFLAGS): Likewise.
5232 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
5233 (regexp_mod_SOURCES): New variable.
5234 (regexp_mod_CFLAGS): Likewise.
5235 (regexp_mod_LDFLAGS): Likewise.
5236 * commands/regexp.c: New file.
5237 * gnulib/regcomp.c: New file. Imported from gnulib.
5238 * gnulib/regex.c: Likewise.
5239 * gnulib/regex_internal.c: Likewise.
5240 * gnulib/regex_internal.h: Likewise.
5241 * gnulib/regexec.c: Likewise.
5242 * gnulib/regex.h: Likewise.
5244 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5246 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
5247 unsupported video mode types.
5249 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5251 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
5253 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5255 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
5256 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
5258 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5260 Remove unused grub_vga_get_font.
5262 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
5263 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
5265 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
5267 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
5268 * include/grub/misc.h: Likewise.
5270 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
5272 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
5273 for which failure is fatal.
5275 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
5277 * util/grub-install.in: Use mkdir -p to create grub directory.
5278 * util/i386/efi/grub-install.in: Likewise.
5279 * util/ieee1275/grub-install.in: Likewise.
5281 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
5283 * Makefile.in (LEX): new variable.
5285 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
5287 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
5288 `=' and added double quotes on operands of this equality test.
5290 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5292 * Makefile.in (uninstall): Remove a leftover debug echo.
5293 Reported by: Grégoire Sutre
5295 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5297 MIPS multiboot2 support.
5299 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
5300 (multiboot2_mod_SOURCES): New variable.
5301 (multiboot2_mod_CFLAGS): Likewise.
5302 (multiboot2_mod_LDFLAGS): Likewise.
5303 (multiboot2_mod_ASFLAGS): Likewise.
5304 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
5306 (MULTIBOOT_ENTRY_REGISTER): Likewise.
5307 (MULTIBOOT_MBI_REGISTER): Likewise.
5308 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
5309 (MULTIBOOT_ELF32_MACHINE): Likewise.
5310 (MULTIBOOT_ELF64_MACHINE): Likewise.
5311 * include/grub/mips/multiboot.h: New file.
5312 * include/grub/video.h (grub_video_driver_id): New type
5313 GRUB_VIDEO_DRIVER_SM712.
5314 (grub_video_get_info_and_fini): Export.
5315 (grub_video_get_palette): Likewise.
5316 (grub_video_get_driver_id): Likewise.
5317 * include/multiboot2.h: Resynced with spec.
5318 * loader/i386/multiboot.c: Moved from here ...
5319 * loader/multiboot.c: ... here. All users updated.
5320 (grub_multiboot_boot): Use platform-specific macros.
5321 * loader/i386/multiboot_elfxx.c: Moved from here ...
5322 * loader/multiboot_elfxx.c: ... here. All users updated.
5323 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
5324 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
5325 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
5327 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5329 Import gnulib argp module.
5331 * gnulib/argp-ba.c: New file.
5332 * gnulib/argp-eexst.c: Likewise.
5333 * gnulib/argp-fmtstream.c: Likewise.
5334 * gnulib/argp-fmtstream.h: Likewise.
5335 * gnulib/argp-fs-xinl.c: Likewise.
5336 * gnulib/argp-help.c: Likewise.
5337 * gnulib/argp-namefrob.h: Likewise.
5338 * gnulib/argp-parse.c: Likewise.
5339 * gnulib/argp-pin.c: Likewise.
5340 * gnulib/argp-pv.c: Likewise.
5341 * gnulib/argp-pvh.c: Likewise.
5342 * gnulib/argp-version-etc.c: Likewise.
5343 * gnulib/argp-version-etc.h: Likewise.
5344 * gnulib/argp-xinl.c: Likewise.
5345 * gnulib/argp.h: Likewise.
5347 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5349 * kern/device.c (grub_device_iterate): Clear errors after failed
5352 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5354 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
5355 returned by firmware.
5357 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5359 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
5360 compilation on coreboot and qemu
5362 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5364 * include/multiboot2.h: Resync with spec.
5366 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5368 Multiboot2 tag support
5370 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
5371 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
5372 Remove loader/multiboot_loader.c.
5373 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
5374 (grub_multiboot2_real_boot): Likewise.
5375 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
5376 (grub_get_multiboot_mmap_count): New proto.
5377 (grub_fill_multiboot_mmap): Likewise.
5378 (grub_multiboot_set_video_mode): Likewise.
5379 (grub_multiboot_set_console): Likewise.
5380 (grub_multiboot_load): Likewise.
5381 (grub_multiboot_load_elf): Likewise.
5382 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
5383 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
5384 * include/multiboot.h: Resynced with specification.
5385 * include/multiboot2.h: Resynced with specification.
5386 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
5387 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
5388 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
5389 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
5391 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
5392 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
5393 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
5395 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
5397 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
5398 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
5400 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
5401 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
5402 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
5404 * loader/i386/multiboot_mbi2.c: New file.
5406 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
5410 * Makefile.in (GNULIB_CFLAGS): New variable.
5411 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
5412 (grub_script_check_CFLAGS): New variable.
5413 * gnulib/alloca.h: Resync with gnulib.
5414 * gnulib/error.c: Likewise.
5415 * gnulib/error.h: Likewise.
5416 * gnulib/fnmatch.c: Likewise.
5417 * gnulib/fnmatch_loop.c: Likewise.
5418 * gnulib/getdelim.c: Likewise.
5419 * gnulib/getline.c: Likewise.
5420 * gnulib/getopt.c: Likewise.
5421 * gnulib/getopt1.c: Likewise.
5422 * gnulib/getopt_int.h: Likewise.
5423 * gnulib/gettext.h: Likewise.
5424 * gnulib/progname.c: Likewise.
5425 * gnulib/progname.h: Likewise.
5427 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
5429 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
5430 which is the case with --disabled-nls.
5432 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
5433 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
5434 * util/misc.c: Likewise.
5435 * util/mkisofs/mkisofs.c: Likewise.
5436 * util/mkisofs/mkisofs.h: Likewise.
5438 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
5440 Simplify Apple CC support.
5442 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
5443 Add 0 byte at the end not to have a symbol with empty target.
5444 * mmap/i386/pc/mmap_helper.S: Likewise.
5445 * genmk.rb: Ignore errors 2030 and 2050.
5446 * kern/i386/pc/startup.S: Use LOCAL when possible.
5448 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
5450 Testcase and the fix for final semicolon on cmdline.
5452 * tests/grub_script_final_semicolon.in: New testcase.
5453 * conf/tests.rmk: Rules for the new testcase.
5454 * script/parser.y: Grammar fix.
5456 2010-03-26 BVK Chaitanya <bvk@localhost>
5458 Blank lines testcase for GRUB script.
5460 * tests/grub_script_blanklines.in: New testcase.
5461 * conf/tests.rmk: Rules for the new testcase.
5463 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5467 * genmk.rb: Add -DGRUB_FILE to all C targets.
5468 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
5469 * include/grub/list.h: Likewise.
5470 * include/grub/misc.h: Likewise.
5471 * include/grub/mm.h: Likewise.
5472 * include/grub/test.h: Likewise.
5473 * kern/mm.c: Likewise.
5474 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
5476 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5478 Sunpc partitions support.
5480 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
5481 (grub_fstest_SOURCES): Likewise.
5482 (pkglib_MODULES): Add part_sunpc.mod.
5483 (part_sunpc_mod_SOURCES): New variable.
5484 (part_sunpc_mod_CFLAGS): Likewise.
5485 (part_sunpc_mod_LDFLAGS): Likewise.
5486 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
5487 * partmap/sunpc.c: New file.
5489 2010-03-26 BVK Chaitanya <bvk@localhost>
5491 For loop support to GRUB script.
5493 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
5494 (grub_script_create_cmdfor): New function prototype.
5495 (grub_script_execute_cmdfor): New function prototype.
5496 * script/execute.c (grub_script_execute_cmdfor): New function.
5497 * script/parser.y (command): New for command.
5498 (forcmd): New grammar rule.
5499 * script/script.c (grub_script_create_cmdfor): New function.
5500 * util/grub-script-check.c (grub_script_execute_cmdfor): New
5502 * tests/grub_script_for1.in: New testcase.
5503 * conf/tests.rmk: Rules for new testcase.
5505 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5509 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
5510 'partition' is NULL, grub_partition_get_start already does that.
5511 * commands/loadenv.c (check_blocklists): Likewise.
5512 (write_blocklists): Likewise.
5513 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
5514 (grub_fstest_SOURCES): Likewise.
5515 (pkglib_MODULES): Add part_bsd.mod.
5516 (part_bsd_mod_SOURCES): New variable.
5517 (part_bsd_mod_CFLAGS): Likewise.
5518 (part_bsd_mod_LDFLAGS): Likewise.
5519 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
5520 (grub_emu_SOURCES): Likewise.
5521 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5522 * include/grub/bsdlabel.h: New file.
5523 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
5525 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
5526 (grub_partition_map_list): New variable.
5527 (grub_partition_map_register): Inline.
5528 (grub_partition_map_unregister): Likewise.
5529 (FOR_PARTITION_MAPS): New macro.
5530 (grub_partition_map_iterate): Removed.
5531 (grub_partition_get_start): Handle nested partitions.
5532 * include/grub/msdos_partition.h: Remove bsd-related entries.
5533 (grub_pc_partition): Remove.
5534 * kern/disk.c (grub_disk_close): Free partition data.
5535 (grub_disk_adjust_range): Handle nested partitions.
5536 * kern/partition.c (grub_partition_map_probe): New function.
5537 (grub_partition_probe): Parse name to number, handle subpartitions.
5538 (get_partmap): New function.
5539 (grub_partition_iterate): Handle subpartitions.
5540 (grub_partition_get_name): Likewise.
5541 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
5542 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
5543 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
5544 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
5546 (acorn_partition_map_probe): Remove.
5547 (acorn_partition_map_get_name): Likewise.
5548 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
5550 Set 'index' to 0 since there can be only one partition entry per sector.
5551 (amiga_partition_map_probe): Remove.
5552 (amiga_partition_map_get_name): Likewise.
5553 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
5555 Set 'offset' and 'index' to real positions of partitions.
5556 (apple_partition_map_probe): Remove.
5557 (apple_partition_map_get_name): Likewise.
5558 * partmap/bsdlabel.c: New file.
5559 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
5561 Allocate 'data' so it can be correctly freed.
5562 Set 'index' to offset inside sector.
5563 (gpt_partition_map_probe): Remove.
5564 (gpt_partition_map_get_name): Likewise.
5565 * partmap/msdos.c (grub_partition_parse): Remove.
5566 (pc_partition_map_iterate): Don't force raw access.
5568 Make 'ext_offset' a local variable.
5569 (pc_partition_map_probe): Remove.
5570 (pc_partition_map_get_name): Remove.
5571 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
5573 (sun_partition_map_probe): Remove.
5574 (sun_partition_map_get_name): Likewise.
5575 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
5576 (grub_pcpart_type): Likewise.
5577 * util/hostdisk.c (open_device): Handle new numbering scheme.
5578 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
5579 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
5580 * util/grub-probe.c (probe_partmap): Handle nested paritions.
5581 * util/grub-install.in: Insert all subpartition modules.
5582 * util/ieee1275/grub-install.in: Likewise.
5584 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
5586 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
5589 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
5591 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
5593 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
5595 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
5596 match where 'make install' puts them.
5597 * util/i386/efi/grub-install.in: Likewise.
5599 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
5601 * .bzrignore: Add gentrigtables, grub-script-check,
5602 grub_script_check_init.c, grub_script_check_init.h, and
5605 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
5607 * kern/parser.c: Indented.
5609 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
5611 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
5613 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
5615 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
5616 alpha_mask_size == 0 case.
5618 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
5620 GRUB shell lexer and parser improvements.
5622 * conf/any-emu.rmk: Build rule updates.
5623 * conf/common.rmk: Likewise.
5624 * conf/i386-coreboot.rmk: Likewise.
5625 * conf/i386-efi.rmk: Likewise.
5626 * conf/i386-ieee1275.rmk: Likewise.
5627 * conf/i386-pc.rmk: Likewise.
5628 * conf/powerpc-ieee1275.rmk: Likewise.
5629 * conf/x86_64-efi.rmk: Likewise.
5631 * configure.ac: Configure check for flex.
5633 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
5635 (grub_lexer_param): Struct member updates.
5636 (grub_parser_param): Likewise.
5637 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
5638 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
5639 (grub_script_lexer_init): Prototype update.
5640 (grub_script_lexer_record_start): Likewise.
5641 (grub_script_lexer_record_stop): Likewise.
5642 (grub_script_lexer_yywrap): New function prototype.
5643 (grub_script_lexer_fini): Likewise.
5644 (grub_script_execute_argument_to_string): Removed by...
5645 (grub_script_execute_argument_to_argv): ...better version.
5647 * script/execute.c (ROUND_UPTO): New macro.
5648 (grub_script_execute_cmdline): Out of memory fixes.
5649 (grub_script_execute_menuentry): Likewise.
5650 (grub_script_execute_argument_to_string): Removed. Update all
5652 (grub_script_execute_argument_to_argv): ...better version.
5653 * script/function.c (grub_script_function_create): Use
5654 grub_script_execute_argument_to_argv instead of
5655 grub_script_execute_argument_to_string.
5657 * script/lexer.c (check_varstate): Removed.
5658 (check_textstate): Removed.
5659 (grub_script_lexer_record_start): Likewise.
5660 (grub_script_lexer_record_stop): Likewise.
5661 (recordchar): Replaced with...
5662 (grub_script_lexer_record): ...new function.
5663 (nextchar): Removed.
5664 (grub_script_lexer_init): Rewritten.
5665 (grub_script_yylex): Rewritten.
5666 (append_newline): New function.
5667 (grub_script_lexer_yywrap): New function.
5668 (grub_script_lexer_fini): New function.
5669 (grub_script_yyerror): Sets error flag.
5671 * script/yylex.l: New file.
5672 (grub_lexer_yyfree): Wrapper for flex yyffre.
5673 (grub_lexer_yyalloc): Likewise.
5674 (grub_lexer_yyrealloc): Likewise.
5675 * script/parser.y: Refactored.
5677 * script/script.c (grub_script_arg_add): Out of memory fixes.
5678 (grub_script_add_arglist): Likewise.
5679 (grub_script_create_cmdline): Likewise.
5680 (grub_script_create_cmdmenu): Likewise.
5681 (grub_script_add_cmd): Likewise.
5682 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
5683 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
5686 * tests/grub_script_echo1.in: New testcase.
5687 * tests/grub_script_vars1.in: New testcase.
5688 * tests/grub_script_echo_keywords.in: New testcase.
5690 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
5692 Remove some redundancy in build system.
5694 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
5695 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
5696 (TARGET_LDFLAGS): Add -nostdlib.
5697 (TARGET_IMG_LDFLAGS): Likewise.
5698 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
5699 anything since mmap isn't available.
5700 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
5702 (pkglib_MODULES): Remove reboot.mod.
5703 (reboot_mod_SOURCES): Removed.
5704 (reboot_mod_CFLAGS): Likewise.
5705 (reboot_mod_LDFLAGS): Likewise.
5706 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
5707 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
5708 (DEFSYMFILES): Add kernel_syms.lst.
5709 (kernel_img_HEADERS): Add common headers.
5710 (symlist.c): New target.
5711 (kernel_syms.lst): Likewise.
5712 (pkglib_MODULES): Add memdisk.mod.
5713 (memdisk_mod_SOURCES): New variable.
5714 (memdisk_mod_CFLAGS): Likewise.
5715 (memdisk_mod_LDFLAGS): Likewise.
5716 (pkglib_MODULES): Add reboot.mod.
5717 (reboot_mod_SOURCES): New variable.
5718 (reboot_mod_CFLAGS): Likewise.
5719 (reboot_mod_LDFLAGS): Likewise.
5720 (pkglib_MODULES): Add date.mod.
5721 (date_mod_SOURCES): New variable.
5722 (date_mod_CFLAGS): Likewise.
5723 (date_mod_LDFLAGS): Likewise.
5724 (pkglib_MODULES): Add datehook.mod.
5725 (datehook_mod_SOURCES): New variable.
5726 (datehook_mod_CFLAGS): Likewise.
5727 (datehook_mod_LDFLAGS): Likewise.
5728 (pkglib_MODULES): Add lsmmap.mod.
5729 (lsmmap_mod_SOURCES): New variable.
5730 (lsmmap_mod_CFLAGS): Likewise.
5731 (lsmmap_mod_LDFLAGS): Likewise.
5732 (pkglib_MODULES): Add boot.mod.
5733 (boot_mod_SOURCES): New variable.
5734 (boot_mod_CFLAGS): Likewise.
5735 (boot_mod_LDFLAGS): Likewise.
5736 * conf/i386-coreboot.rmk: Removed redundant parts.
5737 * conf/i386-ieee1275.rmk: Likewise.
5738 * conf/i386-pc.rmk: Likewise.
5739 * conf/mips-yeeloong.rmk: Likewise.
5740 * conf/mips.rmk: Likewise.
5741 * conf/powerpc-ieee1275.rmk: Likewise.
5742 * conf/sparc64-ieee1275.rmk: Likewise.
5743 * conf/x86_64-efi.rmk: Likewise.
5744 * conf/i386-coreboot.rmk: Moved qemu parts ..
5745 * conf/i386-qemu.rmk: ... here
5746 * conf/i386-efi.rmk: Moved common parts to...
5747 * conf/x86-efi.rmk: ... here.
5748 * conf/i386.rmk: Added modules common to all x86 variants.
5749 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
5750 * disk/memdisk.c: Remove grub/machine/kernel.h.
5751 * gensymlist.sh.in: Include symbol.h.
5752 * hook/datehook.c: Correct module name.
5753 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
5754 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
5755 * include/grub/i386/efi/serial.h: New file.
5756 * include/grub/x86_64/efi/serial.h: Likewise.
5757 * util/time.c: Likewise.
5758 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
5760 2010-03-14 Colin King <colin.king@ubuntu.com>
5761 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
5763 Shrink the pre-partition-table part of boot.img by eight bytes.
5765 * boot/i386/pc/boot.S (ERR): New macro.
5766 (chs_mode): Use ERR.
5767 (geometry_error): Likewise.
5768 (hd_probe_error): Remove. This is only used once, so we wrwite
5770 (read_error): Instead of printing read_error_string, just set up
5771 %si and fall through to ...
5772 (error_message): ... this new function, also used by ERR.
5774 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
5776 Speed up consecutive hostdisk operations on the same device.
5778 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
5779 (grub_util_biosdisk_open): Initialise disk->data.
5780 (struct linux_partition_cache): New structure.
5781 (linux_find_partition): Cache partition start positions; these are
5782 expensive to compute on every read and write.
5783 (open_device): Cache open file descriptor in disk->data, so that we
5784 don't have to reopen it and flush the buffer cache for consecutive
5785 operations on the same device.
5786 (grub_util_biosdisk_close): New function.
5787 (grub_util_biosdisk_dev): Set `close' member.
5789 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
5790 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
5791 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
5792 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
5793 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
5795 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
5797 Compile parts of grub-emu as modules.
5799 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
5800 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
5801 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
5802 (all-local): Add $(GRUB_EMU).
5803 (install-local): Install $(GRUB_EMU).
5804 (uninstall): Uninstall $(GRUB_EMU).
5805 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
5806 * kern/dl.c: Likewise.
5807 * commands/sleep.c: Not include machine/time.h.
5808 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
5809 (COMMON_CFLAGS): Likewise.
5810 (sbin_UTILITIES): Remove grub-emu.
5811 (grub_emu_SOURCES): Removed.
5812 (kernel_img_RELOCATABLE): New variable.
5813 (pkglib_PROGRAMS): Add kernel.img.
5814 (kernel_img_SOURCES): New variable
5815 (kernel_img_CFLAGS): Likewise.
5816 (kernel_img_LDFLAGS): Likewise.
5817 (TARGET_NO_STRIP): Likewise.
5818 (TARGET_NO_DYNAMIC_MODULES): Likewise.
5819 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
5820 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
5821 (grub-emu): New target.
5822 (GRUB_EMU): New variable.
5823 * configure.ac: Whitelist -emu as possible x86_64 architecture.
5824 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
5825 * loader/xnu.c: Likewise.
5826 * include/grub/pci.h: Likewise.
5827 * genemuinit.sh: New file.
5828 * genemuinitheader.sh: Likewise.
5829 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
5830 Support TARGET_NO_DYNAMIC_MODULES.
5831 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
5832 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
5833 * disk/loopback.c: Likewise.
5834 * font/font_cmd.c: Likewise.
5835 * partmap/acorn.c: Likewise.
5836 * partmap/amiga.c: Likewise.
5837 * partmap/apple.c: Likewise.
5838 * partmap/gpt.c: Likewise.
5839 * partmap/msdos.c: Likewise.
5840 * partmap/sun.c: Likewise.
5841 * parttool/msdospart.c: Likewise.
5842 * term/gfxterm.c: Likewise.
5843 * video/bitmap.c: Likewise.
5844 * video/readers/jpeg.c: Likewise.
5845 * video/readers/png.c: Likewise.
5846 * video/readers/tga.c: Likewise.
5847 * video/video.c: Likewise.
5848 * util/grub-emu.c (read_command_list): Removed.
5849 (main): Don't call util_init_nls.
5850 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
5851 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
5853 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
5855 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
5856 date.mod, datehook.mod.
5857 (datetime_mod_SOURCES): New variable.
5858 (datetime_mod_CFLAGS): Likewise.
5859 (datetime_mod_LDFLAGS): Likewise.
5860 (date_mod_SOURCES): Likewise.
5861 (date_mod_CFLAGS): Likewise.
5862 (date_mod_LDFLAGS): Likewise.
5863 (datehook_mod_SOURCES): Likewise.
5864 (datehook_mod_CFLAGS): Likewise.
5865 (datehook_mod_LDFLAGS): Likewise.
5866 * conf/sparc64-ieee1275.rmk: Likewise.
5867 * lib/ieee1275/datetime.c: New file.
5869 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
5871 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
5872 (ieee1275_fb_mod_SOURCES): New variable.
5873 (ieee1275_fb_mod_CFLAGS): Likewise.
5874 (ieee1275_fb_mod_LDFLAGS): Likewise.
5875 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
5877 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
5878 (HEAP_MAX_ADDR): Likewise.
5879 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
5881 Correct stop condition.
5882 (grub_ieee1275_devices_iterate): New function.
5883 * video/ieee1275.c: New file.
5885 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
5887 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
5889 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
5891 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
5892 SCRATCH_PAD_DISKBOOT as scratch.
5893 (bootit): Pass Openfirmware pointer in %o4.
5894 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
5896 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
5897 with util/grub-mkrawimage.c.
5898 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
5899 * include/grub/aout.h (AOUT_MID_SUN): New definition.
5900 (grub_aout_get_type) [GRUB_UTIL]: Removed.
5901 (grub_aout_load) [GRUB_UTIL]: Likewise.
5902 * include/grub/kernel.h (grub_modules_get_end): New proto.
5903 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
5904 (SCRATCH_PAD_BOOT): New definition.
5905 (SCRATCH_PAD_DISKBOOT): Likewise.
5906 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
5907 * include/grub/sparc64/ieee1275/ieee1275.h
5908 (grub_ieee1275_original_stack): New variable
5909 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
5911 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
5912 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
5913 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
5914 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
5915 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
5916 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
5917 (grub_platform_image_format_t): New type.
5918 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
5919 * kern/main.c (grub_modules_get_end)
5920 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
5921 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
5922 (codestart): Switch stacks.
5923 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
5925 (grub_heap_init): Use grub_modules_get_end.
5926 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
5928 * util/grub-mkrawimage.c (generate_image): Support sparc64.
5930 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
5932 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
5934 * util/grub-mkrescue.in: Base ISO UUID on UTC.
5936 2010-03-08 Matt Kraai <kraai@ftbfs.org>
5938 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
5941 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
5943 * genmoddep.awk: Output all missing symbols and not only first.
5945 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5947 * NEWS: Put the date of 1.98 release.
5949 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5951 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
5954 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5956 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
5957 completition in the middle of string.
5959 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5961 * util/grub-mkrescue.in: Use mktemp with explicit template.
5963 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5965 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
5967 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5969 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
5972 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5974 Fix FreeBSD compilation.
5976 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
5977 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
5979 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5981 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
5983 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5985 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
5987 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5989 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
5991 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
5993 Support relative image path in theme file.
5995 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
5996 (image_set_property): Handle theme_dir and relative path.
5998 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6000 * configure.ac: Alias amd64 to x86_64.
6002 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6004 * NEWS: mention multiboot on EFI.
6006 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6008 * kern/main.c (grub_load_modules): Handle errors from init functions of
6011 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6013 * normal/autofs.c (autoload_fs_module): Handle errors.
6015 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6017 Disable linux.mod on qemu-mips since it's not functional and leads
6018 to compilation failure.
6020 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
6021 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
6022 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
6023 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
6024 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
6025 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
6026 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
6027 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
6028 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
6029 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
6030 Reported by: BVK Chaitanya
6032 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
6034 * INSTALL: Add gettext as a dependency and add qemu to a new section
6035 "Prerequisites for make-check".
6037 2010-03-04 Christian Franke <franke@computer.org>
6039 * util/grub-pe2elf.c: Add missing include "progname.h".
6041 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6043 * normal/crypto.c (read_crypto_list): Fix a typo.
6044 Reported by: Seth Goldberg.
6046 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6048 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
6049 Reported by: Seth Goldberg.
6051 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6053 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
6056 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6058 * genmk.rb: Remove terminal*.lst in make clean.
6059 Reported by: Seth Goldberg.
6061 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6063 * util/i386/efi/grub-install.in: Copy gettext files.
6065 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6067 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
6069 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6071 Wait for user entry basing on presence of output rather than on errors.
6073 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
6074 (grub_install_newline_hook): Likewise.
6075 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
6076 * normal/menu.c (show_menu): Check line_counter to determine presence
6078 * normal/term.c (grub_normal_line_counter): New variable.
6079 (grub_normal_get_line_counter): New function.
6080 (grub_install_newline_hook): Likewise.
6082 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6084 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
6086 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6088 * configure.ac: Update version to 1.98.
6090 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6092 * util/grub.d/10_linux.in (linux_entry): Don't default to
6093 gfxpayload=keep if Linux doesn't support video handover.
6095 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6097 Don't compile video modules on yeeloong since video subsystem is part
6100 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
6101 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
6102 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
6103 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
6104 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
6105 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
6106 * include/grub/bitmap_scale.h: Likewise.
6107 * include/grub/bufio.h: Likewise.
6108 * include/grub/font.h: Likewise.
6109 * include/grub/gfxterm.h: Likewise.
6110 * include/grub/video.h: Likewise.
6111 * include/grub/vbe.h: Don't include video_fb.h.
6112 * video/i386/pc/vbe.c: Include video_fb.h.
6113 * commands/i386/pc/vbetest.c: Include video.h.
6115 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
6117 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
6118 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
6119 default entry if GRUB_SAVEDEFAULT=true. This allows using
6120 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
6121 saving a new default on every boot.
6123 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6125 * normal/crypto.c (read_crypto_list): Fix a memory leak.
6126 * normal/term.c (read_terminal_list): Likewise.
6127 * normal/main.c (grub_normal_init_page): Likewise.
6128 (grub_normal_read_line_real): Likewise.
6130 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6132 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
6134 Reported by: Seth Goldberg.
6136 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
6138 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
6139 duplicate declaration of `start'.
6141 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
6143 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
6145 Reported by: Georgy Buranov
6147 2010-02-20 Carles Pina i Estany <carles@pina.cat>
6149 * util/grub-mkrawimage.c (usage): Change string formatting to
6152 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
6154 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
6157 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
6159 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
6160 Reported by: Michael Suchanek.
6162 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
6164 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
6165 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
6167 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
6169 Remove any reference to non-free fonts.
6171 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
6172 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
6173 uses non-free components.
6174 * font/font.c (grub_font_get_name): Remove example name.
6175 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
6176 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
6177 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
6178 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
6180 2010-02-16 Georgy Buranov <gburanov@gmail.com>
6182 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
6184 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
6186 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
6188 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
6190 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
6192 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
6194 * gensymlist.sh.in: Use TARGET_CC instead of CC.
6196 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6198 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
6199 * docs/grub.texi (Command-line and menu entry commands): Document play
6202 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6204 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
6205 parse arguments as inline tempo and notes. Move code for playing notes
6207 (play): ... new function.
6209 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6211 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
6212 grub_uint16_t instead of short.
6213 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
6214 disk from little endian to cpu endianness.
6216 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6218 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
6219 GRUB_TICKS_PER_SECOND instead of 120.
6221 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
6223 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
6224 escape sequence after \e.
6226 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
6228 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
6229 non-ASCII characters.
6231 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
6233 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
6234 set root in single quotes to prevent \, from being unescaped.
6236 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
6238 Prevent unknown commands from stopping menuentry execution.
6240 * script/execute.c (grub_script_execute_cmdline): Print error after
6243 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
6245 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
6246 Reported by: Pavel Pisa.
6248 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6250 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
6252 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6254 Merge grub_ieee1275_map_physical into grub_map and rename to
6257 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
6258 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
6260 * kern/ieee1275/openfw.c (grub_map): Rename to ...
6261 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
6263 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
6265 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6267 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
6268 opening and not after.
6270 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6272 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
6275 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6277 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
6278 (alloc_phys): Use ALIGN_UP instead of align_addr.
6280 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6282 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
6284 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6286 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
6288 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6290 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
6293 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6295 Fix over-4GiB seek on sparc64.
6297 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
6298 Replace pos_i and pos_lo with pos. All users updated.
6299 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
6301 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
6303 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
6306 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6308 * util/grub-mkrawimage.c (main): Call set_program_name.
6310 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6312 Properly align 64-bit targets.
6314 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
6315 (generate_image): Use ALIGN_ADDR.
6317 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6319 Properly create cross-endian images.
6321 * include/grub/types.h (grub_host_to_target_addr): New macro
6322 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
6324 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6326 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
6328 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6330 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
6332 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
6333 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
6334 (grub_linux_boot): Divide by 64K when on VESA.
6336 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6338 Support GRUB_GFXPAYLOAD_LINUX.
6340 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
6341 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
6343 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6345 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
6346 to show messages instead of discarding them.
6347 Process errors after executing command and not before. Keep old method
6350 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6352 * configure.ac: Check for ft2build.h.
6354 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6356 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
6358 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6360 * genkernsyms.sh.in: Use TARGET_CC.
6362 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
6366 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6368 * include/grub/multiboot2.h: Remove leftover file.
6369 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
6370 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6372 2010-02-07 Yves Blusseau <blusseau@zetam.org>
6374 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
6376 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6378 Fix warnings in grub-emu when compiling with maximum warning options.
6380 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
6381 (grub_arch_modules_addr): Return 0 and not NULL.
6382 * util/misc.c (ENABLE_RELOCATABLE): New definition.
6383 (xstrdup): Use newstr instead of dup.
6384 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
6385 of disk to dsk to avoid shadowing.
6386 (find_free_slot): Fix prototype.
6387 * util/getroot.c (grub_util_is_dmraid): Make static.
6388 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
6389 Add missing prototype.
6390 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
6392 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6394 * loader/i386/linux.c (grub_linux_setup_video): Handle error
6397 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6399 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
6402 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6404 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
6405 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
6406 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
6407 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
6408 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
6409 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
6411 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6413 * include/grub/err.h (grub_err_printf): Don't export.
6415 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6417 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
6419 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6421 * include/grub/i18n.h (grub_gettext_dummy): Removed.
6422 * kern/misc.c (grub_gettext_dummy): Make static.
6424 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6426 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
6428 * kern/term.c (grub_putchar): Likewise.
6430 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6432 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
6433 buggy hook call and memory leak.
6435 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6437 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
6439 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6441 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
6443 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6445 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
6447 Return grub_errno on allocation error.
6449 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6451 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
6453 2010-02-06 Yves Blusseau <blusseau@zetam.org>
6455 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
6456 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
6458 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6460 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
6462 (grub_pxefs_open): Likewise.
6464 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
6466 * util/grub.d/10_hurd.in: Add --class information to menuentries.
6467 * util/grub.d/10_kfreebsd.in: Likewise.
6468 * util/grub.d/10_linux.in: Likewise.
6470 2010-02-06 Colin D Bennett <colin@gibibit.com>
6472 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
6473 (gfxmenu_mod_SOURCES): New variable.
6474 (gfxmenu_mod_CFLAGS): Likewise.
6475 (gfxmenu_mod_LDFLAGS): Likewise.
6476 * include/grub/term.h (grub_term_set_current_output): Declare
6478 * docs/gfxmenu-theme-example.txt: New file.
6479 * gfxmenu/gfxmenu.c: Likewise.
6480 * gfxmenu/gui_box.c: Likewise.
6481 * gfxmenu/gui_canvas.c: Likewise.
6482 * gfxmenu/gui_circular_progress.c: Likewise.
6483 * gfxmenu/gui_image.c: Likewise.
6484 * gfxmenu/gui_label.c: Likewise.
6485 * gfxmenu/gui_list.c: Likewise.
6486 * gfxmenu/gui_progress_bar.c: Likewise.
6487 * gfxmenu/gui_string_util.c: Likewise.
6488 * gfxmenu/gui_util.c: Likewise.
6489 * gfxmenu/icon_manager.c: Likewise.
6490 * gfxmenu/model.c: Likewise.
6491 * gfxmenu/named_colors.c: Likewise.
6492 * gfxmenu/theme_loader.c: Likewise.
6493 * gfxmenu/view.c: Likewise.
6494 * gfxmenu/widget-box.c: Likewise.
6495 * include/grub/gfxmenu_model.h: Likewise.
6496 * include/grub/gfxmenu_view.h: Likewise.
6497 * include/grub/gfxwidgets.h: Likewise.
6498 * include/grub/gui.h: Likewise.
6499 * include/grub/gui_string_util.h: Likewise.
6500 * include/grub/icon_manager.h: Likewise.
6502 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6504 Agglomerate scrolling in gfxterm.
6506 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
6507 (grub_virtual_screen_setup): Initialise 'total_screen'.
6508 (write_char): Split to ...
6509 (paint_char): ... this ...
6510 (write_char): ... and this.
6511 (paint_char): Handle delayed scrolling.
6512 (draw_cursor): Likewise.
6513 (scroll_up): Split to ...
6514 (real_scroll): ... this ...
6515 (scroll_up): ... and this.
6516 (real_scroll): Handle multi-line scroll and draw below-the-bottom
6518 (grub_gfxterm_refresh): Call real_scroll.
6520 2010-02-06 Colin D Bennett <colin@gibibit.com>
6522 * include/grub/misc.h (grub_iscntrl): New inline function.
6523 (grub_isalnum): Likewise.
6524 (grub_strtol): Likewise.
6526 2010-02-06 Colin D Bennett <colin@gibibit.com>
6528 * normal/menu_text.c (get_entry_number): Move from here ...
6529 * normal/menu.c (get_entry_number): ... moved here.
6530 * include/grub/menu.h (grub_menu_get_default_entry_index):
6532 * normal/menu.c (grub_menu_get_default_entry_index): New function.
6533 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
6534 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
6535 (grub_menu_viewer_should_return): Likewise.
6536 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
6537 * normal/menu_text.c (run_menu): Enable menu switching.
6538 * normal/menu_viewer.c (should_return): New variable.
6539 (menu_viewer_changed): Likewise.
6540 (grub_menu_viewer_show_menu): Handle menu viewer changes.
6541 (grub_menu_viewer_should_return): New function.
6542 (menuviewer_write_hook): Likewise.
6543 (grub_menu_viewer_init): Likewise.
6545 2010-02-06 Colin D Bennet <colin@gibibit.com>
6546 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6548 Support for gfxterm in a window.
6550 * include/grub/gfxterm.h: New file.
6551 * include/grub/video.h (struct grub_video_rect): New declaration.
6552 (grub_video_rect_t): Likewise.
6553 * term/gfxterm.c (struct grub_gfxterm_window): New type.
6554 (refcount): New variable.
6555 (render_target): Likewise.
6557 (repaint_callback): Likewise.
6558 (grub_virtual_screen_setup): Use 'render_target'.
6559 (init_window): New function.
6560 (grub_gfxterm_init_window): Likewise.
6561 (grub_gfxterm_init): Check reference counter.
6563 (destroy_window): New function.
6564 (grub_gfxterm_destroy_window): Likewise.
6565 (grub_gfxterm_fini): Check reference counter.
6567 (redraw_screen_rect): Restore viewport.
6568 Use 'render_target' and 'window'.
6569 Call 'repaint_callback'.
6570 (write_char): Use 'render_target'.
6571 (draw_cursor): Likewise.
6572 (scroll_up): Restore viewport.
6573 Use 'render_target' and 'window'.
6574 Call 'repaint_callback'.
6575 (grub_gfxterm_cls): Likewise.
6576 (grub_gfxterm_refresh): Use 'window'.
6577 (grub_gfxterm_set_repaint_callback): New function.
6578 (grub_gfxterm_background_image_cmd): Use 'window'.
6579 (grub_gfxterm_get_term): New function.
6580 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
6582 2010-02-06 Colin D Bennett <colin@gibibit.com>
6584 Bitmap scaling support.
6586 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
6587 (bitmap_scale_mod_SOURCES): New variable.
6588 (bitmap_scale_mod_CFLAGS): Likewise.
6589 (bitmap_scale_mod_LDFLAGS): Likewise.
6590 * include/grub/bitmap_scale.h: New file.
6591 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
6592 (background_image_cmd_options): New variable.
6593 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
6594 (cmd): Rename and change type to ...
6595 (background_image_cmd_handle): ... this. All users updated.
6596 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
6597 * video/bitmap_scale.c: New file.
6599 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6603 * Makefile.in (LIBSDL): New variable.
6604 (enable_grub_emu_sdl): Likewise.
6605 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
6606 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
6607 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
6608 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
6609 * util/sdl.c: New file.
6611 2010-02-06 Colin D Bennett <colin@gibibit.com>
6612 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6614 Double buffering support.
6616 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
6617 * include/grub/video.h: Update comment.
6618 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
6620 (grub_video_fb_doublebuf_blit_init): New prototype.
6621 * term/gfxterm.c (scroll_up): Support double buffering.
6622 (grub_gfxterm_refresh): Likewise.
6623 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
6624 (grub_video_fb_doublebuf_blit_init): Likewise.
6625 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
6626 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
6627 'displayed_page', 'render_page' and 'update_screen'.
6628 (grub_video_vbe_fini): Free offscreen buffer.
6629 (doublebuf_pageflipping_commit): New function.
6630 (doublebuf_pageflipping_update_screen): Likewise.
6631 (doublebuf_pageflipping_init): Likewise.
6632 (double_buffering_init): Likewise.
6633 (grub_video_vbe_setup): Enable doublebuffering.
6634 (grub_video_vbe_swap_buffers): Implement.
6635 (grub_video_vbe_set_active_render_target): Handle double buffering.
6636 (grub_video_vbe_get_active_render_target): Likewise.
6637 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
6638 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
6639 (grub_video_vbe_enable_double_buffering): Likewise.
6640 (grub_video_vbe_swap_buffers): Use update_screen.
6641 (grub_video_set_mode): Use double buffering.
6643 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
6645 * maintainance/gentrigtables.py: Remove.
6646 * lib/trig.c: Likewise.
6648 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
6650 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
6652 (trigtables.c): New rule.
6653 (gentrigtables): Likewise.
6654 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
6656 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
6658 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
6661 2010-02-06 Colin D Bennet <colin@gibibit.com>
6663 Trigonometry support.
6665 * include/grub/trig.h: New file.
6666 * lib/trig.c: Likewise.
6667 * maintainance/gentrigtables.py: Likewise.
6668 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
6669 (trig_mod_SOURCES): New variable.
6670 (trig_mod_CFLAGS): Likewise.
6671 (trig_mod_LDFLAGS): Likewise.
6673 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6675 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
6678 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6680 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
6683 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6685 * util/hostdisk.c (open_device): Don't use partition device when reading
6686 before the partition.
6687 (grub_util_biosdisk_read): Don't read from partition and before the
6688 partition in single operation.
6689 (grub_util_biosdisk_write): Don't write to partition and before the
6690 partition in single operation.
6692 2010-02-03 Torsten Landschoff <torsten@debian.org>
6694 * kern/disk.c (grub_disk_read): Fix offset computation when reading
6697 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6699 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
6701 (grub_biosdisk_write): Refuse to write to CDROM.
6703 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6705 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
6707 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6709 * font/font.c (find_glyph): Check that bmp_idx is available before
6711 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
6712 with (font == NULL).
6714 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
6716 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
6718 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
6720 * include/grub/script_sh.h (sourcecode): Add const qualifier.
6721 * util/grub-script-check.c (getline): Fix empty lines case.
6723 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
6725 * Makefile.in (check): Exit with fail status when one of the tests
6727 * tests/example_functional_test.c (example_test): Fix reversed assert.
6728 * tests/example_unit_test.c (example_test): Likewise.
6730 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
6732 * util/grub.d/10_linux.in: This script does not use any of the
6733 contents of gettext.sh, only the external command `gettext', so stop
6734 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
6735 the same prefix as GRUB.)
6736 * util/grub.d/10_kfreebsd.in: Likewise.
6738 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6740 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
6743 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6745 * kern/disk.c (grub_disk_read): Fix offset computation when reading
6748 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6750 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
6751 having a 4KiB and not 32KiB buffer size.
6753 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
6755 * util/hostfs.c: Include `<errno.h>'.
6756 (grub_hostfs_read): Handle errors from fseeko() and fread().
6758 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
6760 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
6761 loop when using read hooks on files whose size isn't sector-aligned.
6763 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
6765 Remove unused parameter.
6767 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
6768 (grub_iso9660_open): Remove initialization of `data->length'.
6770 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
6772 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
6775 2010-01-27 Carles Pina i Estany <carles@pina.cat>
6777 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
6778 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
6780 2010-01-26 Carles Pina i Estany <carles@pina.cat>
6782 * util/bin2h.c (usage): Fix warning (space after backslash).
6784 2010-01-26 Carles Pina i Estany <carles@pina.cat>
6786 * font/font.c: Include `grub/fontformat.h.
6787 Remove font file format constants.
6788 (grub_font_load): Use the new macros.
6789 * include/grub/fontformat.h: New file.
6790 * util/grub-mkfont.c: Include `grub/fontformat.c'.
6791 (write_font_pf2): Use the new macros.
6793 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
6795 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
6798 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
6800 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
6802 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
6803 (_start): Macroify `0x7F'.
6805 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
6806 (make_install_device): Use "(pxe)" as fallback prefix when booting
6809 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6811 * configure.ac: Reset LIBS after check for libgcc symbols.
6813 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
6815 * util/hostdisk.c (open_device): Add trailing newline to debug
6818 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
6820 * configure.ac: Check for `limits.h'.
6821 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
6823 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
6825 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
6826 capitalize error strings.
6828 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
6830 * util/grub.d/10_hurd.in: Add a recovery mode.
6832 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6834 * configure.ac: Check for libgcc symbols with -nostdlib.
6836 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
6838 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
6840 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6842 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
6843 stack since heap may be unavailable at that point.
6844 (grub_ofconsole_gotoxy): Likewise.
6846 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6848 * configure.ac: Check for _restgpr_14_x.
6849 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
6850 and _savegpr_* prototypes.
6852 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
6854 Use generic grub_reboot() for i386-efi.
6856 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
6857 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
6858 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
6860 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6862 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
6863 presence of "prefix" variable as it breaks when normal.mod is
6866 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6868 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
6869 stack since heap is unavailable at that point.
6871 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6873 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
6874 (grub_freebsd_bootinfo): Rewritten.
6875 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
6877 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6879 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
6881 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
6883 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
6886 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
6888 * util/misc.c (make_system_path_relative_to_its_root): Change the work
6889 around for handling "/" to the correct fix. Fix a memory leak. Use
6890 xstrdup instead of strdup.
6892 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6894 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
6896 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6898 Optimise glyph lookup by Basic Multilingual Plane lookup array.
6900 * font/font.c (struct grub_font): New member 'bmp_idx'.
6901 (font_init): Initialise 'bmp_idx'.
6902 (load_font_index): Fill 'bmp_idx'.
6903 (find_glyph): Make inline. Use bmp_idx for BMP characters.
6905 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6907 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
6910 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6912 Move context handling out of the kernel.
6914 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
6915 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
6916 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
6917 * conf/i386-efi.rmk: Likewise.
6918 * conf/i386-ieee1275.rmk: Likewise.
6919 * conf/i386-pc.rmk: Likewise.
6920 * conf/powerpc-ieee1275.rmk: Likewise.
6921 * conf/sparc64-ieee1275.rmk: Likewise.
6922 * conf/x86_64-efi.rmk: Likewise.
6923 * include/grub/env.h: Include grub/menu.h.
6924 (grub_env_var_type): Removed.
6925 (grub_env_var): Replaced field 'type' with 'global'.
6926 (grub_env_find): New prototype.
6927 (grub_env_context_open): Remove EXPORT_FUNC.
6928 (grub_env_context_close): Likewise.
6929 (grub_env_export): Likewise.
6930 (grub_env_set_data_slot): Removed.
6931 (grub_env_get_data_slot): Likewise.
6932 (grub_env_unset_data_slot): Likewise.
6933 (grub_env_unset_menu): New prototype.
6934 (grub_env_set_menu): Likewise.
6935 (grub_env_get_menu): Likewise.
6936 * include/grub/env_private.h: New file.
6937 * include/grub/normal.h (grub_context_init): New prototype.
6938 (grub_context_fini): Likewise.
6939 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
6940 * normal/context.c (grub_cmd_export): ... to here.
6941 * kern/env.c: Include env_private.h.
6942 (HASHSZ): Moved to include/grub/env_private.h.
6943 (grub_env_context): Likewise.
6944 (grub_env_sorted_var): Likewise.
6945 (current_context): Renamed from this ...
6946 (grub_current_context): ...to this. 'static' removed. All users updated.
6947 (grub_env_find): Removed 'static'.
6948 (grub_env_context_open): Moved to normal/context.c.
6949 (grub_env_context_close): Likewise.
6950 (grub_env_export): Likewise.
6951 (mangle_data_slot_name): Removed.
6952 (grub_env_set_data_slot): Likewise.
6953 (grub_env_get_data_slot): Likewise.
6954 (grub_env_unset_data_slot): Likewise.
6955 * kern/main.c (grub_set_root_dev): Don't export root.
6956 It will be done later.
6957 (grub_main): Don't export prefix.
6958 It will be done later.
6959 * normal/context.c: New file.
6960 * normal/main.c (free_menu): Use grub_env_unset_menu.
6961 (grub_normal_add_menu_entry): Use grub_env_get_menu.
6962 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
6963 (GRUB_MOD_INIT(normal)): Call grub_context_init.
6964 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
6966 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6970 * commands/setpci.c: New file.
6971 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
6972 (setpci_mod_SOURCES): New variable.
6973 (setpci_mod_CFLAGS): Likewise.
6974 (setpci_mod_LDFLAGS): Likewise.
6976 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6978 Byte-addressable PCI configuration space.
6980 * bus/pci.c (grub_pci_make_address): Use byte address instead of
6982 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
6983 GRUB_PCI_REG_CACHELINE.
6984 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
6985 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
6986 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
6987 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
6988 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
6989 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
6990 grub_pci_make_address.
6991 (lock_rom_area): Likewise.
6992 * commands/lspci.c (grub_lspci_iter): Use macroses
6993 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
6994 of grub_pci_make_address.
6995 * disk/ata.c (grub_ata_pciinit): Likewise.
6996 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
6997 (GRUB_PCI_REG_VENDOR): Likewise.
6998 (GRUB_PCI_REG_DEVICE): Likewise.
6999 (GRUB_PCI_REG_COMMAND): Likewise.
7000 (GRUB_PCI_REG_STATUS): Likewise.
7001 (GRUB_PCI_REG_REVISION): Likewise.
7002 (GRUB_PCI_REG_CLASS): Likewise.
7003 (GRUB_PCI_REG_CACHELINE): Likewise.
7004 (GRUB_PCI_REG_LAT_TIMER): Likewise.
7005 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
7006 (GRUB_PCI_REG_BIST): Likewise.
7007 (GRUB_PCI_REG_ADDRESSES): Likewise.
7008 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
7009 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
7010 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
7011 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
7012 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
7013 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
7014 (GRUB_PCI_REG_CIS_POINTER): Likewise.
7015 (GRUB_PCI_REG_SUBVENDOR): Likewise.
7016 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
7017 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
7018 (GRUB_PCI_REG_CAP_POINTER): Likewise.
7019 (GRUB_PCI_REG_IRQ_LINE): Likewise.
7020 (GRUB_PCI_REG_IRQ_PIN): Likewise.
7021 (GRUB_PCI_REG_MIN_GNT): Likewise.
7022 (GRUB_PCI_REG_MAX_LAT): Likewise.
7023 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
7024 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
7025 * video/efi_uga.c (find_framebuf): Likewise.
7026 * video/sm712.c (grub_video_sm712_setup): Likewise.
7027 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
7030 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
7032 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
7033 can be reliably determined to be supported.
7035 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
7037 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
7038 that VESA is supported.
7039 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
7042 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7044 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
7046 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
7048 * util/misc.c (make_system_path_relative_to_its_root): Work around
7049 special-casing of "/", as previous incarnation of this routine did.
7051 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7053 Fix any-emu compilation.
7055 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
7056 * grub_bin2h_SOURCES: New variable.
7058 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
7060 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
7062 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
7064 * util/grub.d/00_header.in: Fix handling of locale_dir.
7066 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7068 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
7069 as possible unifont location (Gentoo).
7070 Reported by: Alexander Brüning
7072 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7074 Don't try to generate lists for kernel.img.
7076 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
7077 (pkglib_MODULES): Remove kernel.img.
7078 (kernel_img_EXPORTS): Removed.
7079 (kernel_img_RELOCATABLE): New variable.
7080 * conf/x86_64-efi.rmk: Likewise.
7081 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
7083 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7085 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
7086 grub_xasprintf or grub_snprintf.
7087 (grub_vsprintf): Likewise.
7088 (grub_snprintf): New proto.
7089 (grub_vsnprintf): Likewise.
7090 (grub_xasprintf): Likewise.
7091 (grub_xvasprintf): Likewise.
7092 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
7093 (grub_sprintf): Removed.
7094 (grub_vsnprintf): New function.
7095 (grub_snprintf): Likewise.
7096 (grub_xvasprintf): Likewise.
7097 (grub_xasprintf): Likewise.
7098 (grub_vsprintf): Renamed to ...
7099 (grub_vsnprintf_real): ...this. New argument max_len.
7101 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
7103 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
7104 fix grub-script-check warning.
7106 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7108 * include/grub/font.h (grub_font_load): Fix prototype.
7110 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7112 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
7114 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7116 * include/grub/x86_64/at_keyboard.h: New file.
7118 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7120 * loader/mips/linux.c: Include missing grub/i18n.h.
7122 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
7124 * normal/menu.c (notify_execution_failure): Clarify error message.
7126 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
7128 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
7129 return value (and revert all return statements). Update users.
7131 2010-01-20 Dan Merillat <debian@dan.merillat.org>
7133 * kern/device.c (grub_device_iterate): Allocate new part_ent
7134 structure based on sizeof (*p) rather than sizeof (p->next), to
7135 account for structure padding.
7137 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
7138 disk is NULL, which might happen for LVM physical volumes with no
7141 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
7143 * loader/mips/linux.c (grub_cmd_initrd)
7144 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
7146 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
7148 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
7149 (grub_video_video_init, grub_video_bitmap_init)
7150 (grub_font_manager_init, grub_term_gfxterm_init)
7151 (grub_at_keyboard_init): New extern declarations.
7152 (grub_machine_init): Initialize gfxterm and at_keyboard.
7154 * kern/main.c (grub_main): Revert grub_printf delay kludge.
7156 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
7157 `gfxterm.mod' into core image.
7159 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
7160 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
7161 (kernel_img_FORMAT): Copy to ...
7163 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
7164 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
7165 (kernel_img_FORMAT): ... here, and ...
7167 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
7168 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
7169 (kernel_img_FORMAT): ... here.
7171 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
7172 and input (at_keyboard) terminals in kernel.
7173 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
7175 (pkglib_MODULES): Remove `pci.mod'.
7176 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
7177 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
7178 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
7179 (at_keyboard_mod_LDFLAGS): Remove variables.
7181 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
7183 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
7185 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
7187 * include/grub/mips/libgcc.h: Only export symbols for functions
7188 that libgcc provides.
7190 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
7194 * bus/bonito.c: New file.
7195 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
7196 GRUB_PCI_NUM_DEVICES.
7197 * term/i386/pc/serial.c: Move to ...
7198 * term/serial.c: ... here. All users updated.
7199 * util/i386/pc/grub-mkimage.c: Move to ...
7200 * util/grub-mkrawimage.c: ... here. All users updated.
7201 * term/i386/pc/at_keyboard.c: Move to ...
7202 * term/at_keyboard.c: ... here. All users updated.
7203 * conf/mips-qemu-mips.rmk: New file.
7204 * conf/mips-yeeloong.rmk: Likewise.
7205 * conf/mips.rmk: Likewise.
7206 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
7208 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
7210 (grub_ata_pciinit): Support CS5536.
7211 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
7212 * font/font_cmd.c (loadfont_command): Open file before passing it to
7214 (pseudo_file_read): New function.
7215 (pseudo_file_close): Likewise.
7216 (pseudo_fs): New structure.
7217 (load_font_module): New function.
7218 (GRUB_MOD_INIT(font_manager)): Load embedded font.
7219 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
7220 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
7221 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
7222 * include/grub/i386/at_keyboard.h: Split into ...
7223 * include/grub/at_keyboard.h: ... this ...
7224 * include/grub/i386/at_keyboard.h: ... and this.
7225 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
7227 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
7229 (grub_elf64_size): Likewise.
7230 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
7232 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
7233 * include/grub/i386/coreboot/serial.h: Rewritten.
7234 * include/grub/i386/ieee1275/serial.h: Include
7235 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
7236 * include/grub/i386/pc/serial.h: Moved from here ...
7237 * include/grub/serial.h: ... to here. All users updated.
7238 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
7239 (GRUB_PCI_NUM_BUS): Likewise.
7240 (GRUB_PCI_NUM_DEVICES): Likewise.
7241 (grub_pci_device_map_range): Add missing volatile keyword.
7242 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
7243 * include/grub/mips/at_keyboard.h: New file.
7244 * include/grub/mips/cache.h: Likewise.
7245 * include/grub/mips/io.h: Likewise.
7246 * include/grub/mips/kernel.h: Likewise.
7247 * include/grub/mips/libgcc.h: Likewise.
7248 * include/grub/mips/pci.h: Likewise.
7249 * include/grub/mips/qemu-mips/boot.h: Likewise.
7250 * include/grub/mips/qemu-mips/kernel.h: Likewise.
7251 * include/grub/mips/qemu-mips/loader.h: Likewise.
7252 * include/grub/mips/qemu-mips/memory.h: Likewise.
7253 * include/grub/mips/qemu-mips/serial.h: Likewise.
7254 * include/grub/mips/qemu-mips/time.h: Likewise.
7255 * include/grub/mips/relocator.h: Likewise.
7256 * include/grub/mips/time.h: Likewise.
7257 * include/grub/mips/types.h: Likewise.
7258 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
7259 * include/grub/mips/yeeloong/boot.h: Likewise.
7260 * include/grub/mips/yeeloong/kernel.h: Likewise.
7261 * include/grub/mips/yeeloong/loader.h: Likewise.
7262 * include/grub/mips/yeeloong/memory.h: Likewise.
7263 * include/grub/mips/yeeloong/pci.h: Likewise.
7264 * include/grub/mips/yeeloong/serial.h: Likewise.
7265 * include/grub/mips/yeeloong/time.h: Likewise.
7266 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
7267 * kern/elf.c (grub_elf32_size): New parameter. All users
7269 (grub_elf64_size): Likewise.
7270 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
7271 Load modules before saying "Welcome to GRUB!".
7272 Call grub_refresh after saying "Welcome to GRUB!".
7273 * kern/mips/cache.S: New file.
7274 * kern/mips/cache_flush.S: Likewise.
7275 * kern/mips/dl.c: Likewise.
7276 * kern/mips/init.c: Likewise.
7277 * kern/mips/qemu-mips/init.c: Likewise.
7278 * kern/mips/startup.S: Likewise.
7279 * kern/mips/yeeloong/init.c: Likewise.
7280 * kern/term.c (grub_putcode): Handle NULL terminal.
7281 (grub_getcharwidth): Likewise.
7282 (grub_getkey): Likewise.
7283 (grub_checkkey): Likewise.
7284 (grub_getkeystatus): Likewise.
7285 (grub_getxy): Likewise.
7286 (grub_getwh): Likewise.
7287 (grub_gotoxy): Likewise.
7288 (grub_cls): Likewise.
7289 (grub_setcolorstate): Likewise.
7290 (grub_setcolor): Likewise.
7291 (grub_getcolor): Likewise.
7292 (grub_refresh): Likewise.
7293 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
7294 (write_jump): Add hatch nop.
7295 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
7296 * lib/mips/setjmp.S: New file.
7297 * loader/mips/linux.c: Likewise.
7298 * term/i386/pc/at_keyboard.c: Move from here ...
7299 * term/at_keyboard.c: ... to here.
7300 * term/i386/pc/serial.c: Moved from here ...
7301 * term/serial.c: ... to here. All users updated.
7302 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
7303 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
7304 (serial_translate_key_sequence): Avoid deadlock.
7305 (grub_serial_getkey): Handle backspace.
7306 (grub_serial_putchar): Fix newline handling.
7307 * util/i386/pc/grub-mkimage.c: Move from here ...
7308 * util/grub-mkrawimage.c: ... to here. All users updated.
7309 (generate_image): New parameters 'font_path' and 'format'.
7310 Support embedding font.
7311 Use grub_host_to_target* instead of grub_cpu_to_le*.
7312 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
7313 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
7314 (options): New option "--font".
7316 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
7317 (main): Handle "--font".
7318 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
7319 (grub_virtual_screen_setup): Set bg_color_display.
7320 (redraw_screen_rect): Use bg_color_display instead of incorrect
7322 (grub_gfxterm_cls): Likewise.
7323 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
7324 Support embedding config file.
7325 (add_segments): Likewise.
7326 (options): New option "--config".
7327 (main): Handle "--config".
7328 * video/sm712.c: New file.
7330 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7332 Fix parallel builds.
7334 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
7335 font.c depend on ascii.h).
7337 2010-01-12 Carles Pina i Estany <carles@pina.cat>
7339 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
7341 2010-01-11 Carles Pina i Estany <carles@pina.cat>
7343 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
7344 By default: disabled.
7345 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
7348 2010-01-10 Carles Pina i Estany <carles@pina.cat>
7350 * font/font.c: Update copyright years.
7351 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
7353 2010-01-10 Carles Pina i Estany <carles@pina.cat>
7355 * font/font.c: Include `ascii.h'.
7356 (ASCII_BITMAP_SIZE): New macro.
7357 (ascii_font_glyph): Define.
7358 (ascii_glyph_lookup): New function.
7359 (grub_font_get_string_width): Change comment. If glyph not found, use
7361 (grub_font_get_glyph_with_fallback): If glyph not available returns
7363 * util/grub-mkfont.c (file_formats): New enum.
7364 (options): Add `ascii-bitmaps' new option.
7365 (usage): Add `asii-bitmaps' new option.
7366 (write_font_ascii_bitmap): New function.
7367 (write_font): Rename to ...
7368 (write_font_p2): ... this. Remove print_glyphs call.
7369 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
7370 used. Call print_glyphs.
7371 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
7373 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
7375 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
7376 (grub_bin2h_SOURCES): New variable.
7377 * util/bin2h.c: New file.
7379 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7381 * include/multiboot.h: Resynced with spec.
7382 * include/multiboot2.h: Likewise.
7383 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
7384 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
7386 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7388 * include/grub/term.h (grub_term_register_input,
7389 grub_term_register_output): Check return of terminal init()
7390 routines, and abort if errors are raised.
7392 * commands/terminal.c: Update copyright year.
7394 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7396 * commands/terminal.c (grub_cmd_terminal_input)
7397 (grub_cmd_terminal_output): Check return of terminal init()
7398 routines, and abort if errors are raised.
7400 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7402 * include/grub/i386/bsd.h: Fix include pathes.
7404 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7406 Add missing *BSD copyright headers.
7408 * include/grub/aout.h: Add BSD licence.
7409 * include/grub/i386/bsd.h: Parts under different licences moved to ...
7410 * include/grub/i386/freebsd_linker.h: ... here,
7411 * include/grub/i386/freebsd_reboot.h: ... here,
7412 * include/grub/i386/netbsd_bootinfo.h: ... here,
7413 * include/grub/i386/netbsd_reboot.h: ... here,
7414 * include/grub/i386/openbsd_bootarg.h: ... here,
7415 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
7416 licence to each file.
7418 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7420 * acinclude.m4: Remove `nop' assembly instruction; it's not
7421 implemented by all architectures.
7423 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7425 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
7426 ELILO. This is no longer necessary.
7428 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
7430 Added new tool, grub-scrit-check to verify grub.cfg syntax.
7432 * util/grub-script-check.c: grub-script-check tool.
7433 * conf/common.rmk: Make rules for grub-script-check.
7435 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7437 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
7438 spotting it back in 2008. Shame on me for forgetting he did.
7440 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
7442 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7444 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
7445 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
7446 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
7447 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
7448 (GRUB_VIDEO_TYPE_EFI): Rename to ...
7449 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
7451 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
7453 * include/grub/test.h: Add license header.
7454 * tests/example_functional_test.c: Likewise.
7455 * tests/example_unit_test.c: Likewise.
7456 * tests/lib/functional_test.c: Likewise.
7457 * tests/lib/test.c: Likewise.
7458 * tests/lib/unit_test.c: Likewise.
7460 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7462 Use flag-based instead of hook-based video mode selection and "auto"
7465 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
7466 (grub_video_set_mode): Changed prototype. All users updated.
7467 (grub_video_check_mode_flag): New inline function.
7468 * video/video.c (parse_modespec): New function.
7469 (grub_video_set_mode): Parse flags and keywords.
7471 2010-01-17 Carles Pina i Estany <carles@pina.cat>
7473 * util/misc.c (grub_util_info): Fix the order of the parameters in a
7476 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
7478 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
7480 2010-01-16 Carles Pina i Estany <carles@pina.cat>
7482 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
7484 * util/grub-emu.c (usage): Likewise.
7485 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
7486 * util/i386/efi/grub-mkimage.c (usage): Likewise.
7487 * util/i386/pc/grub-mkimage.c (usage): Likewise.
7488 * util/i386/pc/grub-setup.c (usage): Likewise.
7490 2010-01-16 Carles Pina i Estany <carles@pina.cat>
7492 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
7494 (grub_util_info): Likewise.
7495 (grub_util_error): Likewise.
7496 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
7497 and/or new lines in `grub_util_warna', `grub_util_info',
7498 `grub_util_error' calls.
7499 * util/getroot.c: Likewise.
7500 * util/grub-editenv.c: Likewise.
7501 * util/grub-emu.c: Likewise.
7502 * util/grub-fstest.c: Likewise.
7503 * util/grub-mkdevicemap.c: Likewise.
7504 * util/grub-mkfont.c: Likewise.
7505 * util/grub-mkpasswd-pbkdf2.c: Likewise.
7506 * util/grub-mkrelpath.c: Likewise.
7507 * util/grub-pe2elf.c: Likewise.
7508 * util/grub-probe.c: Likewise.
7509 * util/hostdisk.c: Likewise.
7510 * util/i386/efi/grub-mkimage.c: Likewise.
7511 * util/i386/pc/grub-mkimage.c: Likewise.
7512 * util/i386/pc/grub-setup.c: Likewise.
7513 * util/ieee1275/ofpath.c: Likewise.
7514 * util/mkisofs/eltorito.c: Likewise.
7515 * util/mkisofs/rock.c: Likewise.
7516 * util/mkisofs/write.c: Likewise.
7517 * util/raid.c: Likewise.
7518 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
7519 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7521 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
7523 Enable multiboot on non-pc.
7525 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
7526 multiboot.mod and multiboot2.mod to ...
7527 * conf/i386.rmk (pkglib_MODULES): ... here.
7528 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
7530 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
7531 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
7533 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
7534 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
7536 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
7537 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
7539 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
7540 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
7542 (ata_mod_SOURCES): Removed.
7543 (ata_mod_CFLAGS): Likewise.
7544 (ata_mod_LDFLAGS): Likewise.
7545 (relocator_mod_SOURCES): Removed.
7546 (relocator_mod_CFLAGS): Likewise.
7547 (relocator_mod_ASFLAGS): Likewise.
7548 (relocator_mod_LDFLAGS): Likewise.
7550 * include/grub/x86_64/multiboot.h: New file.
7551 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
7554 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
7556 Video multiboot support.
7558 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
7560 * include/multiboot.h: Resynced with multiboot specification.
7561 * include/multiboot2.h: Likewise.
7562 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
7563 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
7564 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
7565 (HAS_VGA_TEXT): Likewise.
7566 (accepts_video): New variable.
7567 (grub_multiboot_set_accepts_video): New function.
7568 (grub_multiboot_get_mbi_size): Account for video structures.
7569 (set_video_mode): New function.
7570 (retrieve_video_parameters): Likewise.
7571 (grub_multiboot_make_mbi): Fill video fields.
7573 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
7577 * include/grub/video.h (grub_video_driver_id): New type.
7578 (grub_video_adapter): New member 'id'. All users updated.
7579 (grub_video_get_driver_id): New proto.
7580 * video/video.c (grub_video_get_driver_id): New function.
7582 2010-01-14 Carles Pina i Estany <carles@pina.cat>
7584 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
7587 2010-01-14 Carles Pina i Estany <carles@pina.cat>
7589 * normal/cmdline.c (print_completion): Gettextizze.
7591 2001-01-14 Carles Pina i Estany <carles@pina.cat>
7593 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
7595 2010-01-14 Carles Pina i Estany <carles@pina.cat>
7597 * gettext/gettext.c (grub_gettext_translate): Push and pop
7599 (grub_gettext_delete_list): Change comment style.
7600 * kern/err.c (grub_error): Gettextizze.
7601 (grub_fatal): Gettextizze.
7603 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
7605 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
7606 (grub_linux16_real_boot): ... this.
7607 * kern/i386/loader.S: Likewise.
7608 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
7609 (grub_linux16_boot): New function. Switches to text mode and calls
7610 grub_linux16_real_boot().
7612 * loader/i386/bsd.c: Include `<grub/video.h>'.
7613 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
7614 text mode before calling grub_unix_real_boot().
7616 * loader/i386/multiboot.c: Include `<grub/video.h>'.
7617 (grub_multiboot_boot): Switch to text mode before calling
7618 grub_relocator32_boot().
7620 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
7621 (grub_chainloader_boot): Switch to text mode before calling
7622 grub_chainloader_real_boot().
7624 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
7625 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
7627 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
7630 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
7631 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
7633 * util/grub.d/00_header.in: Define a "savedefault" function for use
7635 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
7637 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
7638 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
7640 * util/grub-mkconfig_lib.in (save_default_entry): Only set
7641 saved_entry if boot_once is unset.
7642 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
7643 previous saved entry (i.e. grub-reboot).
7645 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
7647 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
7649 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
7651 * util/grub.d/00_header.in: Use `set var=val' rather than plain
7653 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
7655 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
7657 * util/grub-reboot.in: Fix --version output.
7658 * util/grub-set-default.in: Likewise.
7660 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
7662 * util/grub.d/00_header.in: Silently ignore zero-sized environment
7665 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
7667 * util/grub.d/00_header.in: Quote the value assigned to `default',
7668 in case it contains spaces.
7670 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
7672 * util/grub.d/30_os-prober.in: Fix merge error that moved a
7673 `save_default_entry' call from the macosx case to the linux case.
7675 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
7676 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
7678 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
7679 in `chosen' environment variable.
7680 * normal/menu_text.c (get_entry_number): Check if the variable
7681 matches the title of a menu entry.
7682 (run_menu): Pass menu to get_entry_number.
7684 * util/grub-reboot.in: New file.
7685 * util/grub-set-default.in: New file.
7686 * conf/common.rmk (grub-reboot): New utility.
7687 (grub-set-default): New utility.
7689 * util/grub-mkconfig_lib.in (save_default_entry): New function.
7690 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
7691 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
7692 move it to `saved_entry' for the next boot. Load environment on
7694 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
7695 * util/grub.d/10_hurd.in: Likewise.
7696 * util/grub.d/10_linux.in (linux_entry): Likewise.
7697 * util/grub.d/10_windows.in: Likewise.
7698 * util/grub.d/30_os-prober.in: Likewise.
7700 * util/grub-install.in: Create environment block.
7701 * util/i386/efi/grub-install.in: Likewise.
7702 * util/ieee1275/grub-install.in: Likewise.
7703 * util/sparc64/ieee1275/grub-install.in: Likewise.
7705 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
7707 Unit testing framework for GRUB.
7709 * Makefile.in: Test framework build rules for 'make check'.
7710 * conf/tests.rmk: Build rules for individual tests and framework.
7712 * include/grub/test.h: Header file for whitebox tests.
7713 * tests/lib/functional_test.c: Framework support for whitebox
7715 * tests/lib/test.c: Common whitebox testing code for unit and
7717 * tests/lib/unit_test.c: Framework support for whitebox unit
7720 * tests/util/grub-shell-tester.in: Support utility for grub-script
7722 * tests/util/grub-shell.in: Utility to execute grub-script
7723 commands in a Qemu instance.
7725 * tests/example_functional_test.c: Example whitebox functional
7727 * tests/example_grub_script_test.in: Example grub-script test.
7728 * tests/example_scripted_test.in: Example scripted test.
7729 * tests/example_unit_test.c: Example whitebox unit test.
7731 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7733 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
7734 Add loader/i386/multiboot_mbi.c.
7735 (multiboot2_mod_SOURCES): Likewise.
7736 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
7737 (multiboot2_mod_SOURCES): Likewise.
7738 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
7739 (grub_multiboot_make_mbi): Likewise.
7740 (grub_multiboot_free_mbi): Likewise.
7741 (grub_multiboot_init_mbi): Likewise.
7742 (grub_multiboot_add_module): Likewise.
7743 (grub_multiboot_set_bootdev): Likewise.
7744 * loader/i386/multiboot.c (mbi): Removed.
7745 (mbi_dest): Likewise.
7746 (alloc_mbi): New variable.
7747 (grub_multiboot_payload_size): Removed. All users updated.
7748 (grub_multiboot_pure_size): New variable.
7749 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
7750 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
7751 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
7752 (grub_fill_multiboot_mmap): Likewise.
7753 (grub_multiboot_get_bootdev): Likewise.
7754 (grub_multiboot): Use multiboot_mbi functions.
7755 * loader/i386/multiboot_mbi.c: New file.
7757 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7759 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
7760 it would result in module crash.
7762 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7764 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
7765 (grub_ofconsole_getwh): Split to ...
7766 (grub_ofconsole_getwh): ... this.
7767 (grub_ofconsole_dimensions): ...and this.
7768 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
7770 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
7772 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
7774 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7776 * loader/i386/pc/multiboot2.c: Removed stalled file.
7778 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7780 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
7781 Reported by: Grégoire Sutre
7783 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
7785 * util/misc.c (canonicalize_file_name): New function.
7786 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
7787 instead of realpath().
7789 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
7791 * util/grub-install.in (usage): Clarify meaning of --root-directory,
7792 and make it clearer that it's optional. Based on confusion
7795 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7797 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
7798 in premature implicit newline.
7800 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7802 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
7803 which resulted in garbled command line at the end of screen.
7805 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
7807 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
7808 initialization with similar approach as with other Linux loaders.
7810 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
7812 Fix i386-ieee1275 build.
7814 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
7815 and grub_term_height() for video_{width,height} initialization.
7817 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
7821 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
7823 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7824 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
7826 Support for multiple terminals.
7828 * Makefile.in (pkglib_DATA): terminal.lst.
7829 (terminal.lst): New target.
7830 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
7831 (GRUB_MOD_INIT(handler)): Likewise.
7832 (GRUB_MOD_FINI(handler)): Likewise.
7833 * commands/help.c (grub_cmd_help): Handle multiple terminals.
7834 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
7835 * commands/sleep.c (do_print): Use grub_term_restore_pos.
7836 (grub_cmd_sleep): Use grub_term_save_pos.
7837 * commands/terminal.c: New file.
7838 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
7839 commands/terminal.c and lib/charset.c.
7840 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
7841 (pkglib_MODULES): Add terminal.mod.
7842 (terminal_mod_SOURCES): New variable.
7843 (terminal_mod_CFLAGS): Likewise.
7844 (terminal_mod_LDFLAGS): Likewise.
7845 * genhandlerlist.sh: Don't handle terminals.
7846 * genmk.rb: Generate terminal-*.lst.
7847 * genterminallist.sh: New file.
7848 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
7849 (grub_is_valid_utf8): Likewise.
7850 (grub_utf8_to_ucs4_alloc): Likewise.
7851 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
7852 (grub_menu_register_viewer): Changed argument.
7853 (grub_menu_try_text): New proto.
7854 (grub_gfxmenu_try_hook): New declaration.
7855 * include/grub/normal.h (grub_normal_exit_level): New declaration.
7856 (grub_menu_init_page): Additional argument term.
7857 (grub_normal_init_page): Likewise.
7858 (grub_cmdline_get): Arguments simplified.
7859 (grub_utf8_to_ucs4_alloc): Removed.
7860 (grub_print_ucs4): Additional argument term.
7861 (grub_getstringwidth): Likewise.
7862 (grub_print_message_indented): Likewise.
7863 (grub_menu_text_register_instances): New proto.
7864 (grub_show_menu): Likewise.
7865 (read_terminal_list): Likewise.
7866 (grub_set_more): Likewise.
7867 * include/grub/parser.h: Include handler.h.
7868 * include/grub/reader.h: Rewritten.
7869 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
7870 (GRUB_TERM_WIDTH): Changed to function.
7871 (GRUB_TERM_HEIGHT): Likewise.
7872 (GRUB_TERM_BORDER_WIDTH): Likewise.
7873 (GRUB_TERM_BORDER_HEIGHT): Likewise.
7874 (GRUB_TERM_NUM_ENTRIES): Likewise.
7875 (GRUB_TERM_ENTRY_WIDTH): Likewise.
7876 (GRUB_TERM_CURSOR_X): Likewise.
7877 (grub_term_input_class): Likewise.
7878 (grub_term_output_class): Likewise.
7879 (grub_term_outputs_disabled): New declaration.
7880 (grub_term_inputs_disabled): Likewise.
7881 (grub_term_outputs): Likewise.
7882 (grub_term_inputs): Likewise.
7883 (grub_term_register_input): Rewritten.
7884 (grub_term_register_output): Likewise.
7885 (grub_term_unregister_input): Likewise.
7886 (grub_term_unregister_output): Likewise.
7887 (FOR_ACTIVE_TERM_INPUTS): New macro.
7888 (FOR_DISABLED_TERM_INPUTS): Likewise.
7889 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
7890 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
7891 * include/grub/terminfo.h: Add oterm argument to all protypes.
7892 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
7893 Use grub_rescue_run.
7894 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
7896 * kern/reader.c: Removed. All users updated.
7897 * kern/rescue_reader.c (grub_rescue_init): Removed.
7898 (grub_rescue_reader): Likewise.
7899 (grub_register_rescue_reader): Likewise.
7900 (grub_rescue_run): New function based on kern/reader.c.
7901 * kern/term.c: Adapted for multiterm.
7902 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
7903 (grub_is_valid_utf8): Likewise.
7904 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
7905 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
7907 * loader/i386/linux.c (grub_linux_boot): Likewise.
7908 * normal/auth.c (grub_username_get): New function.
7909 (grub_auth_check_authentication): Use grub_username_get.
7910 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
7911 * normal/color.c: Adapt for multiterm.
7912 * normal/main.c (read_config_file): Don't use grub_reader_loop.
7913 (grub_normal_init_page): Additional argument term.
7914 (read_lists): Call read_terminal_lists.
7915 (grub_enter_normal_mode): Call grub_cmdline_run.
7916 Handle grub_normal_exit_level.
7917 (grub_cmd_normal): Make reentrant.
7918 (grub_cmd_normal_exit): New function.
7919 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
7920 * normal/menu.c: Adapt for multiterm.
7921 * normal/menu_entry.c: Likewise.
7922 * normal/menu_text.c: Likewise.
7923 * normal/menu_viewer.c: Removed. All users updated.
7924 * normal/term.c: New file.
7925 * util/console.c: Change order of includes to workaround a bug in
7927 * term/terminfo.c: New argument oterm on all exported functions.
7929 * util/grub-editenv.c (grub_term_input_class): Removed.
7930 (grub_term_output_class): Likewise.
7932 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
7934 Make loader output a bit more user-friendly.
7936 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
7937 is being loaded. Likewise for the Hurd.
7939 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
7940 that kernel of FreeBSD ${version} is being loaded.
7942 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
7944 (grub_cmd_initrd): Likewise.
7945 * util/grub.d/10_linux.in (linux_entry): Print message indicating
7946 that Linux ${version} is being loaded. Likewise for initrd.
7948 2010-01-09 Carles Pina i Estany <carles@pina.cat>
7950 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
7952 2010-01-08 Carles Pina i Estany <carles@pina.cat>
7954 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
7955 (GRUB_MOD_INIT): Gettextizze.
7956 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
7957 (GRUB_MOD_INIT): Gettextizze.
7958 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
7959 (grub_cmd_linux): Capitalise Linux.
7960 (GRUB_MOD_INIT): Gettextizze.
7961 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
7962 (grub_cmd_linux): Capitalise Linux.
7963 (GRUB_MOD_INIT): Gettextizze.
7964 * loader/i386/linux.c: Include `<grub/i18n.h>'.
7965 (grub_cmd_linux): Capitalise Linux.
7966 (GRUB_MOD_INIT): Gettextizze.
7967 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
7968 (GRUB_MOD_INIT): Gettextizze.
7969 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
7970 (grub_cmd_linux): Capitalise Linux.
7971 (GRUB_MOD_INIT): Gettextizze.
7972 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
7973 (grub_cpu_xnu_init): Gettextizze.
7974 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
7975 (GRUB_MOD_INIT): Gettextizze.
7976 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
7977 (GRUB_MOD_INIT): Gettextizze.
7978 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
7979 (grub_linux_load64): Capitalise Linux.
7980 (GRUB_MOD_INIT): Gettextizze.
7981 * loader/xnu.c: Include `<grub/i18n.h>'.
7982 (GRUB_MOD_INIT): Gettextizze.
7983 * po/POTFILES: Add `loader/efi/appleloader.c',
7984 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
7985 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
7986 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
7987 `loader/i386/xnu.c', `loader/multiboot_loader.c',
7988 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
7991 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
7993 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
7995 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
7997 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
7998 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
7999 * util/mkisofs/mkisofs.c (main): Readjust --version output.
8001 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
8003 Reset Multiboot 2 support. New loader implements the draft in
8004 /branches/multiboot2 and shares as much code as possible with the
8005 production Multiboot 1 implementation.
8007 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
8008 * loader/multiboot2.c: Likewise.
8009 * loader/i386/multiboot_helper.S: Likewise.
8010 * include/multiboot2.h: Replace with latest version from the draft
8011 in /branches/multiboot2.
8013 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
8014 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
8015 and `loader/multiboot2.c'.
8016 (pkglib_MODULES): Add `multiboot2.mod'.
8017 (multiboot2_mod_SOURCES): New variable.
8018 (multiboot2_mod_LDFLAGS): Likewise.
8019 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
8021 * conf/i386-pc.rmk: Likewise.
8023 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
8024 (multiboot_mod_SOURCES): Remove variable.
8025 (multiboot_mod_LDFLAGS): Likewise.
8026 (multiboot_mod_CFLAGS): Likewise.
8028 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
8029 `<multiboot2.h>' instead of `<multiboot.h>'.
8030 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
8031 (MULTIBOOT_HEADER_MAGIC): New macros.
8033 * loader/multiboot_loader.c (module_version_status): Remove variable.
8034 (find_multi_boot2_header): Remove function.
8035 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
8036 logic. Always check for the Multiboot version we're compiling for.
8037 (grub_cmd_module_loader): Likewise.
8038 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
8039 command instead of `multiboot'.
8041 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
8043 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
8044 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
8047 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
8048 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8050 Fix breakage introduced with previous commit.
8052 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
8054 * normal/handler.c (read_handler_list): Revert part of previous commit
8055 affecting this file.
8056 * normal/main.c (read_lists): Move read_handler_list() call back to ...
8057 (grub_normal_execute): ... here.
8059 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
8061 Merge prefix-redefinition-fix branch.
8063 * normal/autofs.c (read_fs_list): Make function capable of being
8064 run multiple times, gracefuly replacing the previous data
8066 * normal/dyncmd.c (read_command_list): Likewise.
8067 * normal/handler.c (read_handler_list): Likewise.
8068 * normal/main.c (read_lists): New function. Calls all the
8069 list reading functions.
8070 (grub_normal_execute): Use read_lists() instead of calling all
8071 list reading functions explicitly. Register read_lists() as a
8072 variable hook attached to ${prefix}.
8074 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8076 Merge crypto branch.
8078 * Makefile.in (pkglib_DATA): Add crypto.lst.
8079 (crypto.lst): New target.
8080 * commands/hashsum.c: New file.
8081 * commands/password.c (check_password): Use grub_crypto_memcmp.
8082 * commands/password_pbkdf2.c: New file.
8083 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
8084 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
8085 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
8086 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
8087 -I$(srcdir)/lib/libgcrypt_wrap.
8088 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
8089 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
8090 password_pbkdf2.mod.
8091 (crypto_mod_SOURCES): New variable.
8092 (crypto_mod_CFLAGS): Likewise.
8093 (crypto_mod_LDFLAGS): Likewise.
8094 (hashsum_mod_SOURCES): New variable.
8095 (hashsum_mod_CFLAGS): Likewise.
8096 (hashsum_mod_LDFLAGS): Likewise.
8097 (pbkdf2_mod_SOURCES): New variable.
8098 (pbkdf2_mod_CFLAGS): Likewise.
8099 (pbkdf2_mod_LDFLAGS): Likewise.
8100 (password_pbkdf2_mod_SOURCES): New variable.
8101 (password_pbkdf2_mod_CFLAGS): Likewise.
8102 (password_pbkdf2_mod_LDFLAGS): Likewise.
8103 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
8104 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
8105 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
8106 Include conf/gcry.rmk.
8107 * include/grub/auth.h: Rewritten.
8108 * include/grub/crypto.h: New file.
8109 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
8110 * include/grub/normal.h (read_crypto_list): New prototype.
8111 * lib/crypto.c: New file.
8112 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
8113 * lib/pbkdf2.c: Likewise.
8114 * normal/auth.c (grub_auth_strcmp): Removed.
8115 (grub_iswordseparator): Likewise.
8116 (grub_auth_strword): Likewise.
8117 (is_authenticated): Use grub_strword.
8118 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
8119 and grub_strword. Pass entered password to authentication callback.
8120 * normal/crypto.c: New file.
8121 * normal/main.c: Call read_crypto_list.
8122 * util/grub-mkpasswd-pbkdf2.c: New file.
8123 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
8125 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
8127 Fix descent and ascent calculation.
8129 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
8130 (options): New option "asce".
8132 (add_char): Ignore invalid glyphs for descent calculation.
8133 Calculate ascent from actual content.
8134 (print_glyphs): Use 'asce'.
8135 (write_font): Likewise. Allow ascent override.
8136 (main): Handle "asce" option.
8138 2010-01-06 Carles Pina i Estany <carles@pina.cat>
8140 * kern/err.c: Include `<grub/i18n.h>'.
8141 (grub_print_error): Add full stop. Gettextizze.
8142 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
8143 (grub_bsd_load_elf): Capitalise ELF.
8144 (grub_cmd_freebsd_loadenv): Add `s' in error string.
8145 (grub_cmd_freebsd_module): Likewise.
8146 (grub_cmd_freebsd_module_elf): Likewise.
8147 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
8149 2010-01-06 Carles Pina i Estany <carles@pina.cat>
8151 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
8152 * commands/search_file.c (HELP_MESSAGE): New macro.
8153 * commands/search_label.c (HELP_MESSAGE): Likewise.
8154 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
8155 * po/POTFILES: Add `commands/search_file.c',
8156 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
8157 `commands/search.c'.
8159 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
8161 * config.rpath: Update from Gnulib.
8163 2010-01-05 Yves Blusseau <blusseau@zetam.org>
8165 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
8167 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
8169 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
8171 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
8173 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
8174 arguments to fread so that we get a return value in bytes, rather
8175 than something that will normally be rounded down to 0.
8176 Adjust error handling to avoid producing garbage when size_t is not
8177 the same size as long long.
8179 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
8181 * util/mkisofs/write.c (padblock_write): Check return value of
8184 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
8186 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
8189 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
8191 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
8193 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
8194 instead of manual alignment.
8195 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
8196 verbose). Avoid attempts to read past end of the device
8197 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
8198 but GRUB_DISK_CACHE_SIZE may exceed that).
8200 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
8202 * commands/crc.c (grub_cmd_crc): Abort on read errors.
8203 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
8206 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
8208 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
8210 (grub_efi_piwg_device_path): New structure
8211 (grub_efi_piwg_device_path_t): New type.
8212 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
8213 (devpath_1): Transform to a structure. All users updated.
8214 (devpath_2): Likewise.
8215 (devpath_3): Likewise.
8216 (devpath_4): Likewise.
8217 (devpath_5): Likewise.
8219 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
8221 * loader/efi/appleloader.c: Restored. Update all users.
8223 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
8225 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
8227 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
8228 (struct boot_blocklist): Move from here ...
8229 * include/grub/i386/pc/boot.h [ASM_FILE]
8230 (struct grub_boot_blocklist): ... to here. Update all users.
8231 (setup): Only initialize `start' member of `first_block'
8232 structure. Add assert() calls to verify the other members.
8234 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
8235 (generate_image): Fix broken blocklist length initialization.
8236 Add assert() call to verify blocklist `segment' field.
8238 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
8240 * loader/efi/appleloader.c: Remove. Update all users.
8242 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
8244 * boot/i386/pc/boot.S: Update copyright year.
8245 * boot/i386/pc/cdboot.S: Likewise.
8246 * boot/i386/pc/diskboot.S: Likewise.
8247 * boot/i386/pc/lnxboot.S: Likewise.
8248 * boot/i386/pc/pxeboot.S: Likewise.
8249 * bus/pci.c: Likewise.
8250 * commands/cmp.c: Likewise.
8251 * commands/help.c: Likewise.
8252 * commands/hexdump.c: Likewise.
8253 * commands/i386/pc/halt.c: Likewise.
8254 * commands/i386/pc/play.c: Likewise.
8255 * commands/i386/pc/vbeinfo.c: Likewise.
8256 * commands/ls.c: Likewise.
8257 * commands/test.c: Likewise.
8258 * disk/dmraid_nvidia.c: Likewise.
8259 * disk/i386/pc/biosdisk.c: Likewise.
8260 * disk/ieee1275/nand.c: Likewise.
8261 * disk/ieee1275/ofdisk.c: Likewise.
8262 * disk/lvm.c: Likewise.
8263 * disk/raid.c: Likewise.
8264 * disk/raid6_recover.c: Likewise.
8265 * disk/scsi.c: Likewise.
8266 * fs/affs.c: Likewise.
8267 * fs/cpio.c: Likewise.
8268 * fs/ext2.c: Likewise.
8269 * fs/hfs.c: Likewise.
8270 * fs/iso9660.c: Likewise.
8271 * fs/ntfs.c: Likewise.
8272 * fs/sfs.c: Likewise.
8273 * fs/udf.c: Likewise.
8274 * fs/ufs.c: Likewise.
8275 * fs/xfs.c: Likewise.
8276 * gencmdlist.sh: Likewise.
8277 * genmk.rb: Likewise.
8278 * include/grub/disk.h: Likewise.
8279 * include/grub/efi/api.h: Likewise.
8280 * include/grub/efi/efi.h: Likewise.
8281 * include/grub/efi/pe32.h: Likewise.
8282 * include/grub/elf.h: Likewise.
8283 * include/grub/fs.h: Likewise.
8284 * include/grub/i386/at_keyboard.h: Likewise.
8285 * include/grub/i386/pc/memory.h: Likewise.
8286 * include/grub/i386/pc/vbe.h: Likewise.
8287 * include/grub/i386/pci.h: Likewise.
8288 * include/grub/i386/tsc.h: Likewise.
8289 * include/grub/ieee1275/ieee1275.h: Likewise.
8290 * include/grub/ntfs.h: Likewise.
8291 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
8292 * include/grub/sparc64/libgcc.h: Likewise.
8293 * include/grub/symbol.h: Likewise.
8294 * include/grub/types.h: Likewise.
8295 * include/multiboot2.h: Likewise.
8296 * io/gzio.c: Likewise.
8297 * kern/device.c: Likewise.
8298 * kern/disk.c: Likewise.
8299 * kern/efi/efi.c: Likewise.
8300 * kern/efi/mm.c: Likewise.
8301 * kern/elf.c: Likewise.
8302 * kern/file.c: Likewise.
8303 * kern/i386/dl.c: Likewise.
8304 * kern/i386/pc/init.c: Likewise.
8305 * kern/i386/pc/startup.S: Likewise.
8306 * kern/ieee1275/ieee1275.c: Likewise.
8307 * kern/ieee1275/init.c: Likewise.
8308 * kern/main.c: Likewise.
8309 * kern/mm.c: Likewise.
8310 * kern/powerpc/dl.c: Likewise.
8311 * kern/sparc64/dl.c: Likewise.
8312 * kern/x86_64/dl.c: Likewise.
8313 * lib/hexdump.c: Likewise.
8314 * loader/efi/appleloader.c: Likewise.
8315 * loader/i386/ieee1275/linux.c: Likewise.
8316 * loader/i386/pc/chainloader.c: Likewise.
8317 * loader/i386/pc/linux.c: Likewise.
8318 * loader/i386/pc/multiboot2.c: Likewise.
8319 * loader/ieee1275/multiboot2.c: Likewise.
8320 * loader/multiboot2.c: Likewise.
8321 * loader/multiboot_loader.c: Likewise.
8322 * loader/powerpc/ieee1275/linux.c: Likewise.
8323 * normal/completion.c: Likewise.
8324 * normal/menu_entry.c: Likewise.
8325 * partmap/apple.c: Likewise.
8326 * util/grub.d/10_hurd.in: Likewise.
8327 * util/hostfs.c: Likewise.
8328 * video/readers/png.c: Likewise.
8330 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
8332 * include/grub/misc.h (GNUC_PREREQ): New macro.
8333 (ATTRIBUTE_ERROR): New macro.
8334 * include/grub/list.h (grub_bad_type_cast_real): Use
8337 2010-01-03 Carles Pina i Estany <carles@pina.cat>
8339 * normal/menu_text.c (print_message): Change messages.
8341 2010-01-03 Carles Pina i Estany <carles@pina.cat>
8343 * normal/menu_entry.c (store_completion): Gettextizze.
8345 2010-01-03 Carles Pina i Estany <carles@pina.cat>
8347 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
8349 2010-01-03 Carles Pina i Estany <carles@pina.cat>
8351 * po/POTFILES: Sort correctly.
8353 2010-01-03 Carles Pina i Estany <carles@pina.cat>
8355 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
8356 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
8357 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
8359 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
8360 summary. Gettextizze the strings.
8361 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
8362 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
8363 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
8365 (GRUB_MOD_INIT): Remove command name from summary.
8366 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
8368 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
8369 * term/i386/pc/serial.c (options): Add full stops.
8370 (GRUB_MOD_INIT): Remove command name from the summary.
8372 2010-01-03 Carles Pina i Estany <carles@pina.cat>
8374 * commands/acpi.c: Gettextizze help strings and/or options. Include
8375 `grub/i18n.h' if needed.
8376 * commands/blocklist.c: Likewise.
8377 * commands/boot.c: Likewise.
8378 * commands/cat.c: Likewise.
8379 * commands/cmp.c: Likewise.
8380 * commands/configfile.c: Likewise.
8381 * commands/crc.c: Likewise.
8382 * commands/date.c: Likewise.
8383 * commands/echo.c: Likewise.
8384 * commands/efi/fixvideo.c: Likewise.
8385 * commands/efi/loadbios.c: Likewise.
8386 * commands/gptsync.c: Likewise.
8387 * commands/halt.c: Likewise.
8388 * commands/handler.c: Likewise.
8389 * commands/hdparm.c: Likewise.
8390 * commands/hexdump.c: Likewise.
8391 * commands/i386/cpuid.c: Likewise.
8392 * commands/i386/pc/drivemap.c: Likewise.
8393 * commands/i386/pc/halt.c: Likewise.
8394 * commands/i386/pc/pxecmd.c: Likewise.
8395 * commands/i386/pc/vbeinfo.c: Likewise.
8396 * commands/i386/pc/vbetest.c: Likewise.
8397 * commands/ieee1275/suspend.c: Likewise.
8398 * commands/keystatus.c: Likewise.
8399 * commands/loadenv.c: Likewise.
8400 * commands/ls.c: Likewise.
8401 * commands/lsmmap.c: Likewise.
8402 * commands/lspci.c: Likewise.
8403 * commands/memrw.c: Likewise.
8404 * commands/minicmd.c: Likewise.
8405 * commands/parttool.c: Likewise.
8406 * commands/password.c: Likewise.
8407 * commands/probe.c: Likewise.
8408 * commands/read.c: Likewise.
8409 * commands/reboot.c: Likewise.
8410 * commands/search.c: Likewise.
8411 * commands/sleep.c: Likewise.
8412 * commands/test.c: Likewise.
8413 * commands/true.c: Likewise.
8414 * commands/usbtest.c: Likewise.
8415 * commands/videotest.c: Likewise.
8416 * commands/xnu_uuid.c: Likewise.
8417 * disk/loopback.c: Likewise.
8418 * hello/hello.c: Likewise.
8419 * loader/i386/bsd.c: Likewise.
8420 * term/i386/pc/serial.c: Likewise.
8421 * po/POTFILES: Add new files.
8423 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
8425 * term/i386/pc/at_keyboard.c
8426 (keyboard_controller_wait_untill_ready): Rename to ...
8427 (keyboard_controller_wait_until_ready): ... this. Update all users.
8429 2010-01-01 Carles Pina i Estany <carles@pina.cat>
8431 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
8432 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
8433 string using string width.
8434 * normal/menu_text.c (grub_print_message_indented): Use
8435 grub_print_spaces and not print_spaces.
8436 (print_timeout): Likewise.
8437 (print_spaces): Move to...
8438 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
8440 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
8444 * gnulib/getdelim.c: New file.
8445 * gnulib/getline.c: Likewise.
8447 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
8449 * include/grub/list.h (grub_assert_fail): Removed.
8450 (grub_bad_type_cast_real): New function.
8451 (grub_bad_type_cast): New macro.
8452 (GRUB_AS_LIST): Use grub_bad_type_cast.
8453 (GRUB_AS_LIST_P): Likewise.
8454 (GRUB_AS_NAMED_LIST): Likewise.
8455 (GRUB_AS_NAMED_LIST_P): Likewise.
8456 (GRUB_AS_PRIO_LIST): Likewise.
8457 (GRUB_AS_PRIO_LIST_P): Likewise.
8458 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
8460 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
8462 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
8465 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
8467 * configure.ac: Check for TARGET_CFLAGS initialization before we
8468 initialize it ourselves (sigh).
8469 Move a few modifications to TARGET_CFLAGS to be unconditional
8470 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
8473 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
8474 * term/i386/pc/at_keyboard.c
8475 (keyboard_controller_wait_untill_ready): Likewise.
8476 (keyboard_controller_led): Rename `led_status' paramter to avoid
8479 2009-12-28 Carles Pina i Estany <carles@pina.cat>
8481 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
8484 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
8486 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
8488 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
8490 * normal/menu_text.c (grub_print_message_indented): Prevent
8491 past-the-end-of-array dereference.
8493 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
8495 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
8496 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
8498 2009-12-27 Carles Pina i Estany <carles@pina.cat>
8500 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
8501 * normal/main.c (grub_normal_read_line): Remove a space from the
8504 2009-12-27 Carles Pina i Estany <carles@pina.cat>
8506 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
8507 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
8508 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
8509 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
8510 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
8511 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
8512 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
8514 2009-12-26 Carles Pina i Estany <carles@pina.cat>
8516 * video/readers/jpeg.c (cmd): Declare.
8517 (grub_cmd_jpegtest): Use `grub_command_t' type.
8518 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
8520 (GRUB_MOD_FINI): Use `cmd' to unregister.
8521 * video/readers/png.c (cmd): Declare.
8522 (grub_cmd_pngtest): Use `grub_command_t' type.
8523 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
8525 (GRUB_MOD_FINI): Use `cmd' to unregister.
8526 * video/readers/tga.c (cmd): Declare.
8527 (grub_cmd_tgatest): Use `grub_command_t' type.
8528 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
8530 (GRUB_MOD_FINI): Use `cmd' to unregister.
8532 2009-12-26 Carles Pina i Estany <carles@pina.cat>
8534 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
8536 * kern/corecmd.c (grub_register_core_commands): Likewise.
8537 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
8538 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
8539 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
8540 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
8541 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
8542 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
8543 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
8544 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
8545 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
8546 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
8547 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
8548 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
8549 * normal/handler.c (insert_handler): Likewise.
8550 * normal/main.c (GRUB_MOD_INIT): Likewise.
8551 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
8553 2009-12-26 Carles Pina i Estany <carles@pina.cat>
8555 * commands/help.c (grub_cmd_help): Print the command name before the
8557 (GRUB_MOD_INIT): Remove command name from the summary.
8558 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
8560 * lib/arg.c (find_long): Print the command name before the summary.
8561 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
8563 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
8564 * commands/cat.c (GRUB_MOD_INIT): Likewise.
8565 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
8566 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
8567 * commands/crc.c (GRUB_MOD_INIT): Likewise.
8568 * commands/date.c (GRUB_MOD_INIT): Likewise.
8569 * commands/echo.c (GRUB_MOD_INIT): Likewise.
8570 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
8571 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
8572 * commands/handler.c (GRUB_MOD_INIT): Likewise.
8573 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
8574 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
8575 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
8576 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
8577 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
8578 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
8579 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
8580 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
8581 * commands/ls.c (GRUB_MOD_INIT): Likewise.
8582 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
8583 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
8584 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
8585 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
8586 * commands/password.c (GRUB_MOD_INIT): Likewise.
8587 * commands/probe.c (GRUB_MOD_INIT): Likewise.
8588 * commands/read.c (GRUB_MOD_INIT): Likewise.
8589 * commands/search.c (GRUB_MOD_INIT): Likewise.
8590 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
8591 * commands/test.c (GRUB_MOD_INIT): Likewise.
8592 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
8593 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
8594 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
8595 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
8596 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
8597 * lib/arg.c (GRUB_MOD_INIT): Likewise.
8598 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
8599 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
8600 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
8601 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
8602 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
8603 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
8604 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
8605 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
8607 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8609 Use search command for preliminar UUID search.
8611 * commands/search.c: Split into ...
8612 * commands/search_wrap.c: ...this
8613 * commands/search.c: ...and this.
8614 * commands/search_file.c: New file.
8615 * commands/search_label.c: New file.
8616 * commands/search_uuid.c: New file.
8617 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
8618 Add commands/search_wrap.c, commands/search_file.c,
8619 commands/search_label.c and commands/search_uuid.c.
8620 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
8621 (search_mod_SOURCES): Set to commands/search_wrap.c.
8622 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
8624 (search_fs_file_mod_SOURCES): New variable.
8625 (search_fs_file_mod_CFLAGS): Likewise.
8626 (search_fs_file_mod_LDFLAGS): Likewise.
8627 (search_label_mod_SOURCES): Likewise.
8628 (search_label_mod_CFLAGS): Likewise.
8629 (search_label_mod_LDFLAGS): Likewise.
8630 (search_fs_uuid_mod_SOURCES): New variable.
8631 (search_fs_uuid_mod_CFLAGS): Likewise.
8632 (search_fs_uuid_mod_LDFLAGS): Likewise.
8633 (fs_file_mod_SOURCES): Removed.
8634 (fs_file_mod_CFLAGS): Likewise.
8635 (fs_file_mod_LDFLAGS): Likewise.
8636 (fs_uuid_mod_SOURCES): Removed.
8637 (fs_uuid_mod_CFLAGS): Likewise.
8638 (fs_uuid_mod_LDFLAGS): Likewise.
8639 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
8640 Set to util/grub-install.in.
8641 * disk/fs_file.c: Removed.
8642 * disk/fs_uuid.c: Likewise.
8643 * include/grub/search.h: New file.
8644 * util/grub-install.in: Handle sparc64.
8645 Create and use load.cfg.
8646 * util/sparc64/ieee1275/grub-install.in: Removed.
8648 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8650 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
8651 Ignore return status if CF is cleared.
8652 (grub_biosdisk_get_diskinfo_standard): Likewise.
8654 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
8656 * term/i386/pc/at_keyboard.c
8657 (keyboard_controller_wait_untill_ready): New function.
8658 (grub_keyboard_controller_write, grub_keyboard_controller_read)
8659 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
8660 for keyboard polling, rather than duplicate the same loop. This
8661 saves a few bytes in code size.
8663 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8665 Support for (pxe[:server[:gateway]]) syntax and
8666 use environment variable for PXE.
8668 * commands/i386/pc/pxecmd.c (options): Removed.
8669 (print_ip): Removed.
8670 (grub_cmd_pxe): Removed
8671 (grub_cmd_pxe_unload): New function.
8672 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
8673 (grub_pxe_your_ip): Made static.
8674 (grub_pxe_default_server_ip): Likewise.
8675 (grub_pxe_default_gateway_ip): Likewise.
8676 (grub_pxe_blksize): Likewise.
8677 (parse_ip): New function.
8678 (grub_pxe_open): Support server and gateway specification.
8679 (grub_pxe_close): Free disk->data.
8680 (grub_pxefs_open): Use disk->data.
8681 (grub_pxefs_read): Likewise.
8682 (grub_env_write_readonly): New function.
8683 (set_mac_env): Likewise.
8684 (set_env_limn_ro): Likewise.
8685 (parse_dhcp_vendor): Likewise.
8686 (grub_pxe_detect): Set the environment variables.
8687 (set_ip_env): New function.
8688 (write_ip_env): Likewise.
8689 (grub_env_write_pxe_default_server): Likewise.
8690 (grub_env_write_pxe_default_gateway): Likewise.
8691 (grub_env_write_pxe_blocksize): Likewise.
8692 (GRUB_MOD_INIT(pxe)): Set environment variables.
8693 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
8694 (grub_pxe_mac_addr_t): ... this. All users updated.
8695 (grub_pxe_your_ip): Removed.
8696 (grub_pxe_server_ip): Likewise.
8697 (grub_pxe_gateway_ip): Likewise.
8698 (grub_pxe_blksize): Likewise.
8700 2009-12-25 Carles Pina i Estany <carles@pina.cat>
8702 * commands/help.c: Include `<grub/i18n.h>'.
8703 (grub_cmd_help): Gettextizze.
8704 (GRUB_MOD_INIT): Likewise.
8705 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
8706 (GRUB_MOD_INIT): Gettextizze.
8707 * commands/search.c: Include `<grub/i18n.h>'.
8708 (options): Gettextizze.
8709 (GRUB_MOD_INIT): Gettextizze.
8710 * lib/arg.c: Include `<grub/i18n.h>'.
8711 (help_options): Gettextizze.
8712 (find_long): Likewise.
8713 (grub_arg_show_help): Likewise.
8714 * normal/dyncmd.c: Include `<grub/i18n.h>'.
8715 (read_command_list): Gettextizze.
8716 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
8717 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
8719 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
8721 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
8722 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
8723 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
8724 (led_status): New variable.
8725 (keyboard_controller_led): New function.
8726 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
8727 update led status for caps lock, num lock and scroll lock.
8729 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
8731 * util/hostdisk.c (open_device): Fix a comment.
8733 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
8735 * util/grub-install.in (host_os): New variable.
8736 * util/i386/efi/grub-install.in (host_os): Likewise.
8738 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
8740 * util/mkisofs/write.c (padblock_write): Abort when given an
8741 excedingly large embed image, instead of silently truncating it.
8743 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
8745 * include/multiboot.h: Indentation fixes.
8747 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
8749 * include/multiboot.h (struct multiboot_aout_symbol_table)
8750 (struct multiboot_elf_section_header_table): New structure
8751 declarations (stolen from GRUB Legacy).
8752 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
8755 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
8756 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
8759 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
8761 * include/multiboot.h: Make comments src2texi-friendly.
8763 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
8765 For consistency with [multiboot]/docs/boot.S.
8767 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
8768 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
8769 (MULTIBOOT_MAGIC2): Rename from this ...
8770 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
8772 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
8774 * include/multiboot.h: Remove `<grub/types.h>'.
8775 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
8776 types. Update all users.
8778 2009-12-25 Carles Pina i Estany <carles@pina.cat>
8780 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
8781 `couldn't' and `can not' by `cannot'.
8782 * commands/i386/pc/drivemap.c: Likewise.
8783 * disk/ata.c: Likewise.
8784 * disk/ieee1275/nand.c: Likewise.
8785 * fs/affs.c: Likewise.
8786 * fs/fat.c: Likewise.
8787 * fs/hfs.c: Likewise.
8788 * fs/hfsplus.c: Likewise.
8789 * fs/iso9660.c: Likewise.
8790 * fs/jfs.c: Likewise.
8791 * fs/minix.c: Likewise.
8792 * fs/reiserfs.c: Likewise.
8793 * fs/sfs.c: Likewise.
8794 * fs/udf.c: Likewise.
8795 * fs/ufs.c: Likewise.
8796 * fs/xfs.c: Likewise.
8797 * loader/powerpc/ieee1275/linux.c: Likewise.
8798 * loader/sparc64/ieee1275/linux.c: Likewise.
8799 * util/grub-probe.c: Likewise.
8800 * util/misc.c: Likewise.
8802 2009-12-24 Carles Pina i Estany <carles@pina.cat>
8804 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
8806 * commands/acpi.c: Likewise.
8807 * commands/blocklist.c: Likewise.
8808 * commands/efi/loadbios.c: Likewise.
8809 * commands/i386/pc/drivemap.c: Likewise.
8810 * commands/loadenv.c: Likewise.
8811 * commands/memrw.c: Likewise.
8812 * commands/password.c: Likewise.
8813 * commands/videotest.c: Likewise.
8814 * disk/ata.c: Likewise.
8815 * disk/ata_pthru.c: Likewise.
8816 * disk/dmraid_nvidia.c: Likewise.
8817 * disk/ieee1275/nand.c: Likewise.
8818 * disk/ieee1275/ofdisk.c: Likewise.
8819 * disk/loopback.c: Likewise.
8820 * disk/lvm.c: Likewise.
8821 * disk/mdraid_linux.c: Likewise.
8822 * disk/raid.c: Likewise.
8823 * disk/raid6_recover.c: Likewise.
8824 * disk/scsi.c: Likewise.
8825 * efiemu/main.c: Likewise.
8826 * efiemu/mm.c: Likewise.
8827 * efiemu/pnvram.c: Likewise.
8828 * efiemu/symbols.c: Likewise.
8829 * font/font.c: Likewise.
8830 * fs/cpio.c: Likewise.
8831 * fs/hfsplus.c: Likewise.
8832 * fs/iso9660.c: Likewise.
8833 * fs/jfs.c: Likewise.
8834 * fs/minix.c: Likewise.
8835 * fs/ntfs.c: Likewise.
8836 * fs/ntfscomp.c: Likewise.
8837 * fs/reiserfs.c: Likewise.
8838 * fs/ufs.c: Likewise.
8839 * fs/xfs.c: Likewise.
8840 * gettext/gettext.c: Likewise.
8841 * include/grub/auth.h: Likewise.
8842 * kern/elf.c: Likewise.
8843 * kern/file.c: Likewise.
8844 * kern/ieee1275/init.c: Likewise.
8845 * kern/ieee1275/mmap.c: Likewise.
8846 * kern/ieee1275/openfw.c: Likewise.
8847 * kern/powerpc/dl.c: Likewise.
8848 * kern/sparc64/dl.c: Likewise.
8849 * lib/arg.c: Likewise.
8850 * loader/i386/bsd.c: Likewise.
8851 * loader/i386/bsdXX.c: Likewise.
8852 * loader/i386/efi/linux.c: Likewise.
8853 * loader/i386/efi/xnu.c: Likewise.
8854 * loader/i386/ieee1275/linux.c: Likewise.
8855 * loader/i386/linux.c: Likewise.
8856 * loader/i386/multiboot.c: Likewise.
8857 * loader/i386/pc/linux.c: Likewise.
8858 * loader/i386/pc/multiboot2.c: Likewise.
8859 * loader/i386/xnu.c: Likewise.
8860 * loader/ieee1275/multiboot2.c: Likewise.
8861 * loader/macho.c: Likewise.
8862 * loader/machoXX.c: Likewise.
8863 * loader/multiboot2.c: Likewise.
8864 * loader/multiboot_loader.c: Likewise.
8865 * loader/powerpc/ieee1275/linux.c: Likewise.
8866 * loader/sparc64/ieee1275/linux.c: Likewise.
8867 * loader/xnu.c: Likewise.
8868 * loader/xnu_resume.c: Likewise.
8869 * mmap/i386/pc/mmap.c: Likewise.
8870 * normal/menu_viewer.c: Likewise.
8871 * partmap/acorn.c: Likewise.
8872 * partmap/amiga.c: Likewise.
8873 * partmap/apple.c: Likewise.
8874 * script/lexer.c: Likewise.
8875 * term/gfxterm.c: Likewise.
8876 * term/i386/pc/serial.c: Likewise.
8877 * term/i386/pc/vga.c: Likewise.
8878 * term/ieee1275/ofconsole.c: Likewise.
8879 * term/terminfo.c: Likewise.
8880 * video/bitmap.c: Likewise.
8881 * video/efi_gop.c: Likewise.
8882 * video/efi_uga.c: Likewise.
8883 * video/fb/video_fb.c: Likewise.
8884 * video/i386/pc/vbe.c: Likewise.
8885 * video/readers/tga.c: Likewise.
8886 * video/video.c: Likewise.
8888 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
8890 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
8891 * commands/lspci.c: Likewise.
8892 * commands/probe.c: Likewise.
8893 * commands/xnu_uuid.c: Likewise.
8894 * conf/i386-coreboot.rmk: Likewise.
8895 * conf/i386-efi.rmk: Likewise.
8896 * conf/i386-ieee1275.rmk: Likewise.
8897 * conf/i386-pc.rmk: Likewise.
8898 * conf/powerpc-ieee1275.rmk: Likewise.
8899 * conf/sparc64-ieee1275.rmk: Likewise.
8900 * conf/x86_64-efi.rmk: Likewise.
8901 * fs/i386/pc/pxe.c: Likewise.
8902 * gettext/gettext.c: Likewise.
8903 * include/grub/efi/graphics_output.h: Likewise.
8904 * include/grub/i386/pc/memory.h: Likewise.
8905 * kern/env.c: Likewise.
8906 * kern/i386/qemu/startup.S: Likewise.
8907 * lib/i386/pc/biosnum.c: Likewise.
8908 * lib/i386/relocator.c: Likewise.
8909 * lib/i386/relocator_asm.S: Likewise.
8910 * lib/relocator.c: Likewise.
8911 * loader/i386/bsd.c: Likewise.
8912 * loader/i386/multiboot.c: Likewise.
8913 * loader/i386/pc/chainloader.c: Likewise.
8914 * loader/i386/xnu.c: Likewise.
8915 * loader/xnu.c: Likewise.
8916 * normal/main.c: Likewise.
8917 * normal/menu_text.c: Likewise.
8918 * util/getroot.c: Likewise.
8919 * util/grub-mkconfig_lib.in: Likewise.
8920 * util/grub.d/00_header.in: Likewise.
8921 * util/i386/pc/grub-mkimage.c: Likewise.
8922 * util/mkisofs/eltorito.c: Likewise.
8923 * util/mkisofs/exclude.h: Likewise.
8924 * util/mkisofs/hash.c: Likewise.
8925 * util/mkisofs/iso9660.h: Likewise.
8926 * util/mkisofs/joliet.c: Likewise.
8927 * util/mkisofs/mkisofs.c: Likewise.
8928 * util/mkisofs/mkisofs.h: Likewise.
8929 * util/mkisofs/multi.c: Likewise.
8930 * util/mkisofs/name.c: Likewise.
8931 * util/mkisofs/rock.c: Likewise.
8932 * util/mkisofs/tree.c: Likewise.
8933 * util/mkisofs/write.c: Likewise.
8934 * video/efi_gop.c: Likewise.
8936 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8938 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
8941 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
8943 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
8944 * genmk.rb (class SCRIPT): Modify the target file instead of source.
8946 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8948 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
8949 (GRUB_MOD_INIT(memrw)): Update help line.
8951 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8953 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
8954 Use grub_extcmd_t. All users updated.
8955 (options): New variable.
8956 (grub_cmd_read): Restructure for readability. Support "-v" option.
8957 (grub_cmd_write): Restructure for readability.
8959 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
8961 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
8963 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
8965 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
8966 with the actual contents of the correspondending make variable.
8967 * util/grub-mkrescue.in (pkglib_DATA): New variable.
8968 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
8969 specifying `*.lst' and `efiemu??.o'
8971 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
8973 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
8974 after function name.
8975 Noticed by Rene Engelhard <rene@debian.org>.
8977 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8979 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
8980 (options): New variable.
8981 (iospace): Likewise.
8982 (grub_lspci_iter): List IO spaces if "-i" was given.
8983 (grub_cmd_lspci): Parse options.
8984 (GRUB_MOD_INIT(lspci)): Use extcmd.
8985 (GRUB_MOD_FINI(lspci)): Likewise.
8987 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
8989 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
8991 Patch by Tony Mancill <tmancill@debian.org>.
8993 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8995 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
8996 (grub_uhci_portstatus): Likewise.
8997 (grub_uhci_portstatus): Add necessary delay.
8998 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
9000 2009-12-21 Carles Pina i Estany <carles@pina.cat>
9002 * commands/acpi.c (options): Fix capitalizations and/or full stops.
9003 (GRUB_MOD_INIT): Likewise.
9004 * commands/boot.c (GRUB_MOD_INIT): Likewise.
9005 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
9006 * commands/echo.c (options): Fix capitalizations and/or full stops.
9007 * commands/efi/loadbios.c (enable_rom_area): Likewise.
9008 (enable_rom_area): Likewise.
9009 (GRUB_MOD_INIT): Likewise.
9010 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
9011 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
9012 * commands/handler.c (GRUB_MOD_INIT): Likewise.
9013 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
9014 * commands/hexdump.c (options): Likewise.
9015 * commands/i386/cpuid.c (options): Likewise.
9016 (GRUB_MOD_INIT): Likewise.
9017 * commands/i386/pc/drivemap.c (options): Likewise.
9018 (GRUB_MOD_INIT): Likewise.
9019 * commands/i386/pc/halt (options): Likewise.
9020 (GRUB_MOD_INIT): Likewise.
9021 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
9022 * commands/i386/pc/pxecmd.c (options): Likewise.
9023 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
9024 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
9025 * commands/keystatus.c (options): Likewise.
9026 (GRUB_MOD_INIT): Likewise.
9027 * commands/loadenv.c (options): Likewise.
9028 * commands/ls.c (options): Likewise.
9029 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
9030 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
9031 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
9032 * commands/parttool.c (helpmsg): Likewise.
9033 * commands/probe.c (options): Likewise.
9034 * commands/read.c (GRUB_MOD_INIT): Likewise.
9035 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
9036 * commands/search.c (options): Likewise.
9037 * commands/sleep.c (options): Likewise.
9038 * commands/test.c (GRUB_MOD_INIT): Likewise.
9039 * commands/true.c (GRUB_MOD_INIT): Likewise.
9040 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
9041 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
9042 * lib/arg.c (help_options): Likewise.
9043 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
9045 * po/POTFILES: Add `commands/loadenv.c'.
9047 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
9049 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
9050 instead of specifying them explicit.
9052 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9054 * NEWS: Add grub-probe support for GNU/Hurd.
9056 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9058 * NEWS: gettext was added after 1.97.
9060 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9062 * util/mkisofs/msdos_partition.h: New file (based on
9063 include/grub/msdos_partition.h).
9064 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
9065 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
9066 (ld_options, main): Recognize --protective-msdos-label.
9067 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
9068 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
9069 (padblock_write): If `use_protective_msdos_label' is set, patch a
9070 protective DOS-style label in the output image.
9072 * util/grub-mkrescue.in: Use --protective-msdos-label.
9074 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9076 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
9079 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9081 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
9083 (ld_options, main): Recognize `--embedded-boot'.
9084 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
9086 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
9087 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
9088 (padblock_write): Likewise. Rewrite to support embedded boot image.
9090 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
9091 for BIOS-based disk boot instead of only ElTorito.
9093 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9095 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
9096 build (not needed for bootstrap).
9098 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9100 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
9101 from i386-pc build (not needed for bootstrap).
9102 Rewrite a pair of strings.
9104 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9106 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
9108 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
9110 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
9112 2009-12-21 Andreas Born <futur.andy@googlemail.com>
9114 * kern/env.c (grub_env_context_open): Mark exported variable for
9117 2009-12-21 Andreas Born <futur.andy@googlemail.com>
9119 * kern/env.c (grub_env_export): Create nonexistent variables before
9122 2009-12-20 Carles Pina i Estany <carles@pina.cat>
9124 * include/grub/auth.h: Include `<grub/i18n.h>'.
9125 (GRUB_GET_PASSWORD): Gettextizze string.
9126 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
9128 (grub_utf8_to_ucs4_alloc): Fix indentation.
9129 (grub_print_ucs4): Likewise.
9130 (grub_getstringwidth): Likewise.
9131 (print_message_indented): New declaration.
9132 * normal/auth.c: Include `<grub/i18n.h>'.
9133 (grub_auth_check_authentication): Gettexttize string.
9134 * normal/cmdline.c: Include `<grub/i18n.h>'.
9135 (grub_cmdline_get): Gettextizze.
9136 * normal/color.c: Include `<grub/i18n.h>'.
9137 (grub_parse_color_name_pair): Gettexttize strings.
9138 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
9139 string (use `print_message_indented').
9140 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
9141 `include/grub/normal.h'.
9142 (print_message_indented): Renamed to ...
9143 (grub_print_message_indented): ... this. Remove `static' qualifer (now
9144 used in normal/main.c).
9145 (print_message): Use `grub_print_message_indented' instead of
9146 `print_message_indented'.
9147 (print_timeout): Likewise.
9148 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
9149 (grub_normal_print_device_info): Gettexttize strings.
9150 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
9152 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
9154 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
9155 of arguments. Return number of tokens and not arguments. All users
9158 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
9160 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
9161 non-MSDOS paritions.
9163 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9165 * include/grub/types.h (UNUSED): Removed since it conflicts with
9166 NetBSD headers. All users changed to direct __attribute__ ((unused)).
9167 Reported by Grégoire Sutre.
9169 2009-12-19 Carles Pina i Estany <carles@pina.cat>
9171 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
9172 (grub_print_ucs4_alloc): Likewise.
9173 (grub_getstringwidth): Likewise.
9174 * normal/main.c (grub_normal_init_page): Gettextize version string.
9175 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
9176 (getstringwidth): Renamed to ...
9177 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
9178 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
9179 (grub_print_ucs4): Remove `static' qualifer (now used in
9181 * po/POTFILES: Add normal/main.c.
9183 2009-12-19 Carles Pina i Estany <carles@pina.cat>
9185 * normal/menu_text.c (STANDARD_MARGIN): New macro.
9186 (print_message_indented): Add `margin_left' and `margin_right'
9188 (print_message): Update `print_message_indented' calls. Adds '\n' to the
9190 (print_timeout): Use `print_message_indented' to print the message.
9191 Deletes `second_stage' parameter.
9192 (run_menu): Update `print_timeout' calls.
9194 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9196 Fix console palette on OpenFirmware.
9198 * term/ieee1275/ofconsole.c (MAX): Removed.
9199 (colors): Redone based on VGA palette.
9200 (grub_ofconsole_setcolor): Discard brightness bit since only 8
9201 colors are supported.
9202 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
9204 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9206 Fix potential EfiEmu double prepare.
9208 * efiemu/main.c (prepared): New variable
9209 (grub_efiemu_unload): Set prepare to '0'.
9210 (grub_efiemu_prepare): Return if already prepared. Set prepared.
9212 set_virtual_address_map support.
9214 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
9216 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
9218 (grub_efiemu_crc32): Likewise.
9219 (grub_efiemu_crc64): Likewise.
9220 (grub_efiemu_set_virtual_address_map): Likewise.
9221 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
9223 (grub_autoefi_set_virtual_address_map): Likewise.
9224 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
9225 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
9226 Restructure flow to accomodate it.
9227 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
9228 (grub_efiemu_crc): Recompute CRC32.
9229 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
9230 (efiemu_ptv_relocated): ... this. Made global. All users updated.
9231 * efiemu/symbols.c (relocated_handle): New variable.
9232 (grub_efiemu_free_syms): Free relocated_handle.
9233 (grub_efiemu_alloc_syms): Allocate relocated_handle.
9234 (grub_efiemu_write_sym_markers): New function.
9235 (grub_efiemu_set_virtual_address_map): Likewise.
9237 Newer XNU parameters.
9239 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
9240 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
9241 (grub_xnu_fill_devicetree): New prototype.
9242 (grub_xnu_heap_real_start): New variable.
9243 * loader/xnu.c (get_name_ptr): New function.
9244 (grub_xnu_load_driver): Fill namelen and name.
9248 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
9249 and 'loader/macho64.c'.
9250 * conf/i386-pc.rmk: Likewise.
9251 * conf/x86_64-efi.rmk: Likewise.
9252 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
9253 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
9254 * include/grub/macho.h (grub_macho_segment64): New structure.
9255 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
9256 (grub_macho_size32): ... to this.
9257 (grub_macho32_get_entry_point): Renamed from ...
9258 (grub_macho_get_entry_point32): ... to this.
9259 (grub_macho_contains_macho64): New prototype.
9260 (grub_macho_size64): Likewise.
9261 (grub_macho_get_entry_point64): Likewise.
9262 (grub_macho32_load): Renamed from ...
9263 (grub_macho_load32): ... to this.
9264 (grub_macho32_filesize): Renamed from ...
9265 (grub_macho_filesize32): ... to this.
9266 (grub_macho32_readfile): Renamed from ...
9267 (grub_macho_readfile32): ... to this.
9268 (grub_macho_filesize64): New prototype.
9269 (grub_macho_readfile64): Likewise.
9270 (grub_macho_parse32): Likewise.
9271 (grub_macho_parse64): Likewise.
9272 * loader/macho.c: Split into ...
9273 * loader/machoXX.c: ... and this. Replace 32 with XX.
9274 * loader/macho32.c: New file.
9275 * loader/macho64.c: Likewise.
9276 * loader/xnu.c (grub_xnu_is_64bit): New variable.
9277 (grub_cmd_xnu_kernel): Make 32-bit only.
9278 (grub_cmd_xnu_kernel64): New function.
9279 (grub_xnu_load_driver): Support Mach-O 64.
9280 (grub_cmd_xnu_mkext): Likewise.
9281 * util/grub.d/30_os-prober.in (osx_entry): New function.
9282 Generate entries for 64-bit boot too.
9284 Eliminate ad-hoc tree format in XNU and EfiEmu.
9286 * efiemu/main.c (grub_efiemu_prepare): Update comment.
9287 * efiemu/pnvram.c: Rewritten to use environment variables.
9290 Inline utf16_to_utf8.
9292 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
9293 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
9295 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
9297 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
9298 * commands/usbtest.c (grub_usb_get_string): ... move here.
9299 (usb_print_str): Fix error handling.
9300 * include/grub/usb.h (grub_usb_get_string): Remove.
9302 UTF-8 to UTF-16 transformation.
9304 * conf/common.rmk (pkglib_MODULES): Add charset.mod
9305 (charset_mod_SOURCES): New variable.
9306 (charset_mod_CFLAGS): Likewise.
9307 (charset_mod_LDFLAGS): Likewise.
9308 * include/grub/utf.h: New file.
9309 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
9311 Support for device properties.
9313 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
9314 (grub_xnu_devprop_device_header): Likewise.
9315 (grub_xnu_devprop_device_descriptor): Likewise.
9316 (grub_xnu_devprop_add_device): New prototype.
9317 (grub_xnu_devprop_remove_device): Likewise.
9318 (grub_xnu_devprop_remove_property): Likewise.
9319 (grub_xnu_devprop_add_property_utf8): Likewise.
9320 (grub_xnu_devprop_add_property_utf16): Likewise.
9321 (grub_cpu_xnu_init): Likewise.
9322 (grub_cpu_xnu_fini): Likewise.
9323 (grub_cpu_xnu_unload): Likewise.
9324 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
9325 (property_descriptor): Likewise.
9326 (devices): New variable.
9327 (grub_xnu_devprop_remove_property): New function.
9328 (grub_xnu_devprop_add_device): Likewise.
9329 (grub_xnu_devprop_remove_device): Likewise.
9330 (grub_xnu_devprop_add_property): Likewise.
9331 (grub_xnu_devprop_add_property_utf8): Likewise.
9332 (grub_xnu_devprop_add_property_utf16): Likewise.
9333 (hextoval): Likewise.
9334 (grub_cpu_xnu_fill_devprop): Likewise.
9335 (grub_cmd_devprop_load): Likewise.
9336 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
9337 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
9338 (cmd_devprop_load): New variable.
9339 (grub_cpu_xnu_init): New function.
9340 (grub_cpu_xnu_fini): Likewise.
9341 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
9342 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
9343 (grub_cmd_xnu_devtree): Likewise.
9344 (hextoval): New function.
9345 (unescape): Likewise.
9346 (grub_xnu_fill_devicetree): Likewise.
9348 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
9349 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
9351 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9353 Workaround for broken ATI VBE.
9355 * video/i386/pc/vbe.c (last_set_mode): New variable.
9356 (grub_vbe_set_video_mode): Set 'last_set_mode'.
9357 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
9358 (grub_video_vbe_setup): Don't check for reserved flag.
9360 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
9362 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
9365 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
9367 UUID support for HFS.
9369 * fs/hfs.c (grub_hfs_uuid): New function.
9370 (grub_hfs_fs): New value .uuid.
9371 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
9373 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
9375 Fix a segfault with parsing unknown long options.
9377 * util/grub-mkrelpath.c (options): Zero terminate it.
9379 2009-12-13 Carles Pina i Estany <carles@pina.cat>
9381 * include/grub/misc.h (grub_puts): New declaration.
9382 (grub_puts_): Likewise.
9383 * kern/misc.c (grub_puts): New definition.
9384 (grub_puts_): Likewise.
9386 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
9388 * util/grub-probe.c (probe): Improve error message.
9390 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
9392 * loader/i386/multiboot_elfxx.c
9393 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
9396 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9400 * loader/i386/xnu_helper.S: Removed. All users updated.
9401 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
9402 (relocator_mod_SOURCES): New variable.
9403 (relocator_mod_CFLAGS): Likewise.
9404 (relocator_mod_LDFLAGS): Likewise.
9405 (relocator_mod_ASFLAGS): Likewise.
9406 * conf/x86_64.rmk: Likewise.
9407 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
9408 (grub_multiboot_payload_entry_offset): Likewise.
9409 (grub_multiboot_forward_relocator): Likewise.
9410 (grub_multiboot_forward_relocator_end): Likewise.
9411 (grub_multiboot_backward_relocator): Likewise.
9412 (grub_multiboot_backward_relocator_end): Likewise.
9413 (grub_multiboot_payload_eip): New variable.
9414 (grub_multiboot_payload_orig): Likewise.
9415 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
9416 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
9417 * include/grub/i386/memory.h
9418 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
9419 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
9420 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
9421 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
9422 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
9423 * include/grub/i386/relocator.h: New file.
9424 * include/grub/x86_64/relocator.h: Likewise.
9425 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
9426 (XNU_RELOCATOR): New macro.
9427 (grub_xnu_launcher_start): Remove.
9428 (grub_xnu_launcher_end): Likewise.
9429 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
9430 (grub_xnu_heap_real_start): Remove.
9431 (grub_xnu_heap_start): Change to void *. All users updated.
9432 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
9433 * lib/i386/relocator.c: New file.
9434 * lib/i386/relocator_asm.S: Likewise.
9435 * lib/i386/relocator_backward.S: Likewise.
9436 * lib/mips/relocator.c: Likewise.
9437 * lib/mips/relocator_asm.S: Likewise.
9438 * lib/relocator.c: Likewise.
9439 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
9441 (playground): Likewise.
9442 (grub_multiboot_payload_orig): New variable.
9443 (grub_multiboot_payload_dest): Likewise.
9444 (grub_multiboot_payload_size): Likewise.
9445 (grub_multiboot_payload_eip): Likewise.
9446 (grub_multiboot_payload_esp): Likewise.
9447 (grub_multiboot_boot): Use grub_relocator32_boot.
9448 (grub_multiboot_unload): Free relocators.
9449 (grub_multiboot): Setup stack. Use relocators.
9450 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
9451 (grub_multiboot_load_elfXX): Use relocators.
9452 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
9453 (grub_multiboot_payload_size): Likewise.
9454 (grub_multiboot_payload_dest): Likewise.
9455 (grub_multiboot_payload_entry_offset): Likewise.
9456 (grub_multiboot_forward_relocator): Likewise.
9457 (grub_multiboot_backward_relocator): Likewise.
9458 (grub_multiboot_real_boot): Likewise.
9459 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
9460 (grub_xnu_entry_point): Likewise.
9461 (grub_xnu_arg1): Likewise.
9462 (grub_xnu_stack): Likewise.
9463 (grub_xnu_launch): Removed.
9464 (grub_xnu_boot_resume): New function.
9465 (grub_xnu_boot): Use relocators.
9466 * loader/i386/xnu_helper.S: Removed.
9467 * loader/xnu.c (grub_xnu_heap_start): New variable.
9468 (grub_xnu_heap_size): Likewise.
9469 (grub_xnu_heap_malloc): Use relocators.
9470 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
9472 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9474 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
9477 2009-12-13 Carles Pina i Estany <carles@pina.cat>
9479 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
9480 GRUB_ERR_NONE before calling grub_env_set.
9482 2009-12-12 Robert Millan <rmh@aybabtu.com>
9484 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
9485 * genmk.rb (video): New variable.
9486 (CLEANFILES, VIDEOFILES): Add #{video}.
9487 (#{video}): New target rule.
9488 * genvideolist.sh: New file.
9489 * Makefile.in (pkglib_DATA): Add video.lst.
9490 (video.lst): New target rule.
9491 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
9493 * util/grub.d/30_os-prober.in: Replace `vbe' with
9494 ${GRUB_VIDEO_BACKEND}.
9496 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
9498 * THANKS: Add David Miller.
9500 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
9502 libpciaccess support.
9504 * Makefile.in (LIBPCIACCESS): New variable.
9505 (enable_grub_emu_pci): Likewise.
9506 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
9507 util/pci.c and commands/lspci.c.
9508 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
9509 * configure.ac (grub-emu-pci): New option.
9510 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
9511 (grub_pci_device_unmap_range): Likewise.
9512 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
9513 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
9514 (grub_pci_address_t) [!GRUB_UTIL]: New type.
9515 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
9516 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
9517 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
9518 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
9519 * include/grub/pciutils.h: New file.
9520 * util/pci.c: Likewise.
9522 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
9524 * util/misc.c: Don't include <errno.h> twice.
9526 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
9528 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
9529 name in an error message.
9530 (grub_biosdisk_rw): Likewise.
9532 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
9534 Eliminate NTFS 4Gib barrier.
9536 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
9537 (read_run_data): Likewise.
9538 (grub_ntfs_read_run_list): Likewise.
9539 (grub_ntfs_read_block): Likewise.
9540 (grub_ntfs_iterate_dir): Likewise.
9541 (read_mft): Likewise.
9542 (read_data): Likewise.
9544 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
9545 to avoid 64-bit division
9546 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
9547 (grub_ntfs_rlst): Use grub_disk_addr_t.
9549 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
9551 Eliminate grub-fstest 4Gib barrier.
9553 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
9554 (read_file): Fix error reporting.
9556 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
9558 Eliminate hexdump 4Gib barrier.
9560 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
9561 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
9563 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
9565 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
9568 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
9570 Remove miscellaneous files in distclean target.
9572 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
9574 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
9576 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
9577 if they're already set. This resolves the conflict between my
9578 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
9579 fixing the --grub-probe option again.
9580 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
9581 change on 2009-10-06, so that we now once again source
9582 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
9584 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
9586 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
9587 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
9590 2009-12-08 Carles Pina i Estany <carles@pina.cat>
9592 * include/grub/misc.h (grub_printf_): New declaration.
9593 * kern/misc.c (grub_printf_): New definition.
9594 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
9595 instead of `grub_printf' and `_'.
9596 * normal/menu_entry.c (store_completion): Likewise.
9598 (grub_menu_entry_run): Likewise.
9599 * normal/menu_text.c (grub_wait_after_message): Likewise.
9600 (notify_booting): Likewise.
9601 (notify_fallback): Likewise.
9602 (notify_execution_failure): Likewise.
9604 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
9606 * configure.ac: Check for vasprintf.
9607 * util/misc.c (asprintf): Move allocation from here ...
9608 (vasprintf): ... to here. New function.
9609 (xasprintf): New function.
9610 * include/grub/util/misc.h (vasprintf, xasprintf): Add
9612 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
9613 * util/grub-mkfont.c (write_font): Likewise.
9614 * util/grub-probe.c (probe): Likewise.
9615 * util/hostdisk.c (make_device_name): Likewise.
9617 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
9619 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
9620 anything even prefixed with 'cdrom' as a cdrom.
9622 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
9624 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
9627 2009-12-05 Carles Pina i Estany <carles@pina.cat>
9629 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
9630 grub_gettext_msg_list.
9631 (grub_gettext_gettranslation_from_position): Return const char *
9633 (grub_gettext_translate): Add the translated strings into a list,
9634 returns from the list if existing there.
9635 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
9636 (grub_gettext_delete_list): Delete the list.
9637 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
9638 lang environment variable is changed.
9639 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
9641 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
9643 Rename kernel.mod to kernel.img.
9645 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
9646 (kernel_mod_EXPORTS): Rename to ...
9647 (kernel_img_EXPORTS): ... this.
9648 (kernel_mod_SOURCES): Rename to ...
9649 (kernel_img_SOURCES): ... this.
9650 (kernel_mod_HEADERS): Rename to ...
9651 (kernel_img_HEADERS): ... this. All users updated.
9652 (kernel_mod_CFLAGS): Rename to ...
9653 (kernel_img_CFLAGS): ... this.
9654 (kernel_mod_ASFLAGS): Rename to ...
9655 (kernel_img_ASFLAGS): ... this.
9656 (kernel_mod_LDFLAGS): Rename to ...
9657 (kernel_img_LDFLAGS): ... this.
9658 * conf/x86_64-efi.rmk: Likewise.
9659 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
9660 (read_kernel_image): ... this. All users updated.
9661 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
9663 2009-12-05 Carles Pina i Estany <carles@pina.cat>
9665 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
9666 (print_spaces): New function.
9667 (grub_print_ucs4): New function.
9668 (getstringwidth): New function.
9669 (print_message_indented): New function.
9670 (print_message): Gettexttize strings using print_message_indented.
9671 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
9673 (get_entry_number): Gettextize and uses dynamic terminal width.
9674 (notify_booting, notify_fallback, notify_execution_failure):
9676 * normal/menu_entry.c (store_completion): Cleanup the gettextized
9679 (grub_menu_entry_run): Likewise.
9680 * PO/POTFILES: Add normal/menu_entry.c.
9682 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
9684 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
9686 2009-12-05 Carles Pina i Estany <carles@pina.cat>
9688 * util/grub-install.in: Install gettext .mo files.
9689 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
9691 2009-12-05 Carles Pina i Estany <carles@pina.cat>
9693 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
9696 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
9698 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
9699 non-firmware-dependant one in realmode.S takes precedence.
9701 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
9703 * commands/halt.c: Replace misc arch-specific headers with
9705 * commands/reboot.c: Likewise.
9706 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
9708 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
9709 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
9710 (kernel_img_SOURCES): ... to here.
9712 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
9713 * include/grub/i386/pc/init.h: Likewise.
9714 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
9715 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
9717 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
9719 * include/grub/i386/halt.h: Remove.
9720 * include/grub/i386/reboot.h: Likewise.
9722 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
9724 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
9726 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
9727 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
9728 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
9730 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
9731 * util/sparc64/ieee1275/grub-setup.c: Likewise.
9732 (usage): Add missing comma in printf.
9734 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
9736 Use the same reboot approach on i386 coreboot and qemu as we do on
9739 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
9740 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
9741 * kern/i386/reboot.c: Remove.
9742 * include/grub/i386/reboot.h (grub_reboot): Export function.
9743 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
9744 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
9745 0xf000:0xfff0 instead of 0xffff:0x0000.
9746 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
9747 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
9749 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
9751 Fix $srcdir != $objdir build.
9753 * Makefile.in (po/%.po): Rewrite as ...
9754 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
9756 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
9758 Fix GNU/Hurd grub-install crash.
9759 * util/grub-probe.c (probe): Try to access `path' only when it is not
9762 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
9764 Correct module naming.
9766 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
9767 (GRUB_MOD_INIT(efi_uga)): ... to this
9768 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
9769 (GRUB_MOD_FINI(efi_uga)): ... to this
9770 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
9771 (GRUB_MOD_INIT(efi_gop)): ... to this
9772 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
9773 (GRUB_MOD_FINI(efi_gop)): ... to this
9775 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
9777 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
9779 (usage): Translate `arg' strings using gettext().
9780 Thanks to Jordi Mallach for the suggestion.
9782 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
9784 GOP support. Based on patch from Bean
9785 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
9787 * video/efi_gop.c: New file.
9788 * include/grub/efi/graphics_output.h: Likewise.
9789 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
9790 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
9792 * conf/x86_64-efi.rmk: Likewise.
9794 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
9796 Rename efi_fb to efi_uga.
9798 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
9800 (efi_fb_mod_SOURCES): Rename this ...
9801 (efi_uga_mod_SOURCES): ... to this.
9802 (efi_fb_mod_CFLAGS): Rename this ...
9803 (efi_uga_mod_CFLAGS): ... to this.
9804 (efi_fb_mod_LDFLAGS): Rename this ...
9805 (efi_uga_mod_LDFLAGS): ... to this.
9806 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
9808 (efi_fb_mod_SOURCES): Rename this ...
9809 (efi_uga_mod_SOURCES): ... to this.
9810 (efi_fb_mod_CFLAGS): Rename this ...
9811 (efi_uga_mod_CFLAGS): ... to this.
9812 (efi_fb_mod_LDFLAGS): Rename this ...
9813 (efi_uga_mod_LDFLAGS): ... to this.
9814 * video/efi_fb.c: Move this ...
9815 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
9817 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
9819 * po/README: New file. Explain our PO file workflow.
9821 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
9823 * po/ChangeLog: Remove. Move relevant entries back to ...
9824 * ChangeLog: ... here.
9825 * po/ca.po: Remove (now handled by TLP).
9826 * po/id.po: Likewise.
9827 * po/zh_CN.po: Likewise.
9828 * Makefile.in (LINGUAS): Initialize in a way that supports
9831 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
9833 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
9834 reliing on po/LINGUAS.
9835 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
9836 (po/%.po): ... this.
9838 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
9840 * util/i386/efi/grub-mkimage.c: Include "progname.h".
9841 (main): Use `program_name' instead of nonexistent `progname'.
9843 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
9845 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
9846 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
9848 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
9850 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
9852 * conf/i386-efi.rmk: Likewise.
9853 * conf/i386-ieee1275.rmk: Likewise.
9854 * conf/powerpc-ieee1275.rmk: Likewise.
9855 * conf/sparc64-ieee1275.rmk: Likewise.
9856 * conf/x86_64-efi.rmk: Likewise.
9858 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
9860 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
9862 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
9864 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
9866 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
9868 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
9869 (grub_mkdevicemap_SOURCES): New variable.
9870 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
9871 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
9872 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
9873 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
9874 (grub_mkdevicemap_SOURCES): Remove.
9875 * conf/i386-efi.rmk: Likewise.
9876 * conf/i386-ieee1275.rmk: Likewise.
9877 * conf/i386-pc.rmk: Likewise.
9878 * conf/powerpc-ieee1275.rmk: Likewise.
9879 * conf/sparc64-ieee1275.rmk: Likewise.
9880 * conf/x86_64-efi.rmk: Likewise.
9881 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
9882 (usage): Fix strings to use `program_name'.
9883 (main): Initialize gettext.
9884 * util/grub-editenv.c: Likewise.
9885 * util/grub-emu.c: Likewise.
9886 * util/grub-fstest.c: Likewise.
9887 * util/grub-mkdevicemap.c: Likewise.
9888 * util/grub-mkfont.c: Likewise.
9889 * util/grub-mkrelpath.c: Likewise.
9890 * util/grub-pe2elf.c: Likewise.
9891 * util/grub-probe.c: Likewise.
9892 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
9893 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
9894 * util/sparc64/ieee1275/grub-setup.c: Likewise.
9896 * util/misc.c: Include `"progname.h"'.
9897 (progname): Remove variable.
9898 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
9900 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
9902 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
9903 printf and print a newline after the menuentry header line.
9904 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
9906 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
9908 autoconf >= 2.60 support $(localedir).
9910 * INSTALL: Note that autoconf 2.60 is required.
9911 * configure.ac (AC_PREREQ): Bump to 2.60.
9912 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
9913 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
9915 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
9917 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
9920 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
9922 * normal/main.c (grub_normal_read_line): Fix off-by-one
9925 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
9927 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
9928 "parser.grub" in grub_command_execute() call.
9930 2009-11-24 Carles Pina i Estany <carles@pina.cat>
9932 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
9933 * conf/i386-efi.rmk: Likewise.
9934 * conf/i386-ieee1275.rmk: Likewise.
9935 * conf/i386-pc.rmk: Likewise.
9936 * conf/powerpc-ieee1275.rmk: Likewise.
9937 * conf/sparc64-ieee1275.rmk: Likewise.
9938 * conf/x86_64-efi.rmk: Likewise.
9939 * gettext/gettex.c: Include <grub/i18n.h>.
9940 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
9942 * include/grub/i18n.h: ... to here
9943 * include/grub/i18n.h: ... to here.
9944 * kern/misc.c: Include <grub/i18n.h>
9945 (grub_gettext_dummy): Move above user.
9947 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9949 * util/Makefile.in (install-local): Convert a `for' into a normal
9952 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
9954 * autogen.sh: Add automake call.
9955 * config.guess: Remove.
9956 * config.sub: Likewise.
9957 * install-sh: Likewise.
9959 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9961 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
9963 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9965 * util/Makefile.in (install-local): Convert a make `$(foreach)'
9966 function to a normal shell `for'.
9968 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9970 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
9972 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9974 * util/grub-mkrelpath.c: New file.
9975 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
9976 (grub_mkrelpath_SOURCES): New variable.
9977 * include/grub/util/misc.h: New function prototype.
9978 * util/misc.c (make_system_path_relative_to_its_root): New function.
9980 * util/grub-mkconfig_lib.in (bindir): New variable.
9981 (grub_mkrelpath): Likewise.
9982 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
9984 * util/probe.c (probe): Make the file path relative to its root.
9985 Change a info message to use the GRUB path. Enable again the
9986 check if we can read the file with GRUB facilities.
9988 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
9991 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9993 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
9996 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
9998 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
10001 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
10003 * util/getroot.c (grub_util_is_dmraid): New function.
10004 (grub_util_get_dev_abstraction): Treat dmraid and multipath
10005 devices as normal ones, not as LVM.
10007 2009-11-23 Carles Pina i Estany <carles@pina.cat>
10009 * conf/common.rmk: Add grub-gettext_lib target and updates
10010 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
10012 * gettext/gettext.c: New file. (Reads mo files).
10013 * include/grub/file.h (grub_file_pread): New prototype.
10014 * include/grub/i18n.h (_): New prototype.
10015 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
10017 * kern/misc.c (grub_gettext_dummy): New function.
10018 * normal/menu_text.c: Include <grub/i18n.h>.
10019 * normal/menu_text.c (print_timeout): Gettexttize string.
10020 * normal/menu_text.c (print_message): Gettexttize string.
10021 * po/POTFILES: Add `normal/menu_text.c'.
10022 * po/ca.po: Add new translations.
10023 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
10024 gettext module and defines locale_dir and lang in grub.cfg.
10025 * NEWS: Add gettext support.
10027 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
10029 * util/hostdisk.c: Include `<grub/i18n.h>'.
10030 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
10031 (make_device_name): Rewrite using asprintf.
10032 (convert_system_partition_to_system_disk): Replace 0 with NULL.
10033 (find_system_device): If a device is not found, generate one just
10034 by reusing the OS path name.
10035 (read_device_map): Make it permissible for device.map not to exist.
10037 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
10039 * script/sh/execute.c: Move from here ...
10040 * script/execute.c: ... to here. Update all users.
10041 * script/sh/function.c: Move from here ...
10042 * script/function.c: ... to here. Update all users.
10043 * script/sh/lexer.c: Move from here ...
10044 * script/lexer.c: ... to here. Update all users.
10045 * script/sh/main.c: Move from here ...
10046 * script/main.c: ... to here. Update all users.
10047 * script/sh/parser.y: Move from here ...
10048 * script/parser.y: ... to here. Update all users.
10049 * script/sh/script.c: Move from here ...
10050 * script/script.c: ... to here. Update all users.
10052 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
10054 * configure.ac: Detect all `emu' platforms. Define
10055 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
10056 --enable-grub-emu logic. Disable include/grub/machine
10057 symlink on `emu' platforms.
10059 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
10060 * gensymlist.sh.in: Likewise.
10062 * include/grub/i386/coreboot/machine.h: Remove file.
10063 * include/grub/i386/efi/machine.h: Likewise.
10064 * include/grub/i386/ieee1275/machine.h: Likewise.
10065 * include/grub/i386/pc/machine.h: Likewise.
10066 * include/grub/i386/qemu/machine.h: Likewise.
10067 * include/grub/powerpc/ieee1275/machine.h: Likewise.
10068 * include/grub/sparc64/ieee1275/machine.h: Likewise.
10069 * include/grub/x86_64/efi/machine.h: Likewise.
10071 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
10072 * commands/halt.c: Likewise.
10073 * commands/reboot.c: Likewise.
10074 * include/grub/autoefi.h: Likewise.
10075 * include/grub/i386/at_keyboard.h: Likewise.
10076 * include/grub/i386/kernel.h: Likewise.
10077 * include/grub/i386/loader.h: Likewise.
10078 * include/grub/i386/pc/memory.h: Likewise.
10079 * kern/dl.c: Likewise.
10080 * kern/i386/coreboot/init.c: Likewise.
10081 * loader/i386/bsd.c: Likewise.
10082 * loader/i386/linux.c: Likewise.
10083 * loader/multiboot_loader.c: Likewise.
10084 * term/i386/pc/serial.c: Likewise.
10085 * term/usb_keyboard.c: Likewise.
10087 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
10088 `<grub/machine/machine.h>'
10089 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
10090 * util/misc.c: Remove `<grub/machine/machine.h>' and
10091 `<grub/machine/time.h>'.
10093 * Makefile.in (enable_grub_emu): Remove variable.
10094 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
10096 * conf/any-emu.rmk: New file.
10097 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
10098 (grub_emu_init.c): Move from here ...
10099 * conf/any-emu.rmk: ... to here.
10101 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
10102 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
10103 * conf/any-emu.rmk: ... to here.
10105 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
10107 * include/grub/parser.h (grub_parser_register): Document need
10108 of `name' parameter.
10109 * normal/main.c (grub_normal_read_line): Simplify prompt string.
10110 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
10113 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
10115 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
10117 * include/grub/i18n.h (N_): New macro.
10118 * util/mkisofs/mkisofs.h: Likewise.
10119 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
10121 (usage): Use gettext() to translate help strings when printing them.
10123 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
10125 Based on patch from Bean
10126 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
10128 * video/efi_fb.c: New file.
10129 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
10130 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
10132 * conf/x86_64-efi.rmk: Likewise.
10134 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
10136 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
10137 * util/i386/pc/grub-setup.c: Likewise.
10139 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
10141 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
10143 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
10144 file_get_storage_info to implement grub_guess_root_device.
10146 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
10148 * Makefile.in (target): Use make's builtin $(shell) function
10149 instead of calling directly $(SHELL) to create the locale directories,
10150 inside the $(foreach) function.
10152 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
10154 * util/grub-mkrescue.in: Print an error and usage if output option
10155 has not been given.
10157 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
10159 Patch from Loïc Minier <loic.minier@ubuntu.com>.
10160 * util/grub.d/30_os-prober.in: Cope with Linux entries where
10161 root and /boot are on different devices.
10163 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
10165 Fix build for srcdir != objdir.
10167 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
10168 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
10170 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
10171 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
10172 reference for input.
10174 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
10176 * util/grub-mkrescue.in: Use source directory direcly (without copiing
10177 or hardlinking it). Remove -J option, Joliet is not compatible with
10178 multiple source directories.
10180 2009-11-21 Carles Pina i Estany <carles@pina.cat>
10181 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
10183 * util/grub-mkrescue.in: Recognize `--override-directory' option.
10184 (process_input_dir): New function. Process an arbitrary input
10186 Misc adjustments to support both "override mode" and system-wide mode.
10188 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
10190 * configure.ac (UNIFONT_BDF): Rename to ...
10191 (FONT_SOURCE): ... this. Update all users.
10193 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
10195 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
10196 to the list of unifont files to look for.
10198 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
10200 Patch from Joe Auricchio <jauricchio@gmail.com>
10201 * commands/minicmd.c (grub_mini_cmd_clear): New function.
10202 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
10203 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
10205 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
10207 * Makefile.in (install-local): Add a missing backslash.
10209 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
10211 * include/grub/x86_64/io.h: New file.
10213 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
10215 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
10216 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
10217 Include `"progname.h"'.
10218 (main): Initialize gettext.
10219 * util/i386/pc/grub-setup.c: Gettexttize.
10220 * util/i386/pc/grub-mkimage.c: Likewise.
10222 * Makefile.in (po/*.po): Redefine as ...
10223 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
10225 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
10227 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
10229 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
10230 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
10231 (program_name): Remove.
10232 (main): Initialize gettext support.
10233 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
10234 Include `<libintl.h>'.
10237 * util/mkisofs/eltorito.c: Gettexttize.
10238 * util/mkisofs/joliet.c: Likewise.
10239 * util/mkisofs/mkisofs.c: Likewise.
10240 * util/mkisofs/multi.c: Likewise.
10241 * util/mkisofs/rock.c: Likewise.
10242 * util/mkisofs/tree.c: Likewise.
10243 * util/mkisofs/write.c: Likewise.
10245 * po/POTFILES: Update with new files.
10247 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
10249 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
10250 * util/mkisofs/iso9660.h: Likewise.
10251 * util/mkisofs/joliet.c: Likewise.
10252 * util/mkisofs/mkisofs.c: Likewise.
10253 * util/mkisofs/mkisofs.h: Likewise.
10254 * util/mkisofs/rock.c: Likewise.
10255 * util/mkisofs/tree.c: Likewise.
10256 * util/mkisofs/write.c: Likewise.
10258 * util/mkisofs/eltorito.c (rcsid): Remove.
10259 * util/mkisofs/hash.c: Likewise.
10260 * util/mkisofs/joliet.c: Likewise.
10261 * util/mkisofs/name.c: Likewise.
10262 * util/mkisofs/rock.c: Likewise.
10263 * util/mkisofs/tree.c: Likewise.
10264 * util/mkisofs/write.c: Likewise.
10266 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
10268 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
10269 instead of static allocation.
10270 * util/mkisofs/match.h: Likewise.
10272 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
10274 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
10275 and `util/grub.d/10_linux.in'.
10276 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
10277 translatable Shell files.
10279 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
10281 * Makefile.in ($(srcdir)/aclocal.m4): New target.
10283 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10285 * INSTALL: Document Automake is needed for bootstrap.
10286 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
10287 * util/grub.d/10_kfreebsd.in (bindir): New variable.
10288 Add gettext initialization.
10289 (kfreebsd_entry): Make menuentry output translatable.
10291 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10293 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
10294 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
10295 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
10296 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
10297 (LINGUAS): Auto-generate using `po/LINGUAS'.
10298 * po/LINGUAS: New file.
10300 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10302 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
10304 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
10305 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
10306 bindtextdomain() calls for gettext initialization.
10308 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10310 * gnulib/progname.c: New file (imported from Gnulib).
10311 * gnulib/progname.h: Likewise.
10312 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
10313 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
10314 (usage): Replace `progname' with `program_name'.
10315 (main): Use set_program_name() for program name initialization.
10317 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10319 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
10321 * Makefile.in (CPPFLAGS): ... to here.
10323 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
10325 * aclocal.m4: Move from here ...
10326 * acinclude.m4: ... to here.
10327 * autogen.sh: Add call to `aclocal'.
10328 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
10330 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
10332 * Makefile.in (CLEANFILES): Add `po/*.mo'.
10333 (LINGUAS): New variable.
10334 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
10335 (install-local): Install MO files.
10336 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
10337 * include/grub/i18n.h: New file.
10338 * po/POTFILES: New file.
10339 * po/ca.po: New file.
10340 * util/grub.d/10_linux.in (bindir): New variable.
10341 Add gettext initialization.
10342 (linux_entry): Make menuentry output translatable.
10343 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
10344 (usage): Make --help output translatable.
10345 (main): Initialize gettext.
10347 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10349 * import_gcry.py: New file (written by Vladimir with minor
10351 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
10353 * INSTALL: Document that Python is required for bootstrap.
10355 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10357 Import ciphers from libgcrypt 1.4.4.
10359 * lib/libgcrypt/cipher/ChangeLog
10360 * lib/libgcrypt/cipher/ac.c
10361 * lib/libgcrypt/cipher/arcfour.c
10362 * lib/libgcrypt/cipher/bithelp.h
10363 * lib/libgcrypt/cipher/blowfish.c
10364 * lib/libgcrypt/cipher/camellia-glue.c
10365 * lib/libgcrypt/cipher/camellia.c
10366 * lib/libgcrypt/cipher/camellia.h
10367 * lib/libgcrypt/cipher/cast5.c
10368 * lib/libgcrypt/cipher/cipher.c
10369 * lib/libgcrypt/cipher/crc.c
10370 * lib/libgcrypt/cipher/des.c
10371 * lib/libgcrypt/cipher/dsa.c
10372 * lib/libgcrypt/cipher/ecc.c
10373 * lib/libgcrypt/cipher/elgamal.c
10374 * lib/libgcrypt/cipher/hash-common.c
10375 * lib/libgcrypt/cipher/hash-common.h
10376 * lib/libgcrypt/cipher/hmac-tests.c
10377 * lib/libgcrypt/cipher/md.c
10378 * lib/libgcrypt/cipher/md4.c
10379 * lib/libgcrypt/cipher/md5.c
10380 * lib/libgcrypt/cipher/primegen.c
10381 * lib/libgcrypt/cipher/pubkey.c
10382 * lib/libgcrypt/cipher/rfc2268.c
10383 * lib/libgcrypt/cipher/rijndael-tables.h
10384 * lib/libgcrypt/cipher/rijndael.c
10385 * lib/libgcrypt/cipher/rmd.h
10386 * lib/libgcrypt/cipher/rmd160.c
10387 * lib/libgcrypt/cipher/rsa.c
10388 * lib/libgcrypt/cipher/seed.c
10389 * lib/libgcrypt/cipher/serpent.c
10390 * lib/libgcrypt/cipher/sha1.c
10391 * lib/libgcrypt/cipher/sha256.c
10392 * lib/libgcrypt/cipher/sha512.c
10393 * lib/libgcrypt/cipher/tiger.c
10394 * lib/libgcrypt/cipher/twofish.c
10395 * lib/libgcrypt/cipher/whirlpool.c
10397 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
10399 Fix build for systems without error().
10401 * gnulib/error.c: New file (imported from Gnulib).
10402 * gnulib/error.h: Likewise.
10403 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
10404 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
10405 (this variable is now used by error()).
10407 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
10409 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
10410 instead of relying that char is signed.
10412 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10414 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
10415 blocksize different from specified.
10416 (grub_pxefs_read): Likewise.
10418 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
10420 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
10422 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
10423 (grub_ata_readwrite): Likewise. Update 2 format strings.
10424 (grub_atapi_read): Likewise.
10426 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
10427 * conf/i386.rmk (pkglib_MODULES): ... to here ...
10428 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
10429 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
10430 (ata_mod_LDFLAGS): Move from here ...
10431 * conf/i386.rmk: ... to here ...
10432 * conf/x86_64-efi.rmk: ... and here.
10433 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
10434 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
10436 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
10438 Relicense multiboot.h, with RMS' blessing.
10440 * include/multiboot.h: Change to X11 license.
10442 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
10444 Support --version in grub-mkisofs.
10446 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
10447 (OPTION_VERSION): New macro.
10448 (ld_options): Recognize --version.
10449 (usage): Move `program_name' from here ...
10450 (program_name): ... to here. Add `static' qualifier.
10451 (main): Recognize `OPTION_VERSION'.
10453 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
10455 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
10456 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
10458 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
10460 Fix help2man generation for mkisofs.
10462 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
10463 (usage): Send output to stdout (rather than stderr).
10465 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
10467 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
10468 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
10469 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
10470 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
10471 (bin_SCRIPTS): Add `grub-mkfloppy'.
10472 (grub_mkfloppy_SOURCES): New variable.
10474 * util/grub-mkrescue.in: New file.
10475 * util/i386/pc/grub-mkfloppy.in: New file.
10477 * util/i386/coreboot/grub-mkrescue.in: Remove.
10478 * util/i386/pc/grub-mkrescue.in: Remove.
10480 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
10482 * include/grub/multiboot.h (struct grub_multiboot_header): Move
10484 * include/multiboot.h (struct multiboot_header): ... to here. Update
10486 * include/grub/multiboot.h (struct grub_multiboot_info): Move
10488 * include/multiboot.h (struct multiboot_info): ... to here. Update
10490 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
10492 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
10494 * include/grub/multiboot.h (struct grub_mod_list): Move
10496 * include/multiboot.h (struct multiboot_mod_list): ... to here.
10499 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
10501 * include/multiboot2.h (multiboot_word): Rename from this ...
10502 (multiboot2_word): ... to this. Update all users.
10503 (multiboot_header): Rename from this ...
10504 (multiboot2_header): ... to this. Update all users.
10505 (multiboot_tag_header): Rename from this ...
10506 (multiboot2_tag_header): ... to this. Update all users.
10507 (multiboot_tag_start): Rename from this ...
10508 (multiboot2_tag_start): ... to this. Update all users.
10509 (multiboot_tag_name): Rename from this ...
10510 (multiboot2_tag_name): ... to this. Update all users.
10511 (multiboot_tag_module): Rename from this ...
10512 (multiboot2_tag_module): ... to this. Update all users.
10513 (multiboot_tag_memory): Rename from this ...
10514 (multiboot2_tag_memory): ... to this. Update all users.
10515 (multiboot_tag_unused): Rename from this ...
10516 (multiboot2_tag_unused): ... to this. Update all users.
10517 (multiboot_tag_end): Rename from this ...
10518 (multiboot2_tag_end): ... to this. Update all users.
10520 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
10522 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
10523 this platform we should support Multiboot1 first.
10525 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
10526 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
10527 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
10529 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
10531 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
10532 of write calls (converting them to fwrite() if they aren't already).
10533 (get_torito_desc): Likewise.
10534 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
10536 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
10538 * util/i386/pc/grub-install.in: Move from here ...
10539 * util/grub-install.in: ... to here. Update all users.
10541 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
10543 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
10545 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
10547 Support for El Torito without floppy emulation.
10549 * util/mkisofs/eltorito.c: Include `<errno.h>'.
10550 (init_boot_catalog): Improve error handling.
10551 (get_torito_desc): Don't use floppy emulation unless requested by
10552 user. Patch boot information table when requested via
10553 `-boot-info-table'.
10554 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
10555 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
10556 (use_boot_info_table): New variables.
10557 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
10558 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
10559 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
10560 `--eltorito-emul-floppy'.
10561 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
10562 and `OPTION_ELTORITO_EMUL_FLOPPY'.
10563 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
10564 (use_boot_info_table, get_731): New prototypes.
10565 * util/mkisofs/write.c (get_731): New function.
10567 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
10569 Fix the generation of the man page.
10571 * util/pc/i386/grub-install.in: Source
10572 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
10574 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
10576 Large file support for grub-mkisofs.
10578 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
10579 * util/mkisofs/mkisofs.c (next_extent, last_extent)
10580 (session_start): Upgrade type to `uint64_t'. Update all users.
10581 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
10582 (struct directory_entry): Upgrade type of `starting_block' and
10583 `size' to `uint64_t'. Update all users.
10584 (struct deferred): Remove unused structure.
10585 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
10587 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
10588 file is larger than `UINT32_MAX'.
10589 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
10590 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
10592 (struct deferred_write): Upgrade type of `extent' and `size' to
10593 `uint64_t'. Update all users.
10594 (last_extent_written): Upgrade type to `uint64_t'. Update all
10596 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
10597 Update all users. Upgrade type of `remain' to `int64_t' and
10598 `use' to `size_t'. Use error() to handle fread() errors.
10599 (write_files): Rely on write_one_file() rather than calling
10600 xfwrite() directly.
10602 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
10604 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
10606 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10608 * util/mkisofs/fnmatch.c: Remove.
10609 * util/mkisofs/getopt1.c: Likewise.
10610 * util/mkisofs/getopt.c: Likewise.
10611 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
10612 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
10613 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
10614 `gnulib/getopt1.c' and `gnulib/getopt.c'.
10615 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
10617 * configure.ac: Detect `mingw32msvc' host_os.
10618 Check for lstat(), getuid() and getgid().
10620 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
10621 instances of `u_char' with `uint8_t'.
10623 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
10624 [!HAVE_GETUID] (getuid): New function (stub).
10625 [!HAVE_GETGID] (getgid): Likewise.
10626 [!HAVE_LSTAT] (lstat): Likewise.
10627 [!S_IROTH] (S_IROTH): New macro (dummy).
10628 [!S_IRGRP] (S_IRGRP): Likewise.
10630 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10632 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
10633 conditional expression).
10635 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10637 Import from Gnulib.
10639 * gnulib/fnmatch.c: New file.
10640 * gnulib/fnmatch.h: Likewise.
10641 * gnulib/fnmatch_loop.c: Likewise.
10642 * gnulib/getopt.c: Likewise.
10643 * gnulib/getopt.h: Likewise.
10644 * gnulib/getopt1.c: Likewise.
10645 * gnulib/getopt_int.h: Likewise.
10646 * gnulib/gettext.h: Likewise.
10648 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10650 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
10651 * normal/handler.c (read_handler_list): Likewise.
10653 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10657 * kern/command.c (grub_register_command_prio): Use
10658 grub_zalloc() instead of explicitly zeroing data.
10659 * kern/list.c: Include `<grub/mm.h>'.
10660 (grub_named_list_find): Replace `0' with `NULL'.
10661 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
10662 (fs_module_list): Change type to `grub_named_list_t'. Update all
10664 * normal/dyncmd.c (read_command_list): Add space between function
10665 call and parenthesis.
10666 * normal/handler.c (read_handler_list): Likewise.
10668 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10670 * normal/auth.c (punishment_delay): Moved from here ...
10671 (grub_auth_strcmp): ... to here (inside function).
10673 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10675 * include/grub/list.h (struct grub_named_list): Remove `const'
10676 qualifier from `name'.
10677 (struct grub_prio_list): Likewise.
10679 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10681 * normal/auth.c: Include `<grub/time.h>'.
10682 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
10684 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10686 * normal/auth.c (punishment_delay): New variable.
10687 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
10688 (grub_auth_check_authentication): Punish failed login attempts with
10689 an incremental (2^N) delay.
10691 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10693 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
10694 path with $(srcdir).
10696 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10698 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
10700 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
10702 * util/i386/coreboot/grub-mkrescue.in: New file.
10703 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
10706 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
10707 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
10708 * configure.ac: Add header and function checks to satisfy grub-mkisofs
10710 * util/mkisofs/defaults.h: New file.
10711 * util/mkisofs/eltorito.c: Likewise.
10712 * util/mkisofs/exclude.h: Likewise.
10713 * util/mkisofs/fnmatch.c: Likewise.
10714 * util/mkisofs/getopt.c: Likewise.
10715 * util/mkisofs/getopt1.c: Likewise.
10716 * util/mkisofs/hash.c: Likewise.
10717 * util/mkisofs/include/fctldefs.h: Likewise.
10718 * util/mkisofs/include/mconfig.h: Likewise.
10719 * util/mkisofs/include/prototyp.h: Likewise.
10720 * util/mkisofs/include/statdefs.h: Likewise.
10721 * util/mkisofs/iso9660.h: Likewise.
10722 * util/mkisofs/joliet.c: Likewise.
10723 * util/mkisofs/match.c: Likewise.
10724 * util/mkisofs/match.h: Likewise.
10725 * util/mkisofs/mkisofs.c: Likewise.
10726 * util/mkisofs/mkisofs.h: Likewise.
10727 * util/mkisofs/multi.c: Likewise.
10728 * util/mkisofs/name.c: Likewise.
10729 * util/mkisofs/rock.c: Likewise.
10730 * util/mkisofs/tree.c: Likewise.
10731 * util/mkisofs/write.c: Likewise.
10733 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10735 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
10738 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
10740 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
10741 `grub-mkimage' (and use $0 when possible).
10743 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
10745 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
10746 error message for excessively large memory map.
10748 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
10750 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
10753 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
10755 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
10756 message for coreboot users.
10758 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
10760 Fix build with GNU gold.
10762 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
10763 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
10764 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
10766 * aclocal.m4: Likewise.
10768 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
10770 * configure.ac (AC_PREREQ): Bump to 2.59d.
10771 * INSTALL: Make it more clear when Autoconf and Ruby are
10772 needed and when to run `./autogen.sh'.
10774 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10776 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
10779 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10781 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
10783 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10785 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
10786 giving it to GNU Mach.
10788 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10790 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
10791 GNU partition number to get internal GRUB partition number.
10793 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10795 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
10796 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
10798 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
10800 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
10801 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
10804 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
10806 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
10808 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
10812 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
10813 `-isystem=$(srcdir)/include'.
10815 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
10817 * util/i386/pc/grub-install.in: Remove hint that device.map should be
10818 checked (grub-install doesn't currently rely on it).
10820 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
10824 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
10825 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
10826 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
10827 * conf/i386-ieee1275.rmk: Likewise.
10828 * conf/i386-pc.rmk: Likewise.
10829 * conf/powerpc-ieee1275.rmk: Likewise.
10830 * conf/sparc64-ieee1275.rmk: Likewise.
10831 * conf/x86_64-efi.rmk: Likewise.
10833 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
10835 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
10837 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
10839 * include/grub/misc.h: Stop checking for APPLE_CC.
10841 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
10843 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
10844 doesn't cause an infinite call loop.
10846 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
10848 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
10851 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10853 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
10855 * Makefile.in: Likewise.
10857 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10859 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
10861 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10863 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
10865 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10867 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
10869 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10871 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
10873 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
10875 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10877 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
10878 in $(MAKEINFO) invocation. This makes it clear in output that
10879 errors are being ignored.
10881 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10883 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
10885 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
10886 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
10887 * conf/i386-ieee1275.rmk: Likewise.
10888 * conf/i386-pc.rmk: Likewise.
10889 * conf/powerpc-ieee1275.rmk: Likewise.
10890 * conf/sparc64-ieee1275.rmk: Likewise.
10891 * conf/x86_64-efi.rmk: Likewise.
10893 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
10895 * util/grub-editenv.c (main): If only a command is given, use
10896 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
10897 (usage): FILENAME is now optional and has a default.
10899 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
10901 Improve grub-mkconfig performance when there are several menu
10902 entries on a single filesystem.
10904 * util/grub.d/10_linux.in (linux_entry): Cache the output of
10905 prepare_grub_to_access_device.
10906 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
10907 * util/grub.d/30_os-prober.in: Likewise.
10909 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10911 * util/grub.d/10_freebsd.in: Remove.
10912 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
10913 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
10915 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
10917 * docs/grub.cfg: Fix example usage of *BSD loaders.
10919 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10921 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
10922 grub_util_error() call.
10924 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10926 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
10927 `reserved_first_sector' member.
10928 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
10929 `reserved_first_sector' to 1.
10930 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
10931 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
10932 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
10933 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
10934 filesystems which begin at first sector.
10935 (options): New option --skip-fs-probe.
10936 (main): Handle --skip-fs-probe and pass it to setup().
10938 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10940 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
10941 (memset): Fix function prototype.
10943 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10944 2009-10-25 Vasily Averin <vvs@parallels.com>
10946 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
10947 `dirent.direntlen == 0'.
10949 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10951 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
10953 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
10955 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10957 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
10958 `__trampoline_setup' and `__ucmpdi2'.
10959 * include/grub/powerpc/libgcc.h: Only export symbols for functions
10960 that libgcc provides.
10962 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10964 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
10965 * include/grub/sparc64/libgcc.h (memset): Likewise.
10966 * include/grub/misc.h (memset, memcmp): New function prototypes.
10968 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10970 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
10972 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
10974 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
10976 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
10977 * docs/grub.cfg: Compensate for recent change in multiboot
10978 loader (since 2009-08-14 it won't pass filename to payload).
10979 * util/grub.d/10_hurd.in: Likewise.
10981 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
10983 * config.guess: Update to latest version from config git
10985 * config.sub: Likewise.
10987 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
10989 Fix build on sparc64.
10991 * configure.ac: Perform checks for libgcc symbols before
10992 adding `-nostdlib' to LDFLAGS.
10994 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10996 Let user specify OpenBSD root device.
10998 * loader/i386/bsd.c (openbsd_root): New variable.
10999 (openbsd_opts): New option 'root'.
11000 (OPENBSD_ROOT_ARG): New macro.
11001 (grub_openbsd_boot): Use 'openbsd_root'.
11002 (grub_cmd_openbsd): Fill 'openbsd_root'.
11004 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
11006 * NEWS: Misc adjustments.
11008 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11010 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
11012 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
11014 * configure.ac: Bump version to 1.97.
11016 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
11018 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
11019 -mno-3dnow on x86 architectures. Some toolchains enable these
11020 features by default, but they rely on registers that aren't enabled
11021 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
11023 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
11025 Make entry text a bit more readable.
11027 * util/grub.d/10_linux.in: Add `with' before `Linux'.
11029 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
11031 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
11033 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
11035 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
11038 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
11040 * configure.ac: Add missing dollar.
11042 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
11044 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
11046 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
11047 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
11049 * include/grub/sparc64/libgcc.h: Likewise. Use
11050 preprocessor conditionals.
11052 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
11054 * conf/common.rmk (grub-dumpbios): Remove rule.
11055 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
11056 * util/grub-dumpbios.in: Remove file.
11058 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
11060 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
11061 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
11063 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
11064 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
11067 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
11068 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
11069 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
11070 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
11073 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
11075 * term/tparm.c: Switch to GPLv3.
11077 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
11079 * include/grub/i386/cpuid.h: Add header protection.
11081 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
11083 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
11085 * include/grub/i386/cpuid.h: New file.
11086 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
11087 (has_longmode): Rename to ...
11088 (grub_cpuid_has_longmode): ... this. Update all users. Remove
11089 `static' attribute.
11090 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
11091 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
11092 on a CPU that doesn't implement AMD64 instruction set.
11094 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
11096 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
11097 that version.texi is rebuilt on version number changes.
11099 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
11101 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
11104 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
11106 * util/i386/pc/grub-install.in: Source
11107 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
11108 that the --grub-probe option will work.
11109 * util/sparc64/ieee1275/grub-install.in: Likewise.
11111 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
11113 * configure.ac: Bump version to 1.97~beta4.
11115 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
11117 Resync grub-mkdevicemap in x86_64-efi.
11119 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
11120 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
11121 `util/devicemap.c'.
11123 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
11125 * util/grub-editenv.c (create_envblk_file): Write new block with a
11126 .new suffix and then rename it into place, to ensure atomic
11129 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
11131 Do not automatically install headers.
11133 * Makefile.in (include_DATA): Remove. Update all users.
11135 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
11137 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
11138 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
11140 * util/osdetect.lua: Remove.
11141 * script/lua/lauxlib.c: Likewise.
11142 * script/lua/ldebug.c: Likewise.
11143 * script/lua/grub_main.c: Likewise.
11144 * script/lua/lauxlib.h: Likewise.
11145 * script/lua/ldebug.h: Likewise.
11146 * script/lua/ltablib.c: Likewise.
11147 * script/lua/liolib.c: Likewise.
11148 * script/lua/lstrlib.c: Likewise.
11149 * script/lua/lualib.h: Likewise.
11150 * script/lua/ldo.c: Likewise.
11151 * script/lua/ldump.c: Likewise.
11152 * script/lua/ldo.h: Likewise.
11153 * script/lua/loslib.c: Likewise.
11154 * script/lua/lundump.c: Likewise.
11155 * script/lua/grub_lib.c: Likewise.
11156 * script/lua/ldblib.c: Likewise.
11157 * script/lua/lundump.h: Likewise.
11158 * script/lua/lmem.c: Likewise.
11159 * script/lua/grub_lib.h: Likewise.
11160 * script/lua/lmathlib.c: Likewise.
11161 * script/lua/lstate.c: Likewise.
11162 * script/lua/ltm.c: Likewise.
11163 * script/lua/lvm.c: Likewise.
11164 * script/lua/lmem.h: Likewise.
11165 * script/lua/lstate.h: Likewise.
11166 * script/lua/ltm.h: Likewise.
11167 * script/lua/ltable.c: Likewise.
11168 * script/lua/lvm.h: Likewise.
11169 * script/lua/llex.c: Likewise.
11170 * script/lua/lgc.c: Likewise.
11171 * script/lua/grub_lua.h: Likewise.
11172 * script/lua/loadlib.c: Likewise.
11173 * script/lua/lfunc.c: Likewise.
11174 * script/lua/lopcodes.c: Likewise.
11175 * script/lua/lparser.c: Likewise.
11176 * script/lua/ltable.h: Likewise.
11177 * script/lua/llex.h: Likewise.
11178 * script/lua/lgc.h: Likewise.
11179 * script/lua/lfunc.h: Likewise.
11180 * script/lua/lbaselib.c: Likewise.
11181 * script/lua/lopcodes.h: Likewise.
11182 * script/lua/lparser.h: Likewise.
11183 * script/lua/lzio.c: Likewise.
11184 * script/lua/linit.c: Likewise.
11185 * script/lua/lobject.c: Likewise.
11186 * script/lua/llimits.h: Likewise.
11187 * script/lua/lstring.c: Likewise.
11188 * script/lua/lzio.h: Likewise.
11189 * script/lua/lapi.c: Likewise.
11190 * script/lua/lcode.c: Likewise.
11191 * script/lua/lua.h: Likewise.
11192 * script/lua/lobject.h: Likewise.
11193 * script/lua/lstring.h: Likewise.
11194 * script/lua/lapi.h: Likewise.
11195 * script/lua/lcode.h: Likewise.
11196 * script/lua/luaconf.h: Likewise.
11198 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
11200 * docs/grub.texi (Command-line and menu entry commands): Document
11201 date and echo commands.
11203 2009-09-24 Pavel Roskin <proski@gnu.org>
11205 * include/grub/kernel.h (struct grub_module_header): Remove
11206 `grub_module_header_types'. Make `type' unsigned. Make `size'
11207 32-bit on all platforms.
11208 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
11209 8-bit field. Use grub_host_to_target32() for `size'.
11210 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
11211 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
11212 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
11214 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
11216 Fix "lost keypress" bug in at_keyboard.
11218 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
11219 Checks for readyness of input buffer (without flushing it).
11220 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
11221 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
11223 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
11225 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
11226 size check within GRUB_MACHINE_PCBIOS section.
11228 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
11230 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
11232 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
11233 KEYBOARD_ISREADY check.
11234 (grub_at_keyboard_checkkey): Rename to ...
11235 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
11236 Remove gratuitous cast.
11238 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
11240 * configure.ac: Call AC_PROG_MKDIR_P.
11241 * Makefile.in (docs/stamp-vti): Create docs directory. Create
11242 version.texi in $(builddir) rather than $(srcdir).
11243 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
11244 to makeinfo's @include search path.
11246 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
11248 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
11250 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
11252 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
11255 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
11257 Build info documentation. Some code borrowed from Automake.
11259 * configure.ac: Check for makeinfo.
11260 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
11261 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
11263 (MOSTLYCLEANFILES): Add vti.tmp.
11264 (docs/version.texi, docs/stamp-vti): Update automatically.
11265 (docs/grub.info): Build info documentation. Use --force and ignore
11267 (all-local): Add $(INFOS).
11268 (install-local): Install info files.
11269 (uninstall): Uninstall info files.
11270 * docs/version.texi: Remove from revision control. This file is
11271 automatically generated on build now.
11272 * gendistlist.sh: Add `*.info'.
11274 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
11276 * kern/term.c: Fix indentation.
11278 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
11280 * util/hostdisk.c: Fix a comment.
11282 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
11284 Fix regression introduced in r2539.
11286 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
11289 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
11291 * util/grub.d/30_os-prober.in: Don't throw away stderr from
11292 os-prober. Under normal operation, it does not print anything to
11293 stderr; if it does, we need to debug it, and throwing away stderr
11294 makes that excessively difficult.
11296 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
11298 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
11300 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
11302 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
11303 AC_LANG_PROGRAM from autoconf.
11304 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
11305 prototypes (fixes warning).
11307 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
11308 `--disable-werror' was used.
11310 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
11312 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
11313 uninitialized `lastaddr'.
11315 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11317 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
11319 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
11321 * commands/test.c (get_fileinfo): Return immediately if
11322 grub_fs_probe fails.
11324 2009-09-14 José Martínez <xosemp@gmail.com>
11326 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
11328 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
11330 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
11333 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
11335 * configure.ac: Remove --enable-grub-pe2elf. Only build
11336 grub-pe2elf when needed by the build system itself.
11337 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
11339 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
11341 * configure.ac: Bump version to 1.97~beta3.
11342 * docs/version.texi: Likewise.
11344 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
11346 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
11347 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
11349 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
11350 (grub_linux_setup_video): ... to here (with some adjustments).
11352 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
11354 Fix memory corruption issue (spotted by Colin Watson).
11356 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
11357 causing returned size to be stored in an incorrect memory location.
11358 Fix use of uninitialized value when storing the returned size.
11360 2009-09-12 Yves Blusseau <blusseau@zetam.org>
11362 Change clean rules to properly remove files
11364 * genmk.rb: add new clean rules
11365 * Makefile.in (clean): add the new targets
11366 (mostlyclean): likewise
11368 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
11370 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
11372 * fs/ntfs.c (init_file): Understand 64-bit sizes for
11373 non-resident files.
11375 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
11377 * configure.ac: Don't look for help2man when cross-compiling. Fixes
11378 part of bug #27349.
11380 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
11382 * util/grub-mkconfig.in: Make the created config mode 400 and
11383 print a warning if it fails.
11385 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
11387 * util/grub.d/40_custom.in: Ask user to type custom entries below
11388 comment, rather than below 'exec tail' line.
11390 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
11392 * util/grub.d/40_custom.in: Make sure that the explanatory text is
11393 visible in grub.cfg.
11395 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
11397 * util/grub.d/40_custom.in: Make it a little clearer how to use this
11400 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
11402 * docs/grub.cfg: Add an example menu entry for memtest86+.
11404 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
11406 * config.guess: Update to latest version from config git.
11407 * config.sub: Likewise.
11409 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
11411 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
11412 unknown-command case. Fixes bug #27320.
11414 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
11416 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
11417 `help' if the command exists.
11419 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
11421 * INSTALL: Require GCC 4.1.3 or later.
11423 2009-09-06 Yves Blusseau <blusseau@zetam.org>
11425 * Makefile.in (RMKFILES): add i386-qemu.rmk
11426 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
11427 $(srcdir)/stamp-h.in
11429 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
11431 * util/grub-probe.c (probe): Comment out buggy codepath, which
11432 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
11433 should be re-enabled after 1.97.
11435 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
11437 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
11440 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
11442 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
11443 unnecessary calls to grub_error.
11445 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
11447 * NEWS: Mention `keystatus' and Unicode fonts.
11449 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
11451 * configure.ac: Bump version to 1.97~beta2.
11452 * docs/version.texi: Likewise.
11454 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
11456 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
11457 containing unwind information in some cases where it previously did
11458 not. Use -fno-dwarf2-cfi-asm if available to restore the old
11459 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
11462 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
11464 Embedding loadenv module into grub-emu
11466 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
11468 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
11469 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
11470 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
11471 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
11472 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
11473 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
11475 2009-09-03 Magnus Granberg <zorry@ume.nu>
11477 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
11478 include -fPIE in the default specs.
11479 * configure.ac: Check if pie_possible is yes and add -fno-PIE
11482 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
11484 * INSTALL: Note that GNU Bison 2.3 or later is required.
11486 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
11488 * kern/i386/pc/startup.S: Fix typo.
11490 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
11492 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
11495 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
11497 * docs/grub.texi (Naming convention): Describe one-based partition
11499 (Device syntax): Likewise.
11500 (File name syntax): Likewise.
11501 (Block list syntax): Likewise.
11502 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
11504 (File name syntax): Likewise.
11505 (Command-line and menu entry commands): Document acpi, blocklist,
11506 crc, export, insmod, keystatus, ls, set, and unset commands.
11508 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
11510 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
11511 to avoid implying that only one of --shift, --ctrl, or --alt may be
11514 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
11516 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
11517 rather than comparing against S_IFREG, which will almost never work.
11519 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
11521 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
11522 (write_blocklists): Likewise.
11524 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
11526 * script/lua/grub_lua.h (fputs): Supply a format string as the first
11527 argument to grub_printf.
11529 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
11531 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
11534 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
11536 * kern/file.c (grub_file_read): Spelling fix
11538 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
11540 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
11541 loading of headers in some cases.
11543 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
11545 * configure.ac: Bump version to 1.97~beta1.
11546 * docs/version.texi: Likewise.
11548 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11550 * include/grub/i386/xnu.h: Add license header.
11551 include grub/err.h explicitly.
11553 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
11555 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
11556 to `ufs' in the vfs.root.mountfrom kernel parameter.
11558 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
11560 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
11562 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
11563 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
11565 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
11566 `ARRAY_SIZE' macro.
11568 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11570 * kern/file.c (grub_file_read): Check offset.
11571 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
11572 * fs/jfs.c (grub_jfs_read_file): Likewise.
11573 * fs/ntfs.c (grub_ntfs_read): Likewise.
11574 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
11575 * fs/minix.c (grub_minix_read_file): Correct offset check.
11576 * fs/ufs.c (grub_ufs_read_file): Likewise.
11578 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
11580 * term/i386/pc/console.c (bios_data_area): Cast
11581 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
11583 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11585 1-bit optimised blitters.
11587 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
11589 (grub_video_fbblit_replace_24bit_1bit): Likewise.
11590 (grub_video_fbblit_replace_16bit_1bit): Likewise.
11591 (grub_video_fbblit_replace_8bit_1bit): Likewise.
11592 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
11593 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
11594 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
11595 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
11597 (grub_video_fbblit_replace_24bit_1bit): Likewise.
11598 (grub_video_fbblit_replace_16bit_1bit): Likewise.
11599 (grub_video_fbblit_replace_8bit_1bit): Likewise.
11600 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
11601 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
11602 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
11603 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
11605 * video/video.c (grub_video_get_blit_format): Return
11606 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
11608 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
11610 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
11611 the first argument to grub_printf.
11613 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
11614 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
11616 Add `getkeystatus' terminal method. Add a new `keystatus' command
11619 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
11620 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
11621 modifier key bitmasks.
11622 (struct grub_term_input): Add `getkeystatus' member.
11623 (grub_getkeystatus): Add prototype.
11624 * kern/term.c (grub_getkeystatus): New function.
11626 * include/grub/i386/pc/memory.h
11627 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
11628 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
11630 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
11631 (grub_console_term_input): Set `getkeystatus' member.
11632 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
11634 (grub_usb_keyboard_getreport): Likewise.
11635 (grub_usb_keyboard_checkkey): Likewise.
11636 (grub_usb_keyboard_getkeystatus): New function.
11637 (grub_usb_keyboard_term): Set `getkeystatus' member.
11639 * commands/keystatus.c: New file.
11640 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
11641 (keystatus_mod_SOURCES): New variable.
11642 (keystatus_mod_CFLAGS): Likewise.
11643 (keystatus_mod_LDFLAGS): Likewise.
11644 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
11645 commands/keystatus.c.
11646 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11647 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11648 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
11649 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11650 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11651 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11653 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11655 Split befs.mod and afs.mod into *_be.mod and *.mod
11657 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
11658 (grub_fstest_SOURCES): Likewise.
11659 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
11660 (afs_be_mod_SOURCES): New variable.
11661 (afs_be_mod_CFLAGS): Likewise.
11662 (afs_be_mod_LDFLAGS): Likewise.
11663 (befs_be_mod_SOURCES): Likewise.
11664 (befs_be_mod_CFLAGS): Likewise.
11665 (befs_be_mod_LDFLAGS): Likewise.
11666 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
11667 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11668 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11669 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
11670 (grub_emu_SOURCES): Likewise.
11671 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11672 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11673 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11674 * fs/afs_be.c: New file.
11675 * fs/befs_be.c: New file.
11676 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
11677 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
11678 (U16): Replaced with ...
11679 (grub_afs_to_cpu16): ...this. All users updated.
11680 (U32): Replaced with ...
11681 (grub_afs_to_cpu32): ...this. All users updated.
11682 (U64): Replaced with ...
11683 (grub_afs_to_cpu64): ...this. All users updated.
11684 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
11685 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
11686 (grub_afs_validate_sblock): Check only one endianness.
11687 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
11688 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
11689 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
11690 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
11691 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
11692 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
11693 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
11694 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
11696 2009-08-26 Bean <bean123ch@gmail.com>
11698 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
11700 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
11701 (grub_xfs_inode_block): Change return type to grub_uint64_t.
11702 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
11704 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11706 NetBSD memory map support.
11708 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
11709 (grub_netbsd_btinfo_mmap_header): New structure.
11710 (grub_netbsd_btinfo_mmap_entry): Likewise.
11711 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
11713 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11715 Enable bsd.mod on coreboot.
11717 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
11718 (bsd_mod_SOURCES): New variable.
11719 (bsd_mod_CFLAGS): Likewise.
11720 (bsd_mod_LDFLAGS): Likewise.
11721 (bsd_mod_ASFLAGS): Likewise.
11722 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
11723 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
11725 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11727 Cleanup NetBSD root support.
11729 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
11730 grub_bsd_get_device.
11733 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
11735 * util/grub.d/00_header.in: Move check for the video backend of
11736 gfxterm from here ...
11737 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
11738 a suitable video backend.
11740 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11742 Fix breakage in grub-setup.
11744 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
11745 "msdos_partition_map".
11747 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11749 Fix breakage in normal/auth.c.
11751 * normal/auth.c (grub_iswordseparator): New function.
11753 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11755 Authentication support.
11757 * commands/password.c: New file.
11758 * conf/common.rmk (pkglib_MODULES): Add password.mod.
11759 (password_mod_SOURCES): New variable.
11760 (password_mod_CFLAGS): Likewise.
11761 (password_mod_LDFLAGS): Likewise.
11762 (normal_mod_SOURCES): Add normal/auth.c.
11763 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
11765 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11766 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11767 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
11768 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11769 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11770 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11771 * include/grub/auth.h: New file.
11772 * include/grub/err.h (grub_err_t): New enum value
11773 GRUB_ERR_ACCESS_DENIED.
11774 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
11776 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
11777 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
11779 * normal/auth.c: New file.
11780 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
11781 (grub_cmdline_run): Don't allow to go to command line without
11783 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
11784 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
11785 menuentry without superuser rights.
11786 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
11787 user isn't a superuser.
11789 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
11791 Save space by inlining misc.c functions.
11793 * kern/misc.c (grub_iswordseparator): Made static.
11794 * kern/misc.c (grub_strcat): Moved from here ...
11795 * include/grub/misc.h (grub_strcat): ... here. Inlined.
11796 * kern/misc.c (grub_strncat): Moved from here ...
11797 * include/grub/misc.h (grub_strncat): ... here. Inlined.
11798 * kern/misc.c (grub_strcasecmp): Moved from here ...
11799 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
11800 * kern/misc.c (grub_strncasecmp): Moved from here ...
11801 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
11802 * kern/misc.c (grub_isalpha): Moved from here ...
11803 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
11804 * kern/misc.c (grub_isdigit): Moved from here ...
11805 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
11806 * kern/misc.c (grub_isgraph): Moved from here ...
11807 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
11808 * kern/misc.c (grub_tolower): Moved from here ...
11809 * include/grub/misc.h (grub_tolower): ... here. Inlined.
11811 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
11813 * script/sh/function.c (grub_script_function_find): Cut error message
11814 not to flood terminal.
11815 * script/sh/lexer.c (grub_script_yylex): Remove command line length
11817 * script/sh/script.c (grub_script_arg_add): Duplicate string.
11819 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
11821 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
11822 `report' grub_uint8_t *.
11823 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
11824 Use a 50-millisecond timeout rather than just repeating
11825 grub_usb_keyboard_getreport 50 times.
11826 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
11828 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
11830 Rename *_partition_map to part_*
11832 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
11833 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
11834 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
11835 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
11837 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
11839 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
11840 * util/grub-probe.c (probe_partmap): Don't transform partition name
11841 to get module name.
11843 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
11845 Fix OpenBSD and NetBSD support.
11847 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
11848 memory address conflict.
11849 (OPENBSD_MMAP_ACPI): New definition.
11850 (OPENBSD_MMAP_NVS): Likewise.
11851 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
11852 and OPENBSD_MMAP_NVS.
11853 Add memory map terminator
11854 Explicit cast when calling grub_unix_real_boot.
11855 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
11857 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
11859 Let user specify NetBSD root device.
11861 * loader/i386/bsd.c (netbsd_root): New variable.
11862 (netbsd_opts): New option 'root'.
11863 (NETBSD_ROOT_ARG): New macro.
11864 (grub_netbsd_boot): Use 'netbsd_root'.
11865 (grub_bsd_unload): Free 'netbsd_root'.
11866 (grub_cmd_netbsd): Fill 'netbsd_root'.
11868 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
11870 Support for 64-bit NetBSD.
11872 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
11873 point when booting non-FreeBSD.
11875 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
11877 Support --no-smp and --no-acpi for NetBSD.
11879 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
11880 (NETBSD_AB_NOACPI): Likewise.
11881 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
11882 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
11884 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11886 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
11888 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
11889 errors. Call grub_error when needed.
11891 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11893 * commands/search.c (search_fs): Try searching without autoload first.
11894 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11895 filesystem module explicitly for faster booting.
11897 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
11899 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
11901 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
11903 * util/grub.d/30_os-prober.in: Disable os-prober if
11904 `GRUB_DISABLE_OS_PROBER' was set to true.
11906 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
11908 * partmap/pc.c: Rename to ...
11909 * partmap/msdos.c: ... this. Update all users.
11910 (grub_pc_partition_map): Rename to ...
11911 (grub_msdos_partition_map): ... this. Update all users.
11913 * parttool/pcpart.c: Rename to ...
11914 * parttool/msdospart.c: ... this. Update all users.
11916 * include/grub/pc_partition.h: Rename to ...
11917 * include/grub/msdos_partition.h: ... this. Update all users.
11918 (grub_pc_partition_bsd_entry): Rename to ...
11919 (grub_msdos_partition_bsd_entry): ... this. Update all users.
11920 (grub_pc_partition_disk_label): Rename to ...
11921 (grub_msdos_partition_disk_label): ... this. Update all users.
11922 (grub_pc_partition_entry): Rename to ...
11923 (grub_msdos_partition_entry): ... this. Update all users.
11924 (grub_pc_partition_mbr): Rename to ...
11925 (grub_msdos_partition_mbr): ... this. Update all users.
11926 (grub_pc_partition): Rename to ...
11927 (grub_msdos_partition): ... this. Update all users.
11928 (grub_pc_partition_is_empty): Rename to ...
11929 (grub_msdos_partition_is_empty): ... this. Update all users.
11930 (grub_pc_partition_is_extended): Rename to ...
11931 (grub_msdos_partition_is_extended): ... this. Update all users.
11932 (grub_pc_partition_is_bsd): Rename to ...
11933 (grub_msdos_partition_is_bsd): ... this. Update all users.
11935 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
11936 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
11937 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
11938 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
11939 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
11940 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
11941 (gpt_mod_LDFLAGS): Rename to ...
11942 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
11943 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
11944 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
11945 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
11946 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
11947 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
11948 (part_gpt_mod_LDFLAGS): ... this.
11949 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
11950 `pcpart.mod' to `msdospart.mod'.
11951 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
11953 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
11954 (msdospart_mod_LDFLAGS): ... this.
11956 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11958 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
11959 (openbsd_opts): Likewise.
11960 (netbsd_opts): Likewise.
11961 (freebsd_flags): Added 0 terminator.
11962 (openbsd_flags): Likewise.
11963 (netbsd_flags): Likewise.
11964 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
11965 (grub_cmd_freebsd): Transformed into extended command.
11966 (grub_cmd_openbsd): Likewise.
11967 (grub_cmd_netbsd): Likewise.
11968 (cmd_freebsd): Changed type to grub_extcmd_t.
11969 (cmd_openbsd): Likewise.
11970 (cmd_netbsd): Likewise.
11971 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
11972 grub_cmd_openbsd as extended commands.
11973 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
11974 cmd_netbsd and cmd_openbsd
11976 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
11978 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
11980 2009-08-21 Pavel Roskin <proski@gnu.org>
11982 * Makefile.in (install-local): When checking if a file is in the
11983 build directory, use "test -e" to detect symlinks.
11985 * Makefile.in (install-local): Remove all files in
11986 $(DESTDIR)$(pkglibdir) before installing new files there.
11988 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
11990 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
11993 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
11995 * util/grub-mkconfig.in: Don't use gfxterm by default if not
11996 explicitly specified by the user.
11998 2009-08-18 Pavel Roskin <proski@gnu.org>
12000 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
12001 grub_uint8_t pointer for data.
12002 * include/grub/fbutil.h (struct grub_video_fbblit_info):
12004 * video/fb/fbutil.c: Remove unnecessary casts.
12006 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
12010 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
12011 (grub_vbe_set_video_mode): Save active mode info
12012 only after setting the mode.
12013 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
12016 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
12018 Rename variables for clarity.
12020 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
12021 (active_vbe_mode_info): ... this. All users updated.
12022 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
12024 (initial_mode): Rename to ...
12025 (initial_vbe_mode): ... this. All users updated.
12026 (mode_in_use): Rename to ..
12027 (vbe_mode_in_use): ... this. All users updated.
12028 (mode_list): Rename to ..
12029 (vbe_mode_list): ... this. All users updated.
12030 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
12031 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
12032 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
12033 'mode_list_size' to 'vbe_mode_list_size'.
12034 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
12035 'best_mode_info' to 'best_vbe_mode_info' and
12036 'best_mode' to 'best_vbe_mode'
12038 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
12040 Remove duplicate grub_video_fb_get_video_ptr.
12042 * include/grub/fbutil.h (get_data_ptr): Rename to ...
12043 (grub_video_fb_get_video_ptr): ... this.
12044 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
12045 * video/fb/fbutil.c: Add comment about addressing.
12046 (get_data_ptr): Rename to ...
12047 (grub_video_fb_get_video_ptr): ... this. All users updated.
12048 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
12050 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
12052 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
12053 grub_dprintf() that was just added.
12055 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
12057 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
12058 (DEFAULT_VIDEO_MODE): Remove macros.
12059 (grub_linux_boot): Remove assumption that Linux has FB support,
12060 and use "text" as default video mode.
12062 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
12064 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
12066 * fs/fat.c (grub_fat_read_data): Likewise.
12068 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
12070 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
12072 (grub_module): Likewise.
12074 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
12076 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
12077 mbi->cmdline but free playground.
12079 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
12081 Handle group offset on UFS1.
12083 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
12084 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
12086 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
12088 Split ufs.mod into ufs1.mod and ufs2.mod.
12090 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
12091 (grub_fstest_SOURCES): Likewise.
12092 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
12093 (ufs_mod_SOURCES): Remove.
12094 (ufs_mod_CFLAGS): Likewise.
12095 (ufs_mod_LDFLAGS): Likewise.
12096 (ufs1_mod_SOURCES): New variable.
12097 (ufs1_mod_CFLAGS): Likewise.
12098 (ufs1_mod_LDFLAGS): Likewise.
12099 (ufs2_mod_SOURCES): New variable.
12100 (ufs2_mod_CFLAGS): Likewise.
12101 (ufs2_mod_LDFLAGS): Likewise.
12102 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
12103 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
12105 (grub_emu_SOURCES): Likewise.
12106 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12107 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
12108 (grub_setup_SOURCES): Likewise.
12109 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12110 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
12111 (grub_setup_SOURCES): Likewise.
12112 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
12114 * fs/ufs2.c: New file.
12115 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
12117 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
12121 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
12122 subsystem at the end.
12123 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
12124 (video_fb_mod_SOURCES): New variable.
12125 (video_fb_mod_CFLAGS): Likewise.
12126 (video_fb_mod_LDFLAGS): Likewise.
12127 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
12128 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
12129 * video/i386/pc/vbeblit.c: Moved from here ...
12130 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
12131 * video/i386/pc/vbefill.c: Moved from here ...
12132 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
12133 * video/i386/pc/vbeutil.c: Moved from here ...
12134 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
12135 * include/grub/i386/pc/vbeblit.h: Moved from here ...
12136 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
12137 * include/grub/i386/pc/vbefill.h: Moved from here ...
12138 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
12139 * include/grub/i386/pc/vbeutil.h: Moved from here ...
12140 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
12141 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
12142 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
12143 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
12144 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
12145 (grub_video_adapter): Added 'get_info_and_fini'.
12146 (grub_video_get_info_and_fini): New prototype.
12147 (grub_video_set_mode): make modestring const char *.
12148 * loader/i386/linux.c (grub_linux_setup_video): Use
12149 grub_video_get_info_and_fini.
12150 (grub_linux_boot): Move modesetting just before booting.
12151 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
12152 grub_video_get_info_and_fini.
12153 * video/i386/pc/vbe.c: Moved framebuffer part ...
12154 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
12155 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
12156 grub_video_fbstd_colors and grub_video_fb_set_palette.
12157 (grub_video_vbe_init): Clear 'framebuffer' variable and use
12158 grub_video_fb_init.
12159 (grub_video_vbe_fini): Use grub_video_fb_fini.
12160 (grub_video_vbe_setup): Use framebuffer.render_target instead of
12161 render_target and use grub_video_fb_set_active_render_target and
12162 grub_video_fb_set_palette.
12163 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
12164 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
12165 (grub_video_vbe_adapter): Use framebuffer.
12166 * video/video.c (grub_video_get_info_and_fini): New function.
12167 (grub_video_set_mode): Make modestring const char *.
12168 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
12169 values are already initialised.
12171 2009-08-14 Pavel Roskin <proski@gnu.org>
12173 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
12175 * boot/i386/pc/diskboot.S: Likewise.
12176 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
12177 sectors allow compilation on MacOSX.
12178 * conf/i386-pc.rmk: Enable unconditional compilation of
12181 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
12183 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
12184 * util/grub.d/00_header.in: Enter interruptible sleep if
12185 GRUB_HIDDEN_TIMEOUT is set.
12187 2009-08-13 Yves Blusseau <blusseau@zetam.org>
12189 * include/grub/symbol.h: Add the LOCAL macro.
12190 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
12191 starting with "L_".
12193 2009-08-13 Pavel Roskin <proski@gnu.org>
12195 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
12196 any modern compilers we support.
12198 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
12199 Use local labels starting with "L_" so that Apple assembler
12200 knows they are local.
12202 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
12204 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
12205 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
12206 (bsd_kernel_types): ... this enum.
12208 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
12209 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
12210 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
12212 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
12213 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
12214 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
12217 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
12219 * util/grub-dumpdevtree: Moved from here ...
12220 * util/i386/efi/grub-dumpdevtree: ... to here.
12221 (hexify): New function. Converts a string to its hex version.
12222 Generate hex versions of "efi" and "device-properties" by calling
12223 hexify() on the ASCII strings rather than by hardcoding numbers.
12225 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
12227 * fs/jfs.c: Update copyright year.
12229 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
12231 * util/grub.d/00_header.in: Fix a comment.
12232 * util/grub.d/10_linux.in: Likewise.
12233 * util/grub.d/10_windows.in: Likewise.
12234 * util/grub.d/10_hurd.in: Likewise.
12236 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
12238 * util/grub-mkconfig.in: Allow the user to specify the used font
12241 2009-08-08 Pavel Roskin <proski@gnu.org>
12243 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
12244 available, xfs.mod needs it now.
12246 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
12247 the "g" modifier in sed when the intention is to strip something
12248 once. This fixes comparison of kernels with multiple dashes.
12250 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
12251 on it. Add missing space before closing bracket. Fix
12252 misleading formatting.
12254 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
12256 * docs/grub.texi: Major overhaul. Remove all sections that are
12257 specific to GRUB Legacy, or mostly composed of Legacy-specific
12260 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
12262 * docs/version.texi: New file. Provides version information for
12265 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
12267 * docs/grub.texi: Update CVS information to SVN.
12268 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
12270 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
12272 * util/grub-mkconfig.in: Remove a wrong `fi'.
12274 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
12276 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
12277 (grub_jfs_uuid): New function.
12278 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
12280 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
12282 * util/grub-mkconfig_lib.in (font_path): Move the functionality
12284 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
12285 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
12287 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
12289 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
12290 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
12293 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
12294 not just "vmlinu[zx]".
12295 Moved from here ...
12296 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
12299 * util/grub.d/10_linux.in (find_latest): Moved from here ...
12300 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
12303 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
12305 * util/grub.d/10_freebsd.in: Use an absolute device path for
12306 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
12308 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
12310 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
12311 handling of multiple abstraction modules.
12313 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
12315 Fix a bug resulting in black screen when loading Linux using a
12318 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
12321 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
12322 (grub_vbe_bios_getset_dac_palette_width): New function.
12323 (grub_vbe_bios_get_dac_palette_width)
12324 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
12325 grub_vbe_bios_getset_dac_palette_width()).
12327 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
12328 check for return status.
12329 (grub_vbe_get_video_mode_info): When getting information for a packed
12330 mode (<= 8 bpp), obtain DAC palette width using
12331 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
12332 {red,green,blue}_mark_size.
12334 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
12336 * commands/search.c (options): Fix help output to match actual code.
12338 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
12340 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
12343 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
12345 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
12346 on XFS or ReiserFS.
12348 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
12350 Support Apple partition map with sector size different from 512 bytes.
12352 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
12353 (apple_partition_map_iterate): Respect 'aheader.blocksize'
12354 and 'apart.partmap_size'.
12356 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
12357 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
12361 * commands/i386/cpuid.c (options): New variable.
12362 (grub_cmd_cpuid): Return real error.
12363 (GRUB_MOD_INIT(cpuid)): Declare options.
12365 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
12367 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
12370 2009-07-31 Bean <bean123ch@gmail.com>
12372 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
12374 (grub_fshelp_node): Move inode field to the end.
12375 (grub_xfs_data): Remove inode field.
12376 (grub_xfs_inode_block): Calculate inode size using sblock.
12377 (grub_xfs_inode_offset): Likewise.
12378 (grub_xfs_read_inode): Calculate inode size using sblock.
12379 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
12380 (grub_xfs_iterate_dir): Calculate inode size using sblock.
12381 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
12382 to match inode size.
12383 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
12384 not accessible when data is null.
12385 (grub_xfs_open): Likewise.
12387 2009-07-31 Bean <bean123ch@gmail.com>
12389 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
12390 Don't change pv->disk if it's already set.
12392 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
12393 (grub_raid_register): ... here.
12394 (grub_raid_rescan): Removed.
12396 * include/grub/raid.h (grub_raid_rescan): Removed.
12398 * util/grub-fstest.c: Remove include file <grub/raid.h>.
12399 (fstest): Replace grub_raid_rescan with module fini function followed
12402 * util/grub-probe.c: Add include file <grub/raid.h>.
12403 (probe_raid_level): New function.
12404 (probe): Detect abstraction by walking the disk device, support two
12405 level of abstraction (LVM on RAID) when detecting partition map.
12407 2009-07-31 Pavel Roskin <proski@gnu.org>
12409 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
12410 to grub_zalloc(), it was erroneous.
12411 Reported by Bean <bean123ch@gmail.com>
12413 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
12415 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
12416 embedding zone, not only the first one.
12418 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
12420 * term/gfxterm.c (clear_char): New function.
12421 (grub_virtual_screen_setup): Use clear_char.
12422 (scroll_up): Likewise.
12423 (grub_virtual_screen_cls): Likewise.
12425 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
12427 * util/deviceiter.c (get_acceleraid_disk_name): New static
12429 (grub_util_iterate_devices): Handle Accelraid devices.
12430 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
12432 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
12434 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
12435 separator for the suggested gfxpayload string (';' collides with the
12436 parser and needs escaping).
12438 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
12440 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
12441 Clear direction flag before jumping to OS.
12442 (grub_multiboot2_real_boot): Likewise.
12444 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
12446 * util/i386/pc/grub-install: Fix parsing of --disk-module
12449 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
12451 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
12454 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
12456 * util/grub-mkconfig.in (package_version): New variable.
12457 Use it do display the version.
12459 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
12461 * kern/file.c (grub_file_open): Revert to previous check with
12464 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12466 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
12467 from help line. It's out of sync with code.
12469 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12471 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
12472 entries on failed boot.
12474 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
12476 * kern/file.c (grub_file_open): Fix an error check.
12478 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
12480 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
12481 partition map couldn't be identified.
12483 2009-07-23 Pavel Roskin <proski@gnu.org>
12485 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
12486 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
12487 case of little endian words becomes just an optimization.
12488 Respect const modifier.
12489 (md5_final): Use code that doesn't depend on endianness.
12491 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
12492 to avoid loss of upper bits if align is unsigned and shorter
12495 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
12497 UUID support for UFS
12499 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
12500 (grub_ufs_uuid): New function.
12501 (grub_ufs_fs): add .uuid
12503 2009-07-21 Pavel Roskin <proski@gnu.org>
12505 * kern/dl.c (grub_dl_check_header): Make static.
12507 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
12509 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
12510 add drivemap for Vista. It breaks Windows 7.
12512 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
12514 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
12517 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12521 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
12522 (grub_fstest_SOURCES): Likewise.
12523 (pkglib_MODULES): Add befs.mod.
12524 (befs_mod_SOURCES): New variable.
12525 (befs_mod_CFLAGS): Likewise.
12526 (befs_mod_LDFLAGS): Likewise.
12527 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12528 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12529 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12530 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
12531 (grub_setup_SOURCES): Likewise.
12532 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12533 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12534 (grub_setup_SOURCES): Likewise.
12535 * fs/befs.c: New file.
12536 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
12537 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
12538 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
12539 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
12540 (B_KEY_INDEX_ALIGN): New declaration.
12541 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
12542 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
12543 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
12544 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
12545 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
12546 (grub_afs_mount) [MODE_BFS]: Likewise.
12547 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
12548 (grub_afs_fs): Use GRUB_AFS_FSNAME
12549 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
12550 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
12551 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
12552 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
12554 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
12556 * util/getroot.c (find_root_device): Add support for MacOSX.
12557 * util/hostdisk.c: Likewise.
12559 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12561 * font/font.c (find_glyph): Check whether a font is present to avoid
12562 segmentation fault.
12564 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
12566 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
12568 2009-07-20 Pavel Roskin <proski@gnu.org>
12570 * configure.ac: Trim excessively wordy excuses.
12572 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12574 Add symlink, mtime and label support to AtheFS.
12576 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
12577 (grub_afs_iterate_dir): Handle symlinks.
12578 (grub_afs_open): Use grub_afs_read_symlink.
12579 (grub_afs_dir): Likewise.
12581 (grub_afs_label): New function.
12582 (grub_afs_fs): Add grub_afs_label.
12583 (grub_afs_read_symlink): New function.
12585 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12587 Fix AtheFS support.
12589 * fs/afs.c: Fix comments style.
12590 (grub_afs_blockrun): Declare as packed.
12591 (grub_afs_datastream): Likewise.
12592 (grub_afs_bnode): Likewise.
12593 (grub_afs_btree): Likewise.
12594 (grub_afs_sblock): Likewise.
12595 Declare `name' as char.
12596 (grub_afs_inode): Declare as packed.
12597 Change void *vnode to grub_uint32_t unused.
12598 (grub_afs_iterate_dir): Check that key_size is positive.
12599 (grub_afs_mount): Don't read superblock twice.
12600 (grub_afs_dir): Don't free node in case of error,
12601 grub_fshelp_find_file already handles this.
12602 (grub_afs_open): Likewise.
12604 2009-07-19 Pavel Roskin <proski@gnu.org>
12606 * Makefile.in: Remove LIBLZO and enable_lzo.
12607 * conf/i386-pc.rmk: Remove lzo support.
12608 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
12609 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
12611 * kern/i386/pc/lzo1x.S: Remove.
12612 * kern/i386/pc/startup.S: Remove lzo support.
12613 * util/i386/pc/grub-mkimage.c: Likewise.
12615 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
12617 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
12618 * fs/xfs.c (grub_xfs_dir): Likewise.
12619 * fs/afs.c (grub_afs_dir): Likewise.
12620 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
12621 (grub_iso9660_open): Likewise.
12622 * fs/jfs.c (grub_jfs_open): Likewise.
12623 * fs/ext2.c (grub_ext2_dir): Likewise.
12624 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
12625 * script/sh/lexer.c (grub_script_yylex): Likewise.
12627 2009-07-16 Pavel Roskin <proski@gnu.org>
12629 * configure.ac: Never add "-c" to CFLAGS.
12631 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
12633 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
12634 grub_cv_cc_efiemu should be used.
12636 * configure.ac: Typo fixes.
12638 * kern/mm.c (grub_zalloc): New function.
12639 (grub_debug_zalloc): Likewise.
12640 * include/grub/mm.h: Declare grub_zalloc() and
12641 grub_debug_zalloc().
12642 * util/misc.c (grub_zalloc): New function.
12643 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
12644 instead of grub_malloc(), remove unneeded initializations.
12645 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
12646 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
12647 * commands/parttool.c (grub_cmd_parttool): Likewise.
12648 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
12649 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
12650 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
12651 * disk/usbms.c (grub_usbms_finddevs): Likewise.
12652 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
12653 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
12654 (grub_cmd_efiemu_pnvram): Likewise.
12655 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
12656 * fs/iso9660.c (grub_iso9660_mount): Likewise.
12657 (grub_iso9660_iterate_dir): Likewise.
12658 * fs/jfs.c (grub_jfs_opendir): Likewise.
12659 * fs/ntfs.c (list_file): Likewise.
12660 (grub_ntfs_mount): Likewise.
12661 * kern/disk.c (grub_disk_open): Likewise.
12662 * kern/dl.c (grub_dl_load_core): Likewise.
12663 * kern/elf.c (grub_elf_file): Likewise.
12664 * kern/env.c (grub_env_context_open): Likewise.
12665 (grub_env_set): Likewise.
12666 (grub_env_set_data_slot): Likewise.
12667 * kern/file.c (grub_file_open): Likewise.
12668 * kern/fs.c (grub_fs_blocklist_open): Likewise.
12669 * loader/i386/multiboot.c (grub_module): Likewise.
12670 * loader/xnu.c (grub_xnu_create_key): Likewise.
12671 (grub_xnu_create_value): Likewise.
12672 * normal/main.c (grub_normal_add_menu_entry): Likewise.
12673 (read_config_file): Likewise.
12674 * normal/menu_entry.c (make_screen): Likewise.
12675 * partmap/sun.c (sun_partition_map_iterate): Likewise.
12676 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
12677 * script/sh/script.c (grub_script_parse): Likewise.
12678 * video/bitmap.c (grub_video_bitmap_create): Likewise.
12679 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
12680 * video/readers/png.c (grub_png_output_byte): Likewise.
12681 (grub_video_reader_png): Likewise.
12683 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
12685 Enable all targets that can be built by default
12687 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
12688 grub-mkfont and grub-fstest if they can be built
12690 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
12692 Fix hang and segmentation fault in grub-emu-usb
12694 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
12695 * util/usb.c (grub_libusb_devices): likewise
12696 (grub_libusb_init): rename to ...
12697 (GRUB_MOD_INIT (libusb)):...this
12698 (grub_libusb_fini): rename to ..
12699 (GRUB_MOD_FINI (libusb)):...this
12700 * disk/usbms.c (grub_usbms_transfer): fix retry logic
12701 * include/grub/disk.h (grub_raid_init): removed, it's useless
12702 (grub_raid_fini): likewise
12703 (grub_lvm_init): likewise
12704 (grub_lvm_fini): likewise
12705 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
12708 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
12712 * Makefile.in (LIBUSB): new macro
12713 * genmk.rb (Utility/print_tail): new method
12714 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
12715 (top level): call util.print_tail at the end.
12717 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
12719 Make FreeBSD accept zpool.cache
12721 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
12722 type is /boot/zfs/zpool.cache
12724 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
12728 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
12729 correct wrong typedef
12730 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
12732 2009-07-15 Pavel Roskin <proski@gnu.org>
12734 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
12735 * kern/disk.c (struct grub_disk_cache): Likewise.
12737 * commands/probe.c (options): Typo fix.
12739 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
12740 Increase to 0x5a to accommodate FAT32. Adjust other offsets
12742 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
12744 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
12745 the end of "Error" to make the message more readable.
12747 * boot/i386/pc/boot.S (kernel_segment): Remove.
12748 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
12751 * boot/i386/pc/boot.S (boot_version): Remove.
12752 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
12755 * include/grub/i386/pc/boot.h: Sort all offsets.
12756 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
12757 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
12758 * boot/i386/pc/boot.S: Assert location of every offset listed in
12759 include/grub/i386/pc/boot.h.
12761 2009-07-13 Pavel Roskin <proski@gnu.org>
12763 * include/grub/i386/coreboot/machine.h: Rename
12764 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
12765 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
12766 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
12768 * kern/dl.c: Force native word size to suppress warnings when
12769 compiling grub-emu.
12771 * kern/device.c (grub_device_iterate): Change struct part_ent to
12772 hold the name, not a pointer to it. Use one grub_malloc() per
12773 partition, not two. Free partition_name if grub_malloc() fails.
12774 Set ents to NULL only before grub_partition_iterate() is called.
12776 2009-07-11 Bean <bean123ch@gmail.com>
12778 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
12781 2009-07-10 Bean <bean123ch@gmail.com>
12782 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
12784 * kern/ieee1275/openfw.c (grub_children_iterate)
12785 (grub_devalias_iterate): Fix size evaluation for property or path
12786 strings, which was broken since r2132.
12788 2009-07-07 Pavel Roskin <proski@gnu.org>
12790 * commands/search.c (search_file): Merge into ...
12791 (search_fs): ... this. Accept search type as argument.
12792 (grub_cmd_search): Pass search type to search_fs().
12794 * include/grub/util/console.h: New file.
12795 * util/console.c: Use it instead of grub/machine/console.h.
12796 * util/grub-emu.c: Likewise.
12798 * lib/arg.c (find_long_option): Remove.
12799 (find_long): Add `len' argument, make `s' const char *.
12800 (grub_arg_parse): Parse long options in place, not in a
12803 2009-07-06 Pavel Roskin <proski@gnu.org>
12805 * commands/search.c (search_fs): Fix potential NULL pointer
12808 * commands/search.c (search_fs): Replace QUID macro with quid_fn
12811 2009-07-06 Daniel Mierswa <impulze@impulze.org>
12813 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
12816 2009-07-05 Pavel Roskin <proski@gnu.org>
12818 * include/grub/i386/linux.h (struct linux_kernel_params):
12819 Restore padding3, it's still needed.
12821 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
12823 * util/osdetect.lua: Likewise.
12825 2009-07-05 Bean <bean123ch@gmail.com>
12827 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
12829 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
12830 (grub_lua_getenv): Likewise.
12831 (grub_lua_setenv): Likewise.
12832 (save_errno): New function.
12833 (push_result): Likewise.
12834 (grub_lua_enum_device): Likewise.
12835 (grub_lua_enum_file): Likewise.
12836 (grub_lua_file_open): Likewise.
12837 (grub_lua_file_close): Likewise.
12838 (grub_lua_file_seek): Likewise.
12839 (grub_lua_file_read): Likewise.
12840 (grub_lua_file_getline): Likewise.
12841 (grub_lua_file_getsize): Likewise.
12842 (grub_lua_file_getpos): Likewise.
12843 (grub_lua_file_eof): Likewise.
12844 (grub_lua_file_exist): Likewise.
12845 (grub_lua_add_menu): Likewise.
12847 * script/lua/grub_lua.h (isupper): New inline function.
12848 (islower): Likewise.
12849 (ispunct): Likewise.
12850 (isxdigit): Likewise.
12851 (strcspn): Change to normal function.
12852 (strpbkr): New function declaration.
12853 (memchr): Likewise.
12855 * script/lua/grub_main.c (scan_str): New function.
12856 (strcspn): Likewise.
12857 (strpbrk): Likewise.
12858 (memchr): Likewise.
12860 * script/lua/linit.c (lualibs): Enable the string library.
12862 * util/osdetect.lua: New file.
12864 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
12866 * include/grub/i386/linux.h (struct linux_kernel_params): Add
12867 `capabilities' member.
12869 2009-07-02 Pavel Roskin <proski@gnu.org>
12871 * genparttoollist.sh: Add missing newline at the end.
12873 2009-07-01 Pavel Roskin <proski@gnu.org>
12875 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
12877 * util/hostdisk.c (open_device): Remove `const' from
12878 `sysctl_size', as sysctlbyname() can change it (in this case it
12879 doesn't actually happen).
12881 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
12882 using signed long int constants.
12884 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
12885 constant to avoid a warning on FreeBSD.
12887 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
12890 * Makefile.in: Install include/grub/machine symlink.
12892 * Makefile.in: When installing symlinks, use "cp -fR", which
12893 works on FreeBSD and MacOSX.
12894 From Yves Blusseau <cl7m42e02@sneakemail.com>
12896 * kern/dl.c (grub_dl_resolve_symbol): Make static.
12897 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
12899 * util/misc.c: Move grub_reboot() and grub_halt() ...
12900 * util/grub-emu.c: ... here. Make main_env static.
12901 * include/grub/util/misc.h: Remove main_env.
12903 * kern/mm.c: Use correct format to print size_t.
12905 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
12906 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
12907 * kern/powerpc/dl.c: Likewise.
12908 * kern/sparc64/dl.c: Likewise.
12909 * kern/x86_64/dl.c: Likewise.
12911 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
12913 Fix grub-emu build on sparc64-ieee1275.
12915 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
12916 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
12918 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
12920 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
12921 (grub_reboot, grub_halt): New functions.
12923 * util/i386/pc/misc.c: Delete. Update all users.
12924 * util/sparc64/ieee1275/misc.c: Likewise.
12925 * util/powerpc/ieee1275/misc.c: Likewise.
12927 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
12929 * conf/i386.rmk (setjmp_mod_SOURCES)
12930 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
12931 * conf/common.rmk (setjmp_mod_SOURCES)
12932 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
12933 to use $(target_cpu).
12934 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
12935 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
12936 * conf/powerpc-ieee1275.rmk: Likewise.
12937 * conf/sparc64-ieee1275.rmk: Likewise.
12939 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
12940 $(target_cpu) for kern/$(target_cpu)/dl.c.
12941 * conf/i386-efi.rmk: Likewise.
12942 * conf/i386-ieee1275.rmk: Likewise.
12943 * conf/x86_64-efi.rmk: Likewise.
12944 * conf/i386-coreboot.rmk: Likewise.
12945 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
12946 $(target_cpu) for kern/$(target_cpu)/dl.c and for
12947 kern/$(target_cpu)/cache.S.
12948 * conf/sparc64-ieee1275.rmk: Likewise.
12950 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
12952 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
12953 type to `grub_uint8_t', and adjust `padding9' accordingly.
12955 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
12957 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
12959 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
12960 assembly in final jump, using register constraints.
12962 (grub_linux_boot): For text mode, initialize `have_vga' using
12963 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
12965 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
12966 right before the final jump.
12968 Set `video_mode' to 0x3.
12970 Document initialization of `video_page', `video_mode' and
12973 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
12975 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
12976 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
12977 and set GRUB_LINUX_FLAG_QUIET appropriately.
12979 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
12981 Fix build on Debian / sparc.
12983 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
12985 2009-06-28 Pavel Roskin <proski@gnu.org>
12987 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
12990 * util/grub.d/10_linux.in: Match SUSE style initrd names.
12992 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
12994 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
12997 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
13001 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
13002 file can't be opened. grub_file_open() is already supposed to set
13003 grub_errno / grub_errmsg appropriately.
13004 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13006 2009-06-27 Pavel Roskin <proski@gnu.org>
13007 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
13009 * include/grub/dl.h: Include grub/elf.h.
13010 (struct grub_dl): Add symtab field.
13011 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
13012 GRUB_MODULES_MACHINE_READONLY.
13013 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
13014 of the header for read-only modules.
13015 (grub_dl_unload): Free mod->symtab for read-only modules.
13016 * kern/i386/dl.c: Use mod->symtab.
13017 * kern/powerpc/dl.c: Likewise.
13018 * kern/sparc64/dl.c: Likewise.
13019 * kern/x86_64/dl.c: Likewise.
13021 * conf/i386-qemu.rmk: New file.
13022 * kern/i386/qemu/startup.S: Likewise.
13023 * kern/i386/qemu/mmap.c: Likewise.
13024 * boot/i386/qemu/boot.S: Likewise.
13025 * include/grub/i386/qemu/time.h: Likewise.
13026 * include/grub/i386/qemu/serial.h: Likewise.
13027 * include/grub/i386/qemu/kernel.h: Likewise.
13028 * include/grub/i386/qemu/console.h: Likewise.
13029 * include/grub/i386/qemu/boot.h: Likewise.
13030 * include/grub/i386/qemu/init.h: Likewise.
13031 * include/grub/i386/qemu/machine.h: Likewise.
13032 * include/grub/i386/qemu/loader.h: Likewise.
13033 * include/grub/i386/qemu/memory.h: Likewise.
13035 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
13036 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
13037 [qemu] (pkglib_IMAGES): Add `boot.img'.
13038 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
13039 [qemu] (boot_img_FORMAT): New variables.
13040 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
13041 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
13042 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
13043 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
13044 [qemu] (kernel_img_FORMAT): New variables.
13046 * configure.ac: Recognise `i386-qemu'.
13048 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
13049 (for no compression).
13050 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
13051 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
13052 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
13053 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
13056 2009-06-27 Pavel Roskin <proski@gnu.org>
13058 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
13060 * efiemu/prepare32.c: Likewise.
13061 * efiemu/prepare64.c: Likewise.
13063 2009-06-26 Pavel Roskin <proski@gnu.org>
13065 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
13066 * include/grub/elf.h: Define symbols without "32" or "64" based
13067 on GRUB_TARGET_WORDSIZE.
13068 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
13069 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
13071 * efiemu/loadcore64.c: Likewise.
13072 * loader/i386/bsd32.c: Likewise.
13073 * loader/i386/bsd64.c: Likewise.
13074 * kern/dl.c: Remove own ELF definitions.
13075 * util/i386/efi/grub-mkimage.c: Likewise.
13077 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
13079 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
13080 segment 0x0 unconditionally, because the reference generated by
13081 GAS is an absolute address.
13083 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
13085 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
13086 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
13088 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
13090 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
13091 indexes. Check for -f explicitly.
13092 (search_file): Improve error message.
13093 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
13095 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
13097 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
13098 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
13100 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
13102 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
13103 * conf/i386-ieee1275.rmk: Likewise.
13104 * conf/i386-coreboot.rmk: Likewise.
13106 * kern/i386/pc/startup.S (grub_stop): Remove function.
13107 * kern/i386/ieee1275/startup.S: Likewise.
13108 * kern/i386/coreboot/startup.S: Likewise.
13109 * kern/i386/misc.S (grub_stop): New function.
13111 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
13113 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
13114 * kern/i386/realmode.S (real_to_prot): ... to here.
13116 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
13118 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
13120 (kernel_elf_SOURCES): Rename to ...
13121 (kernel_img_SOURCES): ... this.
13122 (kernel_elf_HEADERS): Rename to ...
13123 (kernel_img_HEADERS): ... this. Update all users.
13124 (kernel_elf_ASFLAGS): Rename to ...
13125 (kernel_img_ASFLAGS): ... this.
13126 (kernel_elf_CFLAGS): Rename to ...
13127 (kernel_img_CFLAGS): ... this.
13128 (kernel_elf_LDFLAGS): Rename to ...
13129 (kernel_img_LDFLAGS): ... this.
13130 * conf/i386-coreboot.rmk: Likewise.
13131 * conf/powerpc-ieee1275.rmk: Likewise.
13133 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
13136 2009-06-21 Pavel Roskin <proski@gnu.org>
13138 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
13139 to match nested functions.
13140 * loader/sparc64/ieee1275/linux.c: Likewise.
13142 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
13144 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
13146 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
13147 all i386 platforms.
13149 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
13151 Fix asm file handling on ELF, and remove workarounds.
13153 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
13154 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
13155 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
13156 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
13158 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
13160 Load BSD ELF modules
13162 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
13163 and loader/i386/bsd64.c
13164 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
13165 (FREEBSD_MODTYPE_ELF_MODULE): New definition
13166 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
13167 (grub_freebsd_load_elfmodule32): New declaration
13168 (grub_freebsd_load_elfmoduleobj64): Likewise
13169 (grub_freebsd_load_elf_meta32): Likewise
13170 (grub_freebsd_load_elf_meta64): Likewise
13171 (grub_freebsd_add_meta): Likewise
13172 (grub_freebsd_add_meta_module): Likewise
13173 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
13174 (grub_freebsd_add_meta_module): Likewise and move module-specific
13175 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
13176 (grub_cmd_freebsd): Add elf-kernel specific parts
13177 based on grub_freebsd_add_meta_module
13178 (grub_cmd_freebsd_module): Add type parsing moved from
13179 grub_freebsd_add_meta_module
13180 (grub_cmd_freebsd_module_elf): New function
13181 (cmd_freebsd_module_elf): New variable
13182 (GRUB_MOD_INIT): Register freebsd_module_elf
13183 * loader/i386/bsd32.c: New file
13184 * loader/i386/bsd64.c: Likewise
13185 * loader/i386/bsdXX.c: Likewise
13186 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
13187 (grub_elf64_load): Likewise
13188 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
13190 (grub_elf64_load_hook_t): Likewise
13192 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
13194 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
13196 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
13197 don't write a menu entry for recovery mode.
13199 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
13201 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
13202 after it's no longer needed.
13204 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
13206 * include/grub/i386/loader.h (grub_linux_prot_size)
13207 (grub_linux_tmp_addr, grub_linux_real_addr)
13208 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
13209 GRUB_MACHINE_PCBIOS.
13210 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
13211 common grub_util_info() call to ...
13212 (generate_image): ... here.
13213 Fix use of uninitialized memory, comparison of signed with
13214 unsigned integers and memory leak.
13215 Remove bogus module address message.
13217 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
13219 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
13221 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
13223 2009-06-19 Pavel Roskin <proski@gnu.org>
13225 * configure.ac: Remove stray AC_MSG_CHECKING.
13227 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
13229 * disk/scsi.c (grub_scsi_open): use continue instead of big if
13231 2009-06-18 Pavel Roskin <proski@gnu.org>
13233 * conf/common.rmk: Add fs_file.mod.
13234 * disk/fs_file.c: New file.
13235 * include/grub/disk.h (enum grub_disk_dev_id): Add
13236 GRUB_DISK_DEVICE_FILE_ID.
13238 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
13240 Fix build with Apple's toolchain. Part 2
13242 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
13245 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
13247 Fix build with Apple's toolchain. Part 1
13249 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
13251 * configure.ac: remove a leftover AC_MSG_RESULT
13252 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
13255 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
13259 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
13260 (decomp_block): initialize ch
13261 use grub_memcpy instead of memcpy
13263 2009-06-17 Pavel Roskin <proski@gnu.org>
13265 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
13266 version, use declarations needed to use vga_text as the startup
13269 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
13270 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
13272 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
13273 and grub_at_keyboard_fini(), it's done on module load and
13276 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
13278 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
13279 file can't be found.
13280 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13282 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
13284 Fix newline handling
13286 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
13287 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
13288 (grub_script_yylex): don't segfault on unterminated script
13289 newline terminates command and variable
13291 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
13293 avoid double grub_adjust_range call. Bug reported by David Simner
13295 * kern/disk.c (grub_disk_write): change to raw disk access before
13298 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
13300 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
13301 spaces, for the benefit of help2man.
13302 * util/i386/efi/grub-mkimage.c (usage): Likewise.
13304 2009-06-16 Pavel Roskin <proski@gnu.org>
13306 * kern/i386/halt.c: Include grub/machine/init.h.
13307 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
13309 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
13311 * util/grub.d/30_os-prober.in: Use ${root} in the generated
13312 drivemap menuentry.
13314 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
13316 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
13319 2009-06-16 Pavel Roskin <proski@gnu.org>
13321 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
13322 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
13323 save %dx, we only need %dl and we never change it.
13324 * boot/i386/pc/cdboot.S: Don't set the root drive.
13325 * boot/i386/pc/pxeboot.S: Likewise.
13326 * include/grub/i386/pc/boot.h: Remove
13327 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
13328 GRUB_BOOT_MACHINE_DRIVE_CHECK.
13329 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
13330 * kern/i386/pc/init.c (make_install_device): Remove references
13331 to grub_root_drive.
13332 * kern/i386/pc/startup.S: Likewise.
13333 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
13335 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
13339 * commands/xnu_uuid.c: new file
13340 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
13341 (xnu_uuid_mod_SOURCES): new variable
13342 (xnu_uuid_mod_CFLAGS): likewise
13343 (xnu_uuid_mod_LDFLAGS): likewise
13344 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
13345 * conf/i386-ieee1275.rmk: likewise
13346 * conf/i386-pc.rmk: likewise
13347 * conf/powerpc-ieee1275.rmk: likewise
13348 * conf/sparc64-ieee1275.rmk: likewise
13349 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
13351 2009-06-16 Pavel Roskin <proski@gnu.org>
13353 * configure.ac: Avoid '==' in test command, it's not portable.
13355 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
13359 * commands/probe.c: new file
13360 * conf/common.rmk (pkglib_MODULES): add probe.mod
13361 (probe_mod_SOURCES): new variable
13362 (probe_mod_CFLAGS): likewise
13363 (probe_mod_LDFLAGS): likewise
13364 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
13365 * conf/i386-ieee1275.rmk: likewise
13366 * conf/i386-pc.rmk: likewise
13367 * conf/powerpc-ieee1275.rmk: likewise
13368 * conf/sparc64-ieee1275.rmk: likewise
13370 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
13372 Fix handling of string like \"hello\" and "a
13375 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
13376 (grub_script_yylex): fix parsing of quoting, escaping and newline
13378 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
13380 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
13383 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
13385 * util/grub-mkconfig.in: Fix parsing of --output option.
13387 2009-06-12 Pavel Roskin <proski@gnu.org>
13389 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
13390 genmk.rb don't need to be generated or installed.
13392 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13394 * commands/i386/pc/drivemap_int13h.S: add more comments
13396 2009-06-11 Pavel Roskin <proski@gnu.org>
13398 * Makefile.in (uninstall): Uninstall manuals.
13400 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
13401 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
13402 and update-grub_lib in two places.
13403 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
13405 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
13406 a compiler warning.
13408 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
13409 `entry_lo' to fix variable shadowing.
13411 2009-06-11 Christian Franke <franke@computer.org>
13413 * kern/misc.c (__enable_execute_stack): Add missing return type
13414 to prevent gcc warning.
13416 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
13418 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
13420 2009-06-11 Pavel Roskin <proski@gnu.org>
13422 * Makefile.in: Don't rely on any scripts being executable.
13423 Always use $(SHELL) to run shell scripts.
13425 * configure.ac: Always define ___main if using -nostdlib. This
13426 fixes tests on Cygwin.
13428 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
13432 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
13433 is in bytes and not in blocks
13435 2009-06-11 Pavel Roskin <proski@gnu.org>
13437 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
13440 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
13442 * util/grub.d/30_os-prober.in: Fix a comment. Source
13443 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
13444 to set the root device. Place drivemap command in the generated
13447 2009-06-11 Pavel Roskin <proski@gnu.org>
13449 * configure.ac: Remove host_m32. Issues with 64-bit utilities
13450 have long been resolved.
13452 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
13454 * util/grub.d/10_linux.in: Capitalise "Linux".
13456 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
13458 2009-06-11 Pavel Roskin <proski@gnu.org>
13460 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
13461 fix a gcc warning and ensure that the function won't ever exit.
13463 * kern/i386/ieee1275/init.c: Add missing prototype for
13464 grub_stop_floppy().
13466 * loader/ieee1275/multiboot2.c [__i386__]: Include
13467 grub/cpu/multiboot.h.
13469 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
13470 casts to short - they are not portable and cause warnings. Fix
13471 use of uninitialized values in input_buf. Use ARRAY_SIZE.
13473 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
13477 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
13479 (grub_get_root_biosnumber_saved): new variable
13480 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
13481 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
13482 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
13483 %dx after the call if necessary
13484 * conf/common.rmk (pkglib_MODULES): remove boot.mod
13485 (boot_mod_SOURCES): remove
13486 (boot_mod_CFLAGS): remove
13487 (boot_mod_LDFLAGS): remove
13488 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
13489 (boot_mod_SOURCES): new variable
13490 (boot_mod_CFLAGS): likewise
13491 (boot_mod_LDFLAGS): likewise
13492 * conf/i386-efi.rmk: likewise
13493 * conf/i386-ieee1275.rmk: likewise
13494 * conf/i386-pc.rmk: likewise
13495 * conf/powerpc-ieee1275.rmk: likewise
13496 * conf/sparc64-ieee1275.rmk: likewise
13497 * conf/x86_64-efi.rmk: likewise
13498 * include/grub/i386/pc/biosnum.h: new file
13499 * lib/i386/pc/biosnum.c: likewise
13500 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
13501 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
13502 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
13504 2009-06-10 Pavel Roskin <proski@gnu.org>
13506 * io/gzio.c (test_header): Don't reuse one buffer for all data.
13507 Use separate variables. Read only the file size at the end, but
13508 not the checksum that we don't use.
13510 * kern/file.c (grub_file_read): Use void pointer for the buffer.
13511 Adjust all callers.
13513 * kern/ieee1275/openfw.c: Remove libc includes.
13514 * kern/ieee1275/cmain.c: Likewise.
13515 * include/grub/ieee1275/ieee1275.h: Likewise.
13517 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
13520 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
13522 * Makefile.in: Remove all trailing whitespace.
13523 * conf/i386-pc.rmk: Likewise.
13524 * conf/powerpc-ieee1275.rmk: Likewise.
13525 * conf/sparc64-ieee1275.rmk: Likewise.
13526 * docs/grub.texi: Likewise.
13527 * docs/texinfo.tex: Likewise.
13528 * disk/fs_uuid.c: Likewise.
13529 * disk/lvm.c: Likewise.
13530 * disk/scsi.c: Likewise.
13531 * disk/ata.c: Likewise.
13532 * disk/ieee1275/ofdisk.c: Likewise.
13533 * disk/i386/pc/biosdisk.c: Likewise.
13534 * disk/host.c: Likewise.
13535 * disk/raid.c: Likewise.
13536 * disk/efi/efidisk.c: Likewise.
13537 * disk/usbms.c: Likewise.
13538 * disk/memdisk.c: Likewise.
13539 * disk/loopback.c: Likewise.
13540 * kern/powerpc/dl.c: Likewise.
13541 * kern/device.c: Likewise.
13542 * kern/dl.c: Likewise.
13543 * kern/sparc64/dl.c: Likewise.
13544 * kern/ieee1275/ieee1275.c: Likewise.
13545 * kern/term.c: Likewise.
13546 * kern/fs.c: Likewise.
13547 * kern/i386/dl.c: Likewise.
13548 * kern/i386/pc/startup.S: Likewise.
13549 * kern/i386/pc/init.c: Likewise.
13550 * kern/i386/pc/mmap.c: Likewise.
13551 * kern/i386/pc/lzo1x.S: Likewise.
13552 * kern/i386/ieee1275/init.c: Likewise.
13553 * kern/i386/realmode.S: Likewise.
13554 * kern/i386/tsc.c: Likewise.
13555 * kern/partition.c: Likewise.
13556 * kern/corecmd.c: Likewise.
13557 * kern/file.c: Likewise.
13558 * kern/efi/efi.c: Likewise.
13559 * kern/efi/init.c: Likewise.
13560 * kern/efi/mm.c: Likewise.
13561 * kern/main.c: Likewise.
13562 * kern/err.c: Likewise.
13563 * kern/env.c: Likewise.
13564 * kern/disk.c: Likewise.
13565 * kern/generic/millisleep.c: Likewise.
13566 * kern/generic/rtc_get_time_ms.c: Likewise.
13567 * kern/misc.c: Likewise.
13568 * kern/parser.c: Likewise.
13569 * genmk.rb: Likewise.
13570 * configure.ac: Likewise.
13571 * boot/i386/pc/diskboot.S: Likewise.
13572 * boot/i386/pc/pxeboot.S: Likewise.
13573 * boot/i386/pc/boot.S: Likewise.
13574 * boot/i386/pc/lnxboot.S: Likewise.
13575 * boot/i386/pc/cdboot.S: Likewise.
13576 * parttool/pcpart.c: Likewise.
13577 * video/readers/tga.c: Likewise.
13578 * video/video.c: Likewise.
13579 * video/bitmap.c: Likewise.
13580 * lib/envblk.c: Likewise.
13581 * lib/i386/setjmp.S: Likewise.
13582 * fs/xfs.c: Likewise.
13583 * fs/afs.c: Likewise.
13584 * fs/fat.c: Likewise.
13585 * fs/ntfs.c: Likewise.
13586 * fs/udf.c: Likewise.
13587 * fs/affs.c: Likewise.
13588 * fs/iso9660.c: Likewise.
13589 * fs/hfs.c: Likewise.
13590 * fs/fshelp.c: Likewise.
13591 * fs/ext2.c: Likewise.
13592 * fs/jfs.c: Likewise.
13593 * fs/reiserfs.c: Likewise.
13594 * fs/hfsplus.c: Likewise.
13595 * fs/minix.c: Likewise.
13596 * fs/cpio.c: Likewise.
13597 * fs/sfs.c: Likewise.
13598 * fs/ufs.c: Likewise.
13599 * efiemu/prepare.c: Likewise.
13600 * efiemu/loadcore_common.c: Likewise.
13601 * efiemu/runtime/efiemu.sh: Likewise.
13602 * efiemu/runtime/efiemu.S: Likewise.
13603 * efiemu/runtime/efiemu.c: Likewise.
13604 * efiemu/pnvram.c: Likewise.
13605 * efiemu/main.c: Likewise.
13606 * efiemu/i386/pc/cfgtables.c: Likewise.
13607 * efiemu/i386/loadcore64.c: Likewise.
13608 * efiemu/i386/loadcore32.c: Likewise.
13609 * efiemu/loadcore.c: Likewise.
13610 * efiemu/symbols.c: Likewise.
13611 * efiemu/mm.c: Likewise.
13612 * include/grub/autoefi.h: Likewise.
13613 * include/grub/datetime.h: Likewise.
13614 * include/grub/term.h: Likewise.
13615 * include/grub/hfs.h: Likewise.
13616 * include/grub/lvm.h: Likewise.
13617 * include/grub/i386/tsc.h: Likewise.
13618 * include/grub/i386/linux.h: Likewise.
13619 * include/grub/i386/xnu.h: Likewise.
13620 * include/grub/i386/efiemu.h: Likewise.
13621 * include/grub/i386/pc/biosdisk.h: Likewise.
13622 * include/grub/i386/pc/memory.h: Likewise.
13623 * include/grub/i386/pc/vbe.h: Likewise.
13624 * include/grub/parttool.h: Likewise.
13625 * include/grub/video.h: Likewise.
13626 * include/grub/memory.h: Likewise.
13627 * include/grub/fs.h: Likewise.
13628 * include/grub/partition.h: Likewise.
13629 * include/grub/xnu.h: Likewise.
13630 * include/grub/efi/api.h: Likewise.
13631 * include/grub/efi/pe32.h: Likewise.
13632 * include/grub/efi/memory.h: Likewise.
13633 * include/grub/multiboot.h: Likewise.
13634 * include/grub/usbdesc.h: Likewise.
13635 * include/grub/multiboot2.h: Likewise.
13636 * include/grub/acpi.h: Likewise.
13637 * include/grub/efiemu/efiemu.h: Likewise.
13638 * include/grub/disk.h: Likewise.
13639 * include/grub/ieee1275/ieee1275.h: Likewise.
13640 * include/grub/net.h: Likewise.
13641 * include/grub/machoload.h: Likewise.
13642 * include/grub/macho.h: Likewise.
13643 * include/multiboot.h: Likewise.
13644 * genmoddep.awk: Likewise.
13645 * normal/main.c: Likewise.
13646 * normal/menu_entry.c: Likewise.
13647 * normal/menu_viewer.c: Likewise.
13648 * normal/completion.c: Likewise.
13649 * normal/cmdline.c: Likewise.
13650 * normal/misc.c: Likewise.
13651 * normal/datetime.c: Likewise.
13652 * bus/usb/usbtrans.c: Likewise.
13653 * bus/usb/ohci.c: Likewise.
13654 * bus/usb/uhci.c: Likewise.
13655 * bus/usb/usb.c: Likewise.
13656 * mmap/efi/mmap.c: Likewise.
13657 * mmap/i386/pc/mmap_helper.S: Likewise.
13658 * mmap/i386/pc/mmap.c: Likewise.
13659 * mmap/i386/mmap.c: Likewise.
13660 * mmap/i386/uppermem.c: Likewise.
13661 * mmap/mmap.c: Likewise.
13662 * commands/acpi.c: Likewise.
13663 * commands/echo.c: Likewise.
13664 * commands/blocklist.c: Likewise.
13665 * commands/loadenv.c: Likewise.
13666 * commands/usbtest.c: Likewise.
13667 * commands/boot.c: Likewise.
13668 * commands/parttool.c: Likewise.
13669 * commands/search.c: Likewise.
13670 * commands/cat.c: Likewise.
13671 * commands/i386/pc/play.c: Likewise.
13672 * commands/i386/pc/drivemap.c: Likewise.
13673 * commands/i386/pc/vbeinfo.c: Likewise.
13674 * commands/i386/pc/acpi.c: Likewise.
13675 * commands/i386/pc/vbetest.c: Likewise.
13676 * commands/ls.c: Likewise.
13677 * commands/cmp.c: Likewise.
13678 * commands/test.c: Likewise.
13679 * commands/efi/acpi.c: Likewise.
13680 * commands/gptsync.c: Likewise.
13681 * commands/help.c: Likewise.
13682 * partmap/amiga.c: Likewise.
13683 * partmap/apple.c: Likewise.
13684 * partmap/acorn.c: Likewise.
13685 * partmap/pc.c: Likewise.
13686 * partmap/sun.c: Likewise.
13687 * partmap/gpt.c: Likewise.
13688 * script/sh/lexer.c: Likewise.
13689 * script/sh/function.c: Likewise.
13690 * font/font.c: Likewise.
13691 * font/font_cmd.c: Likewise.
13692 * loader/powerpc/ieee1275/linux.c: Likewise.
13693 * loader/efi/chainloader.c: Likewise.
13694 * loader/multiboot_loader.c: Likewise.
13695 * loader/macho.c: Likewise.
13696 * loader/i386/multiboot.c: Likewise.
13697 * loader/i386/linux.c: Likewise.
13698 * loader/i386/pc/linux.c: Likewise.
13699 * loader/i386/pc/multiboot2.c: Likewise.
13700 * loader/i386/pc/chainloader.c: Likewise.
13701 * loader/i386/pc/xnu.c: Likewise.
13702 * loader/i386/bsd_trampoline.S: Likewise.
13703 * loader/i386/efi/linux.c: Likewise.
13704 * loader/i386/multiboot_elfxx.c: Likewise.
13705 * loader/i386/bsd_helper.S: Likewise.
13706 * loader/i386/bsd.c: Likewise.
13707 * loader/i386/linux_trampoline.S: Likewise.
13708 * loader/i386/xnu_helper.S: Likewise.
13709 * loader/i386/xnu.c: Likewise.
13710 * loader/i386/bsd_pagetable.c: Likewise.
13711 * loader/i386/multiboot_helper.S: Likewise.
13712 * loader/xnu.c: Likewise.
13713 * loader/xnu_resume.c: Likewise.
13714 * io/gzio.c: Likewise.
13715 * term/efi/console.c: Likewise.
13716 * term/terminfo.c: Likewise.
13717 * term/ieee1275/ofconsole.c: Likewise.
13718 * term/i386/pc/serial.c: Likewise.
13719 * term/i386/pc/vesafb.c: Likewise.
13720 * term/i386/pc/vga.c: Likewise.
13721 * term/usb_keyboard.c: Likewise.
13722 * term/gfxterm.c: Likewise.
13723 * aclocal.m4: Likewise.
13724 * util/lvm.c: Likewise.
13725 * util/grub.d/30_os-prober.in: Likewise.
13726 * util/grub.d/10_hurd.in: Likewise.
13727 * util/console.c: Likewise.
13728 * util/grub-macho2img.c: Likewise.
13729 * util/grub-probe.c: Likewise.
13730 * util/hostfs.c: Likewise.
13731 * util/i386/pc/grub-mkimage.c: Likewise.
13732 * util/i386/pc/grub-setup.c: Likewise.
13733 * util/i386/efi/grub-mkimage.c: Likewise.
13734 * util/grub-mkconfig.in: Likewise.
13735 * util/raid.c: Likewise.
13736 * util/resolve.c: Likewise.
13737 * util/grub-mkdevicemap.c: Likewise.
13738 * util/grub-emu.c: Likewise.
13739 * util/getroot.c: Likewise.
13740 * util/hostdisk.c: Likewise.
13741 * util/usb.c: Likewise.
13742 * util/grub-editenv.c: Likewise.
13743 * util/misc.c: Likewise.
13745 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
13747 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
13748 `genparttoollist.sh'.
13749 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
13750 Add `*.sh' to the list find searches for and change `mdate.sh'
13753 2009-06-10 Pavel Roskin <proski@gnu.org>
13755 * include/grub/multiboot2.h: Provide compatibility defines for
13757 * include/multiboot2.h: Include stdint.h only if needed, using
13759 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
13761 * loader/ieee1275/multiboot2.c: Likewise.
13762 * loader/multiboot2.c: Likewise.
13763 * loader/multiboot_loader.c: Likewise.
13765 * configure.ac: Use -nostdlib when probing for the target. It
13766 should not be required to have libc for the target.
13768 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
13769 they fail without libc headers for the target.
13770 * include/grub/powerpc/libgcc.h: Use weak attribute for all
13772 * include/grub/sparc64/libgcc.h: Likewise. Don't use
13773 preprocessor conditionals.
13775 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
13776 build system doesn't need to be aware of the tar.c internals.
13778 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
13780 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
13782 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
13784 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
13785 disk limit to 26 for IDE, Virtio, Xen and SCSI.
13787 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
13789 * util/i386/pc/grub-install.in: Change the error message if UUIDs
13790 aren't available if ata.mod gets used.
13792 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
13794 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
13795 initialising controller.
13796 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
13798 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
13800 * util/i386/pc/grub-install.in: Add a parameter --disk-module
13801 to choose between ata and biosdisk module on i386-pc.
13803 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
13805 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
13806 Subclass and Programming Interface fields in terms of the 3 byte
13807 Class Code register.
13808 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
13810 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
13811 interface is OHCI. Add grub_dprintf for symmetry with
13813 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
13814 interface is UHCI. Add interf variable for programming
13815 interface. Print interface with class/subclass.
13817 * bus/usb/ohci.c: Set interf with correct field.
13819 * bus/usb/uhci.c: Remove unneeded doubled lines.
13820 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
13821 Remove whitespace inside comment.
13823 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
13825 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
13826 as fallback an equivalent option without depth.
13828 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
13830 Not fail if unable to retrieve C/H/S on LBA disks
13832 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
13833 if unable to retrieve C/H/S on LBA disks
13835 2009-06-08 Pavel Roskin <proski@gnu.org>
13837 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
13840 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
13842 * Makefile.in (uninstall): Remove all $lib_DATA files.
13844 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
13846 Bugfix: install on partitionless device
13848 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
13851 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
13853 * Makefile.in (uninstall): Remove all $include_DATA files.
13855 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
13857 * commands/true.c: New file. Implement the true and false commands.
13858 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
13859 (true_mod_SOURCES): New variable.
13860 (true_mod_CFLAGS): Likewise.
13861 (true_mod_LDFLAGS): Likewise.
13863 2009-06-05 Colin D Bennett <colin@gibibit.com>
13865 Optimized font character lookup using binary search instead of linear
13866 search. Fonts now are required to have the character index ordered by
13869 * font/font.c (load_font_index): Verify that fonts have ordered
13871 (find_glyph): Use binary search instead of linear search to find a
13872 character in a font.
13874 2009-06-05 Michael Scherer <misc@mandriva.org>
13876 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
13877 uses case sensitive btree.
13878 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
13879 only for case insensitive filesystems.
13881 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
13883 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
13884 * conf/common.rmk (search_mod_CFLAGS): likewise
13886 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13888 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
13889 compensate a compiler bug
13891 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13893 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
13896 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13898 Definitions for creating asm symbols with Apple's CC
13900 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
13901 [APPLE_CC] (VARIABLE): likewise
13903 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13905 Disable lnxboot.img when compiled
13908 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
13909 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
13910 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
13911 [! APPLE_CC] (CODE_LENG): skip
13912 [! APPLE_CC] (setup_sects): likewise
13913 [! APPLE_CC]: skip filling
13915 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13917 Address in trampolines based on 32-bit registers when compiled
13920 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
13922 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
13924 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13926 Avoid aliases when compiling with Apple's CC for PCBIOS machine
13928 * kern/misc.c [APPLE_CC] (memcpy): new function
13929 [APPLE_CC] (memmove): likewise
13930 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
13931 (memcpy): define alias conditionally on !APPLE_CC
13934 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
13935 APPLE_CC are defined
13936 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
13937 (grub_assert_fail): make prototype conditional
13939 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13941 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
13943 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
13945 (CLEANFILES): add grub-macho2img
13946 (grub_macho2img_SOURCES): new variable
13947 * kern/i386/pc/startup.S (bss_start): new variable
13948 (bss_end): likewise
13949 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
13950 * util/grub-macho2img.c: new file
13952 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13954 Use objconv when compiling with Apple's CC
13956 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
13957 (efiemu64.o): likewise
13958 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
13959 when compiling with Apple's CC
13960 (efiemu64_s.o): likewise
13961 * configure.ac: check for objconv when compiling with Apple's CC
13962 * genmk.rb: use objconv for modules when compiled with Apple's CC
13964 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13966 Define segment as well as section when compiling with
13969 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
13970 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
13971 (efiemu_convert_pointer): likewise
13972 (efiemu_set_virtual_address_map): likewise
13973 (efiemu_convert_pointer): likewise
13974 (efiemu_getcrc32): likewise
13975 (init_crc32_table): likewise
13976 (reflect): likewise
13977 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
13978 (GRUB_MOD_DEP): likewise
13980 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13982 Allow a compilation without -mcmodel=large
13984 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
13985 when compiled without -mcmodel=large
13986 (filter_memory_map): remove memory post 4 GiB when compiled
13987 without -mcmodel=large
13988 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
13989 TARGET_CFLAGS when -mcmodel=large isn't supported
13991 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13993 Remove nested functions in efiemu core
13995 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
13997 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
13999 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
14001 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
14003 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
14005 (grub_cpu_is_tsc_supported): likewise
14006 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
14008 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14010 Absolute addressing through constant with Apple's cc
14012 * kern/i386/pc/startup.S: Define necessary constants
14013 and address through it when using ABS with Apple's CC
14014 * boot/i386/pc/diskboot.S: likewise
14015 * boot/i386/pc/boot.S: likewise
14016 * boot/i386/pc/lnxboot.S: likewise
14017 * boot/i386/pc/cdboot.S: likewise
14018 * mmap/i386/pc/mmap_helper.S: likewise
14019 * commands/i386/pc/drivemap_int13h.S: likewise
14021 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14023 Check if compiler is apple cc
14025 * Makefile.in (ASFLAGS): new variable
14026 (TARGET_ASFLAGS): likewise
14027 (TARGET_MODULE_FORMAT): likewise
14028 (TARGET_APPLE_CC): likewise
14029 (OBJCONV): likewise
14030 (TARGET_IMG_CFLAGS): likewise
14031 (TARGET_CPPFLAGS): add includedir
14032 * configure.ac: call grub_apple_cc and grub_apple_target_cc
14033 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
14034 Check for linker script only if compiler isn't Apple's CC
14035 (TARGET_MODULE_FORMAT): set
14036 (TARGET_APPLE_CC): likewise
14037 (TARGET_ASFLAGS): likewise
14038 (ASFLAGS): likewise
14039 Check for objcopy only if compiler isn't Apple's CC
14040 Check for BSS symbol only if compiler isn't Apple's CC
14041 * genmk.rb: adapt nm options if we use Apple's utils
14042 * aclocal.m4 (grub_apple_cc): new test
14043 (grub_apple_target_cc): likewise
14045 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14047 Simplify sed expressions and improve awk
14049 * Makefile.in (install-local): simplify sed expression
14050 * gencmdlist.sh: likewise
14051 * genmoddep.awk: avoid adding module as a dependency of itself
14053 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14055 Add missing start symbols
14057 * boot/i386/pc/boot.S: add start
14058 * boot/i386/pc/pxeboot.S: likewise
14060 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14062 Fix wrong assumptions with grub-mkimage on EFI
14064 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
14065 (relocate_addresses): consider both r_addend and value at offset
14066 (make_mods_section): zerofill modinfo and header
14067 (convert_elf): write prefix here
14069 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14071 Use .asciz instead of .string
14073 * i386/pc/diskboot.S: use .asciz instead of .string
14074 * i386/pc/boot.S: likewise
14075 * include/grub/dl.h (GRUB_MOD_DEP): likewise
14076 (GRUB_MOD_NAME): likewise
14078 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14082 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
14083 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
14084 (grub_video_setup): remove
14085 (grub_video_set_mode): new prototype
14086 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
14088 (linux_vesafb_res): compile only on PCBIOS
14089 (grub_linux_boot): support gfxpayload
14090 * loader/i386/pc/xnu.c (video_hook): new function
14091 (grub_xnu_set_video): support gfxpayload
14092 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
14093 (DEFAULT_VIDEO_HEIGHT): likewise
14094 (DEFAULT_VIDEO_FLAGS): likewise
14095 (DEFAULT_VIDEO_MODE): new definition
14096 (video_hook): new function
14097 (grub_gfxterm_init): use grub_video_set_mode
14098 * util/grub.d/30_os-prober.in: remove explicit modesetting before
14100 * video/video.c (grub_video_setup): removed
14101 (grub_video_set_mode): new function based on grub_gfxterm_init and
14104 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14106 Avoid calling biosdisk in drivemap
14108 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
14109 (revparse_biosdisk): likewise
14110 (list_mappings): derive name from id directly
14111 (grub_cmd_drivemap): use tryparse_diskstring
14113 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14117 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
14118 (grub_lexer_param): add tokenonhold
14119 (grub_script_create_cmdline): remove cmdline. All callers updated
14120 (grub_script_function_create): make functionname
14121 grub_script_arg. All callers updated
14122 (grub_script_execute_argument_to_string): new prototype
14123 * kern/parser.c (state_transitions): reorder
14124 (grub_parser_cmdline_state): fix a bug and make more compact
14125 * script/sh/execute.c (grub_script_execute_argument_to_string):
14127 (grub_script_execute_cmdline): use new format
14128 * script/sh/function.c (grub_script_function_create): make functionname
14129 grub_script_arg. All callers updated
14130 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
14131 (grub_script_yylex): remove
14132 (grub_script_yylex2): renamed to ...
14133 (grub_script_yylex): ...renamed
14134 parse the expressions like a${b}c
14135 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
14136 (GRUB_PARSER_TOKEN_VAR): remove
14137 (GRUB_PARSER_TOKEN_NAME): likewise
14138 ("if"): declare as typeless
14139 ("while"): likewise
14140 ("function"): likewise
14145 (argument): likewise
14146 (script): accept empty scripts and make exit on error
14147 (arguments): use GRUB_PARSER_TOKEN_ARG
14148 (function): likewise
14149 (command): move error handling to script
14150 (menuentry): move grub_script_lexer_ref before
14151 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
14152 argument. All callers updated
14154 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
14156 Prevent GRUB from probing floppies during boot.
14158 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
14159 * commands/search.c (options): Add --no-floppy.
14160 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
14161 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
14162 --no-floppy when searching for UUIDs.
14164 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
14166 Simplify the code duplication in commands/search.c.
14168 * commands/search.c (search_label, search_fs_uuid): Merge into ...
14169 (search_fs): ... this. Update all users.
14171 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
14173 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
14175 2009-05-28 Pavel Roskin <proski@gnu.org>
14177 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
14178 Remove the original symlink explicitly.
14180 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
14181 just one slash. That's how grub_fshelp_find_file() does it.
14183 2009-05-26 Pavel Roskin <proski@gnu.org>
14185 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
14188 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
14191 2009-05-25 Christian Franke <franke@computer.org>
14193 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
14195 (grub_atapi_identify): Add wait after drive select.
14196 (grub_ata_identify): Do more strict status register check before
14197 calling grub_atapi_identify (). Suppress error message if status
14198 register is 0x00 after command failure. Add status register
14199 check after PIO read to avoid bogus identify due to stuck DRQ.
14200 Thanks to Pavel Roskin for testing.
14201 (grub_device_initialize): Remove unsafe status register check.
14202 Thanks to 'phcoder' for problem report and patch.
14203 Prevent sign extension in debug message.
14205 2009-05-23 Colin D Bennett <colin@gibibit.com>
14207 Cleaned up `include/grub/normal.h'. Grouped prototypes by
14208 definition file, and functions defined in `normal/menu.c' have had
14209 their prototypes moved to `include/grub/menu.h' for consistency.
14211 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
14213 (grub_menu_get_entry): Likewise.
14214 (grub_menu_get_timeout): Likewise.
14215 (grub_menu_set_timeout): Likewise.
14216 (grub_menu_execute_entry): Likewise.
14217 (grub_menu_execute_with_fallback): Likewise.
14218 (grub_menu_entry_run): Likewise.
14220 * include/grub/normal.h: Re-ordered and grouped function
14221 prototypes by file that the function is defined in.
14222 (grub_menu_execute_callback): Removed; moved to menu.h.
14223 (grub_menu_get_entry): Likewise.
14224 (grub_menu_get_timeout): Likewise.
14225 (grub_menu_set_timeout): Likewise.
14226 (grub_menu_execute_entry): Likewise.
14227 (grub_menu_execute_with_fallback): Likewise.
14228 (grub_menu_entry_run): Likewise.
14229 (grub_menu_addentry): Renamed from this ...
14230 (grub_normal_add_menu_entry): ... to this.
14232 * normal/main.c (grub_menu_addentry): Renamed from this ...
14233 (grub_normal_add_menu_entry): ... to this.
14235 * script/sh/execute.c (grub_script_execute_menuentry): Update
14236 reference to renamed grub_menu_addentry function.
14238 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
14240 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
14242 2009-05-22 Pavel Roskin <proski@gnu.org>
14244 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
14245 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
14246 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
14247 compiling for the i386 targets, but not for the utilities.
14249 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
14251 (grub_root_drive): Likewise.
14252 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
14254 (grub_root_drive): Change size to byte.
14255 (grub_start_addr): Remove.
14256 (grub_end_addr): Likewise.
14257 (grub_apm_bios_info): Likewise.
14259 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
14261 * normal/i386: Remove.
14262 * normal/powerpc: Likewise.
14263 * normal/sparc64: Likewise.
14264 * normal/x86_64: Likewise.
14266 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
14268 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
14269 * loader/i386/linux_trampoline.S: Fix indentation
14270 * loader/i386/xnu_helper.S: Likewise
14272 2009-05-18 Colin D Bennett <colin@gibibit.com>
14274 Display error messages when parsing a Lua statement fails.
14275 Previously, executing a syntactically invalid statement like
14276 ")foo" or "bar;" would silently fail.
14278 * script/lua/grub_main.c (handle_lua_error): New function.
14279 (grub_lua_parse_line): Improved reporting of Lua parser and
14282 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14284 Remove -Werror which causes build to fail on some systems
14286 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
14287 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
14288 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
14290 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14292 trampoline for linux on 64-bit platform
14294 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
14295 loader/i386/efi/linux_trampoline.S
14296 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
14298 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
14300 * loader/i386/linux_trampoline.S: moved here
14301 * loader/i386/efi/linux.c (allocate_pages): reserve space for
14303 (jumpvector): removed
14304 (grub_linux_trampoline_start): new declaration
14305 (grub_linux_trampoline_end): likewise
14306 (grub_linux_boot): use trampoline when on 64-bit platform
14307 * loader/i386/linux.c: likewise
14309 2009-05-16 Pavel Roskin <proski@gnu.org>
14311 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
14312 const to avoid a warning.
14313 (grub_lua_setenv): Likewise.
14314 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
14315 lmsg to fix a warning.
14317 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
14319 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
14320 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
14321 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
14322 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
14323 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
14324 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
14325 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
14326 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
14328 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
14330 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
14332 2009-05-16 Bean <bean123ch@gmail.com>
14334 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
14335 (lua_mod_SOURCES): New variable.
14336 (lua_mod_CFLAGS): Likewise.
14337 (lua_mod_LDFLAGS): Likewise.
14339 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
14340 (setjmp_mod_SOURCES): New variable.
14341 (setjmp_mod_CFLAGS): Likewise.
14342 (setjmp_LDFLAGS): Likewise.
14344 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
14345 (setjmp_mod_SOURCES): New variable.
14346 (setjmp_mod_CFLAGS): Likewise.
14347 (setjmp_LDFLAGS): Likewise.
14349 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
14350 (setjmp_mod_SOURCES): New variable.
14351 (setjmp_mod_CFLAGS): Likewise.
14352 (setjmp_LDFLAGS): Likewise.
14354 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
14355 (setjmp_mod_SOURCES): New variable.
14356 (setjmp_mod_CFLAGS): Likewise.
14357 (setjmp_LDFLAGS): Likewise.
14359 * normal/i386/setjmp.S: Moved from here ...
14360 * lib/i386/setjmp.S: ... Moved here
14361 * normal/x86_64/setjmp.S: Moved from here ...
14362 * lib/x86_64/setjmp.S: ... Moved here
14363 * normal/powerpc/setjmp.S: Moved from here ...
14364 * lib/powerpc/setjmp.S: ... Moved here
14365 * normal/sparc64/setjmp.S: Moved from here ...
14366 * lib/sparc64/setjmp.S: ... Moved here
14368 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
14369 returns_twice in mingw.
14371 * script/lua/grub_lib.c: New file.
14372 * script/lua/grub_lib.h: Likewise.
14373 * script/lua/grub_lua.h: Likewise.
14374 * script/lua/grub_main.c: Likewise.
14375 * script/lua/lapi.c: Likewise.
14376 * script/lua/lapi.h: Likewise.
14377 * script/lua/lauxlib.c: Likewise.
14378 * script/lua/lauxlib.h: Likewise.
14379 * script/lua/lbaselib.c: Likewise.
14380 * script/lua/lcode.c: Likewise.
14381 * script/lua/lcode.h: Likewise.
14382 * script/lua/ldblib.c: Likewise.
14383 * script/lua/ldebug.c: Likewise.
14384 * script/lua/ldebug.h: Likewise.
14385 * script/lua/ldo.c: Likewise.
14386 * script/lua/ldo.h: Likewise.
14387 * script/lua/ldump.c: Likewise.
14388 * script/lua/lfunc.c: Likewise.
14389 * script/lua/lfunc.h: Likewise.
14390 * script/lua/lgc.c: Likewise.
14391 * script/lua/lgc.h: Likewise.
14392 * script/lua/linit.c: Likewise.
14393 * script/lua/liolib.c: Likewise.
14394 * script/lua/llex.c: Likewise.
14395 * script/lua/llex.h: Likewise.
14396 * script/lua/llimits.h: Likewise.
14397 * script/lua/lmathlib.c: Likewise.
14398 * script/lua/lmem.c: Likewise.
14399 * script/lua/lmem.h: Likewise.
14400 * script/lua/loadlib.c: Likewise.
14401 * script/lua/lobject.c: Likewise.
14402 * script/lua/lobject.h: Likewise.
14403 * script/lua/lopcodes.c: Likewise.
14404 * script/lua/lopcodes.h: Likewise.
14405 * script/lua/loslib.c: Likewise.
14406 * script/lua/lparser.c: Likewise.
14407 * script/lua/lparser.h: Likewise.
14408 * script/lua/lstate.c: Likewise.
14409 * script/lua/lstate.h: Likewise.
14410 * script/lua/lstring.c: Likewise.
14411 * script/lua/lstring.h: Likewise.
14412 * script/lua/lstrlib.c: Likewise.
14413 * script/lua/ltable.c: Likewise.
14414 * script/lua/ltable.h: Likewise.
14415 * script/lua/ltablib.c: Likewise.
14416 * script/lua/ltm.c: Likewise.
14417 * script/lua/ltm.h: Likewise.
14418 * script/lua/lua.h: Likewise.
14419 * script/lua/luaconf.h: Likewise.
14420 * script/lua/lualib.h: Likewise.
14421 * script/lua/lundump.c: Likewise.
14422 * script/lua/lundump.h: Likewise.
14423 * script/lua/lvm.c: Likewise.
14424 * script/lua/lvm.h: Likewise.
14425 * script/lua/lzio.c: Likewise.
14426 * script/lua/lzio.h: Likewise.
14428 2009-05-16 Bean <bean123ch@gmail.com>
14430 * include/grub/kernel.h (grub_module_header_types): Add type
14433 * kern/main.c (grub_load_config): New function.
14434 (grub_main): Call grub_load_config to read boot config.
14436 * grub-mkimage (generate_image): New parameter config_path.
14437 (options): New option --config.
14438 (main): Parse --config option, and pass it to generate_image.
14440 2009-05-14 Christian Franke <franke@computer.org>
14442 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
14443 This fixes build on Cygwin.
14445 2009-05-14 Pavel Roskin <proski@gnu.org>
14447 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
14448 jump. This saves two bytes, so the typical case of 2 swapped
14449 drives would fit 32 bytes.
14451 2009-05-13 Pavel Roskin <proski@gnu.org>
14453 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
14454 grub_uint32_t to avoid a warning.
14456 * loader/i386/linux.c (allocate_pages): When assigning
14457 real_mode_mem, cast through grub_size_t to fix a warning. The
14458 code already makes sure that the value would fit a pointer.
14459 (grub_linux_setup_video): Cast render_target->data to
14460 grub_size_t to fix a warning.
14462 2009-05-13 Javier Martín <lordhabbit@gmail.com>
14464 * commands/i386/pc/drivemap.c: New file - implement drivemap
14466 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
14467 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
14469 2009-05-13 Pavel Roskin <proski@gnu.org>
14471 * util/i386/pc/grub-setup.c (setup): Remove unused variable
14472 embedding_area_exists.
14474 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
14476 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
14477 it easier to understand / work with.
14478 Improve warning messages for cases where there's no embedding area,
14479 or when it is too small (or core.img too large).
14481 2009-05-13 Pavel Roskin <proski@gnu.org>
14483 * loader/i386/pc/multiboot2.c: Add necessary includes for
14484 grub_multiboot2_real_boot().
14486 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
14487 PX record is always little-endian. We only need the lower 2
14490 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
14491 facilitate code reuse.
14492 (grub_cpio_mount): Use "struct head", not a char buffer. This
14493 fixes a warning reported by gcc 4.4.
14495 * kernel/disk.c (grub_disk_read): Use void pointer for the
14497 (grub_disk_write): Use const void pointer for the buffer.
14498 Adjust all callers. Remove unnecessary casts.
14500 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
14502 * util/i386/pc/grub-install.in: Update copyright year.
14504 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14508 * commands/gptsync.c: new file
14509 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
14510 (gptsync_mod_SOURCES): new variable
14511 (gptsync_mod_CFLAGS): likewise
14512 (gptsync_mod_LDFLAGS): likewise
14513 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
14515 (GRUB_PC_PARTITION_TYPE_HFS): likewise
14516 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
14517 * conf/i386-ieee1275.rmk: likewise
14518 * conf/i386-pc.rmk: likewise
14519 * conf/powerpc-ieee1275.rmk: likewise
14521 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14525 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
14526 (grub_dl_ref): likewise
14528 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
14530 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
14531 split in two functions (one for msdos and one for gpt).
14533 2009-05-08 Pavel Roskin <proski@gnu.org>
14535 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
14538 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
14539 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
14540 Initialize them with -1. Add sanity check for bad1. Eliminate
14543 2009-05-08 David S. Miller <davem@davemloft.net>
14545 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
14547 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
14549 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
14552 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
14554 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
14555 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
14557 2009-05-05 David S. Miller <davem@davemloft.net>
14559 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
14561 2009-05-05 Pavel Roskin <proski@gnu.org>
14563 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
14564 of grub_dl_ref() and grub_dl_unref().
14565 * commands/parttool.c: Remove preprocessor conditionals around
14566 grub_dl_ref() and grub_dl_unref().
14567 * fs/affs.c: Likewise.
14568 * fs/afs.c: Likewise.
14569 * fs/cpio.c: Likewise.
14570 * fs/ext2.c: Likewise.
14571 * fs/fat.c: Likewise.
14572 * fs/hfs.c: Likewise.
14573 * fs/hfsplus.c: Likewise.
14574 * fs/iso9660.c: Likewise.
14575 * fs/jfs.c: Likewise.
14576 * fs/minix.c: Likewise.
14577 * fs/ntfs.c: Likewise.
14578 * fs/reiserfs.c: Likewise.
14579 * fs/sfs.c: Likewise.
14580 * fs/udf.c: Likewise.
14581 * fs/ufs.c: Likewise.
14582 * fs/xfs.c: Likewise.
14583 * include/grub/dl.h: Likewise.
14584 * loader/xnu.c: Likewise.
14586 2009-05-04 Pavel Roskin <proski@gnu.org>
14588 * commands/acpi.c: Remove unused variable my_mod.
14589 * partmap/amiga.c: Likewise.
14590 * partmap/apple.c: Likewise.
14591 * partmap/gpt.c: Likewise.
14592 * partmap/pc.c: Likewise.
14593 * partmap/sun.c: Likewise.
14594 * term/gfxterm.c: Likewise.
14595 * term/i386/pc/vesafb.c: Likewise.
14596 * term/i386/pc/vga.c: Likewise.
14598 2009-05-04 David S. Miller <davem@davemloft.net>
14600 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
14601 pointer args to grub_ieee1275_get_property().
14603 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
14605 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
14606 devices, and do not traverse down under controller nodes.
14608 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
14609 (grub_ofdisk_open): Use it to un-escape "," characters.
14610 * kern/disk.c (find_part_sep): New.
14611 (grub_disk_open): Use it to find the first non-escaped ','
14612 character in the disk name.
14613 * util/ieee1275/devicemap.c (escape_of_path): New.
14614 (grub_util_emit_devicemap_entry): Use it.
14615 * util/sparc64/ieee1275/grub-install.in: Update script to
14616 strip partition specifiers properly by not triggering on
14617 '\' escaped ',' characters.
14619 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
14621 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
14623 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
14625 (linux_vesafb_modes): Add a lot of additional modes to the list (based
14626 on documentation from Wikipedia).
14628 2009-05-04 Pavel Roskin <proski@gnu.org>
14630 * disk/ata.c: Spelling fixes.
14631 * disk/raid.c: Likewise.
14632 * disk/usbms.c: Likewise.
14633 * disk/dmraid_nvidia.c: Likewise.
14634 * kern/ieee1275/openfw.c: Likewise.
14635 * kern/ieee1275/init.c: Likewise.
14636 * kern/ieee1275/cmain.c: Likewise.
14637 * boot/i386/pc/cdboot.S: Likewise.
14638 * video/readers/png.c: Likewise.
14639 * video/i386/pc/vbe.c: Likewise.
14640 * fs/udf.c: Likewise.
14641 * fs/hfs.c: Likewise.
14642 * fs/reiserfs.c: Likewise.
14643 * efiemu/runtime/efiemu.c: Likewise.
14644 * efiemu/main.c: Likewise.
14645 * efiemu/mm.c: Likewise.
14646 * include/grub/elf.h: Likewise.
14647 * include/grub/xnu.h: Likewise.
14648 * include/grub/usbdesc.h: Likewise.
14649 * include/grub/usb.h: Likewise.
14650 * include/grub/script_sh.h: Likewise.
14651 * include/grub/lib/LzmaEnc.h: Likewise.
14652 * include/grub/efiemu/efiemu.h: Likewise.
14653 * include/grub/command.h: Likewise.
14654 * normal/menu.c: Likewise.
14655 * normal/main.c: Likewise.
14656 * normal/datetime.c: Likewise.
14657 * bus/usb/uhci.c: Likewise.
14658 * mmap/i386/uppermem.c: Likewise.
14659 * mmap/mmap.c: Likewise.
14660 * commands/acpi.c: Likewise.
14661 * commands/test.c: Likewise.
14662 * partmap/apple.c: Likewise.
14663 * font/font.c: Likewise.
14664 * loader/sparc64/ieee1275/linux.c: Likewise.
14665 * loader/macho.c: Likewise.
14666 * loader/i386/bsd_trampoline.S: Likewise.
14667 * loader/i386/bsd.c: Likewise.
14668 * loader/xnu.c: Likewise.
14669 * term/i386/pc/vesafb.c: Likewise.
14670 * term/usb_keyboard.c: Likewise.
14671 * util/resolve.c: Likewise.
14672 * util/getroot.c: Likewise.
14674 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
14676 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
14678 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
14680 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
14683 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
14685 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
14686 parameter only available on BIOS.
14688 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
14690 Removed wrong semicolon in declaration
14692 * grub/misc.h (grub_dprintf): remove semicolon
14694 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
14696 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
14697 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
14698 is done by grub_cmd_linux() now).
14699 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
14700 restore video to text mode.
14701 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
14702 indicates lack of "vga=" parameter. "vga=0" is mapped to
14703 `GRUB_LINUX_VID_MODE_NORMAL'.
14705 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
14707 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
14708 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
14709 and `normal/script.c'. Add `kern/rescue_reader.c',
14710 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
14711 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
14712 `grub_script.tab.c'.
14714 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14715 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14716 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14717 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14718 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14720 * Makefile.in: Remove duplicated 2008 in Copyright line.
14722 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
14724 * util/misc.c (grub_util_warn): New function. Emits a warning
14726 * include/grub/util/misc.h (grub_util_warn): New declaration.
14728 * util/i386/pc/grub-install.in: Understand --force and pass it down
14731 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
14733 (setup): Improve error messages and add warnings when requested to
14734 install in odd layouts. Refuse to install using blocklists unless
14737 2009-05-04 martin f. krafft <madduck@madduck.net>
14739 * disk/raid.c (grub_raid_scan_device): Improve debug message.
14741 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
14743 Updated copyright year
14745 * fs/hfsplus.c: updated copyright year
14747 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
14751 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
14752 in the space previously used by unused3
14753 (grub_hfsplus_uuid): new function
14754 (grub_hfsplus_fs): added uuid field
14756 2009-05-03 Pavel Roskin <proski@gnu.org>
14758 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
14759 suppress warnings. It's no longer needed.
14760 * disk/host.c: Likewise.
14761 * disk/ata_pthru.c: Likewise.
14762 * disk/loopback.c: Likewise.
14763 * hook/datehook.c: Likewise.
14764 * parttool/pcpart.c: Likewise.
14765 * fs/i386/pc/pxe.c: Likewise.
14766 * fs/ntfscomp.c: Likewise.
14767 * efiemu/main.c: Likewise.
14768 * mmap/mmap.c: Likewise.
14769 * commands/crc.c: Likewise.
14770 * commands/hexdump.c: Likewise.
14771 * commands/hdparm.c: Likewise.
14772 * commands/acpi.c: Likewise.
14773 * commands/echo.c: Likewise.
14774 * commands/minicmd.c: Likewise.
14775 * commands/blocklist.c: Likewise.
14776 * commands/memrw.c: Likewise.
14777 * commands/loadenv.c: Likewise.
14778 * commands/usbtest.c: Likewise.
14779 * commands/lsmmap.c: Likewise.
14780 * commands/boot.c: Likewise.
14781 * commands/parttool.c: Likewise.
14782 * commands/configfile.c: Likewise.
14783 * commands/search.c: Likewise.
14784 * commands/ieee1275/suspend.c: Likewise.
14785 * commands/cat.c: Likewise.
14786 * commands/i386/pc/pxecmd.c: Likewise.
14787 * commands/i386/pc/play.c: Likewise.
14788 * commands/i386/pc/halt.c: Likewise.
14789 * commands/i386/pc/vbeinfo.c: Likewise.
14790 * commands/i386/pc/vbetest.c: Likewise.
14791 * commands/lspci.c: Likewise.
14792 * commands/date.c: Likewise.
14793 * commands/handler.c: Likewise.
14794 * commands/ls.c: Likewise.
14795 * commands/test.c: Likewise.
14796 * commands/cmp.c: Likewise.
14797 * commands/efi/loadbios.c: Likewise.
14798 * commands/efi/fixvideo.c: Likewise.
14799 * commands/halt.c: Likewise.
14800 * commands/help.c: Likewise.
14801 * commands/reboot.c: Likewise.
14802 * hello/hello.c: Likewise.
14803 * script/sh/main.c: Likewise.
14804 * loader/xnu.c: Likewise.
14805 * term/terminfo.c: Likewise.
14806 * term/i386/pc/serial.c: Likewise.
14807 * term/usb_keyboard.c: Likewise.
14809 2009-05-03 David S. Miller <davem@davemloft.net>
14811 * normal/menu.c: Include grub/parser.h
14813 2009-05-03 Pavel Roskin <proski@gnu.org>
14815 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
14817 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
14818 Suggested by Javier Martín <lordhabbit@gmail.com>
14820 * util/i386/pc/grub-mkrescue.in: Allow for the case when
14821 efiemu??.o doesn't exist.
14822 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
14825 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
14827 FreeBSD 64-bit support
14829 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
14830 and loader/i386/bsd_trampoline.S
14831 (bsd_mod_ASFLAGS): new variable
14832 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
14833 (FREEBSD_MODTYPE_KERNEL64): likewise
14834 (grub_bsd64_trampoline_start): likewise
14835 (grub_bsd64_trampoline_end): likewise
14836 (grub_bsd64_trampoline_selfjump): likewise
14837 (grub_bsd64_trampoline_gdt): likewise
14838 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
14839 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
14840 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
14841 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
14842 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
14844 * loader/i386/bsd_pagetable.c: new file
14845 * loader/i386/bsd_trampoline.S: likewise
14846 * loader/i386/bsd.c (ALIGN_QWORD): new macro
14847 (ALIGN_VAR): likewise
14848 (entry_hi): new variable
14849 (kern_end_mdofs): likewise
14850 (is_64bit): likewise
14851 (grub_freebsd_add_meta): use ALIGN_VAR
14852 (grub_e820_mmap): new declaration
14853 (grub_freebsd_add_mmap): new function
14854 (grub_freebsd_add_meta_module): support 64 bit kernels
14855 (grub_freebsd_list_modules): use ALIGN_VAR
14856 (gdt_descriptor): new declaration
14857 (grub_freebsd_boot): support 64 bit kernels
14858 (grub_bsd_elf64_hook): new function
14859 (grub_bsd_load_elf): support elf64
14861 2009-05-03 Bean <bean123ch@gmail.com>
14863 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
14864 after we get the result of if statement.
14866 2009-05-03 Bean <bean123ch@gmail.com>
14868 * Makefile.in (enable_efiemu): New variable.
14870 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
14872 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
14874 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
14875 path, add -mno-red-zone option.
14876 (efiemu64_s.o): Likewise.
14877 (efiemu64.o): Use macro $^ for source file.
14879 * configure.ac (--enable-efiemu): New option.
14881 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14885 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
14886 (pkglib_MODULES): add xnu.mod
14887 (xnu_mod_SOURCES): new variable
14888 (xnu_mod_CFLAGS): likewise
14889 (xnu_mod_LDFLAGS): likewise
14890 (xnu_mod_ASFLAGS): likewise
14891 * conf/i386-pc.rmk: likewise
14892 * conf/x86_64-efi.rmk: likewise
14893 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
14895 * include/grub/i386/macho.h: new file
14896 * include/grub/i386/xnu.h: likewise
14897 * include/grub/macho.h: likewise
14898 * include/grub/machoload.h: likewise
14899 * include/grub/x86_64/macho.h: likewise
14900 * include/grub/x86_64/xnu.h: likewise
14901 * include/grub/xnu.h: likewise
14902 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
14903 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
14904 * loader/i386/efi/xnu.c: new file
14905 * loader/i386/pc/xnu.c: likewise
14906 * loader/i386/xnu.c: likewise
14907 * loader/i386/xnu_helper.S: likewise
14908 * loader/macho.c: likewise
14909 * loader/xnu.c: likewise
14910 * loader/xnu_resume.c: likewise
14911 * util/grub-dumpdevtree: likewise
14912 * include/grub/i386/pit.h: include grub/err.h
14913 (grub_pit_wait): export
14914 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
14916 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
14920 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
14921 _linux_efi, linux_efi.
14922 new files in grub-emu
14923 new targets efiemu32.o and efiemu64.o
14924 * loader/linux_normal_efiemu.c: likewise
14925 * loader/i386/efi/linux.c: added preliminary efiemu support
14926 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
14928 * include/grub/autoefi.h: new file
14929 * include/grub/i386/efiemu.h: likewise
14930 * include/grub/i386/pc/efiemu.h: likewise
14931 * include/grub/efi/api.h: add LL suffix when necessary
14932 new definitions relating to tables
14933 * include/grub/efiemu/efiemu.h: new file
14934 * include/grub/efiemu/runtime.h: likewise
14935 * efiemu/prepare.c: likewise
14936 * efiemu/loadcore_common.c: likewise
14937 * efiemu/loadcore64.c: likewise
14938 * efiemu/runtime/efiemu.sh: likewise
14939 * efiemu/runtime/efiemu.S: likewise
14940 * efiemu/runtime/efiemu.c: likewise
14941 * efiemu/runtime/config.h: likewise
14942 * efiemu/prepare32.c: likewise
14943 * efiemu/main.c: likewise
14944 * efiemu/modules/pnvram.c: likewise
14945 * efiemu/modules/i386: likewise
14946 * efiemu/modules/i386/pc: likewise
14947 * efiemu/modules/acpi.c: likewise
14948 * efiemu/i386/pc/cfgtables.c: likewise
14949 * efiemu/i386/loadcore64.c: likewise
14950 * efiemu/i386/loadcore32.c: likewise
14951 * efiemu/prepare64.c: likewise
14952 * efiemu/loadcore.c: likewise
14953 * efiemu/symbols.c: likewise
14954 * efiemu/mm.c: likewise
14955 * efiemu/loadcore32.c: likewise
14957 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
14961 * commands/acpi.c: new file
14962 * commands/i386/pc/acpi.c: likewise
14963 * commands/efi/acpi.c: likewise
14964 * include/grub/acpi.h: likewise
14965 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
14966 (acpi_mod_SOURCES): new variable
14967 (acpi_mod_CFLAGS): likewise
14968 (acpi_mod_LDFLAGS): likewise
14969 * conf/i386-efi.rmk: likewise
14970 * conf/x86_64-efi.rmk: likewise
14972 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
14974 Missing part from mmap patch
14976 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
14977 (grub_mmap_unregister)
14978 (grub_mmap_free_and_unregister): use grub_mmap_register
14980 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
14984 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
14985 * loader/i386/linux.c (find_mmap_size): likewise
14986 (allocate_pages): likewise
14987 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
14988 (grub_fill_multiboot_mmap): likewise
14989 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
14990 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
14991 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
14992 (OPENBSD_MMAP_RESERVED): likewise
14993 * include/grub/i386/pc/memory.h: include grub/memory.h
14994 (grub_lower_mem): removed
14995 (grub_upper_mem): likewise
14996 (GRUB_MACHINE_MEMORY_ACPI): new definition
14997 (GRUB_MACHINE_MEMORY_NVS): likewise
14998 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
14999 (GRUB_MACHINE_MEMORY_HOLE): likewise
15000 (grub_machine_mmap_register): likewise
15001 (grub_machine_mmap_unregister): likewise
15002 (grub_machine_get_upper): likewise
15003 (grub_machine_get_lower): likewise
15004 (grub_machine_get_post64): likewise
15005 * include/grub/i386/efi/memory.h: new file
15006 * include/grub/x86_64/efi/memory.h: likewise
15007 * include/grub/efi/memory.h: likewise
15008 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
15009 (mmap_mod_SOURCES): new variable
15010 (mmap_mod_LDFLAGS): likewise
15011 (mmap_mod_ASFLAGS): likewise
15012 * conf/i386-coreboot.rmk: likewise
15013 * conf/i386-ieee1275.rmk: likewise
15014 * conf/i386-efi.rmk: likewise
15015 * conf/x86_64-efi.rmk: likewise
15016 * include/grub/types.h (UINT_TO_PTR): new macro
15017 (PTR_TO_UINT32): likewise
15018 (PTR_TO_UINT64): likewise
15019 * include/grub/memory.h: new file
15020 * mmap/i386/pc/mmap.c: likewise
15021 * mmap/i386/pc/mmap_helper.S: likewise
15022 * mmap/i386/uppermem.c: likewise
15023 * mmap/mmap.c: likewise
15024 * mmap/efi/mmap.c: likewise
15025 * kern/i386/coreboot/init.c (grub_machine_init): don't use
15027 * kern/i386/pc/init.c (grub_lower_mem): removed variable
15028 (grub_upper_mem): likewise
15029 (grub_machine_init): don't use grub_upper_mem,
15030 make grub_lower_mem local
15031 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
15032 grub_mmap_iterate and grub_mmap_get_upper
15033 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
15035 2009-05-02 Bean <bean123ch@gmail.com>
15037 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
15038 script/sh/parser.y.
15039 (pkglib_MODULES): Add normal.mod and sh.mod.
15040 (normal_SOURCES): New variable.
15041 (normal_mod_CFLAGS): Likewise.
15042 (normal_mod_LDFLAGS): Likewise.
15043 (sh_mod_SOURCES): Likewise.
15044 (sh_mod_CFLAGS): Likewise.
15045 (sh_mod_LDFLAGS): Likewise.
15047 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
15048 script/sh/lexer.c_DEPENDENCIES.
15049 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
15050 kern/rescue_reader.c and kern/rescue_parser.c.
15051 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
15052 (grub_emu_SOURCES): Change source files.
15053 (pkglib_MODULES): Remove normal.mod.
15054 (normal_SOURCES): Removed.
15055 (normal_mod_CFLAGS): Likewise.
15056 (normal_mod_LDFLAGS): Likewise.
15057 * conf/i386-coreboot.rmk: Likewise.
15058 * conf/i386-efi.rmk: Likewise.
15059 * conf/i386-ieee1276.rmk: Likewise.
15060 * conf/powerpc-ieee1275.rmk: Likewise.
15061 * conf/sparc64-ieee1275.rmk: Likewise.
15062 * conf/x86_64-efi.rmk: Likewise.
15064 * include/grub/command.h (grub_command_execute): New inline function.
15066 * include/grub/menu.h (grub_menu_entry): Removed commands field.
15068 * include/grub/normal.h: Remove <grub/setjmp.h>.
15069 (grub_fs_module_list): Moved to normal/autofs.c.
15070 (grub_exit_env): Removed.
15071 (grub_command_execute): Likewise.
15072 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
15074 (read_command_list): New function declaration.
15075 (read_fs_list): Likewise.
15077 * include/parser.h: Include <grub/reader.h>.
15078 (grub_parser_split_cmdline): Change type of getline parameter.
15079 (grub_parser): New structure.
15080 (grub_parser_class): New variable.
15081 (grub_parser_execute): New function declaration.
15082 (grub_register_rescue_parser): Likewise.
15083 (grub_parser_register): New inline function.
15084 (grub_parser_unregister): Likewise.
15085 (grub_parser_get_current): Likewise.
15086 (grub_parser_set_current): Likewise.
15088 * include/grub/reader.h: New file.
15089 * kern/reader.c: Likewise.
15090 * kern/rescue_parser.c: Likewise.
15091 * kern/rescue_reader.c: Likewise.
15092 * normal/autofs.c: Likewise.
15093 * normal/dyncmd.c: Likewise.
15095 * include/grub/rescue.h: Removed.
15096 * normal/command.h: Likewise.
15098 * include/grub/script.h: Moved to ...
15099 * include/grub/script_sh.h: ... Moved here.
15100 * normal/execute.c: Moved to ...
15101 * script/sh/execute.c: ... Moved here.
15102 * normal/function.c: Moved to ...
15103 * script/sh/function.c: ... Moved here.
15104 * normal/lexer.c: Moved to ...
15105 * script/sh/lexer.c: ... Moved here.
15106 * normal/parser.y: Moved to ...
15107 * script/sh/parser.y: ... Moved here.
15108 * normal/script.c: Moved to ...
15109 * script/sh/script.c: ... Moved here.
15111 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
15113 (grub_exit_env): Removed.
15114 (fs_module_list): Moved to normal/autofs.c.
15115 (grub_file_getline): Don't handle comment here.
15116 (free_menu): Skip removed field entry->commands.
15117 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
15119 (read_config_file): Removed nested parameter, change getline function.
15120 (grub_enter_normal_mode): Removed.
15121 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
15122 (read_command_list): Likewise.
15123 (autoload_fs_module): Moved to normal/autofs.c.
15124 (read_fs_list): Likewise.
15125 (reader_nested): New variable.
15126 (grub_normal_execute): Run parser.sh to switch to sh parser.
15127 (grub_cmd_rescue): Removed.
15128 (cmd_normal): Removed.
15129 (grub_cmd_normal): Unregister itself at the beginning. Don't register
15131 (grub_cmdline_run): New function.
15132 (grub_normal_reader_init): Likewise.
15133 (grub_normal_read_line): Likewise.
15134 (grub_env_write_pager): Likewise.
15135 (cmdline): New variable.
15136 (grub_normal_reader): Likewise.
15137 (GRUB_MOD_INIT): Register normal reader and set as current, register
15138 pager hook, register normal command with grub_register_command_prio,
15139 so that it won't show up in command.lst.
15140 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
15141 grub_fs_autoload_hook.
15143 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
15144 (grub_menu_execute_entry): Replace grub_script_execute with
15145 grub_parser_execute, change parameter to grub_command_execute.
15147 * normal/menu_text.c: Remove <grub/script.h>.
15149 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
15150 and <grub/parser.h>.
15151 (run): Change editor_getline to use new parser interface. Change
15152 parameter to grub_command_execute.
15154 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
15155 <grub/reader.h> and <grub/parser.h>.
15156 (grub_load_normal_mode): Execute normal command.
15157 (grub_main): Call grub_register_core_commands,
15158 grub_register_rescue_parser and grub_register_rescue_reader, use
15159 grub_reader_loop to enter input loop.
15161 * kern/parser.c (grub_parser_split_cmdline): Change type of
15163 (grub_parser_class): New variable.
15164 (grub_parser_execute): New function.
15166 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
15167 * loader/multiboot2.c: Likewise.
15168 * loader/sparc64/ieee1275/linux.c: Likewise.
15170 * util/grub-emu.c (read_command_list): New dummy function.
15172 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
15174 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
15175 count to 16 for CCISS and IDA.
15177 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
15179 * normal/menu_text.c (grub_wait_after_message): Print a newline
15180 after waiting for user input.
15182 * loader/i386/linux.c: Include `<grub/normal.h>'.
15183 (grub_cmd_linux): Improve the error message about `ask' mode, by
15184 waiting for user input so it's not missed (we can do this, since
15185 user requested interaction).
15187 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
15189 Added missing lst to grub-mkrescue
15191 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
15192 and ${input_dir}/parttool.lst
15194 2009-04-30 David S. Miller <davem@davemloft.net>
15196 * util/hostdisk.c (device_is_wholedisk): New function.
15197 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
15198 zero only if device_is_wholedisk() returns true.
15200 * util/hostdisk.c (convert_system_partition_to_system_disk):
15201 Handle virtual disk devices named /dev/vdiskX as found on sparc
15204 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
15205 lettered partition specifier is found, convert to numbered.
15207 2009-04-29 David S. Miller <davem@davemloft.net>
15209 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
15210 * include/grub/sparc64/ieee1275/memory.h: Likewise.
15212 * normal/command.c: Add missing newline at end of file.
15214 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
15216 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
15217 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
15218 grub_ofdisk_read): Likewise, and deal similarly with the fact that
15219 ihandles have a 32-bit type but need to be stored in a "void *".
15221 2009-04-28 Pavel Roskin <proski@gnu.org>
15223 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
15224 not disk. Adjust all dependencies.
15225 (grub_fs_uuid_close): Use grub_device_close(), not
15228 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
15229 parent's partition, don't copy it by reference, as it gets freed
15232 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
15234 Preboot hooks support
15236 * commands/boot.c (struct grub_preboot_t): new declaration
15237 (preboots_head): new variable
15238 (preboots_tail): likewise
15239 (grub_loader_register_preboot_hook): new function
15240 (grub_loader_unregister_preboot_hook): likewise
15241 (grub_loader_set): launch preboot hooks
15242 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
15243 (grub_loader_register_preboot_hook): new declaration
15244 (grub_loader_unregister_preboot_hook): likewise
15246 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
15250 * disk/scsi.c (grub_scsi_open): added missing cast when
15251 calling grub_dprintf
15253 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
15255 Bug and warning fixes
15257 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
15259 * commands/test.c (test_parse): fixed bug with file tests and corrected
15260 declaration of find_file
15262 2009-04-26 Pavel Roskin <proski@gnu.org>
15264 * Makefile.in: Don't install empty manual pages if help2man is
15265 missing. Use help2man option for output, not shell redirection.
15267 2009-04-26 David S. Miller <davem@davemloft.net>
15269 * util/grub-mkdevicemap.c (make_device_map): Add missing
15270 NESTED_FUNC_ATTR to process_device().
15272 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
15276 * commands/test.c: rewritten to use bash-like test
15278 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
15280 Parttool autoloading and improvements
15282 * Makefile.in (pkglib_DATA): add parttool.lst
15283 (parttool.lst): new target
15284 * genmk.rb: generate parttool-*
15285 (CLEANFILES): add #{parttool}
15286 (PARTTOOLFILES): new variable
15287 * genparttoollist.sh: new file
15288 * parttool/pcpart.c (grub_pcpart_boot): more feedback
15289 (grub_pcpart_type): likewise
15290 * commands/parttool.c (helpmsg): new variable
15291 (grub_cmd_parttool): output help if not enough arguments are supplied
15293 (GRUB_MOD_INIT(parttool)): use helpmsg
15295 2009-04-24 David S. Miller <davem@davemloft.net>
15297 Avoiding opening same device multiple times in device iterator.
15299 * kern/device.c: (grub_device_iterate): Define struct part_ent,
15300 and use it to build a list of partitions in iterate_disk() and
15301 iterate_partition().
15303 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
15306 * disk/ieee1275/nand.c (grub_nand_iterate): Return
15307 grub_devalias_iterate() result instead of unconditional 0.
15308 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
15309 Also, capture hook return value, either directly or via
15310 grub_children_iterate(), and propagate to caller.
15311 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
15312 grub_children_iterate): Return value is now 'int' instead of
15314 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
15315 like a proper iterator, stopping when hooks return non-zero.
15316 (grub_devalias_iterate): Likewise.
15318 2009-04-23 David S. Miller <davem@davemloft.net>
15320 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
15322 2009-04-22 David S. Miller <davem@davemloft.net>
15324 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
15325 is larger than address_cells, use that value for address_cells too.
15327 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
15328 IEEE1275_MAX_PATH_LEN): Define.
15329 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
15330 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
15331 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
15332 'devtype'. Explicitly NULL terminate devalias expansion.
15334 * util/sparc64/ieee1275/misc.c: New file.
15335 * util/sparc64/ieee1275/grub-setup.c: New file.
15336 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
15337 * util/sparc64/ieee1275/grub-mkimage.c: New file.
15338 * util/sparc64/ieee1275/grub-install.in: New file.
15339 * util/ieee1275/ofpath.c: New file.
15340 * util/ieee1275/devicemap.c: New file.
15341 * util/devicemap.c: New file.
15342 * util/deviceiter.c: New file.
15343 * kern/sparc64/ieee1275/init.c: New file.
15344 * include/grub/util/ofpath.h: New file.
15345 * include/grub/util/deviceiter.h: New file.
15346 * util/grub-mkdevicemap.c: Include deviceiter.h.
15347 Implement using grub_util_emit_devicemap_entry and
15348 grub_util_iterate_devices.
15349 * conf/i386-corebook.rmk: Build util/deviceiter.c and
15350 util/devicemap.c into grub-mkdevicemap
15351 * conf/i386-efi.rmk: Likewise.
15352 * conf/i386-ieee1275.rmk: Likewise.
15353 * conf/i386-pc.rmk: Likewise.
15354 * conf/powerpc-ieee1275.rmk: Likewise.
15355 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
15356 images and installation utilities. Build kernel as image
15357 instead of as elf binary. Use common rules as much as possible.
15359 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
15361 Correct GPT definition
15363 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
15366 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
15368 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
15370 2009-04-19 David S. Miller <davem@davemloft.net>
15372 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
15373 (grub_rescue_cmd_linux): Rename to...
15374 (grub_cmd_linux): and fix prototype.
15375 (grub_rescue_cmd_initrd): Rename to...
15376 (grub_cmd_initrd): and fix prototype.
15377 (cmd_linux, cmd_initrd): New.
15378 (GRUB_MOD_INIT(linux)): Use grub_register_command().
15379 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
15381 2009-04-17 Pavel Roskin <proski@gnu.org>
15383 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
15385 (grub_ohci_transfer): Likewise.
15387 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
15389 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
15390 return without a value. Fix inconsistent indentation.
15392 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
15393 match struct grub_fs.
15395 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
15396 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
15397 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
15398 * commands/lspci.c (grub_lspci_iter): Likewise.
15400 2009-04-16 Bean <bean123ch@gmail.com>
15402 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
15405 2009-04-15 Pavel Roskin <proski@gnu.org>
15407 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
15408 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
15409 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
15412 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
15414 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
15415 that no multiple data or metadata areas are supported and `Unknown
15418 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
15420 Move loader out of the kernel
15422 * kern/loader.c: moved to ...
15423 * commands/boot.c: ... moved here
15424 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
15425 * commands/boot.c (grub_cmd_boot): moved here. All users updated
15426 * include/grub/kernel.h (grub_machine_fini): export
15427 * include/grub/loader.h (grub_loader_is_loaded): update declaration
15428 (grub_loader_set): likewise
15429 (grub_loader_unset): likewise
15430 (grub_loader_boot): likewise
15431 * conf/common.rmk: new module boot.mod
15432 (pkglib_MODULES): add boot.mod
15433 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
15434 (grub_emu_SOURCES): likewise
15435 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
15436 (grub_emu_SOURCES): likewise
15437 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
15438 (grub_emu_SOURCES): likewise
15439 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
15440 (grub_emu_SOURCES): likewise
15441 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
15442 (grub_emu_SOURCES): likewise
15443 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
15444 (grub_emu_SOURCES): likewise
15445 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
15446 (grub_emu_SOURCES): likewise
15448 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
15450 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
15452 * kern/misc.c (grub_itoa): Removed function
15453 (grub_ltoa): likewise
15454 (grub_vsprintf): use grub_lltoa
15456 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
15460 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
15461 * conf/i386-coreboot.rmk: likewise
15462 * conf/i386-ieee1275.rmk: likewise
15463 * conf/powerpc-ieee1275.rmk: likewise
15465 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
15467 * INSTALL: Add that `./autogen.sh' needs to be run before
15470 2009-04-14 Bean <bean123ch@gmail.com>
15472 * Makefile.in (pkglib_DATA): Add handler.lst.
15473 (handler.lst): New rule.
15475 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
15476 * conf/i386-coreboot.rmk: Likewise.
15477 * conf/i386-ieee1275.rmk: Likewise.
15478 * conf/i386-efi.rmk: Likewise.
15479 * conf/x86_64-efi.rmk: Likewise.
15480 * conf/powerpc-ieee1275.rmk: Likewise.
15481 * conf/sparc64-ieee1275.rmk: Likewise.
15483 * genhandlerlist.sh: New file.
15485 * genmk.rb: Add rules to generate handler.lst.
15487 * include/grub/normal.h (grub_file_getline): New function definition.
15488 (read_handler_list): Likewise.
15489 (free_handler_list): Likewise.
15491 * include/grub/term.h (grub_term_register_input): Add name parameter
15492 for auto generation of handler.lst.
15493 (grub_term_register_output): Likewise.
15495 * normal/handler.c: New file.
15497 * normal/main.c (get_line): Renamed to grub_file_getline.
15498 (read_config_file): Use the newly renamed grub_file_getline.
15499 (read_command_list): Likewise.
15500 (read_fs_list): Likewise.
15501 (grub_normal_execute): Call read_handler_list to parse handler.lst.
15502 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
15504 * term/efi/console.c (grub_console_init): Add name parameter for auto
15505 generation of handler.lst.
15506 * term/gfxterm.c: Likewise.
15507 * term/i386/pc/at_keyboard.c: Likewise.
15508 * term/i386/pc/console.c: Likewise.
15509 * term/i386/pc/serial.c: Likewise.
15510 * term/i386/pc/vesafb.c: Likewise.
15511 * term/i386/pc/vga.c: Likewise.
15512 * term/i386/pc/vga_text.c: Likewise.
15513 * term/ieee1275/ofconsole.c: Likewise.
15514 * term/usb_keyboard.c: Likewise.
15516 2009-04-14 Bean <bean123ch@gmail.com>
15518 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
15519 properly with null character.
15521 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
15523 * configure: Remove.
15524 * config.h.in: Likewise.
15525 * stamp-h.in: Likewise.
15526 * DISTLIST: Likewise.
15527 * conf/common.mk: Likewise.
15528 * conf/i386-coreboot.mk: Likewise.
15529 * conf/i386-efi.mk: Likewise.
15530 * conf/i386-ieee1275.mk: Likewise.
15531 * conf/i386.mk: Likewise.
15532 * conf/i386-pc.mk: Likewise.
15533 * conf/powerpc-ieee1275.mk: Likewise.
15534 * conf/sparc64-ieee1275.mk: Likewise.
15535 * conf/x86_64-efi.mk: Likewise.
15537 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
15540 2009-04-14 John Stanley <jpsinthemix@verizon.net>
15541 David S. Miller <davem@davemloft.net>
15543 * util/hostdisk.c (make_device_name): Fix buffer length
15546 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
15548 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
15549 <sys/param.h> and <sys/sysctl.h>.
15550 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
15551 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
15552 opening the device and reset them afterwards.
15554 2009-04-13 Pavel Roskin <proski@gnu.org>
15556 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
15557 Reported by John Stanley <jpsinthemix@verizon.net>
15559 2009-04-13 Robert Millan <rmh@aybabtu.com>
15561 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
15562 that name for menuentries when appropriate.
15564 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
15566 * util/grub.d/10_freebsd.in: Add a missing `fi'.
15568 2009-04-13 Robert Millan <rmh@aybabtu.com>
15570 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
15571 to Linux, simply abort telling the user it's no longer supported.
15573 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
15575 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
15576 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
15577 `freebsd_loadenv' only when devices.hints exist.
15579 2009-04-13 Pavel Roskin <proski@gnu.org>
15581 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
15583 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
15585 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
15587 (grub_drive): Likewise.
15589 2009-04-13 David S. Miller <davem@davemloft.net>
15591 * kern/sparc64/ieee1275/ieee1275.c: New file.
15592 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
15593 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
15594 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
15595 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
15596 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
15597 grub_ieee1275_alloc_physmem): Declare new exported functions.
15599 * include/grub/sparc64/ieee1275/loader.h: New file.
15600 * include/grub/sparc64/ieee1275/memory.h: Likewise.
15601 * include/grub/sparc64/kernel.h: Likewise.
15602 * loader/sparc64/ieee1275/linux.c: Likewise.
15604 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
15605 (grub_fstest_SOURCES): Likewise.
15607 * util/hostdisk.c (make_device_name): Do not make any assumptions
15608 about the length of drive names.
15610 * kern/dl.c (grub_dl_load_file): Close file immediately when
15611 we are done using it.
15613 2009-04-12 David S. Miller <davem@davemloft.net>
15615 * kern/misc.c (grub_ltoa): Fix cast when handling negative
15616 values. Noticed by Pavel Roskin.
15618 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
15621 * genmk.rb: Add more flexible image type specification, also
15622 pass --strip-unneeded to objcopy.
15623 * conf/i386-pc.rmk: Use *_FORMAT.
15624 * conf/i386-pc.mk: Rebuilt.
15626 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
15627 (OFDISK_HASH_SZ): Define.
15628 (ofdisk_hash): New hash table.
15629 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
15630 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
15631 instead of device phandle which is not unique.
15633 * kern/sparc64/ieee1275/init.c: Delete, replace with...
15634 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
15635 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
15636 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
15637 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
15638 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
15639 GRUB_KERNEL_MACHINE_DATA_END): Define.
15640 (grub_kernel_image_size, grub_total_module_size): Declare.
15642 2009-04-12 Pavel Roskin <proski@gnu.org>
15644 * configure.ac: Change the logic when we check for target tools.
15645 Do it when the target is specified and it's different from the
15646 specified value of the host.
15648 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
15650 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
15651 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
15652 GNU/kFreeBSD. Check if a device is a character device. Use
15653 DIOCGMEDIASIZE to get the size.
15654 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
15655 support for GNU/kFreeBSD.
15656 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
15657 is a character device instead of a block device. Add support for
15658 FreeBSD device names.
15660 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
15661 is a character device instead of a block device.
15663 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
15664 is a character device instead of a block device.
15666 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
15668 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
15669 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
15670 FreeBSD. Check if a device is a character device. Use
15671 DIOCGMEDIASIZE to get the size.
15672 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
15673 support for FreeBSD.
15674 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
15675 is a character device instead of a block device. Add support for
15676 FreeBSD device names.
15678 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
15679 a character device instead of a block device.
15680 (grub_util_check_char_device): New function.
15682 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
15683 a character device instead of a block device.
15685 * include/grub/util/getroot.h (grub_util_check_char_device): New
15688 2009-04-11 David S. Miller <davem@davemloft.net>
15690 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
15692 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
15693 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
15694 function, if present.
15695 (__bswapdi2): Likewise.
15697 * include/grub/sparc64/ieee1275/boot.h: New file.
15698 * boot/sparc64/ieee1275/boot.S: Likewise.
15699 * boot/sparc64/ieee1275/diskboot.S: Likewise.
15701 * kern/misc.c (grub_ltoa): New function.
15702 (grub_vsprintf): Use it to format 'long' integers.
15704 2009-04-10 David S. Miller <davem@davemloft.net>
15706 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
15707 slots are of type grub_ieee1275_cell_t.
15708 (grub_nand_read): Likewise.
15709 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
15710 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
15711 macros are used to compare values in arg/ret block of the call.
15712 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
15713 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
15714 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
15715 grub_ieee1275_instance_to_path, grub_ieee1275_write,
15716 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
15717 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
15718 grub_ieee1275_close, grub_ieee1275_set_property,
15719 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
15720 grub_ieee1275_cell_t.
15721 * kern/ieee1275/openfw.c (grub_map): Likewise.
15722 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
15723 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
15725 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
15726 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15727 (grub_devalias_iterate): Likewise.
15729 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15733 * fs/ufs.c (INODE_NBLOCKS): new definition
15734 (struct grub_ufs_dirent): added fields for non-BSD dirents
15735 (grub_ufs_get_file_block): fixed double indirect handling
15736 (grub_ufs_lookup_symlink): use more robust way to determine whether
15738 (grub_ufs_find_file): support for non-BSD dirents
15739 (grub_ufs_dir): support for non-BSD dirents
15741 2009-04-10 Bean <bean123ch@gnail.com>
15743 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
15744 attribute, otherwise the size would be wrong for i386 platform.
15746 * include/grub/pci.h (grub_pci_read_word): New inline function.
15747 (grub_pci_read_byte): Likewise.
15748 (grub_pci_write): Likewise.
15749 (grub_pci_write_word): Likewise.
15750 (grub_pci_write_byte): Likewise.
15752 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
15754 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
15755 (find_framebuf): Scan pci to locate the frame buffer address.
15757 * commands/efi/fixvideo.c: New file.
15759 * commands/efi/loadbios.c: Likewise.
15761 * commands/memrw.c: Likewise.
15763 * util/grub-dumpbios.in: Likewise.
15765 * conf/common.rmk (grub-dumpbios): New utility.
15766 (pkglib_MODULES): New module memrw.mod.
15767 (memrw_mod_SOURCE): New macro.
15768 (memrw_mod_CFLAGS): Likewise.
15769 (memrw_mod_LDFLAGS): Likewise.
15771 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
15773 (loadbios_mod_SOURCE): New macro.
15774 (loadbios_mod_CFLAGS): Likewise.
15775 (loadbios_mod_LDFLAGS): Likewise.
15776 (fixvideo_mod_SOURCE): Likewise.
15777 (fixvideo_mod_CFLAGS): Likewise.
15778 (fixvideo_mod_LDFLAGS): Likewise.
15780 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
15782 (loadbios_mod_SOURCE): New macro.
15783 (loadbios_mod_CFLAGS): Likewise.
15784 (loadbios_mod_LDFLAGS): Likewise.
15785 (fixvideo_mod_SOURCE): Likewise.
15786 (fixvideo_mod_CFLAGS): Likewise.
15787 (fixvideo_mod_LDFLAGS): Likewise.
15789 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
15791 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
15793 2009-04-07 David S. Miller <davem@davemloft.net>
15795 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
15796 support for R_SPARC_OLO10 relocations. Fix compile warning for
15797 R_SPARC_WDISP30 case.
15798 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
15800 2009-04-06 Pavel Roskin <proski@gnu.org>
15802 * include/grub/misc.h (ARRAY_SIZE): New macro.
15803 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
15805 * loader/i386/linux.c (allocate_pages): Use free_pages().
15806 (grub_linux_unload): Don't use free_pages().
15807 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
15808 wrong index. Treat all other modes as text modes.
15809 (grub_cmd_linux): Initialize vid_mode unconditionally to
15810 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
15812 * commands/help.c (print_command_help): Use cmd->prio, not
15813 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
15815 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15819 * parttool/pcpart.c: new file
15820 * commands/parttool.c: likewise
15821 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
15822 (parttool_mod_SOURCES): new variable
15823 (parttool_mod_CFLAGS): likewise
15824 (parttool_mod_LDFLAGS): likewise
15825 (pcpart_mod_SOURCES): likewise
15826 (pcpart_mod_CFLAGS): likewise
15827 (pcpart_mod_LDFLAGS): likewise
15828 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
15829 and parttool/pcpart.c
15830 * conf/i386-efi.rmk: likewise
15831 * conf/i386-ieee1275.rmk: likewise
15832 * conf/i386-pc.rmk: likewise
15833 * conf/powerpc-ieee1275.rmk: likewise
15834 * conf/sparc64-ieee1275.rmk: likewise
15835 * conf/x86_64-ieee1275.rmk: likewise
15837 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
15839 Support for mtime and further expandability of dir command
15841 * include/grub/lib/datetime.h: moved to ...
15842 * include/grub/datetime.h: ... moved here and added
15843 declaration of grub_unixtime2datetime. All users updated
15844 * include/grub/fs.h: new syntax for dir and mtime functions in
15846 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
15847 and GRUB_FSHELP_FLAGS_MASK
15848 * commands/ls.c (grub_ls_list_files): Write mtime in long format
15849 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
15850 (grub_ext2_mtime): new function
15851 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
15852 (grub_hfsplus_mtime): new function
15853 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
15854 (GRUB_UFS_ATTR_FILE): likewise
15855 (GRUB_UFS_ATTR_LNK): likewise
15856 (struct grub_ufs_sblock): new fields mtime
15857 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
15859 (grub_ufs_dir): mtime support
15860 (grub_ufs_mtime): new function
15861 * fs/affs.c (grub_affs_dir): use new dir syntax
15862 * fs/afs.c (grub_afs_dir): likewise
15863 * fs/cpio.c (grub_cpio_dir): likewise
15864 * fs/fat.c (grub_fat_find_dir): likewise
15865 * fs/hfs.c (grub_hfs_dir): likewise
15866 * fs/iso9660.c (grub_iso9660_dir): likewise
15867 * fs/jfs.c (grub_jfs_dir): likewise
15868 * fs/minix.c (grub_minix_dir): likewise
15869 * fs/ntfs.c (grub_ntfs_dir): likewise
15870 * fs/reiserfs.c (grub_reiserfs_dir): likewise
15871 * fs/sfs.c (grub_sfs_dir): likewise
15872 * fs/xfs.c (grub_xfs_dir): likewise
15873 * util/hostfs.c (grub_hostfs_dir): likewise
15874 * lib/datetime.c: moved to ...
15875 * normal/datetime.c: ... moved here
15876 (grub_unixtime2datetime): new function
15877 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
15878 * normal/completion.c (iterate_dir): use new dir syntax
15879 * normal/misc.c (grub_normal_print_device_info): tell the
15880 last modification time of a volume
15881 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
15882 * conf/common.rmk: added lib/datetime.c to ls.mod
15883 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
15884 (normal_mod_SOURCES): likewise
15885 (datetime_mod_SOURCES): Removed lib/datetime.c
15886 * conf/i386-efi.rmk: likewise
15887 * conf/i386-ieee1275.rmk: likewise
15888 * conf/i386-pc.rmk: likewise
15889 * conf/powerpc-ieee1275.rmk: likewise
15890 * conf/sparc64-ieee1275.rmk: likewise
15891 * conf/x86_64-efi.rmk: likewise
15893 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
15895 Trim trailing spaces in FAT label and support mtools-like labels
15897 * fs/fat.c (grub_fat_iterate_dir): New function based
15898 on grub_fat_find_dir
15899 (grub_fat_find_dir): use grub_fat_iterate_dir
15900 (grub_fat_label): likewise
15902 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
15904 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
15906 remove extraneous kernel_elf_HEADERS
15908 2009-04-04 Bean <bean123ch@gnail.com>
15910 * include/grub/util/misc.h: Add dummy function fsync for mingw.
15912 * util/misc.c: Likewise.
15914 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
15916 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
15917 instead of grub_printf.
15919 2009-04-03 Robert Millan <rmh@aybabtu.com>
15921 * loader/i386/linux.c (grub_linux_setup_video): Fill
15922 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
15923 values from `mode info' structure instead of hardcoded
15926 2009-04-01 Pavel Roskin <proski@gnu.org>
15928 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
15930 * genmk.rb: Likewise.
15931 * configure.ac: Likewise.
15933 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
15935 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
15936 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
15938 2009-04-01 David S. Miller <davem@davemloft.net>
15940 * normal/sparc64/setjmp.S: Fix setjmp implementation.
15941 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
15942 (grub_setjmp): Mark with 'returns_twice' attribute.
15943 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
15944 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
15945 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
15947 2009-04-01 Robert Millan <rmh@aybabtu.com>
15949 Reapply fix from 2008-07-28 which was accidentally reverted; also
15950 perform the same fix to a similar check in same function.
15952 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
15953 with the same number are found, just use issue a warning with
15954 grub_dprintf(), as this error has been reported to be non-fatal.
15956 2009-03-31 Pavel Roskin <proski@gnu.org>
15958 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
15959 for cross-compilation.
15961 2009-03-30 Robert Millan <rmh@aybabtu.com>
15963 Fix i386-ieee1275 build.
15965 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
15966 Remove declaration.
15968 2009-03-30 Pavel Roskin <proski@gnu.org>
15970 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
15971 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
15972 zero-terminated, rely only on the strlen value. Fix comparison
15973 of strings differing in length.
15975 2009-03-30 Robert Millan <rmh@aybabtu.com>
15977 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
15978 checking for abi version. Improve error messages on BIOS to notify
15979 user about `linux16' command.
15981 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15985 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
15986 in case of collision
15987 * disk/scsi.c (grub_scsi_open): free scsi in case of error
15989 2009-03-29 Robert Millan <rmh@aybabtu.com>
15991 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
15992 set `vid_mode' accordingly.
15993 (grub_linux_boot): Process `vid_mode' and set video mode.
15995 2009-03-29 Robert Millan <rmh@aybabtu.com>
15997 * util/grub.d/10_linux.in (linux_entry): New function.
15998 Factorize generation of Linux boot entries.
16000 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
16002 Make the format of Environment Block plain text. The boot loader
16003 part is not tested well yet.
16005 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
16007 (envblk): Likewise.
16008 (usage): Remove "info" and "clear". Add "unset". Update the
16009 description of "set", as this does not delete variables any
16011 (create_envblk_file): Complete rewrite.
16012 (open_envblk_file): Likewise.
16013 (cmd_info): Removed.
16014 (cmd_list): Likewise.
16015 (cmd_set): Likewise.
16016 (cmd_clear): Likewise.
16017 (list_variables): New function.
16018 (write_envblk): Likewise.
16019 (set_variables): Likewise.
16020 (unset_variables): Likewise.
16021 (main): Complete rewrite.
16023 * commands/loadenv.c (buffer): Removed.
16024 (envblk): Likewise.
16025 (open_envblk_file): New function.
16026 (read_envblk_file): Complete rewrite.
16027 (grub_cmd_load_env): Likewise.
16028 (grub_cmd_list_env): Likewise.
16029 (struct blocklist): New struct.
16030 (free_blocklists): New function.
16031 (check_blocklists): Likewise.
16032 (write_blocklists): Likewise.
16033 (grub_cmd_save_env): Complete rewrite.
16035 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
16036 a plain text signature.
16037 (GRUB_ENVBLK_MAXLEN): Removed.
16038 (struct grub_envblk): Complete rewrite.
16039 (grub_envblk_find): Removed.
16040 (grub_envblk_insert): Likewise.
16041 (grub_envblk_open): New prototype.
16042 (grub_envblk_set): Likewise.
16043 (grub_envblk_delete): Put const to VALUE.
16044 (grub_envblk_iterate): Put const to NAME and VALUE.
16045 (grub_envblk_close): New prototype.
16046 (grub_envblk_buffer): New inline function.
16047 (grub_envblk_size): Likewise.
16049 * lib/envblk.c: Include grub/mm.h.
16050 (grub_env_find): Removed.
16051 (grub_envblk_open): New function.
16052 (grub_envblk_close): Likewise.
16053 (escaped_value_len): Likewise.
16054 (find_next_line): Likewise.
16055 (grub_envblk_insert): Removed.
16056 (grub_envblk_set): New function.
16057 (grub_envblk_delete): Complete rewrite.
16058 (grub_envblk_iterate): Likewise.
16060 2009-03-28 Robert Millan <rmh@aybabtu.com>
16062 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
16063 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
16064 variables. Use 16-bit loader.
16065 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
16067 * kern/i386/loader.S (grub_linux_boot): Rename to ...
16068 (grub_linux16_boot): ... this. Update all users.
16069 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
16070 (grub_linux_boot): ... this. Update all users.
16072 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
16073 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
16074 commands to `linux16' and `initrd16'.
16075 (GRUB_MOD_FINI(linux)): Rename to ...
16076 (GRUB_MOD_FINI(linux16)): ... this.
16078 2009-03-24 Pavel Roskin <proski@gnu.org>
16080 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
16081 not just for compilation.
16083 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
16085 Move multiboot helper out of kernel
16087 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
16088 `loader/i386/multiboot_helper.S'.
16089 * conf/i386-coreboot.rmk: Likewise
16090 * conf/i386-ieee1275.rmk: Likewise
16092 * kern/i386/loader.S: Move multiboot helpers from here...
16093 * loader/i386/multiboot_helper.S: ...moved here
16094 * include/grub/i386/loader.h: Move declarations of multiboot
16095 helpers from here...
16096 * include/grub/i386/multiboot.h: ...moved here
16097 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
16099 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
16101 * kern/env.c (grub_env_context_open): Added an argument to specify
16102 whether a new context inherits exported variables from current
16103 one. This is useful when making a sandbox to interpret a config
16105 All callers updated.
16107 * include/grub/env.h (grub_env_context_open): Updated the prototype.
16109 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
16111 * kern/env.c (grub_env_context_close): Fix memory leaks.
16113 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
16115 * normal/main.c (grub_normal_execute): Added an argument
16116 BATCH to specify if an interactive interface should be provided
16117 after reading a config file.
16118 All callers updated.
16119 (read_command_list): Prevent being executed twice.
16120 (read_fs_list): Likewise.
16122 * include/grub/normal.h (grub_normal_execute): Updated the
16125 2009-03-22 Pavel Roskin <proski@gno.org>
16127 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
16129 * kern/i386/pc/startup.S: Likewise.
16130 * kern/i386/efi/startup.S: Likewise.
16131 * kern/i386/ieee1275/startup.S: Likewise.
16132 * kern/i386/coreboot/startup.S: Likewise.
16133 * kern/x86_64/efi/startup.S: Likewise.
16135 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
16136 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
16137 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
16139 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
16141 Bugfixes in multiboot for bugs uncovered by solaris kernel.
16143 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
16145 Use vaddr of correct segment for entry_point.
16147 2009-03-21 Bean <bean123ch@gmail.com>
16149 * commands/blocklist.c: Add include file <grub/command.h>, remove
16150 <grub/normal.h> and <grub/arg.h>.
16151 (grub_cmd_blocklist): Use the new command interface.
16152 (GRUB_MOD_INIT): Likewise.
16153 (GRUB_MOD_FINI): Likewise.
16154 * commands/boot.c: Likewise.
16155 * commands/cat.c: Likewise.
16156 * commands/cmp.c: Likewise.
16157 * commands/configfile.c: Likewise.
16158 * commands/crc.c: Likewise.
16159 * commands/echo.c: Likewise.
16160 * commands/halt.c: Likewise.
16161 * commands/handler.c: Likewise.
16162 * commands/hdparm.c: Likewise.
16163 * commands/help.c: Likewise.
16164 * commands/hexdump.c: Likewise.
16165 * commands/loadenv.c: Likewise.
16166 * commands/ls.c: Likewise.
16167 * commands/lsmmap.c: Likewise.
16168 * commands/lspci.c: Likewise.
16169 * commands/loadenv.c: Likewise.
16170 * commands/read.c: Likewise.
16171 * commands/reboot.c: Likewise.
16172 * commands/search.c: Likewise.
16173 * commands/sleep.c: Likewise.
16174 * commands/test.c: Likewise.
16175 * commands/usbtest.c: Likewise.
16176 * commands/videotest.c: Likewise.
16177 * commands/i386/cpuid.c: Likewise.
16178 * commands/i386/pc/halt.c: Likewise.
16179 * commands/i386/pc/play.c: Likewise.
16180 * commands/i386/pc/pxecmd.c: Likewise.
16181 * commands/i386/pc/vbeinfo.c: Likewise.
16182 * commands/i386/pc/vbetest.c: Likewise.
16183 * commands/ieee1275/suspend.c: Likewise.
16184 * disk/loopback.c: Likewise.
16185 * font/font_cmd.c: Likewise.
16186 * hello/hello.c: Likewise.
16187 * loader/efi/appleloader.c: Likewise.
16188 * loader/efi/chainloader.c: Likewise.
16189 * loader/i386/bsd.c: Likewise.
16190 * loader/i386/efi/linux.c: Likewise.
16191 * loader/i386/ieee1275/linux.c: Likewise.
16192 * loader/i386/linux.c: Likewise.
16193 * loader/i386/pc/chainloader.c: Likewise.
16194 * loader/i386/pc/linux.c: Likewise.
16195 * loader/powerpc/ieee1275/linux.c: Likewise.
16196 * loader/multiboot_loader.c: Likewise.
16197 * term/gfxterm.c: Likewise.
16198 * term/i386/pc/serial.c: Likewise.
16199 * term/terminfo.c: Likewise.
16201 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
16202 * term/i386/pc/vga.c: Likewise.
16203 * video/readers/jpeg.c: Likewise.
16204 * video/readers/png.c: Likewise.
16205 * video/readers/tga.c: Likewise.
16207 * util/grub-fstest (cmd_loopback): Removed.
16208 (cmd_blocklist): Likewise.
16209 (cmd_ls): Likewise.
16210 (grub_register_command): Likewise.
16211 (grub_unregister_command): Likewise.
16212 (execute_command): Use grub_command_find to locate command and execute
16215 * include/grub/efi/chainloader.h: Removed.
16216 * loader/efi/chainloader_normal.c: Likewise.
16217 * loader/i386/bsd_normal.c: Likewise.
16218 * loader/i386/pc/chainloader_normal.c: Likewise.
16219 * loader/i386/pc/multiboot_normal.c: Likewise.
16220 * loader/linux_normal.c: Likewise.
16221 * loader/multiboot_loader_normal.c: Likewise.
16222 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
16224 * gencmdlist.sh: Scan new registration command grub_register_extcmd
16225 and grub_register_command_p1.
16227 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
16228 kern/command.c, lib/arg.c and commands/extcmd.c.
16229 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
16230 (minicmd_mod_SOURCES): New variable.
16231 (minicmd_mod_CFLAGS): Likewise.
16232 (minicmd_mod_LDFLAGS): Likewise.
16233 (extcmd_mod_SOURCES): Likewise.
16234 (extcmd_mod_CFLAGS): Likewise.
16235 (extcmd_mod_LDFLAGS): Likewise.
16236 (boot_mod_SOURCES): Removed.
16237 (boot_mod_CFLAGS): Likewise.
16238 (boot_mod_LDFLAGS): Likewise.
16240 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
16242 (kernel_img_HEADERS): Add command.h.
16243 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
16244 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
16246 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
16247 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
16248 remove the corresponding normal mode command.
16249 (normal_mod_SOURCES): Remove normal/arg.c.
16250 * conf/i386-coreboot.rmk: Likewise.
16251 * conf/i386-efi.rmk: Likewise.
16252 * conf/i386-ieee1275.rmk: Likewise.
16253 * conf/powerpc-ieee1275.rmk: Likewise.
16254 * conf/x86_64-efi.rmk: Likewise.
16256 * include/grub/arg.h: Move from here ...
16257 * include/grub/lib/arg.h: ... to here.
16259 * normal/arg.c: Move from here ...
16260 * lib/arg.c: ... to here.
16262 * commands/extcmd.c: New file.
16263 * commands/minicmd.c: Likewise.
16264 * include/grub/command.h: Likewise.
16265 * include/grub/extcmd.h: Likewise.
16266 * kern/command.c: Likewise.
16267 * kern/corecmd.c: Likewise.
16269 * kern/list.c (grub_list_iterate): Return int instead of void.
16270 (grub_list_insert): New function.
16271 (grub_prio_list_insert): Likewise.
16273 * kern/rescue.c (grub_rescue_command): Removed.
16274 (grub_rescue_command_list): Likewise.
16275 (grub_rescue_register_command): Likewise.
16276 (grub_rescue_unregister_command): Likewise.
16277 (grub_rescue_cmd_boot): Move to minicmd.c
16278 (grub_rescue_cmd_help): Likewise.
16279 (grub_rescue_cmd_info): Likewise.
16280 (grub_rescue_cmd_boot): Likewise.
16281 (grub_rescue_cmd_testload): Likewise.
16282 (grub_rescue_cmd_dump): Likewise.
16283 (grub_rescue_cmd_rmmod): Likewise.
16284 (grub_rescue_cmd_lsmod): Likewise.
16285 (grub_rescue_cmd_exit): Likewise.
16286 (grub_rescue_print_devices): Moved to corecmd.c.
16287 (grub_rescue_print_files): Likewise.
16288 (grub_rescue_cmd_ls): Likewise.
16289 (grub_rescue_cmd_insmod): Likewise.
16290 (grub_rescue_cmd_set): Likewise.
16291 (grub_rescue_cmd_unset): Likewise.
16292 (attempt_normal_mode): Use grub_command_find to get normal module.
16293 (grub_enter_rescue_mode): Use grub_register_core_commands to register
16294 commands, remove grub_rescue_register_command calls.
16296 * normal/command.c (grub_register_command): Removed.
16297 (grub_unregister_command): Likewise.
16298 (grub_command_find): Likewise.
16299 (grub_iterate_commands): Likewise.
16300 (rescue_command): Likewise.
16301 (export_command): Moved to corecmd.c.
16302 (set_command): Removed.
16303 (unset_command): Likewise.
16304 (insmod_command): Likewise.
16305 (rmmod_command): Likewise.
16306 (lsmod_command): Likewise.
16307 (grub_command_init): Likewise.
16309 * normal/completion.c (iterate_command): Use cmd->prio to check for
16311 (complete_arguments): Use grub_extcmd_t structure to find options.
16312 (grub_normal_do_completion): Change function grub_iterate_commands to
16313 grub_command_iterate.
16315 * normal/execute.c (grub_script_execute_cmd): No need to parse
16318 * normal/main.c (grub_dyncmd_dispatcher): New function.
16319 (read_command_list): Register unload commands as dyncmd.
16320 (grub_cmd_normal): Use new command interface, register rescue,
16321 unregister normal at entry, register normal, unregister rescue at exit.
16323 * include/grub/list.h (grub_list_test_t): New type.
16324 (grub_list_iterate): Return int instead of void.
16325 (grub_list_insert): New function.
16326 (GRUB_AS_NAMED_LIST_P): New macro.
16327 (GRUB_AS_PRIO_LIST): Likewise.
16328 (GRUB_AS_PRIO_LIST_P): Likewise.
16329 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
16330 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
16331 (grub_prio_list): New structure.
16332 (grub_prio_list_insert): New function.
16333 (grub_prio_list_remove): New inline function.
16335 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
16336 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
16337 (GRUB_COMMAND_FLAG_MENU): Likewise.
16338 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16339 (GRUB_COMMAND_FLAG_TITLE): Likewise.
16340 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16341 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
16342 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
16343 (grub_command): Likewise.
16344 (grub_register_command): Likewise.
16345 (grub_command_find): Likewise.
16346 (grub_iterate_commands): Likewise.
16347 (grub_command_init): Likewise.
16348 (grub_arg_parse): Likewise.
16349 (grub_arg_show_help): Likewise.
16351 * include/grub/rescue.h (grub_rescue_register_command): Removed.
16352 (grub_rescue_unregister_command): Likewise.
16354 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
16355 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
16356 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
16358 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
16359 grub_rescue_cmd_initrd.
16360 * include/grub/i386/loader.h: Likewise.
16361 * include/grub/x86_64/loader.h: Likewise.
16363 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
16365 2009-03-21 Bean <bean123ch@gmail.com>
16367 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
16368 instead of stat in mingw environment.
16370 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
16372 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
16374 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
16377 2009-03-21 Bean <bean123ch@gmail.com>
16379 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
16380 out of range error.
16382 2009-03-18 Michel Dänzer <michel@daenzer.net>
16384 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
16385 checking inode flags for EXT4_EXTENTS_FLAG.
16387 2009-03-18 Robert Millan <rmh@aybabtu.com>
16389 * loader/i386/linux.c: Include `<grub/video.h>' and
16390 `<grub/i386/pc/vbe.h>'..
16391 (grub_linux_setup_video): New function. Loosely based on the EFI one.
16392 (grub_linux32_boot): Attempt to configure video settings with
16393 grub_linux_setup_video().
16394 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
16395 to avoid grub_console_fini() which would step out of graphical mode
16398 2009-03-14 Robert Millan <rmh@aybabtu.com>
16400 Fix build on powerpc.
16401 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
16403 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
16405 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
16406 background image command.
16408 2009-03-12 Colin D Bennett <colin@gibibit.com>
16410 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
16411 (grub_gfxterm_putchar): Extract pairs of identical calls to
16412 draw_cursor out of conditional blocks.
16414 2009-03-11 Pavel Roskin <proski@gnu.org>
16416 * fs/hfs.c (grub_hfs_strncasecmp): New function.
16417 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
16419 2009-03-11 Robert Millan <rmh@aybabtu.com>
16421 * loader/i386/multiboot_elfxx.c
16422 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
16424 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
16426 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
16429 2009-03-11 Robert Millan <rmh@aybabtu.com>
16431 * loader/i386/multiboot.c (code_size): New variable.
16432 (grub_multiboot): Define offsets by adding to `code_size' rather
16433 than subtracting from `grub_multiboot_payload_size'. Provide
16434 4-byte alignment to MBI and others by increasing
16435 `boot_loader_name_length' appropriately.
16437 * loader/i386/multiboot_elfxx.c
16438 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
16440 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
16442 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
16445 2009-03-08 Robert Millan <rmh@aybabtu.com>
16447 Make loader/i386/linux.c usable on i386-pc again.
16449 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
16451 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
16454 2009-03-07 Bean <bean123ch@gmail.com>
16456 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
16459 2009-03-06 Robert Millan <rmh@aybabtu.com>
16461 Fix display issue on terminals with screen size other than 80x25
16462 (e.g. gfxterm with resolution higher than 640x480).
16464 * normal/main.c (grub_normal_init_page): Display title text in a
16465 position relative to the center of the terminal instead of relying
16466 on a hardcoded offset.
16468 2009-03-04 Robert Millan <rmh@aybabtu.com>
16470 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
16473 * Makefile.in (host_kernel): New variable.
16474 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
16475 scripts instead of just the windows one.
16476 * configure.ac: Initialize and AC_SUBST `host_kernel'.
16478 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
16480 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
16482 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16483 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16484 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
16485 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16486 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16487 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16489 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
16491 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
16492 or if there's no space for the disk label and print the partition number on a
16495 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
16497 * util/misc.c: Include <time.h>.
16498 (grub_millisleep): New function.
16500 2009-03-04 Bean <bean123ch@gmail.com>
16502 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
16503 another option -mno-red-zone.
16505 * commands/handler.c: Change module description.
16507 * kern/handler.c: Add missing space at the end of description line.
16509 * kern/list.c: Likewise.
16511 2009-03-03 Robert Millan <rmh@aybabtu.com>
16513 Move more components to the relocation area, and fix mbi pointer
16514 handling to use the destination rather than the origin (thanks to
16515 Vladimir Serbinenko for spotting).
16517 * loader/i386/multiboot.c (mbi_dest): New variable.
16518 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
16519 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
16522 2009-03-01 Bean <bean123ch@gmail.com>
16524 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
16525 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
16526 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
16527 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
16529 * loader/i386/efi/linux.c (acpi_guid): New variable.
16530 (acpi_guid): Likewise.
16531 (EBDA_SEG_ADDR): New constant.
16532 (LOW_MEM_ADDR): Likewise.
16533 (FAKE_EBDA_SEG): Likewise.
16534 (fake_bios_data): New function.
16535 (grub_linux_boot): Call fake_bios_data.
16537 2009-03-01 Bean <bean123ch@gmail.com>
16539 * commands/terminal.c: Removed.
16541 * commands/handler.c: New file.
16543 * include/grub/list.h: Likewise.
16545 * include/grub/handler.h: Likewise.
16547 * kern/list.c: Likewise.
16549 * kern/handler.c: Likewise.
16551 * kern/term.h: Include header file <grub/handler.h>.
16552 (grub_term_input): Move next field to the beginning.
16553 (grub_term_output): Likewise.
16554 (grub_term_input_class): New variable.
16555 (grub_term_output_class): Likewise.
16556 (grub_term_register_input): Changed to inline function.
16557 (grub_term_register_output): Likewise.
16558 (grub_term_unregister_input): Likewise.
16559 (grub_term_unregister_output): Likewise.
16560 (grub_term_set_current_input): Likewise.
16561 (grub_term_set_current_output): Likewise.
16562 (grub_term_get_current_input): Likewise.
16563 (grub_term_get_current_output): Likewise.
16564 (grub_term_iterate_input): Removed.
16565 (grub_term_iterate_output): Likewise.
16567 * kern/term.c (grub_term_list_input): Removed.
16568 (grub_term_list_output): Likewise.
16569 (grub_term_input_class): New variable.
16570 (grub_term_output_class): Likewise.
16571 (grub_cur_term_input): Change variable as macro.
16572 (grub_cur_term_output): Likewise.
16573 (grub_term_register_input): Removed.
16574 (grub_term_register_output): Likewise.
16575 (grub_term_unregister_input): Likewise.
16576 (grub_term_unregister_output): Likewise.
16577 (grub_term_set_current_input): Likewise.
16578 (grub_term_set_current_output): Likewise.
16579 (grub_term_iterate_input): Likewise.
16580 (grub_term_iterate_output): Likewise.
16581 (grub_term_get_current_input): Likewise.
16582 (grub_term_get_current_output): Likewise.
16584 * util/grub-editenv.c: Include header file <grub/handler.h>.
16585 (grub_term_get_current_input): Removed.
16586 (grub_term_get_current_output): Likewise.
16587 (grub_term_input_class): New variable.
16588 (grub_term_output_class): Likewise.
16590 * util/grub-fstest.c (grub_term_get_current_input): Removed.
16591 (grub_term_get_current_output): Likewise.
16592 (grub_term_input_class): New variable.
16593 (grub_term_output_class): Likewise.
16595 * util/grub-probe.c (grub_term_get_current_input): Removed.
16596 (grub_term_get_current_output): Likewise.
16597 (grub_term_input_class): New variable.
16598 (grub_term_output_class): Likewise.
16600 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
16601 (grub_term_get_current_output): Likewise.
16602 (grub_term_input_class): New variable.
16603 (grub_term_output_class): Likewise.
16605 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
16606 (terminal_mod_SOURCES): Likewise.
16607 (terminal_mod_CFLAGS): Likewise.
16608 (terminal_mod_LDFLAGS): Likewise.
16610 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
16612 (kernel_img_SOURCES): Add list.c and handler.c.
16613 (kernel_img_HEADERS): Add list.h and handler.h.
16615 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
16617 (kernel_mod_SOURCES): Add list.c and handler.c.
16618 (kernel_mod_HEADERS): Add list.h and handler.h.
16620 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
16622 (kernel_elf_SOURCES): Add list.c and handler.c.
16623 (kernel_elf_HEADERS): Add list.h and handler.h.
16625 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
16627 (kernel_elf_SOURCES): Add list.c and handler.c.
16628 (kernel_elf_HEADERS): Add list.h and handler.h.
16630 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
16632 (kernel_mod_SOURCES): Add list.c and handler.c.
16633 (kernel_mod_HEADERS): Add list.h and handler.h.
16635 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
16637 (kernel_elf_SOURCES): Add list.c and handler.c.
16638 (kernel_elf_HEADERS): Add list.h and handler.h.
16640 2009-02-27 Robert Millan <rmh@aybabtu.com>
16642 Factorize elf32 / elf64 code in Multiboot loader. This will
16643 prevent it from getting out of sync again.
16645 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
16646 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
16647 grub_multiboot_load_elf64): Move from here ...
16648 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
16649 grub_multiboot_load_elf): ... to here (new file).
16651 2009-02-27 Robert Millan <rmh@aybabtu.com>
16653 * util/grub.d/10_linux.in: Rename "single-user mode" to
16656 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
16658 Don't leak in SCSI code.
16659 * disk/scsi.c (grub_scsi_close): free `scsi'.
16661 2009-02-27 Robert Millan <rmh@aybabtu.com>
16663 * loader/i386/pc/multiboot.c: Move from here ...
16664 * loader/i386/multiboot.c: ... to here. Update all users.
16666 2009-02-27 Robert Millan <rmh@aybabtu.com>
16668 Patch from Alexandre Bique <bique.alexandre@gmail.com>
16669 * util/i386/pc/grub-setup.c (setup): Fix directory path.
16671 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
16673 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
16676 2009-02-27 Robert Millan <rmh@aybabtu.com>
16678 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
16679 `0x' qualifier as 0 when base is specified as parameter).
16681 2009-02-24 Bean <bean123ch@gmail.com>
16683 * configure.ac: Check for -mcmodel=large in x86_64 target.
16685 * include/grub/efi/api.h (efi_call_10): New macro.
16686 (efi_wrap_10): New function.
16688 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
16689 (GRUB_PE32_REL_BASED_HIGH): Likewise.
16690 (GRUB_PE32_REL_BASED_LOW): Likewise.
16691 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
16692 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
16693 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
16694 (GRUB_PE32_REL_BASED_SECTION): Likewise.
16695 (GRUB_PE32_REL_BASED_REL): Likewise.
16696 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
16697 (GRUB_PE32_REL_BASED_DIR64): Likewise.
16698 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
16700 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
16703 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
16704 (efi_wrap_10): New function.
16706 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
16708 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
16709 MB/MBP model (NV chipset).
16710 (devdata_devs): Add devpath_5 to the list.
16712 * load/i386/efi/linux.c (video_base): Remove variable.
16713 (RGB_MASK): New macro.
16714 (RGB_MAGIC): Likewise.
16715 (LINE_MIN): Likewise.
16716 (LINE_MAX): Likewise.
16717 (FBTEST_STEP): Likewise.
16718 (FBTEST_COUNT): Likewise.
16719 (fb_list): New variable.
16720 (grub_find_video_card): Remove function.
16721 (find_framebuf): New function.
16722 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
16725 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
16726 problem for x86_64.
16728 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
16730 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
16732 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
16735 2009-02-22 Robert Millan <rmh@aybabtu.com>
16737 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
16738 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
16739 in our relocation, instead of using it directly from heap. Also
16740 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
16742 2009-02-21 Robert Millan <rmh@aybabtu.com>
16744 Implement USB keyboard support (based on patch by Marco Gerards)
16746 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
16747 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
16748 (usb_keyboard_mod_LDFLAGS): New variables.
16750 * term/usb_keyboard.c: New file.
16752 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16754 Corrected wrong declaration
16756 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
16758 2009-02-14 Christian Franke <franke@computer.org>
16760 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
16761 (grub_lspci_iter): Print class code and programming interface byte.
16763 2009-02-14 Christian Franke <franke@computer.org>
16765 * gendistlist.sh: Ignore `.svn' directories.
16767 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
16769 * fs/fat.c: Add 2009 to Copyright line.
16771 2009-02-14 Christian Franke <franke@computer.org>
16773 * commands/hdparm.c: New file. Provides `hdparm' command
16774 which sends ATA commands via grub_disk_ata_pass_through ().
16776 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
16778 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
16779 and <grub/cpu/io.h> to include/grub/ata.h.
16780 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
16781 (GRUB_CDROM_SECTOR_SIZE): Remove.
16782 (GRUB_ATA_*): Move to include/grub/ata.h.
16783 (GRUB_ATAPI_*): Likewise.
16784 (enum grub_ata_commands): Likewise.
16785 (enum grub_ata_timeout_milliseconds): Likewise.
16786 (struct grub_ata_device): Likewise.
16787 (grub_ata_regset): Likewise.
16788 (grub_ata_regget): Likewise.
16789 (grub_ata_regset2): Likewise.
16790 (grub_ata_regget2): Likewise.
16791 (grub_ata_check_ready): Likewise.
16792 (grub_ata_wait_not_busy): Remove static, exported in
16793 include/grub/ata.h.
16794 (grub_ata_wait_drq): Likewise.
16795 (grub_ata_pio_read): Likewise.
16797 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
16798 function for hdparm.mod.
16800 * include/grub/ata.h: New file, contains declarations from
16802 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
16804 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
16805 (grub_disk_ata_pass_through): New exported variable.
16807 * kern/disk.c (grub_disk_ata_pass_through): New variable.
16809 2009-02-13 Colin D Bennett <colin@gibibit.com>
16811 Support multiple fallback entries, and provide an API to support
16812 executing default+fallback menu entries. Renamed the `terminal' menu
16815 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
16816 variable declaration.
16817 (grub_menu_execute_callback): New structure declaration.
16818 (grub_menu_execute_callback_t): New typedef.
16819 (grub_menu_execute_with_fallback): New function declaration.
16820 (grub_menu_get_entry): Likewise.
16821 (grub_menu_get_timeout): Likewise.
16822 (grub_menu_set_timeout): Likewise.
16824 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
16826 * normal/menu.c (grub_wait_after_message): Moved to
16827 `normal/menu_text.c'.
16828 (draw_border): Likewise.
16829 (print_message): Likewise.
16830 (print_entry): Likewise.
16831 (print_entries): Likewise.
16832 (grub_menu_init_page): Likewise.
16833 (get_entry_number): Likewise.
16834 (print_timeout): Likewise.
16835 (run_menu): Likewise.
16836 (grub_menu_execute_entry): Likewise.
16837 (show_text_menu): Likewise.
16838 (get_and_remove_first_entry_number): New function.
16839 (grub_menu_execute_with_fallback): Likewise.
16840 (get_entry): Renamed to ...
16841 (grub_menu_get_entry): .. this and made it global.
16842 (get_timeout): Renamed to ...
16843 (grub_menu_get_timeout): ... this and made it global.
16844 (set_timeout): Renamed to ...
16845 (grub_menu_set_timeout): ... this and made it global.
16846 (grub_normal_terminal_menu_viewer): Renamed to ...
16847 (grub_normal_text_menu_viewer): ... this.
16849 * normal/menu_text.c: New file. Extracted text-menu-specific code
16850 from normal/menu.c.
16852 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
16853 (normal_mod_SOURCES): Likewise.
16855 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16856 (normal_mod_SOURCES): Likewise.
16858 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16859 (normal_mod_SOURCES): Likewise.
16861 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
16862 (normal_mod_SOURCES): Likewise.
16864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16865 (normal_mod_SOURCES): Likewise.
16867 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16868 (normal_mod_SOURCES): Likewise.
16870 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16871 (normal_mod_SOURCES): Likewise.
16873 2009-02-11 Robert Millan <rmh@aybabtu.com>
16875 * util/grub.d/00_header.in: Update old reference to `font' command.
16877 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
16879 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
16881 Based on patch from Javier Martín.
16883 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
16885 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
16886 to avoid false positives with FAT.
16887 (grub_fstest_SOURCES): Likewise.
16888 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16889 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16890 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16891 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
16892 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16893 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16895 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
16897 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
16898 bpb.version_specific.fat12_or_fat16.fstype and
16899 bpb.version_specific.fat32.fstype.
16901 2009-02-08 Robert Millan <rmh@aybabtu.com>
16903 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
16905 2009-02-08 Robert Millan <rmh@aybabtu.com>
16907 * Makefile.in (host_os, host_cpu): New variables.
16908 (target_os): Remove. Update all users.
16910 2009-02-08 Marco Gerards <marco@gnu.org>
16912 * Makefile.in (enable_grub_emu_usb): New variable.
16913 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
16914 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
16915 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
16916 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
16917 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
16918 `usbtest.mod' and `usbms.mod'.
16919 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
16920 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
16921 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
16922 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
16923 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
16926 * disk/usbms.c: New file.
16928 * include/grub/usb.h: Likewise.
16930 * include/grub/usbtrans.h: Likewise.
16932 * include/grub/usbdesc.h: Likewise.
16934 * bus/usb/usbtrans.c: Likewise.
16936 * bus/usb/ohci.c: Likewise.
16938 * bus/usb/uhci.c: Likewise.
16940 * bus/usb/usbhub.c: Likewise.
16942 * bus/usb/usb.c: Likewise.
16944 * commands/usbtest.c: Likewise.
16946 * util/usb.c: Likewise.
16948 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
16950 * configure.ac: Test for libusb presence.
16952 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
16954 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
16956 * kern/mm.c: Add more comments.
16958 2009-02-08 Robert Millan <rmh@aybabtu.com>
16960 Patch from Javier Martín.
16961 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
16962 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
16964 2009-02-08 Robert Millan <rmh@aybabtu.com>
16966 * fs/cpio.c: Split tar functionality to ...
16967 * fs/tar.c: ... here (new file). Update all users.
16969 2009-02-07 Robert Millan <rmh@aybabtu.com>
16971 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
16972 backward-incompatible features.
16974 Based on patch from Javier Martín, with some adjustments.
16976 2009-02-07 Michael Scherer <misc@mandriva.org>
16978 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
16980 2009-02-07 Robert Millan <rmh@aybabtu.com>
16982 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
16983 position of `disk/lvm.c' to ensure grub_init_all() always picks it
16984 after the RAID stuff.
16986 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
16988 Fixes problem when running vbetest command as reported by
16989 Vladimir Serbinenko <phcoder@gmail.com>.
16991 * (grub_vbe_set_video_mode): Fixed problem with text modes.
16993 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
16995 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
16996 /dev/md/NpN style mdraid devices.
16998 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
17000 * util/unifont2pff.rb: Remove.
17002 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
17004 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
17007 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
17009 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
17010 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17011 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17012 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
17013 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17014 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17015 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17017 2009-02-02 Christian Franke <franke@computer.org>
17019 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
17021 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
17023 * INSTALL: Note that we now require at least autoconf 2.59 and
17024 that LZO is optional.
17026 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
17028 Base on patch on bug #24154 created by Tomas Tintera
17029 <trosos@seznam.cz>.
17031 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
17033 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
17035 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
17036 <bero@arklinux.org>.
17038 * normal/parser.y (script_init): Add missing semicolon.
17040 2009-01-31 Colin D Bennett <colin@gibibit.com>
17042 * normal/main.c: Add include to grub/menu_viewer.h.
17043 (free_menu_entry_classes): Added.
17044 (grub_normal_menu_addentry): Added class property handling.
17045 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
17046 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
17048 * normal/menu_viewer.c: New file.
17050 * normal/menu.c (run_menu_entry): Renamed to ...
17051 (grub_menu_execute_entry): ... this and made it as global.
17052 (grub_menu_run): Renamed to ...
17053 (show_text_menu): ... this and made it local.
17054 (show_text_menu): Adapt to new function names.
17055 (grub_normal_terminal_menu_viewer): New global variable.
17057 * include/grub/menu.h: New file.
17059 * include/grub/menu_viewer.h: New file.
17061 * include/grub/normal.h: Added include to grub/menu.h.
17062 (grub_menu_entry): Moved to include/grub/menu.h.
17063 (grub_menu_entry_t): Likewise.
17064 (grub_menu): Likewise.
17065 (grub_menu_t): Likewise.
17066 (grub_normal_terminal_menu_viewer): Added.
17067 (grub_menu_execute_entry): Likewise.
17068 (grub_menu_run): Removed.
17070 * DISTLIST: Added include/grub/menu.h.
17071 Added include/grub/menu_viewer.h.
17072 Added normal/menu_viewer.c.
17074 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
17076 * normal/execute.c (grub_script_execute_menuentry): Changed to use
17077 arglist for menutitle arguments.
17079 * normal/main.c (grub_normal_menu_addentry): Likewise.
17081 * normal/parser.y (menuentry): Likewise.
17083 * normal/script.c (grub_script_create_cmdmenu): Likewise.
17085 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
17086 (grub_script_create_cmdmenu): Likewise.
17088 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
17090 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
17093 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
17095 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
17097 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
17099 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
17101 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
17103 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
17105 2009-01-30 Christian Franke <franke@computer.org>
17107 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
17108 in option help text.
17110 2009-01-27 Pavel Roskin <proski@gnu.org>
17112 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
17114 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
17116 * commands/lsmmap.c: Add include to grub/machine/memory.h.
17118 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
17120 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
17121 unregister function.
17123 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
17125 * disk/scsi.c (grub_scsi_read): Fix sign problem.
17127 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
17129 * util/grub-mkfont.c (usage): Fix typo.
17131 * util/elf/grub-mkimage.c (load_modules): Fix warning.
17133 2009-01-26 Daniel Mierswa <impulze@impulze.org>
17135 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
17137 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
17139 * kern/misc.c (grub_strcasecmp): New function.
17140 (grub_strcasecmp): Use grub_size_t instead of int for length.
17142 * include/grub/misc.h: Update function prototypes.
17144 2009-01-26 Robert Millan <rmh@aybabtu.com>
17146 * configure.ac: Fix cross-compilation check.
17148 2009-01-22 Christian Franke <franke@computer.org>
17150 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
17151 (precision) digit string. Allow `.format2' without `format1' (width).
17152 Limit input chars for `%s' output to `format2' if specified. This is
17153 compatible with standard printf ().
17155 2009-01-22 Christian Franke <franke@computer.org>
17157 * disk/ata.c (grub_ata_wait_status): Replace by ...
17158 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
17159 other status bits may be invalid while BSY is asserted.
17160 (grub_ata_check_ready): New function.
17161 (grub_ata_cmd): Removed.
17162 (grub_ata_wait_drq): New function.
17163 (grub_ata_strncpy): Remove inline.
17164 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
17165 and error check now done by grub_ata_wait_drq ().
17166 (grub_ata_pio_write): Likewise.
17167 (grub_atapi_identify): Set DEV before check for !BSY. Use
17168 grub_ata_wait_drq () to wait for data.
17169 (grub_ata_device_initialize): Add status register check to
17170 detect missing SATA slave devices. Add debug messages.
17171 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
17172 (grub_atapi_packet): Set DEV before check for !BSY. Replace
17173 transfer loop by grub_ata_pio_write ().
17174 (grub_ata_identify): Set DEV before check for !BSY. Use
17175 grub_ata_wait_drq () to wait for data.
17176 (grub_ata_setaddress): Set DEV before check for !BSY.
17177 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
17178 read/write in one loop. Fix invalid command on write. Fix incomplete
17179 command on (size % batch) == 0. Add missing error check after write of
17180 last block. Add debug messages.
17181 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
17183 2009-01-19 Christian Franke <franke@computer.org>
17185 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
17186 (GRUB_ATAPI_IREASON_*): Likewise.
17187 (grub_ata_pio_write): Fix timeout error return.
17188 (grub_atapi_identify): Add grub_ata_wait () after cmd.
17189 (grub_atapi_wait_drq): New function.
17190 (grub_atapi_packet): New parameter `size'.
17191 Use grub_atapi_wait_drq () and direct write instead of
17192 grub_ata_pio_write ().
17193 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
17194 reads the number of bytes requested by the device for each DRQ
17196 (grub_atapi_write): Remove old implementation, return not
17197 implemented instead.
17199 2009-01-19 Christian Franke <franke@computer.org>
17201 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
17202 of 512 to calculate data size.
17203 (grub_scsi_read12): Likewise.
17204 (grub_scsi_write10): Likewise.
17205 (grub_scsi_write12): Likewise.
17206 (grub_scsi_read): Adjust size according to blocksize.
17207 Add checks for invalid blocksize and unaligned transfer.
17209 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
17211 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
17213 * term/gfxterm.c (write_char): Fix background rendering for wide
17216 2009-01-19 Robert Millan <rmh@aybabtu.com>
17218 * config.guess: Update to latest version from config git.
17219 * config.sub: Likewise.
17221 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
17223 * Makefile.in: Change font compilation to use new grub-mkfont instead
17226 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
17227 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
17228 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
17229 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
17230 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
17231 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
17232 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
17233 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
17234 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
17236 2009-01-16 Christian Franke <franke@computer.org>
17238 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
17239 (enum grub_ata_timeout_milliseconds): New enum.
17240 (grub_ata_wait_status): Add parameter milliseconds.
17241 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
17242 recovery from timed-out commands.
17243 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
17244 return grub_errno instead of REG_ERROR.
17245 (grub_ata_pio_write): Add parameter milliseconds.
17246 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
17247 Pass milliseconds to grub_ata_wait_status () and
17248 grub_ata_pio_read ().
17249 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
17250 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
17251 grub_ata_wait_status (). Fix IDENTIFY timeout check.
17252 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
17253 It is not suitable for device detection, because DEV bit is ignored,
17254 the command may run too long, and not all devices set the signature
17256 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
17257 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
17258 Fix device selection, DEV bit must be set first to address the registers
17259 of the correct device.
17260 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
17261 grub_ata_pio_read/write ().
17262 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
17263 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
17265 2009-01-13 Carles Pina i Estany <carles@pina.cat>
17267 * util/grub-editenv.c (main): Use fseeko(), not fseek().
17269 2009-01-13 Bean <bean123ch@gmail.com>
17271 * util/grub-mkfont.c (write_font): forget to remove some debug code.
17273 2009-01-13 Bean <bean123ch@gmail.com>
17275 * Makefile.in: (enable_grub_mkfont): New variable.
17276 (freetype_cflags): Likewise.
17277 (freetype_libs): Likewise.
17279 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
17280 (grub_mkfont_SOURCES): New variable.
17281 (grub_mkfont_CFLAGS): Likewise.
17282 (grub_mkfont_LDFLAGS): Likewise.
17284 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
17285 library if `--enable-grub-mkfont' is requested.
17286 (enable_grub_mkfont): New variable.
17287 (freetype_cflags): Likewise.
17288 (freetype_libs): Likewise.
17290 * util/grub-mkfont.c: New file.
17292 2009-01-12 Christian Franke <franke@computer.org>
17294 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
17295 mode check. Fix setting of compat_use[].
17297 2009-01-10 Robert Millan <rmh@aybabtu.com>
17299 Update a few copyright years which we forgot to do in 2008 (only for
17300 files whose changes made in 2008 were copyright-significant)
17302 * Makefile.in: Add 2008 to Copyright line.
17303 * disk/ieee1275/ofdisk.c: Likewise.
17304 * disk/efi/efidisk.c: Likewise.
17305 * kern/dl.c: Likewise.
17306 * kern/sparc64/ieee1275/init.c: Likewise.
17307 * kern/mm.c: Likewise.
17308 * kern/efi/mm.c: Likewise.
17309 * boot/i386/pc/boot.S: Likewise.
17310 * genfslist.sh: Likewise.
17311 * fs/iso9660.c: Likewise.
17312 * fs/hfs.c: Likewise.
17313 * fs/jfs.c: Likewise.
17314 * fs/minix.c: Likewise.
17315 * fs/ufs.c: Likewise.
17316 * gensymlist.sh.in: Likewise.
17317 * genkernsyms.sh.in: Likewise.
17318 * include/grub/misc.h: Likewise.
17319 * include/grub/types.h: Likewise.
17320 * include/grub/symbol.h: Likewise.
17321 * include/grub/elf.h: Likewise.
17322 * include/grub/kernel.h: Likewise.
17323 * include/grub/disk.h: Likewise.
17324 * include/grub/dl.h: Likewise.
17325 * include/grub/i386/linux.h: Likewise.
17326 * include/grub/i386/pc/biosdisk.h: Likewise.
17327 * include/grub/efi/api.h: Likewise.
17328 * include/grub/efi/pe32.h: Likewise.
17329 * include/grub/util/misc.h: Likewise.
17330 * normal/execute.c: Likewise.
17331 * normal/arg.c: Likewise.
17332 * normal/completion.c: Likewise.
17333 * normal/lexer.c: Likewise.
17334 * normal/parser.y: Likewise.
17335 * normal/misc.c: Likewise.
17336 * commands/i386/pc/vbeinfo.c: Likewise.
17337 * commands/hexdump.c: Likewise.
17338 * commands/terminal.c: Likewise.
17339 * commands/ls.c: Likewise.
17340 * commands/help.c: Likewise.
17341 * partmap/pc.c: Likewise.
17342 * loader/efi/chainloader.c: Likewise.
17343 * loader/multiboot_loader.c: Likewise.
17344 * loader/i386/pc/multiboot2.c: Likewise.
17345 * term/efi/console.c: Likewise.
17346 * term/i386/pc/serial.c: Likewise.
17347 * util/lvm.c: Likewise.
17348 * util/console.c: Likewise.
17349 * util/i386/efi/grub-mkimage.c: Likewise.
17350 * util/raid.c: Likewise.
17352 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
17354 * commands/videotest.c: Removed include to grub/machine/memory.h.
17356 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
17357 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
17358 (video_mod_SOURCES): Removed.
17359 (video_mod_CFLAGS): Likewise.
17360 (video_mod_LDFLAGS): Likewise.
17361 (gfxterm_mod_SOURCES): Likewise.
17362 (gfxterm_mod_CFLAGS): Likewise.
17363 (gfxterm_mod_LDFLAGS): Likewise.
17364 (videotest_mod_SOURCES): Likewise.
17365 (videotest_mod_CFLAGS): Likewise.
17366 (videotest_mod_LDFLAGS): Likewise.
17367 (bitmap_mod_SOURCES): Likewise.
17368 (bitmap_mod_CFLAGS): Likewise.
17369 (bitmap_mod_LDFLAGS): Likewise.
17370 (tga_mod_SOURCES): Likewise.
17371 (tga_mod_CFLAGS): Likewise.
17372 (tga_mod_LDFLAGS): Likewise.
17373 (jpeg_mod_SOURCES): Likewise.
17374 (jpeg_mod_CFLAGS): Likewise.
17375 (jpeg_mod_LDFLAGS): Likewise.
17376 (png_mod_SOURCES): Likewise.
17377 (png_mod_CFLAGS): Likewise.
17378 (png_mod_LDFLAGS): Likewise.
17380 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
17381 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
17382 (video_mod_SOURCES): Added.
17383 (video_mod_CFLAGS): Likewise.
17384 (video_mod_LDFLAGS): Likewise.
17385 (videotest_mod_SOURCES): Likewise.
17386 (videotest_mod_CFLAGS): Likewise.
17387 (videotest_mod_LDFLAGS): Likewise.
17388 (bitmap_mod_SOURCES): Likewise.
17389 (bitmap_mod_CFLAGS): Likewise.
17390 (bitmap_mod_LDFLAGS): Likewise.
17391 (tga_mod_SOURCES): Likewise.
17392 (tga_mod_CFLAGS): Likewise.
17393 (tga_mod_LDFLAGS): Likewise.
17394 (jpeg_mod_SOURCES): Likewise.
17395 (jpeg_mod_CFLAGS): Likewise.
17396 (jpeg_mod_LDFLAGS): Likewise.
17397 (png_mod_SOURCES): Likewise.
17398 (png_mod_CFLAGS): Likewise.
17399 (png_mod_LDFLAGS): Likewise.
17400 (gfxterm_mod_SOURCES): Likewise.
17401 (gfxterm_mod_CFLAGS): Likewise.
17402 (gfxterm_mod_LDFLAGS): Likewise.
17404 * term/gfxterm.c: Removed include to grub/machine/memory.h,
17405 grub/machine/console.h.
17407 2009-01-04 Jerone Young <jerone@gmail.com>
17409 Make on screen instructions clearer
17411 Based on patch created by Jidanni <jidanni@jidanni.org>
17413 * normal/menu.c: print clearer instructions on the screen
17415 2009-01-02 Colin D Bennett <colin@gibibit.com>
17419 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
17420 build system and fixed gfxterm.c to work with different sized fonts.
17422 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
17424 * configure: Re-generated.
17426 * DISTLIST: Removed font/manager.c.
17428 Added font/font_cmd.c.
17430 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
17433 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
17435 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
17437 * kern/term.c: Changed users of grub_utf8_to_ucs4.
17439 * normal/menu.c: Likewise.
17441 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
17442 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
17444 * include/grub/font.h: Replaced with new file.
17446 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
17447 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
17448 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
17449 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
17450 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
17451 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
17452 fg_red, fg_green, fg_blue, fg_alpha.
17453 (grub_video_adapter): Removed blit_glyph.
17454 (grub_video_blit_glyph): Removed.
17456 * font/manager.c: Removed file.
17458 * font/font.c: New file.
17460 * font/font_cmd.c: Likewise.
17462 * video/video.c (grub_video_blit_glyph): Removed.
17464 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
17465 (grub_video_vbe_map_rgba): Likewise.
17466 (grub_video_vbe_unmap_color_int): Likewise.
17467 (grub_video_vbe_blit_glyph): Removed.
17468 (grub_video_vbe_adapter): Removed blit_glyph.
17470 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
17471 (get_pixel): Likewise.
17472 (set_pixel): Likewise.
17474 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
17476 * term/gfxterm.c: Adapted to new font engine.
17478 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
17480 * term/i386/pc/vga.c: Likewise.
17482 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
17484 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
17486 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
17488 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
17490 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
17492 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
17494 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
17496 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
17498 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
17500 * util/grub.d/00_header.in: Changed to use new loadfont command.
17502 * util/grub-mkconfig_lib.in: Changed font extension.
17504 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
17506 * util/getroot.c (grub_util_get_grub_dev): Add support for
17507 /dev/md/dNNpNN style partitionable mdraid devices.
17509 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
17511 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
17512 at a time limit of the PXE TFTP API correctly.
17513 (grub_pxefs_close): Likewise.
17515 2008-11-29 Robert Millan <rmh@aybabtu.com>
17517 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
17518 grub_ata_device_initialize() calls.
17520 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
17522 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
17524 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
17526 2008-11-28 Robert Millan <rmh@aybabtu.com>
17528 Fix build on powerpc-ieee1275. Based on patch created by
17529 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
17530 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
17531 `kern/ieee1275/mmap.c'.
17532 * include/grub/powerpc/ieee1275/memory.h: New file.
17534 Provide grub-install on coreboot.
17535 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
17536 (grub_install_SOURCES): New variable.
17537 * util/i386/pc/grub-install.in: Add a few condition checks to make it
17538 usable on coreboot.
17540 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
17542 * util/grub-fstest.c (grub_term_get_current_input): Change return type
17543 to `grub_term_input_t'.
17544 (grub_term_get_current_output): Change return type to
17545 `grub_term_output_t'.
17547 2008-11-22 Robert Millan <rmh@aybabtu.com>
17549 Fix breakage on coreboot due to declaration mismatch.
17550 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
17551 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
17552 grub_vga_text_cls().
17554 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
17555 comments. Avoid copying one more byte than necessary (just in case).
17557 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
17558 to 0x200000 (avoids trouble with some OFW implementations, and matches
17559 with the one in Yaboot).
17560 Reported by Manoel Abranches
17562 2008-11-20 Robert Millan <rmh@aybabtu.com>
17564 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
17565 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
17567 * util/grub-mkconfig_lib.in (grub_warn): New function.
17568 (convert_system_path_to_grub_path): Use grub_warn() when issuing
17569 warnings, to obtain consistent formatting.
17570 * util/grub.d/00_header.in: Likewise.
17571 * util/update-grub_lib.in: Likewise.
17573 * loader/i386/linux.c (allocate_pages): Fix a warning.
17574 Move comment text to `#error' stanza.
17576 Harmonize ieee1275's grub_available_iterate() with the generic
17577 grub_machine_mmap_iterate() interface (fixes a recently-introduced
17578 build problem on i386-ieee1275):
17579 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
17580 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
17581 parameter `type'. Update all users of this function.
17582 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
17583 `kern/ieee1275/mmap.c'.
17584 * kern/ieee1275/init.c
17585 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
17587 (grub_machine_mmap_iterate): ... this.
17588 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
17589 return type to `grub_err_t'. Update all implementations of this
17590 function prototype.
17591 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
17594 Add `lsmmap' command (lists firmware-provided memory map):
17595 * commands/lsmmap.c: New file.
17596 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
17597 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
17599 * conf/powerpc-ieee1275.rmk: Likewise.
17600 * conf/i386-coreboot.rmk: Likewise.
17601 * conf/i386-ieee1275.rmk: Likewise.
17603 2008-11-19 Robert Millan <rmh@aybabtu.com>
17605 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
17606 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
17607 constraints to initrd allocation (based on code from
17608 loader/i386/pc/linux.c). Without them, initrd was allocated too high
17609 for Linux to find it.
17611 2008-11-14 Robert Millan <rmh@aybabtu.com>
17613 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
17614 order to cope with duplicate slashes.
17616 2008-11-14 Robert Millan <rmh@aybabtu.com>
17618 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
17619 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
17620 don't want to mess with lower memory, because it is used in the Linux
17623 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
17624 an appropriate place in lower memory, between 0x10000 and 0x90000,
17625 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
17626 is in our heap (probably as a result of it being corrupted during
17627 decompression). Add #error instance with comment to explain why this
17628 loader isn't currently usable on PC/BIOS.
17630 2008-11-14 Robert Millan <rmh@aybabtu.com>
17632 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
17633 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
17635 2008-11-12 Robert Millan <rmh@aybabtu.com>
17637 Make loader/i386/linux.c buildable on i386-pc (although disabled).
17639 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
17640 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
17642 * include/grub/i386/pc/memory.h: ... to here.
17644 2008-11-12 Robert Millan <rmh@aybabtu.com>
17646 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
17649 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
17650 (grub_console_cur_color, grub_console_real_putchar)
17651 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
17652 (grub_console_setcolorstate, grub_console_setcolor)
17653 (grub_console_getcolor): Move from here ...
17654 * include/grub/i386/vga_common.h: ... to here (new file).
17656 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
17657 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
17658 `<grub/i386/io.h>'.
17659 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
17660 `<grub/i386/vga_common.h>'.
17662 2008-11-12 Robert Millan <rmh@aybabtu.com>
17664 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
17665 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
17666 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
17668 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
17669 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
17671 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
17672 grub_console_init() with call to grub_vga_text_init().
17673 (grub_machine_fini): Replace call to
17674 grub_console_fini() with call to grub_vga_text_fini() and
17675 grub_at_keyboard_fini().
17677 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
17678 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
17679 (grub_console_setcolorstate, grub_console_setcolor)
17680 (grub_console_getcolor): New function prototypes.
17682 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
17683 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
17684 (grub_vga_text_setcursor): Static-ize.
17685 (grub_vga_text_term): New structure.
17686 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
17688 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
17689 (grub_console_cur_color, grub_console_standard_color)
17690 (grub_console_normal_color, grub_console_highlight_color)
17691 (map_char, grub_console_putchar, grub_console_getcharwidth)
17692 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
17693 (grub_console_getcolor): Move from here ...
17694 * term/i386/vga_common.c: ... to here (same function names).
17696 2008-11-12 Robert Millan <rmh@aybabtu.com>
17698 Use newly-added Multiboot support in coreboot.
17700 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
17701 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
17703 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
17704 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
17705 (codestart): Store the MBI in `startup_multiboot_info' when we're
17706 being loaded using Multiboot.
17708 * kern/i386/coreboot/init.c (grub_machine_init): Move
17709 grub_at_keyboard_init() call to beginning of function (useful for
17710 debugging). Call grub_machine_mmap_init() before attempting to use
17711 grub_machine_mmap_iterate().
17712 (grub_lower_mem, grub_upper_mem): Move from here ...
17713 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
17716 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
17717 function prototype.
17719 2008-11-12 Robert Millan <rmh@aybabtu.com>
17721 Fix a regression introduced by the at_keyboard.mod split. Because
17722 some terminals are default on some platforms and non-default on
17723 others, the first terminal being registered determines which is
17724 going to be default.
17726 * kern/term.c (grub_term_register_input): If this is the first
17727 terminal being registered, set it as the current one.
17728 (grub_term_register_output): Likewise.
17730 * term/efi/console.c (grub_console_init): Do not call
17731 grub_term_set_current_output() or grub_term_set_current_input().
17732 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
17733 * term/i386/pc/console.c (grub_console_init): Likewise.
17734 (grub_console_fini): Do not call grub_term_set_current_input()
17735 (but leave grub_term_set_current_output() to restore text mode).
17737 2008-11-10 Robert Millan <rmh@aybabtu.com>
17739 * util/grub.d/00_header.in: Add backward compatibility check for
17740 versions of terminal.mod that don't understand `terminal_input' or
17743 2008-11-09 Robert Millan <rmh@aybabtu.com>
17745 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
17746 `terminal_input' / `terminal_output', not `terminal'.
17748 2008-11-08 Robert Millan <rmh@aybabtu.com>
17750 * Makefile.in (include_DATA): Fix srcdir=. assumption.
17751 (DISTCLEANFILES): Add `build_env.mk'.
17753 2008-11-08 Robert Millan <rmh@aybabtu.com>
17755 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
17756 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
17757 members. Update all users.
17758 * util/console.c (grub_ncurses_term): Split in ...
17759 (grub_ncurses_term_input): ... this, and ...
17760 (grub_ncurses_term_output): ... this. Update all users.
17761 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
17763 2008-11-08 Robert Millan <rmh@aybabtu.com>
17765 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
17766 (PKGDATA): Add $(pkgdata_SRCDIR).
17767 (pkglib_BUILDDIR): New variable.
17768 (pkgdata_SRCDIR): New variable.
17769 (build_env.mk): New target.
17770 (include_DATA): New variable.
17771 (install-local): Install $(include_DATA) files in $(includedir).
17773 2008-11-07 Pavel Roskin <proski@gnu.org>
17775 * gendistlist.sh: Use C locale for sorting to ensure consistent
17776 output on all systems.
17778 * util/grub.d/00_header.in: Remove incorrect space before
17781 2008-11-07 Robert Millan <rmh@aybabtu.com>
17783 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
17785 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
17786 * loader/multiboot_loader.c (find_multi_boot2_header): New function
17787 (based on find_multi_boot1_header).
17788 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
17789 using find_multi_boot2_header(), and abort if neither Multiboot or
17790 Multiboot headers were found.
17792 2008-11-07 Robert Millan <rmh@aybabtu.com>
17794 Modularize at_keyboard.mod:
17796 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
17797 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
17798 (at_keyboard_mod_LDFLAGS): New variables.
17800 Actual terminal split:
17802 * include/grub/term.h (struct grub_term): Split in ...
17803 (struct grub_term_input): ... this, and ...
17804 (struct grub_term_output): ... this. Update all users.
17805 (grub_term_set_current): Split in ...
17806 (grub_term_set_current_input): ... this, and ...
17807 (grub_term_set_current_output): ... this.
17808 (grub_term_get_current): Split in ...
17809 (grub_term_get_current_input): ... this, and ...
17810 (grub_term_get_current_output): ... this.
17811 (grub_term_register): Split in ...
17812 (grub_term_register_input): ... this, and ...
17813 (grub_term_register_output): ... this.
17814 (grub_term_unregister): Split in ...
17815 (grub_term_unregister_input): ... this, and ...
17816 (grub_term_unregister_output): ... this.
17817 (grub_term_iterate): Split in ...
17818 (grub_term_iterate_input): ... this, and ...
17819 (grub_term_iterate_output): ... this.
17821 * kern/term.c (grub_term_list): Split in ...
17822 (grub_term_list_input): ... this, and ...
17823 (grub_term_list_output): ... this. Update all users.
17824 (grub_cur_term): Split in ...
17825 (grub_cur_term_input): ... this, and ...
17826 (grub_cur_term_output): ... this. Update all users.
17827 (grub_term_set_current): Split in ...
17828 (grub_term_set_current_input): ... this, and ...
17829 (grub_term_set_current_output): ... this.
17830 (grub_term_get_current): Split in ...
17831 (grub_term_get_current_input): ... this, and ...
17832 (grub_term_get_current_output): ... this.
17833 (grub_term_register): Split in ...
17834 (grub_term_register_input): ... this, and ...
17835 (grub_term_register_output): ... this.
17836 (grub_term_unregister): Split in ...
17837 (grub_term_unregister_input): ... this, and ...
17838 (grub_term_unregister_output): ... this.
17839 (grub_term_iterate): Split in ...
17840 (grub_term_iterate_input): ... this, and ...
17841 (grub_term_iterate_output): ... this.
17843 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
17844 a check for input and one for output (and only attempt to get keys
17845 from user when input works).
17847 * util/grub-probe.c (grub_term_get_current): Split in ...
17848 (grub_term_get_current_input): ... this, and ...
17849 (grub_term_get_current_output): ... this.
17850 * util/grub-fstest.c: Likewise.
17851 * util/i386/pc/grub-setup.c: Likewise.
17852 * util/grub-editenv.c: Likewise.
17854 Portability adjustments:
17856 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
17857 `term/i386/pc/at_keyboard.c'.
17858 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
17859 grub_keyboard_controller_init() (now handled by terminal .init).
17860 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
17861 grub_at_keyboard_init().
17862 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
17863 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
17864 at_keyboard.mod via input terminal interface).
17865 * include/grub/i386/coreboot/console.h: Convert into a stub for
17866 `<grub/i386/pc/console.h>'.
17868 Migrate full terminals to new API:
17870 * term/efi/console.c (grub_console_term): Split into ...
17871 (grub_console_term_input): ... this, and ...
17872 (grub_console_term_output): ... this. Update all users.
17873 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
17874 (grub_ofconsole_init): Split into ...
17875 (grub_ofconsole_init_input): ... this, and ...
17876 (grub_ofconsole_init_output): ... this.
17877 (grub_ofconsole_term): Split into ...
17878 (grub_ofconsole_term_input): ... this, and ...
17879 (grub_ofconsole_term_output): ... this. Update all users.
17880 * term/i386/pc/serial.c (grub_serial_term): Split into ...
17881 (grub_serial_term_input): ... this, and ...
17882 (grub_serial_term_output): ... this. Update all users.
17883 * term/i386/pc/console.c (grub_console_term): Split into ...
17884 (grub_console_term_input): ... this, and ...
17885 (grub_console_term_output): ... this. Update all users.
17886 (grub_console_term_input): Only enable it on PC/BIOS platform.
17887 (grub_console_init): Remove grub_keyboard_controller_init() call.
17889 Migrate input terminals to new API:
17891 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
17892 `i386' and `i386/pc' to enable build on x86_64 (this driver is
17893 i386-specific anyway).
17894 (grub_console_checkkey): Rename to ...
17895 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
17897 (grub_keyboard_controller_orig): New variable.
17898 (grub_console_getkey): Rename to ...
17899 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
17901 (grub_keyboard_controller_init): Static-ize. Save original
17902 controller value so that it can be restored ...
17903 (grub_keyboard_controller_fini): ... here (new function).
17904 (grub_at_keyboard_term): New structure.
17905 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
17908 Migrate output terminals to new API:
17910 * term/i386/pc/vga.c (grub_vga_term): Change type to
17911 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
17912 members. Update all users.
17913 * term/gfxterm.c (grub_video_term): Change type to
17914 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
17915 members. Update all users.
17916 * include/grub/i386/pc/console.h (grub_console_checkkey)
17917 (grub_console_getkey): Do not export (no longer needed by gfxterm,
17920 Migrate `terminal' command and userland tools to new API:
17922 * commands/terminal.c (grub_cmd_terminal): Split into ...
17923 (grub_cmd_terminal_input): ... this, and ...
17924 (grub_cmd_terminal_output): ... this.
17925 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
17926 `terminal_input' and `terminal_output'.
17927 * util/grub.d/00_header.in: Adjust `terminal' calls to new
17928 `terminal_input' / `terminal_output' API.
17929 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
17930 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
17931 provided ${GRUB_TERMINAL}, convert it).
17933 2008-11-04 Robert Millan <rmh@aybabtu.com>
17935 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
17937 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
17939 2008-11-03 Bean <bean123ch@gmail.com>
17941 * kern/elf.c (grub_elf32_load): Revert to previous code.
17942 (grub_elf64_load): Likewise.
17944 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
17946 2008-11-01 Robert Millan <rmh@aybabtu.com>
17948 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
17949 (TARGET_CPPFLAGS): Likewise.
17950 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
17952 2008-11-01 Carles Pina i Estany <carles@pina.cat>
17954 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
17956 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
17958 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
17959 addition of objects until the code is not going to be able to fail.
17961 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
17963 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
17964 (add a missing NULL check, and correct them by moving the pointer
17965 operations after the actual check).
17967 2008-10-29 Robert Millan <rmh@aybabtu.com>
17969 * util/i386/pc/grub-install.in: Handle empty string as output from
17970 make_system_path_relative_to_its_root().
17972 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
17974 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
17975 circular metadata worst case scenario. If the metadata is circular
17976 then copy the wrap in place.
17977 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
17978 project lib/format_text/layout.h
17979 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
17981 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
17983 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
17985 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
17987 * util/update-grub_lib.in: Mention filename in warning message.
17989 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
17991 * NEWS: Update for rename of update-grub to grub-mkconfig.
17993 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
17995 * util/update-grub_lib.in: Copy to ...
17996 * util/grub-mkconfig_lib.in: ... this. Update all users.
17997 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
17998 * util/update-grub.in: Rename to ...
17999 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
18000 option. Add `--output' option to allow users to specify the generated
18001 configuration file. Default to stdout.
18002 (update_grub_dir): Rename to ...
18003 (grub_mkconfig_dir): ... this.
18004 (grub_cfg): Default to an empty string.
18005 * conf/common.rmk (update-grub): Rename to ...
18006 (grub-mkconfig): ... this.
18007 (update-grub_lib): Copy to ...
18008 (grub-mkconfig_lib): ... this.
18009 (update-grub_SCRIPTS): Copy to ...
18010 (grub-mkconfig_SCRIPTS): ... this. Update all users.
18011 (update-grub_DATA): Rename to ...
18012 (grub-mkconfig_DATA): ... this.
18014 2008-09-28 Robert Millan <rmh@aybabtu.com>
18016 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
18017 to `modified'. Add the real `created' field.
18018 (grub_iso9660_uuid): Use `modified' rather than `created' for
18019 constructing the UUID.
18021 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
18023 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
18024 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
18026 2008-09-28 Bean <bean123ch@gmail.com>
18028 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
18029 Thanks to Christian Franke for finding this bug.
18031 2008-09-25 Robert Millan <rmh@aybabtu.com>
18033 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
18034 instances of grub_util_get_disk_name() (see previous commit).
18036 2008-09-25 Robert Millan <rmh@aybabtu.com>
18038 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
18039 `util/i386/get_disk_name.c'.
18040 * conf/i386-efi.rmk: Likewise.
18041 * conf/x86_64-efi.rmk: Likewise.
18042 * conf/i386-coreboot.rmk: Likewise.
18043 * conf/i386-ieee1275.rmk: Likewise.
18044 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
18045 `util/ieee1275/get_disk_name.c'.
18046 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
18047 * util/ieee1275/get_disk_name.c: Remove file.
18048 * util/i386/get_disk_name.c: Remove file.
18049 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
18050 "hd%d" for device.map entries, rather than using
18051 grub_util_get_disk_name().
18053 2008-09-24 Carles Pina i Estany <carles@pina.cat>
18055 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
18057 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
18059 2008-09-24 Carles Pina i Estany <carles@pina.cat>
18061 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
18063 (GRUB_TERM_PPAGE): Changed to 0x4900.
18065 2008-09-24 Robert Millan <rmh@aybabtu.com>
18067 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
18068 macros (they were i386-pc specific).
18069 * include/grub/sparc64/ieee1275/console.h: Likewise.
18070 * include/grub/efi/console.h: Likewise.
18072 2008-09-22 Bean <bean123ch@gmail.com>
18074 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
18075 resident and in attribute list.
18077 * include/grub/ntfs.h (BMP_LEN): Removed.
18079 2008-09-22 Bean <bean123ch@gmail.com>
18081 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
18082 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
18084 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
18085 error occurs, as grub_disk_open will call grub_disk_close, which will
18086 call p->close (scsi).
18088 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
18090 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
18091 (AC_PREREQ): Bumped to 2.59.
18092 (AC_TRY_COMPILE): Replace obsolete macro with ...
18093 (AC_COMPILE_IFELSE): ... this.
18094 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
18095 (AC_LINK_IFELSE): ... this.
18097 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
18099 * autogen.sh: Add a call to `gendistlist.sh'.
18101 2008-09-19 Christian Franke <franke@computer.org>
18103 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
18104 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
18105 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
18106 Export __enable_execute_stack() to modules.
18107 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
18110 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
18112 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
18115 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
18117 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
18118 #include <grub/util/hostdisk.h>.
18120 2008-09-08 Robert Millan <rmh@aybabtu.com>
18122 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
18123 segments when their filesz is zero (grub_file_read() interprets
18124 zero-size as "read until EOF", which results in memory corruption).
18125 Use `lowest_segment' rather than 0 for calculating the current
18126 segment load address.
18128 2008-09-08 Robert Millan <rmh@aybabtu.com>
18130 * util/hostdisk.c (open_device): Replace a grub_util_info() call
18131 with grub_dprintf("hostdisk", ...), as it was so verbose that it
18132 clobbered useful information.
18134 2008-09-08 Robert Millan <rmh@aybabtu.com>
18136 * include/grub/util/biosdisk.h: Move to ...
18137 * include/grub/util/hostdisk.h: ... here. Update all users.
18138 * util/biosdisk.c: Move to ...
18139 * util/hostdisk.c: ... here. Update all users.
18141 2008-09-07 Robert Millan <rmh@aybabtu.com>
18143 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
18145 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
18146 and length can be stored directly in the `mbi->mmap_addr' and
18147 `mbi->mmap_length' struct fields.
18149 2008-09-07 Robert Millan <rmh@aybabtu.com>
18151 * conf/i386.rmk: New file. Provides declaration for building
18153 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
18154 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
18156 Include `conf/i386.mk'.
18157 * conf/i386-efi.rmk: Likewise.
18158 * conf/x86_64-efi.rmk: Likewise.
18159 * conf/i386-coreboot.rmk: Likewise.
18160 * conf/i386-ieee1275.rmk: Likewise.
18162 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
18164 Based on patch created by Colin D Bennett <colin@gibibit.com>.
18165 Adds optimization support for BGR based modes.
18167 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
18168 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
18169 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
18170 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
18171 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
18172 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
18173 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
18174 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
18175 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
18176 (grub_video_i386_vbeblit_index_index): Likewise.
18177 (grub_video_i386_vbeblit_replace_directN): Added.
18178 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
18179 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
18180 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
18181 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
18182 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
18183 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
18184 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
18185 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
18186 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
18187 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
18188 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
18189 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
18190 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
18192 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
18193 (grub_video_i386_vbefill_R8G8B8): Likewise.
18194 (grub_video_i386_vbefill_index): Likewise.
18195 (grub_video_i386_vbefill_direct32): Added.
18196 (grub_video_i386_vbefill_direct24): Likewise.
18197 (grub_video_i386_vbefill_direct16): Likewise.
18198 (grub_video_i386_vbefill_direct8): Likewise.
18200 * include/grub/video.h (grub_video_blit_format): Removed
18201 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
18202 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
18203 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
18204 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
18205 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
18207 * video/video.c (grub_video_get_blit_format): Updated to use new
18208 blit formats. Added handling for 16 bit color modes.
18210 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
18212 (common_blitter): Updated to use new blitters.
18214 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
18216 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
18217 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
18218 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
18219 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
18220 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
18221 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
18222 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
18223 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
18224 (grub_video_i386_vbeblit_index_index): Likewise.
18225 (grub_video_i386_vbeblit_replace_directN): Added.
18226 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
18227 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
18228 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
18229 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
18230 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
18231 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
18232 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
18233 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
18234 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
18235 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
18236 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
18237 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
18238 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
18240 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
18241 (grub_video_i386_vbefill_R8G8B8): Likewise.
18242 (grub_video_i386_vbefill_index): Likewise.
18243 (grub_video_i386_vbefill_direct32): Added.
18244 (grub_video_i386_vbefill_direct24): Likewise.
18245 (grub_video_i386_vbefill_direct16): Likewise.
18246 (grub_video_i386_vbefill_direct8): Likewise.
18248 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
18251 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
18254 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
18257 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
18260 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
18262 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
18265 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
18267 * fs/iso9660.c (grub_iso9660_date): New structure.
18268 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
18269 (grub_iso9660_uuid): New function.
18271 2008-09-05 Bean <bean123ch@gmail.com>
18273 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
18275 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
18276 insensitive bit for names in Win32 and Win32 & DOS namespace.
18278 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
18280 * include/grub/types.h (LONG_MAX): Likewise.
18282 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
18284 * util/getroot.c: Include <config.h>.
18285 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
18286 add support for /dev/md/N devices and handle LVM double dash escaping.
18288 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
18290 * config.guess: Update to latest version from config git.
18291 * config.sub: Likewise.
18293 2008-09-03 Robert Millan <rmh@aybabtu.com>
18295 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
18296 `disk->total_sectors'.
18298 2008-09-01 Colin D Bennett <colin@gibibit.com>
18300 * include/grub/normal.h: Fixed incorrect comment for
18301 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
18303 2008-09-01 Colin D Bennett <colin@gibibit.com>
18305 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
18306 values with defines.
18308 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
18309 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
18310 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
18311 (GRUB_VBE_MODEATTR_COLOR): Likewise.
18312 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
18313 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
18314 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
18315 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
18316 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
18317 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
18318 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
18319 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
18320 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
18321 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
18322 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
18323 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
18324 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
18325 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
18326 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
18328 2008-08-31 Robert Millan <rmh@aybabtu.com>
18330 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
18332 (grub_multiboot): Fix a few warnings.
18334 2008-08-31 Robert Millan <rmh@aybabtu.com>
18336 * loader/i386/pc/multiboot.c: Update comment not to say that
18337 boot_device support is unimplemented.
18339 2008-08-31 Robert Millan <rmh@aybabtu.com>
18341 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
18342 or memory map support are unimplemented.
18344 2008-08-31 Colin D Bennett <colin@gibibit.com>
18346 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
18348 2008-08-31 Colin D Bennett <colin@gibibit.com>
18350 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
18351 total video memory in 'vbeinfo' output; show color format details for
18354 2008-08-30 Pavel Roskin <proski@gnu.org>
18356 * util/genmoddep.c: Remove for real this time.
18357 * DISTLIST: Remove util/genmoddep.c.
18359 2008-08-30 Robert Millan <rmh@aybabtu.com>
18361 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
18362 as required by Multiboot spec (it was already 4-byte aligned, but
18365 2008-08-29 Pavel Roskin <proski@gnu.org>
18367 * kern/powerpc/ieee1275/crt0.S: Rename to ...
18368 * kern/powerpc/ieee1275/startup.S: ... this.
18369 * conf/powerpc-ieee1275.rmk: Adjust for the above.
18370 * DISTLIST: Likewise.
18372 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
18373 grub/cpu/kernel.h. Add start label for consistency with other
18374 platforms. Add grub_prefix immediately after start. Add jump
18375 to the code after grub_prefix.
18376 * include/grub/powerpc/kernel.h: Provide valid values for
18377 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
18379 2008-08-29 Bean <bean123ch@gmail.com>
18381 * configure.ac: Change host_os to cygwin for mingw.
18382 (asprintf): New check for function.
18384 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
18385 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
18387 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
18388 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
18389 sync, sleep and grub_util_get_disk_size for mingw.
18391 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
18392 to get size in mingw.
18393 (open_device): Use flag O_BINARY if it's defined.
18394 (find_root_device): Add dummy code for mingw.
18396 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
18397 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
18398 (get_scsi_disk_name): Return 0 for mingw.
18400 * util/hostfs.c: #include <grub/util/misc.h>.
18401 (grub_hostfs_open): Use "rb" flag to open file, use
18402 grub_util_get_disk_size to get disk size for mingw.
18404 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
18405 (asprintf): New function if HAVE_ASPRINTF is not set.
18406 (sync): New function for mingw.
18408 (grub_util_get_disk_size): Likewise.
18410 2008-08-28 Pavel Roskin <proski@gnu.org>
18412 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
18415 2008-08-28 Robert Millan <rmh@aybabtu.com>
18417 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
18419 2008-08-28 Robert Millan <rmh@aybabtu.com>
18421 Change find_grub_drive() syntax so it doesn't prevent it from
18422 detecting NULL names as errors.
18424 * util/biosdisk.c (find_grub_drive): Move free slot search code
18426 (find_free_slot): ... to here.
18427 (read_device_map): Use find_free_slot() to search for free slots.
18429 2008-08-27 Marco Gerards <marco@gnu.org>
18431 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
18432 (scsi_mod_SOURCES): New variable.
18433 (scsi_mod_CFLAGS): Likewise
18434 (scsi_mod_LDFLAGS): Likewise.
18436 * disk/scsi.c: New file.
18438 * include/grub/scsi.h: Likewise.
18440 * include/grub/scsicmd.h: Likewise.
18442 * disk/ata.c: Include <grub/scsi.h>.
18443 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
18445 (grub_ata_iterate): Skip ATAPI devices.
18446 (grub_ata_open): Only handle ATAPI devices.
18447 (struct grub_atapi_read): Removed.
18448 (grub_atapi_readsector): Likewise.
18449 (grub_ata_read): No longer handle ATAPI devices.
18450 (grub_ata_write): Likewise.
18451 (grub_atapi_iterate): New function.
18452 (grub_atapi_read): Likewise.
18453 (grub_atapi_write): Likewise.
18454 (grub_atapi_open): Likewise.
18455 (grub_atapi_close): Likewise.
18456 (grub_atapi_dev): New variable.
18457 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
18458 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
18460 * include/grub/disk.h (enum grub_disk_dev_id): Add
18461 `GRUB_DISK_DEVICE_SCSI_ID'.
18463 2008-08-26 Robert Millan <rmh@aybabtu.com>
18465 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
18466 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
18469 2008-08-23 Bean <bean123ch@gmail.com>
18471 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
18472 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
18473 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
18474 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
18476 (raid5rec_mod_SOURCES): New macro.
18477 (raid5rec_mod_CFLAGS): Likewise.
18478 (raid5rec_mod_LDFLAGS): Likewise.
18479 (raid6rec_mod_SOURCES): Likewise.
18480 (raid6rec_mod_CFLAGS): Likewise.
18481 (raid6rec_mod_LDFLAGS): Likewise.
18482 (mdraid_mod_SOURCES): Likewise.
18483 (mdraid_mod_CFLAGS): Likewise.
18484 (mdraid_mod_LDFLAGS): Likewise.
18485 (dm_nv_mod_SOURCES): Likewise.
18486 (dm_nv_mod_CFLAGS): Likewise.
18487 (dm_nv_mod_LDFLAGS): Likewise.
18489 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
18490 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
18491 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
18493 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
18494 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
18496 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18498 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18500 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18502 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18504 * disk/raid5_recover.c: New file.
18506 * disk/raid6_recover.c: Likewise.
18508 * disk/mdraid_linux.c: Likewise.
18510 * disk/dmraid_nvidia.c: Likewise.
18512 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
18515 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
18516 calculate the size of raid device.
18517 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
18518 different layout of raid5.
18519 (grub_raid_scan_device): Remove code specific to mdraid.
18520 (grub_raid_list): New variable.
18521 (free_array): New function.
18522 (grub_raid_register): Likewise.
18523 (grub_raid_unregister): Likewise.
18524 (grub_raid_rescan): Likewise.
18525 (GRUB_MOD_INIT): Don't iterate device here.
18526 (GRUB_MOD_FINI): Use free_array to release resource.
18528 * include/grub/raid.h: Remove macro and structure specific to mdraid.
18529 (grub_raid5_recover_func_t): New function variable type.
18530 (grub_raid6_recover_func_t): Likewise.
18531 (grub_raid5_recover_func): New variable.
18532 (grub_raid6_recover_func): Likewise.
18533 (grub_raid_register): New function.
18534 (grub_raid_unregister): Likewise.
18535 (grub_raid_rescan): Likewise.
18536 (grub_raid_block_xor): Likewise.
18538 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
18539 (CMD_CRC): New macro.
18541 (read_file): Handle device as well as file.
18542 (cmd_crc): New function.
18543 (fstest): Handle multiple disks.
18544 (options): Remove part, raw and long, add root and diskcount.
18545 (usage): Add crc, remove -p, -r, -l, add -r and -c.
18546 (main): Find the first non option entry and ignore subsequent options,
18547 add handling for the new options, support multiple disks.
18549 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
18551 2008-08-23 Bean <bean123ch@gmail.com>
18553 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
18555 * genfslist.sh: Ignore kernel.mod.
18557 * genpartmaplist.sh: Likewise.
18559 2008-08-23 Robert Millan <rmh@aybabtu.com>
18561 * util/getroot.c (find_root_device): Skip anything that starts with
18562 a dot, not just directories. This avoids things like /dev/.tmp.md0.
18564 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
18566 * util/update-grub.in (GRUB_GFXMODE): Export variable.
18567 * util/grub.d/00_header.in: Allow the administrator to change default
18568 gfxmode via ${GRUB_GFXMODE}.
18570 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
18572 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
18574 2008-08-21 Robert Millan <rmh@aybabtu.com>
18576 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
18578 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
18579 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
18581 2008-08-20 Carles Pina i Estany <carles@pina.cat>
18583 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
18584 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
18586 2008-08-19 Robert Millan <rmh@aybabtu.com>
18588 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
18589 (struct grub_virtual_screen): Remove `cursor_color'.
18590 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
18592 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
18594 2008-08-18 Robert Millan <rmh@aybabtu.com>
18596 Unify (identical) linux_normal.c files.
18597 * loader/i386/efi/linux_normal.c: Move from here ...
18598 * loader/linux_normal.c: ... to here. Update all users.
18599 * loader/i386/pc/linux_normal.c: Delete. Update all users.
18600 * loader/i386/ieee1275/linux_normal.c: Likewise.
18602 2008-08-18 Robert Millan <rmh@aybabtu.com>
18604 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
18605 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
18606 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
18607 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
18608 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
18610 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
18611 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
18612 (GRUB_LINUX_CL_END_OFFSET): ... to here.
18613 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
18614 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
18615 (GRUB_EFI_CL_END_OFFSET): Rename to ...
18616 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
18617 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
18618 Initialize `params->video_cursor_x' and `params->video_cursor_y'
18619 portably using grub_getxy().
18620 Replace `-EFI' with `-bzImage' in boot message.
18622 2008-08-17 Robert Millan <rmh@aybabtu.com>
18624 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
18626 2008-08-17 Robert Millan <rmh@aybabtu.com>
18628 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
18630 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
18631 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
18632 (grub_machine_mmap_iterate): New function declaration.
18633 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
18635 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
18638 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
18639 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
18640 Move e820 parsing from here ...
18641 * kern/i386/pc/mmap.c: New file.
18642 (grub_machine_mmap_iterate): ... to here.
18644 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
18645 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
18646 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
18647 (grub_available_iterate): Redeclare to return `void', and redeclare
18648 its hook to use grub_uint64_t as addr and size parameters, and rename
18650 (grub_machine_mmap_iterate): ... this. Update all users.
18652 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
18653 to make it more readable. Rename to ...
18654 (grub_machine_mmap_iterate): ... this.
18656 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
18657 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
18658 (grub_multiboot): Allocate an extra region after the payload, and fill
18659 it with a Multiboot memory map. Adjust a.out loader to calculate size
18660 with the extra space.
18661 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
18662 with the extra space.
18664 2008-08-17 Carles Pina i Estany <carles@pina.cat>
18666 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
18668 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
18670 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
18671 mdate-sh to the list `find' searches for.
18672 * DISTLIST: Regenerated.
18674 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
18676 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
18677 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
18678 genmoddep.awk, gensymlist.sh.in.
18679 (DISTDIRS): Add bus, docs, hook, lib.
18680 * DISTLIST: Regenerated.
18681 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
18683 2008-08-16 Robert Millan <rmh@aybabtu.com>
18685 * disk/raid.c (grub_raid_init): Handle/report errors set by
18686 grub_device_iterate().
18687 * disk/lvm.c (grub_lvm_init): Likewise.
18689 2008-08-15 Bean <bean123ch@gmail.com>
18691 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
18693 (datetime_mod_SOURCES): New macro.
18694 (datetime_mod_CFLAGS): Likewise.
18695 (datetime_mod_LDFLAGS): Likewise.
18696 (date_mod_SOURCES): Likewise.
18697 (date_mod_CFLAGS): Likewise.
18698 (date_mod_LDFLAGS): Likewise.
18699 (datehook_mod_SOURCES): Likewise.
18700 (datehook_mod_CFLAGS): Likewise.
18701 (datehook_mod_LDFLAGS): Likewise.
18703 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
18705 (datetime_mod_SOURCES): New macro.
18706 (datetime_mod_CFLAGS): Likewise.
18707 (datetime_mod_LDFLAGS): Likewise.
18708 (date_mod_SOURCES): Likewise.
18709 (date_mod_CFLAGS): Likewise.
18710 (date_mod_LDFLAGS): Likewise.
18711 (datehook_mod_SOURCES): Likewise.
18712 (datehook_mod_CFLAGS): Likewise.
18713 (datehook_mod_LDFLAGS): Likewise.
18715 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
18717 (datetime_mod_SOURCES): New macro.
18718 (datetime_mod_CFLAGS): Likewise.
18719 (datetime_mod_LDFLAGS): Likewise.
18720 (date_mod_SOURCES): Likewise.
18721 (date_mod_CFLAGS): Likewise.
18722 (date_mod_LDFLAGS): Likewise.
18723 (datehook_mod_SOURCES): Likewise.
18724 (datehook_mod_CFLAGS): Likewise.
18725 (datehook_mod_LDFLAGS): Likewise.
18727 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
18729 (datetime_mod_SOURCES): New macro.
18730 (datetime_mod_CFLAGS): Likewise.
18731 (datetime_mod_LDFLAGS): Likewise.
18732 (date_mod_SOURCES): Likewise.
18733 (date_mod_CFLAGS): Likewise.
18734 (date_mod_LDFLAGS): Likewise.
18735 (datehook_mod_SOURCES): Likewise.
18736 (datehook_mod_CFLAGS): Likewise.
18737 (datehook_mod_LDFLAGS): Likewise.
18739 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
18741 (datetime_mod_SOURCES): New macro.
18742 (datetime_mod_CFLAGS): Likewise.
18743 (datetime_mod_LDFLAGS): Likewise.
18744 (date_mod_SOURCES): Likewise.
18745 (date_mod_CFLAGS): Likewise.
18746 (date_mod_LDFLAGS): Likewise.
18747 (datehook_mod_SOURCES): Likewise.
18748 (datehook_mod_CFLAGS): Likewise.
18749 (datehook_mod_LDFLAGS): Likewise.
18751 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
18753 * commands/date.c: New file.
18755 * hook/datehook.c: Likewise.
18757 * include/grub/lib/datetime.h: Likewise.
18759 * include/grub/i386/cmos.h: Likewise.
18761 * lib/datetime.c: Likewise.
18763 * lib/i386/datetime.c: Likewise.
18765 * lib/efi/datetime.c: Likewise.
18767 2008-08-14 Robert Millan <rmh@aybabtu.com>
18769 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
18770 (grub_mkelfimage_SOURCES): New variable.
18771 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
18773 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
18774 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
18775 * conf/powerpc-ieee1275.rmk: Likewise.
18776 * conf/i386-ieee1275.rmk: Likewise.
18778 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
18779 * kern/i386/coreboot/init.c: Likewise.
18781 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
18782 with `<grub/cpu/kernel.h>'.
18783 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
18785 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
18786 * kern/i386/coreboot/startup.S: Likewise.
18788 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
18789 (GRUB_MOD_GAP): Remove.
18790 * include/grub/powerpc/kernel.h: New file.
18791 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
18792 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
18793 * include/grub/i386/kernel.h: New file.
18794 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
18795 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
18796 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
18798 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
18800 Use --directory when invoking grub_mkimage.
18802 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
18803 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
18804 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
18805 and GRUB_KERNEL_CPU_PREFIX.
18807 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
18809 * include/grub/err.h (grub_err_printf): New function prototype.
18810 * util/misc.c (grub_err_printf): New function.
18811 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
18813 * kern/err.c (grub_print_error): Use grub_err_printf.
18815 2008-08-13 Robert Millan <rmh@aybabtu.com>
18817 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
18819 2008-08-13 Robert Millan <rmh@aybabtu.com>
18821 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
18824 2008-08-12 Robert Millan <rmh@aybabtu.com>
18826 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
18827 of the relocation code from here ...
18828 (grub_multiboot): ... to here.
18829 (forward_relocator, backward_relocator): Move from here ...
18830 * kern/i386/loader.S (grub_multiboot_forward_relocator)
18831 (grub_multiboot_backward_relocator): ... to here.
18832 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
18833 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
18834 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
18835 (grub_multiboot_forward_relocator_end)
18836 (grub_multiboot_backward_relocator)
18837 (grub_multiboot_backward_relocator_end): New variables.
18839 2008-08-12 Bean <bean123ch@gmail.com>
18841 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
18843 2008-08-11 Robert Millan <rmh@aybabtu.com>
18845 * kern/i386/linuxbios/startup.S: Move from here ...
18846 * kern/i386/coreboot/startup.S: ... to here.
18848 * kern/i386/linuxbios/init.c: Move from here ...
18849 * kern/i386/coreboot/init.c: ... to here.
18851 * kern/i386/linuxbios/table.c: Move from here ...
18852 * kern/i386/coreboot/mmap.c: ... to here.
18854 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
18856 2008-08-11 Robert Millan <rmh@aybabtu.com>
18858 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
18859 errors. Leave it to the upper layer to handle them.
18861 2008-08-09 Christian Franke <franke@computer.org>
18863 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
18864 * conf/common.rmk: Install `grub-pe2elf' only if requested.
18865 Install `grub.d/10_windows' only on Cygwin.
18866 * configure.ac: Add subst of `target_os'.
18867 Check `target_os' also before setting TARGET_OBJ2ELF.
18868 Add `--enable-grub-pe2elf'.
18870 2008-08-08 Robert Millan <rmh@aybabtu.com>
18872 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
18873 (grub_last_time): Change type to grub_uint64_t.
18874 (grub_disk_open): Migrate code from to using grub_get_time_ms().
18875 (grub_disk_close): Likewise.
18877 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
18878 (run_menu): Migrate code from to using grub_get_time_ms().
18880 * util/misc.c (grub_get_time_ms): New function.
18882 2008-08-08 Marco Gerards <marco@gnu.org>
18884 * disk/ata.c (grub_ata_regget): Change return type to
18886 (grub_ata_regget2): Likewise.
18887 (grub_ata_wait_status): New function.
18888 (grub_ata_wait_busy): Removed function, updated all users to use
18889 `grub_ata_wait_status'.
18890 (grub_ata_wait_drq): Likewise.
18891 (grub_ata_cmd): New function.
18892 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
18894 (grub_ata_pio_write): Add error handling.
18895 (grub_atapi_identify): Likewise.
18896 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
18898 (grub_ata_identify): Use `grub_ata_cmd' and improve error
18899 handling. Actually use the detected registers. Reorder the
18900 detection logic such that it is easier to read.
18901 (grub_ata_pciinit): Do not assign the same ID to each controller.
18902 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
18904 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
18906 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
18908 2008-08-08 Marco Gerards <marco@gnu.org>
18912 2008-08-07 Bean <bean123ch@gmail.com>
18914 * include/grub/x86_64/pci.h: New file.
18916 2008-08-07 Christian Franke <franke@computer.org>
18918 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
18919 (TIMER2_GATE): Likewise.
18920 (grub_pit_wait): Add enable/disable of the timer2 gate
18921 bit of port 0x61. This fixes a possible infinite loop.
18923 2008-08-07 Bean <bean123ch@gmail.com>
18925 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
18926 kern/i386/tsc.c and kern/i386/pit.c.
18928 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
18931 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
18934 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
18936 2008-08-07 Bean <bean123ch@gmail.com>
18938 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
18940 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
18942 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
18943 multiple inclusion. Add #include <grub/types.h>.
18945 2008-08-06 Christian Franke <franke@computer.org>
18947 * conf/common.rmk: Build and install `10_windows'.
18948 * util/grub.d/10_windows.in: New script.
18950 2008-08-06 Pavel Roskin <proski@gnu.org>
18952 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
18954 2008-08-06 Robert Millan <rmh@aybabtu.com>
18956 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
18957 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
18959 2008-08-06 Bean <bean123ch@gmail.com>
18961 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
18962 (grub_pxefs_fs_int): Remove dummy definition.
18963 (grub_pxefs_open): Use data->block_size to store the current block
18965 (grub_pxefs_read): Use block size stored in data->block_size. As the
18966 value of grub_pxe_blksize can be changed after the file is opened.
18968 2008-08-06 Bean <bean123ch@gmail.com>
18970 * fs/i386/pc/pxe.c (curr_file): new variable.
18971 (grub_pxefs_open): Simply the handling of pxe file system. Don't
18972 require the dummy internal file system anymore.
18973 (grub_pxefs_read): Removed.
18974 (grub_pxefs_close): Likewise.
18975 (grub_pxefs_fs_int): Likewise.
18976 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
18977 connection when we switch file.
18978 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
18980 2008-08-06 Robert Millan <rmh@aybabtu.com>
18982 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
18984 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
18985 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
18987 * kern/i386/halt.c: New file.
18988 * kern/i386/reboot.c: Likewise.
18989 * include/grub/i386/reboot.h: Likewise.
18990 * include/grub/i386/halt.h: Likewise.
18992 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
18993 Include `<grub/cpu/halt.h>'.
18994 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
18995 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
18997 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
18998 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
18999 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
19000 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
19001 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
19002 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
19004 * include/grub/i386/at_keyboard.h: ... to here.
19006 2008-08-05 Robert Millan <rmh@aybabtu.com>
19008 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
19009 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
19010 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
19011 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
19012 `kern/generic/millisleep.c'.
19014 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
19015 instead of grub_get_rtc().
19016 (grub_tsc_init): Initialize `tsc_boot_time'.
19018 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
19019 (grub_machine_init): Use grub_tsc_init() rather than
19020 installing an RTC-based handler via grub_install_get_time_ms().
19022 * kern/i386/pit.c: New file.
19023 * include/grub/i386/pit.h: Likewise.
19025 2008-08-05 Bean <bean123ch@gmail.com>
19027 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
19029 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
19030 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
19031 (pxe_mod_SOURCES): New macro.
19032 (pxe_mod_CFLAGS): Likewise.
19033 (pxe_mod_LDFLAGS): Likewise.
19034 (pxecmd_mod_SOURCES): Likewise.
19035 (pxecmd_mod_CFLAGS): Likewise.
19036 (pxecmd_mod_LDFLAGS): Likewise.
19038 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
19039 (grub_pxe_call): Likewise.
19041 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
19043 * commands/i386/pc/pxecmd.c: New file.
19045 * fs/i386/pc/pxe.c: Likewise.
19047 * include/grub/i386/pc/pxe.h: Likewise.
19049 2008-08-05 Bean <bean123ch@gmail.com>
19051 * util/console.c (grub_console_cur_color): New variable.
19052 (grub_console_standard_color): Likewise.
19053 (grub_console_normal_color): Likewise.
19054 (grub_console_highlight_color): Likewise.
19055 (color_map): Likewise.
19056 (use_color): Likewise.
19057 (NUM_COLORS): New macro.
19058 (grub_ncurses_setcolorstate): Handle color properly.
19059 (grub_ncurses_setcolor): Don't change color here, just remember the
19060 settings, color will be set in grub_ncurses_setcolorstate.
19061 (grub_ncurses_getcolor): New function.
19062 (grub_ncurses_init): Initialize color pairs.
19063 (grub_ncurses_term): New member grub_ncurses_getcolor.
19065 2008-08-05 Colin D Bennett <colin@gibibit.com>
19067 High resolution timer support. Implemented for x86 CPUs using TSC.
19068 Extracted generic grub_millisleep() so it's linked in only as needed.
19069 This requires a Pentium compatible CPU; if the RDTSC instruction is
19070 not supported, then it falls back on the generic grub_get_time_ms()
19071 implementation that uses the machine's RTC.
19073 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
19074 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
19075 `kern/generic/millisleep.c'.
19077 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
19078 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
19080 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
19081 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
19083 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
19085 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
19086 `kern/generic/millisleep.c'.
19088 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
19090 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
19092 * kern/generic/rtc_get_time_ms.c: New file.
19094 * kern/generic/millisleep.c: New file.
19096 * kern/misc.c: Don't include
19097 <kern/time.h> anymore.
19098 (grub_millisleep_generic): Removed.
19100 * commands/sleep.c (grub_interruptible_millisleep): Uses
19101 grub_get_time_ms() instead of grub_get_rtc().
19103 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
19105 (grub_cpu_is_cpuid_supported): New inline function.
19106 (grub_cpu_is_tsc_supported): New inline function.
19107 (grub_tsc_init): New function prototype.
19108 (grub_tsc_get_time_ms): New function prototype.
19110 * kern/i386/tsc.c (grub_get_time_ms): New file.
19112 * include/grub/time.h: Include <grub/types.h.
19113 (grub_millisleep_generic): Removed.
19114 (grub_get_time_ms): New prototype.
19115 (grub_install_get_time_ms): New prototype.
19116 (grub_rtc_get_time_ms): New prototype.
19118 * kern/time.c (grub_get_time_ms): New function.
19119 (grub_install_get_time_ms): New function.
19121 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
19122 <grub/time.h> anymore.
19123 (grub_millisleep): Removed.
19124 (grub_machine_init): Call grub_tsc_init.
19126 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
19127 get_time_ms() implementation.
19129 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
19130 (ieee1275_get_time_ms): New function.
19131 (grub_machine_init): Install get_time_ms() implementation.
19133 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
19134 (grub_machine_init): Call grub_tsc_init().
19135 (grub_millisleep): Removed.
19137 * kern/ieee1275/init.c (grub_millisleep): Removed.
19138 (grub_machine_init): Install ieee1275_get_time_ms()
19140 (ieee1275_get_time_ms): New function.
19141 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
19144 2008-08-05 Marco Gerards <marco@gnu.org>
19146 * disk/ata.c: Include <grub/pci.h>.
19147 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
19148 (grub_ata_initialize): Rewritten.
19149 (grub_ata_device_initialize): New function.
19151 2008-08-04 Pavel Roskin <proski@gnu.org>
19153 * kern/main.c: Include grub/mm.h.
19155 2008-08-04 Robert Millan <rmh@aybabtu.com>
19157 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
19158 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
19159 corruption problem).
19161 2008-08-04 Robert Millan <rmh@aybabtu.com>
19163 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
19164 warnings introduced in my last commit.
19166 2008-08-03 Robert Millan <rmh@aybabtu.com>
19168 Make PCI available on all i386 architectures.
19170 * include/grub/i386/pc/pci.h: Move from here ...
19171 * include/grub/i386/pci.h: ... to here.
19173 * include/grub/i386/pc/pci.h: Remove.
19174 * include/grub/i386/efi/pci.h: Remove.
19175 * include/grub/x86_64/efi/pci.h: Remove.
19177 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
19178 `<grub/cpu/pci.h>'.
19180 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
19181 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
19182 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
19184 * conf/i386-ieee1275.rmk: Likewise.
19186 2008-08-03 Robert Millan <rmh@aybabtu.com>
19188 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
19189 (grub_console_setcursor): Make it possible to set cursor off.
19191 2008-08-03 Robert Millan <rmh@aybabtu.com>
19193 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
19194 of modules instead of assuming which platform provides what.
19195 * util/update-grub.in: Likewise.
19197 2008-08-03 Robert Millan <rmh@aybabtu.com>
19199 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
19200 instead of `grub_install_dos_part' to determine whether a drive needs
19201 to be prepended to prefix (`grub_install_dos_part' is not reliable,
19202 because it can be overridden when loading GRUB via Multiboot).
19204 2008-08-02 Robert Millan <rmh@aybabtu.com>
19206 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
19208 2008-08-02 Robert Millan <rmh@aybabtu.com>
19210 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
19211 of informational grub_dprintf() calls.
19213 2008-08-02 Robert Millan <rmh@aybabtu.com>
19215 * disk/memdisk.c (memdisk_size): Don't initialize.
19216 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
19218 * include/grub/i386/pc/kernel.h
19219 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
19220 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
19221 (grub_memdisk_image_size, grub_arch_memdisk_addr)
19222 (grub_arch_memdisk_size): Remove.
19224 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
19225 field (was only used to transfer a constant). Add `type' field to
19226 support multiple module types.
19227 (grub_module_iterate): New function.
19229 * kern/device.c (grub_device_open): Do not hide error messages
19230 when grub_disk_open() fails. Use grub_print_error() instead.
19232 * kern/i386/pc/init.c (grub_arch_modules_addr)
19233 (grub_arch_memdisk_size): Remove functions.
19234 (grub_arch_modules_addr): Return the module address in high memory
19235 (now that it isn't copied anymore).
19237 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
19238 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
19239 decompression routine (grub_total_module_size already includes that
19240 now). Don't copy modules back to low memory.
19242 * kern/main.c: Include `<grub/mm.h>'.
19243 (grub_load_modules): Split out (and use) ...
19244 (grub_module_iterate): ... this function, which iterates through
19245 module objects and runs a hook.
19246 Comment out grub_mm_init_region() call, as it would cause non-ELF
19247 modules to be overwritten.
19249 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
19250 the memdisk image in its own region, make it part of the module list.
19251 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
19252 (main): Parse --memdisk|-m option, and pass user-provided path as
19253 parameter to generate_image().
19254 (add_segments): Pass `memdisk_path' down to load_modules().
19255 (load_modules): Embed memdisk image in module section when requested.
19256 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
19257 `header.type' instead of `header.offset'.
19259 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
19260 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
19261 (memdisk_mod_LDFLAGS): New variables.
19262 * conf/i386-coreboot.rmk: Likewise.
19263 * conf/i386-ieee1275.rmk: Likewise.
19265 2008-08-02 Robert Millan <rmh@aybabtu.com>
19267 * loader/i386/pc/multiboot.c (playground, forward_relocator)
19268 (backward_relocator): New variables. Used to allocate and relocate
19269 the payload, respectively.
19270 (grub_multiboot_load_elf32): Load into heap instead of requested
19271 address, install the appropriate relocator code in each bound of
19272 the payload, and set the entry point such that
19273 grub_multiboot_real_boot() will jump to one of them.
19275 * kern/i386/loader.S (grub_multiboot_payload_size)
19276 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
19277 (grub_multiboot_payload_entry_offset): New variables.
19278 (grub_multiboot_real_boot): Set cpu context to what the relocator
19279 expects, and jump to the relocator instead of the payload.
19281 * include/grub/i386/loader.h (grub_multiboot_payload_size)
19282 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
19283 (grub_multiboot_payload_entry_offset): Export.
19285 2008-08-01 Bean <bean123ch@gmail.com>
19287 * normal/menu_entry.c (editor_getline): Don't return the original
19288 string as result, as it will be released by lexer once it has done
19291 2008-08-01 Robert Millan <rmh@aybabtu.com>
19293 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
19294 within menuentries, not before them.
19295 util/grub.d/10_hurd.in: Likewise.
19297 2008-08-01 Bean <bean123ch@gmail.com>
19299 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
19300 (bufio_mod_SOURCES): New macro.
19301 (bufio_mod_CFLAGS): Likewise.
19302 (bufio_mod_LDFLAGS): Likewise.
19304 * include/grub/bufio.h: New file.
19306 * io/bufio.c: Likewise.
19308 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
19309 (grub_video_reader_png): Use grub_buffile_open to open file.
19311 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
19312 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
19314 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
19315 (grub_video_reader_tga): Use grub_buffile_open to open file.
19317 * font/manager.c: Include <grub/bufio.h>.
19318 (add_font): Use grub_buffile_open to open file.
19320 2008-07-31 Robert Millan <rmh@aybabtu.com>
19322 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
19323 ELF segments, use a macro for arbitrarily accessing any of them instead
19324 of preparing a pointer that allows access to one at a time.
19325 (grub_multiboot_load_elf64): Likewise.
19327 2008-07-31 Bean <bean123ch@gmail.com>
19329 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
19330 GRUB_KERNEL_MACHINE_DATA_END.
19332 2008-07-30 Robert Millan <rmh@aybabtu.com>
19334 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
19335 Increase from 0x50 to 0x60.
19336 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
19337 use UUIDs to identify the root drive for them. If that's not
19339 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
19340 check, for cross-disk installs.
19342 2008-07-30 Robert Millan <rmh@aybabtu.com>
19344 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
19345 is non-empty, use it to set the `prefix' environment variable instead
19346 of the usual approach.
19347 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
19348 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
19349 environment variable instead of dummy make_install_device().
19351 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
19352 (start): Insert a data section, with `grub_prefix' variable.
19353 * kern/i386/linuxbios/startup.S: Likewise.
19355 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
19356 New variable reference.
19357 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
19358 New macro. Defines offset of `grub_prefix' within startup.S (relative
19360 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
19361 section within startup.S (relative to `start').
19362 * include/grub/i386/coreboot/kernel.h: Likewise.
19364 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
19365 Overwrite grub_prefix with its contents, at the beginning of the
19367 (main): Understand -p|--prefix.
19369 2008-07-30 Robert Millan <rmh@aybabtu.com>
19371 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
19373 2008-07-30 Robert Millan <rmh@aybabtu.com>
19375 * term/i386/pc/vga_text.c (grub_console_cls): Use
19376 grub_console_gotoxy() to go back to beginning of the screen.
19377 Found by Patrick Georgi <patrick.georgi@coresystems.de>
19379 2008-07-29 Christian Franke <franke@computer.org>
19381 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
19382 Add conversion of emulated mount points on Cygwin.
19384 2008-07-29 Christian Franke <franke@computer.org>
19386 * util/update-grub.in: Add a check for admin
19388 Remove old `grub.cfg.new' before creation.
19389 Add `-f' to `mv' to handle the different filesystem
19390 semantics of Windows.
19392 2008-07-29 Bean <bean123ch@gmail.com>
19394 * normal/main.c (get_line): Fix buffer overflow bug.
19396 2008-07-28 Robert Millan <rmh@aybabtu.com>
19398 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
19399 (struct grub_apple_header): New struct. Describes the layout of
19400 the partmap header.
19401 (apple_partition_map_iterate): Check the header magic as well as the
19402 partition magic (which was already being checked).
19404 2008-07-28 Pavel Roskin <proski@gnu.org>
19406 * genmk.rb: Add a warning to the beginning of the output that
19407 it's a generated file and should not be edited.
19409 2008-07-28 Robert Millan <rmh@aybabtu.com>
19411 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
19412 with the same number are found, just use issue a warning with
19413 grub_dprintf(), as this error has been reported to be non-fatal.
19415 2008-07-27 Robert Millan <rmh@aybabtu.com>
19417 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
19420 2008-07-27 Bean <bean123ch@gmail.com>
19422 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
19423 (grub_fat_find_dir): Ignore case when comparing filename.
19425 2008-07-27 Bean <bean123ch@gmail.com>
19427 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
19428 smallino, as it's more descriptive, and i8count can be confused with
19429 the other field count.
19430 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
19433 2008-07-27 Bean <bean123ch@gmail.com>
19435 * commands/crc.c: New file.
19437 * lib/crc.c: Likewise.
19439 * include/grub/lib/crc.h: Likewise.
19441 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
19443 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
19444 (hexdump): Move this function to ...
19446 * lib/hexdump.c: ... here.
19448 * include/grub/hexdump.h: Renamed to ...
19450 * include/grub/lib/hexdump.h: ... this.
19452 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
19454 * util/grub-editenv.c: Likewise.
19456 * include/envblk.h: Renamed to ...
19458 * include/lib/envblk.h: ... this.
19460 * util/envblk.c: Renamed to ...
19462 * lib/envblk.c: ... this.
19464 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
19466 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
19467 (pkglib_MODULES): Add crc.mod.
19468 (hexdump_mod_SOURCES): Add lib/hexdump.c.
19469 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
19470 (crc_mod_SOURCES): New macro.
19471 (crc_mod_CFLAGS): Likewise.
19472 (crc_mod_LDFLAGS): Likewise.
19474 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
19476 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19478 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19480 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19482 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19484 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
19486 * commands/help.c: Include <grub/term.h>.
19487 (TERM_WIDTH): Removed. Updated all users.
19489 2008-07-27 Pavel Roskin <proski@gnu.org>
19491 * util/getroot.c (find_root_device): Rephrase a comment to avoid
19492 spurious warnings about a comment within a comment.
19494 2008-07-25 Robert Millan <rmh@aybabtu.com>
19496 * util/getroot.c (find_root_device): Skip devices that match
19497 /dev/dm-[0-9]. This lets the real device be found for any type of
19498 abstraction (LVM, EVMS, RAID..).
19499 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
19500 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
19501 device is found first, find_root_device() will now skip it.
19503 2008-07-24 Pavel Roskin <proski@gnu.org>
19505 * include/grub/types.h: Use __builtin_bswap32() and
19506 __builtin_bswap64() with gcc 4.3 and newer.
19508 2008-07-24 Christian Franke <franke@computer.org>
19510 * util/i386/pc/grub-install.in: If `--debug' is specified,
19511 pass `--verbose' to grub-setup.
19512 Abort script if make_system_path_relative_to_its_root() fails.
19514 2008-07-24 Bean <bean123ch@gmail.com>
19516 * configure.ac: Fixed a bug caused by the previous cygwin patch,
19517 variable `target_platform' should be `platform'.
19519 2008-07-24 Bean <bean123ch@gmail.com>
19521 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
19522 (grub_png_init_fixed_block): New function.
19523 (grub_png_decode_image_data): Handle fixed huffman code compression.
19525 2008-07-24 Bean <bean123ch@gmail.com>
19527 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
19528 (grub_pe2elf_SOURCES): New macro.
19529 (CLEANFILES): Add grub-pe2elf.
19531 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
19532 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
19533 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
19534 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
19535 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
19536 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
19537 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
19538 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
19539 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
19540 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
19541 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
19542 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
19543 (GRUB_PE32_DT_FUNCTION): Likewise.
19544 (GRUB_PE32_REL_I386_DIR32): Likewise.
19545 (GRUB_PE32_REL_I386_REL32): Likewise.
19546 (grub_pe32_symbol): New structure.
19547 (grub_pe32_reloc): Likewise.
19549 * util/grub-pe2elf.c: New file.
19551 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
19552 start symbol in non pc platform.
19554 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
19556 The following patches are from Christian Franke.
19558 * include/grub/dl.h: Remove .previous, gas supports this only
19561 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
19562 Remove .type, gas supports this only for ELF format.
19564 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
19565 nullbytes in symbol table. This fixes an infinite loop if table is
19568 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
19569 TARGET_IMG_LDFLAGS and EXEEXT.
19571 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
19572 TARGET_IMG_LDFLAGS_AC.
19573 (grub_CHECK_STACK_ARG_PROBE): New function.
19575 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
19577 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
19579 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
19580 to set TARGET_IMG_LD* accordingly.
19581 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
19582 Add call to grub_CHECK_STACK_ARG_PROBE.
19583 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
19585 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
19587 * genmk.rb: Add EXEEXT to CLEANFILES.
19589 2008-07-23 Robert Millan <rmh@aybabtu.com>
19591 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
19592 define the codes for arrows and lines used for the menu).
19593 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
19596 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
19597 fonts, because the latter are too slow.
19599 2008-07-21 Bean <bean123ch@gmail.com>
19601 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
19602 a20. Run keyboard test last, as it will cause macbook to halt.
19604 2008-07-18 Pavel Roskin <proski@gnu.org>
19606 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
19607 load foreign architecture modules correctly anyway. Keep
19608 support for loading host architecture modules, whether we
19609 compile them or not.
19611 2008-07-17 Pavel Roskin <proski@gnu.org>
19613 * configure.ac: Use -m32 or -m64 regardless of whether we had to
19614 change target_cpu. The compiler default can mismatch target_cpu
19617 * disk/efi/efidisk.c: Fix format warnings on x86_64.
19618 * kern/efi/efi.c: Likewise.
19620 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
19621 target compiler is functional.
19622 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
19625 * configure.ac: Default to efi platform for x86_64-apple. Allow
19626 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
19627 adjustments from the rest, only do them if target is not
19628 explicitly given. Merge other adjustments with the final sanity
19629 check. Remove an extraneous check for supported CPU. Be
19630 specific which CPU and which platform is not supported.
19632 * configure.ac: Default to pc platform for x86_64.
19634 2008-07-17 Robert Millan <rmh@aybabtu.com>
19636 Partial LinuxBIOS -> Coreboot rename.
19638 * conf/i386-linuxbios.rmk: Renamed to ...
19639 * conf/i386-coreboot.rmk: ... this.
19640 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
19641 * configure.ac: Accept "coreboot" as input platform (but maintain
19642 compatibility with "linuxbios").
19643 * include/grub/i386/linuxbios: Renamed to ...
19644 * include/grub/i386/coreboot: ... this.
19646 2008-07-17 Bean <bean123ch@gmail.com>
19648 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
19649 (appleldr_mod_SOURCE): New variable.
19650 (appleldr_mod_CFLAGS): Likewise.
19651 (appleldr_mod_LDFLAGS): Likewise.
19652 (pci_mod_SOURCES): Likewise.
19653 (pci_mod_CFLAGS): Likewise.
19654 (pci_mod_LDFLAGS): Likewise.
19655 (lspci_mod_SOURCES): Likewise.
19656 (lspci_mod_CFLAGS): Likewise.
19657 (lspci_mod_LDFLAGS): Likewise.
19659 * conf/x86_64-efi.rmk: New file.
19661 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
19663 (grub_efidisk_write): Likewise.
19665 * include/efi/api.h (efi_call_0): New macro.
19666 (efi_call_1): Likewise.
19667 (efi_call_2): Likewise.
19668 (efi_call_3): Likewise.
19669 (efi_call_4): Likewise.
19670 (efi_call_5): Likewise.
19671 (efi_call_6): Likewise.
19673 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
19674 grub_rescue_cmd_chainloader.
19676 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
19677 (grub_pe32_optional_header): Change some fields based on i386 or
19679 (GRUB_PE32_PE32_MAGIC): Likewise.
19681 * include/grub/efi/uga_draw.h: New file.
19683 * include/grub/elf.h (STN_ABS): New constant.
19684 (R_X86_64_NONE): Relocation constant for x86_64.
19685 (R_X86_64_64): Likewise.
19686 (R_X86_64_PC32): Likewise.
19687 (R_X86_64_GOT32): Likewise.
19688 (R_X86_64_PLT32): Likewise.
19689 (R_X86_64_COPY): Likewise.
19690 (R_X86_64_GLOB_DAT): Likewise.
19691 (R_X86_64_JUMP_SLOT): Likewise.
19692 (R_X86_64_RELATIVE): Likewise.
19693 (R_X86_64_GOTPCREL): Likewise.
19694 (R_X86_64_32): Likewise.
19695 (R_X86_64_32S): Likewise.
19696 (R_X86_64_16): Likewise.
19697 (R_X86_64_PC16): Likewise.
19698 (R_X86_64_8): Likewise.
19699 (R_X86_64_PC8): Likewise.
19701 * include/grub/i386/efi/pci.h: New file.
19703 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
19704 Change it value based on platform.
19705 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
19706 (GRUB_E820_RAM): Likewise.
19707 (GRUB_E820_RESERVED): Likewise.
19708 (GRUB_E820_ACPI): Likewise.
19709 (GRUB_E820_NVS): Likewise.
19710 (GRUB_E820_EXEC_CODE): Likewise.
19711 (GRUB_E820_MAX_ENTRY): Likewise.
19712 (grub_e820_mmap): New structure.
19713 (linux_kernel_header): Change the efi field according to different
19714 kernel version, also field from linux_kernel_header.
19716 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
19718 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
19719 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
19720 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
19721 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
19722 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
19723 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
19724 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
19725 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
19726 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
19727 (GRUB_PCI_ADDR_IO_MASK): Likewise.
19729 * include/grub/x86_64/efi/kernel.h: New file.
19731 * include/grub/x86_64/efi/loader.h: Likewise.
19733 * include/grub/x86_64/efi/machine.h: Likewise.
19735 * include/grub/x86_64/efi/pci.h: Likewise.
19737 * include/grub/x86_64/efi/time.h: Likewise.
19739 * include/grub/x86_64/linux.h: Likewise.
19741 * include/grub/x86_64/setjmp.h: Likewise.
19743 * include/grub/x86_64/time.h: Likewise.
19745 * include/grub/x86_64/types.h: Likewise.
19747 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
19748 GRUB_TARGET_SIZEOF_VOID_P.
19750 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
19751 (grub_efi_locate_handle): Likewise.
19752 (grub_efi_open_protocol): Likewise.
19753 (grub_efi_set_text_mode): Likewise.
19754 (grub_efi_stall): Likewise.
19755 (grub_exit): Likewise.
19756 (grub_reboot): Likewise.
19757 (grub_halt): Likewise.
19758 (grub_efi_exit_boot_services): Likewise.
19759 (grub_get_rtc): Likewise.
19761 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
19762 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
19763 (grub_efi_allocate_pages): Wrap efi calls.
19764 (grub_efi_free_pages): Wrap efi calls.
19765 (grub_efi_get_memory_map): Wrap efi calls.
19767 * kern/x86_64/dl.c: New file.
19769 * kern/x86_64/efi/callwrap.S: Likewise.
19771 * kern/x86_64/efi/startup.S: Likewise.
19773 * loader/efi/appleloader.c: Likewise.
19775 * loader/efi/chainloader.c (cmdline): New variable.
19776 (grub_chainloader_unload): Wrap efi calls.
19777 (grub_chainloader_boot): Likewise.
19778 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
19781 * loader/efi/chainloader_normal.c (chainloader_command):
19782 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
19785 * loader/i386/efi/linux.c (allocate_pages): Change allocation
19787 (grub_e820_add_region): New function.
19788 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
19790 (grub_find_video_card): New function.
19791 (grub_linux_setup_video): New function.
19792 (grub_rescue_cmd_linux): Probe for video information.
19794 * normal/x86_64/setjmp.S: New file.
19796 * term/efi/console.c (map_char): New function.
19797 (grub_console_putchar): Map unicode char.
19798 (grub_console_checkkey): Wrap efi calls.
19799 (grub_console_getkey): Likewise.
19800 (grub_console_getwh): Likewise.
19801 (grub_console_gotoxy): Likewise.
19802 (grub_console_cls): Likewise.
19803 (grub_console_setcolorstate): Likewise.
19804 (grub_console_setcursor): Likewise.
19806 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
19808 2008-07-16 Pavel Roskin <proski@gnu.org>
19810 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
19813 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
19814 pointer, not an integer. This fixes a warning and prevents
19815 precision loss on 64-bit systems.
19816 (relocate_addresses): Remove unneeded cast.
19818 2008-07-15 Pavel Roskin <proski@gnu.org>
19820 * kern/i386/ieee1275/init.c: Include grub/cache.h.
19822 * term/ieee1275/ofconsole.c: Disable code unused on i386.
19824 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
19825 Fix comparison between signed and unsigned.
19827 * include/grub/i386/ieee1275/console.h: Declare
19828 grub_console_init() and grub_console_fini().
19830 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
19831 It's empty and unused.
19833 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
19834 beginning to avoid warnings with some compilers.
19836 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
19837 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
19839 2008-07-14 Pavel Roskin <proski@gnu.org>
19841 * kern/env.c (grub_register_variable_hook): Don't copy empty
19842 string, it leaks memory. Pass "" to grub_env_set(), it should
19843 handle constant strings.
19845 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
19846 * commands/cmp.c (grub_cmd_cmp): Likewise.
19847 * kern/dl.c (grub_dl_flush_cache): Likewise.
19848 (grub_dl_load_core): Likewise.
19849 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
19850 (grub_elf64_load_phdrs): Likewise.
19852 2008-07-13 Pavel Roskin <proski@gnu.org>
19854 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
19855 between signed and unsigned.
19856 (LzmaEnc_Finish): Fix warning about an unused parameter.
19858 2008-07-13 Bean <bean123ch@gmail.com>
19860 * Makefile.in (enable_lzo): New rule.
19862 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
19864 * configure.ac (ENABLE_LZO): New option --enable-lzo.
19866 * boot/i386/pc/lnxboot.S: #include <config.h>.
19868 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
19869 its value according to the compression algorithm used, lzo or lzma.
19871 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
19872 compression algorithm according to configure macro.
19874 * kern/i386/pc/startup.S (codestart): Likewise.
19876 * kern/i386/pc/lzma_decode.S: New file.
19878 * include/grub/lib/LzFind.h: Likewise.
19880 * include/grub/lib/LzHash.h: Likewise.
19882 * include/grub/lib/LzmaDec.h: Likewise.
19884 * include/grub/lib/LzmaEnc.h: Likewise.
19886 * include/grub/lib/LzmaTypes.h: Likewise.
19888 * lib/LzFind.c: Likewise.
19890 * lib/LzmaDec.c: Likewise.
19892 * lib/LzmaEnc.c: Likewise.
19894 2008-07-13 Bean <bean123ch@gmail.com>
19896 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
19897 (grub_ext4_extent_header): New structure.
19898 (grub_ext4_extent): Likewise.
19899 (grub_ext4_extent_idx): Likewise.
19900 (grub_ext4_find_leaf): New function.
19901 (grub_ext2_read_block): Handle extents.
19903 2008-07-12 Robert Millan <rmh@aybabtu.com>
19905 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
19907 2008-07-11 Robert Millan <rmh@aybabtu.com>
19909 * util/grub.d/40_custom.in: New file. Example on how to add custom
19910 entries to /etc/grub.d.
19911 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
19912 40_custom (implicitly, by merging all the grub.d rules).
19914 2008-07-11 Pavel Roskin <proski@gnu.org>
19916 * commands/read.c (grub_getline): Fix invalid memory access.
19917 Don't add newline to the variable value.
19919 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
19920 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
19921 (serial_hw_get_port): Check validity of the port number.
19922 (grub_cmd_serial): Check return value of serial_hw_get_port().
19924 2008-07-07 Pavel Roskin <proski@gnu.org>
19926 * boot/i386/pc/diskboot.S (notification_string): Replace
19927 "Loading kernel" with just "loading". This is shorter, less
19928 confusing and saves a few bytes for possible future changes.
19930 2008-07-05 Pavel Roskin <proski@gnu.org>
19932 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
19933 size for ATAPI devices, they are undefined. Output sector
19934 number in decimal form.
19936 * disk/ata.c: Use named constants for status bits.
19938 2008-07-04 Pavel Roskin <proski@gnu.org>
19940 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
19941 grub_addr_t before casting it to the void pointer to fix a
19942 warning. Non-addressable regions are discarded earlier.
19943 (grub_arch_modules_addr): Cast _end to grub_addr_t.
19944 * kern/i386/linuxbios/table.c: Include grub/misc.h.
19945 (check_signature): Don't shadow table_header.
19946 (grub_linuxbios_table_iterate): Cast numeric constants to
19947 grub_linuxbios_table_header_t.
19948 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
19951 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
19954 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
19955 pointer, which can cause warnings. Support 64-bit addresses.
19957 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
19958 of sizeof(long). This fixes PowerPC image generation on x86_64.
19960 2008-07-04 Robert Millan <rmh@aybabtu.com>
19962 This fixes a performance issue when pc & gpt partmap iterators
19963 didn't abort iteration even after our hook found what it was
19964 looking for (often causing expensive probes of non-existent drives).
19966 Some callers relied on previous buggy behaviour, since they would
19967 raise an error when their own hooks caused early abortion of its
19970 * kern/device.c (grub_device_open): Improve error message.
19971 * disk/lvm.c (grub_lvm_open): Likewise.
19972 * disk/raid.c (grub_raid_open): Likewise.
19974 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
19975 when hook requests it, independently of grub_errno.
19976 (pc_partition_map_probe): Do not fail when find_func() caused
19977 early abortion of pc_partition_map_iterate().
19979 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
19980 when hook requests it, independently of grub_errno.
19981 (gpt_partition_map_probe): Do not fail when find_func() caused
19982 early abortion of gpt_partition_map_iterate().
19984 * kern/partition.c (grub_partition_iterate): Abort parent iteration
19985 when hook requests it, independently of grub_errno. Do not fail when
19986 part_map_iterate_hook() caused early abortion of p->iterate().
19988 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
19989 when grub_partition_iterate() returned with non-zero.
19991 2008-07-03 Pavel Roskin <proski@gnu.org>
19993 * disk/ata.c (grub_ata_pio_write): Check status before writing,
19994 like we do in grub_ata_pio_read().
19995 (grub_ata_readwrite): Always write individual sectors. Fix the
19996 sector count for the remainder.
19997 (grub_ata_write): Enable writing to ATA devices. Correctly
19998 report error for ATAPI devices.
20000 2008-07-02 Pavel Roskin <proski@gnu.org>
20002 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
20005 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
20006 for every read sector, we already increment it for the whole
20007 batch. This fixes reading more than 256 sectors at once.
20009 * util/grub-editenv.c (cmd_info): Cast argument to long
20010 explicitly. ptrdiff_t reduces to int on i386.
20012 * util/grub-editenv.c (main): Be specific which parameter is
20015 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
20016 (memdisk): Make memdisk_orig_addr a pointer.
20018 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
20019 for file offsets, use grub_off_t instead. Fix printf format
20022 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
20023 there. Real unexpected warnings should not drown in the noise
20024 about known problems.
20026 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
20027 grub_disk_addr_t for memory addresses.
20029 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
20030 explicitly to fix a warning.
20032 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
20034 * Makefile.in (MODULE_LDFLAGS): New variable.
20035 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
20036 the linker accepts --build-id=none.
20037 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
20039 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
20041 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
20042 those in Linux XFS code. Provide a way to access 64-bit parent
20044 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
20045 the end of struct grub_xfs_dir_header.
20047 2008-07-02 Bean <bean123ch@gmail.com>
20049 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
20050 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
20051 and GRUB_IEEE1275_FLAG_NO_ANSI.
20053 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
20054 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
20055 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
20057 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
20058 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
20060 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
20061 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
20063 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
20064 esc sequence on non ANSI terminal.
20065 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
20067 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
20070 2008-07-02 Bean <bean123ch@gmail.com>
20072 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
20073 (grub_editenv_SOURCES): New variable.
20074 (pkglib_MODULES): Add loadenv.mod.
20075 (loadenv_mod_SOURCES): New variable.
20076 (loadenv_mod_CFLAGS): Likewise.
20077 (loadenv_mod_LDFLAGS): Likewise.
20079 * include/grub/envblk.h: New file.
20081 * util/envblk.c: New file.
20083 * util/grub-editenv.c: New file.
20085 * commands/loadenv.c: New file.
20087 2008-07-01 Pavel Roskin <proski@gnu.org>
20089 * include/multiboot2.h (struct multiboot_tag_module): Use char,
20090 not unsigned char. This fixes warnings and is consistent with
20093 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
20095 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
20097 * term/tparm.c (analyze): Always set *popcount.
20099 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
20100 cast to fix a warning.
20102 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
20103 cast to suppress a warning.
20105 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
20106 grub_fshelp_read_file() expects.
20108 * fs/fat.c: Fix UUID calculation on big-endian systems. We
20109 write uuid as a 32-bit value in CPU byte order, so declare and
20112 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
20113 long if the format specifier expects it.
20114 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
20115 * partmap/pc.c (pc_partition_map_iterate): Likewise.
20116 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
20117 long to fix a warning.
20118 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
20119 grub_dprintf() arguments to fix warnings.
20121 2008-06-30 Pavel Roskin <proski@gnu.org>
20123 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
20124 install_bsd_part immediately before core.img is embedded or
20125 modified on disk. This fixes core.img verification if core.img
20126 cannot be embedded.
20128 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
20129 core_path to calculate the blocklist.
20130 Patch from Javier Martín <lordhabbit@gmail.com>
20132 2008-06-29 Robert Millan <rmh@aybabtu.com>
20134 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
20135 block to disk block.
20136 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
20137 Patch from Niels Böhm <bitbucket@arcor.de>
20139 2008-06-29 Robert Millan <rmh@aybabtu.com>
20141 * util/update-grub_lib.in (font_path): Search for fonts in
20142 /boot/grub first, which is more likely to be readable (we aren't
20143 deciding where fonts live, just looking for them).
20145 2008-06-26 Pavel Roskin <proski@gnu.org>
20147 * util/biosdisk.c (read_device_map): Don't leave dead map
20148 entries for devices failing stat() check.
20150 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
20151 core_path_dev for the core.img path on the target device.
20153 2008-06-26 Robert Millan <rmh@aybabtu.com>
20155 * disk/fs_uuid.c: New file.
20156 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
20157 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
20158 (fs_uuid_mod_LDFLAGS): New variables.
20159 * include/grub/disk.h (grub_disk_dev_id): Add
20160 `GRUB_DISK_DEVICE_UUID_ID'.
20161 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
20162 implement iterate().
20164 2008-06-26 Robert Millan <rmh@aybabtu.com>
20166 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
20167 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
20168 Linux image includes no initrd.
20170 2008-06-21 Javier Martín <lordhabbit@gmail.com>
20172 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
20173 call to resolve the core image location that effectively appended the
20176 2008-06-21 Robert Millan <rmh@aybabtu.com>
20178 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
20181 * util/grub.d/10_hurd.in: ... to here ...
20182 * util/grub.d/10_linux.in: ... and here.
20184 2008-06-19 Robert Millan <rmh@aybabtu.com>
20186 * kern/main.c (grub_main): Export `prefix' variable immediately
20187 after it has been set by grub_machine_set_prefix().
20189 2008-06-19 Robert Millan <rmh@aybabtu.com>
20191 * commands/search.c (search_label, search_fs_uuid, search_file): Print
20192 search result when not saving to variable, not the other way around.
20193 When saving to variable, abort iteration as soon as a match is found.
20195 2008-06-19 Robert Millan <rmh@aybabtu.com>
20197 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
20198 check for partition that provides /boot/grub. Its logic is flawed,
20199 as it prevents prepare_grub_to_access_device() from being called
20202 2008-06-19 Robert Millan <rmh@aybabtu.com>
20204 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
20205 "insmod" command directly when abstraction modules are needed,
20206 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
20207 since it had already been processed).
20209 2008-06-19 Pavel Roskin <proski@gnu.org>
20211 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
20212 changed. This is needed in case GRUB_LIBDIR changes.
20213 * conf/i386-ieee1275.rmk: Likewise.
20214 * conf/i386-linuxbios.rmk: Likewise.
20215 * conf/i386-pc.rmk: Likewise.
20216 * conf/powerpc-ieee1275.rmk: Likewise.
20218 2008-06-18 Pavel Roskin <proski@gnu.org>
20220 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
20221 kernel_elf_symlist.c to symlist.c for consistency with other
20222 architectures. Update all users.
20223 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
20225 2008-06-18 Robert Millan <rmh@aybabtu.com>
20227 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
20230 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
20231 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
20232 a RAID device, run setup() for all members independently on whether
20233 LVM abstraction is being used.
20234 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
20235 If grub-mkimage has set `*install_dos_part == -2', don't override this
20237 Perform *install_dos_part adjustments independently on whether
20238 we're embedding or not.
20239 Clarify error message when image is too big for embedding.
20240 Remove duplicate *install_dos_part stanza.
20242 2008-06-17 Robert Millan <rmh@aybabtu.com>
20244 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
20245 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
20247 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
20248 values in grub_ofconsole_normal_color and
20249 grub_ofconsole_highlight_color (they're not directly related to
20250 background and foreground).
20251 (grub_ofconsole_setcolorstate): Extract background and foreground
20252 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
20254 2008-06-17 Robert Millan <rmh@aybabtu.com>
20256 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
20257 /boot/grub for the check in last commit, not /boot (they could be
20258 different partitions).
20260 2008-06-16 Robert Millan <rmh@aybabtu.com>
20262 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
20263 asked to setup access for the same partition that provides /boot,
20264 don't bother using UUIDs since our root already has the value we
20267 2008-06-16 Robert Millan <rmh@aybabtu.com>
20269 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
20271 Patch from Sven Mueller <sven@debian.org>.
20273 2008-06-16 Robert Millan <rmh@aybabtu.com>
20275 * util/update-grub.in: Check for $EUID instead of $UID.
20276 Reported by Vincent Zweije.
20278 2008-06-16 Bean <bean123ch@gmail.com>
20280 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
20281 (grub_ext2_read_block): Likewise.
20282 (grub_ext2_read_inode): Likewise.
20283 (grub_ext2_mount): Likewise.
20284 (grub_ext2_close): Likewise.
20285 (grub_ext3_get_journal): Removed.
20287 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
20288 (grub_reiserfs_read_symlink): Likewise.
20289 (grub_reiserfs_mount): Likewise.
20290 (grub_reiserfs_open): Likewise.
20291 (grub_reiserfs_read): Likewise.
20292 (grub_reiserfs_close): Likewise.
20293 (grub_reiserfs_get_journal): Removed.
20295 * fs/fshelp.c (grub_fshelp_read): Removed.
20296 (grub_fshelp_map_block): Likewise.
20298 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
20299 (grub_fshelp_journal): Likewise.
20300 (grub_fshelp_read): Likewise.
20301 (grub_fshelp_map_block): Likewise.
20303 2008-06-16 Pavel Roskin <proski@gnu.org>
20305 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
20306 floating point anymore.
20307 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
20309 2008-06-15 Pavel Roskin <proski@gnu.org>
20311 * commands/ls.c (grub_ls_list_files): Use integer calculations
20312 for human readable format, avoid floating point use.
20313 * kern/misc.c (grub_ftoa): Remove.
20314 (grub_vsprintf): Remove floating point support.
20316 2008-06-15 Robert Millan <rmh@aybabtu.com>
20318 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
20320 Reported by Max Vozeler.
20322 2008-06-15 Robert Millan <rmh@aybabtu.com>
20324 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
20325 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
20327 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
20328 the beginning of the prefix.
20330 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
20331 It is assumed that if we have a memdisk, grub-mkimage has set
20332 grub_prefix to include the "(memdisk)" drive in it.
20334 2008-06-15 Robert Millan <rmh@aybabtu.com>
20336 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
20337 Initialize keyboard controller after registering the terminal, so that
20338 grub_printf() can be called from grub_keyboard_controller_init().
20340 2008-06-15 Robert Millan <rmh@aybabtu.com>
20342 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
20343 extent-btree which is written as big endian on disk.
20344 Reported by Alain Greppin <al@chilibi.org>.
20346 2008-06-14 Robert Millan <rmh@aybabtu.com>
20348 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
20349 * util/i386/pc/grub-install.in (modules): Likewise.
20351 2008-06-13 Pavel Roskin <proski@gnu.org>
20353 * commands/ls.c (grub_ls_list_files): Fix format warnings.
20355 2008-06-13 Bean <bean123ch@gmail.com>
20357 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
20359 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
20361 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
20362 to indicate sparse block.
20364 2008-06-12 Pavel Roskin <proski@gnu.org>
20366 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
20367 number, grub_fshelp_read() does it for us.
20369 * fs/fshelp.c (grub_fshelp_read): New function. Implement
20370 linear disk read with journal translation.
20371 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
20372 * include/grub/fshelp.h: Declare grub_fshelp_read().
20374 2008-06-09 Pavel Roskin <proski@gnu.org>
20376 * fs/minix.c (grub_minix_mount): Handle error reading
20379 2008-06-08 Robert Millan <rmh@aybabtu.com>
20381 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
20382 don't append the RAID prefix afterwards.
20383 Reported by Clint Adams.
20385 2008-06-08 Robert Millan <rmh@aybabtu.com>
20387 Based on description from Pavel:
20388 * kern/disk.c (grub_disk_check_range): Rename to ...
20389 (grub_disk_adjust_range): ... this. Add a comment explaining the
20390 tasks performed by this function.
20392 2008-06-08 Robert Millan <rmh@aybabtu.com>
20394 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
20395 `num_serial' (for consistency with other variables).
20396 (struct grub_ntfs_data): Add `uuid' member.
20397 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
20398 (grub_ntfs_uuid): New function.
20399 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
20401 2008-06-07 Pavel Roskin <proski@gnu.org>
20403 * util/biosdisk.c (open_device): Revert last change to the
20404 function, it broke installation. The sector needs to be
20405 different dependent on which device is opened.
20407 2008-06-06 Robert Millan <rmh@aybabtu.com>
20409 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
20410 rest of GRUB, and breakage doesn't happen if its value were modified.
20412 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
20413 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
20414 a constant (same value).
20415 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
20416 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
20418 2008-06-06 Robert Millan <rmh@aybabtu.com>
20420 * util/biosdisk.c (open_device): Do not modify sector offset when
20421 accessing a partition. kern/disk.c already handles this for us.
20423 2008-06-06 Robert Millan <rmh@aybabtu.com>
20425 * util/grub-emu.c (grub_machine_init): Move code in this function from
20427 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
20428 segfault in case grub_printf() is called).
20430 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
20431 grub_probe. Update all users not to explicitly add it again.
20432 (grub_device): New variable; contains corresponding device for grubdir.
20433 (fs_module, partmap_module, devabstraction_module): Pass
20434 `--device ${grub_device}' to grub_probe to avoid traversing /dev
20437 2008-06-05 Robert Millan <rmh@aybabtu.com>
20439 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
20440 is found, print it (same layout as with labels).
20442 2008-06-04 Robert Millan <rmh@aybabtu.com>
20444 * util/biosdisk.c (get_drive): Rename to ...
20445 (find_grub_drive): ... this. Update all users.
20447 (get_os_disk): Rename to ...
20448 (convert_system_partition_to_system_disk): ... this. Update all users.
20450 (find_drive): Rename to ...
20451 (find_system_device): ... this. Update all users.
20453 2008-06-04 Robert Millan <rmh@aybabtu.com>
20455 * util/biosdisk.c (get_os_disk): Handle IDA devices.
20456 * util/grub-mkdevicemap.c (get_mmc_disk_name)
20457 (make_device_map): Likewise.
20459 2008-06-01 Robert Millan <rmh@aybabtu.com>
20461 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
20462 before dereferencing it.
20464 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
20465 union with fat12/fat16-specific ones. Add some new fields, including
20466 `num_serial' for both versions.
20467 (struct grub_fat_data): Add `uuid' member.
20468 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
20469 names. Initialize `data->uuid' using `num_serial'.
20470 (grub_fat_uuid): New function.
20471 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
20473 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
20474 (grub_reiserfs_uuid): New function.
20475 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
20478 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
20479 (grub_xfs_uuid): New function.
20480 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
20482 2008-06-01 Robert Millan <rmh@aybabtu.com>
20484 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
20485 code that is backward compatible with pre-uuid search command.
20487 2008-05-31 Robert Millan <rmh@aybabtu.com>
20489 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
20490 floppies after everything else, to ensure floppy drive isn't accessed
20491 unnecessarily (patch from Bean).
20493 2008-05-31 Robert Millan <rmh@aybabtu.com>
20495 * commands/search.c (search_label, search_fs_uuid, search_file): Do
20496 not print device names when we were asked to set a variable.
20498 2008-05-31 Robert Millan <rmh@aybabtu.com>
20500 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
20501 using "cursor-on" and "cursor-off" commands (understood at least by
20502 the Open Firmware flavour on OLPC).
20504 2008-05-31 Michael Gorven <michael@gorven.za.net>
20506 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
20507 on and off sequences.
20509 2008-05-31 Robert Millan <rmh@aybabtu.com>
20511 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
20512 * util/update-grub.in: Likewise.
20514 2008-05-30 Pavel Roskin <proski@gnu.org>
20516 * util/biosdisk.c (linux_find_partition): Simplify logic and
20517 make the code more universal. Keep special processing for
20518 devfs, but use a simple rule for all other devices. If the
20519 device ends with a number, append 'p' and the partition number.
20520 Otherwise, append only the partition number.
20522 2008-05-30 Robert Millan <rmh@aybabtu.com>
20524 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
20525 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
20526 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
20527 the `root' parameter to Linux.
20529 2008-05-30 Robert Millan <rmh@aybabtu.com>
20531 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
20532 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
20533 --fs_uuid with --fs-uuid.
20534 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
20535 all filesystems support them).
20537 2008-05-30 Robert Millan <rmh@aybabtu.com>
20539 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
20540 grub_printf() flags, since we're printing in units of 2 bytes.
20542 2008-05-30 Robert Millan <rmh@aybabtu.com>
20544 * util/grub.d/00_header.in: Remove obsolete comment referencing
20545 convert_system_path_to_grub_path().
20546 * util/update-grub.in: Likewise.
20547 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
20548 (convert_system_path_to_grub_path): Add a warning message explaining
20549 that this function is deprecated. Rely on is_path_readable_by_grub()
20550 for the readability checks.
20551 (font_path): Use is_path_readable_by_grub() for the readability
20552 check rather than convert_system_path_to_grub_path().
20554 2008-05-30 Robert Millan <rmh@aybabtu.com>
20556 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
20557 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
20558 converting it first.
20559 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
20560 grub.cfg for access to font file, and afterwards call it again to set
20563 2008-05-30 Robert Millan <rmh@aybabtu.com>
20565 * commands/search.c (options): Add --fs_uuid option.
20566 (search_fs_uuid): New function.
20567 (grub_cmd_search): Fix --set argument passing.
20568 Use search_fs_uuid() when requested via --fs_uuid.
20569 (grub_search_init): Update help message.
20570 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
20571 and redeclare it as an array of 16-bit words.
20572 (grub_ext2_uuid): New function.
20573 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
20574 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
20575 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
20576 (GRUB_DEVICE_BOOT_UUID): New variables.
20577 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
20578 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
20580 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
20581 just assume `root' variable has the right value.
20582 * util/grub.d/10_linux.in: Likewise.
20583 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
20585 (main): Recognise `-t fs_uuid' argument.
20587 2008-05-30 Robert Millan <rmh@aybabtu.com>
20589 * util/biosdisk.c (map): Redefine structure to hold information
20590 about GRUB drive name.
20591 (get_drive): Reimplement without assuming (and verifying) BIOS-like
20593 (call_hook): Remove.
20594 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
20595 member. Assume drive has partitions.
20596 (grub_util_biosdisk_open): Access device names via `.device' struct
20598 (open_device): Likewise.
20599 (find_drive): Likewise.
20600 (read_device_map): Adjust map[] usage to match the new struct
20601 definition. Don't check for duplicates (still possible, but not cheap
20603 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
20604 (make_device_name): Remove assumption of BIOS-like drive names.
20606 2008-05-30 Pavel Roskin <proski@gnu.org>
20608 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
20609 compiling execute.c doesn't need grub_script.tab.h anymore.
20610 (normal/command.c_DEPENDENCIES): Likewise.
20611 (normal/function.c_DEPENDENCIES): Likewise.
20612 * conf/i386-ieee1275.rmk: Likewise.
20613 * conf/i386-linuxbios.rmk: Likewise.
20614 * conf/i386-pc.rmk: Likewise.
20615 * conf/powerpc-ieee1275.rmk: Likewise.
20616 * conf/sparc64-ieee1275.rmk: Likewise.
20618 2008-05-29 Pavel Roskin <proski@gnu.org>
20620 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
20621 when scanning metadata for volume group name.
20623 * include/grub/script.h: Don't include grub_script.tab.h. It's
20624 a generated file, which may only be included from the files with
20625 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
20626 use union YYSTYPE, as the later allows forward declaration.
20627 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
20629 2008-05-29 Robert Millan <rmh@aybabtu.com>
20631 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
20632 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
20633 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
20634 (grub_console_checkkey): Add grub_dprintf() call to report unknown
20637 2008-05-29 Robert Millan <rmh@aybabtu.com>
20639 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
20640 control key combinations.
20642 2008-05-29 Robert Millan <rmh@aybabtu.com>
20644 * util/powerpc/ieee1275/grub-install.in: Move from here ...
20645 * util/ieee1275/grub-install.in: ... to here.
20646 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
20647 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
20648 (grub_install_SOURCES): Likewise.
20650 2008-05-29 Robert Millan <rmh@aybabtu.com>
20652 * fs/affs.c: Update copyright year.
20653 * fs/ext2.c: Likewise.
20654 * fs/fshelp.c: Likewise.
20655 * fs/hfsplus.c: Likewise.
20656 * fs/ntfs.c: Likewise.
20657 * fs/xfs.c: Likewise.
20658 * include/grub/fshelp.h: Likewise.
20659 * util/grub-mkdevicemap.c: Likewise.
20661 2008-05-28 Robert Millan <rmh@aybabtu.com>
20663 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
20664 might need to be fatfs to support some firmware implementations
20667 2008-05-28 Robert Millan <rmh@aybabtu.com>
20669 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
20671 * util/grub-mkdevicemap.c (get_mmc_disk_name)
20672 (make_device_map): Likewise.
20674 2008-05-20 Bean <bean123ch@gmail.com>
20676 * fs/fshelp.c (grub_fshelp_map_block): New function.
20677 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
20678 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
20680 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
20681 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
20682 (grub_fshelp_journal): New structure.
20683 (grub_fshelp_map_block): New function prototype.
20684 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
20685 (grub_fshelp_map_block): Likewise.
20687 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
20688 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
20689 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
20690 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
20691 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
20692 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
20693 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
20694 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
20695 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
20696 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
20697 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
20698 (grub_ext2_sblock): New members for journal support.
20699 (grub_ext3_journal_header): New structure.
20700 (grub_ext3_journal_revoke_header): Likewise.
20701 (grub_ext3_journal_block_tag): Likewise.
20702 (grub_ext3_journal_sblock): Likewise.
20703 (grub_fshelp_node): New members logfile and journal.
20704 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
20705 grub_fshelp_map_block to get real block number.
20706 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
20708 (grub_ext2_read_inode): Likewise.
20709 (grub_ext3_get_journal): New function.
20710 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
20711 (grub_ext2_close): Release memory used by journal.
20713 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
20714 (REISERFS_MAGIC_DESC_BLOCK): New macro.
20715 (grub_reiserfs_transaction_header): Renamed to
20716 grub_reiserfs_description_block, replace field data with real_blocks.
20717 (grub_reiserfs_commit_block): New structure.
20718 (grub_reiserfs_data): New member journal.
20719 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
20721 (grub_reiserfs_read_symlink): Likewise.
20722 (grub_reiserfs_iterate_dir): Likewise.
20723 (grub_reiserfs_open): Likewise.
20724 (grub_reiserfs_read): Likewise.
20725 (grub_reiserfs_get_journal): New function.
20726 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
20727 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
20728 using grub_reiserfs_get_journal.
20729 (grub_reiserfs_close): Release memory used by journal.
20731 * fs/affs.c (grub_affs_read_block): Change block type to
20732 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
20734 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
20736 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
20738 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
20740 * fs/udf.c (grub_udf_read_block): Change block type to
20741 grub_disk_addr_t. Use type cast to avoid warning.
20743 * fs/xfs.c (grub_xfs_read_block): Likewise.
20745 2008-05-16 Christian Franke <franke@computer.org>
20747 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
20748 to ensure that break with ESC will always work.
20749 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
20750 Remove ESC from keyboard queue.
20752 2008-05-16 Christian Franke <franke@computer.org>
20754 * util/biosdisk.c: [__CYGWIN__] Add includes.
20755 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
20756 (get_os_disk): Move variable declarations to OS specific
20757 parts to avoid warning.
20758 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
20759 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
20760 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
20762 * util/getroot.c: [__CYGWIN__] Add includes.
20763 (strip_extra_slashes): Fix "/" case.
20764 [__CYGWIN__] (get_win32_path): New function.
20765 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
20766 [__CYGWIN__] (find_root_device): Disable.
20767 [__CYGWIN__] (get_bootsec_serial): New function.
20768 [__CYGWIN__] (find_cygwin_root_device): Likewise.
20769 [__linux__] (grub_guess_root_device): Add early returns to simplify
20771 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
20772 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
20773 check for Linux only.
20775 2008-05-15 Bean <bean123ch@gmail.com>
20777 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
20778 keyboard hang problem in apple's intel mac.
20780 2008-05-09 Robert Millan <rmh@aybabtu.com>
20782 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
20784 * util/grub-mkdevicemap.c (get_virtio_disk_name)
20785 (make_device_map): Likewise.
20786 Reported by Aurelien Jarno <aurel32@debian.org>
20788 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
20790 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
20791 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
20792 (make_device_map): Output entries for xvd type disks.
20794 2008-05-07 Robert Millan <rmh@aybabtu.com>
20796 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
20798 * util/grub-mkdevicemap.c (get_cciss_disk_name)
20799 (make_device_map): Likewise.
20800 Reported by Roland Dreier <rdreier@cisco.com>
20802 2008-05-07 Robert Millan <rmh@aybabtu.com>
20804 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
20805 grub_strstr() call. Correct a few mistakes in failure path handling.
20807 2008-05-06 Robert Millan <rmh@aybabtu.com>
20809 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
20810 Do not print a trailing slash (therefore, the root directory is an
20812 (convert_system_path_to_grub_path): Do not remove trailing slash
20813 from make_system_path_relative_to_its_root() output.
20815 * util/i386/pc/grub-install.in: Add trailing slash to output from
20816 make_system_path_relative_to_its_root().
20818 2008-05-06 Robert Millan <rmh@aybabtu.com>
20820 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
20821 ensures that output lines aren't intermangled with those sent to
20822 stderr (via grub_util_info()).
20823 * util/grub-probe.c (grub_refresh): Likewise.
20824 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
20826 2008-05-05 Christian Franke <franke@computer.org>
20828 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
20829 Add Cygwin device names.
20830 (get_ide_disk_name) [__CYGWIN__]: Likewise.
20831 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
20832 (check_device): Return error instead of success on empty name.
20833 (make_device_map): Move label inside linux specific code to
20834 prevent compiler warning.
20836 2008-04-30 Robert Millan <rmh@aybabtu.com>
20838 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
20839 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
20841 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
20843 2008-04-29 Robert Millan <rmh@aybabtu.com>
20845 * docs/grub.cfg: New file (example GRUB configuration).
20847 2008-04-26 Robert Millan <rmh@aybabtu.com>
20849 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
20850 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
20851 and `disk/ieee1275/nand.c'.
20853 2008-04-25 Bean <bean123ch@gmail.com>
20855 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
20858 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
20859 change the buffer size to 4096 for cdrom device.
20861 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
20863 (_linux_mod_SOURCES): New variable.
20864 (_linux_mod_CFLAGS): Likewise.
20865 (_linux_mod_LDFLAGS): Likewise.
20866 (linux_mod_SOURCES): Likewise.
20867 (linux_mod_CFLAGS): Likewise.
20868 (linux_mod_LDFLAGS): Likewise.
20869 (nand_mod_SOURCES): Likewise.
20870 (nand_mod_CFLAGS): Likewise.
20871 (nand_mod_LDFLAGS): Likewise.
20873 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
20874 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
20875 type property. (nand device in olpc don't have this property)
20877 * include/grub/disk.h (grub_disk_dev_id): New macro
20878 GRUB_DISK_DEVICE_NAND_ID.
20880 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
20881 function prototype.
20882 (grub_rescue_cmd_initrd): Likewise.
20884 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
20885 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
20886 ofw_cif_handler and ofw_idt, adjust padding number.
20888 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
20889 GRUB_MACHINE_IEEE1275 is defined.
20891 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
20892 Use NESTED_FUNC_ATTR attribute on the hook parameter.
20894 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
20895 on nested function heap_init.
20896 (grub_upper_mem): New variable for i386-ieee1275.
20897 (grub_get_extended_memory): New function for i386-ieee1275.
20898 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
20900 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
20901 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
20904 * loader/i386/ieee1275/linux.c: New file.
20906 * loader/i386/ieee1275/linux_normal.c: New file.
20908 * disk/ieee1275/nand.c: New file.
20910 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
20912 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
20914 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
20916 2008-04-18 Robert Millan <rmh@aybabtu.com>
20918 Restructures early code path on ieee1275 to unify grub_main() as
20919 the first C function that is executed in every platform.
20921 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
20922 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
20924 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
20925 * kern/ieee1275/cmain.c (cmain): Rename to ...
20926 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
20927 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
20930 2008-04-18 Robert Millan <rmh@aybabtu.com>
20932 * util/update-grub.in: Fix syntax error when setting
20933 `GRUB_PRELOAD_MODULES'.
20934 Reported by Stephane Chazelas <stephane@artesyncp.com>
20936 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
20938 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
20939 section into account, newer toolchains generate unique build ids
20940 * configure.ac: remove the test for --build-id=none acceptance,
20941 we want build ids to be preserved
20942 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
20943 far from other sections don't cause the raw binary images grow
20946 2008-04-15 Robert Millan <rmh@aybabtu.com>
20948 * disk/lvm.c: Update copyright year.
20949 * kern/misc.c: Likewise.
20951 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
20953 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
20954 there is no memory left for physical volume name.
20956 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
20958 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
20959 volume name mapping to support bigger than 9 character names properly.
20961 2008-04-13 Robert Millan <rmh@aybabtu.com>
20963 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
20964 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
20966 2008-04-13 Christian Franke <franke@computer.org>
20968 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
20969 to create a floppy emulation boot CD when non emulation mode
20971 Enable Joliet CD filesystem extension.
20973 2008-04-13 Robert Millan <rmh@aybabtu.com>
20975 * kern/misc.c (grub_strncat): Fix off-by-one error.
20976 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
20978 * kern/env.c (grub_env_context_close): Clear current context, not
20980 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
20982 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
20984 2008-04-13 Robert Millan <rmh@aybabtu.com>
20986 Improve robustness when handling LVM.
20988 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
20989 (and leave `*p' unmodified).
20990 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
20992 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
20993 iterating through it.
20994 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
20996 (grub_lvm_scan_device): Check the return value (and fail gracefully
20997 when due) on each grub_lvm_getvalue() or grub_strstr() call.
20998 Don't assume `vg->pvs != NULL' when iterating through it.
21000 2008-04-13 Robert Millan <rmh@aybabtu.com>
21002 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
21003 * genmk.rb (partmap): New variable.
21004 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
21005 (#{partmap}): New target rule.
21006 * genpartmaplist.sh: New file.
21007 * Makefile.in (pkglib_DATA): Add partmap.lst.
21008 (partmap.lst): New target rule.
21009 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
21010 modules (including all partition maps), instead of preloading them.
21012 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
21014 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
21015 `linux-boot-prober' (if installed) to detect other operating
21016 systems which are installed on the computer and add them to
21018 * conf/common.rmk: Build and install 30_os-prober.
21020 2008-04-12 Robert Millan <rmh@aybabtu.com>
21022 * kern/powerpc/ieee1275/init.c: Move from here ...
21023 * kern/ieee1275/init.c: ... to here. Update all users.
21025 * kern/powerpc/ieee1275/cmain.c: Move from here ...
21026 * kern/ieee1275/cmain.c: ... to here. Update all users.
21028 * kern/powerpc/ieee1275/openfw.c: Move from here ...
21029 * kern/ieee1275/openfw.c: ... to here. Update all users.
21031 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
21032 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
21034 2008-04-10 Pavel Roskin <proski@gnu.org>
21036 * configure.ac: Always use "_cv_" in cache variables for
21037 compatibility with Autoconf 2.62.
21039 2008-04-07 Robert Millan <rmh@aybabtu.com>
21041 Revert grub/machine/init.h addition by Pavel (since it breaks on
21042 i386-ieee1275 and others):
21043 * util/i386/pc/misc.c: Remove grub/machine/init.h.
21044 * util/powerpc/ieee1275/misc.c: Likewise.
21046 2008-04-07 Robert Millan <rmh@aybabtu.com>
21048 * util/grub-probe.c (probe): Improve error message.
21050 2008-04-07 Robert Millan <rmh@aybabtu.com>
21052 * util/biosdisk.c (read_device_map): Skip devices that don't exist
21053 (this prevents the presence of a bogus entry from ruining the whole
21056 2008-04-06 Pavel Roskin <proski@gnu.org>
21058 * util/biosdisk.c: Include grub/util/biosdisk.h.
21059 * util/grub-fstest.c (execute_command): Make static.
21060 * util/grub-mkdevicemap.c (check_device): Likewise.
21061 * util/i386/pc/misc.c: Include grub/machine/init.h.
21062 * util/powerpc/ieee1275/misc.c: Likewise.
21063 * util/lvm.c: Include grub/util/lvm.h.
21064 * util/misc.c: Include grub/kernel.h, grub/misc.h and
21066 * util/raid.c: Include grub/util/raid.h.
21067 (grub_util_getdiskname): Make static.
21069 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
21070 grub_hostfs_fini(), as they are called from grub_init_all() and
21071 grub_fini_all() respectively. This fixes an infinite loop in
21072 grub-fstest due to double registration of hostfs.
21073 Reported by Christian Franke <Christian.Franke@t-online.de>
21075 2008-04-05 Pavel Roskin <proski@gnu.org>
21077 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
21078 all 8 functions. Otherwise, probe function 0 only.
21080 2008-04-04 Pavel Roskin <proski@gnu.org>
21082 * commands/lspci.c (grub_lspci_iter): Print the bus number
21085 * commands/lspci.c (grub_pci_classes): Fix typos.
21086 (grub_lspci_iter): Don't print func twice. Print vendor ID
21087 before device ID, as it's normally done.
21089 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21090 Fix signedness warnings.
21091 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
21093 * util/ieee1275/get_disk_name.c: Include config.h so that
21094 _GNU_SOURCE is defined and getline() is declared. Mark an
21095 unused argument as such. Fix a signedness warning.
21097 2008-04-02 Pavel Roskin <proski@gnu.org>
21099 * genkernsyms.sh.in: Use more robust assignments for CC and
21100 srcdir. Quote srcdir.
21101 * gensymlist.sh.in: Likewise. Assert at the compile time that
21102 the symbol table is not empty.
21104 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
21105 * fs/cpio.c (grub_cpio_read): Likewise.
21107 2008-04-01 Pavel Roskin <proski@gnu.org>
21109 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
21110 * disk/host.c (grub_host_open): Likewise.
21111 * disk/loopback.c (grub_loopback_open): Likewise.
21112 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
21113 disk->id as in disk/host.c, not a multi-character constant.
21115 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
21116 later is obsolete, potentially dangerous and sets a bad example.
21117 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
21118 * util/misc.c (grub_util_get_image_size): Likewise.
21120 * disk/loopback.c (options): Improve help for "--partitions".
21122 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
21123 options to align them with the short options, e.g. "echo -e".
21125 2008-03-31 Bean <bean123ch@gmail.com>
21127 * video/reader/png.c (grub_png_data): New member is_16bit and
21129 (grub_png_decode_image_header): Detect 16 bit png image.
21130 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
21131 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
21132 (grub_video_reader_png): Release memory occupied by image_data.
21134 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
21136 (grub_nfs_mount): Skip the test for sector per cluster.
21138 * include/grub/ntfs.h (MAX_SPC): Removed.
21140 2008-03-31 Bean <bean123ch@gmail.com>
21142 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
21143 (grub_probe_SOURCES): Add fs/afs.c.
21144 (grub_fstest_SOURCES): Likewise.
21145 (afs_mod_SOURCES): New variable.
21146 (afs_mod_CFLAGS): Likewise.
21147 (afs_mod_LDFLAGS): Likewise.
21149 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
21150 (grub_emu_SOURCES): Likewise.
21152 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21154 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21156 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
21158 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21160 * fs/afs.c: New file.
21162 2008-03-30 Pavel Roskin <proski@gnu.org>
21164 * disk/host.c: Include grub/misc.h to fix a warning.
21165 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
21166 warnings about implicit declarations.
21168 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
21170 * include/grub/i386/loader.h: Change declaration of
21171 grub_linux_boot() to match what grub_loader_set() expects.
21172 * util/getroot.c (grub_guess_root_device): Return const char* to
21174 * util/grub-probe.c (probe): Fix a warning about uninitialized
21175 abstraction_name variable.
21176 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
21177 second argument as unused to fix a warning.
21179 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
21180 missing grub_error() call.
21182 * util/update-grub_lib.in: Define datarootdir, since Autoconf
21183 2.60 and newer uses it to define datadir.
21185 * commands/sleep.c: Fix warning about implicit declaration.
21186 * disk/memdisk.c: Likewise.
21187 * loader/aout.c: Likewise.
21188 * loader/i386/bsd_normal.c: Likewise.
21189 * util/grub-probe.c: Likewise.
21191 * commands/i386/cpuid.c (has_longmode): Make static.
21192 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
21193 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
21195 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
21196 GDT. This is more robust, as %ds can change.
21197 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
21198 calling real_to_prot().
21199 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
21201 2008-03-28 Pavel Roskin <proski@gnu.org>
21203 * kern/i386/pc/startup.S: Assert that uncompressed functions
21204 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
21205 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
21206 code, as they push parts of the code (error handlers) beyond
21207 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
21208 code as correctness and size.
21210 2008-03-28 Pavel Roskin <proski@gnu.org>
21212 * kern/i386/pc/startup.S
21213 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
21214 data block address to the real mode, keep offset minimal. This
21215 works around a bug in AWARD BIOS on old Athlon systems, which
21216 makes CD detection hang.
21218 2008-03-26 Pavel Roskin <proski@gnu.org>
21220 * normal/color.c (grub_parse_color_name_pair): Make `name' a
21222 * include/grub/normal.h: Add grub_parse_color_name_pair()
21225 2008-03-24 Bean <bean123ch@gmail.com>
21227 * disk/i386/pc/biosdisk.c (cd_start): Removed.
21228 (cd_count): Removed.
21229 (cd_drive): New variable.
21230 (grub_biosdisk_get_drive): Don't check for (cdN) device.
21231 (grub_biosdisk_call_hook): Likewise.
21232 (grub_biosdisk_iterate): Change cdrom detection method.
21233 (grub_biosdisk_open): Replace cd_start with cd_drive.
21234 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
21235 detect cdrom device.
21237 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
21239 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
21240 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
21241 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
21242 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
21243 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
21244 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
21245 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
21246 (grub_biosdisk_cdrp): New structure.
21247 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
21249 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
21251 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
21254 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
21257 2008-03-20 Robert Millan <rmh@aybabtu.com>
21259 Remove 2 TiB limit in ata.mod.
21260 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
21261 (grub_ata_dumpinfo): Print sector count with 0x%llx.
21262 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
21263 grub_uint64_t instead of grub_uint32_t.
21265 2008-03-05 Bean <bean123ch@gmail.com>
21267 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
21268 (grub_multiboot): Set boot device.
21270 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
21272 2008-03-02 Bean <bean123ch@gmail.com>
21274 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
21277 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
21279 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
21282 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
21285 * docs/fdl.texi: New file.
21287 * docs/mdate-sh: New file. Copied from gnulib.
21288 * docs/texinfo.tex: Likewise.
21290 * config.guess: Updated from gnulib.
21291 * install-sh: Likewise.
21293 2008-02-28 Robert Millan <rmh@aybabtu.com>
21295 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
21296 (aout_mod_SOURCES): New variable.
21297 (aout_mod_CFLAGS): Likewise.
21298 (aout_mod_LDFLAGS): Likewise.
21300 * conf/i386-ieee1275.rmk: Likewise.
21302 2008-02-28 Robert Millan <rmh@aybabtu.com>
21304 * util/update-grub.in: Reorganise terminal validity check. Accept
21305 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
21306 Based on suggestion by Franklin PIAT.
21308 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
21310 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
21312 * util/getroot.c (grub_util_check_block_device): New function that
21313 returns the given argument if it is a block device and returns NULL else.
21314 * util/grub-probe.c (argument_is_device): New variable.
21315 (probe): Promote device_name from a variable to an argument. Receive
21316 device_name from grub_util_check_block_device() if path is NULL and from
21317 grub_guess_root_device() else. Do not free() device_name anymore.
21318 (options): Introduce new parameter '-d, --device'.
21319 (main): Add description of the new parameter to the help screen.
21320 Rename path variable to argument. Set argument_is_device if the '-d'
21321 option is given. Pass argument to probe() depending on
21322 argument_is_device.
21324 2008-02-24 Bean <bean123ch@gmail.com>
21326 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
21327 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
21328 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
21329 (GRUB_ISO9660_VOLDESC_PART): Likewise.
21330 (GRUB_ISO9660_VOLDESC_END): Likewise.
21331 (grub_iso9660_primary_voldesc): New member escape.
21332 (grub_iso9660_data): New member joliet.
21333 (grub_iso9660_convert_string): New function.
21334 (grub_iso9660_mount): Detect joliet extension.
21335 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
21336 (grub_iso9660_iso9660_label): Likewise.
21338 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
21339 (grub_setup_SOURCES): Add fs/udf.c.
21340 (grub_fstest_SOURCES): Likewise.
21341 (udf_mod_SOURCES): New variable.
21342 (udf_mod_CFLAGS): Likewise.
21343 (udf_mod_LDFLAGS): Likewise.
21345 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
21346 (grub_emu_SOURCES): Likewise.
21348 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21350 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21352 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
21354 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21356 * fs/udf.c: New file.
21358 2008-02-24 Robert Millan <rmh@aybabtu.com>
21360 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
21361 (normal/lexer.c_DEPENDENCIES): New variables.
21362 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
21363 (normal/lexer.c_DEPENDENCIES): Likewise.
21364 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
21365 (normal/lexer.c_DEPENDENCIES): Likewise.
21366 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
21367 (normal/lexer.c_DEPENDENCIES): Likewise.
21368 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
21369 (normal/lexer.c_DEPENDENCIES): Likewise.
21370 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
21371 (normal/lexer.c_DEPENDENCIES): Likewise.
21373 2008-02-23 Robert Millan <rmh@aybabtu.com>
21375 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
21376 since they were intended to be in hex. This didn't break previously
21377 because of a bug in gpt_partition_map_iterate() (see below).
21379 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
21380 when checking the validity of GPT header.
21381 Remove `partno', since it always provides the same information as `i'.
21383 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
21385 * include/grub/efi/time.h: Fix a wrong comment.
21387 2008-02-19 Pavel Roskin <proski@gnu.org>
21389 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
21392 2008-02-19 Bean <bean123ch@gmail.com>
21394 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
21395 (aout_mod_SOURCES): New variable.
21396 (aout_mod_CFLAGS): Likewise.
21397 (aout_mod_LDFLAGS): Likewise.
21398 (_bsd_mod_SOURCES): New variable.
21399 (_bsd_mod_CFLAGS): Likewise.
21400 (_bsd_mod_LDFLAGS): Likewise.
21401 (bsd_mod_SOURCES): New variable.
21402 (bsd_mod_CFLAGS): Likewise.
21403 (bsd_mod_LDFLAGS): Likewise.
21405 * include/grub/aout.h: New file.
21407 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
21409 * include/grub/i386/bsd.h: New file.
21411 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
21414 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
21415 function is called, so that it's possible to change it inside the hook.
21416 (grub_elf64_load): Likewise.
21417 (grub_elf_file): Don't close the file if elf header is not found.
21418 (grub_elf_close): Close the file if grub_elf_file fails (The new
21419 grub_elf_file won't close it).
21420 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
21421 (grub_elf64_size): Likewise.
21423 * kern/i386/loader.S (grub_unix_real_boot): New function.
21425 * loader/aout.c: New file.
21427 * loader/i386/bsd.c: New file.
21429 * loader/i386/bsd_normal.c: New file.
21431 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
21433 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
21434 can test other formats.
21436 2008-02-19 Robert Millan <rmh@aybabtu.com>
21438 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
21439 (grub_gpt_partition_type_empty): Redefine with macro from
21440 `<grub/gpt_partition.h>'.
21441 (gpt_partition_map_iterate): Adjust partition type comparison.
21443 Export `entry' as partmap-specific `part.data' struct.
21444 (grub_gpt_header, grub_gpt_partentry): Move from here ...
21446 * include/grub/gpt_partition.h (grub_gpt_header)
21447 (grub_gpt_partentry): ... to here (new file).
21449 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
21451 (grub_gpt_partition_type_bios_boot): New const variable, defined
21452 with macro from `<grub/gpt_partition.h>'.
21454 (setup): Replace `first_start' with `embed_region', which keeps
21455 track of the embed region (and is partmap-agnostic).
21457 Replace find_first_partition_start() with find_usable_region(),
21458 which finds a usable region for embedding using partmap-specific
21459 knowledge (supports PC/MSDOS and GPT).
21461 Fix all assumptions that the embed region start at sector 1, using
21462 `embed_region.start' from now on. Similarly, use `embed_region.end'
21463 rather than `first_start' to calculate available size.
21465 In grub_util_info() message, replace "into after the MBR" with an
21466 indication of the specific sector our embed region starts at.
21468 2008-02-19 Robert Millan <rmh@aybabtu.com>
21470 * DISTLIST: Replace `commands/ieee1275/halt.c' and
21471 `commands/ieee1275/reboot.c' with `commands/halt.c' and
21472 `commands/reboot.c'.
21473 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
21474 (halt_mod_SOURCES): Likewise.
21475 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
21476 (halt_mod_SOURCES): Likewise.
21478 2008-02-17 Christian Franke <franke@computer.org>
21480 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
21482 2008-02-17 Robert Millan <rmh@aybabtu.com>
21484 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
21485 set `first_start' to 0 for non-PC/MSDOS partition maps.
21487 2008-02-16 Robert Millan <rmh@aybabtu.com>
21489 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
21490 do not assume partition map is PC/MSDOS before performing checks that
21491 are specific to that layout.
21493 2008-02-13 Robert Millan <rmh@aybabtu.com>
21495 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
21496 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
21497 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
21499 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
21501 * configure.ac: Only a cosmetic change on the handling of
21502 -fno-stack-protector.
21504 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
21506 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
21507 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
21509 (grub_install_SOURCES): Add halt.mod and reboot.mod.
21510 (halt_mod_SOURCES): New variable.
21511 (halt_mod_CFLAGS): Likewise.
21512 (halt_mod_LDFLAGS): Likewise.
21513 (reboot_mod_SOURCES): Likewise.
21514 (reboot_mod_CFLAGS): Likewise.
21515 (reboot_mod_LDFLAGS): Likewise.
21517 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
21518 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
21520 (halt_mod_SOURCES): Likewise.
21521 (reboot_mod_SOURCES): Likewise.
21523 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
21524 commands/i386/pc/reboot.c by commands/reboot.c.
21525 (reboot_mod_SOURCES): Likewise.
21527 * commands/i386/pc/reboot.c: merge this file ...
21529 * commands/ieee1275/reboot.c: ... and this file ...
21531 * commands/reboot.c: ... to this file.
21532 Add some precompiler directive to include the correct header for
21535 * commands/ieee1275/halt.c: move this file ...
21537 * commands/halt.c: ... to here.
21538 Add some precompiler directive to include the correct header for
21541 * include/grub/efi/efi.h (grub_reboot): New function declaration.
21542 (grub_halt): Likewise.
21544 * kern/efi/efi.c (grub_reboot): New function.
21545 (grub_halt): Likewise.
21547 2008-02-12 Robert Millan <rmh@aybabtu.com>
21549 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
21550 /dev (like it is done for /dev/mapper). This doesn't provide support
21551 for EVMS, but at least it is now easy to identify the problem when it
21554 2008-02-11 Robert Millan <rmh@aybabtu.com>
21556 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
21557 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
21558 comparing it with -1, not 0.
21560 2008-02-10 Robert Millan <rmh@aybabtu.com>
21562 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
21564 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21565 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21567 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
21568 `disk/lvm.c' to the end of the list.
21569 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
21570 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21572 2008-02-10 Robert Millan <rmh@aybabtu.com>
21574 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
21575 grub_print_error() instead. This will let user know why we're entering
21577 Based on suggestions from Sam Morris.
21579 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
21581 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
21582 on remaining N args, instead of "--" arg N times.
21584 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
21586 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
21587 (fill_with_default_glyph): Changed to use unknown_glyph for fill
21588 pattern for unknown glyphs.
21590 2008-02-09 Robert Millan <rmh@aybabtu.com>
21592 * configure.ac: Probe for `help2man'.
21593 * Makefile.in (builddir): New variable.
21594 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
21595 or otherwise add a few flags/options to it.
21596 (install-local): For every executable utility or script that is
21597 installed, invoke $(HELP2MAN) to install a manpage based on --help
21600 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
21601 that it doesn't prevent --help from working in build tree.
21603 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
21604 with `bug-grub@gnu.org'.
21605 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
21606 * util/update-grub.in (usage): New function.
21607 Implement proper argument check, with support for --help and --version
21608 (as well as existing -y).
21610 2008-02-09 Christian Franke <franke@computer.org>
21612 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
21613 avoid overwriting previous output.
21614 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
21616 2008-02-09 Robert Millan <rmh@aybabtu.com>
21618 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
21621 2008-02-09 Robert Millan <rmh@aybabtu.com>
21623 * commands/sleep.c: New file.
21624 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
21625 (sleep_mod_SOURCES): New variable.
21626 (sleep_mod_CFLAGS): Likewise.
21627 (sleep_mod_LDFLAGS): Likewise.
21629 2008-02-09 Robert Millan <rmh@aybabtu.com>
21631 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
21632 situations in which we can deduce the RAID size and the superblock
21635 2008-02-09 Robert Millan <rmh@aybabtu.com>
21637 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
21638 and return a grub_diskmemberlist_t composed of LVM physical volumes.
21639 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
21641 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
21642 and return a grub_diskmemberlist_t composed of physical array members.
21643 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
21645 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
21647 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
21648 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
21649 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
21651 * util/grub-probe.c (probe): Move partmap probing code from here ...
21652 (probe_partmap): ... to here.
21653 (probe): Use probe_partmap() once for the disk we're probing, and
21654 additionally, when such disk contains a memberlist() struct member,
21655 once for each disk that is contained in the structure returned by
21658 2008-02-09 Robert Millan <rmh@aybabtu.com>
21660 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
21661 environment variable to 'all' in order to obtain debug output from
21663 * util/i386/pc/grub-setup.c (main): Likewise.
21665 2008-02-08 Robert Millan <rmh@aybabtu.com>
21667 * disk/raid.c (grub_raid_scan_device): Check for
21668 `array->device[sb.this_disk.number]' rather than for
21669 `array->device[sb.this_disk.number]->name', since the latter is not
21670 guaranteed to be accessible.
21672 2008-02-08 Robert Millan <rmh@aybabtu.com>
21674 * disk/raid.c: Update copyright.
21675 * fs/cpio.c: Likewise.
21676 * include/grub/raid.h: Likewise.
21677 * loader/i386/pc/multiboot.c: Likewise.
21678 * util/hostfs.c: Likewise.
21680 2008-02-08 Robert Millan <rmh@aybabtu.com>
21682 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
21683 to a grub_disk_t array.
21684 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
21686 (grub_raid_scan_device): Replace `device[x].name' accesses with
21687 `device[x]->name'. Simplify initialization of `array->device[x]'.
21689 2008-02-08 Robert Millan <rmh@aybabtu.com>
21691 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
21692 grub_dprintf() calls.
21693 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
21696 2008-02-07 Christian Franke <franke@computer.org>
21698 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
21699 instead of fseek and ftell to support large files.
21700 (grub_hostfs_read): Likewise.
21702 2008-02-07 Robert Millan <rmh@aybabtu.com>
21704 Patch from Jeroen Dekkers.
21705 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
21706 failure, since successfully reading all array members might not be
21709 2008-02-06 Robert Millan <rmh@aybabtu.com>
21711 * util/grub-probe.c (probe): Simplify partmap probing (with the
21712 assumption that the first word up to the underscore equals to
21715 2008-02-06 Christian Franke <franke@computer.org>
21717 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
21718 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
21719 last block of a cpio or tar stream.
21720 Check for "TRAILER!!!" instead of any empty data
21721 block to detect last block of a cpio stream.
21722 (grub_cpio_dir): Fix constness of variable np.
21723 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
21724 cpio or tar trailer is detected. This fixes a crash
21725 on open of a non existing file.
21727 2008-02-05 Bean <bean123ch@gmail.com>
21729 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
21731 (grub_multiboot_load_elf64): Likewise.
21732 (grub_multiboot): Initialize mbi structure.
21734 * util/grub-fstest.c: Don't include unused header file script.h.
21736 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
21738 (grub_fstest_SOURCES): Likewise.
21740 2008-02-05 Robert Millan <rmh@aybabtu.com>
21742 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
21743 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
21744 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
21745 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
21747 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
21748 (translation_table): Replace hardcoded values with macros
21749 provided by `<grub/term.h>'.
21751 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
21752 (keyboard_map): Correct/add a few values, with macros provided
21753 by `<grub/term.h>'.
21754 (keyboard_map_shift): Zero values that don't differ from their
21755 `keyboard_map' equivalents.
21756 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
21757 Discard the second scan code that is always sent by Caps lock.
21758 Only use `keyboard_map_shift' when it provides a non-zero value,
21759 otherwise fallback to `keyboard_map'.
21761 2008-02-04 Bean <bean123ch@gmail.com>
21763 * Makefile.in (enable_grub_fstest): New variable.
21765 * conf/common.rmk (grub_fstest_init.lst): New rule.
21766 (grub_fstest_init.h): Likewise.
21767 (grub_fstest_init.c): Likewise.
21768 (util/grub-fstest.c_DEPENDENCIES): New variable.
21769 (grub_fstest_SOURCES): Likewise.
21771 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
21773 * util/grub-fstest.c: New file.
21775 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
21777 Make grub-setup handle a separate root device.
21779 * util/i386/pc/grub-setup.c (setup): Always open the root device,
21780 so that the root device can be compared with the destination
21782 When embedding the core image, if the root and destination devices
21783 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
21785 When not embedding, set ROOT_DRIVE to 0xFF.
21787 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
21789 Add support for having a grub directory in a different drive. This
21790 is still only the data handling part.
21792 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
21793 (codestart): Save %dh in GRUB_ROOT_DRIVE.
21794 (grub_root_drive): New variable.
21796 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
21797 instead of GRUB_BOOT_DRIVE to construct a device name. Set
21798 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
21801 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
21803 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
21805 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
21807 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
21808 is bogus, because PXE booting does not specify any drive
21811 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
21812 am not sure if this is really correct.
21814 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
21815 is always identical to the boot drive when booting from a CD.
21817 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
21819 (root_drive): New variable.
21820 (real_start): Unconditionally set %dh to ROOT_DRIVE.
21821 (setup_sectors): Push %dx right after popping it, because %dh will
21823 (copy_buffer): Restore %dx.
21825 2008-02-03 Robert Millan <rmh@aybabtu.com>
21827 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
21828 use `cdboot.img' for cdrom images.
21830 2008-02-03 Robert Millan <rmh@aybabtu.com>
21832 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
21833 only setup gfxterm when `font' command has succeeded.
21835 2008-02-03 Robert Millan <rmh@aybabtu.com>
21837 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
21838 (grub_rescue_cmd_multiboot_loader)
21839 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
21841 2008-02-03 Pavel Roskin <proski@gnu.org>
21843 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
21844 %edx and %esi from stack only after grub_gate_a20() is called.
21845 grub_gate_a20() clobbers %edx.
21847 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
21849 * configure.ac (AC_INIT): Bumped to 1.96.
21851 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
21852 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
21853 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
21854 video/readers/png.c.
21856 2008-02-03 Bean <bean123ch@gmail.com>
21858 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
21859 (cdboot_img_SOURCES): New variable.
21860 (cdboot_img_ASFLAGS): New variable.
21861 (cdboot_img_LDFLAGS): New variable.
21863 * boot/i386/pc/cdboot.S: New file.
21865 * disk/i386/pc/biosdisk.c (cd_start): New variable.
21866 (cd_count): Likewise.
21867 (grub_biosdisk_get_drive): Add support for cd device.
21868 (grub_biosdisk_call_hook): Likewise.
21869 (grub_biosdisk_iterate): Likewise.
21870 (grub_biosdisk_open): Likewise.
21871 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
21872 (grub_biosdisk_rw): Support reading from cd device.
21873 (GRUB_MOD_INIT): Iterate cd devices.
21875 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
21876 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
21877 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
21879 * kern/i386/pc/init.c (make_install_device): Check for cd device.
21881 2008-02-02 Robert Millan <rmh@aybabtu.com>
21883 * commands/read.c: New file.
21884 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
21885 (read_mod_SOURCES): New variable.
21886 (read_mod_CFLAGS): Likewise.
21887 (read_mod_LDFLAGS): Likewise.
21889 2008-02-02 Robert Millan <rmh@aybabtu.com>
21891 * normal/main.c (grub_normal_execute): Check for `menu->size' when
21892 determining whether menu has to be displayed.
21894 2008-02-02 Marco Gerards <marco@gnu.org>
21896 * bus/pci.c: New file.
21898 * include/grub/pci.h: Likewise.
21900 * include/grub/i386/pc/pci.h: Likewise.
21902 * commands/lspci.c: Likewise.
21904 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
21906 (pci_mod_SOURCES): New variable.
21907 (pci_mod_CFLAGS): Likewise.
21908 (pci_mod_LDFLAGS): Likewise.
21909 (lspci_mod_SOURCES): Likewise.
21910 (lspci_mod_CFLAGS): Likewise.
21911 (lspci_mod_LDFLAGS): Likewise.
21913 2008-02-02 Bean <bean123ch@gmail.com>
21915 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
21916 (grub_ufs_get_file_block): Fix indirect block calculation problem.
21918 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
21919 (grub_xfs_btree_node): New structure.
21920 (grub_xfs_btree_root): New structure.
21921 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
21922 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
21923 (GRUB_XFS_EXTENT_BLOCK): Likewise.
21924 (GRUB_XFS_EXTENT_SIZE): Likewise.
21925 (grub_xfs_read_block): Support btree format type.
21926 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
21927 Use directory block as basic unit.
21929 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
21931 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
21932 __attribute__ ((__regparm__ (1))).
21934 2008-02-01 Robert Millan <rmh@aybabtu.com>
21936 Correct a mistake in previous commit.
21938 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
21940 (normal/command.c_DEPENDENCIES): New variable.
21942 2008-02-01 Robert Millan <rmh@aybabtu.com>
21944 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
21946 (normal/command.c_DEPENDENCIES): New variable.
21947 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
21948 * conf/i386-ieee1275.rmk: Likewise.
21949 * conf/i386-linuxbios.rmk: Likewise.
21950 * conf/i386-pc.rmk: Likewise.
21951 * conf/sparc64-ieee1275.rmk: Likewise.
21952 * conf/powerpc-ieee1275.rmk: Likewise.
21953 (grub_emu_SOURCES): Add `fs/fshelp.c'.
21955 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
21957 2008-02-01 Robert Millan <rmh@aybabtu.com>
21959 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
21960 call at beginning of function.
21962 2008-01-31 Pavel Roskin <proski@gnu.org>
21964 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
21965 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
21966 (grub_mkrescue_SOURCES): Likewise.
21967 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
21969 2008-01-30 Robert Millan <rmh@aybabtu.com>
21971 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
21972 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
21973 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
21974 (grub_probe_SOURCES): ... to here.
21976 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
21977 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
21978 * conf/i386-ieee1275.rmk: Likewise.
21979 * conf/i386-linuxbios.rmk: Likewise.
21980 * conf/powerpc-ieee1275.rmk: Likewise.
21982 2008-01-30 Tristan Gingold <gingold@free.fr>
21984 * kern/rescue.c: Silently accept empty lines.
21986 2008-01-29 Bean <bean123ch@gmail.com>
21988 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
21989 (real_code_2): Code cleanup and change comment style.
21990 (move_memory): Avoid using 32-bit address mode.
21992 2008-01-29 Bean <bean123ch@gmail.com>
21994 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
21995 (png_mod_SOURCES): New variable.
21996 (png_mod_CFLAGS): Likewise.
21997 (png_mod_LDFLAGS): Likewise.
21999 * video/readers/png.c: New file.
22001 2008-01-28 Robert Millan <rmh@aybabtu.com>
22003 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
22004 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
22005 `ifndef GRUB_MOD_GAP' hack.
22006 * util/elf/grub-mkimage.c (add_segments): Likewise.
22008 2008-01-27 Robert Millan <rmh@aybabtu.com>
22010 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
22011 `GRUB_MOD_GAP' for platforms in which it's not defined.
22012 * util/elf/grub-mkimage.c (add_segments): Likewise.
22014 2008-01-27 Robert Millan <rmh@aybabtu.com>
22016 Get grub-emu to build again (including parallel builds).
22018 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
22020 (util/grub-emu.c_DEPENDENCIES): ... this, ...
22021 (normal/execute.c_DEPENDENCIES): ... this, ...
22022 (grub-emu_DEPENDENCIES): ... and this.
22024 * conf/i386-efi.rmk: Likewise.
22025 * conf/i386-linuxbios.rmk: Likewise.
22026 * conf/i386-ieee1275.rmk: Likewise.
22027 * conf/powerpc-ieee1275.rmk: Likewise.
22028 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
22030 2008-01-27 Robert Millan <rmh@aybabtu.com>
22032 * NEWS: Add a few items.
22034 2008-01-27 Robert Millan <rmh@aybabtu.com>
22036 Fix parallel builds with grub-emu. Based on earlier commit for
22037 grub-probe and grub-setup.
22039 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
22040 (util/grub-emu.c_DEPENDENCIES): ... this.
22041 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
22042 (util/grub-emu.c_DEPENDENCIES): ... this.
22043 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
22044 (util/grub-emu.c_DEPENDENCIES): ... this.
22045 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
22046 (util/grub-emu.c_DEPENDENCIES): ... this.
22047 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
22048 (util/grub-emu.c_DEPENDENCIES): ... this.
22050 2008-01-27 Pavel Roskin <proski@gnu.org>
22052 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
22053 to create a gap between _end and the modules added to the image
22054 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
22055 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
22056 * util/elf/grub-mkimage.c (add_segments): Likewise.
22058 2008-01-26 Pavel Roskin <proski@gnu.org>
22060 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
22061 just return an error.
22063 2008-01-26 Bean <bean123ch@gmail.com>
22065 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
22066 (grub_reiserfs_get_item): Save offset of the next item.
22067 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
22069 2008-01-25 Robert Millan <rmh@aybabtu.com>
22071 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
22072 make all filesystem sources appear together (possibly fixing omissions
22074 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22075 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22076 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
22077 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22079 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
22081 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
22082 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
22083 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
22084 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
22086 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
22087 (probe): Add a sanity check to make sure of our ability to read
22088 requested files when probing for filesystem type.
22090 * genmk.rb: Update copyright year (2007).
22092 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
22093 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
22094 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
22095 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
22096 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
22097 : Remove function prototypes.
22099 2008-01-25 Robert Millan <rmh@aybabtu.com>
22101 Revert my previous commits (based on wrong assumption of how grub_errno
22104 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
22105 * kern/file.c (grub_file_open): Likewise.
22107 2008-01-24 Pavel Roskin <proski@gnu.org>
22109 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
22110 that hang if GRUB tries to setup colors.
22111 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
22112 colors for firmwares that don't support it.
22113 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
22114 Recognize Open Hack'Ware, set flags to work around its
22117 2008-01-24 Robert Millan <rmh@aybabtu.com>
22119 * kern/file.c (grub_file_open): Do not account previous failures of
22120 unrelated functions when grub_errno is checked for.
22121 Reported by Oleg Strikov.
22123 2008-01-24 Bean <bean123ch@gmail.com>
22125 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
22126 (grub_ufs_sblock): New member volume name.
22127 (grub_ufs_find_file): Fix string copy bug.
22128 (grub_ufs_label): Implement this function properly.
22130 * fs/hfs.c (grub_hfs_cnid_type): New enum.
22131 (grub_hfs_iterate_records): Use the correct file number for extents
22132 and catalog file. Fix problem in next index calculation.
22133 (grub_hfs_find_node): Replace recursive function call with loop.
22134 (grub_hfs_iterate_dir): Replace recursive function call with loop.
22136 2008-01-23 Robert Millan <rmh@aybabtu.com>
22138 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
22139 `<grub/symbol.h>' and `<grub/multiboot.h>'.
22140 (grub_multiboot2_real_boot): New function prototype.
22142 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
22143 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
22145 * kern/i386/ieee1275/init.c (grub_os_area_addr)
22146 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
22148 2008-01-23 Robert Millan <rmh@aybabtu.com>
22150 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
22151 #ifdef'ed out grub_printf().
22153 2008-01-23 Robert Millan <rmh@aybabtu.com>
22155 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
22156 grub_dprintf calls, since they make "debug=all" mode unusable.
22157 (grub_console_checkkey): Likewise.
22159 2008-01-23 Robert Millan <rmh@aybabtu.com>
22161 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
22162 `term/i386/pc/at_keyboard.c'.
22163 (pkglib_MODULES): Add `serial.mod'.
22164 (serial_mod_SOURCES): New variable.
22165 (serial_mod_CFLAGS): Likewise.
22166 (serial_mod_LDFLAGS): Likewise.
22168 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
22169 `<grub/powerpc/ieee1275/console.h>'.
22170 (grub_keyboard_controller_init): New function prototype.
22171 (grub_console_checkkey): Likewise.
22172 (grub_console_getkey): Likewise.
22174 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
22177 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
22178 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
22180 2008-01-23 Robert Millan <rmh@aybabtu.com>
22182 * kern/i386/pc/init.c (make_install_device): When memdisk image is
22183 present, "(memdisk)/boot/grub" becomes the default prefix.
22185 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
22186 a memdisk tarball with all the modules. Add --overlay=DIR option that
22187 allows users to overlay additional files into the image.
22189 2008-01-23 Robert Millan <rmh@aybabtu.com>
22191 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
22192 and `machine/memory.h'.
22193 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
22194 (_multiboot_mod_SOURCES): New variable.
22195 (_multiboot_mod_CFLAGS): Likewise.
22196 (_multiboot_mod_LDFLAGS): Likewise.
22197 (multiboot_mod_SOURCES): Likewise.
22198 (multiboot_mod_CFLAGS): Likewise.
22199 (multiboot_mod_LDFLAGS): Likewise.
22201 * include/grub/i386/ieee1275/loader.h: New file.
22203 * include/grub/i386/ieee1275/machine.h: Likewise.
22205 * include/grub/i386/ieee1275/memory.h: Likewise.
22207 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
22208 variable declaration.
22209 (grub_os_area_size): Likewise.
22211 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
22212 (grub_lower_mem, grub_upper_mem): New variables.
22213 (grub_stop_floppy): New function (just to make
22214 grub_multiboot2_real_boot() happy).
22216 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
22217 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
22218 (grub_stop): New function.
22219 Include `"../realmode.S"' and `"../loader.S"'.
22221 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
22222 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
22224 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
22225 rely on grub_multiboot2_real_boot() for final boot.
22227 2008-01-22 Robert Millan <rmh@aybabtu.com>
22229 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
22230 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
22231 device that doesn't look like an SD card.
22232 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
22233 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
22234 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
22235 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
22238 2008-01-22 Robert Millan <rmh@aybabtu.com>
22240 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
22241 avoid claiming over our own code.
22243 2008-01-22 Bean <bean123ch@gmail.com>
22245 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
22246 (jpeg_mod_SOURCES): New variable.
22247 (jpeg_mod_CFLAGS): Likewise.
22248 (jpeg_mod_LDFLAGS): Likewise.
22250 * video/readers/jpeg.c : New file.
22252 2008-01-22 Bean <bean123ch@gmail.com>
22254 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
22255 there are no more items.
22257 2008-01-21 Robert Millan <rmh@aybabtu.com>
22259 * kern/mm.c (grub_mm_init_region): Improve debug message.
22261 2008-01-21 Robert Millan <rmh@aybabtu.com>
22263 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
22264 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
22266 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
22268 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
22269 Indicates start of upper memory.
22270 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
22271 (generate_image): Abort when image size is big enough to corrupt
22274 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
22275 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
22276 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
22277 instead of hardcoding 0xA0000.
22278 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
22279 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
22280 instead of hardcoding 0xA0000.
22282 2008-01-21 Robert Millan <rmh@aybabtu.com>
22284 * disk/memdisk.c (memdisk_size): New variable.
22285 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
22287 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
22288 image to dynamic memory.
22289 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
22290 `memdisk_size'. Free memdisk block.
22292 2008-01-21 Robert Millan <rmh@aybabtu.com>
22294 Fix detection of very small filesystems (like tar).
22296 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
22297 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
22298 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
22299 a problem with this disk).
22301 2008-01-21 Robert Millan <rmh@aybabtu.com>
22303 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
22304 on grub_biosdisk_rw_standard() error.
22306 2008-01-21 Robert Millan <rmh@aybabtu.com>
22308 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
22310 * kern/elf.c: Likewise.
22311 * kern/ieee1275/ieee1275.c: Likewise.
22312 * kern/powerpc/ieee1275/openfw.c: Likewise.
22313 * term/ieee1275/ofconsole.c: Likewise.
22315 2008-01-21 Robert Millan <rmh@aybabtu.com>
22317 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
22319 * include/grub/kernel.h (grub_arch_memdisk_addr)
22320 (grub_arch_memdisk_size): Moved from here ...
22322 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
22323 (grub_arch_memdisk_size): ... to here.
22325 2008-01-21 Robert Millan <rmh@aybabtu.com>
22327 Mostly based on bugfix from Bean.
22329 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
22330 attribute with hook() parameter.
22331 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
22333 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
22334 attribute with hook() parameter.
22335 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
22338 2008-01-21 Robert Millan <rmh@aybabtu.com>
22340 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
22341 (pkglib_MODULES): Add `memdisk.mod'.
22342 (memdisk_mod_SOURCES): New variable.
22343 (memdisk_mod_CFLAGS): Likewise.
22344 (memdisk_mod_LDFLAGS): Likewise.
22346 * disk/memdisk.c: New file.
22348 * include/grub/disk.h (grub_disk_dev_id): Add
22349 `GRUB_DISK_DEVICE_MEMDISK_ID'.
22351 * include/grub/i386/pc/kernel.h
22352 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
22353 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
22354 (grub_kernel_image_size): New variable declaration.
22355 (grub_total_module_size): Likewise.
22356 (grub_memdisk_image_size): Likewise.
22358 * include/grub/i386/pc/memory.h
22359 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
22361 * include/grub/kernel.h: Include `<grub/symbol.h>'.
22362 (grub_arch_memdisk_addr): New variable declaration.
22363 (grub_arch_memdisk_size): Likewise.
22365 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
22366 (grub_arch_memdisk_size): Likewise.
22368 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
22369 (codestart): Replace hardcoded `0x100000' with
22370 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
22372 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
22373 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
22374 not NULL, append the contents of the file it refers to, at the end of
22375 the compressed kernel image. Initialize `grub_memdisk_image_size'
22376 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
22377 (options): Add "memdisk"|'m' option.
22378 (main): Parse --memdisk|-m option, and pass user-provided path as
22379 parameter to generate_image().
22381 2008-01-20 Robert Millan <rmh@aybabtu.com>
22383 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
22384 grub_dprintf() calls from here ...
22385 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
22387 2008-01-20 Robert Millan <rmh@aybabtu.com>
22389 Fix detection of "real mode" when /options/real-mode? doesn't exist.
22391 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
22393 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
22394 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
22395 `GRUB_IEEE1275_FLAG_REAL_MODE'.
22396 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
22398 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
22399 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
22401 2008-01-19 Robert Millan <rmh@aybabtu.com>
22403 Get rid of confusing function (superseded by
22404 `grub_ieee1275_get_integer_property')
22405 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
22407 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
22409 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
22410 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
22411 in native endianness from grub_ieee1275_get_integer_property().
22413 2008-01-19 Robert Millan <rmh@aybabtu.com>
22415 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
22416 command after "shut-down", since implementations differ on which
22417 the command for halt is.
22419 2008-01-19 Robert Millan <rmh@aybabtu.com>
22421 * include/grub/i386/linuxbios/console.h: Add header protection.
22422 (grub_keyboard_controller_init): New function prototype.
22423 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
22424 (KEYBOARD_COMMAND_READ): Likewise.
22425 (KEYBOARD_COMMAND_WRITE): Likewise.
22426 (KEYBOARD_SCANCODE_SET1): Likewise.
22427 (grub_keyboard_controller_write): New function.
22428 (grub_keyboard_controller_read): Likewise.
22429 (grub_keyboard_controller_init): Likewise.
22431 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
22432 (grub_console_init): On coreboot/LinuxBIOS, call
22433 grub_keyboard_controller_init().
22435 2008-01-19 Robert Millan <rmh@aybabtu.com>
22437 PowerPC changes provided by Pavel Roskin.
22439 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
22440 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
22441 don't rely on cmain() doing it.
22442 * kern/i386/ieee1275/startup.S (_start): Store %eax in
22443 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
22445 2008-01-16 Robert Millan <rmh@aybabtu.com>
22447 * include/grub/i386/linuxbios/memory.h
22448 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
22449 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
22450 receive `table_header' as argument. Instead, probe for it in the
22451 known memory ranges where it can be present.
22452 (grub_available_iterate): Do not pass a fixed `table_header' address
22453 to grub_linuxbios_table_iterate().
22455 2008-01-15 Robert Millan <rmh@aybabtu.com>
22457 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
22458 * conf/i386-ieee1275.rmk: New file.
22459 * include/grub/i386/ieee1275/console.h: Likewise.
22460 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
22461 * include/grub/i386/ieee1275/kernel.h: Likewise.
22462 * include/grub/i386/ieee1275/time.h: Likewise.
22463 * kern/i386/ieee1275/init.c: Likewise.
22464 * kern/i386/ieee1275/startup.S: Likewise.
22466 2008-01-15 Robert Millan <rmh@aybabtu.com>
22468 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
22469 when pointers are 32-bit (but still do set it to one when they are
22472 2008-01-15 Robert Millan <rmh@aybabtu.com>
22474 * include/grub/ieee1275/ieee1275.h
22475 (grub_ieee1275_get_integer_property): New function prototype.
22477 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
22478 (grub_ieee1275_get_integer_property): New function. Wraps around
22479 grub_ieee1275_get_property() to handle endianness.
22481 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
22482 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
22484 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
22485 (grub_map): Likewise.
22486 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
22488 2008-01-15 Bean <bean123ch@gmail.com>
22490 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
22491 (grub_script_execute_cmdline): Reset grub_errno.
22493 * normal/main.c (read_config_file): Reset grub_errno.
22495 * normal/parse.y (script_init): New.
22496 (script): Move function and menuentry here.
22498 (command): Add delimiter at the end of command.
22499 (commands): Adjust to match the new command.
22500 (commandblock): Remove grub_script_lexer_record_start.
22501 (menuentry): Add grub_script_lexer_record_start, use the new commands.
22502 (if): Use the new commands.
22504 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
22506 2008-01-15 Robert Millan <rmh@aybabtu.com>
22508 * normal/menu.c (run_menu): Move timeout message from here ...
22509 (print_timeout): ... to here.
22510 (run_menu): Use print_timeout() once during initial draw to print
22511 the whole message, and again in every clock tick to update only
22512 the number of seconds.
22514 2008-01-15 Robert Millan <rmh@aybabtu.com>
22516 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
22517 actual size of `available' from grub_ieee1275_get_property(), and
22518 restrict parsing to that bound.
22520 2008-01-15 Christian Franke <franke@computer.org>
22522 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
22523 (argp_program_version): Remove variable.
22524 (argp_program_bug_address): Likewise.
22525 (options): Convert from struct argp_option to struct option.
22526 (struct arguments): Remove.
22527 (parse_opt): Remove.
22528 (usage): New function.
22529 (main): Replace struct args members by simple variables.
22530 Replace argp_parse() by getopt_long().
22531 Add switch to evaluate options.
22532 Add missing "(...)" around root_dev in prefix string.
22534 2008-01-14 Robert Millan <rmh@aybabtu.com>
22536 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
22537 for grub_ieee1275_exit(), in order to improve portability.
22539 2008-01-14 Robert Millan <rmh@aybabtu.com>
22541 * util/grub.d/10_linux.in (prefix): Define.
22542 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
22544 2008-01-13 Pavel Roskin <proski@gnu.org>
22546 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
22547 grub_errno if no errors have been detected.
22549 2008-01-12 Robert Millan <rmh@aybabtu.com>
22551 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
22552 (grub_util_get_dev_abstraction): New function prototype.
22554 * util/getroot.c: Include `<grub/util/getroot.h>'
22555 (grub_util_get_grub_dev): Move detection of abstraction type to ...
22556 (grub_util_get_dev_abstraction): ... here (new function).
22558 * util/grub-probe.c: Convert PRINT_* to an enum. Add
22559 `PRINT_ABSTRACTION'.
22560 (probe): Probe for abstraction type when requested.
22561 (main): Understand `--target=abstraction'.
22563 * util/i386/efi/grub-install.in: Add abstraction module to core
22564 image when it is found to be necessary.
22565 * util/i386/pc/grub-install.in: Likewise.
22566 * util/powerpc/ieee1275/grub-install.in: Likewise.
22568 * util/update-grub_lib.in (font_path): Return system path without
22569 converting to GRUB path.
22570 * util/update-grub.in: Convert system path returned by font_path()
22571 to a GRUB path. Use `grub-probe -t abstraction' to determine what
22572 abstraction module is needed for loading fonts (if any). Export
22573 that as `GRUB_PRELOAD_MODULES'.
22574 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
22577 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
22579 Remove some unused code from reiserfs.
22581 * fs/reiserfs.c (struct grub_reiserfs_key)
22582 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
22583 (struct grub_reiserfs_node_body): Removed.
22584 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
22586 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
22588 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
22590 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
22592 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
22594 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
22596 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
22597 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
22598 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
22600 2008-01-10 Robert Millan <rmh@aybabtu.com>
22602 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
22603 Determines if a file is garbage left by packaging systems, etc.
22604 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
22605 for processing /etc/grub.d scripts.
22606 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
22607 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
22608 as a condition for processing Linux images.
22610 2008-01-10 Pavel Roskin <proski@gnu.org>
22612 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
22613 to compile reiserfs.c on PowerPC.
22615 2008-01-10 Robert Millan <rmh@aybabtu.com>
22617 * kern/device.c (grub_device_iterate): Do not abort device iteration
22618 when one of the devices cannot be opened.
22619 * kern/disk.c (grub_disk_open): Do not account previous failures of
22620 unrelated functions when grub_errno is checked for.
22622 2008-01-08 Robert Millan <rmh@aybabtu.com>
22624 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
22625 `! grub_linux_is_bzimage', change order of address comparison to make
22626 it more intuitive, and improve "too big zImage" error message.
22628 2008-01-08 Robert Millan <rmh@aybabtu.com>
22630 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
22631 `$(update-grub_DATA)'.
22632 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
22635 2008-01-07 Robert Millan <rmh@aybabtu.com>
22637 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
22638 which instruction is modified by grub-setup during installation
22639 (since it wasn't obvious by only looking at this file).
22641 2008-01-07 Robert Millan <rmh@aybabtu.com>
22643 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
22644 listing actual TODO items.
22646 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
22648 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
22650 (grub_reiserfs_get_key_offset): Likewise.
22651 (grub_reiserfs_set_key_offset): Likewise.
22652 (grub_reiserfs_set_key_type): Likewise.
22653 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
22655 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
22656 better to remove the bitfield version completely.
22658 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
22660 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
22661 allocated from the heap, due to the fshelp implementation.
22662 (grub_reiserfs_dir): Free NODE, due to the same reason.
22664 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
22666 Mostly from Vincent Pelletier:
22668 * fs/reiserfs.c: New file.
22670 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
22671 (reiserfs_mod_SOURCES): New variable.
22672 (reiserfs_mod_CFLAGS): Likewise.
22673 (reiserfs_mod_LDFLAGS): Likewise.
22675 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
22676 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
22677 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
22680 2008-01-06 Robert Millan <rmh@aybabtu.com>
22682 * normal/color.c: Remove `<grub/env.h>'.
22684 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
22686 * include/grub/normal.h: Include <grub/env.h>.
22688 2008-01-05 Robert Millan <rmh@aybabtu.com>
22690 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
22691 usage example with `(hd0,1)'.
22692 Reported by Samuel Thibault.
22694 2008-01-05 Robert Millan <rmh@aybabtu.com>
22696 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
22697 (grub_linux_boot_zimage): Rename to ...
22698 (grub_linux_boot): ... this.
22699 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
22700 (grub_linux_boot_zimage): Conditionalize zImage copy.
22702 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
22703 (grub_linux_boot_bzimage): Remove prototype.
22704 (grub_linux_boot_zimage): Rename to ...
22705 (grub_linux_boot): ... this.
22707 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
22708 (grub_linux_boot): Remove function.
22710 2008-01-05 Robert Millan <rmh@aybabtu.com>
22712 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
22713 (grub_env_write_color_highlight): Likewise.
22714 (grub_wait_after_message): Likewise.
22716 * normal/color.c: New file.
22718 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
22719 (normal_mod_DEPENDENCIES): Likewise.
22721 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
22722 (normal_mod_DEPENDENCIES): Likewise.
22724 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
22725 (normal_mod_DEPENDENCIES): Likewise.
22727 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
22728 (normal_mod_DEPENDENCIES): Likewise.
22730 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
22731 for waiting after a message is printed.
22732 * normal/main.c (read_config_file): Likewise.
22733 (grub_normal_init): Register grub_env_write_color_normal() and
22734 grub_env_write_color_highlight() hooks. Mark `color_normal' and
22735 `color_highlight' variables as global.
22737 * normal/menu.c (grub_wait_after_message): New function.
22738 (grub_color_menu_normal): New variable. Replaces ...
22739 (GRUB_COLOR_MENU_NORMAL): ... this macro.
22740 (grub_color_menu_highlight): New variable. Replaces ...
22741 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
22742 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
22743 `GRUB_TERM_COLOR_STANDARD'.
22744 (print_message): Use `grub_setcolorstate' to reload colors. Rename
22745 `normal_code' and `highlight_code' to `old_color_normal' and
22746 `old_color_highlight', respectively.
22747 (grub_menu_init_page): Update colors when drawing the menu, based on
22748 `menu_color_normal' and `menu_color_highlight' variables.
22749 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
22750 a message is printed.
22752 2008-01-05 Robert Millan <rmh@aybabtu.com>
22754 * kern/env.c (grub_env_context_open): Propagate hooks for global
22755 variables to new context.
22757 * kern/main.c (grub_set_root_dev): Export `root' variable.
22759 2008-01-05 Robert Millan <rmh@aybabtu.com>
22761 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
22762 discs unconditionally, since udev and others have options to provide
22765 2008-01-05 Robert Millan <rmh@aybabtu.com>
22767 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
22769 2008-01-04 Christian Franke <franke@computer.org>
22771 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
22774 2008-01-03 Pavel Roskin <proski@gnu.org>
22776 * kern/i386/linuxbios/init.c: Put "void" to all function
22777 declarations with no arguments.
22778 * kern/powerpc/ieee1275/init.c: Likewise.
22779 * term/i386/pc/at_keyboard.c: Likewise.
22780 * term/i386/pc/vga_text.c: Likewise.
22781 * util/grub-mkdevicemap.c: Likewise.
22783 2008-01-02 Robert Millan <rmh@aybabtu.com>
22785 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
22786 message when loaded image is out of bounds.
22787 (grub_multiboot_load_elf64): Likewise.
22789 2008-01-02 Pavel Roskin <proski@gnu.org>
22791 * util/grub.d/10_linux.in: Try version without ".old" when
22792 looking for initrd. It's better to use initrd from the newer
22793 kernel of the same version than no initrd at all.
22795 2008-01-01 Robert Millan <rmh@aybabtu.com>
22797 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
22799 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
22801 * include/grub/video.h: Added grub_video_unmap_color and
22802 grub_video_get_active_render_target.
22803 (grub_video_adapter): Added unmap_color and get_active_render_target.
22805 * video/video.c: Added grub_video_unmap_color and
22806 grub_video_get_active_render_target.
22807 (grub_video_get_info): Changed method to accept NULL pointer as an
22808 argument to allow detection of active video adapter.
22810 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
22811 grub_video_vbe_unmap_color_int.
22812 Added grub_video_vbe_unmap_color and
22813 grub_video_vbe_get_active_render_target.
22814 (grub_video_vbe_adapter): Added unmap_color and
22815 get_active_render_target.
22817 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
22818 with grub_video_vbe_unmap_color_int.
22820 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
22821 (DEFAULT_NORMAL_COLOR): Likewise.
22822 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
22823 (DEFAULT_FG_COLOR): Removed.
22824 (DEFAULT_BG_COLOR): Likewise.
22825 (DEFAULT_CURSOR_COLOR): Changed value.
22826 (grub_virtual_screen): Added standard_color_setting,
22827 normal_color_setting, highlight_color_setting and term_color.
22828 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
22829 (bitmap_width): Added.
22830 (bitmap_height): Likewise.
22831 (bitmap): Likewise.
22832 (set_term_color): Likewise.
22833 (grub_virtual_screen_setup): Changed to use new terminal coloring
22835 (grub_gfxterm_init): Added init for bitmap.
22836 (grub_gfxterm_fini): Added destroy for bitmap.
22837 (redraw_screen_rect): Updated to use background bitmap and new
22839 (scroll_up): Added optimization for case when there is no bitmap.
22840 (grub_gfxterm_cls): Fixed to use correct background color.
22841 (grub_virtual_screen_setcolorstate): Changed to use new terminal
22843 (grub_virtual_screen_setcolor): Likewise.
22844 (grub_virtual_screen_getcolor): Added.
22845 (grub_gfxterm_background_image_cmd): Likewise.
22846 (grub_video_term): Added setcolor and getcolor.
22847 (MOD_INIT): Added registration of background_image command.
22848 (MOD_TERM): Added unregistration for background_image command.
22850 2007-12-30 Pavel Roskin <proski@gnu.org>
22852 * loader/multiboot_loader.c: Fix multiboot command
22853 unregistration. Fix all typos in the word "multiboot".
22855 2007-12-29 Pavel Roskin <proski@gnu.org>
22857 * util/grub.d/10_linux.in: Refactor search for initrd. Add
22858 support for initrd names used in Fedora.
22860 2007-12-26 Bean <bean123ch@gmail.com>
22862 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
22863 (cpio_mod_SOURCES): New variable.
22864 (cpio_mod_CFLAGS): Likewise.
22865 (cpio_mod_LDFLAGS): Likewise.
22867 * fs/cpio.c: New file.
22869 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
22871 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22873 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
22875 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22877 2007-12-25 Robert Millan <rmh@aybabtu.com>
22879 * include/grub/term.h (struct grub_term): Add `getcolor' function.
22880 (grub_getcolor): New function.
22882 * kern/term.c (grub_getcolor): New function.
22883 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
22884 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
22885 (print_entry): Set normal and highlight colors to
22886 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
22887 respectively, before printing and restore them to old
22889 (grub_menu_init_page): Likewise. Fill an additional colored space
22890 that would otherwise be left blank.
22892 * term/efi/console.c (grub_console_getcolor): New function.
22893 (struct grub_console_term.getcolor): New variable.
22894 * term/i386/pc/console.c (grub_console_getcolor): New function.
22895 (struct grub_console_term.getcolor): New variable.
22896 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
22897 (struct grub_console_term.getcolor): New variable.
22899 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
22900 (struct grub_console_term.setcolor): Remove variable.
22901 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
22902 (struct grub_console_term.setcolor): Remove variable.
22903 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
22904 (struct grub_console_term.setcolor): Remove variable.
22905 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
22906 (struct grub_console_term.setcolor): Remove variable.
22908 2007-12-25 Robert Millan <rmh@aybabtu.com>
22910 * configure.ac: Search for possible unifont.hex locations, and
22911 define UNIFONT_HEX if found.
22913 * Makefile.in (UNIFONT_HEX): Define variable.
22914 (DATA): Rename to ...
22915 (PKGLIB): ... this. Update all users.
22916 (PKGDATA): New variable.
22917 (pkgdata_IMAGES): Rename to ...
22918 (pkglib_IMAGES): ... this. Update all users.
22919 (pkgdata_MODULES): Rename to ...
22920 (pkglib_MODULES): ... this. Update all users.
22921 (pkgdata_PROGRAMS): Rename to ...
22922 (pkglib_PROGRAMS): ... this. Update all users.
22923 (pkgdata_DATA): Rename to ...
22924 (pkglib_DATA): ... this. Update all users.
22925 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
22926 (unicode.pff, ascii.pff): New rules.
22927 (all-local): Add `$(PKGDATA)' dependency.
22928 (install-local): Process `$(PKGDATA)'.
22930 * util/update-grub_lib.in (font_path): Search for *.pff files in
22931 a few more locations, including `${pkgdata}'.
22933 2007-12-23 Robert Millan <rmh@aybabtu.com>
22935 Patch from Bean <bean123ch@gmail.com>:
22936 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
22939 2007-12-21 Bean <bean123ch@gmail.com>
22941 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
22942 (ntfscomp_mod_SOURCES): New variable.
22943 (ntfscomp_mod_CFLAGS): Likewise.
22944 (ntfscomp_mod_LDFLAGS): Likewise.
22946 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
22947 (grub_probe_SOURCES): Likewise.
22948 (grub_emu_SOURCES): Likewise.
22950 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
22951 (grub_emu_SOURCES): Likewise.
22953 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
22954 (grub_emu_SOURCES): Likewise.
22956 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
22957 (grub_emu_SOURCES): Likewise.
22959 * fs/ntfs.c (grub_ntfscomp_func): New variable.
22960 (read_run_list): Renamed to grub_ntfs_read_run_list.
22961 (decomp_nextvcn): Moved to ntfscomp.c.
22962 (decomp_getch): Likewise.
22963 (decomp_get16): Likewise.
22964 (decomp_block): Likewise.
22965 (read_block): Likewise.
22966 (read_data): Partially moved to ntfscomp.c.
22967 (fixup): Change unsigned to grub_uint16_t.
22968 (read_mft): Change unsigned long to grub_uint32_t.
22969 (read_attr): Likewise.
22970 (read_data): Likewise.
22971 (read_run_data): Likewise.
22972 (read_run_list): Likewise.
22973 (read_mft): Likewise.
22975 * fs/ntfscomp.c: New file.
22977 * include/grub/ntfs.h: New file.
22979 2007-12-16 Robert Millan <rmh@aybabtu.com>
22981 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
22982 IDE disk check, since Linux is known to support 20 IDE disks.
22983 Reported by Colin Watson.
22985 2007-12-15 Bean <bean123ch@gmail.com>
22987 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
22988 (lnxboot_img_SOURCES): New variable.
22989 (lnxboot_img_ASFLAGS): Likewise.
22990 (lnxboot_img_LDFLAGS): Likewise.
22992 * boot/i386/pc/lnxboot.S: New file.
22994 2007-11-24 Pavel Roskin <proski@gnu.org>
22996 * configure.ac: Test if '--build-id=none' is supported by the
22997 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
22998 objcopy to generate incorrect binary files (binutils
22999 2.17.50.0.18-1 as shipped by Fedora 8).
23000 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
23001 linking, so that build ID doesn't break the test.
23003 2007-11-24 Pavel Roskin <proski@gnu.org>
23005 * include/grub/i386/time.h: use "void" in the argument list
23006 of grub_cpu_idle().
23007 * include/grub/powerpc/time.h: Likewise.
23008 * include/grub/sparc64/time.h: Likewise.
23010 2007-11-18 Christian Franke <franke@computer.org>
23012 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
23013 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
23014 This fixes the problem that function keys did not work in grub-emu.
23016 2007-11-18 Christian Franke <franke@computer.org>
23018 * disk/host.c (grub_host_open): Remove attribute unused from
23019 name parameter. Add check for "host". This fixes the problem
23020 that grub-emu does not find partitions.
23022 2007-11-18 Christian Franke <franke@computer.org>
23024 * util/hostfs.c (is_dir): New function.
23025 (grub_hostfs_dir): Handle missing dirent.d_type case.
23026 (grub_hostfs_read): Add missing fseek().
23027 (grub_hostfs_label): Clear label pointer. This fixes a crash
23028 of grub-emu on "ls (host)".
23030 2007-11-18 Christian Franke <franke@computer.org>
23032 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
23033 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
23034 to 64 bit boundary by default.
23036 2007-11-18 Bean <bean123ch@gmail.com>
23038 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
23039 (hexdump_mod_SOURCES): New variable.
23040 (hexdump_mod_CFLAGS): Likewise.
23041 (hexdump_mod_LDFLAGS): Likewise.
23043 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
23045 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
23047 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
23049 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
23051 * include/grub/hexdump.h: New file.
23053 * commands/hexdump.c: New file.
23055 2007-11-10 Robert Millan <rmh@aybabtu.com>
23057 * commands/i386/pc/play.c (beep_off): Switch order of arguments
23058 in grub_outb() calls.
23059 (beep_on): Likewise.
23061 2007-11-10 Christian Franke <franke@computer.org>
23063 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
23064 (grub_menu_run): Likewise.
23066 2007-11-10 Robert Millan <rmh@aybabtu.com>
23068 * include/grub/i386/efi/machine.h: New file.
23069 * include/grub/i386/linuxbios/machine.h: Likewise.
23070 * include/grub/i386/pc/machine.h: Likewise.
23071 * include/grub/powerpc/ieee1275/machine.h: Likewise.
23072 * include/grub/sparc64/ieee1275/machine.h: Likewise.
23074 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
23075 (serial_hw_io_addr): New variable.
23076 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
23077 instead of `(unsigned short *) 0x400'.
23079 2007-11-10 Bean <bean123ch@gmail.com>
23081 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
23083 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
23085 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
23086 (vga_mod_SOURCES): Added.
23087 (vga_mod_CFLAGS): Likewise.
23088 (vga_mod_LDFLAGS): Likewise.
23090 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
23092 (set_map_mask): Likewise.
23093 (set_read_map): Likewise.
23094 (set_read_address): Likewise.
23095 (vga_font): Removed variable.
23096 (get_vga_glyph): Removed function.
23097 (invalidate_char): Likewise.
23098 (write_char): Changed to use grub_font_get_glyph() for font
23100 (grub_vga_putchar): Likewise.
23101 (grub_vga_getcharwidth): Likewise.
23103 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
23105 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
23107 (pxeboot_img_LDFLAGS): Likewise.
23108 (diskboot_img_LDFLAGS): Likewise.
23109 (kernel_img_LDFLAGS): Likewise.
23111 2007-11-06 Robert Millan <rmh@aybabtu.com>
23113 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
23114 in grub_outb() calls.
23115 (serial_hw_init): Likewise.
23117 2007-11-05 Robert Millan <rmh@aybabtu.com>
23119 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
23120 spaces. Skip non-regular files.
23122 2007-11-05 Robert Millan <rmh@aybabtu.com>
23124 * kern/disk.c (grub_disk_firmware_fini)
23125 (grub_disk_firmware_is_tainted): New variables.
23127 * include/grub/disk.h (grub_disk_firmware_fini)
23128 (grub_disk_firmware_is_tainted): Likewise.
23130 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
23131 (grub_disk_biosdisk_fini): ... to here.
23132 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
23133 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
23134 is set. Register grub_disk_biosdisk_fini() in
23135 `grub_disk_firmware_fini'.
23137 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
23138 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
23139 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
23140 to finish existing firmware disk interface.
23142 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
23143 (ata_mod_SOURCES): New variable.
23144 (ata_mod_CFLAGS): Likewise.
23145 (ata_mod_LDFLAGS): Likewise.
23147 2007-11-05 Robert Millan <rmh@aybabtu.com>
23149 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
23150 (grub_ata_wait): Reimplement using grub_millisleep().
23152 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
23153 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
23155 2007-11-03 Marco Gerards <marco@gnu.org>
23157 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
23158 (CRTC_ADDR_PORT): New macro.
23159 (CRTC_DATA_PORT): Likewise.
23160 (CRTC_CURSOR): Likewise.
23161 (CRTC_CURSOR_ADDR_HIGH): Likewise.
23162 (CRTC_CURSOR_ADDR_LOW): Likewise.
23163 (update_cursor): New function.
23164 (grub_console_real_putchar): Call `update_cursor'.
23165 (grub_console_gotoxy): Likewise.
23166 (grub_console_cls): Set the default color when clearing the
23168 (grub_console_setcursor): Implemented.
23170 2007-11-03 Marco Gerards <marco@gnu.org>
23172 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
23174 (grub_ata_pio_write): Likewise.
23176 (grub_atapi_identify): Wait after issuing an ATA command.
23177 (grub_atapi_packet): Likewise.
23178 (grub_ata_identify): Likewise.
23179 (grub_ata_readwrite): Likewise.
23181 2007-11-03 Marco Gerards <marco@gnu.org>
23183 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
23184 (grub_ata_pio_write): Likewise.
23185 (grub_ata_readwrite): Use `grub_error', instead of
23186 returning `grub_errno'.
23188 2007-11-03 Marco Gerards <marco@gnu.org>
23190 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
23191 grub_ata_pio_write once for every single sector, instead of for
23194 2007-10-31 Robert Millan <rmh@aybabtu.com>
23196 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
23198 * conf/i386-linuxbios.rmk: New file.
23200 * kern/i386/pc/hardware.c: Likewise.
23201 * term/i386/pc/at_keyboard.c: Likewise.
23202 * term/i386/pc/vga_text.c: Likewise.
23204 * include/grub/i386/linuxbios/boot.h: Likewise.
23205 * include/grub/i386/linuxbios/console.h: Likewise.
23206 * include/grub/i386/linuxbios/init.h: Likewise.
23207 * include/grub/i386/linuxbios/kernel.h: Likewise.
23208 * include/grub/i386/linuxbios/loader.h: Likewise.
23209 * include/grub/i386/linuxbios/memory.h: Likewise.
23210 * include/grub/i386/linuxbios/serial.h: Likewise.
23211 * include/grub/i386/linuxbios/time.h: Likewise.
23213 * kern/i386/linuxbios/init.c: Likewise.
23214 * kern/i386/linuxbios/startup.S: Likewise.
23215 * kern/i386/linuxbios/table.c: Likewise.
23217 2007-10-31 Marco Gerards <marco@gnu.org>
23219 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
23220 (ata_mod_SOURCES): New variable.
23221 (ata_mod_CFLAGS): Likewise.
23222 (ata_mod_LDFLAGS): Likewise.
23224 * disk/ata.c: New file.
23226 * include/grub/disk.h (grub_disk_dev_id): Add
23227 `GRUB_DISK_DEV_ATA_ID'.
23229 2007-10-31 Robert Millan <rmh@aybabtu.com>
23231 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
23232 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
23234 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
23235 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
23237 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
23240 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
23242 2007-10-27 Robert Millan <rmh@aybabtu.com>
23244 * include/grub/types.h (ULONG_MAX): Define macro.
23246 2007-10-22 Robert Millan <rmh@aybabtu.com>
23248 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
23250 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
23252 2007-10-22 Robert Millan <rmh@aybabtu.com>
23254 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
23255 (pkgdata_MODULES): Add `biosdisk.mod'.
23256 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
23259 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
23260 (grub_biosdisk_init): Replace with ...
23261 (GRUB_MOD_INIT(biosdisk)): ... this.
23262 (grub_biosdisk_fini): Replace with ...
23263 (GRUB_MOD_FINI(biosdisk)): ... this.
23265 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
23266 (grub_machine_init): Remove call to grub_biosdisk_init().
23267 (grub_machine_fini): Remove call to grub_machine_fini().
23269 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
23271 2007-10-22 Robert Millan <rmh@aybabtu.com>
23273 * include/grub/time.h: New file.
23274 * include/grub/i386/time.h: Likewise.
23275 * include/grub/powerpc/time.h: Likewise.
23276 * include/grub/sparc64/time.h: Likewise.
23278 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
23280 (KERNEL_MACHINE_TIME_HEADER): ... this.
23281 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
23283 (KERNEL_MACHINE_TIME_HEADER): ... this.
23284 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
23286 (KERNEL_MACHINE_TIME_HEADER): ... this.
23288 * kern/i386/efi/init.c: Include `<grub/time.h>'.
23289 (grub_millisleep): New function.
23290 * kern/i386/pc/init.c: Include `<grub/time.h>'.
23291 (grub_millisleep): New function.
23292 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
23293 Remove `grub/machine/time.h' include.
23294 (grub_millisleep): New function.
23295 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
23296 Remove `grub/machine/time.h' include.
23297 (grub_millisleep): New function.
23299 * include/grub/misc.h (grub_div_roundup): New function.
23301 * kern/misc.c: Include `<grub/time.h>'.
23302 (grub_millisleep_generic): New function.
23304 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
23306 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
23308 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
23309 `machine/time.h'. Add `time.h'.
23310 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
23312 2007-10-21 Robert Millan <rmh@aybabtu.com>
23314 * include/grub/misc.h (grub_max): New function.
23316 2007-10-21 Robert Millan <rmh@aybabtu.com>
23318 * util/misc.c (grub_util_info): Call fflush() before returning.
23320 2007-10-20 Robert Millan <rmh@aybabtu.com>
23322 * genmk.rb (Image): Copy `extra_flags' from here ...
23323 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
23325 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
23326 to `argc' and `args' arguments.
23328 2007-10-17 Robert Millan <rmh@aybabtu.com>
23330 * kern/i386/loader.S: New file.
23332 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
23333 * kern/i386/loader.S (grub_linux_prot_size)... to here.
23334 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
23335 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
23336 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
23337 * kern/i386/loader.S (grub_linux_real_addr)... to here.
23338 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
23339 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
23340 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
23341 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
23342 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
23343 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
23344 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
23345 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
23347 * kern/i386/realmode.S: New file.
23349 * kern/i386/pc/startup.S (protstack): Moved from here ...
23350 * kern/i386/realmode.S (protstack)... to here.
23351 * kern/i386/pc/startup.S (gdt): Moved from here ...
23352 * kern/i386/realmode.S (gdt)... to here.
23353 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
23354 * kern/i386/realmode.S (prot_to_real)... to here.
23356 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
23357 `kern/i386/realmode.S'.
23359 2007-10-17 Robert Millan <rmh@aybabtu.com>
23361 * include/grub/i386/loader.h: New file.
23363 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
23364 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
23365 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
23366 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
23367 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
23368 * include/grub/i386/loader.h (grub_linux_prot_size)
23369 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
23370 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
23371 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
23372 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
23374 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
23376 2007-10-15 Robert Millan <rmh@aybabtu.com>
23378 * normal/misc.c (grub_normal_print_device_info): Do not probe for
23379 filesystem when dev->disk is unset.
23380 Do probe for filesystem even when dev->disk->has_partitions is set.
23381 In case a filesystem is found, always report it.
23382 In case it isn't, if dev->disk->has_partitions is set, report that
23383 a partition table was found instead of reporting that no filesystem
23384 could be identified.
23386 2007-10-12 Robert Millan <rmh@aybabtu.com>
23388 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
23389 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
23391 * include/grub/types.h (grub_host_to_target16): New macro.
23392 (grub_host_to_target32): Likewise.
23393 (grub_host_to_target64): Likewise.
23394 (grub_target_to_host16): Likewise.
23395 (grub_target_to_host32): Likewise.
23396 (grub_target_to_host64): Likewise.
23398 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
23399 Renamed from to ...
23400 (GRUB_MOD_ALIGN): ...this. Update all users.
23402 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
23403 grub_host_to_target32.
23404 Replace grub_be_to_cpu32 with grub_target_to_host32.
23405 (load_modules): Likewise.
23406 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
23407 Replace grub_be_to_cpu32 with grub_target_to_host32.
23408 Replace grub_cpu_to_be16 with grub_host_to_target16.
23409 Replace grub_cpu_to_be32 grub_host_to_target32.
23411 2007-10-12 Robert Millan <rmh@aybabtu.com>
23413 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
23414 * util/elf/grub-mkimage.c: ... here.
23416 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
23417 `util/powerpc/ieee1275/grub-mkimage.c'.
23419 2007-10-07 Robert Millan <rmh@aybabtu.com>
23421 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
23422 and make it easier to figure out.
23423 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
23424 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
23425 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
23426 leave us with less than HEAP_MIN_SIZE total heap.
23427 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
23429 2007-10-03 Robert Millan <rmh@aybabtu.com>
23431 * include/grub/i386/io.h: New file.
23432 * commands/i386/pc/play.c (inb): Removed.
23434 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
23436 * term/i386/pc/serial.c (inb): Removed.
23438 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
23440 * term/i386/pc/vga.c (inb): Removed.
23442 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
23445 2007-10-02 Robert Millan <rmh@aybabtu.com>
23447 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
23448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23449 Reported by Marcin Kurek.
23451 2007-09-07 Robert Millan <rmh@aybabtu.com>
23453 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
23454 SmartFirmware version updates (as released by Sven Luther), and avoid
23455 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
23456 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
23459 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
23461 From Hitoshi Ozeki:
23462 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
23463 when merging two regions.
23465 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
23467 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
23468 * normal/completion.c (grub_normal_do_completion): Likewise.
23469 Reported by Hitoshi Ozeki.
23471 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
23473 Do not use devices at boot in chainloading.
23475 * loader/i386/pc/chainloader.c (boot_drive): New variable.
23476 (boot_part_addr): Likewise.
23477 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
23478 with BOOT_DRIVE and BOOT_PART_ADDR.
23479 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
23480 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
23482 2007-08-29 Robert Millan <rmh@aybabtu.com>
23484 Patch from Simon Peter <dn.tlp@gmx.net>:
23485 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
23486 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
23487 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
23488 util/i386/pc/grub-setup.c_DEPENDENCIES.
23489 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
23490 util/grub-probe.c_DEPENDENCIES.
23491 * conf/powerpc-ieee1275.rmk: Likewise.
23493 2007-08-28 Robert Millan <rmh@aybabtu.com>
23495 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
23496 to tell grub-mkdevicemap how to name devices.
23497 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
23500 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
23501 util/i386/get_disk_name.c.
23502 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
23503 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
23504 util/ieee1275/get_disk_name.c.
23506 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
23508 * DISTLIST: Add util/i386/get_disk_name.c and
23509 util/ieee1275/get_disk_name.c.
23511 * util/grub-mkdevicemap.c: Replace device naming logic with
23512 grub_util_get_disk_name() calls.
23514 2007-08-20 Robert Millan <rmh@aybabtu.com>
23516 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
23517 (so that it works for both plural and singular quantities).
23519 2007-08-05 Robert Millan <rmh@aybabtu.com>
23521 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
23522 so that [xz] isn't taken into account when determining order.
23524 2007-08-02 Marco Gerards <marco@gnu.org>
23526 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
23527 `include/multiboot2.h', `include/grub/elfload.h',
23528 `include/multiboot.h', `include/grub/multiboot.h',
23529 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
23530 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
23531 `kern/elf.c', `loader/multiboot_loader.c',
23532 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
23533 `loader/i386/pc/multiboot2.c',
23534 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
23535 `util/i386/pc/grub-mkrescue.in'. Remove
23536 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
23537 `include/grub/i386/pc/util/biosdisk.h' and
23538 `include/grub/powerpc/ieee1275/multiboot.h'.
23540 2007-08-02 Bean <bean123ch@gmail.com>
23542 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
23543 (ntfs_mod_SOURCES): New variable.
23544 (ntfs_mod_CFLAGS): Likewise.
23545 (ntfs_mod_LDFLAGS): Likewise.
23547 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
23548 (grub_probe_SOURCES): Likewise.
23549 (grub_emu_SOURCES): Likewise.
23551 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
23552 (grub_emu_SOURCES): Likewise.
23554 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
23555 (grub_emu_SOURCES): Likewise.
23557 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
23559 * fs/ntfs.c: New file.
23561 2007-08-02 Bean <bean123ch@gmail.com>
23563 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
23565 * file.h (grub_file): Likewise.
23567 * fshelp.h (grub_fshelp_read_file): Likewise.
23569 * util/i386/pc/grub-setup.c (setup): Likewise.
23570 (save_first_sector): Likewise.
23571 (save_blocklists): Likewise.
23573 * fs/affs.c (grub_affs_read_file): Likewise.
23575 * fs/ext2.c (grub_ext2_read_file): Likewise.
23577 * fs/fat.c (grub_fat_read_data): Likewise.
23579 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
23581 * fs/hfs.c (grub_hfs_read_file): Likewise.
23583 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
23585 * fs/jfs.c (grub_jfs_read_file): Likewise.
23587 * fs/minix.c (grub_minix_read_file): Likewise.
23589 * fs/sfs.c (grub_sfs_read_file): Likewise.
23591 * fs/ufs.c (grub_ufs_read_file): Likewise.
23593 * fs/xfs.c (grub_xfs_read_file): Likewise.
23595 * command/blocklist.c (read_blocklist): Likewise.
23596 (print_blocklist): Likewise.
23598 2007-08-02 Marco Gerards <marco@gnu.org>
23600 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
23603 * disk/host.c: New file.
23605 * util/hostfs.c: Likewise.
23607 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
23608 return `GRUB_ERR_BAD_FS'.
23609 * fs/sfs.c (grub_sfs_mount): Likewise.
23610 * fs/xfs.c (grub_xfs_mount): Likewise.
23612 * include/grub/disk.h (enum grub_disk_dev_id): Add
23613 `GRUB_DISK_DEVICE_HOST_ID'.
23615 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
23617 2007-07-24 Jerone Young <jerone@gmail.com>
23619 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
23620 modules for compilation.
23621 * conf/powerpc-ieee1275.rmk: Likewise.
23623 * include/multiboot.h: Move multiboot definitions to one file. Rename
23624 many definitions to not get grub specific.
23625 * include/multiboot2.h: Create header with multiboot 2 definitions.
23626 * include/grub/multiboot.h: Header for grub specific function
23627 prototypes and definitions.
23628 * include/grub/multiboot2.h: Likewise.
23629 * include/grub/multiboot_loader.h: Likewise.
23630 * include/grub/i386/pc/multiboot.h: Removed.
23631 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
23633 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
23634 and 2 to allow for one multiboot and module commands.
23635 * loader/multiboot2.c: Add multiboot2 functionality.
23636 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
23637 and definition names.
23638 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
23640 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
23641 ieee1275 specific multiboot2 code.
23643 * kern/i386/pc/startup.S: Change headers and definition names for
23644 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
23646 2007-07-22 Robert Millan <rmh@aybabtu.com>
23648 * geninitheader.sh: Process file specified in first parameter rather
23649 than hardcoding grub_modules_init.lst.
23650 * geninit.sh: Likewise. Also, construct header name dynamically rather
23651 than hardcoding grub_modules_init.h.
23653 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
23654 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
23655 grub_probe_init.[ch] and grub_setup_init.[ch].
23657 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
23658 grub_modules_init.h with grub_emu_init.h.
23659 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
23660 grub_probe_init.[ch] files.
23661 * conf/i386-efi.rmk: Likewise.
23662 * conf/i386-pc.rmk: Likewise.
23663 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
23664 grub_setup_init.[ch] files.
23666 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
23667 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
23668 to initialize modules rather than a list of hardcoded functions.
23669 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
23670 grub_init_all() to initialize modules rather than a list of hardcoded
23673 2007-07-22 Robert Millan <rmh@aybabtu.com>
23675 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
23676 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
23678 2007-07-22 Robert Millan <rmh@aybabtu.com>
23680 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
23681 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
23682 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
23683 flag when running on SmartFirmware.
23684 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
23685 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
23688 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
23689 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
23690 rather than decreasing it.
23692 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
23693 there's not enough space to do it, fail in the same way as when it
23694 can't be done because there are no partitions.
23696 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
23697 when nvsetenv failed.
23699 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
23701 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
23702 because this rule is automatically generated.
23703 (grub-mkrescue): Removed for the same reason as above.
23705 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
23707 Migrate to GNU General Public License Version 3.
23709 * COPYING: Replaced with the plain text version of GPLv3.
23711 * config.guess: Updated from gnulib.
23712 * config.sub: Likewise.
23714 * geninit.sh: Output a GPLv3 copyright notice.
23715 * geninitheader.sh: Likewise.
23716 * genmodsrc.sh: Likewise.
23717 * gensymlist.sh.in: Likewise.
23719 * boot/i386/pc/boot.S: Upgraded to GPLv3.
23720 * boot/i386/pc/diskboot.S: Likewise.
23721 * boot/i386/pc/pxeboot.S: Likewise.
23722 * commands/blocklist.c: Likewise.
23723 * commands/boot.c: Likewise.
23724 * commands/cat.c: Likewise.
23725 * commands/cmp.c: Likewise.
23726 * commands/configfile.c: Likewise.
23727 * commands/echo.c: Likewise.
23728 * commands/help.c: Likewise.
23729 * commands/ls.c: Likewise.
23730 * commands/search.c: Likewise.
23731 * commands/terminal.c: Likewise.
23732 * commands/test.c: Likewise.
23733 * commands/videotest.c: Likewise.
23734 * commands/i386/cpuid.c: Likewise.
23735 * commands/i386/pc/halt.c: Likewise.
23736 * commands/i386/pc/play.c: Likewise.
23737 * commands/i386/pc/reboot.c: Likewise.
23738 * commands/i386/pc/vbeinfo.c: Likewise.
23739 * commands/i386/pc/vbetest.c: Likewise.
23740 * commands/ieee1275/halt.c: Likewise.
23741 * commands/ieee1275/reboot.c: Likewise.
23742 * commands/ieee1275/suspend.c: Likewise.
23743 * disk/loopback.c: Likewise.
23744 * disk/lvm.c: Likewise.
23745 * disk/raid.c: Likewise.
23746 * disk/efi/efidisk.c: Likewise.
23747 * disk/i386/pc/biosdisk.c: Likewise.
23748 * disk/ieee1275/ofdisk.c: Likewise.
23749 * font/manager.c: Likewise.
23750 * fs/affs.c: Likewise.
23751 * fs/ext2.c: Likewise.
23752 * fs/fat.c: Likewise.
23753 * fs/fshelp.c: Likewise.
23754 * fs/hfs.c: Likewise.
23755 * fs/hfsplus.c: Likewise.
23756 * fs/iso9660.c: Likewise.
23757 * fs/jfs.c: Likewise.
23758 * fs/minix.c: Likewise.
23759 * fs/sfs.c: Likewise.
23760 * fs/ufs.c: Likewise.
23761 * fs/xfs.c: Likewise.
23762 * hello/hello.c: Likewise.
23763 * include/grub/acorn_filecore.h: Likewise.
23764 * include/grub/arg.h: Likewise.
23765 * include/grub/bitmap.h: Likewise.
23766 * include/grub/boot.h: Likewise.
23767 * include/grub/cache.h: Likewise.
23768 * include/grub/device.h: Likewise.
23769 * include/grub/disk.h: Likewise.
23770 * include/grub/dl.h: Likewise.
23771 * include/grub/elfload.h: Likewise.
23772 * include/grub/env.h: Likewise.
23773 * include/grub/err.h: Likewise.
23774 * include/grub/file.h: Likewise.
23775 * include/grub/font.h: Likewise.
23776 * include/grub/fs.h: Likewise.
23777 * include/grub/fshelp.h: Likewise.
23778 * include/grub/gzio.h: Likewise.
23779 * include/grub/hfs.h: Likewise.
23780 * include/grub/kernel.h: Likewise.
23781 * include/grub/loader.h: Likewise.
23782 * include/grub/lvm.h: Likewise.
23783 * include/grub/misc.h: Likewise.
23784 * include/grub/mm.h: Likewise.
23785 * include/grub/net.h: Likewise.
23786 * include/grub/normal.h: Likewise.
23787 * include/grub/parser.h: Likewise.
23788 * include/grub/partition.h: Likewise.
23789 * include/grub/pc_partition.h: Likewise.
23790 * include/grub/raid.h: Likewise.
23791 * include/grub/rescue.h: Likewise.
23792 * include/grub/script.h: Likewise.
23793 * include/grub/setjmp.h: Likewise.
23794 * include/grub/symbol.h: Likewise.
23795 * include/grub/term.h: Likewise.
23796 * include/grub/terminfo.h: Likewise.
23797 * include/grub/tparm.h: Likewise.
23798 * include/grub/types.h: Likewise.
23799 * include/grub/video.h: Likewise.
23800 * include/grub/efi/api.h: Likewise.
23801 * include/grub/efi/chainloader.h: Likewise.
23802 * include/grub/efi/console.h: Likewise.
23803 * include/grub/efi/console_control.h: Likewise.
23804 * include/grub/efi/disk.h: Likewise.
23805 * include/grub/efi/efi.h: Likewise.
23806 * include/grub/efi/pe32.h: Likewise.
23807 * include/grub/efi/time.h: Likewise.
23808 * include/grub/i386/linux.h: Likewise.
23809 * include/grub/i386/setjmp.h: Likewise.
23810 * include/grub/i386/types.h: Likewise.
23811 * include/grub/i386/efi/kernel.h: Likewise.
23812 * include/grub/i386/efi/loader.h: Likewise.
23813 * include/grub/i386/efi/time.h: Likewise.
23814 * include/grub/i386/pc/biosdisk.h: Likewise.
23815 * include/grub/i386/pc/boot.h: Likewise.
23816 * include/grub/i386/pc/chainloader.h: Likewise.
23817 * include/grub/i386/pc/console.h: Likewise.
23818 * include/grub/i386/pc/init.h: Likewise.
23819 * include/grub/i386/pc/kernel.h: Likewise.
23820 * include/grub/i386/pc/loader.h: Likewise.
23821 * include/grub/i386/pc/memory.h: Likewise.
23822 * include/grub/i386/pc/multiboot.h: Likewise.
23823 * include/grub/i386/pc/serial.h: Likewise.
23824 * include/grub/i386/pc/time.h: Likewise.
23825 * include/grub/i386/pc/vbe.h: Likewise.
23826 * include/grub/i386/pc/vbeblit.h: Likewise.
23827 * include/grub/i386/pc/vbefill.h: Likewise.
23828 * include/grub/i386/pc/vbeutil.h: Likewise.
23829 * include/grub/i386/pc/vga.h: Likewise.
23830 * include/grub/ieee1275/ieee1275.h: Likewise.
23831 * include/grub/ieee1275/ofdisk.h: Likewise.
23832 * include/grub/powerpc/libgcc.h: Likewise.
23833 * include/grub/powerpc/setjmp.h: Likewise.
23834 * include/grub/powerpc/types.h: Likewise.
23835 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
23836 * include/grub/powerpc/ieee1275/console.h: Likewise.
23837 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
23838 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
23839 * include/grub/powerpc/ieee1275/loader.h: Likewise.
23840 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
23841 * include/grub/powerpc/ieee1275/time.h: Likewise.
23842 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
23843 * include/grub/sparc64/libgcc.h: Likewise.
23844 * include/grub/sparc64/setjmp.h: Likewise.
23845 * include/grub/sparc64/types.h: Likewise.
23846 * include/grub/sparc64/ieee1275/console.h: Likewise.
23847 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
23848 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
23849 * include/grub/sparc64/ieee1275/time.h: Likewise.
23850 * include/grub/util/biosdisk.h: Likewise.
23851 * include/grub/util/getroot.h: Likewise.
23852 * include/grub/util/lvm.h: Likewise.
23853 * include/grub/util/misc.h: Likewise.
23854 * include/grub/util/raid.h: Likewise.
23855 * include/grub/util/resolve.h: Likewise.
23856 * io/gzio.c: Likewise.
23857 * kern/device.c: Likewise.
23858 * kern/disk.c: Likewise.
23859 * kern/dl.c: Likewise.
23860 * kern/elf.c: Likewise.
23861 * kern/env.c: Likewise.
23862 * kern/err.c: Likewise.
23863 * kern/file.c: Likewise.
23864 * kern/fs.c: Likewise.
23865 * kern/loader.c: Likewise.
23866 * kern/main.c: Likewise.
23867 * kern/misc.c: Likewise.
23868 * kern/mm.c: Likewise.
23869 * kern/parser.c: Likewise.
23870 * kern/partition.c: Likewise.
23871 * kern/rescue.c: Likewise.
23872 * kern/term.c: Likewise.
23873 * kern/efi/efi.c: Likewise.
23874 * kern/efi/init.c: Likewise.
23875 * kern/efi/mm.c: Likewise.
23876 * kern/i386/dl.c: Likewise.
23877 * kern/i386/efi/init.c: Likewise.
23878 * kern/i386/efi/startup.S: Likewise.
23879 * kern/i386/pc/init.c: Likewise.
23880 * kern/i386/pc/lzo1x.S: Likewise.
23881 * kern/i386/pc/startup.S: Likewise.
23882 * kern/ieee1275/ieee1275.c: Likewise.
23883 * kern/powerpc/cache.S: Likewise.
23884 * kern/powerpc/dl.c: Likewise.
23885 * kern/powerpc/ieee1275/cmain.c: Likewise.
23886 * kern/powerpc/ieee1275/crt0.S: Likewise.
23887 * kern/powerpc/ieee1275/init.c: Likewise.
23888 * kern/powerpc/ieee1275/openfw.c: Likewise.
23889 * kern/sparc64/cache.S: Likewise.
23890 * kern/sparc64/dl.c: Likewise.
23891 * kern/sparc64/ieee1275/init.c: Likewise.
23892 * kern/sparc64/ieee1275/openfw.c: Likewise.
23893 * loader/efi/chainloader.c: Likewise.
23894 * loader/efi/chainloader_normal.c: Likewise.
23895 * loader/i386/efi/linux.c: Likewise.
23896 * loader/i386/efi/linux_normal.c: Likewise.
23897 * loader/i386/pc/chainloader.c: Likewise.
23898 * loader/i386/pc/chainloader_normal.c: Likewise.
23899 * loader/i386/pc/linux.c: Likewise.
23900 * loader/i386/pc/linux_normal.c: Likewise.
23901 * loader/i386/pc/multiboot.c: Likewise.
23902 * loader/i386/pc/multiboot_normal.c: Likewise.
23903 * loader/powerpc/ieee1275/linux.c: Likewise.
23904 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
23905 * normal/arg.c: Likewise.
23906 * normal/cmdline.c: Likewise.
23907 * normal/command.c: Likewise.
23908 * normal/completion.c: Likewise.
23909 * normal/execute.c: Likewise.
23910 * normal/function.c: Likewise.
23911 * normal/lexer.c: Likewise.
23912 * normal/main.c: Likewise.
23913 * normal/menu.c: Likewise.
23914 * normal/menu_entry.c: Likewise.
23915 * normal/misc.c: Likewise.
23916 * normal/parser.y: Likewise.
23917 * normal/script.c: Likewise.
23918 * normal/i386/setjmp.S: Likewise.
23919 * normal/powerpc/setjmp.S: Likewise.
23920 * normal/sparc64/setjmp.S: Likewise.
23921 * partmap/acorn.c: Likewise.
23922 * partmap/amiga.c: Likewise.
23923 * partmap/apple.c: Likewise.
23924 * partmap/gpt.c: Likewise.
23925 * partmap/pc.c: Likewise.
23926 * partmap/sun.c: Likewise.
23927 * term/gfxterm.c: Likewise.
23928 * term/terminfo.c: Likewise.
23929 * term/efi/console.c: Likewise.
23930 * term/i386/pc/console.c: Likewise.
23931 * term/i386/pc/serial.c: Likewise.
23932 * term/i386/pc/vesafb.c: Likewise.
23933 * term/i386/pc/vga.c: Likewise.
23934 * term/ieee1275/ofconsole.c: Likewise.
23935 * util/biosdisk.c: Likewise.
23936 * util/console.c: Likewise.
23937 * util/genmoddep.c: Likewise.
23938 * util/getroot.c: Likewise.
23939 * util/grub-emu.c: Likewise.
23940 * util/grub-mkdevicemap.c: Likewise.
23941 * util/grub-probe.c: Likewise.
23942 * util/lvm.c: Likewise.
23943 * util/misc.c: Likewise.
23944 * util/raid.c: Likewise.
23945 * util/resolve.c: Likewise.
23946 * util/update-grub.in: Likewise.
23947 * util/update-grub_lib.in: Likewise.
23948 * util/grub.d/00_header.in: Likewise.
23949 * util/grub.d/10_hurd.in: Likewise.
23950 * util/grub.d/10_linux.in: Likewise.
23951 * util/i386/efi/grub-install.in: Likewise.
23952 * util/i386/efi/grub-mkimage.c: Likewise.
23953 * util/i386/pc/grub-install.in: Likewise.
23954 * util/i386/pc/grub-mkimage.c: Likewise.
23955 * util/i386/pc/grub-mkrescue.in: Likewise.
23956 * util/i386/pc/grub-setup.c: Likewise.
23957 * util/i386/pc/misc.c: Likewise.
23958 * util/powerpc/ieee1275/grub-install.in: Likewise.
23959 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
23960 * util/powerpc/ieee1275/misc.c: Likewise.
23961 * video/bitmap.c: Likewise.
23962 * video/video.c: Likewise.
23963 * video/i386/pc/vbe.c: Likewise.
23964 * video/i386/pc/vbeblit.c: Likewise.
23965 * video/i386/pc/vbefill.c: Likewise.
23966 * video/i386/pc/vbeutil.c: Likewise.
23967 * video/readers/tga.c: Likewise.
23969 2007-07-02 Robert Millan <rmh@aybabtu.com>
23971 * conf/i386-efi.rmk: Replace obsolete reference to
23972 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
23973 with util/getroot.c.
23974 * conf/powerpc-ieee1275.rmk: Likewise.
23975 * conf/sparc64-ieee1275.rmk: Likewise.
23977 * util/grub-emu.c (main): Fix unchecked pointer handling.
23979 2007-07-02 Robert Millan <rmh@aybabtu.com>
23981 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
23982 invocation to fail, in order to support partition-less media.
23984 * util/i386/pc/grub-install.in: Likewise.
23986 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
23987 which fs or partmap modules are needed (akin to its sister scripts).
23989 Also use grub-probe to get rid of unportable /proc/mounts check.
23991 Print the same informational message that the other scripts do, before
23994 2007-06-23 Robert Millan <rmh@aybabtu.com>
23996 * util/update-grub_lib.in (font_path): New function. Determine whether
23997 a font file can be found and, if so, echo the GRUB path to it.
23999 * util/update-grub.in: Handle multiple terminals depending on user
24000 input, platform availability and font file presence. Propagate
24001 variables of our findings to /etc/grub.d/ children.
24003 * util/grub.d/00_header.in: Handle multiple terminals, based on
24004 environment setup by update-grub.
24006 2007-06-23 Robert Millan <rmh@aybabtu.com>
24008 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
24010 2007-06-21 Robert Millan <rmh@aybabtu.com>
24012 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
24013 indicate end of data section in kernel image.
24014 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
24015 GRUB_KERNEL_MACHINE_DATA_END.
24017 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
24019 * kern/i386/efi/startup.S: Likewise.
24021 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
24022 during image generation. Implement --prefix option to override this
24024 * util/i386/efi/grub-mkimage.c: Likewise.
24026 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
24027 code to make path relative to its root into a separate function.
24029 * util/i386/pc/grub-install.in: Use newly provided
24030 make_system_path_relative_to_its_root() to convert ${grubdir}, then
24031 pass the result to grub-install --prefix.
24033 2007-06-13 Robert Millan <rmh@aybabtu.com>
24035 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
24036 DEFAULT_DEVICE_MAP.
24037 * util/grub-emu.c: Use above definitions from misc.h instead of
24039 * util/grub-mkdevicemap.c: Likewise.
24040 * util/i386/pc/grub-setup.c: Likewise.
24041 * util/grub-probe.c: Likewise.
24042 (probe): Abort with grub_util_error() when either
24043 grub_guess_root_device or grub_util_get_grub_dev fails.
24045 2007-06-12 Robert Millan <rmh@aybabtu.com>
24047 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
24048 "pager" assignment.
24049 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
24051 * util/grub-probe.c (probe): Likewise for "drive_name".
24053 2007-06-11 Robert Millan <rmh@aybabtu.com>
24055 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
24056 not just the cdrom one.
24058 2007-06-11 Robert Millan <rmh@aybabtu.com>
24060 * util/i386/pc/grub-mkrescue.in: Add "set -e".
24061 Add --pkglibdir=DIR option to override pkglibdir.
24062 Mention --image-type=TYPE in help output.
24063 Fix --grub-mkimage (it was a no-op).
24064 Abort gracefully when no parameter is given.
24066 2007-06-11 Robert Millan <rmh@aybabtu.com>
24068 * util/i386/pc/grub-mkrescue.in: New file.
24069 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
24070 * Makefile.in: Handle bin_SCRIPTS.
24072 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
24074 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
24075 list of video modes.
24077 2007-06-06 Robert Millan <rmh@aybabtu.com>
24079 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
24080 file doesn't exist, or if it is in a filesystem grub can't read.
24082 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
24083 not abort if GRUB_DRIVE could not be defined. Rearrange generated
24084 header comment to fit in 80 columns when the variables are resolved.
24086 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
24087 could be identified by update-grub. Remove redundant check for
24088 unifont.pff existence (since convert_system_path_to_grub_path now
24091 2007-06-04 Robert Millan <rmh@aybabtu.com>
24093 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
24095 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
24097 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
24099 2007-06-04 Robert Millan <rmh@aybabtu.com>
24101 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
24103 * include/grub/partition.h: Declare grub_apple_partition_map_init and
24104 grub_apple_partition_map_fini.
24107 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
24108 to access >2 TiB disks).
24110 Print disk->total_sectors with %llu instead of %lu, since this
24111 variable is always 64-bit (prevents wrong disk size from being displayed
24112 on either >2 TiB disk or big-endian CPU).
24114 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
24115 into a generic case that supports all (sane) partition maps.
24117 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
24120 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
24121 and grub_apple_partition_map_fini() after that.
24123 2007-06-01 Robert Millan <rmh@aybabtu.com>
24125 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
24127 * util/grub.d/00_header.in: Only enable gfxterm when
24128 convert_system_path_to_grub_path() succeeds.
24130 2007-05-20 Robert Millan <rmh@aybabtu.com>
24132 * util/update-grub_lib.in: New file.
24133 * DISTLIST: Add update-grub_lib.in.
24134 * conf/common.rmk: Generate update-grub_lib and install it in
24136 * Makefile.in: Add install routine for $(lib_DATA).
24138 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
24139 function provided by update-grub_lib to support arbitrary paths of
24141 * util/update-grub.in: Use convert_system_path_to_grub_path() to
24142 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
24144 2007-05-19 Robert Millan <rmh@aybabtu.com>
24146 * commands/i386/cpuid.c: New module.
24147 * DISTLIST: Add it.
24148 * conf/i386-efi.rmk: Enable cpuid.mod.
24149 * conf/i386-pc.rmk: Likewise.
24151 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
24153 * kern/disk.c (grub_disk_read): Check return value of
24156 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
24158 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
24160 * disk/raid.c (grub_raid_open): Likewise.
24162 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
24164 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
24165 stack instead of on the heap.
24167 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
24168 before doing a read on it.
24170 * configure.ac: Only use -fno-stack-protector for the target
24173 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
24175 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
24176 __attribute_ ((unused)) to mode_type argument.
24178 * util/getroot.c (grub_guess_root_device): Fix #endif.
24180 * kern/misc.c (memcmp): Fix prototype.
24182 * include/grub/partition.h [GRUB_UTIL]
24183 (grub_gpt_partition_map_init): Add prototype.
24184 (grub_gpt_partition_map_fini): Likewise.
24186 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
24187 at the right place.
24189 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
24190 (grub_fat_read_data): Likewise.
24191 (grub_fat_find_dir): Likewise.
24193 * font/manager.c (find_glyph): Make table a const.
24194 (grub_font_get_glyph): Remove bitmap from if statement.
24196 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
24198 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
24199 code, first search for device in /dev/mapper, then in /dev.
24200 (grub_util_get_grub_dev): New function.
24201 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
24203 * util/grub-probe.c (probe): Remove check for RAID, call
24204 grub_util_get_grub_dev() instead of
24205 grub_util_biosdisk_get_grub_dev().
24206 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
24207 grub_util_biosdisk_get_grub_dev().
24208 * util/i386/pc/grub-setup.c (main): Likewise.
24210 2007-05-16 Robert Millan <rmh@aybabtu.com>
24212 * DISTLIST: Update for the latest changes.
24213 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
24214 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
24215 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
24216 grub/util/biosdisk.h.
24217 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
24218 grub/util/biosdisk.h.
24220 2007-05-16 Robert Millan <rmh@aybabtu.com>
24222 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
24224 2007-05-16 Robert Millan <rmh@aybabtu.com>
24226 * util/i386/efi/grub-install.in: New.
24227 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
24228 newly added grub-install.
24229 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
24231 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
24232 grub/util/biosdisk.h.
24233 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
24234 grub/util/biosdisk.h.
24236 2007-05-16 Robert Millan <rmh@aybabtu.com>
24238 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
24239 * include/grub/util/biosdisk.h: ... here.
24240 * util/i386/pc/biosdisk.c: Moved to ...
24241 * util/biosdisk.c: ... here.
24242 * util/i386/pc/getroot.c: Moved to ...
24243 * util/getroot.c: ... here.
24244 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
24245 * util/grub-mkdevicemap.c: ... here.
24246 * util/i386/pc/grub-probe.c: Moved to ...
24247 * util/grub-probe.c: ... here.
24249 2007-05-15 Robert Millan <rmh@aybabtu.com>
24251 * util/update-grub.in: Remove duplicated line in grub.cfg header
24254 2007-05-13 Robert Millan <rmh@aybabtu.com>
24256 * util/update-grub.in: Fix a few assumptions about the devices holding
24257 /, /boot and /boot/grub being the same.
24258 * util/grub.d/00_header.in: Likewise.
24259 * util/grub.d/10_hurd.in: Likewise.
24260 * util/grub.d/10_linux.in: Likewise.
24262 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
24263 patterns. Use that to define the `.old' suffix as older than `'.
24265 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
24267 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
24268 the grub.cfg header message.
24270 2007-05-11 Robert Millan <rmh@aybabtu.com>
24272 * util/update-grub.in: Create device.map if it doesn't already exist,
24273 before attempting to run grub-probe.
24274 Check for grub-probe and grub-mkdevicemap with the same code
24275 grub-install is using.
24278 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
24280 * Makefile.in: Add the datarootdir autoconf variable.
24282 2007-05-09 Robert Millan <rmh@aybabtu.com>
24284 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
24285 fail gracefully if dev->disk->partition == NULL.
24287 2007-05-07 Robert Millan <rmh@aybabtu.com>
24289 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
24290 determine partition map module.
24291 * util/i386/pc/grub-install.in: Use this feature to decide which
24292 partition module to load, instead of hardcoding pc and gpt.
24294 2007-05-07 Robert Millan <rmh@aybabtu.com>
24296 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
24297 source directory differs from build directory.
24299 2007-05-05 Robert Millan <rmh@aybabtu.com>
24301 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
24304 2007-05-05 Robert Millan <rmh@aybabtu.com>
24306 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
24308 2007-05-05 Robert Millan <rmh@aybabtu.com>
24310 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
24311 command-line arguments via ${GRUB_CMDLINE_LINUX}.
24313 2007-05-05 Robert Millan <rmh@aybabtu.com>
24315 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
24316 (grub_probe_SOURCES): Likewise.
24317 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
24318 GPT and initialize dos_part and bsd_part accordingly.
24319 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
24321 (main): Activate gpt module for use during partition identification,
24322 and deactivate it afterwards.
24323 * util/i386/pc/grub-install.in: Add gpt module to core.img.
24324 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
24325 partition identification, and deactivate it afterwards.
24327 2007-05-05 Robert Millan <rmh@aybabtu.com>
24329 * term/i386/pc/console.c (grub_console_fini): Call
24330 grub_term_set_current() before grub_term_unregister().
24332 2007-05-04 Robert Millan <rmh@aybabtu.com>
24334 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
24335 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
24336 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
24337 and update-grub_DATA.
24338 * conf/common.rmk: Build and install update-grub components.
24339 * conf/common.mk: Regenerate.
24340 * util/update-grub.in: New. Core of update-grub.
24341 * util/grub.d/00_header.in: New. Generates grub.cfg header.
24342 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
24343 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
24344 * util/grub.d/README: New. Document grub.d directory layout.
24346 2007-05-01 Robert Millan <rmh@aybabtu.com>
24348 * util/grub-emu.c: Move initialization functions
24349 grub_util_biosdisk_init() and grub_init_all() before
24350 grub_util_biosdisk_get_grub_dev(), which relies on them.
24352 2007-04-19 Robert Millan <rmh@aybabtu.com>
24354 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
24357 2007-04-18 Jerone Young <jerone@gmail.com>
24359 * kernel/elf.c: Add missing parenthesis for conditional statement
24362 2007-04-10 Jerone Young <jerone@gmail.com>
24364 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
24365 continue on and look for device node with real device name.
24367 2007-04-10 Jerone Young <jerone@gmail.com>
24369 * configure.ac: Add argument for autoconf to use transformation
24371 * Makefile.in: Add autoconf package transformation code.
24372 * util/i386/pc/grub-install.in: Likewise.
24373 * util/powerpc/ieee1275/grub-install.in: Likewise.
24375 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
24377 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
24378 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
24379 (EXT2_REVISION): Likewise.
24380 (EXT2_INODE_SIZE): Likewise.
24381 (struct grub_ext2_block_group): Added a missing member
24383 (grub_ext2_read_inode): Divide by the inode size in a superblock
24384 instead of 128 to obtain INODES_PER_BLOCK.
24385 Use the macro EXT2_INODE_SIZE instead of directly using
24386 SBLOCK->INODE_SIZE.
24388 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
24390 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
24391 superblock instead of the structure size to compute an
24392 offset. This fixes the problem that GRUB could not read a
24393 filesystem when inode size is different from 128-byte.
24395 2007-03-05 Marco Gerards <marco@gnu.org>
24397 * normal/main.c (read_config_file): When "menu" is not set, create
24398 an initial context.
24400 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
24402 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
24403 (HEAP_LIMIT): New macro.
24404 (grub_claim_heap): Claim memory up to `heaplimit'.
24406 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
24408 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
24409 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
24410 (_start): Likewise.
24411 (grub_arch_modules_addr): Return address after `_end'.
24412 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
24413 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
24414 (add_segments): Calculate `_end' from phdr size and location.
24415 (ALIGN_UP): Moved to ...
24416 * include/grub/misc.h: here.
24417 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
24419 (GRUB_IEEE1275_MODULE_BASE): Removed.
24421 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
24423 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
24426 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
24428 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
24430 (grub_elf64_load_hook_t): Likewise.
24431 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
24434 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
24436 * kern/mm.c: Update copyright.
24437 (grub_mm_debug): Correct syntax error.
24438 (grub_mm_dump_free): New function.
24439 (grub_debug_free): Call `grub_free'.
24440 * include/grub/mm.h: Update copyright.
24441 (grub_mm_dump_free): Add declaration.
24443 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
24445 * include/grub/ieee1275/ieee1275.h: Update copyright.
24446 * kern/powerpc/ieee1275/init.c: Likewise.
24447 * kern/powerpc/ieee1275/openfw.c: Likewise.
24449 * loader/powerpc/ieee1275/linux.c: Likewise.
24450 * include/grub/elfload.h: Likewise.
24451 * kern/elf.c: Likewise.
24452 (grub_elf32_load): Pass `base' and `size' parameters. Update all
24454 (grub_elf64_load): Likewise.
24455 (grub_elf32_load_segment): Move to a nested function.
24456 (grub_elf64_load_segment): Likewise.
24458 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
24460 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
24462 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
24463 (grub_heap_len): Likewise.
24464 (HEAP_SIZE): New macro.
24465 (grub_claim_heap): New function.
24466 (grub_machine_init): Don't claim heap directly. Call
24468 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
24469 (grub_available_iterate): New function.
24471 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
24473 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
24474 * configure.ac: Use it for testing the HOST and TARGET compilers.
24476 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
24478 * Makefile.in (enable_grub_emu): New variable.
24479 * configure.ac (--enable-grub-emu): New option.
24480 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
24481 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
24482 * conf/i386-pc.rmk: Likewise.
24483 * conf/powerpc-ieee1275.rmk: Likewise.
24484 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
24486 2006-12-12 Marco Gerards <marco@gnu.org>
24488 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
24490 * kern/env.c (grub_env_unset): Don't free the member `value' when
24491 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
24494 * normal/main.c (current_menu): Removed.
24495 (free_menu): Unset the `menu' environment variable.
24496 (grub_normal_menu_addentry): Make use of the environment variable
24497 `menu', instead of using the global `current_menu'. Allocate
24498 memory for the sourcecode of this entry.
24499 (read_config_file): New argument `nested', changed all callers.
24500 Only in the case of a new context, initialize a new menu. Set the
24501 `menu' environment variable.
24502 (grub_normal_execute): Don't set and unset the environment
24503 variable `menu' here anymore. Only free the menu when leaving the
24506 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
24509 2006-12-11 Marco Gerards <marco@gnu.org>
24511 * normal/menu_entry.c (run): Fix off by one bug so the last line
24512 is executed. Move the loader check to outside the loop.
24514 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
24516 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
24518 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
24520 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
24521 the number of sectors. Reported by Andrey Shuvikov
24522 <mr_hyro@yahoo.com>.
24524 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
24526 * kern/disk.c (grub_disk_read): When there is a read error, always
24527 try to read only the necessary data.
24529 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
24531 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
24533 [GRUB_UTIL] (grub_raid_fini): Likewise.
24534 [GRUB_UTIL] (grub_lvm_init): Likewise.
24535 [GRUB_UTIL] (grub_lvm_fini): Likewise.
24536 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
24537 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
24538 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
24539 and grub_raid_fini().
24541 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
24543 * include/grub/types.h (__unused): Rename to UNUSED.
24544 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
24545 (grub_elf64_size): Likewise.
24547 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
24549 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
24550 grub_error_push and grub_error_pop in the error-handling path.
24551 (grub_elf32_load_segment): Only call grub_file_read with non-zero
24554 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
24556 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
24557 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24558 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24559 (kernel_elf_SOURCES): Likewise.
24560 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
24561 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
24562 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
24563 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
24564 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
24565 (elf_mod_SOURCES): New variable.
24566 (elf_mod_CFLAGS): Likewise.
24567 (elf_mod_LDFLAGS): Likewise.
24568 * include/grub/types.h (__unused): New macro.
24569 * include/grub/elfload.h: New file.
24570 * kern/elf.c: Likewise.
24571 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
24572 (ELF32_LOADMASK): New macro.
24573 (ELF64_LOADMASK): Likewise.
24574 (vmlinux): Removed.
24575 (grub_linux_load32): New function.
24576 (grub_linux_load64): Likewise.
24577 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
24578 Use grub_elf_t instead of grub_file_t.
24580 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
24582 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
24583 `catch_result' to struct set_color_args.
24585 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24587 * normal/menu.c: Include grub/script.h.
24588 * normal/menu_entry.c: Likewise.
24589 * include/grub/normal.h: Do not include grub/script.h.
24591 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
24593 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
24595 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
24597 * kern/disk.c (grub_disk_open): Print debug messages when opening a
24599 (grub_disk_close): Print debug messages when closing a disk.
24600 (grub_disk_read): Print debug messages when disk read fails.
24601 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
24603 * kern/partition.c: Include misc.h.
24604 (grub_partition_iterate): Print debug messages when detecting
24607 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
24609 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
24611 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
24613 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
24615 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
24616 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
24618 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
24620 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
24621 instead of sizeof(lv). Patch by Michael Guntsche.
24623 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
24625 * disk/lvm.c: Rename VGS to VG_LIST.
24626 (grub_lvm_iterate): Change VGS->LV to VG-LV.
24627 (grub_lvm_open): Likewise.
24628 Thanks to Michael Guntsche for finding this bug.
24630 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24632 * configure.ac (AC_INIT): Bumped to 1.95.
24634 2006-10-14 Robert Millan <rmh@aybabtu.com>
24636 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
24637 with "/dev/.static/dev/md".
24639 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
24641 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
24642 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
24643 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
24644 DRIVE_NAME are always freed.
24646 * util/i386/pc/biosdisk.c (make_device_name): Add one into
24647 DOS_PART, as a DOS partition is counted from one instead of zero
24648 now. Reported by Robert Millan.
24650 2006-10-14 Robert Millan <rmh@aybabtu.com>
24652 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
24653 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
24654 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
24655 string returned by grub_guess_root_device.
24656 * util/i386/pc/grub-setup.c: Likewise.
24657 * util/i386/pc/grub-probefs.c: Likewise.
24659 * util/i386/pc/grub-probefs.c: Rename to ...
24660 * util/i386/pc/grub-probe.c: ... this.
24661 * DISTLIST: Remove grub-probefs, add grub-probe.
24662 * conf/i386-efi.rmk: Likewise.
24663 * conf/i386-pc.rmk: Likewise.
24664 * util/i386/pc/grub-install.in: Likewise.
24666 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
24667 choose which information we want to print.
24669 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
24671 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
24672 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
24673 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
24674 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
24675 video/readers/tga.c and video/i386/pc/vbeutil.c.
24677 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
24679 Added support for RAID and LVM.
24681 * disk/lvm.c: New file.
24682 * disk/raid.c: Likewise.
24683 * include/grub/lvm.h: Likewise.
24684 * include/grub/raid.h: Likewise.
24685 * include/grub/util/lvm.h: Likewise.
24686 * include/grub/util/raid.h: Likewise.
24687 * util/lvm.c: Likewise.
24688 * util/raid.c: Likewise.
24690 * include/grub/disk.h (grub_disk_dev_id): Add
24691 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
24692 (grub_disk_get_size): New prototype.
24693 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
24694 returns a partition.
24695 (grub_disk_get_size): New function.
24697 * kern/i386/pc/init.c (make_install_device): Copy the prefix
24698 verbatim if grub_install_dos_part is -2.
24700 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
24703 * util/i386/pc/grub-setup.c (setup): New argument
24704 MUST_EMBED. Force embedding of GRUB when the argument is
24705 true. Close FILE before returning.
24706 (main): Add support for RAID and LVM.
24708 * conf/common.rmk: Add RAID and LVM modules.
24709 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
24711 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
24713 * kern/misc.c (grub_strstr): New function.
24714 * include/grub/misc.h (grub_strstr): New prototype.
24716 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
24718 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
24720 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
24722 * kern/misc.c (grub_strtoull): Guess the base only if not
24725 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
24727 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
24730 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
24732 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
24734 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
24735 Remove `flags' argument. All callers changed.
24736 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
24737 (IEEE1275_IHANDLE_INVALID): New variable.
24738 (IEEE1275_CELL_INVALID): New variable.
24739 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
24740 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
24741 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
24742 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
24743 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
24744 codes from Open Firmware. All callers updated.
24745 (grub_ieee1275_next_property): Directly return Open Firmware return
24747 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
24748 Standardize error checking from `grub_ieee1275_get_property'.
24749 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
24750 `devalias' to `aliases'. Correct comments. Consolidate error paths.
24752 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
24754 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
24755 `instance_to_package_args' to `instance_to_path_args'.
24757 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
24758 `grub_ieee1275_chosen'.
24760 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
24761 `grub_ieee1275_interpret'.
24763 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
24765 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
24767 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
24769 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
24770 (__cmpdi): Likewise.
24772 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
24773 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
24776 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
24778 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
24779 to type `grub_ssize_t'.
24780 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
24782 2006-09-22 Marco Gerards <marco@gnu.org>
24784 * normal/script.c (grub_script_create_cmdmenu): Skip leading
24787 2006-09-22 Marco Gerards <marco@gnu.org>
24789 * commands/echo.c: New file.
24791 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
24793 * conf/common.rmk (echo_mod_SOURCES): New variable.
24794 (echo_mod_CFLAGS): Likewise.
24795 (echo_mod_LDFLAGS): Likewise.
24797 2006-09-22 Marco Gerards <marco@gnu.org>
24799 * normal/main.c (get_line): Malloc memory instead of using
24800 preallocated memory. Removed the arguments `cmdline' and
24801 `max_len'. Updated all callers.
24803 2006-09-22 Marco Gerards <marco@gnu.org>
24805 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
24806 (normal_mod_DEPENDENCIES): Likewise.
24808 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
24809 (normal_mod_DEPENDENCIES): Likewise.
24811 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
24813 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
24815 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
24817 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
24818 (normal_mod_DEPENDENCIES): Likewise.
24819 * conf/i386-pc.mk: Regenerate.
24820 * conf/i386-efi.mk: Likewise
24821 * conf/common.mk: Likewise.
24822 * conf/powerpc-ieee1275.mk: Likewise.
24823 * conf/sparc64-ieee1275.mk: Likewise.
24825 2006-09-22 Robert Millan <rmh@aybabtu.com>
24827 Sync with i386 version.
24828 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
24829 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
24831 2006-09-21 Robert Millan <rmh@aybabtu.com>
24833 Import from GRUB Legacy (lib/device.c):
24834 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
24835 (init_device_map) [__linux__]: Add support for I2O devices.
24837 2006-09-14 Marco Gerards <marco@gnu.org>
24839 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
24842 2006-09-14 Robert Millan <rmh@aybabtu.com>
24844 * util/i386/pc/grub-install.in: Skip menu.lst when removing
24847 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
24849 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
24850 before adding it to device.map.
24852 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
24854 * genmk.rb: Let GCC generate dependencies the first time it
24855 compiles a file; using the -MD option.
24856 * conf/common.mk: Regenerate.
24857 * conf/i386-pc.mk: Likewise.
24858 * conf/i386-efi.mk: Likewise.
24859 * conf/powerpc-ieee1275.mk: Likewise.
24860 * conf/sparc64-ieee1275.mk: Likewise.
24862 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
24864 Move the prototypes of grub_setjmp and grub_longjmp to
24865 cpu/setjmp.h, so that each architecture may specify different
24868 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
24869 (grub_longjmp): Likewise.
24870 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
24871 (grub_longjmp): Likewise.
24872 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
24873 (grub_longjmp): Likewise.
24875 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
24876 [!GRUB_UTIL] (grub_longjmp): Removed.
24878 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
24880 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
24881 "color!" method does not return any value.
24883 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
24885 * include/grub/bitmap.h: New file.
24887 * include/grub/i386/pc/vbeutil.h: Likewise.
24889 * video/bitmap.c: Likewise.
24891 * video/readers/tga.c: Likewise.
24893 * video/i386/pc/vbeutil.c: Likewise.
24895 * commands/videotest.c: Code cleanup and updated to reflect to new
24898 * term/gfxterm.c: Likewise.
24900 * video/video.c: Likewise.
24902 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
24903 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
24904 (bitmap_mod_SOURCES): New entry.
24905 (bitmap_mod_CFLAGS): Likewise.
24906 (bitmap_mod_LDFLAGS): Likewise.
24907 (tga_mod_SOURCES): Likewise.
24908 (tga_mod_CFLAGS): Likewise.
24909 (tga_mod_LDFLAGS): Likewise.
24911 * include/grub/video.h (grub_video_blit_operators): New enum type.
24912 (grub_video_render_target): Changed as forward declaration and moved
24913 actual definition to be video driver specific.
24914 (grub_video_adapter.blit_bitmap): Added blitting operator.
24915 (grub_video_adapter.blit_render_target): Likewise.
24916 (grub_video_blit_bitmap): Likewise.
24917 (grub_video_blit_render_target): Likewise.
24919 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
24920 driver specific render target definition.
24921 (grub_video_vbe_map_rgba): Added driver internal helper.
24922 (grub_video_vbe_unmap_color): Updated to use
24923 grub_video_i386_vbeblit_info.
24924 (grub_video_vbe_get_video_ptr): Likewise.
24926 * include/grub/i386/pc/vbeblit.h
24927 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
24928 grub_video_i386_vbeblit_info.
24929 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
24930 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
24931 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
24932 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
24933 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
24934 (grub_video_i386_vbeblit_index_index): Likewise.
24935 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
24936 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
24937 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
24938 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
24940 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
24943 * video/i386/pc/vbeblit.c: Updated to reflect changes on
24944 include/grub/i386/pc/vbeblit.h.
24946 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
24947 Updated to use grub_video_i386_vbeblit_info.
24948 (grub_video_i386_vbefill_R8G8B8): Likewise.
24949 (grub_video_i386_vbefill_index): Likewise.
24950 (grub_video_i386_vbefill): Added generic filler.
24952 * video/i386/pc/vbefill.c: Updated to reflect changes on
24953 include/grub/i386/pc/vbefill.h.
24955 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
24956 grub_video_i386_vbeblit_info.
24957 (grub_video_vbe_unmap_color): Likewise.
24958 (grub_video_vbe_blit_glyph): Likewise.
24959 (grub_video_vbe_scroll): Likewise.
24960 (grub_video_vbe_draw_pixel): Removed function.
24961 (grub_video_vbe_get_pixel): Likewise.
24962 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
24963 updated code to use it.
24964 (common_blitter): Added common blitter for render target and bitmap.
24965 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
24966 (grub_video_vbe_blit_render_target): Likewise.
24968 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
24970 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
24971 is in text mode if there is no console control protocol instance
24974 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
24976 * include/grub/video.h: Code cleanup.
24978 * include/grub/i386/pc/vbe.h: Likewise.
24980 * video/i386/pc/vbe.c: Likewise.
24982 * video/i386/pc/vbeblit.c: Likewise.
24984 * video/i386/pc/vbefill.c: Likewise.
24986 * video/video.c: Likewise. Also added more comments.
24988 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
24990 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
24991 (struct grub_biosdisk_dap): Likewise.
24993 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
24994 linkage settings for all functions.
24996 2006-07-12 Marco Gerards <marco@gnu.org>
24998 * configure.ac (--enable-mm-debug): Fix typo.
25000 * genkernsyms.sh.in: Use proper quoting for `CC'.
25002 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
25004 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
25005 (normal_mod_ASFLAGS): Remove "-m32".
25007 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
25009 * util/misc.c: Include config.h.
25010 [!HAVE_MEMALIGN]: Do not include malloc.h.
25011 (grub_memalign): Use posix_memalign, if present. Then, use
25012 memalign, if present. Otherwise, emit an error.
25014 * util/grub-emu.c: Do not include malloc.h.
25016 * include/grub/util/misc.h: Include unistd.h. This is required for
25017 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
25018 D. Eades III <hde@foobar-qux.org>.
25020 * configure.ac (AC_GNU_SOURCE): Added.
25021 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
25024 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
25026 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
25027 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
25029 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
25031 * include/grub/types.h (grub_host_addr_t): Rename to
25032 grub_target_addr_t.
25033 (grub_host_off_t): Rename to grub_target_off_t.
25034 (grub_host_size_t): Rename to grub_target_size_t.
25035 (grub_host_ssize_t): Rename to grub_target_ssize_t.
25036 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
25038 * include/grub/kernel.h (struct grub_module_header): Change type
25039 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
25040 (grub_module_info): Likewise.
25042 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
25044 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
25045 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
25046 Velazquez <jesus.velazquez@gmail.com>.
25048 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
25050 Count partitions from 1 instead of 0 in the string representation
25051 of partitions. Still use 0-based internally.
25053 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
25054 (sun_partition_map_iterate): Use grub_partition_t instead of
25055 struct grub_partition *. Cast DESC->START_CYLINDER to
25056 grub_uint64_t after converting the endian.
25057 (sun_partition_map_probe): Subtract 1 for PARTNUM.
25058 (sun_partition_map_get_name): Add 1 to P->INDEX.
25060 * partmap/pc.c (grub_partition_parse): Subtract 1 for
25062 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
25064 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
25065 zero instead of one.
25066 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
25067 (gpt_partition_map_get_name): Add 1 into P->INDEX.
25069 * partmap/apple.c (apple_partition_map_iterate): Change the type
25070 of POS to unsigned.
25071 (apple_partition_map_probe): Subtract 1 for PARTNUM.
25072 (apple_partition_map_get_name): Add 1 into P->INDEX.
25074 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
25075 of POS to unsigned.
25076 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
25077 calculate the offset of a partition.
25078 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
25079 (amiga_partition_map_get_name): Add 1 into P->INDEX.
25081 * partmap/acorn.c (acorn_partition_map_find): Change the type of
25082 SECTOR to grub_disk_addr_t.
25083 (acorn_partition_map_iterate): Likewise.
25084 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
25085 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
25087 (acorn_partition_map_get_name): Add 1 into P->INDEX.
25089 * kern/i386/pc/init.c (make_install_device): Add 1 into
25090 GRUB_INSTALL_DOS_PART.
25092 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
25095 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
25097 Clean up the code to support 64-bit addressing in disks and
25098 files. This change is not enough for filesystems yet.
25100 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
25101 type of "start" to grub_uint64_t.
25102 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
25103 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
25104 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
25107 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
25108 to grub_disk_addr_t.
25110 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
25113 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25115 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
25118 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
25120 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
25122 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
25124 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
25125 to grub_off_t, to detect an error from grub_file_seek.
25126 (grub_multiboot_load_elf32): Likewise.
25128 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
25129 maximum unsigned long value when an overflow is detected.
25130 (grub_strtoull): New function.
25131 (grub_divmod64): Likewise.
25132 (grub_lltoa): use grub_divmod64.
25134 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
25136 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
25137 the pointer to next character. Use grub_strtoull instead of
25139 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
25140 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
25143 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
25144 return value is signed.
25145 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
25146 test if OFFSET is less than zero, as OFFSET is unsigned now.
25148 * kern/disk.c (struct grub_disk_cache): Change the type of
25149 "sector" to grub_disk_addr_t.
25150 (grub_disk_cache_get_index): Change the type of SECTOR to
25151 grub_disk_addr_t. Calculate the hash with SECTOR casted to
25152 unsigned after shifting.
25153 (grub_disk_cache_invalidate): Change the type of SECTOR to
25155 (grub_disk_cache_unlock): Likewise.
25156 (grub_disk_cache_store): Likewise.
25157 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
25158 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
25159 grub_disk_addr_t and grub_uint64_t, respectively.
25160 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
25161 body, as the value of OFFSET is tweaked by
25162 grub_disk_check_range. Change the types of START_SECTOR, LEN and
25163 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
25165 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
25166 body, as the value of OFFSET is tweaked by
25167 grub_disk_check_range. Change the types of LEN and N to
25170 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
25171 and "saved_offset" to grub_off_t.
25172 (test_header): Cast BUF to char *.
25173 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
25175 (grub_gzio_read): Change the types of OFFSET and SIZE to
25176 grub_off_t and grub_size_t, respectively.
25178 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
25180 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
25181 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
25182 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
25183 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
25184 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
25186 * include/grub/types.h (grub_off_t): Unconditionally set to
25188 (grub_disk_addr_t): Changed to grub_uint64_t.
25190 * include/grub/partition.h (struct grub_partition): Change the
25191 types of "start", "len" and "offset" to grub_disk_addr_t,
25192 grub_uint64_t and grub_disk_addr_t, respectively.
25193 (grub_partition_get_start): Return grub_disk_addr_t.
25194 (grub_partition_get_len): Return grub_uint64_t.
25196 * include/grub/misc.h (grub_strtoull): New prototype.
25197 (grub_divmod64): Likewise.
25199 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
25200 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
25201 grub_off_t, respectively.
25202 All callers and references changed.
25204 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
25205 grub_size_t in "read".
25206 All callers and references changed.
25208 * include/grub/file.h (struct grub_file): Change the types of
25209 "offset" and "size" to grub_off_t and grub_off_t,
25210 respectively. Change the type of SECTOR to grub_disk_addr_t in
25212 (grub_file_read): Change the type of LEN to grub_size_t.
25213 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
25215 (grub_file_size): Return grub_off_t.
25216 (grub_file_tell): Likewise.
25217 All callers and references changed.
25219 * include/grub/disk.h (struct grub_disk_dev): Change the types of
25220 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
25222 (struct grub_disk): Change the type of "total_sectors" to
25223 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
25225 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
25226 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
25227 (grub_disk_write): Likewise.
25228 All callers and references changed.
25230 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
25231 char * for grub_strncmp to silence gcc.
25232 (grub_iso9660_mount): Likewise.
25233 (grub_iso9660_mount): Likewise.
25234 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
25236 (grub_iso9660_iterate_dir): Likewise.
25237 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
25239 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
25240 LEN to grub_disk_addr_t and grub_size_t, respectively.
25242 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
25244 * fs/jfs.c (grub_jfs_read_file): Likewise.
25246 * fs/minix.c (grub_jfs_read_file): Likewise.
25248 * fs/sfs.c (grub_jfs_read_file): Likewise.
25250 * fs/ufs.c (grub_jfs_read_file): Likewise.
25252 * fs/xfs.c (grub_jfs_read_file): Likewise.
25254 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
25255 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
25258 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
25259 BLKNR to -1 instead of returning GRUB_ERRNO.
25260 (grub_ext2_read_file): Change the types of SECTOR and
25261 LEN to grub_disk_addr_t and grub_size_t, respectively.
25263 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
25264 LEN to grub_disk_addr_t and grub_size_t, respectively.
25266 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
25269 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
25270 string. Do not cast SECTOR explicitly.
25272 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
25273 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
25274 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
25275 grub_disk_addr_t and grub_size_t, respectively. If the sector is
25276 over 2TB and LBA mode is not supported, raise an error.
25277 (get_safe_sectors): New function.
25278 (grub_biosdisk_read): Use get_safe_sectors.
25279 (grub_biosdisk_write): Likewise.
25281 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
25282 (grub_efidisk_write): Likewise.
25284 * disk/loopback.c (delete_loopback): Cosmetic changes.
25285 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
25287 (grub_loopback_open): Likewise.
25288 (grub_loopback_read): Likewise. Also, change the type of POS to
25289 grub_off_t, and fix the usage of grub_memset.
25291 * commands/i386/pc/play.c: Include grub/machine/time.h.
25293 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
25296 * commands/configfile.c: Include grub/env.h.
25298 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
25299 GRUB_ERRNO directly instead. Change the type of POS to
25300 grub_off_t. Follow the coding standard.
25302 * commands/blocklist.c: Include grub/partition.h.
25303 (grub_cmd_blocklist): Return an error if the underlying device is
25304 not a disk. Take the starting sector of a partition into account,
25305 if a partition is used.
25307 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
25309 (lba_mode): Support 64-bit addresses.
25310 (chs_mode): Likewise.
25311 (copy_buffer): Adapted to the new offsets of a length field and a
25313 (blocklist_default_start): Allocate 64-bit space.
25315 * boot/i386/pc/boot.S (force_lba): Removed.
25316 (boot_drive): Moved to under KERNEL_SECTOR.
25317 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
25319 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
25321 (lba_mode): Refactored to support a 64-bit address. More size
25323 (setup_sectors): Likewise.
25325 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
25327 * DISTLIST: Added include/grub/i386/linux.h. Removed
25328 include/grub/i386/pc/linux.h
25330 * configure.ac (AC_INIT): Bumped to 1.94.
25332 * config.guess: Updated from gnulib.
25333 * config.sub: Likewise.
25334 * install-sh: Likewise.
25335 * mkinstalldirs: Likewise.
25337 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
25339 * conf/common.rmk (grub_modules_init.lst): Depended on
25340 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
25343 * genmk.rb (PModule::rule): Reverted the previous change.
25345 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
25347 * conf/common.rmk (grub_modules_init.lst): Depends on
25348 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
25349 that the target does not exist before producing.
25350 (grub_modules_init.h): Remove the target before generating.
25351 (grub_emu_init.c): Likewise.
25353 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
25355 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
25357 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
25358 for the target-specific tests. Make sure that we also have the
25359 up-to-date target variables for those tests.
25361 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
25363 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
25364 (PModule::rule): Likewise.
25366 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
25368 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
25369 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
25370 target-specific flags should be prefixed.
25371 (PModule::rule): Likewise.
25373 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
25375 * configure.ac (CMP): Check if cmp is available explicitly.
25377 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
25379 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
25380 (target_cpu): New variable.
25381 (pkglibdir): Use target_cpu instead of host_cpu.
25383 * util/i386/pc/grub-install.in (host_cpu): Removed.
25384 (target_cpu): New variable.
25385 (pkglibdir): Use target_cpu instead of host_cpu.
25387 * util/genmoddep.c: Removed.
25389 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
25390 instead of GRUB_HOST_SIZEOF_VOID_P.
25391 * kern/dl.c: Likewise.
25393 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
25395 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
25396 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
25397 (GRUB_TARGET_SIZEOF_LONG): ... this.
25398 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
25399 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
25400 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
25402 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
25403 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
25404 (GRUB_TARGET_SIZEOF_LONG): ... this.
25405 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
25406 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
25407 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
25409 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
25410 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
25411 (GRUB_TARGET_SIZEOF_LONG): ... this.
25412 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
25413 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
25415 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
25416 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
25417 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
25418 instead of GRUB_HOST_SIZEOF_LONG.
25419 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
25420 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
25421 GRUB_CPU_WORDS_BIGENDIAN.
25422 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
25423 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
25426 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
25427 (genmoddep_SOURCES): Likewise.
25428 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
25429 (genmoddep_SOURCES): Likewise.
25430 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
25431 (genmoddep_SOURCES): Likewise.
25432 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
25434 (genmoddep_SOURCES): Likewise.
25436 * genmoddep.awk: New file.
25438 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
25439 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
25440 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
25441 (PModule::rule): Likewise.
25442 (Program::rule): Likewise.
25443 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
25444 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
25447 * configure.ac: Rewritten intensively to use host and target
25448 instead of build and host, respectively.
25450 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
25451 (host_cpu): Removed.
25452 (target_cpu): New variable.
25453 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
25454 (BUILD_CC): Removed.
25455 (BUILD_CFLAGS): Likewise.
25456 (BUILD_CPPFLAGS): Likewise.
25457 (TARGET_CC): New variable.
25458 (TARGET_CFLAGS): Likewise.
25459 (TARGET_CPPFLAGS): Likewise.
25460 (TARGET_LDFLAGS): Likewise.
25462 (include): Use target_cpu instead of host_cpu.
25463 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
25465 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
25467 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
25469 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
25470 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
25471 field 'false' to 'exec_on_false'.
25472 (grub_script_create_cmdif): Renamed argument names to reflect above
25475 * normal/execute.c (grub_script_execute_cmdif): Likewise.
25477 * normal/script.c (grub_script_create_cmdif): Likewise.
25479 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
25481 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
25483 (grub_hfsplus_btree_recptr): Likewise.
25484 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
25485 FILEBLOCK both to pass a block number and store next block
25487 (grub_hfsplus_read_block): Rewritten heavily to support an extent
25488 overflow file correctly. Specify errors appropriately, because
25489 fshelp expects that GRUB_ERRNO is set when fails. Reuse
25490 grub_hfsplus_btree_recptr to get the pointer to a found key.
25491 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
25494 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
25496 (_linux_mod_SOURCES): New variable.
25497 (_linux_mod_CFLAGS): Likewise.
25498 (_linux_mod_LDFLAGS): Likewise.
25499 (linux_mod_SOURCES): Likewise.
25500 (linux_mod_CFLAGS): Likewise.
25501 (linux_mod_LDFLAGS): Likewise.
25503 * DISTLIST: Added loader/i386/efi/linux.c,
25504 loader/i386/efi/linux_normal.c and
25505 include/grub/i386/efi/loader.h.
25507 * loader/i386/efi/linux.c: New file.
25508 * loader/i386/efi/linux_normal.c: Likewise.
25509 * include/grub/i386/efi/loader.h: Likewise.
25511 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
25513 * commands/blocklist.c: New file.
25515 * DISTLIST: Added commands/blocklist.c.
25517 * term/efi/console.c (grub_console_highlight_color): Use a lighter
25518 color for the background, and a darker color for the foreground.
25519 (grub_console_checkkey): Return READ_KEY.
25520 (grub_console_cls): Set the background to
25521 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
25523 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
25525 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
25526 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
25528 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
25531 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
25532 BG. The spec is wrong again.
25534 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
25536 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
25538 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25539 commands/blocklist.c.
25540 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25542 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
25543 (blocklist_mod_SOURCES): New variable.
25544 (blocklist_mod_CFLAGS): Likewise.
25545 (blocklist_mod_LDFLAGS): Likewise.
25547 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
25549 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
25551 (lba_mode): Use %eax more intensively to reduce the code size.
25553 2006-05-20 Marco Gerards <marco@gnu.org>
25555 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
25557 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
25559 (script): Accept leading newlines.
25560 (newlines): New rule to describe 0 or more newlines.
25561 (commands): Accept `command' with trailing newline. Fixed the
25562 order in which arguments were passed to `grub_script_add_cmd'.
25563 Accept commands separated by newlines.
25564 (function): Changed to accept newlines.
25565 (menuentry) Rewritten.
25567 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
25568 front of the list, instead of to the end.
25570 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
25572 * util/i386/pc/grub-install.in (bindir): New variable.
25573 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
25574 Shaver <lbgwjl@gmail.com>.
25576 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
25578 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
25579 grub/machine/linux.h
25580 * loader/i386/pc/linux.c: Likewise.
25582 * include/grub/i386/pc/linux.h: Moved to ...
25583 * include/grub/i386/linux.h: ... here.
25585 * include/grub/i386/linux.h (struct linux_kernel_params): New
25588 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
25590 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
25592 (grub_video_vbe_blit_glyph): Likewise.
25593 (grub_video_vbe_blit_bitmap): Likewise.
25594 (grub_video_vbe_blit_render_target): Likewise.
25596 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
25598 * configure.ac (--with-platform): Properly quote the square
25601 2006-05-08 Marco Gerards <marco@gnu.org>
25603 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
25605 (kernel_elf_HEADERS): ...to this. Updated all users.
25606 (grubof_symlist.c): Renamed from this...
25607 (kernel_elf_symlist.c): ...to this. Updated all users.
25608 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
25609 (grubof_SOURCES): Renamed from this...
25610 (kernel_elf_SOURCES): ...to this.
25611 (grubof_HEADERS): Renamed from this...
25612 (kernel_elf_HEADERS): ...to this.
25613 (grubof_CFLAGS): Renamed from this...
25614 (kernel_elf_CFLAGS): ...to this.
25615 (grubof_ASFLAGS): Renamed from this...
25616 (kernel_elf_ASFLAGS): ...to this.
25617 (grubof_LDFLAGS): Renamed from this...
25618 (kernel_elf_LDFLAGS): ...to this.
25620 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
25622 (kernel_elf_HEADERS): ...to this. Updated all users.
25623 (grubof_symlist.c): Renamed from this...
25624 (kernel_elf_symlist.c): ...to this. Updated all users.
25625 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
25626 (grubof_SOURCES): Renamed from this...
25627 (kernel_elf_SOURCES): ...to this.
25628 (grubof_HEADERS): Renamed from this...
25629 (kernel_elf_HEADERS): ...to this.
25630 (grubof_CFLAGS): Renamed from this...
25631 (kernel_elf_CFLAGS): ...to this.
25632 (grubof_ASFLAGS): Renamed from this...
25633 (kernel_elf_ASFLAGS): ...to this.
25634 (grubof_LDFLAGS): Renamed from this...
25635 (kernel_elf_LDFLAGS): ...to this.
25637 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
25638 `kernel.elf' instead of `grubof'.
25640 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
25642 Add --with-platform to configure. Use pkglibdir instead of
25643 pkgdatadir. This is reported by Roger Leigh.
25645 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
25646 (host_vendor): Likewise.
25647 (host_os): Likewise.
25648 (pkgdatadir): Likewise.
25649 (platform): New variable.
25650 (pkglibdir): Likewise.
25651 Use PKGLIBDIR instead of PKGDATADIR.
25653 * util/i386/pc/grub-install.in (datadir): Removed.
25654 (host_vendor): Likewise.
25655 (host_os): Likewise.
25656 (pkgdatadir): Likewise.
25657 (platform): New variable.
25658 (pkglibdir): Likewise.
25659 Use PKGLIBDIR instead of PKGDATADIR.
25661 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
25662 instead of GRUB_DATADIR.
25664 * util/i386/pc/grub-mkimage.c (usage): Likewise.
25666 * util/i386/efi/grub-mkimage.c (usage): Likewise.
25669 * configure.ac (--with-platform): New option.
25670 Use PLATFORM instead of HOST_VENDOR to specify a platform.
25672 * Makefile.in: Include a makefile based on PLATFORM instead of
25674 (pkgdatadir): Not appended by the machine type.
25675 (pkglibdir): Appended by the machine type.
25676 (host_vendor): Removed.
25677 (platform): New variable.
25678 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
25679 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
25680 (uninstall): Likewise.
25682 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
25684 Use the environment context in the menu. Remove the commands
25685 "default" and "timeout", and use variables instead.
25687 * normal/menu.c: Include grub/env.h.
25688 (print_entry): Cast TITLE to silence gcc.
25689 (get_timeout): New function.
25690 (set_timeout): Likewise.
25691 (get_entry_number): Likewise.
25692 (run_menu): Use a default entry, a fallback entry and a timeout
25693 in the environment variables "default", "fallback" and
25694 "timeout". Also, tweak the default entry if it is not within the
25695 current menu entries.
25696 (grub_menu_run): Use a fallback entry in the environment variable
25699 * normal/main.c (read_config_file): Do not initialize
25700 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
25702 (grub_normal_execute): Use a data slot to store the menu.
25704 * include/grub/normal.h (struct grub_menu): Removed default_entry,
25705 fallback_entry and timeout.
25706 (struct grub_menu_list): Removed.
25707 (grub_menu_list_t): Likewise.
25708 (struct grub_context): Likewise.
25709 (grub_context_t): Likewise.
25710 (grub_context_get): Likewise.
25711 (grub_context_get_current_menu): Likewise.
25712 (grub_context_push_menu): Likewise.
25713 (grub_context_pop_menu): Likewise.
25714 (grub_default_init): Likewise.
25715 (grub_default_fini): Likewise.
25716 (grub_timeout_init): Likewise.
25717 (grub_timeout_fini): Likewise.
25719 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
25721 (normal_mod_SOURCES): Removed normal/context.c.
25723 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
25724 commands/default.c, commands/timeout.c and normal/context.c.
25725 (normal_mod_SOURCES): Removed normal/context.c.
25727 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
25728 commands/timeout.c and normal/context.c.
25729 (normal_mod_SOURCES): Removed normal/context.c.
25731 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
25732 commands/default.c, commands/timeout.c and normal/context.c.
25733 (normal_mod_SOURCES): Removed normal/context.c.
25735 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
25737 (default_mod_SOURCES): Removed.
25738 (default_mod_CFLAGS): Likewise.
25739 (default_mod_LDFLAGS): Likewise.
25740 (timeout_mod_SOURCES): Removed.
25741 (timeout_mod_CFLAGS): Likewise.
25742 (timeout_mod_LDFLAGS): Likewise.
25744 * DISTLIST: Removed commands/default.c, commands/timeout.c and
25747 * commands/default.c: Removed.
25748 * commands/timeout.c: Likewise.
25749 * normal/context.c: Likewise.
25751 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
25753 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
25755 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
25757 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
25758 "next" to "prev" for readability.
25759 (struct grub_env_sorted_var): New struct.
25760 (grub_env_context): Renamed to ...
25761 (initial_context): ... this.
25762 (grub_env_var_context): Renamed to ...
25763 (current_context): ... this.
25764 (grub_env_find): Look only at CURRENT_CONTEXT.
25765 (grub_env_context_open): Rewritten to copy exported variables from
25767 (grub_env_context_close): Rewritten according to the new
25768 scheme. Also, add an assertion to prevent the initial context from
25770 (grub_env_insert): Removed the code for the sorted list.
25771 (grub_env_remove): Likewise.
25772 (grub_env_export): Simply mark the variable with
25773 GRUB_ENV_VAR_GLOBAL.
25774 (grub_env_set): A cosmetic change for naming consistency.
25775 (grub_env_get): Likewise.
25776 (grub_env_unset): Likewise.
25777 (grub_env_iterate): Rewritten to sort variables within this
25779 (grub_register_variable_hook): Fixed for naming consistency. Call
25780 grub_env_find again, only if NAME is not found at the first time.
25781 (mangle_data_slot_name): New function.
25782 (grub_env_set_data_slot): Likewise.
25783 (grub_env_get_data_slot): Likewise.
25784 (grub_env_unset_data_slot): Likewise.
25786 * include/grub/env.h (grub_env_var_type): New enum.
25787 (GRUB_ENV_VAR_LOCAL): New constant.
25788 (GRUB_ENV_VAR_GLOBAL): Likewise.
25789 (GRUB_ENV_VAR_DATA): Likewise.
25790 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
25792 (grub_env_set): Replace VAR with NAME for consistency.
25793 (grub_register_variable_hook): Likewise.
25794 (grub_env_export): Specify the name of the argument.
25795 (grub_env_set_data_slot): New prototype.
25796 (grub_env_get_data_slot): Likewise.
25797 (grub_env_unset_data_slot): Likewise.
25799 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
25801 Extend the loader so that GRUB can accept a loader which comes
25802 back to GRUB when a loaded image exits. Also, this change adds
25803 support for a chainloader on EFI.
25805 * term/efi/console.c: Include grub/misc.h.
25806 (grub_console_checkkey): Display a scan code on the top for
25807 debugging. This will be removed once the EFI port gets stable.
25808 Correct the scan code mapping.
25810 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
25811 allocate memory from larger regions, in order to reduce the number
25812 of allocated regions. Otherwise, the MacOSX loader panics.
25813 (filter_memory_map): Avoid less than 1MB for compatibility with
25815 (add_memory_regions): Allocate from the tail of a region, if
25816 possible, to avoid allocating a region near to 1MB, for the MacOSX
25819 * kern/efi/init.c (grub_efi_set_prefix): Specify
25820 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
25822 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
25823 argument IMAGE_HANDLE and specify it to get a loaded image.
25824 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
25825 grub_efi_get_loaded_image.
25826 (grub_efi_get_filename): Divide the length by the size of
25828 (grub_efi_get_device_path): New function.
25829 (grub_efi_print_device_path): Print End Device Path nodes. Divide
25830 the length by the size of grub_efi_char16_t for a file path device
25833 * kern/loader.c (grub_loader_noreturn): New variable.
25834 (grub_loader_set): Accept a new argument NORETURN. Set
25835 GRUB_LOADER_NORETURN to NORETURN.
25836 All callers changed.
25837 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
25840 * include/grub/efi/efi.h (grub_efi_get_device_path): New
25842 (grub_efi_get_loaded_image): Take an argument to specify an image
25845 * include/grub/loader.h (grub_loader_set): Added one more argument
25848 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
25849 instead of grub_efi_open_protocol.
25850 (grub_efidisk_get_device_name): Likewise.
25851 (grub_efidisk_close): Print a newline.
25852 (grub_efidisk_get_device_handle): Fixed to use
25853 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
25854 GRUB_EFI_DEVICE_PATH_TYPE.
25856 * disk/efi/efidisk.c (device_path_guid): Moved to ...
25857 * kern/efi/efi.c (device_path_guid): ... here.
25859 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
25861 (kernel_mod_HEADERS): Added efi/disk.h.
25862 (_chain_mod_SOURCES): New variable.
25863 (_chain_mod_CFLAGS): Likewise.
25864 (_chain_mod_LDFLAGS): Likewise.
25865 (chain_mod_SOURCES): Likewise.
25866 (chain_mod_CFLAGS): Likewise.
25867 (chain_mod_LDFLAGS): Likewise.
25869 * DISTLIST: Added include/grub/efi/chainloader.h,
25870 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
25872 * include/grub/efi/chainloader.h: New file.
25873 * loader/efi/chainloader.c: Likewise.
25874 * loader/efi/chainloader_normal.c: Likewise.
25876 2006-04-30 Marco Gerards <marco@gnu.org>
25878 * commands/configfile.c (grub_cmd_source): New function.
25879 (GRUB_MOD_INIT): Register the commands `source' and `.'.
25880 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
25882 2006-04-30 Marco Gerards <marco@gnu.org>
25884 * normal/execute.c (grub_script_execute_cmd): Change the return
25885 type to `grub_err_t'. Correctly return the error.
25886 (grub_script_execute_cmdline): In case a command line is not a
25887 command or a function, try to interpret it as an assignment.
25889 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
25891 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
25892 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
25893 skip a node whose name is obviously invalid as UTF-16,
25894 i.e. contains a NUL character. Stop the iteration when the last
25895 directory entry is found. Instead of using the return value of
25896 grub_hfsplus_btree_iterate_node, store the value in RET and use
25897 it, because the iterator can be stopped by the last directory
25900 2006-04-30 Marco Gerards <marco@gnu.org>
25902 * include/grub/env.h (grub_env_export): New prototype. Reported
25903 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
25905 2006-04-30 Marco Gerards <marco@gnu.org>
25907 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
25908 size of the extents in a catalog file record.
25910 2006-04-29 Marco Gerards <marco@gnu.org>
25912 * commands/configfile.c (grub_cmd_configfile): Execute the
25913 configfile within its own context.
25915 * include/grub/env.h (grub_env_context_open): New prototype.
25916 (grub_env_context_close): Likewise.
25918 * kern/env.c (grub_env): Removed.
25919 (grub_env_sorted): Likewise.
25920 (grub_env_context): New variable.
25921 (grub_env_var_context): Likewise.
25922 (grub_env_find): Search both the active context and the global
25924 (grub_env_context_open): New function.
25925 (grub_env_context_close): Likewise.
25926 (grub_env_insert): Likewise.
25927 (grub_env_remove): Likewise.
25928 (grub_env_export): Likewise.
25929 (grub_env_set): Changed to use helper functions to avoid code
25931 (grub_env_iterate): Rewritten so both the current context and the
25932 global context are being used.
25934 * normal/command.c (export_command): New function.
25935 (grub_command_init): Register the `export' function.
25937 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
25939 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
25940 explicitly to suppress gcc's warnings.
25941 * fs/fat.c (grub_fat_find_dir): Likewise.
25942 (grub_fat_label): Likewise.
25943 * fs/xfs.c (grub_xfs_read_inode): Likewise.
25944 (grub_xfs_mount): Likewise.
25945 (grub_xfs_label): Likewise.
25946 * fs/affs.c (grub_affs_mount): Likewise.
25947 (grub_affs_label): Likewise.
25948 (grub_affs_iterate_dir): Likewise.
25949 * fs/sfs.c (grub_sfs_mount): Likewise.
25950 (grub_sfs_iterate_dir): Likewise.
25951 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
25952 * fs/hfs.c (grub_hfs_mount): Likewise.
25953 (grub_hfs_cmp_catkeys): Likewise.
25954 (grub_hfs_find_dir): Likewise.
25955 (grub_hfs_dir): Likewise.
25956 (grub_hfs_label): Likewise.
25957 * fs/jfs.c (grub_jfs_mount): Likewise.
25958 (grub_jfs_opendir): Likewise.
25959 (grub_jfs_getent): Likewise.
25960 (grub_jfs_lookup_symlink): Likewise.
25961 (grub_jfs_label): Likewise.
25962 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
25963 (grub_hfsplus_iterate_dir): Likewise.
25964 (grub_hfsplus_btree_iterate_node): Made static.
25966 * util/grub-emu.c (prefix): New variable.
25967 (grub_machine_set_prefix): New function.
25968 (main): Do not set the environment variable "prefix" here. Only
25969 set PREFIX, which is used later by grub_machine_set_prefix.
25971 * include/grub/video.h: Do not include grub/symbol.h.
25972 (grub_video_register): Not exported. This symbol is not defined in
25974 (grub_video_unregister): Likewise.
25975 (grub_video_iterate): Likewise.
25976 (grub_video_setup): Likewise.
25977 (grub_video_restore): Likewise.
25978 (grub_video_get_info): Likewise.
25979 (grub_video_get_blit_format): Likewise.
25980 (grub_video_set_palette): Likewise.
25981 (grub_video_get_palette): Likewise.
25982 (grub_video_set_viewport): Likewise.
25983 (grub_video_get_viewport): Likewise.
25984 (grub_video_map_color): Likewise.
25985 (grub_video_map_rgb): Likewise.
25986 (grub_video_map_rgba): Likewise.
25987 (grub_video_fill_rect): Likewise.
25988 (grub_video_blit_glyph): Likewise.
25989 (grub_video_blit_bitmap): Likewise.
25990 (grub_video_blit_render_target): Likewise.
25991 (grub_video_scroll): Likewise.
25992 (grub_video_swap_buffers): Likewise.
25993 (grub_video_create_render_target): Likewise.
25994 (grub_video_delete_render_target): Likewise.
25995 (grub_video_set_active_render_target): Likewise.
25997 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
25999 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
26001 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
26002 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
26003 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
26004 instead of $(srcdir)/genkernsyms.sh.
26006 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
26007 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
26008 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
26009 instead of $(srcdir)/genkernsyms.sh.
26011 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
26012 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
26013 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
26014 instead of $(srcdir)/genkernsyms.sh.
26016 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
26017 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
26018 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
26019 instead of $(srcdir)/genkernsyms.sh.
26021 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
26024 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
26026 (gensymlist.sh): New target.
26027 (genkernsyms.sh): Likewise.
26029 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
26030 genkernsyms.sh.in and gensymlist.sh.in.
26032 * genkernsyms.sh: Removed.
26033 * gensymlist.sh: Likewise.
26035 * genkernsyms.sh.in: New file.
26036 * gensymlist.sh.in: Likewise.
26038 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
26040 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
26041 clobber "prefix", since we may have already set it manually.
26043 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
26045 * kern/misc.c (abort): New alias for grub_abort.
26047 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
26049 A new machine-specific function "grub_machine_set_prefix" is
26050 defined. This is called after loading modules, so that a prefix
26051 initialization can use modules. Also, this change adds an
26052 intensive debugging feature for the memory manager via the
26053 configure option "--enable-mm-debug".
26055 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
26058 * kern/sparc64/ieee1275/init.c (abort): Removed.
26059 (grub_stop): Likewise.
26060 (grub_exit): New function.
26061 (grub_set_prefix): Renamed to ...
26062 (grub_machine_set_prefix): ... this.
26063 (grub_machine_init): Do not call grub_set_prefix.
26065 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
26066 (grub_machine_set_prefix): ... this.
26067 (grub_machine_init): Do not call grub_set_prefix.
26069 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
26070 (grub_machine_init): Do not set the prefix here.
26072 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
26074 * kern/efi/init.c: Include grub/mm.h.
26075 (grub_efi_set_prefix): New function.
26077 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
26078 (grub_efi_get_filename): New function.
26079 (grub_print_device_path): Renamed to ...
26080 (grub_efi_print_device_path): ... this.
26082 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
26083 [MM_DEBUG] (grub_realloc): Likewise.
26084 [MM_DEBUG] (grub_free): Likewise.
26085 [MM_DEBUG] (grub_memalign): Likewise.
26086 [MM_DEBUG] (grub_mm_debug): New variable.
26087 [MM_DEBUG] (grub_debug_malloc): New function.
26088 [MM_DEBUG] (grub_debug_free): New function.
26089 [MM_DEBUG] (grub_debug_realloc): New function.
26090 [MM_DEBUG] (grub_debug_memalign): New function.
26092 * kern/misc.c (grub_abort): Print a newline to distinguish
26095 * kern/main.c (grub_main): Call grub_machine_set_prefix and
26096 grub_set_root_dev after loading modules. This is necessary when
26097 setting a prefix depends on modules.
26099 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
26100 (grub_efi_print_device_path): ... this.
26101 (grub_efi_get_filename): New prototype.
26102 (grub_efi_set_prefix): Likewise.
26104 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
26106 (grub_efidisk_get_device_handle): New prototype.
26107 (grub_efidisk_get_device_name): Likewise.
26109 * include/grub/mm.h: Include config.h.
26110 (MM_DEBUG): Removed.
26111 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
26112 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
26113 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
26114 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
26115 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
26116 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
26117 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
26118 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
26119 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
26121 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
26123 * disk/efi/efidisk.c: Include grub/partition.h.
26124 (iterate_child_devices): New function.
26125 (add_device): First, compare only last device path nodes, so that
26126 devices are sorted by the types.
26127 (grub_efidisk_get_device_handle): New function.
26128 (grub_efidisk_get_device_name): Likewise.
26130 * configure.ac (--enable-mm-debug): New option to enable the
26131 memory manager debugging feature. This makes the binary much
26132 bigger, so is disabled by default.
26134 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
26136 Use grub_abort instead of grub_stop, and grub_exit must be
26137 define in each architecture now. Also, this change adds support
26140 * util/i386/pc/grub-probefs.c: Include grub/term.h.
26141 (grub_getkey): New function.
26142 (grub_term_get_current): Likewise.
26144 * util/i386/pc/grub-setup.c: Include grub/term.h.
26145 (grub_getkey): New function.
26146 (grub_term_get_current): Likewise.
26148 * util/misc.c (grub_stop): Renamed to ...
26149 (grub_exit): ... this.
26151 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
26152 (grub_exit): ... this.
26153 (grub_machine_init): Use grub_abort instead of abort.
26154 (grub_stop): Removed.
26156 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
26159 * kern/i386/pc/startup.S (grub_exit): New function.
26160 (cold_reboot): New label.
26162 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
26163 (grub_efi_init): Call grub_efidisk_init.
26164 (grub_efi_fini): Call grub_efidisk_fini.
26166 * kern/efi/efi.c: Include grub/mm.h.
26167 (grub_efi_console_control_guid): Renamed to ...
26168 (console_control_guid): ... this.
26169 (grub_efi_loaded_image_guid): Renamed to ...
26170 (loaded_image_guid): ... this.
26171 (grub_efi_locate_handle): New function.
26172 (grub_efi_open_protocol): Likewise.
26173 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
26174 GRUB_EFI_CONSOLE_CONTROL_GUID.
26175 (grub_efi_exit): Removed.
26176 (grub_stop): Likewise.
26177 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
26178 (grub_exit): New function.
26179 (grub_print_device_path): Likewise.
26181 * kern/rescue.c (grub_rescue_cmd_exit): New function.
26182 (grub_enter_rescue_mode): Register "exit".
26184 * kern/misc.c (grub_real_dprintf): A cosmetic change.
26185 (grub_abort): New function.
26187 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
26189 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
26191 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
26193 * include/grub/efi/efi.h (grub_efi_exit): Removed.
26194 (grub_print_device_path): New prototype.
26195 (grub_efi_locate_handle): Likewise.
26196 (grub_efi_open_protocol): Likewise.
26198 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
26199 * disk/efi/efidisk.c: Likewise.
26201 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
26203 * include/grub/efi/console_control.h
26204 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
26206 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
26207 last 8 bytes as an array.
26208 (GRUB_EFI_DISK_IO_GUID): New macro.
26209 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
26210 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
26211 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
26213 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
26214 (struct grub_efi_device_path): Rename the member "sub_type" to
26216 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
26217 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
26218 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
26219 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
26220 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
26221 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
26222 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
26223 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
26224 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
26225 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
26226 (struct grub_efi_pci_device_path): New structure.
26227 (grub_efi_pci_device_path_t): New type.
26228 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
26229 (struct grub_efi_pccard_device_path): New structure.
26230 (grub_efi_pccard_device_path_t): New type.
26231 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
26232 (struct grub_efi_memory_mapped_device_path): New structure.
26233 (grub_efi_memory_mapped_device_path_t): New type.
26234 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
26235 (struct grub_efi_vendor_device_path): New structure.
26236 (grub_efi_vendor_device_path_t): New type.
26237 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
26238 (struct grub_efi_controller_device_path): New structure.
26239 (grub_efi_controller_device_path_t): New type.
26240 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
26241 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
26242 (struct grub_efi_acpi_device_path): New structure.
26243 (grub_efi_acpi_device_path_t): New type.
26244 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
26245 (struct grub_efi_expanded_acpi_device_path): New structure.
26246 (grub_efi_expanded_acpi_device_path_t): New type.
26247 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
26248 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
26249 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
26250 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
26251 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
26252 (struct grub_efi_atapi_device_path): New structure.
26253 (grub_efi_atapi_device_path_t): New type.
26254 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
26255 (struct grub_efi_fibre_channel_device_path): New structure.
26256 (grub_efi_fibre_channel_device_path_t): New type.
26257 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
26258 (struct grub_efi_1394_device_path): New structure.
26259 (grub_efi_1394_device_path_t): New type.
26260 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
26261 (struct grub_efi_usb_device_path): New structure.
26262 (grub_efi_usb_device_path_t): New type.
26263 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
26264 (struct grub_efi_usb_class_device_path): New structure.
26265 (grub_efi_usb_class_device_path_t): New type.
26266 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
26267 (struct grub_efi_i2o_device_path): New structure.
26268 (grub_efi_i2o_device_path_t): New type.
26269 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
26270 (struct grub_efi_mac_address_device_path): New structure.
26271 (grub_efi_mac_address_device_path_t): New type.
26272 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
26273 (struct grub_efi_ipv4_device_path): New structure.
26274 (grub_efi_ipv4_device_path_t): New type.
26275 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
26276 (struct grub_efi_ipv6_device_path): New structure.
26277 (grub_efi_ipv6_device_path_t): New type.
26278 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
26279 (struct grub_efi_infiniband_device_path): New structure.
26280 (grub_efi_infiniband_device_path_t): New type.
26281 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
26282 (struct grub_efi_uart_device_path): New structure.
26283 (grub_efi_uart_device_path_t): New type.
26284 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
26285 (struct grub_efi_vendor_messaging_device_path): New structure.
26286 (grub_efi_vendor_messaging_device_path_t): New type.
26287 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
26288 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
26289 (struct grub_efi_hard_drive_device_path): New structure.
26290 (grub_efi_hard_drive_device_path_t): New type.
26291 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
26292 (struct grub_efi_cdrom_device_path): New structure.
26293 (grub_efi_cdrom_device_path_t): New type.
26294 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
26295 (struct grub_efi_vendor_media_device_path): New structure.
26296 (grub_efi_vendor_media_device_path_t): New type.
26297 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
26298 (struct grub_efi_file_path_device_path): New structure.
26299 (grub_efi_file_path_device_path_t): New type.
26300 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
26301 (struct grub_efi_protocol_device_path): New structure.
26302 (grub_efi_protocol_device_path_t): New type.
26303 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
26304 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
26305 (struct grub_efi_bios_device_path): New structure.
26306 (grub_efi_bios_device_path_t): New type.
26307 (struct grub_efi_disk_io): New structure.
26308 (grub_efi_disk_io_t): New type.
26309 (struct grub_efi_block_io_media): New structure.
26310 (grub_efi_block_io_media_t): New type.
26311 (struct grub_efi_block_io): New structure.
26312 (grub_efi_block_io_t): New type.
26314 * include/grub/misc.h (grub_stop): Removed.
26315 (grub_exit): New prototype.
26316 (grub_abort): Likewise.
26318 * include/grub/disk.h (enum grub_disk_dev_id): Added
26319 GRUB_DISK_DEVICE_EFIDISK_ID.
26321 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
26322 disk/efi/efidisk.c.
26323 (kernel_syms.lst): Remove the target if an error occurs.
26325 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
26327 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
26328 as it was simply too buggy.
26330 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
26332 * kern/misc.c (grub_lltoa): New function.
26333 (grub_vsprintf): Added support for the long long suffix,
26336 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
26338 * Makefile.in (LDFLAGS): Add variable.
26339 (LD): Remove variable.
26340 * configure.ac: Add -m32 to LDFLAGS.
26341 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
26342 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
26343 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
26344 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
26345 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
26347 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
26348 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
26349 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
26351 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
26353 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
26354 length for unknown glyph.
26356 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
26358 Add support for pre-loaded modules into the EFI port.
26360 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
26361 completely. Accept one more argument DIR. The caller has changed.
26363 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
26365 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
26366 (grub_efi_loaded_image_guid): New variable.
26367 (grub_efi_get_loaded_image): New function.
26368 (grub_arch_modules_addr): Likewise.
26370 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
26373 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
26374 (struct grub_efi_loaded_image): New structure.
26375 (grub_efi_loaded_image_t): New type.
26377 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
26379 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
26380 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
26381 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
26383 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
26385 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
26387 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
26389 * DISTLIST: Added include/grub/efi/console.h,
26390 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
26391 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
26393 * include/grub/efi/console.h: New file.
26394 * include/grub/efi/time.h: Likewise.
26395 * include/grub/i386/efi/kernel.h: Likewise.
26396 * kern/efi/init.c: Likewise.
26397 * kern/efi/mm.c: Likewise.
26398 * term/efi/console.c: Likewise.
26400 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
26401 (grub_stop): Removed.
26402 (grub_get_rtc): Likewise.
26403 (grub_machine_init): Simply call grub_efi_init.
26404 (grub_machine_fini): Call grub_efi_fini.
26406 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
26407 (grub_efi_output_string): Removed.
26408 (grub_efi_stall): New function.
26409 (grub_stop): Likewise.
26410 (grub_get_rtc): Likewise.
26412 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
26413 (grub_efi_stall): New prototype.
26414 (grub_efi_allocate_pages): Likewise.
26415 (grub_efi_free_pages): Likewise.
26416 (grub_efi_get_memory_map): Likewise.
26417 (grub_efi_mm_init): Likewise.
26418 (grub_efi_mm_fini): Likewise.
26419 (grub_efi_init): Likewise.
26420 (grub_efi_fini): Likewise.
26422 * include/grub/i386/efi/time.h: Do not include
26423 grub/symbol.h. Include grub/efi/time.h.
26424 (GRUB_TICKS_PER_SECOND): Removed.
26425 (grub_get_rtc): Likewise.
26427 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
26428 Added padding. The EFI spec is buggy.
26429 (GRUB_EFI_BLACK): New macro.
26430 (GRUB_EFI_BLUE): Likewise.
26431 (GRUB_EFI_GREEN): Likewise.
26432 (GRUB_EFI_CYAN): Likewise.
26433 (GRUB_EFI_RED): Likewise.
26434 (GRUB_EFI_MAGENTA): Likewise.
26435 (GRUB_EFI_BROWN): Likewise.
26436 (GRUB_EFI_LIGHTGRAY): Likewise.
26437 (GRUB_EFI_BRIGHT): Likewise.
26438 (GRUB_EFI_DARKGRAY): Likewise.
26439 (GRUB_EFI_LIGHTBLUE): Likewise.
26440 (GRUB_EFI_LIGHTGREEN): Likewise.
26441 (GRUB_EFI_LIGHTCYAN): Likewise.
26442 (GRUB_EFI_LIGHTRED): Likewise.
26443 (GRUB_EFI_LIGHTMAGENTA): Likewise.
26444 (GRUB_EFI_YELLOW): Likewise.
26445 (GRUB_EFI_WHITE): Likewise.
26446 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
26447 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
26448 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
26449 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
26450 (GRUB_EFI_BACKGROUND_RED): Likewise.
26451 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
26452 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
26453 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
26454 (GRUB_EFI_TEXT_ATTR): Likewise.
26456 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
26457 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
26458 (kernel_mod_HEADERS): Added efi/time.h.
26460 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
26462 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
26463 include/grub/efi/api.h, include/grub/efi/console_control.h,
26464 include/grub/efi/efi.h, include/grub/efi/pe32.h,
26465 include/grub/i386/efi/time.h, kern/efi/efi.c,
26466 kern/i386/efi/init.c, kern/i386/efi/startup.S,
26467 and util/i386/efi/grub-mkimage.c.
26469 * Makefile.in (RMKFILES): Added i386-efi.rmk.
26471 * genmk.rb (PModule#rule): Do not export symbols if
26472 #{prefix}_EXPORTS is set to "no".
26474 * conf/i386-efi.mk: New file.
26475 * conf/i386-efi.rmk: Likewise.
26476 * include/grub/efi/api.h: Likewise.
26477 * include/grub/efi/console_control.h: Likewise.
26478 * include/grub/efi/efi.h: Likewise.
26479 * include/grub/efi/pe32.h: Likewise.
26480 * include/grub/i386/efi/time.h: Likewise.
26481 * kern/efi/efi.c: Likewise.
26482 * kern/i386/efi/init.c: Likewise.
26483 * kern/i386/efi/startup.S: Likewise.
26484 * util/i386/efi/grub-mkimage.c: Likewise.
26486 2006-04-17 Marco Gerards <marco@gnu.org>
26488 * include/grub/script.h: Include <grub/parser.h> and
26489 "grub_script.tab.h".
26490 (struct grub_lexer_param): New struct.
26491 (struct grub_parser_param): Likewise.
26492 (grub_script_create_arglist): Pass the state in an argument.
26493 (grub_script_add_arglist): Likewise.
26494 (grub_script_create_cmdline): Likewise.
26495 (grub_script_create_cmdblock): Likewise.
26496 (grub_script_create_cmdif): Likewise.
26497 (grub_script_create_cmdmenu): Likewise.
26498 (grub_script_add_cmd): Likewise.
26499 (grub_script_arg_add): Likewise.
26500 (grub_script_lexer_ref): Likewise.
26501 (grub_script_lexer_deref): Likewise.
26502 (grub_script_lexer_record_start): Likewise.
26503 (grub_script_lexer_record_stop): Likewise.
26504 (grub_script_mem_record): Likewise.
26505 (grub_script_mem_record_stop): Likewise.
26506 (grub_script_malloc): Likewise.
26507 (grub_script_yylex): Likewise.
26508 (grub_script_yyparse): Likewise.
26509 (grub_script_yyerror): Likewise.
26510 (grub_script_yylex): Likewise.
26511 (grub_script_lexer_init): Return the state.
26513 * normal/lexer.c (grub_script_lexer_state): Removed variable.
26514 (grub_script_lexer_done): Likewise.
26515 (grub_script_lexer_getline): Likewise.
26516 (grub_script_lexer_refs): Likewise.
26517 (script): Likewise.
26518 (newscript): Likewise.
26519 (record): Likewise.
26520 (recording): Likewise.
26521 (recordpos): Likewise.
26522 (recordlen): Likewise.
26523 (grub_script_lexer_init): Return the state instead of setting
26525 (grub_script_lexer_ref): Use the newly added argument for state
26526 instead of globals.
26527 (grub_script_lexer_deref): Likewise.
26528 (grub_script_lexer_record_start): Likewise.
26529 (grub_script_lexer_record_stop): Likewise.
26530 (recordchar): Likewise.
26531 (nextchar): Likewise.
26532 (grub_script_yylex2): Likewise.
26533 (grub_script_yylex): Likewise.
26534 (grub_script_yyerror): Likewise.
26536 * normal/parser.y (func_mem): Removed variable.
26537 (menu_entry): Likewise.
26539 (%lex-param): New parser option.
26540 (%parse-param): Likewise.
26541 (script): Always return the AST.
26542 (argument): Pass the state around.
26543 (arguments): Likewise.
26544 (grubcmd): Likewise.
26545 (commands): Likewise.
26546 (function): Likewise.
26547 (menuentry): Likewise.
26548 (if_statement): Likewise.
26551 * normal/script.c (grub_script_memused): Removed variable.
26552 (grub_script_parsed): Likewise.
26553 (grub_script_malloc): Added a state argument. Use that instead of
26555 (grub_script_mem_record): Likewise.
26556 (grub_script_mem_record_stop): Likewise.
26557 (grub_script_arg_add): Likewise.
26558 (grub_script_add_arglist): Likewise.
26559 (grub_script_create_cmdline): Likewise.
26560 (grub_script_create_cmdif): Likewise.
26561 (grub_script_create_cmdmenu): Likewise.
26562 (grub_script_add_cmd): Likewise.
26563 (grub_script_parse): Setup the state before calling the parser.
26565 2006-04-16 Marco Gerards <marco@gnu.org>
26567 * normal/command.c (grub_command_init): Remove the title command.
26569 * normal/lexer.c (grub_script_yylex): Renamed from this...
26570 (grub_script_yylex2): ... to this.
26571 (grub_script_yylex): New function. Temporary
26572 introduced to filter some tokens.
26573 (grub_script_yyerror): Print a newline.
26575 * normal/main.c (read_config_file): Output information about the
26576 lines that contain errors. Wait for a key after all lines have
26577 been processed. Don't return an empty menu.
26579 * normal/parser.y (func_mem): Don't initialize.
26580 (menu_entry): Likewise.
26581 (err): New variable.
26582 (script): Don't return anything when an error was encountered.
26583 (ws, returns): Removed rules.
26584 (argument): Disabled concatenated variable support.
26585 (arguments): Remove explicit separators.
26586 (grubcmd): Likewise.
26587 (function): Likewise.
26588 (menuentry): Likewise.
26590 (commands): Likewise. Add error handling.
26592 * normal/script.c (grub_script_create_cmdline): If
26593 `grub_script_parsed' is 0, assume the parser encountered an error.
26595 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
26597 * configure.ac: Add support for EFI. Fix the typo
26598 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
26600 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
26602 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
26603 foreign multibyte characters should be shown correctly.
26605 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
26607 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
26609 (read_config_file): Made it to close file before returning.
26611 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
26613 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
26614 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
26615 video/i386/pc/vbefill.c.
26617 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
26618 video/i386/pc/vbefill.c.
26620 * include/grub/video.h (grub_video_blit_format): New enum.
26621 (grub_video_mode_info): Added new member blit_format.
26622 (grub_video_get_blit_format): New function prototype.
26624 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
26625 function prototype.
26626 (grub_video_vbe_map_rgb): Likewise.
26627 (grub_video_vbe_unmap_color): Likewise.
26629 * include/grub/i386/pc/vbeblit.h: New file.
26631 * include/grub/i386/pc/vbefill.h: New file.
26633 * video/video.c (grub_video_get_blit_format): New function.
26634 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
26635 (grub_video_vbe_map_rgb): Likewise.
26636 (grub_video_vbe_unmap_color): Likewise.
26638 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
26640 (grub_video_vbe_blit_render_target): Changed to use more optimized
26642 (grub_video_vbe_setup): Added detection for optimized settings.
26643 (grub_video_vbe_create_render_target): Likewise.
26645 * video/i386/pc/vbeblit.c: New file.
26647 * video/i386/pc/vbefill.c: New file.
26649 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
26651 * font/manager.c (grub_font_get_glyph): Removed font fixup from
26654 * util/unifont2pff.rb: ... and moved it to here. Improved argument
26655 parsing to support both hex and dec ranges. If filename was missing
26656 show usage information.
26658 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
26660 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
26661 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
26663 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
26664 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
26665 (video_mod_SOURCES): Added.
26666 (video_mod_CFLAGS): Likewise.
26667 (video_mod_LDFLAGS): Likewise.
26668 (gfxterm_mod_SOURCES): Likewise.
26669 (gfxterm_mod_CFLAGS): Likewise.
26670 (gfxterm_mod_LDFLAGS): Likewise.
26671 (videotest_mod_SOURCES): Likewise.
26672 (videotest_mod_CFLAGS): Likewise.
26673 (videotest_mod_LDFLAGS): Likewise.
26674 (vesafb_mod_SOURCES): Removed.
26675 (vesafb_mod_CFLAGS): Likewise.
26676 (vesafb_mod_LDFLAGS): Likewise.
26677 (vga_mod_SOURCES): Likewise.
26678 (vga_mod_CFLAGS): Likewise.
26679 (vga_mod_LDFLAGS): Likewise.
26681 * commands/videotest.c: New file.
26683 * font/manager.c (fill_with_default_glyph): Modified to use
26685 (grub_font_get_glyph): Likewise.
26686 (fontmanager): Renamed from this...
26687 (font_manager): ... to this.
26689 * include/grub/font.h (grub_font_glyph): Added new structure.
26690 (grub_font_get_glyph): Modified to use grub_font_glyph.
26692 * include/grub/misc.h (grub_abs): Added as inline function.
26694 * include/grub/video.h: New file.
26696 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
26697 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
26698 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
26699 (grub_vbe_get_controller_info): Renamed from this...
26700 (grub_vbe_bios_get_controller_info): ... to this.
26701 (grub_vbe_get_mode_info): Renamed from this...
26702 (grub_vbe_bios_get_mode_info): ... to this.
26703 (grub_vbe_set_mode): Renamed from this...
26704 (grub_vbe_bios_set_mode): ... to this.
26705 (grub_vbe_get_mode): Renamed from this...
26706 (grub_vbe_bios_get_mode): ... to this.
26707 (grub_vbe_set_memory_window): Renamed from this...
26708 (grub_vbe_bios_set_memory_window): ... to this.
26709 (grub_vbe_get_memory_window): Renamed from this...
26710 (grub_vbe_bios_get_memory_window): ... to this.
26711 (grub_vbe_set_scanline_length): Renamed from this...
26712 (grub_vbe_set_scanline_length): ... to this.
26713 (grub_vbe_get_scanline_length): Renamed from this...
26714 (grub_vbe_bios_get_scanline_length): ... to this.
26715 (grub_vbe_set_display_start): Renamed from this...
26716 (grub_vbe_bios_set_display_start): ... to this.
26717 (grub_vbe_get_display_start): Renamed from this...
26718 (grub_vbe_bios_get_display_start): ... to this.
26719 (grub_vbe_set_palette_data): Renamed from this...
26720 (grub_vbe_bios_set_palette_data): ... to this.
26721 (grub_vbe_set_pixel_rgb): Removed.
26722 (grub_vbe_set_pixel_index): Likewise.
26724 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
26726 (grub_vbe_bios_get_controller_info): ... to this.
26727 (grub_vbe_get_mode_info): Renamed from this...
26728 (grub_vbe_bios_get_mode_info): ... to this.
26729 (grub_vbe_set_mode): Renamed from this...
26730 (grub_vbe_bios_set_mode): ... to this.
26731 (grub_vbe_get_mode): Renamed from this...
26732 (grub_vbe_bios_get_mode): ... to this.
26733 (grub_vbe_set_memory_window): Renamed from this...
26734 (grub_vbe_bios_set_memory_window): ... to this.
26735 (grub_vbe_get_memory_window): Renamed from this...
26736 (grub_vbe_bios_get_memory_window): ... to this.
26737 (grub_vbe_set_scanline_length): Renamed from this...
26738 (grub_vbe_set_scanline_length): ... to this.
26739 (grub_vbe_get_scanline_length): Renamed from this...
26740 (grub_vbe_bios_get_scanline_length): ... to this.
26741 (grub_vbe_set_display_start): Renamed from this...
26742 (grub_vbe_bios_set_display_start): ... to this.
26743 (grub_vbe_get_display_start): Renamed from this...
26744 (grub_vbe_bios_get_display_start): ... to this.
26745 (grub_vbe_set_palette_data): Renamed from this...
26746 (grub_vbe_bios_set_palette_data): ... to this.
26747 (grub_vbe_bios_get_controller_info): Fixed problem with registers
26748 getting corrupted after calling it. Added more pushes and pops.
26749 (grub_vbe_bios_set_mode): Likewise.
26750 (grub_vbe_bios_get_mode): Likewise.
26751 (grub_vbe_bios_get_memory_window): Likewise.
26752 (grub_vbe_bios_set_scanline_length): Likewise.
26753 (grub_vbe_bios_get_scanline_length): Likewise.
26754 (grub_vbe_bios_get_display_start): Likewise.
26755 (grub_vbe_bios_set_palette_data): Likewise.
26757 * normal/cmdline.c (cl_set_pos): Refresh the screen.
26758 (cl_insert): Likewise.
26759 (cl_delete): Likewise.
26761 * term/gfxterm.c: New file.
26763 * term/i386/pc/vesafb.c: Removed file.
26765 * video/video.c: New file.
26767 * video/i386/pc/vbe.c (real2pm): Added new function.
26768 (grub_video_vbe_draw_pixel): Likewise.
26769 (grub_video_vbe_get_video_ptr): Likewise.
26770 (grub_video_vbe_get_pixel): Likewise
26771 (grub_video_vbe_init): Likewise.
26772 (grub_video_vbe_fini): Likewise.
26773 (grub_video_vbe_setup): Likewise.
26774 (grub_video_vbe_get_info): Likewise.
26775 (grub_video_vbe_set_palette): Likewise.
26776 (grub_video_vbe_get_palette): Likewise.
26777 (grub_video_vbe_set_viewport): Likewise.
26778 (grub_video_vbe_get_viewport): Likewise.
26779 (grub_video_vbe_map_color): Likewise.
26780 (grub_video_vbe_map_rgb): Likewise.
26781 (grub_video_vbe_map_rgba): Likewise.
26782 (grub_video_vbe_unmap_color): Likewise.
26783 (grub_video_vbe_fill_rect): Likewise.
26784 (grub_video_vbe_blit_glyph): Likewise.
26785 (grub_video_vbe_blit_bitmap): Likewise.
26786 (grub_video_vbe_blit_render_target): Likewise.
26787 (grub_video_vbe_scroll): Likewise.
26788 (grub_video_vbe_swap_buffers): Likewise.
26789 (grub_video_vbe_create_render_target): Likewise.
26790 (grub_video_vbe_delete_render_target): Likewise.
26791 (grub_video_vbe_set_active_render_target): Likewise.
26792 (grub_vbe_set_pixel_rgb): Remove function.
26793 (grub_vbe_set_pixel_index): Likewise.
26794 (index_color_mode): Remove static variable.
26795 (active_mode): Likewise.
26796 (framebuffer): Likewise.
26797 (bytes_per_scan_line): Likewise.
26798 (grub_video_vbe_adapter): Added new static variable.
26799 (framebuffer): Likewise.
26800 (render_target): Likewise.
26801 (initial_mode): Likewise.
26802 (mode_in_use): Likewise.
26803 (mode_list): Likewise.
26805 2006-03-10 Marco Gerards <marco@gnu.org>
26807 * configure.ac (AC_INIT): Bumped to 1.93.
26809 * DISTLIST: Added `include/grub/hfs.h'.
26811 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
26813 * boot/i386/pc/boot.S (general_error): Before looping, try INT
26814 18H, which might help the BIOS falling back to next boot media.
26816 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
26818 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
26819 Poe Chen <poe.poechen@gmail.com>.
26821 2006-01-17 Marco Gerards <marco@gnu.org>
26823 * include/grub/normal.h: Include <grub/script.h>.
26824 (grub_command_list): Removed struct.
26825 (grub_command_list_t): Removed type.
26826 (grub_menu_entry): Remove members `num' and `command_list'. Add
26827 members `commands' and `sourcecode'.
26828 * include/grub/script.h: Add inclusion guards.
26829 (grub_script_cmd_menuentry): New struct.
26830 (grub_script_execute_menuentry): New prototype.
26831 (grub_script_lexer_record_start): Likewise.
26832 (grub_script_lexer_record_stop): Likewise.
26833 * normal/execute.c (grub_script_execute_menuentry): New function.
26834 * normal/lexer.c (record, recording, recordpos, recordlen): New
26836 (grub_script_lexer_record_start): New function.
26837 (grub_script_lexer_record_stop): Likewise.
26838 (recordchar): Likewise.
26839 (nextchar): Likewise.
26840 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
26841 2048 as the buffer size. Add the tokens `menuentry' and `@'.
26842 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
26843 (current_menu): New variable.
26844 (free_menu): Mainly rewritten.
26845 (grub_normal_menu_addentry): New function.
26846 (read_config_file): Rewritten.
26847 * normal/menu.c (run_menu_entry): Mainly rewritten.
26848 * normal/menu_entry.c (make_screen): Rewritten the code to insert
26850 (run): Mainly rewritten.
26851 * normal/parser.y (menu_entry): New variable.
26852 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
26853 (menuentry): New rule.
26854 (command): Add `menuentry'.
26855 (if_statement): Allow additional returns before `fi'.
26856 * normal/script.c (grub_script_create_cmdmenu): New function.
26858 2006-01-03 Marco Gerards <marco@gnu.org>
26860 * INSTALL: GNU Bison is required.
26861 * configure.ac: Rewritten the test to detect Bison.
26862 * Makefile.in (YACC): New variable. Reported by Xun Sun
26863 <xun.sun.cn@gmail.com>.
26865 2006-01-03 Marco Gerards <marco@gnu.org>
26867 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
26868 the HFS+ filesystem to filesystem blocks.
26869 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
26870 GCC warning is silenced.
26872 2006-01-03 Marco Gerards <marco@gnu.org>
26874 * partmap/apple.c (apple_partition_map_iterate): Convert the data
26875 read from disk from big endian to host byte order.
26877 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
26879 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
26881 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
26882 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
26883 embedded HFS+ filesystem.
26884 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
26885 (grub_hfs_sblock): Move from here...
26886 * include/grub/hfs.h: To here... New file.
26887 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
26889 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
26891 (grub_hfsplus_volheader): Change type of member `magic' to
26893 (grub_hfsplus_data): Add new member `embedded_offset'.
26894 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
26896 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
26897 Calculate the offset.
26899 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
26901 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
26903 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
26905 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
26907 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
26908 ENV->NAME is NULL after allocating ENV->VALUE.
26910 2005-12-25 Marco Gerards <marco@gnu.org>
26912 * kern/env.c (grub_env_set): Rewritten the error handling code.
26914 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
26916 * geninit.sh: Made more robust, and more portable.
26918 2005-12-25 Marco Gerards <marco@gnu.org>
26920 Add support for Apple HFS+ filesystems.
26922 * fs/hfsplus.c: New file.
26924 * DISTLIST: Added `fs/hfsplus.c'.
26926 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
26927 (hfsplus_mod_SOURCES): New variable.
26928 (hfsplus_mod_CFLAGS): Likewise.
26929 (hfsplus_mod_LDFLAGS): Likewise.
26930 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
26931 (grub_setup_SOURCES): Likewise.
26932 (grub_mkdevicemap_SOURCES): Likewise.
26933 (grub_emu_SOURCES): Likewise.
26934 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26936 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
26938 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
26940 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
26942 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
26943 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
26944 include/grub/parser.h, include/grub/script.h, kern/parser.c,
26945 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
26946 normal/lexer.c, normal/parser.y, normal/script.c, and
26948 Removed kern/sparc64/cache.c.
26950 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
26951 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
26954 * configure.ac (AC_INIT): Bumped to 1.92.
26956 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
26958 * kern/err.c (grub_error_push): Added new function to support error
26960 (grub_error_pop): Likewise.
26961 (grub_error_stack_items): New local variable to support error stacks.
26962 (grub_error_stack_pos): Likewise.
26963 (grub_error_stack_assert): Likewise.
26964 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
26966 (grub_print_error): Added support to print errors from error stack.
26968 * include/grub/err.h (grub_error_push): Added function prototype.
26969 (grub_error_pop): Likewise.
26971 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
26973 * configure.ac: Accept `powerpc64' as host_cpu.
26974 (amd64): Rename to `biarch32'.
26976 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
26977 non-cacheline-aligned addresses.
26979 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
26980 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
26981 if `size' is non-zero.
26983 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
26985 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
26986 and `cd' to make sure the filename is not prefixed with a
26988 (pkgdata_MODULES): Add `gpt.mod'.
26989 (gpt_mod_SOURCES): New variable.
26990 (gpt_mod_CFLAGS): Likewise.
26991 (gpt_mod_LDFLAGS): Likewise.
26993 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
26995 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
26998 * partmap/gpt.c: New file.
27000 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
27001 GPT partition map is detected.
27003 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
27005 * commands/i386/pc/play.c: New file.
27006 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
27007 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
27010 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
27012 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
27013 ((unused))' to silence gcc warning.
27015 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
27017 * configure.ac: Correct `AC_PROG_YACC' test.
27019 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
27021 * util/powerpc/ieee1275/grub-install.in: Run the mount point
27022 check before installing files.
27024 2005-11-22 Mike Small <smallm@panix.com>
27026 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
27027 number regex so multidigit numbers are recognized correctly.
27029 2005-11-22 Mike Small <smallm@panix.com>
27031 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
27032 debugging message before attempting to claim memory.
27033 (grub_rescue_cmd_initrd): Add a claim debugging message and try
27034 multiple addresses in case of failure.
27036 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
27038 * term/tparm.c (get_space): Remove empty `if' statement.
27040 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
27042 * kern/parser.c (check_varstate): Rename `state' to 's'.
27044 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
27046 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
27047 variable definitions to the beginning of each function. Sort stack
27049 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
27050 `buf' argument to `char *'.
27052 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
27054 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
27055 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
27056 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
27057 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
27058 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
27059 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
27060 configfile.mod, search.mod, gzio.mod and test.mod.
27061 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
27062 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
27063 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
27064 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
27065 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
27066 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
27067 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
27068 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
27069 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
27070 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
27071 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
27072 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
27073 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
27074 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
27075 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
27076 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
27077 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
27078 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
27079 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
27080 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
27081 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
27082 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
27083 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
27085 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
27087 (pkgdata_MODULES): Add test.mod.
27089 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
27091 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
27092 appending to variables with "+=".
27093 (PModule): Use full pathname to generate *.lst filenames.
27095 * Makefile.in: Fixed list rules moved from genmk.rb.
27096 (.DELETE_ON_ERROR): New special target.
27097 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
27099 * conf/i386-pc.rmk: Include conf/common.mk.
27100 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
27101 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
27102 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
27103 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
27104 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
27105 configfile.mod, search.mod, gzio.mod and test.mod.
27106 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
27107 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
27108 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
27109 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
27110 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
27111 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
27112 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
27113 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
27114 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
27115 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
27116 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
27117 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
27118 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
27119 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
27120 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
27121 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
27122 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
27123 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
27124 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
27125 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
27126 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
27127 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
27128 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
27130 * conf/common.rmk: ... to here. New file.
27132 * conf/common.mk: New file.
27134 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
27136 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
27137 (grub_script.tab.c): ... here.
27139 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
27140 (grub_script.tab.c): ... here.
27142 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
27143 (grub_script.tab.c): ... here.
27145 * normal/command.c (grub_command_find): Fixed a memory leak of
27146 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
27148 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
27150 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
27151 "@" which marks the start of a comment on ARM.
27152 (VARIABLE): Likewise.
27154 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
27156 Add support for Linux/ADFS partition tables.
27158 * partmap/acorn.c: New file.
27160 * include/grub/acorn_filecore.h: Likewise.
27162 * DISTLIST: Added `partmap/acorn.c' and
27163 `include/grub/acorn_filecore.h'.
27165 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
27167 (pkgdata_MODULES): Add `acorn.mod'.
27168 (acorn_mod_SOURCES): New variable.
27169 (acorn_mod_CFLAGS): Likewise.
27171 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
27173 (pkgdata_MODULES): Add `acorn.mod'.
27174 (acorn_mod_SOURCES): New variable.
27175 (acorn_mod_CFLAGS): Likewise.
27177 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
27178 (pkgdata_MODULES): Add `acorn.mod'.
27179 (acorn_mod_SOURCES): New variable.
27180 (acorn_mod_CFLAGS): Likewise.
27181 (acorn_mod_LDFLAGS): Likewise.
27183 * include/types.h (grub_disk_addr_t): New typedef.
27185 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
27187 * geninit.sh: New file.
27189 * geninitheader.sh: Likewise.
27191 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
27192 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
27193 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
27194 * commands/configfile.c (grub_configfile_init)
27195 (grub_configfile_fini): Likewise.
27196 * commands/default.c (grub_default_init, grub_default_fini):
27198 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
27199 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
27200 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
27201 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
27203 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
27204 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
27206 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
27207 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
27209 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
27211 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
27213 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
27214 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
27215 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
27216 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
27217 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
27218 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
27219 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
27220 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
27221 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
27222 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
27223 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
27224 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
27225 * partmap/amiga.c (grub_amiga_partition_map_init)
27226 (grub_amiga_partition_map_fini): Likewise.
27227 * partmap/apple.c (grub_apple_partition_map_init)
27228 (grub_apple_partition_map_fini): Likewise.
27229 * partmap/pc.c (grub_pc_partition_map_init)
27230 (grub_pc_partition_map_fini): Likewise.
27231 * partmap/sun.c (grub_sun_partition_map_init,
27232 grub_sun_partition_map_fini): Likewise.
27233 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
27236 * util/grub-emu.c: Include <grub_modules_init.h>.
27237 (main): Don't initialize and de-initialize any modules directly,
27238 use `grub_init_all' and `grub_fini_all' instead.
27240 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
27241 `grub_vesafb_mod_init'.
27242 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
27244 * term/i386/pc/vga.c (grub_vga_init): Renamed to
27245 `grub_vga_mod_init'. Updated all users.
27246 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
27248 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
27249 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
27252 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
27253 Generate a function to initialize the module in utilities.
27254 Updated all callers.
27255 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
27256 initialize the module in utilities. Updated all callers.
27258 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
27260 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
27261 escape sequence and a literal ^L to clear the screen.
27263 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
27264 when returning from Open Firmware.
27266 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
27268 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
27269 (grub_ofconsole_height): Likewise.
27270 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
27271 manually insert a '\n'.
27272 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
27273 `grub_ofconsole_height'. Return early if these are already set.
27275 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
27277 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
27278 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
27279 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
27280 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
27281 and `normal/script.c'.
27282 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
27283 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
27284 (test_mod_SOURCES): New variable.
27285 (test_mod_CFLAGS): Likewise.
27286 (test_mod_LDFLAGS): Likewise.
27287 (pkgdata_MODULES): Add `test.mod'.
27288 (grub_script.tab.c): New rule.
27289 (grub_script.tab.h): Likewise.
27291 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
27293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
27294 `commands/test.c', `normal/execute.c', `normal/lexer.c',
27295 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
27296 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
27297 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
27298 (test_mod_SOURCES): New variable.
27299 (test_mod_CFLAGS): Likewise.
27300 (pkgdata_MODULES): Add `test.mod'.
27301 (grub_script.tab.c): New rule.
27302 (grub_script.tab.h): Likewise.
27304 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
27306 Add initial scripting support.
27308 * commands/test.c: New file.
27309 * include/grub/script.h: Likewise.
27310 * normal/execute.c: Likewise.
27311 * normal/function.c: Likewise.
27312 * normal/lexer.c: Likewise.
27313 * normal/parser.y: Likewise.
27314 * normal/script.c: Likewise.
27316 * configure.ac: Add `AC_PROG_YACC' test.
27318 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
27319 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
27320 `normal/function.c' and `normal/script.c'.
27321 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
27322 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
27323 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
27325 (pkgdata_MODULES): Add `test.mod'.
27326 (grub_script.tab.c): New rule.
27327 (grub_script.tab.h): Likewise.
27329 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
27331 * include/grub/normal.h (grub_test_init): New prototype.
27332 (grub_test_fini): Likewise.
27334 * normal/command.c: Include <grub/script.h>.
27335 (grub_command_execute): Rewritten.
27337 * util/grub-emu.c (main): Call `grub_test_init' and
27340 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
27342 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
27344 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
27345 there are no pending characters.
27347 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
27349 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
27350 `grub_strndup' to drop device arguments. Replace unnecessary
27351 `grub_strndup' with `grub_strdup'.
27353 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
27355 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
27356 `debug' environment variable has been set.
27358 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
27360 * Makefile.in (install-local): Use $(DATA).
27361 (uninstall): Likewise.
27362 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
27363 (sbin_UTILITIES): ... to here.
27364 (sbin_SCRIPTS): New variable.
27365 (grub_install_SOURCES): New variable.
27366 * util/powerpc/ieee1275/grub-install.in: New file.
27367 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
27369 (add_segments): Call `grub_util_get_path'.
27371 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
27373 From Timothy Baldwin:
27374 * commands/ls.c (grub_ls_list_files): Close FILE with
27376 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
27378 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
27380 * include/grub/parser.h: New file.
27382 * kern/parser.c: Likewise.
27384 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
27385 (grub_setup_SOURCES): Likewise.
27386 (grub_probefs_SOURCES): Likewise.
27387 (grub_emu_SOURCES): Likewise.
27388 (kernel_img_HEADERS): Add `parser.h'.
27390 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
27391 (grub_emu_SOURCES): Add `kern/parser.c'.
27392 (grubof_SOURCES): Likewise.
27394 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
27395 (grubof_SOURCES): Add `kern/parser.c'.
27397 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
27399 * kern/misc.c (grub_split_cmdline): Removed function.
27401 * kern/rescue.c: Include <grub/parser.h>.
27402 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
27403 of `grub_split_cmdline'.
27405 * normal/command.c: Include <grub/parser.h>.
27406 (grub_command_execute): Use `grub_parser_split_cmdline' instead
27407 of `grub_split_cmdline'.
27409 * normal/completion.c: Include <grub/parser.h>.
27410 (cmdline_state): New variable.
27411 (iterate_dir): End the filename with a quote depending on the
27412 command line state.
27413 (get_state): new function.
27414 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
27415 split the arguments and determine the current argument. When the
27416 argument string is not quoted, escape all spaces.
27418 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
27420 * normal/sparc64/setjmp.S: New file.
27422 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
27424 * include/grub/sparc64/libgcc.h: New file.
27425 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
27426 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
27427 normal/sparc64/setjmp.c.
27429 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
27431 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
27432 * kern/sparc64/cache.S: New file.
27433 * kern/sparc64/cache.c: Removed.
27434 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
27435 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
27437 (COMMON_LDFLAGS): Add -melf64_sparc.
27438 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
27439 (grubof_SOURCES): Use cache.S instead of cache.c.
27440 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
27441 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
27442 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
27444 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
27445 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
27446 (linux_mod_CFLAGS): Commented out.
27447 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
27448 out because module isn't built.
27449 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
27450 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
27451 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
27452 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
27453 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
27454 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
27455 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
27456 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
27457 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
27458 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
27459 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
27460 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
27461 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
27462 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
27464 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
27466 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
27467 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
27468 longer, because HFS should not be used on PC.
27470 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
27472 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
27473 consistently within the loop.
27475 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
27477 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
27478 directory can not be read.
27480 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
27482 * configure.ac (AC_INIT): Increase the version number to 1.91.
27484 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
27485 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
27486 term/i386/pc/serial.c.
27488 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
27490 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
27491 file size must be permitted.
27493 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
27494 between %ah and %al.
27496 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
27498 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
27500 Call the hook with a NUL-terminated filename.
27501 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
27504 * kern/term.c (cursor_state): New variable.
27505 (grub_term_set_current): Reset the cursor state on a new
27507 (grub_setcursor): Rewritten to use CURSOR_STATE.
27508 (grub_getcursor): New function.
27510 * include/grub/term.h (grub_getcursor): New prototype.
27512 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
27513 integers on ARM. Reported by Timothy Baldwin
27514 <T.E.Baldwin99@members.leeds.ac.uk>.
27516 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
27518 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
27520 (grub_sfs_dir): Likewise.
27522 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
27524 Add support for the SFS filesystem.
27526 * fs/sfs.c: New file.
27528 * DISTLIST: Added `fs/sfs.c'.
27530 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
27531 (grub_probefs_SOURCES): Likewise.
27532 (grub_emu_SOURCES): Likewise.
27533 (pkgdata_MODULES): Add `sfs.mod'.
27534 (sfs_mod_SOURCES): New variable.
27535 (sfs_mod_CFLAGS): Likewise.
27536 (sfs_mod_LDFLAGS): Likewise.
27538 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
27539 (pkgdata_MODULES): Add `sfs.mod'.
27540 (sfs_mod_SOURCES): New variable.
27541 (sfs_mod_CFLAGS): Likewise.
27543 * util/grub-emu.c (main): Call `grub_sfs_init' and
27546 * include/grub/fs.h (grub_sfs_init): New prototype.
27547 (grub_sfs_fini): Likewise.
27549 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
27551 Add support for the AFFS filesystem.
27553 * fs/affs.c: New file.
27555 * DISTLIST: Added `fs/affs.c'.
27557 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
27558 (grub_probefs_SOURCES): Likewise.
27559 (grub_emu_SOURCES): Likewise.
27560 (pkgdata_MODULES): Add `affs.mod'.
27561 (affs_mod_SOURCES): New variable.
27562 (affs_mod_CFLAGS): Likewise.
27563 (affs_mod_LDFLAGS): Likewise.
27565 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
27566 (pkgdata_MODULES): Add `affs.mod'.
27567 (affs_mod_SOURCES): New variable.
27568 (affs_mod_CFLAGS): Likewise.
27570 * util/grub-emu.c (main): Call `grub_affs_init' and
27573 * include/grub/fs.h (grub_affs_init): New prototype.
27574 (grub_affs_fini): Likewise.
27576 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
27578 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
27580 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
27582 * configure.ac: Accept `x86_64' as host_cpu. In that case add
27585 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
27588 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
27589 (COMMON_LDFLAGS): New variable.
27590 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
27591 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
27592 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
27593 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
27594 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
27595 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
27596 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
27597 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
27598 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
27599 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
27600 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
27601 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
27602 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
27603 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
27604 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
27606 (normal_mod_ASFLAGS): Add `-m32'.
27608 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
27609 (grub_host_size_t, grub_host_ssize_t): New types.
27610 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
27611 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
27612 `GRUB_HOST_SIZEOF_VOID_P'.
27614 * include/grub/kernel.h (struct grub_module_header): Type of
27615 member offset changed to `grub_host_off_t'. Type of member size
27616 changed to `grub_host_size_t'.
27617 (struct grub_module_info): Type of member offset changed to
27618 `grub_host_off_t'. Type of member size changed to
27619 `grub_host_size_t'.
27621 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
27623 Make GRUB's kernel compliant to Multiboot Specification.
27625 * kern/i386/pc/startup.S (multiboot_header): New label.
27626 (multiboot_entry): Likewise.
27627 (multiboot_trampoline): Likewise.
27629 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
27630 Increased to 0x4A0.
27632 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
27633 put parentheses after a question mark.
27634 [!GRUB_UTIL] (my_mod): New variable.
27636 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
27638 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
27640 Adds support for the XFS filesystem. Btrees are not supported
27643 * fs/xfs.c: New file.
27645 * DISTLIST: Added `fs/xfs.c'.
27647 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
27648 (grub_probefs_SOURCES): Likewise.
27649 (grub_emu_SOURCES): Likewise.
27650 (pkgdata_MODULES): Add `xfs.mod'.
27651 (xfs_mod_SOURCES): New variable.
27652 (xfs_mod_CFLAGS): Likewise.
27654 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
27655 (pkgdata_MODULES): Add `xfs.mod'.
27656 (xfs_mod_SOURCES): New variable.
27657 (xfs_mod_CFLAGS): Likewise.
27659 * util/grub-emu.c (main): Call `grub_xfs_init' and
27662 * include/grub/fs.h (grub_xfs_init): New prototype.
27663 (grub_xfs_fini): Likewise.
27666 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
27668 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
27669 color modes, allow greater than 16 colors to be configured as
27672 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
27674 * normal/completion.c (complete_arguments): Add the qualifier
27675 const into OPTIONS.
27677 From Omniflux <omniflux+lists@omniflux.com>:
27678 * include/grub/terminfo.h: New file.
27679 * include/grub/tparm.h: Likewise.
27680 * include/grub/i386/pc/serial.h: Likewise.
27681 * term/terminfo.c: Likewise.
27682 * term/tparm.c: Likewise.
27683 * term/i386/pc/serial.c: Likewise.
27684 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
27686 (terminfo_mod_SOURCES): New variable.
27687 (terminfo_mod_CFLAGS): Likewise.
27688 (serial_mod_SOURCES): Likewise.
27689 (serial_mod_CFLAGS): Likewise.
27691 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
27693 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
27694 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
27695 and kern/powerpc/ieee1275/cmain.c, respectively.
27697 * boot/powerpc/ieee1275/crt0.S: Moved to ...
27698 * kern/powerpc/ieee1275/crt0.S: ... here.
27700 * boot/powerpc/ieee1275/cmain.c: Moved to ...
27701 * kern/powerpc/ieee1275/cmain.c: ... here.
27703 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
27704 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
27705 instead of boot/powerpc/ieee1275/crt0.S and
27706 boot/powerpc/ieee1275/cmain.c, respectively.
27708 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
27709 sectors. It was not used anyway.
27711 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
27713 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
27714 `unused parameter' warning.
27716 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
27718 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
27720 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
27723 2005-08-28 Marco Gerards <metgerards@student.han.nl>
27725 * include/grub/normal.h (enum grub_completion_type): Added
27726 `GRUB_COMPLETION_TYPE_ARGUMENT'.
27728 * normal/cmdline.c (print_completion): Handle
27729 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
27730 * normal/menu_entry.c (store_completion): Likewise.
27732 * normal/completion.c (complete_arguments): New function.
27733 (grub_normal_do_completion): Call `complete_arguments' when the
27734 current words start with a dash.
27736 2005-08-27 Marco Gerards <metgerards@student.han.nl>
27738 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
27739 `gzio.mod' instead of `io.mod').
27741 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
27743 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
27744 (DISTDIRS): Added io and video.
27745 Rewrite the search routine to make an output consistently.
27747 * DISTLIST: Added conf/sparc64-ieee1275.mk,
27748 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
27749 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
27750 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
27751 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
27752 util/powerpc/ieee1275/misc.c.
27754 * include/grub/gzio.h: New file.
27755 * io/gzio.c: Likewise.
27757 * kern/file.c (grub_file_close): Call grub_device_close only if
27758 FILE->DEVICE is not NULL.
27760 * include/grub/mm.h [!NULL] (NULL): New macro.
27762 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
27764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
27765 (pkgdata_MODULES): Added gzio.mod.
27766 (gzio_mod_SOURCES): New variable.
27767 (gzio_mod_CFLAGS): Likewise.
27769 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
27770 (pkgdata_MODULES): Added gzio.mod.
27771 (gzio_mod_SOURCES): New variable.
27772 (gzio_mod_CFLAGS): Likewise.
27774 * commands/cat.c: Include grub/gzio.h.
27775 (grub_cmd_cat): Use grub_gzfile_open instead of
27778 * commands/cmp.c: Include grub/gzio.h.
27779 (grub_cmd_cmp): Use grub_gzfile_open instead of
27782 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
27783 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
27785 (grub_rescue_cmd_module): Likewise.
27787 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
27789 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
27790 kern/sparc64/ieee1275/init.c because it contains _start.
27791 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
27793 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
27795 * configure.ac: Add support for sparc64 host with ieee1275
27797 * configure: Generated from configure.ac.
27798 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
27800 (grub_ofdisk_read): Likewise.
27801 (grub_ofdisk_open): Use %p to print pointer values, and cast the
27802 pointers as (void *) to remove a warning.
27803 (grub_ofdisk_close): Likewise.
27804 (grub_ofdisk_read): Likewise.
27805 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
27806 returns, so make it return void to remove a warning.
27807 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
27808 Corresponding prototype change.
27809 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
27810 values, and cast the pointers as (void *) to remove a warning.
27811 (grub_mm_dump): Likewise.
27812 * conf/sparc64-ieee1275.mk: New file.
27813 * conf/sparc64-ieee1275.rmk: Likewise.
27814 * include/grub/sparc64/setjmp.h: Likewise.
27815 * include/grub/sparc64/types.h: Likewise.
27816 * include/grub/sparc64/ieee1275/console.h: Likewise.
27817 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
27818 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27819 * include/grub/sparc64/ieee1275/time.h: Likewise.
27820 * kern/sparc64/cache.c: Likewise.
27821 * kern/sparc64/dl.c: Likewise.
27822 * kern/sparc64/ieee1275/init.c: Likewise.
27823 * kern/sparc64/ieee1275/openfw.c: Likewise.
27825 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
27827 * util/console.c (grub_ncurses_putchar): If C is greater than
27828 0x7f, set C to a question mark.
27829 (grub_ncurses_getcharwidth): New function.
27830 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
27833 * normal/menu.c (print_entry): Made aware of Unicode. First,
27834 convert TITLE to UCS-4, and predict the cursor position by
27837 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
27839 * kern/misc.c (grub_utf16_to_utf8): Likewise.
27841 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
27843 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
27844 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
27847 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
27848 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
27849 grub_strcpy and grub_strlen. Take it into account that a space
27850 character is inserted as a delimiter.
27852 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
27854 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
27855 invalid magic in the error.
27857 * commands/search.c: New file.
27859 * util/grub-emu.c (main): Call grub_search_init and
27862 * kern/rescue.c (grub_rescue_print_disks): Removed.
27863 (grub_rescue_print_devices): New function.
27864 (grub_rescue_cmd_ls): Use grub_device_iterate with
27865 grub_rescue_print_devices instead of grub_disk_dev_iterate with
27866 grub_rescue_print_disks.
27868 * kern/partition.c (grub_partition_iterate): Return the result of
27869 PARTMAP->ITERATE instead of GRUB_ERRNO.
27871 * kern/device.c: Include grub/partition.h.
27872 (grub_device_iterate): New function.
27874 * include/grub/partition.h (grub_partition_iterate): Return int
27875 instead of grub_err_t.
27877 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
27879 [GRUB_UTIL] (grub_search_fini): Likewise.
27881 * include/grub/device.h (grub_device_iterate): New prototype.
27883 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
27885 (pkgdata_MODULES): Added search.mod.
27886 (search_mod_SOURCES): New variable.
27887 (search_mod_CFLAGS): Likewise.
27889 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
27890 (pkgdata_MODULES): Added search.mod.
27891 (search_mod_SOURCES): New variable.
27892 (search_mod_CFLAGS): Likewise.
27894 * commands/ls.c (grub_ls_list_disks): Renamed to ...
27895 (grub_ls_list_devices): ... this, and use grub_device_iterate.
27896 All callers changed.
27898 * DISTLIST: Added commands/search.c.
27900 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
27902 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
27904 (grub_getcharwidth): New function.
27906 * kern/misc.c (grub_utf8_to_ucs4): New function.
27908 * include/grub/term.h (struct grub_term): Added a new member
27910 (grub_getcharwidth): New prototype.
27912 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
27914 * term/i386/pc/console.c (map_char): New function. Segregated from
27915 grub_console_putchar.
27916 (grub_console_putchar): Use map_char.
27917 (grub_console_getcharwidth): New function.
27918 (grub_console_term): Specified grub_console_getcharwidth as
27921 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
27922 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
27924 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
27926 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
27927 on grub_strtoul completely.
27928 (write_char): Declare local variables in the beginning of the
27930 (grub_vesafb_getcharwidth): New function.
27931 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
27934 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
27936 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
27937 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
27938 commands/i386/pc/vbetest.c.
27940 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
27941 call grub_vbe_get_controller_info again, because the returned
27942 information is volatile.
27943 (grub_vbe_set_video_mode): Mostly rewritten.
27944 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
27945 grub_vbe_status_t correctly.
27946 (grub_vbe_get_video_mode_info): Likewise.
27947 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
27948 several if statements.
27950 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
27951 * commands/i386/pc/vbeinfo.c: ... this.
27953 * commands/i386/pc/vbe_test.c: Renamed to ...
27954 * commands/i386/pc/vbetest.c: ... this.
27956 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
27958 (grub_cmd_vbeinfo): ... this. Save video modes before
27959 iterating. Skip a video mode, if it is not available, not enough
27960 information is given or it is monochrome. Show the memory
27961 model. Leave the interpretation of MODEVAR to grub_strtoul
27963 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
27964 (GRUB_MOD_FINI): Likewise.
27966 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
27967 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
27968 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
27969 duplicated grub_env_get. Leave the interpretation of MODEVAR to
27970 grub_strtoul completely.
27971 (real2pm): Removed.
27972 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
27973 (GRUB_MOD_FINI): Likewise.
27975 * normal/misc.c: Include grub/mm.h.
27977 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
27978 vbe_list_modes with vbetest.mod and vbeinfo.mod.
27979 (vbe_list_modes_mod_SOURCES): Removed.
27980 (vbe_list_modes_mod_CFLAGS): Likewise.
27981 (vbe_test_mod_SOURCES): Likewise.
27982 (vbe_test_mod_CFLAGS): Likewise.
27983 (vbeinfo_mod_SOURCES): New variable.
27984 (vbeinfo_mod_CFLAGS): Likewise.
27985 (vbetest_mod_SOURCES): Likewise.
27986 (vbetest_mod_CFLAGS): Likewise.
27988 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
27990 * normal/misc.c: New file.
27992 * DISTLIST: Added normal/misc.c.
27994 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
27995 DISK to HOOK. Call HOOK with DISK.
27996 * partmap/apple.c (apple_partition_map_iterate): Likewise.
27997 * partmap/pc.c (pc_partition_map_iterate): Likewise.
27998 * partmap/sun.c (sun_partition_map_iterate): Likewise.
28000 * normal/menu_entry.c (struct screen): Added a new member
28001 "completion_shown".
28002 (completion_buffer): New global variable.
28003 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
28004 (store_completion): New function.
28005 (complete): Likewise.
28006 (clear_completions): Likewise.
28007 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
28008 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
28009 a tab, call complete.
28011 * normal/completion.c (disk_dev): Removed.
28012 (print_simple_completion): Likewise.
28013 (print_partition_completion): Likewise.
28014 (print_func): New global variable.
28015 (add_completion): Do not take the arguments WHAT or PRINT any
28016 longer. Added a new argument TYPE. Instead of printing directly,
28017 call PRINT_FUNC if not NULL.
28018 All callers changed.
28019 (complete_device): Use a local variable DEV instead of
28020 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
28021 (grub_normal_do_completion): Take a new argument HOOK. Do not
28022 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
28023 empty string, return NULL instead.
28024 All callers changed.
28026 * normal/cmdline.c (print_completion): New function.
28028 * kern/partition.c (grub_partition_iterate): Add an argument DISK
28030 All callers changed.
28032 * kern/disk.c (grub_print_partinfo): Removed.
28034 * include/grub/partition.h (struct grub_partition_map): Add a new
28035 argument DISK into HOOK of ITERATE.
28036 (grub_partition_iterate): Add a new argument DISK to HOOK.
28038 * include/grub/normal.h (enum grub_completion_type): New enum.
28039 (grub_completion_type_t): New type.
28040 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
28041 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
28042 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
28043 (GRUB_COMPLETION_TYPE_FILE): Likewise.
28044 (grub_normal_do_completion): Added a new argument HOOK.
28045 (grub_normal_print_device_info): New prototype.
28047 * include/grub/disk.h (grub_print_partinfo): Removed.
28049 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
28050 (normal_mod_SOURCES): Likewise.
28051 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28052 (normal_mod_SOURCES): Likewise.
28054 * commands/ls.c (grub_ls_list_disks): Use
28055 grub_normal_print_device_info instead of grub_print_partinfo. Free
28057 (grub_ls_list_files): Use grub_normal_print_device_info instead of
28058 duplicating the code.
28060 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
28062 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
28063 follow GCS more precisely.
28064 * commands/i386/pc/vbe_test.c: Likewise.
28065 * include/grub/i386/pc/vbe.h: Likewise.
28066 * term/i386/pc/vesafb.c: Likewise.
28067 * video/i386/pc/vbe.c: Likewise.
28069 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
28071 * DISTLIST: Added term/i386/pc/vesafb.c
28072 DISTLIST: Added video/i386/pc/vbe.c
28073 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
28074 DISTLIST: Added commands/i386/pc/vbe_test.c.
28075 * commands/i386/pc/vbe_list_modes.c: New file.
28076 * commands/i386/pc/vbe_test.c: Likewise.
28077 * term/i386/pc/vesafb.c: Likewise.
28078 * video/i386/pc/vbe.c: Likewise.
28079 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
28080 (grub_vbe_probe) Added prototype.
28081 (grub_vbe_set_video_mode) Likewise.
28082 (grub_vbe_get_video_mode) Likewise.
28083 (grub_vbe_get_video_mode_info) Likewise.
28084 (grub_vbe_set_pixel_rgb) Likewise.
28085 (grub_vbe_set_pixel_index) Likewise.
28086 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
28087 (pkgdata_MODULES): Added vesafb.mod.
28088 (pkgdata_MODULES): Added vbe_list_modes.mod.
28089 (pkgdata_MODULES): Added vbe_test.mod.
28090 (vbe_mod_SOURCES): Added.
28091 (vbe_mod_CFLAGS): Likewise.
28092 (vesafb_mod_SOURCES): Likewise.
28093 (vesafb_mod_CFLAGS): Likewise.
28094 (vbe_list_modes_mod_SOURCES): Likewise.
28095 (vbe_list_modes_mod_CFLAGS): Likewise.
28096 (vbe_test_mod_SOURCES): Likewise.
28097 (vbe_test_mod_CFLAGS): Likewise.
28099 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
28101 * normal/command.c (grub_command_execute): If INTERACTIVE is
28102 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
28103 CMDLINE. Disable the pager if INTERACTIVE is true.
28104 All callers are changed.
28106 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
28107 before reading a config file.
28108 * normal/main.c (read_config_file): Even if a command is not
28109 found, register it if it is within an entry.
28111 * util/grub-emu.c: Include sys/types.h and unistd.h.
28112 (options): Added --hold.
28113 (struct arguments): Added a new member "hold".
28114 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
28116 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
28117 cleared by a debugger, if it is not zero.
28119 * include/grub/normal.h (grub_command_execute): Add an argument
28122 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
28124 * DISTLIST: Added include/grub/i386/pc/vbe.h.
28126 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
28128 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
28129 program with another one, because the old one didn't detect a bug
28130 in gcc-3.4. Always use regparm 2, because the new test is still
28131 not enough for gcc-4.0. Someone must investigate a simple test
28132 case which detects a bug in gcc-4.0.
28134 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
28136 * DISTLIST: Added normal/completion.c.
28138 * normal/completion.c: New file.
28140 * term/i386/pc/console.c (grub_console_getwh): New function.
28141 (grub_console_term): Assign grub_console_getwh to getwh.
28143 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
28144 function is defined in normal/completion.c as
28145 grub_normal_do_completion.
28146 (grub_cmdline_get): Use grub_normal_do_completion instead of
28149 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
28150 returns non-zero, otherwise return 0.
28151 (grub_partition_iterate): First, probe the partition map. Then,
28152 call ITERATE only for this partition map.
28154 * kern/misc.c (grub_strncmp): Rewritten.
28156 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
28157 returns non-zero. Otherwise return 0.
28159 * include/grub/partition.h (grub_partition_map_iterate): Return
28160 int instead of void.
28162 * include/grub/normal.h (grub_normal_do_completion): New prototype.
28164 * include/grub/misc.h (grub_strncmp): Change the type of N to
28167 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
28170 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
28171 unsigned explicitly before comparing it with I.
28173 * kern/main.c (grub_env_write_root): Add the attribute unused into
28176 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
28177 normal/completion.c.
28178 (normal_mod_SOURCES): Likewise.
28179 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28180 (normal_mod_SOURCES): Likewise.
28182 * normal/command.c (grub_iterate_commands): If ITERATE returns
28183 non-zero, return one immediately.
28185 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
28187 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
28188 * kern/i386/pc/startup.S: Updated Global Descriptor table's
28190 (grub_vbe_get_controller_info): New function.
28191 (grub_vbe_get_mode_info): Likewise.
28192 (grub_vbe_set_mode): Likewise.
28193 (grub_vbe_get_mode): Likewise.
28194 (grub_vbe_set_memory_window): Likewise.
28195 (grub_vbe_get_memory_window): Likewise.
28196 (grub_vbe_set_scanline_length): Likewise.
28197 (grub_vbe_get_scanline_length): Likewise.
28198 (grub_vbe_set_display_start): Likewise.
28199 (grub_vbe_get_display_start): Likewise.
28200 (grub_vbe_set_palette_data): Likewise.
28201 * include/grub/i386/pc/vbe.h: New file.
28203 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
28205 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
28206 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
28207 * DISTLIST: Likewise.
28208 * kern/ieee1275/of.c: Moved to ...
28209 * kern/ieee1275/ieee1275.c: ... here.
28211 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
28213 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
28214 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
28215 Pass 0 as `end' parameter to grub_strtoul().
28217 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
28219 * include/grub/powerpc/ieee1275/console.h: Do not include
28220 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
28222 (grub_console_cur_color): Remove i386-specific prototype.
28223 (grub_console_real_putchar): Likewise.
28224 (grub_console_checkkey): Likewise.
28225 (grub_console_getkey): Likewise.
28226 (grub_console_getxy): Likewise.
28227 (grub_console_gotoxy): Likewise.
28228 (grub_console_cls): Likewise.
28229 (grub_console_setcursor): Likewise.
28230 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
28231 Include <grub/machine/console.h>.
28232 * term/ieee1275/ofconsole.c: Likewise.
28234 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
28236 * Makefile.in (LIBLZO): New variable.
28238 * configure.ac: Check for LZO version 2.
28240 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
28241 lzo/lzo1x.h instead of lzo1x.h.
28243 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
28246 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
28247 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
28249 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
28250 copying the data from PARTITION to P.
28252 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
28254 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
28255 negative, unload the module.
28257 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
28258 map is "pc_partition_map" but not "pc".
28259 (usage): Fix the description. The options are --boot-image and
28260 --core-image but not --boot-file or --core-file.
28261 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
28262 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
28265 * util/i386/pc/grub-install.in: Do not specify --boot-file or
28266 --core-file. Specify INSTALL_DEVICE as an argument.
28268 * util/console.c: Include config.h.
28269 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
28270 [HAVE_NCURSES_H]: Include ncurses.h.
28271 [HAVE_CURSES_H]: Include curses.h.
28272 [!A_NORMAL] (A_NORMAL): Defined as zero.
28273 [!A_STANDOUT] (A_STANDOUT): Likewise.
28275 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
28277 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
28279 * configure.ac: Check for curses libraries and headers.
28281 * Makefile.in (LIBCURSES): New variable.
28283 * genmk.rb (Script::rule): Set the executable bits.
28285 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
28286 name of the PC partition map is "pc_partition_map" but not "pc".
28288 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
28290 * util/i386/pc/grub-install.in (grub_probefs): New variable.
28291 (modules): Likewise.
28292 (usage): Added descriptions for --modules and --grub-probefs.
28293 Handle --modules and --grub-probefs. Save the arguments in MODULES
28294 and GRUB_PROBEFS, respectively.
28295 Auto-detect a filesystem module against GRUBDIR. If the result is
28296 empty and modules are not specified explicitly, abort the
28297 installation. Add the result to MODULES.
28299 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
28300 disk/powerpc/ieee1275/ofdisk.c,
28301 include/grub/powerpc/ieee1275/init.h and
28302 term/powerpc/ieee1275/ofconsole.c.
28303 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
28304 term/ieee1275/ofconsole.c.
28306 * include/grub/powerpc/ieee1275/console.h: Resurrected.
28308 * COPYING: Upgraded to the latest version. Only the address of the
28309 FSF office has changed.
28311 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
28313 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
28314 kern/ieee1275.c with kern/ieee1275/of.c.
28316 * kern/ieee1275.c: Moved to ...
28317 * kern/ieee1275/of.c: ... here.
28319 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
28321 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
28324 * config.guess: Updated to the latest version from gnulib.
28325 * config.sub: Likewise.
28326 * install.sh: Likewise.
28327 * mkinstalldirs: Likewise.
28329 * include/grub/console.h: Removed. This file is arch-specific. Do
28330 not put this in include/grub.
28332 * include/grub/i386/pc/console.h: Resurrected.
28334 * util/console.c: Include grub/machine/console.h instead of
28336 * util/grub-emu.c: Likewise.
28338 2005-08-04 Marco Gerards <metgerards@student.han.nl>
28340 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
28343 From Vincent Pelletier <subdino2004@yahoo.fr>
28344 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
28345 Redefined to use grub_getwh.
28346 (grub_term): New member named getwh.
28347 (grub_getwh): New prototype.
28348 * kern/term.c (grub_getwh): New function.
28349 * term/i386/pc/console.c (grub_console_getwh): New function.
28350 (grub_console_term): New member `getwh'.
28351 * term/i386/pc/vga.c (grub_vga_getwh): New function.
28352 (grub_vga_term): New member `getwh'.
28353 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
28355 (grub_ofconsole_getw): New function.
28356 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
28357 (grub_ofconsole_term): New field named getwh and new initial
28360 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
28362 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
28363 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
28364 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
28365 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
28366 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
28367 of <grub/machine/ieee1275.h>.
28368 * commands/ieee1275/reboot.c: Likewise.
28369 * boot/powerpc/ieee1275/ieee1275.c: Move ...
28370 * kern/ieee1275.c: ... to here. All users updated. Change all
28371 parameter structs to use new type `grub_ieee1275_cell_t'.
28372 * term/powerpc/ieee1275/ofconsole.c: Move ...
28373 * term/ieee1275/ofconsole.c: ... to here. All users updated.
28374 * disk/powerpc/ieee1275/ofdisk.c: Move ...
28375 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
28376 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
28378 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
28379 Remove unused prototypes. All users updated.
28380 * include/grub/powerpc/ieee1275/console.h: Removed.
28381 * include/grub/powerpc/ieee1275/ieee1275.h: Define
28382 `grub_ieee1275_cell_t'.
28383 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
28384 Cast comparisons with -1 to the correct type.
28385 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
28386 type to match `grub_ieee1275_entry_fn'.
28388 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
28390 * DISTLIST: Added util/i386/pc/grub-probefs.c.
28392 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
28393 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
28395 (grub_probefs_SOURCES): New variable.
28397 * util/i386/pc/grub-probefs.c: New file.
28399 * util/i386/pc/grub-setup.c (main): Call
28400 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
28401 grub_hfs_init and grub_jfs_init to initialize the system. Call
28402 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
28403 grub_pc_partition_map_fini to finish the system.
28405 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
28407 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
28409 (grub_multiboot_load_elf32): Likewise.
28410 (grub_multiboot_is_elf64): Likewise.
28411 (grub_multiboot_load_elf64): Likewise.
28412 (grub_multiboot_load_elf): Likewise.
28413 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
28414 an ELF32 or ELF64 file.
28415 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
28417 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
28418 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
28419 NULL before calling FS->LABEL.
28420 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
28421 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
28422 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
28423 before calling FS->LABEL.
28425 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
28427 * util/i386/pc/grub-install.in (datadir): New variable.
28429 (pkgdatadir): New variable.
28430 (pkglibdir): Removed.
28432 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
28434 * DISTLIST: Added util/i386/pc/grub-install.in.
28436 * util/i386/pc/grub-install.in: New file.
28438 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
28439 (grub_install_SOURCES): Likewise.
28441 * genmk.rb: Added support for scripts.
28442 (Script): New class.
28443 (scripts): New variable.
28445 * Makefile.in (install-local): Install sbin_SCRIPTS by
28447 (uninstall): Remove sbin_SCRIPTS.
28449 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
28450 device, try to get a GRUB device by
28451 grub_util_biosdisk_get_grub_dev.
28454 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
28455 description for --device-map.
28457 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
28459 Change the semantics of variable hooks. They now return strings
28460 instead of error values.
28462 * util/i386/pc/grub-setup.c: Include grub/env.h.
28463 (setup): Use grub_device_set_root instead of grub_env_set.
28465 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
28466 grub_env_get instead of grub_device_set_root and
28467 grub_device_get_root, respectively.
28469 * kern/main.c (grub_env_write_root): New function.
28470 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
28471 grub_env_set instead of grub_device_set_root.
28473 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
28475 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
28476 rather than calling ENV->WRITE_HOOK afterwards.
28477 (grub_env_get): Return the result of ENV->READ_HOOK rather than
28478 passing a pointer of a pointer.
28479 (grub_register_variable_hook): Change the types of "read_hook" and
28480 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
28482 Allocate the default empty string on the heap, because this string
28483 may be freed later.
28485 * kern/device.c: Include grub/env.h.
28486 (grub_device_set_root): Removed.
28487 (grub_device_get_root): Likewise.
28488 (grub_device_open): Use grub_env_get instead of
28489 grub_device_get_root.
28491 * include/grub/env.h (grub_env_read_hook_t): New type.
28492 (grub_env_write_hook_t): Likewise.
28493 (grub_env_var): Change the types of "read_hook" and "write_hook"
28494 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
28495 (grub_register_variable_hook): Likewise.
28497 * include/grub/device.h (grub_device_set_root): Removed.
28498 (grub_device_set_root): Likewise.
28500 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
28501 make sure that DIRNAME terminates with '/', so that
28502 grub_fat_find_dir will fail if PATH is not a directory.
28504 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
28506 Use the qualifier auto for print_files and print_files_long.
28507 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
28509 Put a newline only if there is no error.
28510 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
28513 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
28515 * kern/partition.c (grub_partition_probe): Initialize PART to
28516 NULL. Otherwise, when no partition map is registered, this returns
28519 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
28521 * partmap/apple.c (apple_partition_map_iterate): Check if POS
28522 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
28525 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
28527 * commands/ls.c (grub_ls_list_disks): Print the filesystem
28528 information on each device, if it does not have partitions. Print
28529 "Device" instead of "Disk", because this function is not specific
28532 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
28533 static to ensure that it is put on the memory rather than a
28536 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
28538 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
28539 (grub_cat_init): Likewise.
28540 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
28541 (options): Likewise.
28542 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
28543 (grub_configfile_init): Likewise.
28544 * font/manager.c (GRUB_MOD_INIT): Likewise.
28545 * commands/help.c (GRUB_MOD_INIT): Likewise.
28546 (grub_help_init): Likewise.
28547 * normal/command.c (grub_command_init): Likewise.
28548 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
28549 * disk/loopback.c (grub_loop_init): Likewise.
28550 (GRUB_MOD_INIT): Likewise.
28551 * commands/ls.c (grub_ls_init): Likewise.
28552 (GRUB_MOD_INIT): Likewise.
28553 (options): Likewise.
28554 * commands/boot.c (grub_boot_init): Likewise.
28555 (GRUB_MOD_INIT): Likewise.
28556 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
28557 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
28558 (GRUB_MOD_INIT): Likewise.
28559 * commands/cmp.c (grub_cmp_init): Likewise.
28560 (GRUB_MOD_INIT): Likewise.
28562 * normal/arg.c: Use <> instead of "" to include header files.
28563 (SHORT_ARG_HELP): New macro.
28564 (SHORT_ARG_USAGE): Likewise.
28565 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
28566 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
28568 (find_short): Check if C is 'h' or 'u' explicitly.
28569 (grub_arg_show_help): Use space characters instead of tabs. Treat
28570 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
28571 are shown with --help and --usage only if they are not used for
28572 the command itself.
28573 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
28576 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
28577 const into "longarg". Change the type of "shortarg" to int.
28579 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
28581 * boot/i386/pc/boot.S (boot_drive_check): New label.
28583 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
28586 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
28587 which do not pass a boot drive correctly. Copied from GRUB Legacy.
28589 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
28591 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
28592 When turning off Gate A20, skip the check and return immediately,
28593 because this is not fatal usually.
28595 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
28597 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
28598 be 0x7C00 instead of 0x8000.
28600 * boot/i386/pc/pxeboot.S: Rewritten.
28602 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
28604 (gate_a20_check_state): Read a byte from 0x108000. Invert the
28607 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
28609 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
28610 robustness. This routine now supports a BIOS call and System
28611 Control Port A to modify the gate A20.
28613 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
28614 Increased to 0x440.
28616 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
28618 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
28619 device path and resulting ihandle.
28620 (grub_ofdisk_close): dprintf the ihandle being closed.
28621 (grub_ofdisk_read): dprintf function parameters.
28622 * kern/mm.c (grub_mm_init_region): Likewise.
28623 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
28624 (grub_linux_boot): dprintf the Linux entry point, initrd address and
28625 size, and boot arguments.
28626 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
28627 before loading into memory.
28628 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
28629 before loading into memory.
28631 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
28633 * kern/mm.c: Added much documentation.
28634 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
28635 8, set to 5 instead of 8.
28637 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
28639 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
28641 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
28642 (grub_mkdevicemap_SOURCES): New variable.
28644 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
28645 lib/device.c of GRUB Legacy.
28647 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
28649 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
28650 instead of PATH is NULL.
28652 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
28654 * commands/cmp.c (BUFFER_SIZE): New macro.
28655 (grub_cmd_cmp): Close the right file at the right time. Compare
28656 only data just read. Don't report files of different size as
28657 identical. Dynamically allocate buffers. Move variable
28658 declarations at the beginning of function.
28660 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
28662 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
28665 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
28667 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
28668 when backspace is pressed at beginning of line.
28670 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
28672 * DISTLIST: Added genfslist.sh.
28674 * normal/main.c (fs_module_list): New variable.
28675 (autoload_fs_module): New function.
28676 (read_fs_list): Likewise.
28677 (grub_normal_execute): Call read_fs_list.
28679 * kern/fs.c (grub_fs_autoload_hook): New variable.
28680 (grub_fs_probe): Added support for auto-loading.
28682 * include/grub/normal.h (struct grub_fs_module_list): New struct.
28683 (grub_fs_module_list_t): New type.
28685 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
28686 (grub_fs_autoload_hook): New prototype.
28688 * genfslist.sh: New file.
28690 * genmk.rb: Added a rule to generate a filesystem list.
28692 2005-06-30 Marco Gerards <metgerards@student.han.nl>
28694 * configure.ac: Fix the test for cross-compiling.
28696 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
28697 define GRUB_UTIL anymore.
28699 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
28700 so this function works on other systems than just big endian.
28701 (load_modules): Likewise.
28702 (add_segments): Likewise.
28704 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
28706 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
28707 contains `l' modifier, get a long from va_arg().
28709 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
28711 * kern/mm.c (grub_free): If the next free block which is being
28712 merged is the first free block, set the first block to the block
28714 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
28716 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
28718 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
28719 `grub_ieee1275_chosen'.
28721 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
28723 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
28724 (grub_ieee1275_chosen): New variable.
28725 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
28727 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
28728 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
28729 Rename first argument to `phandle' for consistency.
28730 (grub_ieee1275_get_property_length): Likewise.
28731 (grub_ieee1275_next_property): Likewise. Change type of first argument
28732 to grub_ieee1275_phandle_t.
28733 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
28734 Move export next to declaration.
28735 (grub_ieee1275_chosen): New variable.
28736 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
28737 Correct cosmetic typo.
28738 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
28739 `grub_ieee1275_chosen'.
28740 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
28741 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
28742 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
28743 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
28744 `grub_ieee1275_chosen'.
28746 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
28748 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
28750 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
28751 /chosen/bootargs as "variable=value" pairs.
28753 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
28755 * include/grub/misc.h (grub_dprintf): New macro.
28756 (grub_real_dprintf): New prototype.
28757 (grub_strword): Likewise.
28758 (grub_iswordseparator): Likewise.
28759 * kern/misc.c (grub_real_dprintf): New function.
28760 (grub_strword): Likewise.
28761 (grub_iswordseparator): Likewise.
28763 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
28765 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
28766 (roundup): Remove macro.
28767 (grub_ieee1275_flags): Make static.
28768 (grub_ieee1275_realmode): Remove.
28769 (grub_ieee1275_test_flag): New function.
28770 (grub_ieee1275_set_flag): Likewise.
28771 (find_options): Rename to `grub_ieee1275_find_options'; update
28772 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
28773 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
28774 (cmain): New prototype.
28775 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
28776 `grub_ieee1275_flags' directly.
28777 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
28778 machine/biosdisk.h.
28779 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
28780 Don't include grub/machine/init.h.
28781 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
28782 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
28784 (grub_ieee1275_realmode): Likewise.
28785 (grub_ieee1275_flag): New enum.
28786 (grub_ieee1275_test_flag): New prototype.
28787 (grub_ieee1275_set_flag): New prototype.
28788 * include/grub/powerpc/ieee1275/init.h: Remove file.
28789 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
28790 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
28791 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
28792 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
28794 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
28795 `grub_ieee1275_test_flag'.
28796 (grub_ieee1275_encode_devname): Likewise.
28798 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
28800 * include/grub/powerpc/ieee1275/ieee1275.h
28801 (grub_ieee1275_encode_devname): New prototype.
28802 (grub_ieee1275_get_filename): Likewise.
28803 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
28805 (grub_set_prefix): Likewise.
28806 (grub_machine_init): Call grub_set_prefix.
28807 * kern/powerpc/ieee1275/openfw.c: Fix typos.
28808 (grub_parse_type): New enum.
28809 (grub_ieee1275_get_devargs): New function.
28810 (grub_ieee1275_get_devname): Likewise.
28811 (grub_ieee1275_parse_args): Likewise.
28812 (grub_ieee1275_get_filename): Likewise.
28813 (grub_ieee1275_encode_devname): Likewise.
28815 2005-03-30 Marco Gerards <metgerards@student.han.nl>
28817 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
28818 `grub_loader_unset'.
28820 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
28822 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
28823 instead of grub_ieee1275_interpret.
28824 (grub_halt_init): New function.
28825 (grub_halt_fini): Likewise.
28826 (GRUB_MOD_INIT): Correct message grammar.
28827 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
28828 instead of grub_ieee1275_interpret.
28829 (grub_reboot_init): New function.
28830 (grub_reboot_fini): Likewise.
28831 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
28832 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
28833 util/i386/pc/misc.c with commands/ieee1275/halt.c,
28834 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
28835 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
28837 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
28839 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
28841 (grub_halt): Likewise.
28842 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
28843 (cmain): Remove __attribute__((unused)).
28844 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
28845 (grub_heap_len): Likewise.
28846 (grub_machine_fini): New function.
28847 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
28848 (grub_halt): Likewise.
28849 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
28851 * util/powerpc/ieee1275/misc.c: New file.
28853 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
28855 * DISTLIST: New file.
28856 * gendistlist.sh: Likewise.
28858 * Makefile.in (COMMON_DISTFILES): Removed.
28859 (BOOT_DISTFILES): Likewise.
28860 (CONF_DISTFILES): Likewise.
28861 (DISK_DISTFILES): Likewise.
28862 (FS_DISTFILES): Likewise.
28863 (INCLUDE_DISTFILES): Likewise.
28864 (KERN_DISTFILES): Likewise.
28865 (LOADER_DISTFILES): Likewise.
28866 (TERM_DISTFILES): Likewise.
28867 (UTIL_DISTFILES): Likewise.
28868 (DISTFILES): Likewise.
28869 (uninstall): Uninstall files in $(pkgdata_DATA).
28870 (DISTLIST): New target.
28871 (distdir): Use the contents of the file DISTLIST to get a list of
28874 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
28876 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
28877 descriptor. This is ported from GRUB Legacy.
28879 * gencmdlist.sh: Added an extra semicolon to make it work with
28880 old sed versions. Reported by Robert Bihlmeyer
28881 <robbe@orcus.priv.at>.
28883 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
28885 Automatic loading of commands is supported.
28887 * normal/main.c (read_command_list): New function.
28888 (grub_normal_execute): Call read_command_list.
28890 * normal/command.c (grub_register_command): Return zero or CMD.
28891 Allocate CMD->NAME from the heap.
28892 Initialize CMD->MODULE_NAME to zero.
28893 Find the same name as well. If the same command is found and it is
28894 a dummy command, overwrite members. If it is not a dummy command,
28896 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
28897 (grub_command_find): If a dummy command is found, load a module
28898 and retry to find a command only once.
28900 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
28901 make sure that each command is loaded.
28903 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
28905 (struct grub_command): Remove const from the member `name'.
28906 Add a new member `module_name'.
28907 (grub_register_command): Return grub_command_t.
28909 * commands/help.c (grub_cmd_help): Call grub_command_find to make
28910 sure that each command is loaded.
28912 * genmk.rb (PModule::rule): Specify a module name without the
28913 suffix ".mod" to gencmdlist.sh.
28915 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
28917 * gencmdlist.sh: New file.
28919 * genmk.rb (PModule::rule): Generate a rule for a command list.
28921 Generate command.lst from $(COMMANDFILES).
28923 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
28924 (DATA): Added $(pkgdata_DATA).
28925 (install-local): Install files in $(pkgdata_DATA).
28927 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
28929 * term/i386/pc/vga.c (debug_command): Removed.
28930 (GRUB_MOD_INIT): Do not register the command "debug".
28932 From Hollis Blanchard:
28933 * commands/configfile.c: New file.
28934 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
28935 commands/configfile.c.
28936 (pkgdata_MODULES): Added configfile.mod.
28937 (configfile_mod_SOURCES): New variable.
28938 (configfile_mod_CFLAGS): Likewise.
28939 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
28940 commands/configfile.c.
28941 (pkgdata_MODULES): Added configfile.mod.
28942 (configfile_mod_SOURCES): New variable.
28943 (configfile_mod_CFLAGS): Likewise.
28944 * util/grub-emu.c (main): Call grub_configfile_init and
28945 grub_configfile_fini.
28946 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
28948 [GRUB_UTIL] (grub_configfile_fini): Likewise.
28950 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
28952 * normal/arg.c (grub_arg_show_help): Do not show the bug report
28955 * commands/help.c (grub_cmd_help): Do not print newlines after
28956 the last command in print_command_help.
28958 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
28960 * commands/default.h: New file.
28961 * commands/timeout.h: Likewise.
28962 * normal/context.c: Likewise.
28964 * util/misc.c: Do not include sys/times.h.
28965 Include sys/time.h and grub/machine/time.h.
28966 (grub_get_rtc): Rewritten with gettimeofday.
28968 * util/grub-emu.c (main): Call grub_default_init and
28969 grub_timeout_init before grub_normal_init, and call
28970 grub_timeout_fini and grub_default_fini after grub_main.
28972 * util/console.c (grub_ncurses_checkkey): Return the read
28975 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
28978 * normal/main.c (read_config_file): Push MENU. If this fails,
28979 print an error and wait for a user input.
28980 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
28981 If a menu is empty or an error occurs, pop MENU.
28982 (grub_normal_execute): Pop and free MENU after grub_menu_run
28985 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
28987 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
28989 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
28991 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
28993 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
28996 * include/grub/normal.h (struct grub_menu_list): New struct.
28997 (grub_menu_list_t): New type.
28998 (struct grub_context): New struct.
28999 (grub_context_t): New type.
29000 (grub_register_command): Got rid of EXPORT_FUNC.
29001 (grub_unregister_command): Likewise.
29002 (grub_context_get): New prototype.
29003 (grub_context_get_current_menu): Likewise.
29004 (grub_context_push_menu): Likewise.
29005 (grub_context_pop_menu): Likewise.
29006 [GRUB_UTIL] (grub_default_init): Likewise.
29007 [GRUB_UTIL] (grub_default_fini): Likewise.
29008 [GRUB_UTIL] (grub_timeout_init): Likewise.
29009 [GRUB_UTIL] (grub_timeout_fini): Likewise.
29011 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
29012 commands/timeout.c and normal/context.c.
29013 (pkgdata_MODULES): Added default.mod and timeout.mod.
29014 (normal_mod_SOURCES): Added normal/context.c.
29015 (default_mod_SOURCES): New variable.
29016 (default_mod_CFLAGS): Likewise.
29017 (timeout_mod_SOURCES): Likewise.
29018 (timeout_mod_CFLAGS): Likewise.
29019 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
29021 (pkgdata_MODULES): Added default.mod and timeout.mod.
29022 (normal_mod_SOURCES): Added normal/context.c.
29023 (default_mod_SOURCES): New variable.
29024 (default_mod_CFLAGS): Likewise.
29025 (timeout_mod_SOURCES): Likewise.
29026 (timeout_mod_CFLAGS): Likewise.
29028 * Makefile.in (all-local): Added $(MKFILES).
29030 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
29032 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
29033 (grub_emu_SOURCES): Likewise.
29034 (pkgdata_MODULES): Add `sun.mod'.
29035 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
29036 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
29038 (pkgdata_MODULES): Add `sun.mod'.
29039 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
29040 * include/grub/partition.h (grub_sun_partition_map_init): New
29042 (grub_sun_partition_map_fini): Likewise.
29043 * partmap/sun.c: New file.
29044 * util/grub-emu.c (main): Initialize and de-initialize the sun
29045 partitionmap support.
29047 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
29049 This implements an Emacs-like menu entry editor.
29051 * normal/menu_entry.c: New file.
29053 * util/console.c (grub_ncurses_putchar): Translate some Unicode
29054 characters to ASCII.
29055 (saved_char): New variable.
29056 (grub_ncurses_checkkey): Rewritten completely.
29057 (grub_ncurses_getkey): Likewise.
29058 (grub_ncurses_init): Call raw instead of cbreak.
29060 * normal/menu.c (print_entry): Do not put a space.
29061 (init_page): Renamed to ...
29062 (grub_menu_init_page): ... this. All callers changed.
29063 (edit_menu_entry): Removed.
29064 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
29066 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
29068 * kern/misc.c (grub_vprintf): Call grub_refresh.
29070 * normal/menu.c (DISP_LEFT): Renamed to ...
29071 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
29072 * normal/menu.c (DISP_UP): Renamed to ...
29073 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
29074 * normal/menu.c (DISP_RIGHT): Renamed to ...
29075 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
29076 * normal/menu.c (DISP_DOWN): Renamed to ...
29077 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
29078 * normal/menu.c (DISP_HLINE): Renamed to ...
29079 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
29080 * normal/menu.c (DISP_VLINE): Renamed to ...
29081 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
29082 * normal/menu.c (DISP_UL): Renamed to ...
29083 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
29084 * normal/menu.c (DISP_UR): Renamed to ...
29085 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
29086 * normal/menu.c (DISP_LL): Renamed to ...
29087 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
29088 * normal/menu.c (DISP_LR): Renamed to ...
29089 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
29090 * normal/menu.c (TERM_WIDTH): Renamed to ...
29091 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
29092 * normal/menu.c (TERM_HEIGHT): Renamed to ...
29093 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
29094 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
29095 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
29096 * normal/menu.c (TERM_MARGIN): Renamed to ...
29097 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
29098 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
29099 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
29100 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
29101 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
29102 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
29103 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
29104 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
29105 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
29106 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
29107 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
29108 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
29109 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
29110 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
29111 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
29112 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
29113 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
29114 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
29115 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
29116 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
29117 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
29118 All callers changed.
29120 * include/grub/normal.h: New prototype.
29122 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
29123 normal/menu_entry.c.
29124 (normal_mod_SOURCES): Likewise.
29125 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29126 (normal_mod_SOURCES): Likewise.
29128 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
29130 * include/grub/normal.h (grub_halt_init): New prototype.
29131 (grub_halt_fini): Likewise.
29132 (grub_reboot_init): Likewise.
29133 (grub_reboot_fini): Likewise.
29135 * util/grub-emu.c: Include signal.h.
29136 (main_env): New global variable.
29137 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
29139 (grub_machine_fini): New function.
29140 (main): Call grub_halt_init and grub_reboot_init before
29141 grub_main, and grub_reboot_fini and grub_halt_fini after it.
29142 Call setjmp with MAIN_ENV to go back afterwards.
29143 Call grub_machine_fini right before return.
29145 * include/grub/util/misc.h: Include setjmp.h.
29146 (main_env): New prototype.
29148 * include/grub/kernel.h (grub_machine_fini): New prototype.
29149 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
29150 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
29152 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
29153 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
29154 * term/i386/pc/console.c (grub_console_fini): Likewise.
29156 * util/i386/pc/misc.c: New file.
29158 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
29159 util/i386/pc/misc.c, commands/i386/pc/halt.c and
29160 commands/i386/pc/reboot.c.
29162 2005-02-14 Guillem Jover <guillem@hadrons.org>
29164 * include/grub/dl.h (grub_dl_check_header): New prototype.
29165 (grub_arch_dl_check_header): Change return type to grub_err_t,
29166 remove size parameter and export function. Update all callers.
29167 * kern/dl.c (grub_dl_check_header): New function.
29168 (grub_dl_load_core): Use `grub_dl_check_header' instead of
29169 `grub_arch_dl_check_header'. Check ELF type. Check if sections
29170 are inside the core.
29171 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
29172 independent ELF header checks.
29173 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
29174 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
29175 `grub_dl_check_header' instead of explicit checks. Check for the
29177 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
29178 `grub_dl_check_header' instead of explicit checks. Remove arch
29179 specific ELF header checks.
29181 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
29184 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
29186 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
29187 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
29189 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
29191 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
29192 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
29193 (part_map_iterate): Clear `grub_errno' and return 0 if
29194 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
29195 * partmap/amiga.c (amiga_partition_map_iterate): Return
29196 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
29197 * partmap/apple.c (apple_partition_map_iterate): Likewise.
29199 2005-02-01 Guillem Jover <guillem@hadrons.org>
29201 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
29204 2005-01-31 Marco Gerards <metgerards@student.han.nl>
29206 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
29208 (grub_rescue_cmd_linux): New prototype.
29209 (grub_rescue_cmd_initrd): Likewise.
29210 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
29212 (grub_linux_release_mem): Release the memory for the initrd.
29213 (grub_load_linux): Renamed from this...
29214 (grub_rescue_cmd_linux): ...To this. Changed all callers.
29215 Changed `entry' not to be static. Loop over memory regions to
29216 find another one when the default fails.
29217 (grub_rescue_cmd_initrd): New function.
29218 (grub_linux_init): Remove function.
29219 (grub_linux_fini): Likewise.
29220 (GRUB_MOD_INIT): Register `initrd'.
29221 (GRUB_MOD_FINI): Unregister `initrd'.
29222 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
29224 (grub_linux_normal_fini): Likewise.
29225 (GRUB_MOD_INIT): Register `initrd'.
29226 (GRUB_MOD_FINI): Unregister `initrd'.
29228 2005-01-31 Marco Gerards <metgerards@student.han.nl>
29230 * commands/help.c: New file.
29231 * normal/arg.c (show_help): Renamed to...
29232 (grub_arg_show_help): ... this.
29233 * commands/i386/pc/halt.c: New file.
29234 * commands/i386/pc/reboot.c: Likewise.
29235 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
29236 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
29237 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
29238 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
29240 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
29242 (pkgdata_MODULES): Add `help.mod'.
29243 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
29244 * grub/i386/pc/init.h (grub_reboot): New prototype.
29245 (grub_halt): Likewise.
29246 * include/grub/normal.h (grub_arg_show_help): New prototype.
29247 (grub_help_init): Likewise.
29248 (grub_help_fini): Likewise.
29249 * util/grub-emu.c (main): Initialize and deinitialize the help
29252 * normal/cmdline.c (grub_cmdline_get): Doc fix.
29254 * normal/command.c (grub_command_init): Fixed the description of
29255 the `set' and `unset' commands.
29257 2005-01-31 Marco Gerards <metgerards@student.han.nl>
29259 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
29261 * commands/ieee1275/halt.c: New file.
29262 * commands/ieee1275/reboot.c: Likewise.
29263 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
29264 `__attribute__ ((unused))'. Some GCS related fixed.
29265 (grub_suspend_init) [GRUB_UTIL]: Function removed.
29266 (grub_suspend_fini): Likewise.
29267 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
29269 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
29270 (halt_mod_CFLAGS): New variables.
29271 * include/grub/powerpc/ieee1275/ieee1275.h
29272 (grub_ieee1275_interpret): New prototype.
29274 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
29276 * include/grub/misc.h (memmove): New prototype.
29277 (memcpy): Likewise.
29279 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
29281 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
29282 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
29284 2005-01-22 Marco Gerards <metgerards@student.han.nl>
29286 * kern/misc.c (grub_strndup): Function rewritten.
29288 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
29290 * normal/menu.c (TERM_WIDTH): Macro redefined.
29291 (TERM_TOP_BORDER_Y): Likewise.
29292 (draw_border): Replaced while-loop by a for-loop. Make the number
29293 of lines consistent with the number of lines displayed in
29294 print_entries. Added a margin below the rectangle.
29295 (print_entry): Make the entry fit in the rectangle.
29296 (print_entries): Display the scroll arrows next to the right
29299 2005-01-21 Marco Gerards <metgerards@student.han.nl>
29301 * fs/minix.c (grub_minix_find_file): Reserve more space for
29302 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
29303 `grub_strncpy' to copy `path' into it.
29305 2005-01-21 Marco Gerards <metgerards@student.han.nl>
29307 Add the loopback device, a device via which files can be accessed
29310 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
29311 (pkgdata_MODULES): Add loopback.mod.
29312 (loopback_mod_SOURCES): New variable.
29313 (loopback_mod_CFLAGS): Likewise.
29314 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
29316 (pkgdata_MODULES): Add loopback.mod.
29317 (loopback_mod_SOURCES): New variable.
29318 (loopback_mod_CFLAGS): Likewise.
29319 * disk/loopback.c: new file.
29320 * include/grub/normal.h (grub_loop_init): New prototype.
29321 (grub_loop_fini): New prototype.
29322 * util/grub-emu.c (main): Initialize and de-initialize loopback
29324 * include/grub/disk.h (grub_disk_dev_id): Add
29325 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
29327 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
29329 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
29331 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
29332 (suspend_mod_SOURCES): New variable.
29333 (suspend_mod_CFLAGS): Likewise.
29334 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
29336 * commands/ieee1275/suspend.c: New file.
29338 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29340 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
29341 ((unused))' to `__attribute__ ((used))'.
29342 (GRUB_MOD_FINI): Likewise.
29343 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
29344 * genmk.rb (PModule): Assign space to common symbols when linking
29347 2005-01-20 Marco Gerards <metgerards@student.han.nl>
29349 * include/grub/mm.h (grub_mm_init_region): Change the type of the
29350 `unsigned' arguments to `grub_size_t'.
29351 (grub_malloc): Likewise.
29352 (grub_realloc): Likewise.
29353 (grub_memalign): Likewise.
29354 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
29355 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
29356 * util/misc.c (grub_malloc): Likewise.
29357 (grub_realloc): Likewise.
29358 * kern/mm.c (get_header_from_pointer): Change the casts to
29359 `unsigned' into a cast to `grub_size_t'.
29361 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
29362 point to `currnode' when `currnode' is changed.
29364 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
29365 Schottelius <nico-linux@schottelius.org>.
29367 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
29369 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
29370 (note_path): Remove variable.
29371 (GRUB_IEEE1275_NOTE_NAME): New macro.
29372 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
29373 (grub_ieee1275_note_hdr): New structure.
29374 (grub_ieee1275_note_desc): Likewise.
29375 (grub_ieee1275_note): Likewise.
29376 (load_note): Remove `dir' argument. All callers updated. Remove
29377 `note_img' and `path'. Do not load a file from `note_path'.
29378 Initialize a struct grub_ieee1275_note and write that to `out'.
29379 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
29381 2005-01-05 Marco Gerards <metgerards@student.han.nl>
29383 * util/misc.c (grub_util_read_image): Revert last change. It
29384 called `grub_util_read_at', which seeks from the beginning of the
29387 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
29389 * TODO: Add note about endianness in grub-mkimage.
29390 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
29392 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
29393 (grub_mkimage_SOURCES): New target.
29394 * include/grub/kernel.h (grub_start_addr): Remove variable.
29395 (grub_end_addr): Likewise.
29396 (grub_total_module_size): Likewise.
29397 (grub_kernel_image_size): Likewise.
29398 (GRUB_MODULE_MAGIC): New constant.
29399 (grub_module_info): New structure.
29400 (grub_arch_modules_addr): New prototype.
29401 (grub_get_end_addr): Remove prototype.
29402 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
29403 * include/grub/powerpc/ieee1275/kernel.h: New file.
29404 * include/grub/util/misc.h (grub_util_get_fp_size): New
29406 (grub_util_read_at): Likewise.
29407 (grub_util_write_image_at): Likewise.
29408 * kern/main.c (grub_get_end_addr): Remove function.
29409 (grub_load_modules): Call grub_arch_modules_addr instead of using
29410 grub_end_addr. Look for a grub_module_info struct in memory. Use
29411 the grub_module_info fields instead of calling grub_get_end_addr
29412 as loop conditions. Move grub_add_unused_region code here.
29413 (grub_add_unused_region): Remove function.
29414 * kern/i386/pc/init.c: Include grub/cache.h.
29415 (grub_machine_init): Remove call to grub_get_end_addr. Remove
29416 one call to add_mem_region.
29417 (grub_arch_modules_addr): New function.
29418 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
29419 (grub_total_module_size): Likewise.
29420 Include grub/machine/kernel.h.
29421 (grub_arch_modules_addr): New function.
29422 * util/grub-emu.c (grub_end_addr): Remove variable.
29423 (grub_total_module_size): Likewise.
29424 (grub_arch_modules_addr): New function.
29425 * util/misc.c: Include unistd.h.
29426 (grub_util_get_fp_size): New function.
29427 (grub_util_read_at): Likewise.
29428 (grub_util_write_image_at): Likewise.
29429 (grub_util_read_image): Call grub_util_read_at.
29430 (grub_util_write_image): Call grub_util_write_image_at.
29431 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
29432 additional memory in kernel_img for a struct grub_module_info.
29433 Fill in that grub_module_info.
29434 * util/powerpc/ieee1275/grub-mkimage.c: New file.
29436 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
29438 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
29440 * include/grub/powerpc/ieee1275/ieee1275.h
29441 (grub_ieee1275_milliseconds): New prototype.
29442 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
29444 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
29445 grub_ieee1275_milliseconds.
29447 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
29449 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
29451 (find_options): New function.
29452 (cmain): Call find_options.
29453 * include/grub/powerpc/ieee1275/ieee1275.h
29454 (grub_ieee1275_realmode): New extern variable.
29455 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
29456 grub_map if grub_ieee1275_realmode is false.
29458 2004-12-29 Marco Gerards <metgerards@student.han.nl>
29460 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
29461 lines are inserted and make it work like readline. Reported by
29462 Vincent Pelletier <subdino2004@yahoo.fr>.
29464 2004-12-28 Marco Gerards <metgerards@student.han.nl>
29466 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
29468 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
29469 `kern/powerpc/cache.S'.
29471 2004-12-27 Marco Gerards <metgerards@student.han.nl>
29473 * genmk.rb: Handle the `Program' class in the main loop. Written
29474 by Johan Rydberg <jrydberg@gnu.org>.
29475 (Program): New class.
29476 (programs): New variable.
29477 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
29478 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
29479 instead of "grub/kernel.h". Include <grub/machine/init.h>.
29480 (help_arch): Function removed.
29481 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
29482 `powerpc/libgcc.h' and `loader.h'.
29483 (pkgdata_PROGRAMS): New variable.
29484 (sbin_UTILITIES): Variable removed.
29485 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
29486 (grubof_SOURCES): Variable re-defined so it only includes the
29487 core functionality.
29488 (grubof_CFLAGS): Remove `-DGRUBOF'.
29489 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
29490 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
29491 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
29492 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
29493 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
29494 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
29495 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
29496 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
29497 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
29498 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
29499 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
29500 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
29501 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
29502 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
29503 (pc_mod_CFLAGS): New variables.
29504 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
29505 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
29506 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
29507 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
29509 * include/grub/i386/pc/init.h (grub_os_area_addr)
29510 (rub_os_area_size): ... to here.
29511 * include/grub/powerpc/ieee1275/ieee1275.h
29512 (grub_ieee1275_entry_fn): Export symbol.
29513 * include/grub/powerpc/ieee1275/init.h: New file.
29514 * include/grub/powerpc/libgcc.h: Likewise.
29515 * include/grub/cache.h: Likewise.
29516 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
29517 <hollis@penguinppc.org>.
29518 * kern/dl.c: Include <grub/cache.h>.
29519 (grub_dl_flush_cache): New function.
29520 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
29522 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
29523 (grub_console_init): Removed prototypes.
29524 (grub_machine_init): Don't initialize the modules anymore.
29525 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
29527 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
29528 Macro undef removed.
29529 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
29530 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
29531 relocation `R_PPC_REL32'. Return an error when the relocation is
29533 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
29534 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
29535 * util/misc.c (grub_arch_sync_caches): Likewise.
29537 2004-12-19 Marco Gerards <metgerards@student.han.nl>
29539 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
29540 `symlist.c', add `grubof_symlist.c'.
29541 (symlist.c): Variable removed.
29542 (grubof_HEADERS): Variable added.
29543 (grubof_symlist.c): New target.
29544 (kernel_syms.lst): Use `grubof_HEADERS' instead of
29545 `kernel_img_HEADERS'.
29546 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
29547 * kern/powerpc/dl.c: New file.
29548 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
29550 (grub_arch_dl_relocate_symbols): Likewise.
29551 (grub_register_exported_symbols): Likewise.
29553 2004-12-13 Marco Gerards <metgerards@student.han.nl>
29555 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
29556 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
29557 to fail instead. Reported by Vincent Pelletier
29558 <subdino2004@yahoo.fr>.
29560 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
29561 it is not allocated. Reported by Vincent Pelletier
29562 <subdino2004@yahoo.fr>.
29564 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
29565 output so the output looks better.
29567 2004-12-04 Marco Gerards <metgerards@student.han.nl>
29569 Modulize the partition map support and add support for the amiga
29572 * commands/ls.c: Include <grub/partition.h> instead of
29573 <grub/machine/partition.h>.
29574 * kern/disk.c: Likewise.
29575 * kern/rescue.c: Likewise.
29576 * loader/i386/pc/chainloader.c: Likewise.
29577 * normal/cmdline.c: Likewise.
29578 * kern/powerpc/ieee1275/init.c: Likewise.
29579 (grub_machine_init): Call `grub_pc_partition_map_init',
29580 `grub_amiga_partition_map_init' and
29581 `grub_apple_partition_map_init'.
29582 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
29583 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
29584 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
29585 `partition.h' and `pc_partition.h'.
29586 (grub_setup_SOURCES): Remove
29587 `disk/i386/pc/partition.c'. Add `kern/partition.c',
29588 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
29589 (grub_emu_SOURCES): Likewise.
29590 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
29591 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
29592 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
29593 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
29594 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
29595 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
29596 (grubof_SOURCES): Likewise.
29597 * disk/i386/pc/partition.c: File removed.
29598 * disk/powerpc/ieee1275/partition.c: Likewise.
29599 * include/grub/powerpc/ieee1275/partition.h: Likewise.
29600 * include/grub/i386/pc/partition.h: Likewise.
29601 * kern/partition.c: New file.
29602 * partmap/amiga.c: Likewise.
29603 * partmap/apple.c: Likewise.
29604 * partmap/pc.c: Likewise.
29605 * include/grub/partition.h: Likewise..
29606 * include/grub/pc_partition.h: Likewise.
29607 * util/grub-emu.c: Include <grub/partition.h> instead of
29608 <grub/machine/partition.h>.
29609 (main): Call `grub_pc_partition_map_init',
29610 `grub_amiga_partition_map_init' and
29611 `grub_apple_partition_map_init' and deinitialize afterwards.
29612 * util/i386/pc/biosdisk.c: Include `#include
29613 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
29614 `<grub/machine/partition.h>'.
29615 * util/i386/pc/grub-setup.c: Likewise.
29616 * util/i386/pc/biosdisk.c: Likewise.
29617 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
29618 partition information in case of a PC partition.
29619 * util/i386/pc/grub-setup.c: Include `#include
29620 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
29621 `<grub/machine/partition.h>'.
29622 (setup): Only access the PC specific partition information in case
29625 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
29627 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
29628 (grub_longjmp): Likewise.
29629 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
29631 * normal/powerpc/setjmp.S: New file.
29632 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
29633 `normal/powerpc/setjmp.S'.
29634 (grubof_CFLAGS): Add `-DGRUBOF'.
29635 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
29636 [GRUB_UTIL && !GRUBOF].
29638 2004-11-16 Marco Gerards <metgerards@student.han.nl>
29640 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
29641 property named `name'. Correctly handle the error returned by
29642 `grub_ieee1275_finddevice' if a device can not be opened.
29644 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
29646 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
29647 `actual' for negativity.
29648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
29651 2004-11-01 Marco Gerards <metgerards@student.han.nl>
29653 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
29654 (PAGE_OFFSET): New macro.
29655 (CRTC_ADDR_PORT): Likewise.
29656 (CRTC_DATA_PORT): Likewise.
29657 (START_ADDR_HIGH_REGISTER): Likewise.
29658 (START_ADDR_LOW_REGISTER): Likewise.
29659 (GRAPHICS_ADDR_PORT): Likewise.
29660 (GRAPHICS_DATA_PORT): Likewise.
29661 (READ_MAP_REGISTER): Likewise.
29662 (INPUT_STATUS1_REGISTER): Likewise.
29663 (INPUT_STATUS1_VERTR_BIT): Likewise.
29664 (page): New variable.
29665 (wait_vretrace): New function.
29666 (set_read_map): Likewise.
29667 (set_start_address): Likewise.
29668 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
29670 (check_vga_mem): Take the page into account.
29671 (write_char): Likewise.
29672 (write_cursor): Likewise.
29673 (scroll_up): Likewise. Copy the page to the page that is not
29674 shown and switch between both pages.
29675 (grub_vga_putchar): Fix off by one error.
29676 (grub_vga_cls): Wait for the vertical retrace. Take the page into
29679 2004-11-01 Marco Gerards <metgerards@student.han.nl>
29681 Add support for iso9660 (including rockridge).
29683 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
29684 (iso9660_mod_SOURCES): New variable.
29685 (iso9660_mod_CFLAGS): Likewise.
29686 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
29687 * include/grub/fs.h (grub_iso9660_init): New prototype.
29688 * util/grub-emu.c (main): Call `grub_iso9660_init'.
29689 * fs/iso9660.c: New file.
29691 * include/grub/misc.h (grub_strncat): New prototype.
29692 * kern/misc.c (grub_strncat): New function.
29694 * fs/hfs.c (grub_hfs_mount): Translate the error
29695 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
29696 * fs/jfs.c (grub_jfs_mount): Likewise.
29697 * fs/ufs.c (grub_ufs_mount): Likewise.
29699 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
29701 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
29702 which initialized BAT registers.
29703 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
29704 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
29706 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
29707 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
29709 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
29710 (grub_mapclaim): Likewise.
29711 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
29712 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
29715 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
29717 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
29718 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
29719 -ffreestanding and -msoft-float.
29721 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
29723 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
29724 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
29725 set in grub_ieee1275_flags.
29727 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
29729 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
29731 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
29732 grub_console_init first.
29733 Change the memory range used for grub_ieee1275_claim and
29734 grub_mm_init_region.
29735 Print an error message if the claim fails.
29736 Include <grub/misc.h>.
29738 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
29740 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
29741 Call grub_children_iterate for device nodes of type `scsi',
29743 (grub_ofdisk_open): Remove manual device alias resolution.
29744 Fix memory leak when device cannot be opened.
29745 * include/grub/powerpc/ieee1275/ieee1275.h
29746 (grub_children_iterate): New prototype.
29747 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
29749 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
29750 Return -1 if args.size was -1.
29752 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
29754 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
29755 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
29756 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
29757 Open Firmware's memory for it; claim memory from _start to _end.
29758 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
29759 (_end): New extern.
29760 (_start): Zero BSS from __bss_start to _end.
29761 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
29763 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
29765 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
29767 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
29768 -1 if args.base was -1.
29770 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
29772 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
29773 escape sequence instead of a literal ^L. Also call
29774 grub_ofconsole_gotoxy.
29776 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
29778 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
29779 void * arguments to grub_addr_t. All callers updated. Also make
29780 the `result' argument optional.
29781 (grub_ieee1275_release): change void * arguments to grub_addr_t.
29782 All callers updated.
29784 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
29786 * commands/ls.c (grub_ls_list_files): Use the string following the
29787 initial ')', if present, as the filesystem path.
29788 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
29790 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
29792 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
29794 Make the source code of the menu interface more readable.
29796 * normal/menu.c: Include grub/mm.h.
29797 (TERM_WIDTH): New macro.
29798 (TERM_HEIGHT): Likewise.
29799 (TERM_INFO_HEIGHT): Likewise.
29800 (TERM_MARGIN): Likewise.
29801 (TERM_SCROLL_WIDTH): Likewise.
29802 (TERM_TOP_BORDER_Y): Likewise.
29803 (TERM_LEFT_BORDER_X): Likewise.
29804 (TERM_BORDER_WIDTH): Likewise.
29805 (TERM_MESSAGE_HEIGHT): Likewise.
29806 (TERM_BORDER_HEIGHT): Likewise.
29807 (TERM_NUM_ENTRIES): Likewise.
29808 (TERM_FIRST_ENTRY_Y): Likewise.
29809 (TERM_ENTRY_WIDTH): Likewise.
29810 (TERM_CURSOR_X): Likewise.
29811 (draw_border): Use macros instead of magic numbers.
29812 (print_entry): Likewise.
29813 (print_entries): Likewise.
29814 (run_menu): Likewise. Also, handle the key 'e'.
29815 (run_menu_entry): Ignore empty command lines.
29816 (print_message): Added a new argument EDIT. If EDIT is true,
29817 print a different message.
29818 (init_page): Likewise.
29819 (edit_menu_entry): New function. Not implemented yet.
29821 2004-09-17 Marco Gerards <metgerards@student.han.nl>
29823 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
29824 can be loaded from normal mode.
29826 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
29828 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
29829 (multiboot_mod_CFLAGS): New variables.
29830 * loader/i386/pc/linux_normal.c: New file.
29831 * loader/i386/pc/multiboot_normal.c: Likewise.
29833 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
29834 attribute `unused'.
29836 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
29837 `fdiro' to read the mode information from instead of `diro'.
29839 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
29840 looking up a symlink.
29842 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
29844 * normal/command.c (grub_command_execute): Don't parse the
29845 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
29846 flags of the command.
29848 * normal/menu.c (grub_menu_run): Fix typo.
29850 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
29852 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
29854 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
29855 `y + 1' instead of `y - 1'.
29857 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
29859 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
29861 From Hollis Blanchard <hollis@penguinppc.org>:
29862 * kern/misc.c (memmove): New alias for grub_memmove.
29863 (memcmp): New alias for grub_memcmp.
29864 (memset): New alias for grub_memset.
29865 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
29866 Change "int handle" to "grub_ieee1275_phandle_t handle".
29867 * include/grub/powerpc/ieee1275/ieee1275.h
29868 (grub_ieee1275_get_property): Likewise.
29870 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
29872 Added normal mode command `chainloader' as module chain.mod, which
29873 depends on normal.mod and _chain.mod.
29875 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
29876 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
29877 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
29879 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
29880 but arguments parsing moved to ...
29881 (grub_chainloader_cmd): ... here. New function.
29882 * include/grub/i386/pc/chainloader.h: New file.
29883 * loader/i386/pc/chainloader_normal.c: Likewise.
29885 2004-09-11 Marco Gerards <metgerards@student.han.nl>
29887 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
29888 (grub_mkimage_LDFLAGS): Likewise.
29889 (grub_emu_SOURCES): Likewise.
29890 (kernel_img_HEADERS): Added fshelp.h.
29891 * fs/ext2.c: Include <grub/fshelp.h>.
29892 (FILETYPE_REG): New macro.
29893 (FILETYPE_INO_REG): Likewise.
29894 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
29896 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
29898 (grub_fshelp_node): New struct.
29899 (grub_ext2_data): Added member `diropen'. Changed member `inode'
29901 (grub_ext2_get_file_block): Removed function.
29902 (grub_ext2_read_block): New function.
29903 (grub_ext2_read_file): Replaced parameter `data' by `node'.
29904 This function was written.
29905 (grub_ext2_mount): Read the root inode. Create a diropen struct.
29906 (grub_ext2_find_file): Removed function.
29907 (grub_ext2_read_symlink): New function.
29908 (grub_ext2_iterate_dir): Likewise.
29909 (grub_ext2_open): Rewritten.
29910 (grub_ext2_dir): Rewritten.
29911 * include/grub/fshelp.h: New file.
29912 * fs/fshelp.c: Likewise.
29914 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
29916 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
29917 (print_message): Add a missing newline.
29918 (run_menu): Added timeout support.
29919 (run_menu_entry): New local function.
29920 (grub_menu_run): Added support for booting.
29922 * kern/loader.c (grub_loader_is_loaded): New function.
29924 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
29925 (grub_get_rtc): Exported.
29927 * include/grub/i386/pc/time.h: Include grub/symbol.h.
29928 (grub_get_rtc): Exported.
29930 * include/grub/normal.h (struct grub_command_list): Remove
29931 constant from the member `command'.
29933 * include/grub/loader.h (grub_loader_is_loaded): Declared.
29935 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
29937 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
29939 2004-08-28 Marco Gerards <metgerards@student.han.nl>
29941 Add support for the JFS filesystem.
29943 * fs/jfs.c: New file.
29944 * include/grub/fs.h (grub_jfs_init): New prototype.
29945 (grub_jfs_fini): New prototype.
29946 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
29947 (grub_emu_SOURCES): Likewise.
29948 (pkgdata_MODULES): Add jfs.mod.
29949 (jfs_mod_SOURCES): New variable.
29950 (jfs_mod_CFLAGS): Likewise.
29951 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
29952 (grubof_SOURCES): Likewise.
29953 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
29955 * fs/fat.c (grub_fat_find_dir): Convert the filename little
29956 endian to the host endian.
29957 (grub_fat_utf16_to_utf8): Move function from there...
29958 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
29959 the endianness of the source string anymore.
29960 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
29962 2004-08-24 Marco Gerards <metgerards@student.han.nl>
29964 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
29965 (grub_boot_fini) [GRUB_UTIL]: Likewise.
29966 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
29967 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
29969 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
29970 (grub_hfs_iterate_dir): Make the function static. Add prototypes
29971 for `node_found' and `it_dir'.
29972 (grub_hfs_dir): Add prototype for `dir_hook'.
29974 * fs/minix.c (grub_minix_get_file_block): Add prototype for
29975 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
29976 and `indir32' to silence a gcc warning.
29978 * include/grub/fs.h (grub_hfs_init): New prototype.
29979 (grub_hfs_fini): Likewise.
29982 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
29984 Each disk device has its own id now. This is useful to make use
29985 of multiple disk devices.
29987 * include/grub/disk.h (grub_disk_dev_id): New enum.
29988 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
29989 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
29991 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
29992 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
29994 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
29995 GRUB_DISK_DEVICE_OFDISK_ID as an id.
29997 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
29998 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
30000 * include/grub/disk.h (struct grub_disk_dev): Added a new member
30001 "id" which is used by the cache manager.
30003 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
30006 2004-08-18 Marco Gerards <metgerards@student.han.nl>
30008 * fs/hfs.c: New file.
30009 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
30010 (grub_emu_SOURCES): Likewise.
30011 (pkgdata_MODULES): Add hfs.mod.
30012 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
30013 (grubof_SOURCES): Likewise.
30014 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
30016 * include/grub/misc.h (grub_strncasecmp): Add prototype.
30017 * kern/misc.c (grub_strncasecmp): Add function.
30019 2004-08-14 Marco Gerards <metgerards@student.han.nl>
30021 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
30024 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
30025 (grub_ext2_dir): In case the directory entry type is unknown, read
30028 2004-08-02 Peter Bruin <pjbruin@dds.nl>
30030 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
30031 grub_load_linux instead of grub_rescue_cmd_linux as second
30032 argument of grub_rescue_register_command.
30034 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
30036 2004-07-27 Marco Gerards <metgerards@student.han.nl>
30038 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
30040 * commands/boot.c: Remove the check for `GRUB_UTIL'.
30041 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
30042 `loader/powerpc/ieee1275/linux.c',
30043 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
30044 * include/grub/powerpc/ieee1275/ieee1275.h
30045 (grub_ieee1275_release): New prototype.
30046 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
30047 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
30048 normal, boot, linux and linux_normal.
30049 * loader/powerpc/ieee1275/linux.c: New file.
30050 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
30052 2004-07-12 Marco Gerards <metgerards@student.han.nl>
30054 * normal/arg.c (grub_arg_parse): Correct error handling after
30055 reallocating the argumentlist (check if `argl' is not null instead
30056 of checking if `args' is not null).
30057 * kern/mm.c (grub_realloc): Return the same pointer when using the
30058 same region, instead of returning the header address.
30060 2004-07-11 Marco Gerards <metgerards@student.han.nl>
30062 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
30063 one block instead of two when looking for the initial partition.
30064 (grub_partition_probe): Initialize the local variable `p' with 0.
30065 Use base 10 for the grub_strtoul call.
30066 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
30067 need for one local variable.
30068 (grub_strtoul): Don't add the new value to `num', instead of that
30071 2004-07-11 Marco Gerards <metgerards@student.han.nl>
30073 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
30074 (pxeboot_img_SOURCES): New variable.
30075 (pxeboot_img_ASFLAGS): Likewise.
30076 (pxeboot_img_LDFLAGS): Likewise.
30077 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
30078 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
30079 <lode_leroy@hotmail.com>.
30081 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
30083 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
30084 there was no input.
30086 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
30088 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
30089 the history buffer logic.
30091 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
30093 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
30094 (FILETYPE_INO_SYMLINK): New macros.
30095 (grub_ext2_find_file): Check if the node is a directory using the
30096 inode stat information instead of using the filetype in the
30097 dirent. Exclude the first character of an absolute symlink.
30098 (grub_ext2_dir): Mask out the filetype part of the mode member of
30101 2004-05-24 Marco Gerards <metgerards@student.han.nl>
30103 Add support for UFS version 1 and 2. Add support for the minix
30104 filesystem version 1 and 2, both the variants with 14 and 30 long
30107 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
30109 (grub_emu_SOURCES): Likewise.
30110 (pkgdata_MODULES): Add ufs.mod and minix.mod.
30111 (ufs_mod_SOURCES): New variable.
30112 (ufs_mod_CFLAGS): Likewise.
30113 (minix_mod_SOURCES): Likewise.
30114 (minix_mod_CFLAGS): Likewise.
30115 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
30117 (grubof_SOURCES): Likewise.
30118 * fs/ufs.c: New file.
30119 * fs/minix.c: New file.
30120 * include/grub/fs.h (grub_ufs_init): New prototype.
30121 (grub_ufs_fini): Likewise.
30122 (grub_minix_init): Likewise.
30123 (grub_minix_fini): Likewise.
30124 * util/grub-emu.c (main): Initialize and deinitialize UFS and
30127 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
30129 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
30130 commands/ls.c, commands/terminal.c, commands/boot.c,
30131 commands/cmp.c and commands/cat.c.
30132 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
30134 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
30137 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
30139 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
30140 and grub_, respectively. Because the conversion is trivial and
30141 mechanical, I omit the details here. Please refer to the CVS
30142 if you need more information.
30144 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
30146 * include/pupa: Renamed to ...
30147 * include/grub: ... this.
30148 * util/i386/pc/pupa-mkimage.c: Renamed to ...
30149 * util/i386/pc/grub-mkimage.c: ... this.
30150 * util/i386/pc/pupa-setup.c: Renamed to ...
30151 * util/i386/pc/grub-setup.c: ... this.
30152 * util/pupa-emu.c: Renamed to ...
30153 * util/grub-emu.c: ... this.
30155 2004-03-29 Marco Gerards <metgerards@student.han.nl>
30157 Add support for the newworld apple macintosh (PPC). This has been
30158 tested on the powerbook 2000 only. It only adds support for
30159 generic ieee1275 functions, console and disk support. This should
30160 be easy to port to other architectures with support for Open
30163 * configure.ac: Accept the powerpc as host_cpu. In the case of
30164 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
30165 specific tests are only executed while building for the i386.
30166 Inverse test for crosscompile.
30167 * genmk.rb (Utility): Allow assembler files.
30168 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
30169 * conf/powerpc-ieee1275.rmk: New file.
30170 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
30171 * disk/powerpc/ieee1275/partition.c: Likewise.
30172 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
30173 * include/pupa/powerpc/ieee1275/console.h: Likewise.
30174 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
30175 * include/pupa/powerpc/ieee1275/time.h: Likewise.
30176 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
30177 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
30178 * include/pupa/powerpc/ieee1275/loader.h
30179 * include/pupa/powerpc/setjmp.h: Likewise.
30180 * include/pupa/powerpc/types.h: Likewise.
30181 * kern/powerpc/ieee1275/init.c: Likewise.
30182 * kern/powerpc/ieee1275/openfw.c: Likewise.
30183 * term/powerpc/ieee1275/ofconsole.c: Likewise.
30185 These files were written by Johan Rydberg
30186 (jrydberg@night.trouble.net) and I only modified them slightly.
30188 * boot/powerpc/ieee1275/cmain.c: New file.
30189 * boot/powerpc/ieee1275/crt0.S: Likewise.
30190 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
30191 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
30193 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
30195 * Makefile.in: Update copyright.
30196 * genmodsrc.sh: Likewise.
30197 * gensymlist.sh: Likewise.
30198 * term/i386/pc/vga.c: Indent correctly.
30200 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
30201 bugreporting address.
30202 * util/i386/pc/pupa-setup.c (usage): Likewise,
30203 (main): Call pupa_ext2_init and pupa_ext2_fini.
30205 * fs/fat.c (log2): Renamed to ...
30206 (fat_log2): ... this.
30207 All callers changed.
30208 * kern/misc.c (memcpy): Alias to pupa_memmove.
30209 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
30211 * util/console.c (pupa_ncurses_fini): Return 0.
30213 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
30214 Move fail label here.
30215 [__GNU__]: Don't warn when using stat.
30216 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
30217 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
30218 long int. Use strtol instead of strtoul.
30220 2004-03-14 Marco Gerards <metgerards@student.han.nl>
30222 * commands/boot.c: New file.
30223 * commands/cat.c: Likewise.
30224 * commands/cmp.c: Likewise.
30225 * commands/ls.c: Likewise.
30226 * commands/terminal.c: Likewise.
30227 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
30228 (pupa_register_command): Changed interface to match the new
30230 (pupa_command_execute): Changed (almost rewritten) so it uses
30231 pupa_split_command. Added support for setting variables using the
30233 (rescue_command): Changed to work with the new argument parser.
30234 (terminal_command): Moved from here to commands/terminal.c.
30235 (set_command): New function.
30236 (unset_command): New function.
30237 (insmod_command): New function.
30238 (rmmod_command): New function.
30239 (lsmod_command): New function.
30240 (pupa_command_init): Don't initialize the command terminal
30241 anymore. Initialize the commands set, unset, insmod, rmmod and
30243 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
30244 (kernel_img_HEADERS): Add arg.h and env.h.
30245 (pupa_mkimage_LDFLAGS): Add kern/env.c.
30246 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
30247 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
30249 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
30251 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
30252 (boot_mod_SOURCES): New variable.
30253 (terminal_mod_SOURCES): Likewise.
30254 (ls_mod_SOURCES): Likewise.
30255 (cmp_mod_SOURCES): Likewise.
30256 (cat_mod_SOURCES): Likewise.
30258 * normal/arg.c: New file.
30259 * kern/env.c: Likewise.
30260 * include/pupa/arg.h: Likewise.
30261 * include/pupa/env.h: Likewise.
30262 * font/manager.c (font_command): Changed to match argument parsing
30264 (PUPA_MOD_INIT): Likewise.
30265 * hello/hello.c (pupa_cmd_hello): Likewise.
30266 (PUPA_MOD_INIT): Likewise.
30267 * include/pupa/disk.h: Include <pupa/device.h>.
30268 (pupa_print_partinfo): New prototype.
30269 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
30270 (pupa_dl_get_prefix): Likewise.
30271 * include/pupa/misc.h: Include <pupa/err.h>.
30272 (pupa_isgraph): New prototype.
30273 (pupa_isdigit): Likewise.
30274 (pupa_split_cmdline): Likewise.
30275 * include/pupa/normal.h: Include <pupa/arg.h>.
30276 (pupa_command): Changed the prototype of the member `func' to
30277 match the argument parsing interface. Added member `options'.
30278 (pupa_register_command): Updated to match function.
30279 (pupa_arg_parse): New prototype.
30280 (pupa_hello_init) [PUPA_UTIL]: New prototype.
30281 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
30282 (pupa_ls_init) [PUPA_UTIL]: Likewise.
30283 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
30284 (pupa_cat_init) [PUPA_UTIL]: Likewise.
30285 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
30286 (pupa_boot_init) [PUPA_UTIL]: Likewise.
30287 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
30288 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
30289 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
30290 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
30291 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
30292 * kern/disk.c: Include <pupa/file.h>.
30293 (pupa_print_partinfo): New function.
30294 * kern/dl.c: Include <pupa/env.h>.
30295 (pupa_dl_dir): Variable removed.
30296 (pupa_dl_load): Use the environment variable `prefix' instead of
30297 the variable pupa_dl_dir.
30298 (pupa_dl_set_prefix): Function removed.
30299 (pupa_dl_get_prefix): Likewise.
30300 * kern/i386/pc/init.c: Include <pupa/env.h>.
30301 (pupa_machine_init): Use the environment variable `prefix' instead of
30302 using pupa_dl_set_prefix to set the prefix.
30303 * kern/main.c: Include <pupa/env.h>.
30304 (pupa_set_root_dev): Use the environment variable `prefix' instead of
30305 using pupa_dl_get_prefix to get the prefix.
30306 * kern/misc.c: Include <pupa/env.h>.
30307 (pupa_isdigit): New function.
30308 (pupa_isgraph): Likewise.
30309 (pupa_ftoa): Likewise.
30310 (pupa_vsprintf): Added support for printing values of the type
30311 `double'. Make it possible to format variable output when using
30312 formatting like `%1.2%f'.
30313 (pupa_split_cmdline): New function.
30314 * kern/rescue.c: Include <pupa/env.h>.
30315 (next_word): Removed function.
30316 (pupa_rescue_cmd_prefix): Likewise.
30317 (pupa_rescue_cmd_set): New function.
30318 (pupa_rescue_cmd_unset): New function.
30319 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
30320 split the command line instead of splitting it here. Added
30321 support for setting variables using the syntax `foo=bar'. Don't
30322 initialize the prefix command anymore. Initialized the set and
30324 * normal/cmdline.c: Include <pupa/env.h>.
30325 (pupa_tab_complete): Added prototypes for print_simple_completion,
30326 print_partition_completion, add_completion, iterate_commands,
30327 iterate_dev, iterate_part and iterate_dir. Moved code to print
30328 partition information from here to kern/disk.c.
30329 (pupa_cmdline_run): Don't check if the function exists anymore.
30330 * normal/main.c: Include <pupa/env.h>.
30331 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
30332 instead of using pupa_dl_get_prefix to get the prefix.
30333 * term/i386/pc/vga.c: Include <pupa/arg.h>.
30334 (check_vga_mem): Cast pointers to `void *' to silence a gcc
30336 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
30337 (pupa_vga_setcolor): Declare unused variables with `__attribute__
30338 ((unused))' to silence a gcc warning.
30339 (pupa_vga_setcolor): Likewise.
30340 (debug_command): Changed to match argument parsing
30342 * util/pupa-emu.c: Include <pupa/env.h>.
30343 (options): Added 0's for unused fields to silence a gcc warning.
30345 (main): Use the environment variable `prefix' instead of using
30346 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
30347 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
30350 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
30351 * util/misc.c: Include <malloc.h>.
30352 (pupa_malloc): Rewritten so errors are correctly reported.
30353 (pupa_realloc): Likewise.
30354 (pupa_memalign): Likewise.
30355 (pupa_mm_init_region): Declare unused variables with
30356 `__attribute__ ((unused))' to silence a gcc warning.
30357 * normal/i386/setjmp.S: Remove tab at the end of the file to
30358 silence a gcc warning.
30359 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
30360 variables with `__attribute__ ((unused))' to silence a gcc
30362 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
30363 local variable i unsigned to silence a gcc warning.
30365 * kern/term.c: Include <pupa/misc.h>.
30366 (pupa_more_lines): New variable.
30367 (pupa_more): Likewise.
30368 (pupa_putcode): When the pager is active pause at the end of every
30370 (pupa_set_more): New function.
30371 * include/pupa/term.h (pupa_set_more): New prototype.
30374 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
30376 Now this project is GRUB 2 rather than PUPA. The location of
30377 the CVS repository was moved to GRUB's.
30379 * configure.ac: Use bug-grub as the reporting address.
30380 Use GRUB instead of PUPA.
30381 Change the version number to 1.90.
30383 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
30385 * genkernsyms.sh: Updated copyright information.
30386 * genmk.rb: Likewise.
30387 * genmodsrc.sh: Likewise.
30388 * gensymlist.sh: Likewise.
30389 * boot/i386/pc/boot.S: Likewise.
30390 * boot/i386/pc/diskboot.S: Likewise.
30391 * disk/i386/pc/biosdisk.c: Likewise.
30392 * disk/i386/pc/partition.c: Likewise.
30393 * font/manager.c: Likewise.
30394 * fs/ext2.c: Likewise.
30395 * fs/fat.c: Likewise.
30396 * include/pupa/boot.h: Likewise.
30397 * include/pupa/device.h: Likewise.
30398 * include/pupa/disk.h: Likewise.
30399 * include/pupa/dl.h: Likewise.
30400 * include/pupa/elf.h: Likewise.
30401 * include/pupa/err.h: Likewise.
30402 * include/pupa/file.h: Likewise.
30403 * include/pupa/font.h: Likewise.
30404 * include/pupa/fs.h: Likewise.
30405 * include/pupa/kernel.h: Likewise.
30406 * include/pupa/loader.h: Likewise.
30407 * include/pupa/misc.h: Likewise.
30408 * include/pupa/mm.h: Likewise.
30409 * include/pupa/net.h: Likewise.
30410 * include/pupa/normal.h: Likewise.
30411 * include/pupa/rescue.h: Likewise.
30412 * include/pupa/setjmp.h: Likewise.
30413 * include/pupa/symbol.h: Likewise.
30414 * include/pupa/term.h: Likewise.
30415 * include/pupa/types.h: Likewise.
30416 * include/pupa/i386/setjmp.h: Likewise.
30417 * include/pupa/i386/types.h: Likewise.
30418 * include/pupa/i386/pc/biosdisk.h: Likewise.
30419 * include/pupa/i386/pc/boot.h: Likewise.
30420 * include/pupa/i386/pc/console.h: Likewise.
30421 * include/pupa/i386/pc/init.h: Likewise.
30422 * include/pupa/i386/pc/kernel.h: Likewise.
30423 * include/pupa/i386/pc/linux.h: Likewise.
30424 * include/pupa/i386/pc/loader.h: Likewise.
30425 * include/pupa/i386/pc/memory.h: Likewise.
30426 * include/pupa/i386/pc/multiboot.h: Likewise.
30427 * include/pupa/i386/pc/partition.h: Likewise.
30428 * include/pupa/i386/pc/time.h: Likewise.
30429 * include/pupa/i386/pc/vga.h: Likewise.
30430 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
30431 * include/pupa/util/getroot.h: Likewise.
30432 * include/pupa/util/misc.h: Likewise.
30433 * include/pupa/util/resolve.h: Likewise.
30434 * kern/device.c: Likewise.
30435 * kern/disk.c: Likewise.
30436 * kern/dl.c: Likewise.
30437 * kern/err.c: Likewise.
30438 * kern/file.c: Likewise.
30439 * kern/fs.c: Likewise.
30440 * kern/loader.c: Likewise.
30441 * kern/main.c: Likewise.
30442 * kern/misc.c: Likewise.
30443 * kern/mm.c: Likewise.
30444 * kern/rescue.c: Likewise.
30445 * kern/term.c: Likewise.
30446 * kern/i386/dl.c: Likewise.
30447 * kern/i386/pc/init.c: Likewise.
30448 * kern/i386/pc/lzo1x.S: Likewise.
30449 * kern/i386/pc/startup.S: Likewise.
30450 * loader/i386/pc/chainloader.c: Likewise.
30451 * loader/i386/pc/linux.c: Likewise.
30452 * loader/i386/pc/multiboot.c: Likewise.
30453 * normal/cmdline.c: Likewise.
30454 * normal/command.c: Likewise.
30455 * normal/main.c: Likewise.
30456 * normal/menu.c: Likewise.
30457 * normal/i386/setjmp.S: Likewise.
30458 * term/i386/pc/console.c: Likewise.
30459 * term/i386/pc/vga.c: Likewise.
30460 * util/console.c: Likewise.
30461 * util/genmoddep.c: Likewise.
30462 * util/misc.c: Likewise.
30463 * util/pupa-emu.c: Likewise.
30464 * util/resolve.c: Likewise.
30465 * util/unifont2pff.rb: Likewise.
30466 * util/i386/pc/biosdisk.c: Likewise.
30467 * util/i386/pc/getroot.c: Likewise.
30468 * util/i386/pc/pupa-mkimage.c: Likewise.
30469 * util/i386/pc/pupa-setup.c: Likewise.
30471 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
30473 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
30474 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
30475 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
30476 reading and reset it after reading.
30477 (pupa_ext2_close): Return PUPA_ERR_NONE.
30479 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
30481 (struct linux_kernel_header): Add kernel_version and
30483 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
30484 pupa_file_read succeeds.
30485 (pupa_rescue_cmd_initrd): Implement.
30487 2003-12-03 Marco Gerards <metgerards@student.han.nl>
30489 * fs/ext2.c (pupa_ext2_label): New function.
30490 (pupa_ext2_fs): Added label.
30491 * fs/fat.c (pupa_fat_label): New function.
30492 (pupa_fat_fs): Added label.
30493 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
30495 * kern/misc.c (pupa_strndup): New function.
30496 * include/pupa/misc.h (pupa_strndup): New prototype.
30498 * include/pupa/normal.h: Include <pupa/err.h>.
30499 (pupa_set_history): New prototype.
30500 (pupa_iterate_commands): New prototype.
30501 * normal/cmdline.c: Include <pupa/machine/partition.h>,
30502 <pupa/disk.h>, <pupa/file.h>.
30503 (hist_size): New variable.
30504 (hist_lines): Likewise.
30505 (hist_end): Likewise.
30506 (hist_used): Likewise.
30507 (pupa_set_history): New function.
30508 (pupa_history_get): Likewise.
30509 (pupa_history_add): Likewise.
30510 (pupa_history_replace): Likewise.
30511 (pupa_tab_complete): Likewise.
30512 (pupa_cmdline_run): Added tab completion and history buffer. Tab
30513 completion shows partitionnames while completing partitions, this
30514 feature was suggested by Jeff Bailey.
30515 * normal/command.c (pupa_iterate_commands): New function.
30516 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
30517 (pupa_normal_init): Initialize history buffer.
30518 (PUPA_MOD_INIT): Likewise.
30519 (pupa_normal_fini): Free the history buffer.
30520 (PUPA_MOD_FINI): Likewise.
30522 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
30525 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
30526 * configure.ac [i386]: Check for regparam bug.
30527 (NESTED_FUNC_ATTR) [! i386]: Defined.
30529 2003-11-17 Marco Gerards <metgerards@student.han.nl>
30531 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
30532 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
30533 (pupa_emu_SOURCES): New variable.
30534 (pupa_emu_LDFLAGS): Likewise.
30535 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
30536 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
30537 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
30538 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
30539 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
30540 (pupa_jmp_buf): New typedef.
30541 (pupa_setjmp) [PUPA_UTIL]: New macro.
30542 (pupa_longjmp) [PUPA_UTIL]: Likewise.
30543 * include/pupa/term.h (struct pupa_term): New member `refresh'.
30544 (pupa_refresh): New prototype.
30545 * include/pupa/util/getroot.h: New file.
30546 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
30548 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
30549 (pupa_rescue_cmd_cat): Likewise.
30550 (pupa_rescue_cmd_ls): Likewise.
30551 (pupa_rescue_cmd_testload): Likewise.
30552 (pupa_rescue_cmd_lsmod): Likewise.
30553 * normal/cmdline.c (pupa_cmdline_get): Likewise.
30554 * normal/menu.c (run_menu): Likewise.
30555 * kern/term.c (pupa_cls): Likewise.
30556 (pupa_refresh): New function.
30557 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
30558 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
30559 * util/console.c: New file.
30561 * util/i386/pc/getroot.c: New file.
30562 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
30563 (pupa_putchar): New function.
30564 (pupa_refresh): Likewise.
30565 (xgetcwd): Function moved to ...
30566 (strip_extra_slashes): Likewise.
30567 (get_prefix): Likewise.
30568 * util/i386/pc/getroot.c: ... here.
30569 (find_root_device): Function moved and renamed to...
30570 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
30571 Changed all callers.
30572 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
30574 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
30575 Changed all callers.
30576 * util/misc.c (pupa_memalign): New function.
30577 (pupa_mm_init_region): Likewise.
30578 (pupa_register_exported_symbols): Likewise.
30579 (pupa_putchar): Function removed.
30580 * util/pupa-emu.c: New file.
30582 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
30584 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
30585 (_multiboot_mod_SOURCES): New variable.
30586 (_multiboot_mod_CFLAGS): Likewise.
30587 * loader/i386/pc/multiboot.c: New file.
30588 * include/pupa/i386/pc/multiboot.h: Likewise.
30589 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
30590 (pupa_multiboot_real_boot): New function.
30591 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
30592 (pupa_multiboot_real_boot): New prototype.
30593 (pupa_rescue_cmd_multiboot): Likewise
30594 (pupa_rescue_cmd_module): Likewise.
30596 * kern/loader.c (pupa_loader_set): Continue when
30597 pupa_loader_unload_func() fails.
30598 (pupa_loader_unset): New function.
30599 * include/pupa/loader.h (pupa_loader_unset): New prototype.
30601 * kern/misc.c (pupa_stpcpy): New function.
30602 * include/pupa/misc.h (pupa_stpcpy): New prototype.
30604 2003-11-12 Marco Gerards <metgerards@student.han.nl>
30606 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
30607 for available extensions.
30609 * include/pupa/i386/pc/time.h: New file.
30610 * kern/disk.c: Include <pupa/machine/time.h>.
30611 (PUPA_CACHE_TIMEOUT): New macro.
30612 (pupa_last_time): New variable.
30613 (pupa_disk_open): Flush the cache when there was a timeout.
30614 (pupa_disk_close): Reset the timer.
30615 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
30617 * util/misc.c: Include <sys/times.h>
30618 (pupa_get_rtc): New function.
30620 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
30622 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
30624 (pupa_ext2_get_file_block): Use blocks member.
30626 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
30627 first block. Return -1 instead of pupa_errno on error.
30629 2003-10-27 Marco Gerards <metgerards@student.han.nl>
30631 * README: In the pupa-mkimage example use _chain instead of chain
30632 and ext2 instead of fat.
30633 * TODO: Replace ext2fs with jfs as an example. Add an item for
30634 adding journal playback for ext2fs.
30635 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
30636 (pkgdata_MODULES): Added ext2.mod.
30637 (ext2_mod_SOURCES): New variable.
30638 (ext2_mod_CFLAGS): Likewise.
30639 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
30640 * include/pupa/misc.h (pupa_strncpy): New prototype.
30641 (pupa_strcat): Likewise.
30642 (pupa_strncmp): Likewise.
30643 * kern/misc.c (pupa_strcat): Enable function.
30644 (pupa_strncpy): New function.
30645 (pupa_strncmp): Likewise.
30646 * fs/ext2.c: New file.
30648 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
30649 when the read failed before retrying.
30650 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
30651 (_FILE_OFFSET_BITS): Likewise.
30652 * configure.ac: Added AC_SYS_LARGEFILE.
30654 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
30656 * genmk.rb (PModule#rule): Make sure to get only symbol names
30657 from the output of nm.
30658 Reported by Robert Millan <rmh.grub@aybabtu.com>.
30660 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
30662 I forgot to check in these changes for a long time. This adds
30663 incomplete support for VGA console, and this is still very
30664 buggy. Also, a lot of consideration is required for I18N,
30665 UNICODE, and VGA font issues. Therefore, assume that this is
30666 such that "better than nothing".
30668 * font/manager.c: New file.
30669 * include/pupa/font.h: Likewise.
30670 * include/pupa/i386/pc/vga.h: Likewise.
30671 * term/i386/pc/vga.c: Likewise.
30672 * util/unifont2pff.rb: Likewise.
30674 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
30675 (pkgdata_MODULES): Added vga.mod and font.mod.
30676 (vga_mod_SOURCES): New variables.
30677 (vga_mod_CFLAGS): Likewise.
30678 (font_mod_SOURCES): Likewise.
30679 (font_mod_CFLAGS): Likewise.
30681 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
30683 * include/pupa/term.h: Include pupa/err.h.
30684 (struct pupa_term): Added init and fini.
30685 Changed the argument of putchar to pupa_uint32_t.
30687 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
30688 (pupa_console_real_putchar): New prototype.
30689 (pupa_console_putchar): Removed.
30690 (pupa_console_checkkey): Exported.
30691 (pupa_console_getkey): Likewise.
30693 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
30696 * kern/term.c (pupa_term_set_current): Rewritten.
30697 (pupa_putchar): Likewise.
30698 (pupa_putcode): New function.
30700 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
30701 (pupa_console_real_putchar): ... this.
30702 (pupa_vga_set_mode): New function.
30703 (pupa_vga_get_font): Likewise.
30705 * normal/command.c: Include pupa/term.h.
30706 (terminal_command): New function.
30707 (pupa_command_init): Register the command "terminal".
30709 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
30710 (DISP_UP): Likewise.
30711 (DISP_RIGHT): Likewise.
30712 (DISP_DOWN): Likewise.
30713 (DISP_HLINE): Likewise.
30714 (DISP_VLINE): Likewise.
30715 (DISP_UL): Likewise.
30716 (DISP_UR): Likewise.
30717 (DISP_LL): Likewise.
30718 (DISP_LR): Likewise.
30720 * term/i386/pc/console.c (pupa_console_putchar): New function.
30722 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
30724 * util/resolve.c (pupa_util_resolve_dependencies): BUG
30725 FIX. Reverse the path_list.
30727 * include/pupa/normal.h: Export pupa_register_command and
30728 pupa_unregister_command.
30730 * hello/hello.c (pupa_cmd_hello): New module.
30731 * conf/i386-pc.rmk: Added hello.mod.
30733 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
30735 * kern/i386/pc/lzo1x.S: New file.
30737 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
30738 (compress_kernel): New variable.
30739 (generate_image): Heavily modified to support compressing a
30740 large part of the core image.
30742 * util/misc.c (pupa_util_read_image): Fix a file descriptor
30744 (pupa_util_load_image): New function.
30746 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
30747 (pupa_compressed_size): New variable.
30748 (codestart): Enable Gate A20 here.
30749 Decompress the compressed part of the core image.
30750 Rearrange the code to put functions and variables which are
30751 required for initialization in the non-compressed part.
30754 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
30757 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
30759 * include/pupa/i386/pc/kernel.h
30760 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
30761 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
30762 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
30763 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
30764 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
30766 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
30768 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
30769 (Utility#rule): Likewise.
30771 * configure.ac: Check if LZO is available.
30773 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
30775 * include/pupa/normal.h: New file.
30776 * include/pupa/setjmp.h: Likewise.
30777 * include/pupa/i386/setjmp.h: Likewise.
30778 * normal/cmdline.c: Likewise.
30779 * normal/command.c: Likewise.
30780 * normal/main.c: Likewise.
30781 * normal/menu.c: Likewise.
30782 * normal/i386/setjmp.S: Likewise.
30784 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
30785 (pupa_rescue_cmd_initrd): Likewise.
30787 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
30790 * kern/i386/pc/startup.S (translation_table): New variable.
30791 (translate_keycode): New function.
30792 (pupa_console_getkey): Call translate_keycode.
30794 * kern/rescue.c (attempt_normal_mode): New function.
30795 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
30796 it failed, print a message.
30798 * kern/mm.c (pupa_real_malloc): Print more information when a
30799 free magic is broken.
30800 (pupa_free): If the first free header is not free actually, set
30803 * kern/main.c (pupa_load_normal_mode): Just load the module
30805 (pupa_main): Don't print the message
30806 "Entering into rescue mode..." here.
30808 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
30810 (pupa_rescue_cmd_initrd): Likewise.
30811 (pupa_rescue_cmd_initrd): Likewise.
30813 * include/pupa/symbol.h (FUNCTION): Specify the type.
30814 (VARIABLE): Likewise.
30816 * include/pupa/err.h (pupa_err_t): Added
30817 PUPA_ERR_UNKNOWN_COMMAND.
30819 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
30820 (pupa_dl_get_prefix): Likewise.
30822 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
30823 Added _chain.mod and _linux.mod instead of chain.mod and
30825 (chain_mod_SOURCES): Renamed to ...
30826 (_chain_mod_SOURCES): ... this.
30827 (chain_mod_CFLAGS): Renamed to ...
30828 (_chain_mod_CFLAGS): ... this.
30829 (linux_mod_SOURCES): Renamed to ...
30830 (_linux_mod_SOURCES): ... this.
30831 (linux_mod_CFLAGS): Renamed to ...
30832 (_linux_mod_CFLAGS): ... this.
30833 (normal_mod_SOURCES): New variable.
30834 (normal_mod_CFLAGS): Likewise.
30835 (normal_mod_ASFLAGS): Likewise.
30837 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
30839 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
30842 * kern/dl.c (pupa_dl_ref): Refer depending modules
30844 (pupa_dl_unref): Unrefer depending modules recursively.
30845 Don't call pupa_dl_unload implicitly, because PUPA can crash if
30846 a module is unloaded before one depending on that module is
30848 (pupa_dl_unload): Unload depending modules explicitly,
30851 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
30853 * include/pupa/i386/pc/linux.h: New file.
30854 * loader/i386/pc/linux.c: Likewise.
30856 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
30858 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
30859 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
30860 of PUPA_CHAINLOADER_BOOT_SECTOR.
30862 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
30863 (pupa_linux_prot_size): New variable.
30864 (pupa_linux_tmp_addr): Likewise.
30865 (pupa_linux_real_addr): Likewise.
30866 (pupa_linux_boot_zimage): New function.
30867 (pupa_linux_boot_bzimage): Likewise.
30869 * kern/i386/pc/init.c (struct mem_region): New structure.
30870 (MAX_REGIONS): New macro.
30871 (mem_regions): New variable.
30872 (num_regions): Likewise.
30873 (pupa_os_area_addr): Likewise.
30874 (pupa_os_area_size): Likewise.
30875 (pupa_lower_mem): Likewise.
30876 (pupa_upper_mem): Likewise.
30877 (add_mem_region): New function.
30878 (compact_mem_regions): Likewise.
30879 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
30880 the size of the conventional memory and that of so-called upper
30881 memory (before the first memory hole).
30882 Instead of adding each found region to free memory, use
30883 add_mem_region and add them after removing overlaps.
30884 Also, add only 1/4 of the upper memory to free memory. The rest
30885 is used for loading OS images. Maybe this is ad hoc, but this
30886 makes it much easier to relocate OS images when booting.
30888 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
30889 (pupa_enter_rescue_mode): Don't register initrd and module.
30891 * kern/mm.c: Include pupa/dl.h.
30893 * kern/main.c: Include pupa/file.h and pupa/device.h.
30895 * kern/loader.c (pupa_loader_load_module_func): Removed.
30896 (pupa_loader_load_module): Likewise.
30898 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
30901 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
30902 (pupa_linux_tmp_addr): Likewise.
30903 (pupa_linux_real_addr): Likewise.
30904 (pupa_linux_boot_zimage): Likewise.
30905 (pupa_linux_boot_bzimage): Likewise.
30907 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
30908 (pupa_upper_mem): Likewise.
30909 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
30910 module is too dangerous.
30912 * include/pupa/loader.h (pupa_os_area_addr): Declared.
30913 (pupa_os_area_size): Likewise.
30914 (pupa_loader_set): Remove the first argument. Loader doesn't
30915 manage modules or initrd any longer.
30916 (pupa_loader_load_module): Removed.
30918 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
30919 (linux_mod_SOURCES): New variable.
30920 (linux_mod_CFLAGS): Likewise.
30922 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
30924 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
30925 the length of a blocklist correctly.
30927 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
30928 Use ioctl only if the OS file is a block device.
30929 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
30930 not very useful for normal files.
30932 * kern/main.c (pupa_set_root_dev): New function.
30933 (pupa_load_normal_mode): Likewise.
30934 (pupa_main): Call those above.
30936 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
30939 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
30941 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
30943 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
30944 (setup): Configure the installed partition information and the
30947 * loader/i386/pc/chainloader.c (my_mod): New variable.
30948 (pupa_chainloader_unload): New function.
30949 (pupa_rescue_cmd_chainloader): Refer itself.
30950 (PUPA_MOD_INIT): Save its own module in MY_MOD.
30952 * kern/i386/pc/startup.S (install_partition): Removed.
30953 (version_string): Likewise.
30954 (config_file): Likewise.
30955 (pupa_install_dos_part): New variable.
30956 (pupa_install_bsd_part): Likewise.
30957 (pupa_prefix): Likewise.
30958 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
30960 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
30962 (make_install_device): New function.
30963 (pupa_machine_init): Set the dl prefix.
30965 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
30966 (buf): Renamed to ...
30967 (linebuf): ... this.
30968 (pupa_rescue_cmd_prefix): New function.
30969 (pupa_rescue_cmd_insmod): Likewise.
30970 (pupa_rescue_cmd_rmmod): Likewise.
30971 (pupa_rescue_cmd_lsmod): Likewise.
30972 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
30975 * kern/mm.c (pupa_memalign): If failed even after invalidating
30976 disk caches, unload unneeded modules and retry.
30978 * kern/misc.c (pupa_memmove): New function.
30979 (pupa_memcpy): Removed.
30980 (pupa_strcpy): New function.
30981 (pupa_itoa): Made static.
30983 * kern/dl.c (pupa_dl_iterate): New function.
30984 (pupa_dl_ref): Likewise.
30985 (pupa_dl_unref): Likewise.
30986 (pupa_dl_unload): Return if succeeded or not.
30987 (pupa_dl_unload_unneeded): New function.
30988 (pupa_dl_unload_all): Likewise.
30989 (pupa_dl_init): Renamed to ...
30990 (pupa_dl_set_prefix): ... this.
30991 (pupa_dl_get_prefix): New function.
30993 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
30994 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
30995 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
30996 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
30997 (pupa_install_dos_part): Declared.
30998 (pupa_install_bsd_part): Likewise.
30999 (pupa_prefix): Likewise.
31000 (pupa_boot_drive): Likewise.
31002 * include/pupa/types.h: Fix a typo.
31004 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
31006 (pupa_memmove): Declared.
31007 (pupa_strcpy): Likewise.
31009 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
31010 pupa_mod_init takes one argument, its own module.
31011 (pupa_dl_unload_unneeded): Declared.
31012 (pupa_dl_unload_all): Likewise.
31013 (pupa_dl_ref): Likewise.
31014 (pupa_dl_unref): Likewise.
31015 (pupa_dl_iterate): Likewise.
31016 (pupa_dl_init): Renamed to ...
31017 (pupa_dl_set_prefix): ... this.
31018 (pupa_dl_get_prefix): Declared.
31020 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
31021 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
31023 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
31024 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
31026 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
31027 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
31029 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
31031 * util/i386/pc/pupa-setup.c (setup): Define the internal
31032 function find_first_partition_start at the top level, because GCC
31033 3.0.x cannot compile internal functions in deeper scopes
31035 (find_root_device): Use lstat instead of stat.
31036 Don't follow symbolic links.
31037 Fix the path-constructing code.
31039 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
31040 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
31041 by a BLKGETSIZE ioctl first, because block devices don't fill
31042 the member st_mode of the structure stat on Linux.
31043 [__linux__] (linux_find_partition): Use a temporary buffer
31044 REAL_DEV for the working space. Copy it to DEV before returning.
31045 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
31046 buffer cache consistent.
31047 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
31048 strncmp. The previous value was merely wrong.
31049 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
31051 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
31052 FAT size is 12. The previous value was merely wrong.
31054 * kern/main.c (pupa_main): Don't split the starting message from
31057 * kern/term.c (pupa_putchar): Put CR after LF instead of before
31058 LF, because BIOS goes crazy about character attributes in this
31061 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
31063 * include/i386/pc/util/biosdisk.h: New file.
31064 * util/i386/pc/biosdisk.c: Likewise.
31065 * util/i386/pc/pupa-setup.c: Likewise.
31067 * Makefile.in (INCLUDE_DISTFILES): Added
31068 include/pupa/i386/pc/util/biosdisk.h.
31069 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
31070 directory util/i386/pc.
31071 (install-local): Added a rule for sbin_UTILITIES.
31072 (uninstall): Likewise.
31074 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
31076 * util/misc.c (xrealloc): New function.
31077 (pupa_malloc): Likewise.
31078 (pupa_free): Likewise.
31079 (pupa_realloc): Likewise.
31080 (pupa_stop): Likewise.
31081 (pupa_putchar): Likewise.
31083 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
31085 * include/pupa/util/misc.h (xrealloc): Declared.
31087 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
31089 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
31090 (PUPA_BOOT_MACHINE_BPB_END): ... this.
31092 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
31093 [PUPA_UTIL] (pupa_fat_fini): Likewise.
31095 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
31096 way should be implemented.
31097 [PUPA_UTIL] (pupa_fat_fini): Likewise.
31099 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
31100 the size of NAME for safety.
31101 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
31104 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
31105 (pupa_setup_SOURCES): Likewise.
31107 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
31109 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
31111 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
31112 bunch of pushl's from pusha, because this destroys the return
31115 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
31117 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
31118 This means that any missing prototypes could be fatal. Also, you
31119 must take care when writing assembly code. See the comments at
31120 the beginning of startup.S, for more details.
31122 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
31123 compilation mechanism.
31124 (pupa_chainloader_real_boot): Likewise.
31125 (pupa_biosdisk_rw_int13_extensions): Likewise.
31126 (pupa_biosdisk_rw_standard): Likewise.
31127 (pupa_biosdisk_check_int13_extensions): Likewise.
31128 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
31129 (pupa_biosdisk_get_diskinfo_standard): Likewise.
31130 (pupa_get_memsize): Likewise.
31131 (pupa_get_mmap_entry): Likewise.
31132 (pupa_console_putchar): Likewise.
31133 (pupa_console_setcursor): Likewise.
31134 (pupa_getrtsecs): Use pushl instead of push.
31136 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
31137 memory instead of the stack for a mmap entry, because some
31138 BIOSes may ignore the maximum size and overflow.
31140 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
31142 * genmk.rb (PModule#rule): Compile automatically generated
31143 sources with module-specific CFLAGS as well as other sources.
31145 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
31147 * configure.ac: Check ld.
31148 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
31149 respectively, before checking endianness and sizes.
31151 * Makefile.in (LD): New variable.
31153 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
31155 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
31157 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
31159 * Changelog: New file.